|
@ -84,6 +84,8 @@ |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
|
|
|
import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
|
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { IssueRequestMain,IssueRequestMainRules,IssueRequestDetail,IssueRequestDetailRules } from './issueRequestMain.data' |
|
|
import { IssueRequestMain,IssueRequestMainRules,IssueRequestDetail,IssueRequestDetailRules } from './issueRequestMain.data' |
|
|
import * as IssueRequestMainApi from '@/api/wms/issueRequestMain' |
|
|
import * as IssueRequestMainApi from '@/api/wms/issueRequestMain' |
|
@ -120,6 +122,22 @@ const onEnter = async (field,value) => { |
|
|
setV['workStationCode'] = res.list[0].code |
|
|
setV['workStationCode'] = res.list[0].code |
|
|
formRef.value.formRef.setValues(setV) |
|
|
formRef.value.formRef.setValues(setV) |
|
|
} |
|
|
} |
|
|
|
|
|
}else if(field == 'workshopCode'){ |
|
|
|
|
|
//车间代码 |
|
|
|
|
|
formRef.value.opensearchTable('productionLineCode', 'code', '生产线信息', Productionline.allSchemas, ProductionlineApi.getProductionlinePage,[ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'workshopCode', |
|
|
|
|
|
value: value, |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}]) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|