소스 검색

bug 修复

lilei 3 년 전
부모
커밋
2dd28a0aa5

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1653441628442
+  "version": 1653445722475
 }

+ 5 - 2
src/views/common/settleAccount.js

@@ -47,8 +47,11 @@ const SettleAccount = {
       this.defaultVal = newValue||undefined
     },
     settleStyleSn(a,b){
+      console.log(a,b)
       if(a){
         this.getList()
+      }else{
+        this.handleChange(undefined)
       }
     }
   },
@@ -65,9 +68,9 @@ const SettleAccount = {
     },
     handleChange(value) {
       this.defaultVal = value;
-      const accountName = this.list.find(item => item[this.defValKey] == value).accountName
+      const row = this.list.find(item => item[this.defValKey] == value)
       this.$emit('input', value);
-      this.$emit('change', this.value, accountName);
+      this.$emit('change', this.defaultVal, row?row.accountName:'');
     },
     // 列表数据
     getList () {

+ 3 - 2
src/views/common/settleStyle.js

@@ -53,10 +53,11 @@ const SettleStyle = {
       )
     },
     handleChange(value) {
+      console.log(value)
       this.defaultVal = value;
-      const settleStyleName = this.list.find(item => item[this.defValKey] == value)
+      const row = this.list.find(item => item[this.defValKey] == value)
       this.$emit('input', value);
-      this.$emit('change', this.value, settleStyleName?settleStyleName.name:'');
+      this.$emit('change', this.defaultVal, row?row.name:'');
     },
     // 列表数据
     getList () {

+ 3 - 0
src/views/financialManagement/companyReceivablePayable/collectionPayment.vue

@@ -285,6 +285,9 @@ export default {
     // 选择结算方式
     settleStyleChange (v, name) {
       this.form.settleStyleName = name
+      if (this.form.settleAccountSn) {
+        this.form.settleAccountSn = undefined
+      }
     },
     settleAccountChange (v, name) {
       this.form.settleAccountName = name

+ 3 - 0
src/views/financialManagement/expenseManagement/edit.vue

@@ -121,6 +121,9 @@ export default {
     // 选择结算方式
     settleStyleChange (v, name) {
       this.form.settleStyleName = name
+      if (this.form.settleAccountSn) {
+        this.form.settleAccountSn = undefined
+      }
     },
     //  递归函数
     recursionFun (data) {

+ 3 - 0
src/views/financialManagement/settleModal/settleModal.vue

@@ -101,6 +101,9 @@ export default {
     },
     settleStyleChange (v, name) {
       this.form.settleStyleName = name
+      if (this.form.settleAccountSn) {
+        this.form.settleAccountSn = undefined
+      }
     },
     //  保存
     handleSubmit (e) {