|
|
@ -17,11 +17,33 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm: false, |
|
|
|
sortTableDefault: 1, |
|
|
|
table: { |
|
|
|
width: 180, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
dictType: DICT_TYPE.PURCHASE_ORDER_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isForm: false, |
|
|
|
isSearch: true, |
|
|
|
sortSearchDefault: 1000, |
|
|
|
sortTableDefault: 2, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
value: '1', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierCode', |
|
|
@ -54,54 +76,50 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isFormModel: true |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单类型', |
|
|
|
field: 'type', |
|
|
|
dictType: DICT_TYPE.PURCHASE_ORDER_TYPE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isSearch: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
sortTableDefault: 3, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '行类型', |
|
|
|
field: 'poLineType', |
|
|
|
label: '供应商名称', |
|
|
|
field: 'supplierName', |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isSearch: true, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
sort: 'custom', |
|
|
|
sortTableDefault:4, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
dictType: DICT_TYPE.PURCHASE_ORDER_STATUS, |
|
|
|
label: '订单类型', |
|
|
|
field: 'type', |
|
|
|
dictType: DICT_TYPE.PURCHASE_ORDER_TYPE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isForm:false, |
|
|
|
isSearch: true, |
|
|
|
sortSearchDefault:1000, |
|
|
|
sort: 'custom', |
|
|
|
sortTableDefault: 5, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
value: '1', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '行类型',
|
|
|
|
// field: 'poLineType',
|
|
|
|
// isTable: false,
|
|
|
|
// isSearch: true,
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
|
|
|
|
{ |
|
|
|
label: '订单日期', |
|
|
|
field: 'orderDate', |
|
|
|
isTable: true, |
|
|
|
isTable: false, |
|
|
|
formatter: dateFormatter2, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
@ -110,6 +128,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
sortTableDefault: 6, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -134,6 +153,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
sortTableDefault: 7, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -144,6 +164,15 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '版本', |
|
|
|
field: 'version', |
|
|
|
sort: 'custom', |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '税率', |
|
|
|
field: 'taxRate', |
|
|
@ -151,6 +180,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
@ -162,52 +192,41 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单备注', |
|
|
|
field: 'poRmks', |
|
|
|
label: '支付周期', |
|
|
|
field: 'paymentCycle', |
|
|
|
sort: 'custom', |
|
|
|
isTable:true, |
|
|
|
isForm:false, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '管理编号', |
|
|
|
field: 'poContract', |
|
|
|
label: '联系人姓名', |
|
|
|
field: 'contactName', |
|
|
|
sort: 'custom', |
|
|
|
isTable:true, |
|
|
|
isForm:false, |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '版本', |
|
|
|
field: 'version', |
|
|
|
label: '联系人电话', |
|
|
|
field: 'contactPhone', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '当前阶段', |
|
|
|
field: 'currentStage', |
|
|
|
label: '联系人电子邮件', |
|
|
|
field: 'contactEmail', |
|
|
|
sort: 'custom', |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
min: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isTable:false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否寄存订单', |
|
|
@ -219,7 +238,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm:false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
@ -230,49 +249,22 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: false, |
|
|
|
label: '订单备注', |
|
|
|
field: 'poRmks', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm:false, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '联系人姓名', |
|
|
|
field: 'contactName', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '联系人电话', |
|
|
|
field: 'contactPhone', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '联系人电子邮件', |
|
|
|
field: 'contactEmail', |
|
|
|
label: '管理编号', |
|
|
|
field: 'poContract', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isTable:true, |
|
|
|
isForm:false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
@ -294,20 +286,52 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '数据来源区分', |
|
|
|
field: 'dataSource', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
form: { |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '当前阶段',
|
|
|
|
// field: 'currentStage',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// component: 'InputNumber',
|
|
|
|
// componentProps: {
|
|
|
|
// style: {width:'100%'},
|
|
|
|
// min: 0
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// isTableForm: false,
|
|
|
|
// isForm: false,
|
|
|
|
// isTable:false,
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
isTable:false, |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
sortTableDefault: 1000, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
isTable:false, |
|
|
|
isTable:true, |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
@ -335,48 +359,17 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
} |
|
|
|
}, |
|
|
|
sortTableDefault: 1000, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新者', |
|
|
|
field: 'updater', |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
isTable:false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
|
field: 'updateTime', |
|
|
|
isTable: false, |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// {
|
|
|
|
// label: '备注',
|
|
|
|
// field: 'remark',
|
|
|
|
// isTable: false,
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
@ -432,33 +425,20 @@ export const PurchaseMainRules = reactive({ |
|
|
|
* @returns {Array} 采购订单子表 |
|
|
|
*/ |
|
|
|
export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
isTableForm: false, |
|
|
|
hiddenInMain:true, |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '行号', |
|
|
|
field: 'lineNumber', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
label: '品番', |
|
|
|
field: 'itemCode', |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
@ -527,29 +507,18 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计量单位', |
|
|
|
field: 'uom', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
{ |
|
|
|
label: '行类型', |
|
|
|
field: 'poLineType', |
|
|
|
isTable: true, |
|
|
|
isTableForm:true, |
|
|
|
form:{ |
|
|
|
componentProps: { |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true, |
|
|
|
type:'Select', |
|
|
|
}, |
|
|
|
isSearch: false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单数量', |
|
|
|
label: '采购订单数量', |
|
|
|
field: 'orderQty', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -557,78 +526,86 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
disabled:false, |
|
|
|
disabled: false, |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled:false, |
|
|
|
hidden:false, |
|
|
|
disabled: false, |
|
|
|
hidden: false, |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '默认收货库区', |
|
|
|
field: 'defaultAreaCode', |
|
|
|
label: '采购标包数量', |
|
|
|
field: 'purchaseStdQty', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
disabled: false, |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isTable: true, |
|
|
|
hiddenInMain: true, |
|
|
|
tableForm: { |
|
|
|
disabled: false, |
|
|
|
hidden: false, |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库区描述', |
|
|
|
field: 'areaDescription', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
label: '采购计量单位', |
|
|
|
field: 'purchaseStdUom', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isTableForm: true, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isTable: true, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
type: 'Select', |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: 'ERP库位',
|
|
|
|
// field: 'erpLocationCode',
|
|
|
|
// dictType : DICT_TYPE.ERP_LOCATION,
|
|
|
|
// dictClass: 'string',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// hiddenInMain:true,
|
|
|
|
// isTableForm: false,
|
|
|
|
// isForm: false,
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '项目代码', |
|
|
|
field: 'projectCode', |
|
|
|
label: '转换率', |
|
|
|
field: 'convertRate', |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain:true, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装数量', |
|
|
|
field: 'packQty', |
|
|
|
hiddenInMain:true, |
|
|
|
label: t('ts.单价'), |
|
|
|
field: 'singlePrice', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
@ -637,25 +614,29 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装规格', |
|
|
|
hiddenInMain:true, |
|
|
|
field: 'packUnit', |
|
|
|
// dictType: DICT_TYPE.PACK_UNIT,
|
|
|
|
// dictClass: 'string',
|
|
|
|
isTable: true, |
|
|
|
label: '金额', |
|
|
|
field: 'amount', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商计量数量', |
|
|
|
field: 'supplierQty', |
|
|
|
hiddenInMain:true, |
|
|
|
label: '库存标包数量', |
|
|
|
field: 'packQty', |
|
|
|
hiddenInMain: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
@ -669,13 +650,14 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '供应商计量单位', |
|
|
|
field: 'supplierUom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
label: '库存标包规格', |
|
|
|
hiddenInMain: true, |
|
|
|
field: 'packUnit', |
|
|
|
// dictType: DICT_TYPE.PACK_UNIT,
|
|
|
|
// dictClass: 'string',
|
|
|
|
isTable: true, |
|
|
|
hiddenInMain:true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
@ -683,42 +665,60 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '转换率', |
|
|
|
field: 'convertRate', |
|
|
|
label: '库存计量单位', |
|
|
|
field: 'uom', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isTableForm: true, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0 |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
hiddenInMain:true, |
|
|
|
table: { |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
type: 'Select', |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '默认收货库区', |
|
|
|
field: 'defaultAreaCode', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: t('ts.已计划数量'),
|
|
|
|
// field: 'plannedQty',
|
|
|
|
// label: 'ERP库位',
|
|
|
|
// field: 'erpLocationCode',
|
|
|
|
// dictType : DICT_TYPE.ERP_LOCATION,
|
|
|
|
// dictClass: 'string',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// hiddenInMain:true,
|
|
|
|
// form: {
|
|
|
|
// component: 'InputNumber',
|
|
|
|
// componentProps: {
|
|
|
|
// min: 1,
|
|
|
|
// precision: 6
|
|
|
|
// },
|
|
|
|
// value: 1
|
|
|
|
// },
|
|
|
|
// isTableForm: false,
|
|
|
|
// isForm: false,
|
|
|
|
// isTable: false,
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: t('ts.已发货数量'), |
|
|
|
field: 'shippedQty', |
|
|
|
label: t('ts.已计划数量'), |
|
|
|
field: 'plannedPurchaseQty', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
@ -734,13 +734,31 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.已发货数量'), |
|
|
|
field: 'shippedPurchaseQty', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
value: 1 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.已收货数量'), |
|
|
|
field: 'receivedQty', |
|
|
|
field: 'receivedPurchaseQty', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain:true, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0, |
|
|
@ -754,11 +772,11 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.已退货数量'), |
|
|
|
field: 'returnedQty', |
|
|
|
field: 'returnedPurchaseQty', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain:true, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0, |
|
|
@ -772,11 +790,11 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.已上架数量'), |
|
|
|
field: 'putawayQty', |
|
|
|
field: 'putawayPurchaseQty', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain:true, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
value: 1, |
|
|
@ -788,30 +806,44 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
label: t('ts.单价'), |
|
|
|
field: 'singlePrice', |
|
|
|
label: '库区描述', |
|
|
|
field: 'areaDescription', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain:true, |
|
|
|
hiddenInMain: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '金额', |
|
|
|
field: 'amount', |
|
|
|
label: '项目代码', |
|
|
|
field: 'projectCode', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '供应商计量数量', |
|
|
|
field: 'supplierQty', |
|
|
|
hiddenInMain:true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
@ -820,33 +852,23 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
label: '供应商计量单位', |
|
|
|
field: 'supplierUom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isTable: false, |
|
|
|
hiddenInMain:true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain:true, |
|
|
|
tableForm:{ |
|
|
|
type:'Select', |
|
|
|
default: 'TRUE', |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
} |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '超收百分比', |
|
|
|
field: 'overReceivingPercent', |
|
|
@ -867,53 +889,19 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
min: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
isTable: true, |
|
|
|
isTableForm: false, |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
hiddenInMain:false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
isTableForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
hiddenInMain:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '最后更新时间',
|
|
|
|
// field: 'updateTime',
|
|
|
|
// isTableForm: false,
|
|
|
|
// label: '创建时间',
|
|
|
|
// field: 'createTime',
|
|
|
|
// isTable: true,
|
|
|
|
// hiddenInMain:false,
|
|
|
|
// isTableForm: false,
|
|
|
|
// formatter: dateFormatter,
|
|
|
|
// detail: {
|
|
|
|
// dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
|
|
// },
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// width: 180
|
|
|
|
// },
|
|
|
|
// hiddenInMain:false,
|
|
|
|
// isForm: false,
|
|
|
|
// form: {
|
|
|
|
// component: 'DatePicker',
|
|
|
@ -926,23 +914,14 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '最后更新者',
|
|
|
|
// field: 'updater',
|
|
|
|
// label: '创建者',
|
|
|
|
// field: 'creator',
|
|
|
|
// isTableForm: false,
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// hiddenInMain:false,
|
|
|
|
// isForm: false,
|
|
|
|
// // form: {
|
|
|
|
// // component: 'DatePicker',
|
|
|
|
// // componentProps: {
|
|
|
|
// // style: {width:'100%'},
|
|
|
|
// // type: 'datetime',
|
|
|
|
// // dateFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
// // valueFormat: 'x',
|
|
|
|
// // }
|
|
|
|
// // }
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '备注', |
|
|
@ -951,6 +930,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|