|
@ -1,5 +1,6 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' |
|
|
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' |
|
|
|
|
|
import { cloneDeep } from 'lodash-es' |
|
|
|
|
|
|
|
|
import { Itembasic } from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data"; |
|
|
import { Itembasic } from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data"; |
|
|
import * as ItembasicApi from "@/api/wms/itembasic"; |
|
|
import * as ItembasicApi from "@/api/wms/itembasic"; |
|
@ -7,21 +8,31 @@ import { Dock } from "@/views/wms/basicDataManage/factoryModeling/dock/dock.data |
|
|
import * as DockApi from "@/api/wms/dock"; |
|
|
import * as DockApi from "@/api/wms/dock"; |
|
|
import { Supplier } from "@/views/wms/basicDataManage/supplierManage/supplier/supplier.data"; |
|
|
import { Supplier } from "@/views/wms/basicDataManage/supplierManage/supplier/supplier.data"; |
|
|
import * as SupplierApi from "@/api/wms/supplier"; |
|
|
import * as SupplierApi from "@/api/wms/supplier"; |
|
|
import { SupplierdeliverRecordMain } from "@/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data"; |
|
|
import { SupplierdeliverRecordMain, SupplierdeliverRecordDetail } from "@/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data"; |
|
|
import * as SupplierdeliverRecordDetailApi from "@/api/wms/supplierdeliverRecordDetail"; |
|
|
import * as SupplierdeliverRecordDetailApi from "@/api/wms/supplierdeliverRecordDetail"; |
|
|
import * as ItemPackageApi from "@/api/wms/itempackage"; |
|
|
import * as ItemPackageApi from "@/api/wms/itempackage"; |
|
|
import {Itempackaging} from "@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data"; |
|
|
import { Itempackaging } from "@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data"; |
|
|
import {validatePositiveNumber} from "@/utils/validator"; |
|
|
import { validatePositiveNumber } from "@/utils/validator"; |
|
|
import { |
|
|
import { |
|
|
Productionlineitem |
|
|
Productionlineitem |
|
|
} from "@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data"; |
|
|
} from "@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data"; |
|
|
import {getProductionlineitemPage} from "@/api/wms/productionlineitem"; |
|
|
import { getProductionlineitemPage } from "@/api/wms/productionlineitem"; |
|
|
import * as ProductionlineitemApi from "@/api/wms/productionlineitem"; |
|
|
import * as ProductionlineitemApi from "@/api/wms/productionlineitem"; |
|
|
import { |
|
|
import { |
|
|
Supplieritem |
|
|
Supplieritem |
|
|
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data"; |
|
|
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data"; |
|
|
import {getSupplieritemPage} from "@/api/wms/supplieritem"; |
|
|
import { getSupplieritemPage } from "@/api/wms/supplieritem"; |
|
|
import * as SupplieritemApi from "@/api/wms/supplieritem"; |
|
|
import * as SupplieritemApi from "@/api/wms/supplieritem"; |
|
|
|
|
|
console.log(44, SupplierdeliverRecordMain.allSchemas) |
|
|
|
|
|
console.log(44, SupplierdeliverRecordDetail.allSchemas) |
|
|
|
|
|
// const SupplierdeliverRecordMainAllSchemas = cloneDeep(SupplierdeliverRecordMain.allSchemas)
|
|
|
|
|
|
// const SupplierdeliverRecordDetailAllSchemas = cloneDeep(SupplierdeliverRecordDetail.allSchemas)
|
|
|
|
|
|
// const allSchemas = cloneDeep(SupplierdeliverRecordDetail.allSchemas)
|
|
|
|
|
|
const allSchemas = ref(cloneDeep(SupplierdeliverRecordMain.allSchemas)) |
|
|
|
|
|
allSchemas.value.tableColumns = [ |
|
|
|
|
|
...SupplierdeliverRecordMain.allSchemas.tableColumns, |
|
|
|
|
|
...SupplierdeliverRecordDetail.allSchemas.tableMainColumns |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const PackageRules = reactive({ |
|
|
export const PackageRules = reactive({ |
|
@ -51,30 +62,30 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 180 |
|
|
width: 180 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
// {
|
|
|
label: '标签模板', |
|
|
// label: '标签模板',
|
|
|
field: 'template', |
|
|
// field: 'template',
|
|
|
sort: 'custom', |
|
|
// sort: 'custom',
|
|
|
table: { |
|
|
// table: {
|
|
|
width: 180 |
|
|
// width: 180
|
|
|
} |
|
|
// }
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
// {
|
|
|
label: '标签状态', |
|
|
// label: '标签状态',
|
|
|
field: 'status', |
|
|
// field: 'status',
|
|
|
sort: 'custom', |
|
|
// sort: 'custom',
|
|
|
isSearch: true, |
|
|
// isSearch: true,
|
|
|
dictType: DICT_TYPE.LABEL_STATUS, |
|
|
// dictType: DICT_TYPE.LABEL_STATUS,
|
|
|
dictClass: 'string', |
|
|
// dictClass: 'string',
|
|
|
table: { |
|
|
// table: {
|
|
|
width: 180 |
|
|
// width: 180
|
|
|
} |
|
|
// }
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '关联号', |
|
|
label: '关联号', |
|
|
field: 'relateNumber', |
|
|
field: 'relateNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 210 |
|
|
width: 210 |
|
|
} |
|
|
} |
|
@ -110,7 +121,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -140,7 +151,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '是否可用', |
|
|
label: '是否可用', |
|
|
field: 'available', |
|
|
field: 'available', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
|
|
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
|
@ -168,12 +179,12 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat : 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -206,7 +217,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -281,7 +292,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150, |
|
|
width: 150, |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -294,7 +305,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150, |
|
|
width: 150, |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -307,7 +318,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150, |
|
|
width: 150, |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -320,7 +331,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150, |
|
|
width: 150, |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -333,60 +344,71 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150, |
|
|
width: 150, |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '包装规格', |
|
|
label: '物料类型', |
|
|
field: 'packUnit', |
|
|
field: 'itemType', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
dictType: DICT_TYPE.ITEM_TYPE, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150, |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
|
|
|
component: 'Select', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
enterSearch: true, |
|
|
disabled: true |
|
|
disabled: true, |
|
|
} |
|
|
isSearchList: true, |
|
|
}, |
|
|
searchListPlaceholder: '请选择包装', |
|
|
|
|
|
searchField: 'packUnit', |
|
|
|
|
|
searchTitle: '物品包装信息', |
|
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, |
|
|
|
|
|
searchPage: ItemPackageApi.getItemPackagingPageByItemCode, |
|
|
|
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'itemCode', |
|
|
|
|
|
value: 'itemCode', |
|
|
|
|
|
message: '请选择物料代码', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
key: 'available', |
|
|
label: '物料状态', |
|
|
value: 'TRUE', |
|
|
field: 'status', |
|
|
isMainValue: false |
|
|
sort: 'custom', |
|
|
} |
|
|
dictType: DICT_TYPE.ITEM_STATUS, |
|
|
] |
|
|
dictClass: 'string', |
|
|
} |
|
|
table: { |
|
|
|
|
|
width: 120 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '包装数量', |
|
|
label: '受入号', |
|
|
field: 'packQty', |
|
|
field: 'receivedNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '计量单位', |
|
|
|
|
|
field: 'uom', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150, |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '数量', |
|
|
field: 'qty', |
|
|
field: 'qty', |
|
@ -404,18 +426,62 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '受入号', |
|
|
label: '批次', |
|
|
field: 'receivedNumber', |
|
|
field: 'batch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '包装规格', |
|
|
|
|
|
field: 'packUnit', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150, |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
enterSearch: true, |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
isSearchList: true, |
|
|
|
|
|
searchListPlaceholder: '请选择包装', |
|
|
|
|
|
searchField: 'packUnit', |
|
|
|
|
|
searchTitle: '物品包装信息', |
|
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, |
|
|
|
|
|
searchPage: ItemPackageApi.getItemPackagingPageByItemCode, |
|
|
|
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'itemCode', |
|
|
|
|
|
value: 'itemCode', |
|
|
|
|
|
message: '请选择物料代码', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '包装数量', |
|
|
|
|
|
field: 'packQty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150, |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '生产线区分', |
|
|
label: '生产线区分', |
|
@ -451,21 +517,19 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '物料状态', |
|
|
label: '', |
|
|
field: 'status', |
|
|
field: '', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
dictType: DICT_TYPE.ITEM_STATUS, |
|
|
isSearch: false, |
|
|
dictClass: 'string', |
|
|
|
|
|
table: { |
|
|
table: { |
|
|
width: 120 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
component: 'err' |
|
|
disabled: true |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '供应商代码', |
|
|
label: '供应商代码', |
|
|
field: 'supplierCode', |
|
|
field: 'supplierCode', |
|
@ -514,7 +578,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150, |
|
|
width: 150, |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -527,7 +591,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
valueFormat: 'YYYY-MM-DD', |
|
|
valueFormat: 'YYYY-MM-DD', |
|
|
type: 'daterange', |
|
|
type: 'daterange', |
|
|
disabled: false, |
|
|
disabled: false, |
|
@ -537,7 +601,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width: '100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'date', |
|
|
type: 'date', |
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -571,7 +635,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchListPlaceholder: '请选择发货单号', |
|
|
searchListPlaceholder: '请选择发货单号', |
|
|
searchField: 'asnNumber', |
|
|
searchField: 'asnNumber', |
|
|
searchTitle: '发货信息', |
|
|
searchTitle: '发货信息', |
|
|
searchAllSchemas: SupplierdeliverRecordMain.allSchemas, |
|
|
searchAllSchemas: allSchemas.value, |
|
|
searchPage: SupplierdeliverRecordDetailApi.getSupplierdeliverRecordDetailPage, |
|
|
searchPage: SupplierdeliverRecordDetailApi.getSupplierdeliverRecordDetailPage, |
|
|
searchCondition: [ |
|
|
searchCondition: [ |
|
|
{ |
|
|
{ |
|
@ -602,6 +666,34 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '采购订单号', |
|
|
|
|
|
field: 'poNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150, |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '订单行', |
|
|
|
|
|
field: 'poLine', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150, |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '采购订单备注', |
|
|
label: '采购订单备注', |
|
|
field: 'purchaseOrderRemarks', |
|
|
field: 'purchaseOrderRemarks', |
|
@ -611,10 +703,74 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150, |
|
|
width: 150, |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
label: '采购标包数量', |
|
|
|
|
|
field: 'supplierQty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150, |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '采购计量单位', |
|
|
|
|
|
field: 'supplierUom', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
isTableForm: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
type: 'Select', |
|
|
|
|
|
}, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '转换率', |
|
|
|
|
|
field: 'convertRate', |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
min: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
hiddenInMain: true, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '采购数量', |
|
|
|
|
|
field: 'purchaseQty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150, |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '月台', |
|
|
label: '月台', |
|
@ -650,42 +806,34 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '受入地', |
|
|
label: '默认收货库区', |
|
|
field: 'receivedLocation', |
|
|
field: 'defaultReceivingArea', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '默认收货库区', |
|
|
label: '受入地', |
|
|
field: 'defaultReceivingArea', |
|
|
field: 'receivedLocation', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
label: '批次', |
|
|
|
|
|
field: 'batch', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
//表单校验
|
|
|
//表单校验
|
|
@ -695,7 +843,7 @@ export const PackageRulesInventor = reactive({ |
|
|
], |
|
|
], |
|
|
qty: [ |
|
|
qty: [ |
|
|
{ required: true, message: '请输入数量', trigger: 'blur' }, |
|
|
{ required: true, message: '请输入数量', trigger: 'blur' }, |
|
|
{ validator:validatePositiveNumber, message: '必须是一个正数', trigger: 'change'} |
|
|
{ validator: validatePositiveNumber, message: '必须是一个正数', trigger: 'change' } |
|
|
], |
|
|
], |
|
|
toDockCode: [ |
|
|
toDockCode: [ |
|
|
{ required: true, message: '请选择月台代码', trigger: 'change' } |
|
|
{ required: true, message: '请选择月台代码', trigger: 'change' } |
|
|