Browse Source

销售发运

master_hella_20240701
chenfang 6 months ago
parent
commit
b46958eaa4
  1. 26
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

26
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -108,8 +108,12 @@ const trueFalse = ref(false)
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
if(formField == 'CustomerCode') {
setV['CustomerCode'] = val[0]['CustomerCode']
} else {
setV[formField] = val[0][searchField]
}
formRef.setValues(setV)
})
}
@ -117,11 +121,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
const setV = {}
if(formField == 'CustomerCode') {
setV['CustomerCode'] = val[0]['CustomerCode']
}else {
setV[formField] = val[0][searchField]
}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
})
}
@ -167,7 +167,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -243,8 +249,8 @@ const submitForm = async (formType, data) => {
//
const handleAddTable = () => {
tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys)))
}
tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys)))
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)

Loading…
Cancel
Save