|
|
@ -155,6 +155,7 @@ import { formatDate } from '@/utils/formatTime' |
|
|
|
import * as WorkshopApi from '@/api/wms/workshop' |
|
|
|
import * as ConfigApi from '@/api/infra/config' |
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
import * as ruleApi from '@/api/wms/rule/index' |
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
// 装配收货申请 |
|
|
|
// 号口品收货申请 |
|
|
@ -381,6 +382,7 @@ const butttondata = (row,$index) => { |
|
|
|
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const toManagementPrecision = ref('') |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'mainClose') { // 关闭 |
|
|
|
await message.confirm('确认要关闭吗?') |
|
|
@ -505,6 +507,19 @@ const buttonTableClick = async (val, row) => { |
|
|
|
return |
|
|
|
} |
|
|
|
}) |
|
|
|
ruleApi.getManagementPrecision({ |
|
|
|
itemCodes: [item['itemCode']], |
|
|
|
locationCode: item.toLocationCode |
|
|
|
}).then((res) => { |
|
|
|
toManagementPrecision.value = res[0].ManagementPrecision |
|
|
|
if ( toManagementPrecision.value == 'BY_BATCH') { |
|
|
|
// row['fromBatchFormItemType'] = 'FormDate' |
|
|
|
item['disabled_batch'] = true |
|
|
|
} else if(toManagementPrecision.value == 'BY_QUANTITY') { |
|
|
|
// row['fromBatchFormItemType'] = '' |
|
|
|
item['disabled_batch'] = false |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} else if (val == 'mainHandle') { // 处理 |
|
|
|