|
|
@ -152,6 +152,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
|
import * as BomApi from "@/api/wms/bom"; |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import * as WorkshopApi from '@/api/wms/workshop' |
|
|
|
import * as ConfigApi from '@/api/infra/config' |
|
|
|
|
|
|
|
// 装配收货申请 |
|
|
|
defineOptions({ name: 'ProductreceiptRequestMainA' }) |
|
|
@ -813,18 +814,18 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r |
|
|
|
message.error('创建标签失败') |
|
|
|
}) |
|
|
|
} |
|
|
|
const getDefaultWorkshopCode = async ()=>{ |
|
|
|
let res = await WorkshopApi.getWorkshopPage({ |
|
|
|
available: "TRUE" |
|
|
|
const getDefaultWorkshopCode = async () => { |
|
|
|
const data = await ConfigApi.getConfigPage({ |
|
|
|
'key':'assembleProductreceiptWorkshopCode', |
|
|
|
'pageNo':1, |
|
|
|
'pageSize':10 |
|
|
|
}) |
|
|
|
if(res&&res.list.length>0){ |
|
|
|
if(res.list.find(item=>item.code=='PRA')){ |
|
|
|
ProductreceiptRequestMain.allSchemas.formSchema.map(itemColumns => { |
|
|
|
if(itemColumns.field == 'workshopCode') { |
|
|
|
itemColumns.value = 'PRA' |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
if(data&&data.list&&data.list.length>0){ |
|
|
|
ProductreceiptRequestMain.allSchemas.formSchema.map((itemColumns) => { |
|
|
|
if (itemColumns.field == 'workshopCode') { |
|
|
|
itemColumns.value = data.list[0]['value'] |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
/** 初始化 **/ |
|
|
|