Browse Source

制造件标签修改

intex_online20241228
叶佳兴 2 months ago
parent
commit
aef23ca43f
  1. 14
      src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
  2. 325
      src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts
  3. 98
      src/views/wms/inventoryManage/balance/balance.data.ts
  4. 6
      src/views/wms/inventoryManage/balance/index.vue
  5. 10
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  6. 101
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts
  7. 719
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts

14
src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue

@ -66,7 +66,7 @@ import * as BarbasicApi from '@/api/wms/barbasic'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as PackageApi from '@/api/wms/package'
import { formatTime } from '@/utils/index'
import * as Itempackaging from '@/api/wms/itempackage'
import * as itembasicApi from '@/api/wms/itembasic'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
@ -110,17 +110,21 @@ const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row
setV['produceDate'] = ''
setV['expireDate'] = ''
setV['validityDays'] = val[0]['validityDays']
await Itempackaging.getItempackagingPage({
itemCode: val[0]['code']
await itembasicApi.getItembasicPage({
code: val[0]['code']
}).then(res => {
if (res) {
if (res.list.length > 0) {
setV['packQty'] = res.list[0].packQty
setV['packUnit'] = res.list[0].packUnit
setV['packQty'] = res.list[0].defaultPackQty
setV['packUnit'] = res.list[0].defaultPackUnit
}
}
})
}
if(formField == 'packUnit') {
setV['packUnit'] = val[0].packUnit
setV['packQty'] = val[0].packQty
}
basicFormRef.setValues(setV)
})
}

325
src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts

