Browse Source

添加批量删除,回车添加

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

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

@ -42,8 +42,10 @@
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="formRef"
:isOpenSearchTable="true"
:isOpenSearchTable="true"
fieldTableColumn="workStationCode"
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
@success="getList"
:rules="ProductionreturnRequestMainRules"
:formAllSchemas="ProductionreturnRequestMain.allSchemas"
@ -567,6 +569,9 @@ const handleAddTable = () => {
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))
}
//
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',
message: '请选择生产线信息!',
isMainValue: true
}]
}],
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true,
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
},
},

Loading…
Cancel
Save