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