Browse Source

HL-6146

hella_online_20241011
yufei_wang 4 months ago
parent
commit
9c76120469
  1. 22
      src/views/wms/productionManage/productredress/productredressRequestMain/index.vue

22
src/views/wms/productionManage/productredress/productredressRequestMain/index.vue

@ -59,6 +59,7 @@
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
@clearSearchInput="clearSearchInput"
/>
<!-- 详情 -->
@ -125,7 +126,23 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...ProductredressRequestMain.allSchemas.tableColumns,...ProductredressRequestDetail.allSchemas.tableMainColumns])
const clearSearchInput = (field)=>{
console.log('field',field)
if('workshopCode' == field){
//
formRef.value.formRef.setValues({
productionLineCode: '',
workStationCode:'',
})
tableData.value = []
}else if('productionLineCode' == field){
//线
formRef.value.formRef.setValues({
workStationCode:'',
})
tableData.value = []
}
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => {
@ -424,6 +441,9 @@ const submitForm = async (formType, submitData) => {
data.id = data.masterId
}
data.subList = tableData.value //
data.subList.forEach(item=>{
item['workStationCode'] = data['workStationCode']
})
if(data.subList.find(item => (item.qty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false

Loading…
Cancel
Save