Pārlūkot izejas kodu

收付费修改

wengyuwen 4 gadi atpakaļ
vecāks
revīzija
b2129dab82

+ 29 - 2
src/views/finance/charge/index.vue

@@ -226,7 +226,7 @@
             style="width: 200px"
             @keyup.enter.native="handleQuery"
             :remote-method="corpsRemoteMethod"
-            :disabled="notChange"
+            :disabled="doNot"
             placeholder="请输入结算单位"
           >
             <el-option
@@ -363,6 +363,7 @@
               clearable
               size="small"
               style="width: 200px"
+              :disabled="doNot"
               @keyup.enter.native="handleQuery"
               :remote-method="corpsRemoteMethod"
               placeholder="请输入结算单位"
@@ -474,7 +475,7 @@
         </el-table>
         <div slot="footer" class="dialog-footer">
           <el-button type="primary" @click="confirmImport">确 定</el-button>
-          <el-button @click="innerVisible = false">取 消</el-button>
+          <el-button @click="signOut">取 消</el-button>
         </div>
       </el-dialog>
     </el-dialog>
@@ -547,6 +548,7 @@ export default {
   name: 'Charge',
   data() {
     return {
+      doNot:false,
       Lander:'',
       Operator:'',
       approve:false,
@@ -694,6 +696,16 @@ export default {
     this.adoPt()
   },
   methods: {
+    //财务主取消
+    signOut(){
+      if(this.increase_s.length == 0){
+        this.doNot = false
+      }else{
+        this.doNot = true
+      }
+      this.innerVisible = false
+      this.feeList = []
+    },
     //收费页面合计
     listTotal(param){
       const { columns, data } = param
@@ -966,6 +978,9 @@ export default {
       this.chargeList_s = []
       // this.queryParameter.fToCorpid = this.queryParams.fCorpid
       this.innerVisible = true
+      if(this.queryParams.fCorpid){
+        this.doNot = true
+      }
     },
     getSum(param){
       const {columns,data} = param;
@@ -1025,6 +1040,7 @@ export default {
     },
     //确认导入
     confirmImport() {
+      this.doNot = true
       this.hide = true
       for (let item in this.selection) {
         this.pass.fAmtcr += Number(this.selection[item].fAmt)
@@ -1282,6 +1298,11 @@ export default {
         this.fMblnoOptions = response.data.corps
         this.open = true
         this.title = '修改收费列表'
+        if(this.DzfeeList){
+          this.doNot = true
+        }else{
+          this.doNot = false
+        }
       })
     },
     /** 提交按钮 */
@@ -1373,6 +1394,12 @@ export default {
         this.queryParams.fAmtcr += this.increase_s[item].fAmt
         this.queryParams.fAmtdr += this.increase_s[item].fAmtdr
       }
+      if(this.increase_s == 0){
+        console.log("111")
+        this.doNot = false
+      }else{
+        this.doNot = true
+      }
     }
   }
 }

+ 23 - 2
src/views/finance/payment/index.vue

@@ -226,7 +226,7 @@
             style="width: 200px"
             @keyup.enter.native="handleQuery"
             :remote-method="corpsRemoteMethod"
-            :disabled="notChange"
+            :disabled="doNot"
             placeholder="请输入结算单位"
           >
             <el-option
@@ -361,6 +361,7 @@
               remote
               clearable
               size="small"
+              :disabled="doNot"
               style="width: 200px"
               @keyup.enter.native="handleQuery"
               :remote-method="corpsRemoteMethod"
@@ -473,7 +474,7 @@
         </el-table>
         <div slot="footer" class="dialog-footer">
           <el-button type="primary" @click="confirmImport">确 定</el-button>
-          <el-button @click="innerVisible = false">取 消</el-button>
+          <el-button @click="signOut">取 消</el-button>
         </div>
       </el-dialog>
     </el-dialog>
@@ -546,6 +547,7 @@ export default {
   name: 'Charge',
   data() {
     return {
+      doNot:false,
       Lander:'',
       Operator:'',
       approve:false,
@@ -693,6 +695,16 @@ export default {
     this.adoPt()
   },
   methods: {
+    //财务主取消
+    signOut(){
+      if(this.increase_s == 0){
+        this.doNot = false
+      }else{
+        this.doNot = true
+      }
+      this.innerVisible = false
+      this.feeList = []
+    },
     //付费页面合计
     listTotal(param){
       const { columns, data } = param
@@ -965,6 +977,9 @@ export default {
       this.chargeList_s = []
       // this.queryParameter.fToCorpid = this.queryParams.fCorpid
       this.innerVisible = true
+      if(this.queryParams.fCorpid){
+        this.doNot = true
+      }
     },
     getSum(param){
       const {columns,data} = param;
@@ -1024,6 +1039,7 @@ export default {
     },
     //确认导入
     confirmImport() {
+      this.doNot = true
       this.hide = true
       for (let item in this.selection) {
         this.pass.fAmtcr += Number(this.selection[item].fAmt.toFixed(2))
@@ -1383,6 +1399,11 @@ export default {
         this.queryParams.fAmtcr += this.increase_s[item].fAmt
         this.queryParams.fAmtdr += this.increase_s[item].fAmtdr
       }
+      if(this.increase_s == 0){
+        this.doNot = false
+      }else{
+        this.doNot = true
+      }
     }
   }
 }