Browse Source

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

hella_online_20240904
yufei_wang 3 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"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
@onChange="onChange"
>
<template v-slot="{ row }">
<el-date-picker
@ -168,7 +169,8 @@ import {
ProductreceiptRequestDetailRules,
BackflushDetailRequest,
ProductreceiptRequestLabel,
ProductreceiptRequestLabelRules
ProductreceiptRequestLabelRules,
shiftList
} from './productreceiptRequestMain.data'
import { SupplierdeliverRequestPackage } from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts'
// } from '../../../supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data'
@ -238,6 +240,19 @@ const { getList: getDetailListBom } = detatableMethodsBom
const updataTableColumns = (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) => {
nextTick(() => {
@ -270,6 +285,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
} else if ('productionLineCode' == formField) {
//线
tableData.value = []
} else if ('team' == formField) {
//
setV['teamName'] = val[0]['name']
}
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 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)
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
@ -197,6 +197,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable:false,
sortTableDefault: 1000,
form: {
// labelMessage: '信息提示说明!!!',
@ -224,6 +225,16 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '班组',
field: 'teamName',
sort: 'custom',
table: {
width: 150
},
isForm:false,
sortTableDefault: 1001,
},
{
label: '班次',
field: 'shift',
@ -231,13 +242,14 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable:false,
sortTableDefault: 1001,
form: {
component:'Select',
componentProps:{
options:shiftList.list,
optionsAlias: {
labelField: 'code',
labelField: 'name',
valueField: 'code'
},
verificationParams: [{
@ -276,6 +288,16 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
// }
// }
},
{
label: '班次',
field: 'shiftName',
sort: 'custom',
table: {
width: 150
},
isForm:false,
sortTableDefault: 1001
},
{
label: '收货类型',
field: 'type',

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

@ -59,6 +59,7 @@
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
@onChange="onChange"
>
<template v-slot="{row}">
<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 { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail,
ProductreceiptRequestDetailRules, BackflushDetailRequest,
ProductreceiptRequestLabel,ProductreceiptRequestLabelRules } from './productreceiptAssembleRequestMain.data'
ProductreceiptRequestLabel,ProductreceiptRequestLabelRules,shiftList } from './productreceiptAssembleRequestMain.data'
import {
SupplierdeliverRequestPackage
} from '../../../purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts'
@ -200,7 +201,19 @@ const { getList:getDetailListBom } = detatableMethodsBom
const updataTableColumns = (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 ) => {
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){
 //线
tableData.value = []
} else if ('team' == formField) {
//
setV['teamName'] = val[0]['name']
}
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 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)
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
@ -206,6 +206,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable:false,
sortTableDefault: 1001,
form: {
// labelMessage: '信息提示说明!!!',
@ -233,6 +234,16 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '班组',
field: 'teamName',
sort: 'custom',
table: {
width: 150
},
isForm:false,
sortTableDefault: 1001,
},
{
label: '班次',
field: 'shift',
@ -240,13 +251,14 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable:false,
sortTableDefault: 1001,
form: {
component:'Select',
componentProps:{
options:shiftList.list,
optionsAlias: {
labelField: 'code',
labelField: 'name',
valueField: 'code'
},
verificationParams: [{
@ -285,6 +297,16 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
// }
// }
},
{
label: '班次',
field: 'shiftName',
sort: 'custom',
table: {
width: 150
},
isForm:false,
sortTableDefault: 1001
},
{
label: '收货类型',
field: 'type',

Loading…
Cancel
Save