mo 2 лет назад
Родитель
Сommit
da224f91c3

+ 9 - 0
src/utils/vueFilter.js

@@ -619,6 +619,15 @@ Vue.filter("paymentStatusDetall", value => {
   };
   return template[value];
 });
+
+Vue.filter("paymentStatusGet", value => {
+  let template = {
+    PAID_COMPLETED: "已付款",
+    PROCESSING: "付款中",
+    NON_PAYMENT: "未付款"
+  };
+  return template[value];
+});
 Vue.filter("replacementInsFilter", value => {
   let template = {
     2: "已缴费",

+ 3 - 2
src/views/branchPayManager/modals/addPayCode.vue

@@ -2,7 +2,7 @@
   <div>
     <el-dialog
       title="添加付款记录"
-      width="500px"
+      width="520px"
       :visible.sync="visitVisible"
       append-to-body
     >
@@ -21,7 +21,7 @@
           <el-input :rows="3" type="textarea" placeholder="请输入付款备注" v-model.trim="form.memo" autocomplete="off"></el-input>
         </el-form-item>
         <el-form-item label="上传凭证"  prop="credentials" :rules="[{ required: true, message: '请上传凭证' }]">
-        <div style="width: 80% !important">
+        <div style="width: 100% !important">
           <uploadImageList :uploaded="form.credentials" bucket_name="contracts"/>
           <!-- bucket_name="cooperation" -->
         </div>
@@ -67,6 +67,7 @@ export default {
     })
    },
     openDialog(row){
+      this.form.id = row.id;
       this.visitVisible = true
     },
     closeDialog(){

+ 4 - 4
src/views/branchPayManager/payShareList.vue

@@ -53,8 +53,8 @@
             clearable
             placeholder="付款状态"
           >
-            <el-option label="已缴费" value="PAID_COMPLETED"></el-option>
-            <el-option label="未缴费" value="NON_PAYMENT"></el-option>
+            <el-option label="已付款" value="PAID_COMPLETED"></el-option>
+            <el-option label="未付款" value="NON_PAYMENT"></el-option>
           </el-select>
         </el-form-item>
         <el-form-item>
@@ -116,7 +116,7 @@
           <el-table-column align="center" prop="studentId" label="付款状态">
             <template slot-scope="scope">
               <div>
-                {{ scope.row.paymentStatus | paymentStatusDetall }}
+                {{ scope.row.paymentStatus | paymentStatusGet }}
               </div>
             </template>
           </el-table-column>
@@ -145,7 +145,7 @@
             <template slot-scope="scope">
               <div>
                 <auth auths="cooperationShareProfit/addCredentials">
-                  <el-button type="text" @click="addPayCode(scope.row)"
+                  <el-button :disabled="scope.row.paymentStatus=='PAID_COMPLETED'" type="text" @click="addPayCode(scope.row)"
                     >添加付款记录</el-button
                   >
                 </auth>