根据零收付款启用标记来对采购入库和销售出库进行赋值判断

This commit is contained in:
jishenghua
2025-05-18 22:32:04 +08:00
parent 60b4f73c92
commit 887b1dbbdd
6 changed files with 78 additions and 0 deletions

View File

@@ -194,6 +194,7 @@
import JUpload from '@/components/jeecg/JUpload'
import JDate from '@/components/jeecg/JDate'
import Vue from 'vue'
import { getCurrentSystemConfig } from '@/api/api'
export default {
name: "PurchaseBackModal",
mixins: [JEditableTableMixin, BillModalMixin],
@@ -446,6 +447,16 @@
'accountId': accountId,
'remark': remark
})
getCurrentSystemConfig().then((res) => {
if (res.code === 200 && res.data) {
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
if(flag) {
//切换收付款的金额为0
let oldChangeAmount = this.form.getFieldValue('changeAmount')-0
this.form.setFieldsValue({'changeAmount':0, 'debt':oldChangeAmount})
}
}
})
})
}
},

View File

@@ -221,6 +221,7 @@
import JUpload from '@/components/jeecg/JUpload'
import JDate from '@/components/jeecg/JDate'
import Vue from 'vue'
import { getCurrentSystemConfig } from '@/api/api'
export default {
name: "PurchaseInModal",
@@ -504,6 +505,16 @@
'accountId': accountId,
'remark': remark
})
getCurrentSystemConfig().then((res) => {
if (res.code === 200 && res.data) {
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
if(flag) {
//切换收付款的金额为0
let oldChangeAmount = this.form.getFieldValue('changeAmount')-0
this.form.setFieldsValue({'changeAmount':0, 'debt':oldChangeAmount})
}
}
})
})
//判断后进行仓库的切换
if(depotId) {

View File

@@ -198,6 +198,7 @@
import JUpload from '@/components/jeecg/JUpload'
import JDate from '@/components/jeecg/JDate'
import Vue from 'vue'
import { getCurrentSystemConfig } from '@/api/api'
export default {
name: "SaleBackModal",
mixins: [JEditableTableMixin, BillModalMixin],
@@ -456,6 +457,16 @@
'accountId': accountId,
'remark': remark
})
getCurrentSystemConfig().then((res) => {
if (res.code === 200 && res.data) {
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
if(flag) {
//切换收付款的金额为0
let oldChangeAmount = this.form.getFieldValue('changeAmount')-0
this.form.setFieldsValue({'changeAmount':0, 'debt':oldChangeAmount})
}
}
})
this.personList.value = salesMan
})
}

View File

@@ -236,6 +236,7 @@
import JUpload from '@/components/jeecg/JUpload'
import JDate from '@/components/jeecg/JDate'
import Vue from 'vue'
import { getCurrentSystemConfig } from '@/api/api'
export default {
name: "SaleOutModal",
mixins: [JEditableTableMixin, BillModalMixin],
@@ -521,6 +522,16 @@
'accountId': accountId,
'remark': remark
})
getCurrentSystemConfig().then((res) => {
if (res.code === 200 && res.data) {
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
if(flag) {
//切换收付款的金额为0
let oldChangeAmount = this.form.getFieldValue('changeAmount')-0
this.form.setFieldsValue({'changeAmount':0, 'debt':oldChangeAmount})
}
}
})
this.personList.value = salesMan
})
//判断后进行仓库的切换