Browse Source

制品返修申请 新增时的添加明细里面的操作没有删除按钮,也没有批量删除按钮,建工序报产申请时,不应该有上次创建的明细数据

hella_online_20240829
zhang_li 5 months ago
parent
commit
73147b139f
  1. 1
      src/components/TableForm/src/TableForm.vue
  2. 1
      src/views/wms/productionManage/processproduction/processproductionRequest/index.vue
  3. 6
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

1
src/components/TableForm/src/TableForm.vue

@ -551,6 +551,7 @@ const tableSelectionChange = (val) => {
}
const handleSelectionDelete = () => {
emit('tableSelectionDelete', deleteTableData.value)
TableBaseComponents_Ref.value.clearSelection()
nextTick(() => {
deleteTableData.value.forEach((row) => {
TableBaseComponents_Ref.value!.toggleRowSelection(row, false)

1
src/views/wms/productionManage/processproduction/processproductionRequest/index.vue

@ -292,6 +292,7 @@ const handleHandle = async (id: number) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
tableData.value = [] //
basicFormRef.value.open(type, row)
}

6
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -56,6 +56,8 @@
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
@buttonOperationClick="buttonOperationClick"
:isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete"
/>
<!-- 详情 -->
@ -686,7 +688,9 @@ const tableFormButton = async (val , row) => {
await getDetailListBom()
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))
}
/** 初始化 **/
onMounted(async () => {
getList()

Loading…
Cancel
Save