Browse Source

添加批量删除,回车添加

hella_online_20240829
wangyufei 4 months ago
parent
commit
61f88c1a4e
  1. 5
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  2. 13
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

5
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -44,6 +44,8 @@
ref="formRef" ref="formRef"
:isOpenSearchTable="true" :isOpenSearchTable="true"
fieldTableColumn="workStationCode" fieldTableColumn="workStationCode"
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@success="getList" @success="getList"
:rules="ProductionreturnRequestMainRules" :rules="ProductionreturnRequestMainRules"
:formAllSchemas="ProductionreturnRequestMain.allSchemas" :formAllSchemas="ProductionreturnRequestMain.allSchemas"
@ -567,6 +569,9 @@ const handleAddTable = () => {
const handleDeleteTable = (item, index) => { const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1) tableData.value.splice(index, 1)
} }
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))
}
// //
const submitForm = async (formType, submitData) => { const submitForm = async (formType, submitData) => {

13
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

@ -127,7 +127,18 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
value: 'productionLineCode', value: 'productionLineCode',
message: '请选择生产线信息!', message: '请选择生产线信息!',
isMainValue: true isMainValue: true
}] }],
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true,
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
}, },

Loading…
Cancel
Save