@ -1,23 +1,27 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime'
import { Itembasic } from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data";
import * as ItembasicApi from "@/api/wms/itembasic";
import { Productionline } from "@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data";
import * as ProductionlineApi from "@/api/wms/productionline";
import { Shift } from "@/views/wms/basicDataManage/orderManage/shift/shift.data";
import * as ShiftApi from "@/api/wms/shift";
import { Team } from "@/views/wms/basicDataManage/orderManage/team/team.data";
import * as TeamApi from "@/api/wms/team";
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data'
import * as ProductionlineApi from '@/api/wms/productionline'
import { Shift } from '@/views/wms/basicDataManage/orderManage/shift/shift.data'
import * as ShiftApi from '@/api/wms/shift'
import { Team } from '@/views/wms/basicDataManage/orderManage/team/team.data'
import * as TeamApi from '@/api/wms/team'
import * as ItempackagingApi from '@/api/wms/itempackage'
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data'
// 表单校验
export const PackageRules = reactive({
number: [required],
itemCode: [required],
itemName: [required],
itemName: [required]
})
export const Package = useCrudSchemas(reactive<CrudSchema[]>([
export const Package = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '标签号',
field: 'number',
@ -25,7 +29,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
table: {
fixed: 'left',
width:210
width: 210
}
},
{
@ -43,7 +47,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
label: '标签模板',
field: 'template',
sort: 'custom',
isTable:false,
isTable: false,
table: {
width: 180
}
@ -52,7 +56,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
label: '标签状态',
field: 'status',
sort: 'custom',
isTable:false,
isTable: false,
isSearch: true,
dictType: DICT_TYPE.LABEL_STATUS,
dictClass: 'string',
@ -64,7 +68,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
label: '关联号',
field: 'relateNumber',
sort: 'custom',
isSearch:true,
isSearch: true,
table: {
width: 210
}
@ -74,7 +78,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
field: 'barcodeString',
sort: 'custom',
table: {
width: 380,
width: 380
}
},
// {
@ -130,12 +134,12 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
label: '是否可用',
field: 'available',
sort: 'custom',
isSearch:true,
isSearch: true,
isForm: false,
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
search: {
value: 'TRUE',
value: 'TRUE'
},
form: {
component: 'Switch',
@ -158,15 +162,15 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
@ -196,10 +200,10 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
valueFormat: 'x'
}
}
},
@ -222,16 +226,18 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'right'
}
}
]))
])
)
export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
export const PackageInventory = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
isSearch: true,
table: {
width: 150,
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
@ -243,23 +249,28 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料信息',
searchAllSchemas: Itembasic.allSchemas,
searchPage: ItembasicApi.getItembasicPage,
searchCondition: [{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}, {
},
{
key: 'enableMake',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
}
],
verificationParams: [
{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
@ -268,27 +279,27 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
field: 'itemName',
sort: 'custom',
table: {
width: 150,
width: 150
},
isForm:false
isForm: false
},
{
label: '物料描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150,
width: 150
},
isForm:false
isForm: false
},
{
label: '物料描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150,
width: 150
},
isForm:false
isForm: false
},
{
label: '批次',
@ -296,8 +307,8 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: true,
table: {
width: 150,
},
width: 150
}
},
// {
// label: '替代批次',
@ -315,24 +326,24 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
search: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
style: { width: '100%' },
valueFormat: 'YYYY-MM-DD',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')],
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
style: {width: '100%'},
style: { width: '100%' },
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
valueFormat: 'x'
}
},
table: {
width: 180,
},
width: 180
}
},
{
label: '有效期(日)',
@ -348,8 +359,8 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
value: 0
},
table: {
width: 150,
},
width: 150
}
},
{
label: '失效日期',
@ -359,7 +370,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
search: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
style: { width: '100%' },
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')],
@ -369,7 +380,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'DatePicker',
componentProps: {
style: {width: '100%'},
style: { width: '100%' },
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
@ -377,8 +388,8 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
}
},
table: {
width: 180,
},
width: 180
}
},
{
label: '计量单位',
@ -390,15 +401,15 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Select'
},
table: {
width: 150,
},
width: 150
}
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150,
width: 150
},
form: {
component: 'InputNumber',
@ -407,7 +418,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
precision: 6
},
value: 0
},
}
},
{
label: '替代计量单位',
@ -419,15 +430,15 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Select'
},
table: {
width: 150,
},
width: 150
}
},
{
label: '替代数量',
field: 'altQty',
sort: 'custom',
table: {
width: 150,
width: 150
},
form: {
component: 'InputNumber',
@ -436,49 +447,102 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
precision: 6
},
value: 0
},
}
},
{
label: '转换率',
field: 'convertRate',
sort: 'custom',
table: {
width: 150,
},
width: 150
}
},
{
label: '包装数量',
field: 'packQty',
label: '包装规格',
field: 'packUnit',
sort: 'custom',
isSearch: false,
table: {
width: 150,
},
form: {
componentProps:{
disabled: true
}
width: 120
},
isTable: false,
isTableForm: false,
isForm: true,
tableForm: {
disabled: true
}
enterSearch: true,
isInpuFocusShow: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchField: 'packUnit', // 查询弹窗赋值字段
searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
label: '包装规格',
field: 'packUnit',
sort: 'custom',
// dictType: DICT_TYPE.PACK_UNIT,
// dictClass: 'string', // 默认都是字符串类型其他暂不考虑
table: {
width: 150,
key: 'itemCode',
value: 'itemCode',
message: '请先选择物料代码!',
isMainValue: true
}
],
verificationParams: [
{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
},
form: {
component: 'Select',
componentProps:{
disabled: true
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchField: 'packUnit', // 查询弹窗赋值字段
searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'itemCode',
value: 'itemCode',
message: '请先选择物料代码!', // 当前置条件为空时 弹出信息提示
isMainValue: true
}
],
verificationParams: [
{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
tableForm: {
disabled: true
{
label: '包装数量',
field: 'packQty',
sort: 'custom',
table: {
width: 150
}
},
// {
@ -518,7 +582,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
field: 'productionLineCodePackage',
sort: 'custom',
table: {
width: 150,
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
@ -530,19 +594,23 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '生产线信息',
searchAllSchemas: Productionline.allSchemas,
searchPage: ProductionlineApi.getProductionlinePage,
searchCondition: [{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
}
],
verificationParams: [
{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
@ -551,7 +619,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
field: 'teamCode',
sort: 'custom',
table: {
width: 150,
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
@ -563,19 +631,23 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '生产线信息',
searchAllSchemas: Team.allSchemas,
searchPage: TeamApi.getTeamPage,
searchCondition: [{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
}
],
verificationParams: [
{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
@ -584,7 +656,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
field: 'shiftCode',
sort: 'custom',
table: {
width: 150,
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
@ -596,19 +668,23 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '生产线信息',
searchAllSchemas: Shift.allSchemas,
searchPage: ShiftApi.getShiftPage,
searchCondition: [{
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
}
],
verificationParams: [
{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
@ -621,38 +697,25 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'right'
}
}
]))
])
)
//表单校验
export const PackageRulesInventor = reactive({
itemCode: [
{ required: true, message: '请选择物料代码', trigger: 'change' }
],
batch: [
{ required: true, message: '请输入批次', trigger: 'blur' }
],
produceDate: [
{ required: true, message: '请选择生产日期', trigger: 'change' }
],
validityDays: [
{ required: true, message: '请输入有效期(日)', trigger: 'blur' }
],
expireDate: [
{ required: true, message: '请选择失效日期', trigger: 'change' }
],
uom: [
{ required: true, message: '请选择计量单位', trigger: 'change' }
],
qty: [
{ required: true, message: '请输入数量', trigger: 'blur' }
],
woNumber: [
{ required: true, message: '请选择生产订单号', trigger: 'change' }
],
woLine: [
{ required: true, message: '请选择生产订单行', trigger: 'change' }
itemCode: [{ required: true, message: '请选择物料代码', trigger: 'change' }],
batch: [{ required: true, message: '请输入批次', trigger: 'blur' }],
produceDate: [{ required: true, message: '请选择生产日期', trigger: 'change' }],
validityDays: [{ required: true, message: '请输入有效期(日)', trigger: 'blur' }],
expireDate: [{ required: true, message: '请选择失效日期', trigger: 'change' }],
uom: [{ required: true, message: '请选择计量单位', trigger: 'change' }],
qty: [{ required: true, message: '请输入数量', trigger: 'blur' }],
woNumber: [{ required: true, message: '请选择生产订单号', trigger: 'change' }],
woLine: [{ required: true, message: '请选择生产订单行', trigger: 'change' }],
productionLineCodePackage: [{ required: true, message: '请选择生产线代码', trigger: 'change' }],
packUnit: [
{ required: true, message: '请选择包装规格', trigger: ['change','blur'] }
],
productionLineCodePackage: [
{ required: true, message: '请选择生产线代码', trigger: 'change' }
packQty: [
{ required: true, message: '请输入包装数量', trigger: ['change','blur'] }
],
})

98
src/views/wms/inventoryManage/balance/balance.data.ts

@ -7,6 +7,9 @@ import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplie
import * as ProductionlineitemApi from '@/api/wms/productionlineitem'
import { Productionlineitem } from '@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data'
import { validatePositiveNumber } from "@/utils/validator";
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data'
import * as ItemPackageApi from '@/api/wms/itempackage/index'
/**
* @returns {Array}
*/
@ -902,20 +905,107 @@ export const BalancePackage = useCrudSchemas(reactive<CrudSchema[]>([
min: 0
}
},
// {
// label: '包装规格',
// field: 'packUnit',
// sort: 'custom',
// tableForm: {
// disabled: true
// }
// },
// {
// label: '标包数量',
// field: 'packQty',
// sort: 'custom',
// tableForm: {
// disabled: true
// }
// },
{
label: '包装规格',
field: 'packUnit',
sort: 'custom',
isSearch: false,
table: {
width: 120
},
isTable: false,
isTableForm: true,
isForm: true,
tableForm: {
disabled: true
enterSearch: true,
isInpuFocusShow: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchField: 'packUnit', // 查询弹窗赋值字段
searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItemPackageApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'itemCode',
value: 'itemCode',
message: '请先选择物料代码!',
isMainValue: true
}
],
verificationParams: [
{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchField: 'packUnit', // 查询弹窗赋值字段
searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItemPackageApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
label: '标包数量',
key: 'itemCode',
value: 'itemCode',
message: '请先选择物料代码!', // 当前置条件为空时 弹出信息提示
isMainValue: true
}
],
verificationParams: [
{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
{
label: '包装数量',
field: 'packQty',
sort: 'custom',
tableForm: {
disabled: true
table: {
width: 150
}
},
{

6
src/views/wms/inventoryManage/balance/index.vue

@ -475,7 +475,11 @@ const getLabelDetailPage = async (row, useToPackingNumber) => {
const searchTableSuccessLabel = async (formField, searchField, val, formRef, type, row) => {
console.log('批量打印',val)
if (type == 'tableForm') {
row[formField] = val[0][searchField]
// row[formField] = val[0][searchField]
if (formField === 'packUnit') {
row['packUnit'] = val[0]['packUnit']
row['packQty'] = val[0]['packQty']
}
} else {
const setV = {}
setV[formField] = val[0][searchField]

10
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -1706,7 +1706,6 @@ export const UnplannedreceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSc
table: {
width: 150,
componentProps: {
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
@ -1731,7 +1730,6 @@ export const UnplannedreceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSc
},
tableForm: {
enterSearch:true,
disabled: true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
@ -1760,14 +1758,6 @@ export const UnplannedreceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSc
table: {
width: 150
},
form: {
componentProps: {
disabled: true,
}
},
tableForm: {
disabled: true,
}
},
{
label: '标签生产线代码',

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

@ -1794,53 +1794,80 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
label: '包装规格',
field: 'packUnit',
sort: 'custom',
isSearch: false,
table: {
width: 150,
componentProps: {
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItemPackagingPageByItemCode,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
width: 120
},
isTable: false,
isTableForm: true,
isForm: true,
tableForm: {
enterSearch: true,
isInpuFocusShow: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchField: 'packUnit', // 查询弹窗赋值字段
searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItemPackageApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
},
tableForm: {
disabled: true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItemPackagingPageByItemCode,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
message: '请先选择物料代码!',
isMainValue: true
}
],
verificationParams: [
{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchField: 'packUnit', // 查询弹窗赋值字段
searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItemPackageApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
{
key: 'itemCode',
value: 'itemCode',
message: '请先选择物料代码!', // 当前置条件为空时 弹出信息提示
isMainValue: true
}
],
verificationParams: [
{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
{
label: '包装数量',
@ -1848,14 +1875,6 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true,
}
},
{
@ -2159,5 +2178,11 @@ export const ProductreceiptRequestLabelRules = reactive({
batch: [
{ required: true, message: '请选择批次', trigger: ['change','blur'] }
],
packUnit: [
{ required: true, message: '请选择包装规格', trigger: ['change','blur'] }
],
packQty: [
{ required: true, message: '请输入包装数量', trigger: ['change','blur'] }
],
})

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

File diff suppressed because it is too large
Loading…
Cancel
Save