diff --git a/src/views/qms/inspectionQ2/index.vue b/src/views/qms/inspectionQ2/index.vue index 48af18b0f..e8f0bebc9 100644 --- a/src/views/qms/inspectionQ2/index.vue +++ b/src/views/qms/inspectionQ2/index.vue @@ -159,6 +159,11 @@ const clearSearchInput = (formField) => { column: 'itemCode', action: '==', value: basicFormRef.value.formRef.formModel.lightItemCode + }, + { + column: 'available', + action: '==', + value: 'TRUE' } ], pageNo: 1, @@ -211,7 +216,16 @@ const clearSearchInput = (formField) => { const params2 = { by: 'ASC', filters: [ - { column: 'itemCode', action: '==', value: basicFormRef.value.formRef.formModel.itemCode } + { + column: 'itemCode', + action: '==', + value: basicFormRef.value.formRef.formModel.itemCode + }, + { + column: 'available', + action: '==', + value: 'TRUE' + } ], pageNo: 1, pageSize: 500, @@ -258,7 +272,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { setV['purchaseReceiptNumber'] = '' const supplierParams = { by: 'ASC', - filters: [{ column: 'code', action: '==', value: val[0].supplierCode }], + filters: [ + { column: 'code', action: '==', value: val[0].supplierCode }, + { + column: 'available', + action: '==', + value: 'TRUE' + } + ], pageNo: 1, pageSize: 500, sort: '' @@ -300,7 +321,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { setV['remainingAmount'] = 0 const params2 = { by: 'ASC', - filters: [{ column: 'itemCode', action: '==', value: val[0].code }], + filters: [ + { column: 'itemCode', action: '==', value: val[0].code }, + { + column: 'available', + action: '==', + value: 'TRUE' + } + ], pageNo: 1, pageSize: 500, sort: '' @@ -361,7 +389,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { const supplieritemParams = { by: 'ASC', - filters: [{ column: 'itemCode', action: '==', value: val[0].itemCode }], + filters: [ + { column: 'itemCode', action: '==', value: val[0].itemCode }, + { + column: 'available', + action: '==', + value: 'TRUE' + } + ], pageNo: 1, pageSize: 500, sort: '' @@ -380,7 +415,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { }) const itembasicParams = { by: 'ASC', - filters: [{ column: 'code', action: '==', value: val[0].itemCode }], + filters: [ + { column: 'code', action: '==', value: val[0].itemCode }, + { + column: 'available', + action: '==', + value: 'TRUE' + } + ], pageNo: 1, pageSize: 500, sort: '' @@ -407,7 +449,14 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { setV['remainingAmount'] = 0 const params2 = { by: 'ASC', - filters: [{ column: 'itemCode', action: '==', value: val[0].itemCode }], + filters: [ + { column: 'itemCode', action: '==', value: val[0].itemCode }, + { + column: 'available', + action: '==', + value: 'TRUE' + } + ], pageNo: 1, pageSize: 500, sort: '' @@ -509,7 +558,12 @@ const onChange = (field, e) => { const paramsCustomer = { by: 'ASC', filters: [ - { column: 'code', action: '==', value: basicFormRef.value.formRef.formModel.supplierCode } + { column: 'code', action: '==', value: basicFormRef.value.formRef.formModel.supplierCode }, + { + column: 'available', + action: '==', + value: 'TRUE' + } ], pageNo: 1, pageSize: 500, @@ -690,10 +744,10 @@ const formsSuccess = async (formType, data) => { // message.error('数量不能为0') // return // } - if (!data.standardCostPrice) { - message.error('标准成本价格不能为0或空') - return - } + // if (!data.standardCostPrice) { + // message.error('标准成本价格不能为0或空') + // return + // } if (data.activeTime == 0) data.activeTime = null if (data.expireTime == 0) data.expireTime = null