Browse Source

发料申请

hella_online_20240829
wangyufei 4 months ago
parent
commit
cc581ec189
  1. 18
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  2. 1
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

18
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -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
}])
} }
} }
// //

1
src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

@ -112,7 +112,6 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch:true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本 searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段

Loading…
Cancel
Save