Explorar el Código

数据状态去掉未结算

@dongkboy hace 2 años
padre
commit
5de84bb0b6

+ 10 - 3
src/views/FinancialManagement/ReconciliationSystem/ReceivablePayableCollection/Source.vue

@@ -273,7 +273,7 @@
             placeholder="请选择状态"
             class="widths"
           >
-            <el-option label="未结算" value="0"></el-option>
+            <el-option :disabled="insuranceClearingStatedisableStatus" label="未结算" value="0"></el-option>
             <el-option label="已结算" value="1"></el-option>
           </el-select>
         </el-form-item>
@@ -294,7 +294,7 @@
         class="widths"
         size="small"
       >
-        <el-option label="未结算" value="0"></el-option>
+        <el-option disabled label="未结算" value="0"></el-option>
         <el-option label="已结算" value="1"></el-option>
       </el-select>
       <div slot="footer" class="dialog-footer">
@@ -743,6 +743,7 @@ export default {
           minWidth: 140,
         },
       ],
+      insuranceClearingStatedisableStatus:false,
     };
   },
   created() {
@@ -883,8 +884,14 @@ export default {
       this.findPage();
     },
     sourceUpdate({ row, column }) {
+      if(row.insuranceClearingState=='已结算'){
+        this.insuranceClearingStatedisableStatus=true;
+      }else{
+        this.insuranceClearingStatedisableStatus=false;
+      }
       this.dialogFormVisible = true;
-      this.updateform = row;
+      const shallowCopy = Object.assign({}, row);
+      this.updateform =shallowCopy;
     },
     sourceDelete({ row, column }) {
       this.$confirm("是否确认删除?", "提示", {