Browse Source

HL-6285预生产收货申请

hella_online_20241024
yufei_wang 1 month ago
parent
commit
37d7edbcbf
  1. 19
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  2. 5
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

19
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -69,6 +69,7 @@
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@clearSearchInput="clearSearchInput"
@submitForm="submitForm"
@onChange="onChange"
>
@ -253,6 +254,22 @@ const onChange = (field, cur) => {
}
}
const clearSearchInput = (field)=>{
console.log('field',field)
if('workshopCode' == field){
//
formRef.value.formRef.setValues({
productionLineCode: '',
team: '',
})
tableData.value = []
}else if('productionLineCode'==field){
formRef.value.formRef.setValues({
team: '',
})
tableData.value = []
}
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
@ -281,9 +298,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
if ('workshopCode' == formField) {
//
setV['productionLineCode'] = ''
setV['team'] = ''
tableData.value = []
} else if ('productionLineCode' == formField) {
//线
setV['team'] = ''
tableData.value = []
} else if ('team' == formField) {
//

5
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

@ -213,6 +213,11 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'productionLineCode',
value: 'productionLineCode',
message: '请填写生产线代码!',
isMainValue: true
}],
verificationParams: [{
key: 'code',

Loading…
Cancel
Save