Browse Source

HL-5774装配收货、预生产收货,班次应显示汉字

hella_online_20240904
yufei_wang 2 months ago
parent
commit
b9a687e6c9
  1. 20
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  2. 26
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts
  3. 18
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  4. 26
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts

20
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -70,6 +70,7 @@
@tableSelectionDelete="tableSelectionDelete" @tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
@onChange="onChange"
> >
<template v-slot="{ row }"> <template v-slot="{ row }">
<el-date-picker <el-date-picker
@ -168,7 +169,8 @@ import {
ProductreceiptRequestDetailRules, ProductreceiptRequestDetailRules,
BackflushDetailRequest, BackflushDetailRequest,
ProductreceiptRequestLabel, ProductreceiptRequestLabel,
ProductreceiptRequestLabelRules ProductreceiptRequestLabelRules,
shiftList
} from './productreceiptRequestMain.data' } from './productreceiptRequestMain.data'
import { SupplierdeliverRequestPackage } from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts' import { SupplierdeliverRequestPackage } from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts'
// } from '../../../supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data' // } from '../../../supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data'
@ -238,6 +240,19 @@ const { getList: getDetailListBom } = detatableMethodsBom
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
const onChange = (field, cur) => {
if(field=='shift'){
//
let findItem = shiftList.list.find(item=>item['code'] == cur)
if(findItem){
formRef.value.formRef.setValues({
shiftName:findItem['name']
})
}
console.log('onChange',field, cur,findItem)
}
}
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => { nextTick(() => {
@ -270,6 +285,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
} else if ('productionLineCode' == formField) { } else if ('productionLineCode' == formField) {
//线 //线
tableData.value = [] tableData.value = []
} else if ('team' == formField) {
//
setV['teamName'] = val[0]['name']
} }
formRef.setValues(setV) formRef.setValues(setV)
} }

26
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

@ -42,7 +42,7 @@ const queryParams = {
} }
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData = data?.list[0] || {} const requestsettingData = data?.list[0] || {}
const shiftList = await ShiftApi.getShiftPage({available:'TRUE',pageSize: 500,pageNo: 1,sort:'',by: 'ASC'}) export const shiftList = await ShiftApi.getShiftPage({available:'TRUE',pageSize: 500,pageNo: 1,sort:'',by: 'ASC'})
console.log('shiftList',shiftList) console.log('shiftList',shiftList)
// 获取当前操作人的部门 // 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
@ -197,6 +197,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:false,
sortTableDefault: 1000, sortTableDefault: 1000,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -224,6 +225,16 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '班组',
field: 'teamName',
sort: 'custom',
table: {
width: 150
},
isForm:false,
sortTableDefault: 1001,
},
{ {
label: '班次', label: '班次',
field: 'shift', field: 'shift',
@ -231,13 +242,14 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:false,
sortTableDefault: 1001, sortTableDefault: 1001,
form: { form: {
component:'Select', component:'Select',
componentProps:{ componentProps:{
options:shiftList.list, options:shiftList.list,
optionsAlias: { optionsAlias: {
labelField: 'code', labelField: 'name',
valueField: 'code' valueField: 'code'
}, },
verificationParams: [{ verificationParams: [{
@ -276,6 +288,16 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
}, },
{
label: '班次',
field: 'shiftName',
sort: 'custom',
table: {
width: 150
},
isForm:false,
sortTableDefault: 1001
},
{ {
label: '收货类型', label: '收货类型',
field: 'type', field: 'type',

18
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -59,6 +59,7 @@
@tableSelectionDelete="tableSelectionDelete" @tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
@onChange="onChange"
> >
<template v-slot="{row}"> <template v-slot="{row}">
<el-date-picker v-bind:modelValue="row['expireTime']?addDay(row['produceDate'],row['expireTime']):dayjs('2099-12-31').valueOf()" <el-date-picker v-bind:modelValue="row['expireTime']?addDay(row['produceDate'],row['expireTime']):dayjs('2099-12-31').valueOf()"
@ -136,7 +137,7 @@ import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail, import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail,
ProductreceiptRequestDetailRules, BackflushDetailRequest, ProductreceiptRequestDetailRules, BackflushDetailRequest,
ProductreceiptRequestLabel,ProductreceiptRequestLabelRules } from './productreceiptAssembleRequestMain.data' ProductreceiptRequestLabel,ProductreceiptRequestLabelRules,shiftList } from './productreceiptAssembleRequestMain.data'
import { import {
SupplierdeliverRequestPackage SupplierdeliverRequestPackage
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts' } from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts'
@ -200,7 +201,19 @@ const { getList:getDetailListBom } = detatableMethodsBom
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
const onChange = (field, cur) => {
if(field=='shift'){
//
let findItem = shiftList.list.find(item=>item['code'] == cur)
if(findItem){
formRef.value.formRef.setValues({
shiftName:findItem['name']
})
}
console.log('onChange',field, cur,findItem)
}
}
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) console.log('searchTableSuccess',formField, searchField, val, formRef, type, row)
@ -234,6 +247,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}else if('productionLineCode'==formField){ }else if('productionLineCode'==formField){
 //线  //线
tableData.value = [] tableData.value = []
} else if ('team' == formField) {
//
setV['teamName'] = val[0]['name']
} }
formRef.setValues(setV) formRef.setValues(setV)
} }

26
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts

@ -43,7 +43,7 @@ const queryParams = {
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData =data?.list[0]||{} const requestsettingData =data?.list[0]||{}
const shiftList = await ShiftApi.getShiftPage({available:'TRUE',pageSize: 500,pageNo: 1,sort:'',by: 'ASC'}) export const shiftList = await ShiftApi.getShiftPage({available:'TRUE',pageSize: 500,pageNo: 1,sort:'',by: 'ASC'})
console.log('shiftList',shiftList) console.log('shiftList',shiftList)
// 获取当前操作人的部门 // 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
@ -206,6 +206,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:false,
sortTableDefault: 1001, sortTableDefault: 1001,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -233,6 +234,16 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '班组',
field: 'teamName',
sort: 'custom',
table: {
width: 150
},
isForm:false,
sortTableDefault: 1001,
},
{ {
label: '班次', label: '班次',
field: 'shift', field: 'shift',
@ -240,13 +251,14 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:false,
sortTableDefault: 1001, sortTableDefault: 1001,
form: { form: {
component:'Select', component:'Select',
componentProps:{ componentProps:{
options:shiftList.list, options:shiftList.list,
optionsAlias: { optionsAlias: {
labelField: 'code', labelField: 'name',
valueField: 'code' valueField: 'code'
}, },
verificationParams: [{ verificationParams: [{
@ -285,6 +297,16 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
}, },
{
label: '班次',
field: 'shiftName',
sort: 'custom',
table: {
width: 150
},
isForm:false,
sortTableDefault: 1001
},
{ {
label: '收货类型', label: '收货类型',
field: 'type', field: 'type',

Loading…
Cancel
Save