diff --git a/src/api/wms/supplierinvoiceRequestDetail/index.ts b/src/api/wms/supplierinvoiceRequestDetail/index.ts index d256011f2..7cbc9a250 100644 --- a/src/api/wms/supplierinvoiceRequestDetail/index.ts +++ b/src/api/wms/supplierinvoiceRequestDetail/index.ts @@ -39,6 +39,12 @@ export const getPoNumber = async (params) => { return await request.get({ url: `/wms/supplierinvoice-request-detail/getPoNumber`, params}) } +// 查询供应商发票明细数据 +export const getPoNumberPoLineInfo = async (params) => { + return await request.get({ url: `/wms/supplierinvoice-request-detail/getPoNumberPoLineInfo`, params}) +} + + // 查询供应商发票申请子详情 export const getSupplierinvoiceRequestDetail = async (id: number) => { return await request.get({ url: `/wms/supplierinvoice-request-detail/get?id=` + id }) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 0a0dabae0..55d5560b2 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -122,7 +122,6 @@ } } else { console.log(searchFormRef.formModel); - const setV = {} if(formField == 'recordNumber'){ setV['recordNumber'] = val[0]['number'] @@ -131,12 +130,32 @@ 'billType':searchFormRef.formModel.billType, 'recordNumber':val[0]['number'] } + let orderNoFlag = false; SupplierinvoiceRequestDetailApi.getPoNumber(params).then(res =>{ console.log("返回结果:",res) + if(res.length == 0){ + orderNoFlag = true + return + } + let options = []; + for(let i=0;i { + if (item.field == 'poNumber') { + item.componentProps.options = options + } + }) }) - + if(orderNoFlag){ + message.error("选择的记录单号没有订单") + return; + } } - setV[formField] = val[0][searchField] searchFormRef.setValues(setV) } diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts index 9ddad94ca..615879886 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts @@ -235,12 +235,12 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( form: { component: 'Select', componentProps:{ - options:[{lablel:'',value:''}] + options:[{label:'',value:''}] } }, tableForm: { type: 'Select', - options:[{lablel:'',value:''}] + options:[{label:'',value:''}] } }, { @@ -561,12 +561,8 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive