diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 10ee8e0db..6d3d43bd1 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -229,6 +229,7 @@ :isBusiness="false" :footButttondata="undefined" @success="submitPurchasePass" + @onChange="onChangePurchasePass" /> @@ -1107,10 +1108,20 @@ const handleSub = async (id: number) => { tableObject.loading = false } } - +const onChangePurchasePass = (field, cur, formRef)=>{ + console.log('onChangePurchasePass',field, cur, formRef) + if(field=='balanceStatement'){ + formRef.value.setValues({ + 'balanceStatement':cur.trim() + }) + } +} /** 采购审批通过按钮操作 */ const submitPurchasePass = async (id, submitData) => { console.log(submitData) + if(!submitData?.balanceStatement.trim()){ + message.error('请输入价差通过说明') + } const id1 = submitData?.id || id console.log(id1)