Browse Source

HL-6424SCP正式环境,采购审核有价差的发票数据,填写的价差通过说明,增加非空的验证

hella_online_20241121
yufei_wang 2 weeks ago
parent
commit
5d24ba63bd
  1. 13
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

13
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -229,6 +229,7 @@
:isBusiness="false"
:footButttondata="undefined"
@success="submitPurchasePass"
@onChange="onChangePurchasePass"
/>
<!-- 详情 -->
<!-- :apiUpdate="SupplierinvoiceRequestDetailApi.updateSupplierinvoiceRequestDetail" -->
@ -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)

Loading…
Cancel
Save