根据零收付款启用标记来对采购入库和销售出库进行赋值判断
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user