xiao547607 5 vuotta sitten
vanhempi
commit
a471407234
2 muutettua tiedostoa jossa 9 lisäystä ja 10 poistoa
  1. 7 3
      src/api/base/rechargeRecord.js
  2. 2 7
      src/views/base/rechange-detail.vue

+ 7 - 3
src/api/base/rechargeRecord.js

@@ -5,8 +5,8 @@ function pageList(formData){
   return request.post(constant.serverUrl + "/base/rechargeRecord/pageList", formData);
 }
 
-function create(clientId){
-  return request.get(constant.serverUrl + "/base/rechargeRecord/create/" + clientId);
+function create(){
+  return request.get(constant.serverUrl + "/base/rechargeRecord/create");
 }
 
 function edit(id){
@@ -41,6 +41,10 @@ function batchRemove(idList){
   });
 }
 
+function queryRoomMessage(clientId){
+  return request.get(constant.serverUrl + "/base/rechargeRecord/queryRoomMessage/" + clientId);
+}
+
 function saveRecord(idList){
   return request.post(constant.serverUrl + "/base/rechargeRecord/saveRecord",idList,{
     headers: {
@@ -50,5 +54,5 @@ function saveRecord(idList){
 }
 
 export default {
-  pageList,create,edit,add,update,remove,batchRemove,saveRecord
+  pageList,create,edit,add,update,remove,batchRemove,saveRecord,queryRoomMessage
 }

+ 2 - 7
src/views/base/rechange-detail.vue

@@ -15,11 +15,7 @@
     <div class="user-panel" v-loading="loading">
       <el-form ref="form" :model="formModel" :rules="ruleValidate" :label-width="'100px'">
         <el-form-item label="充值度数" prop="buyElectricity">
-          <el-input
-            v-model="formModel.buyElectricity"
-            placeholder="请输入充值度数"
-            style="width:300px"
-          ></el-input>
+          <el-input v-model="formModel.buyElectricity" placeholder="请输入充值度数" style="width:300px"></el-input>
         </el-form-item>
         <el-form-item label="当前电价" prop="useTypeV">
           <span v-html="formModel.useTypeV" style="margin-right:10px;"></span>元/度
@@ -27,7 +23,6 @@
         <el-form-item label="用电类型" prop="useTypeN">
           <span v-html="formModel.useTypeN" style="margin-right:10px;"></span>
         </el-form-item>
-        <el-form-item label="售电员" prop="buyAmount"></el-form-item>
       </el-form>
     </div>
     <span slot="footer" class="dialog-footer">
@@ -102,7 +97,7 @@ export default {
     var self = this;
 
     (function() {
-      return rechargeRecordApi.create(self.businessKey);
+      return rechargeRecordApi.queryRoomMessage(self.businessKey);
     })()
       .then(response => {
         var jsonData = response.data;