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

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

@@ -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) {