From 250721d8b18c54c0d26e3c4bd54920531b15a73d Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 14 Dec 2024 11:39:40 +0800 Subject: [PATCH] =?UTF-8?q?YT-1669WMS=E4=B8=AD=E9=87=87=E8=B4=AD=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E8=8F=9C=E5=8D=95=E6=B2=A1=E6=9C=89=E6=8C=89=E7=85=A7?= =?UTF-8?q?=E9=9C=80=E6=B1=82=E8=BF=9B=E8=A1=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchaseMainWms/purchaseMain.data.ts | 746 +++++++++--------- 1 file changed, 367 insertions(+), 379 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data.ts index e3cf86b8e..b5d8f8c55 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data.ts @@ -1,5 +1,5 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' +import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' import * as SupplierApi from '@/api/wms/supplier' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import * as SupplieritemApi from '@/api/wms/supplieritem' @@ -17,11 +17,33 @@ export const PurchaseMain = useCrudSchemas(reactive([ 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([ 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,10 +128,11 @@ export const PurchaseMain = useCrudSchemas(reactive([ table: { width: 180 }, + sortTableDefault: 6, form: { component: 'DatePicker', componentProps: { - style: {width: '100%'}, + style: { width: '100%' }, type: 'date', dateFormat: 'YYYY-MM-DD', valueFormat: 'x', @@ -127,23 +146,33 @@ export const PurchaseMain = useCrudSchemas(reactive([ isTable: false, isForm: false, formatter: dateFormatter2, - detail:{ + detail: { dateFormat: 'YYYY-MM-DD' }, sort: 'custom', table: { width: 180 }, + sortTableDefault: 7, form: { component: 'DatePicker', componentProps: { - style: {width: '100%'}, + style: { width: '100%' }, type: 'date', dateFormat: 'YYYY-MM-DD', valueFormat: 'x', } }, }, + { + label: '版本', + field: 'version', + sort: 'custom', + isTable: false, + table: { + width: 150 + }, + }, { label: '税率', field: 'taxRate', @@ -151,10 +180,11 @@ export const PurchaseMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable: false, form: { component: 'InputNumber', componentProps: { - style: {width:'100%'}, + style: { width: '100%' }, min: 0, max: 1, precision: 6, @@ -162,52 +192,41 @@ export const PurchaseMain = useCrudSchemas(reactive([ } }, { - 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([ table: { width: 150 }, - isForm:false, + isForm: false, form: { component: 'Switch', value: 'TRUE', @@ -230,54 +249,27 @@ export const PurchaseMain = useCrudSchemas(reactive([ }, }, { - label: '是否可用', - field: 'available', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isTable: false, - sort: 'custom', - table: { - width: 150 - }, - 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', + label: '订单备注', + field: 'poRmks', sort: 'custom', - isTable:false, + isTable: false, + isForm: false, table: { width: 150 }, }, + { - label: '联系人电子邮件', - field: 'contactEmail', + label: '管理编号', + field: 'poContract', sort: 'custom', - isTable:false, + isTable: true, + isForm: false, table: { width: 150 }, }, - + { label: '业务类型', field: 'businessType', @@ -294,20 +286,52 @@ export const PurchaseMain = useCrudSchemas(reactive([ } } }, + + { + 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' @@ -320,7 +344,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ form: { component: 'DatePicker', componentProps: { - style: {width:'100%'}, + style: { width: '100%' }, type: 'datetime', dateFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', @@ -335,48 +359,17 @@ export const PurchaseMain = useCrudSchemas(reactive([ 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', @@ -394,7 +387,7 @@ export const PurchaseMainRules = reactive({ supplierCode: [ { required: true, message: '请输入供应商代码', trigger: 'change' } ], - type: [ + type: [ { required: true, message: '请选择订单类型', trigger: 'change' } ], status: [ @@ -403,27 +396,27 @@ export const PurchaseMainRules = reactive({ orderDate: [ { required: true, message: '请输入订单日期', trigger: 'change' } ], - taxRate: [ + taxRate: [ { required: true, message: '请输入税率', trigger: 'blur' } ], - version: [ + version: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], - contactName: [ + contactName: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], - contactPhone: [ + contactPhone: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' }, - { validator:validateHanset, message: '请输入正确的手机号', trigger: 'blur'} + { validator: validateHanset, message: '请输入正确的手机号', trigger: 'blur' } ], - contactEmail: [ + contactEmail: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' }, - { validator:validateEmail, message: '请输入正确的邮箱格式', trigger: 'blur'} + { validator: validateEmail, message: '请输入正确的邮箱格式', trigger: 'blur' } ], - remark: [ + remark: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], - available: [ + available: [ { required: true, message: '请选择是否可用', trigger: 'change' } ], }) @@ -432,41 +425,27 @@ export const PurchaseMainRules = reactive({ * @returns {Array} 采购订单子表 */ export const PurchaseDetail = useCrudSchemas(reactive([ - { - label: '单据号', - field: 'number', - isTableForm: false, - hiddenInMain:true, - table: { - width: 180 - }, - form: { - componentProps: { - disabled: true - } - } - }, { label: '行号', field: 'lineNumber', table: { width: 150 }, - tableForm:{ - disabled:true, + tableForm: { + disabled: true, isSearchList: true, // 开启查询弹窗 } }, { - label: '物料代码', + label: '品番', field: 'itemCode', isSearch: true, table: { width: 150 }, - tableForm:{ - disabled:true, - multiple:true,//多选 + tableForm: { + disabled: true, + multiple: true,//多选 isInpuFocusShow: true, searchListPlaceholder: '请选择供应商物料', searchField: 'itemCode', @@ -474,16 +453,16 @@ export const PurchaseDetail = useCrudSchemas(reactive([ searchAllSchemas: Supplieritem.allSchemas, searchPage: SupplieritemApi.selectItembasicTypeToSupplieritem, searchCondition: [{ - key:'supplierCode', - value:'supplierCode', + key: 'supplierCode', + value: 'supplierCode', message: '请填写供应商代码!', isMainValue: true - },{ + }, { key: 'available', value: 'TRUE', isMainValue: false - }], - verificationPage: SupplieritemApi.getSupplierItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法 + }], + verificationPage: SupplieritemApi.getSupplierItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法 isShowTableFormSearch: true, //tableForm下方是否出现输入框 isRepeat: true,//tableForm下方输入框是否可以重复添加该条数据 // 失去焦点校验参数 @@ -504,16 +483,16 @@ export const PurchaseDetail = useCrudSchemas(reactive([ searchField: 'itemCode', searchTitle: '供应商物料信息', searchAllSchemas: Supplieritem.allSchemas, - searchPage: SupplieritemApi.selectItembasicTypeToSupplieritem, - searchCondition: [{ - key:'supplierCode', - value:'supplierCode', - message: '请填写供应商代码!', - isMainValue: true - },{ - key: 'available', - value: 'TRUE', - isMainValue: false + searchPage: SupplieritemApi.selectItembasicTypeToSupplieritem, + searchCondition: [{ + key: 'supplierCode', + value: 'supplierCode', + message: '请填写供应商代码!', + isMainValue: true + }, { + key: 'available', + value: 'TRUE', + isMainValue: false }], // 失去焦点校验参数 verificationParams: [{ @@ -527,29 +506,18 @@ export const PurchaseDetail = useCrudSchemas(reactive([ } } }, - { - 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,68 +525,86 @@ export const PurchaseDetail = useCrudSchemas(reactive([ 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 }, - isTableForm: false, - isForm: false, - isTable: true, + form: { + component: 'InputNumber', + componentProps: { + disabled: false, + min: 1, + precision: 6 + } + }, + hiddenInMain: true, + tableForm: { + disabled: false, + hidden: false, + type: 'InputNumber', + min: 1, + precision: 6 + }, }, { - label: '库区描述', - field: 'areaDescription', + label: '采购计量单位', + field: 'purchaseStdUom', + sort: 'custom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, + isTableForm: true, + form: { + componentProps: { + disabled: true + } + }, + tableForm: { + disabled: true, + type: 'Select', + }, table: { width: 150 }, - isTableForm: false, - isForm: false, - isTable: true, }, - // { - // 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: { @@ -627,25 +613,29 @@ export const PurchaseDetail = useCrudSchemas(reactive([ } }, 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 }, @@ -659,13 +649,14 @@ export const PurchaseDetail = useCrudSchemas(reactive([ 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 }, @@ -673,46 +664,64 @@ export const PurchaseDetail = useCrudSchemas(reactive([ 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 }, - isTableForm: false, - isForm: 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: '默认收货库区', + field: 'defaultAreaCode', + table: { + width: 150 + }, + form: { + componentProps: { + disabled: true + } + }, + isTableForm: false, + isForm: false, + isTable: true, + }, + { + label: '已计划采购数量', + field: 'plannedPurchaseQty', table: { width: 150 }, - hiddenInMain:true, + hiddenInMain: true, form: { component: 'InputNumber', componentProps: { @@ -725,30 +734,30 @@ export const PurchaseDetail = useCrudSchemas(reactive([ isForm: false, }, { - label: t('ts.已收货数量'), - field: 'receivedQty', + label: '已发货采购数量', + field: 'shippedPurchaseQty', table: { width: 150 }, - hiddenInMain:true, + hiddenInMain: true, form: { component: 'InputNumber', - value: 0, componentProps: { min: 1, precision: 6 - } + }, + value: 1 }, isTableForm: false, - isForm: false + isForm: false, }, { - label: t('ts.已退货数量'), - field: 'returnedQty', + label: '已收货采购数量', + field: 'receivedPurchaseQty', table: { width: 150 }, - hiddenInMain:true, + hiddenInMain: true, form: { component: 'InputNumber', value: 0, @@ -761,15 +770,15 @@ export const PurchaseDetail = useCrudSchemas(reactive([ isForm: false }, { - label: t('ts.已上架数量'), - field: 'putawayQty', + label: '已退货采购数量', + field: 'returnedPurchaseQty', table: { width: 150 }, - hiddenInMain:true, + hiddenInMain: true, form: { component: 'InputNumber', - value: 1, + value: 0, componentProps: { min: 1, precision: 6 @@ -779,14 +788,15 @@ export const PurchaseDetail = useCrudSchemas(reactive([ isForm: false }, { - label: t('ts.单价'), - field: 'singlePrice', + label: "已上架采购数量", + field: 'putawayPurchaseQty', table: { width: 150 }, - hiddenInMain:true, + hiddenInMain: true, form: { component: 'InputNumber', + value: 1, componentProps: { min: 1, precision: 6 @@ -795,115 +805,102 @@ export const PurchaseDetail = useCrudSchemas(reactive([ isTableForm: false, isForm: false }, + + { - label: '金额', - field: 'amount', + 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: 'available', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isTable: true, + label: '项目代码', + field: 'projectCode', table: { width: 150 }, - hiddenInMain:true, - tableForm:{ - type:'Select', - default: 'TRUE', - inactiveValue: 'FALSE', - activeValue: 'TRUE' + hiddenInMain: true, + isTableForm: false, + isForm: false, + isTable: false, + }, + + { + label: '供应商计量数量', + field: 'supplierQty', + hiddenInMain: true, + table: { + width: 150 }, form: { - component: 'Switch', - value: 'TRUE', + component: 'InputNumber', componentProps: { - inactiveValue: 'FALSE', - activeValue: 'TRUE' + min: 1, + precision: 6 } - } + }, + isTableForm: false, + isForm: false, + isTable: false, + }, + { + label: '供应商计量单位', + field: 'supplierUom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: false, + hiddenInMain: true, + table: { + width: 150 + }, + isTableForm: false, + isForm: false, }, + { label: '超收百分比', field: 'overReceivingPercent', table: { width: 150 }, - hiddenInMain:true, + hiddenInMain: true, form: { component: 'InputNumber', componentProps: { min: 0 } }, - isTable:false, - isTableForm:false, + isTable: false, + isTableForm: false, tableForm: { type: 'InputNumber', 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', @@ -916,54 +913,45 @@ export const PurchaseDetail = useCrudSchemas(reactive([ // } // }, // { - // 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: '备注', - hiddenInMain:true, + hiddenInMain: true, field: 'remark', table: { width: 150 }, + isTable: false, }, { label: '操作', - hiddenInMain:true, + hiddenInMain: true, field: 'action', isDetail: false, - isForm: false , - isTable: false , + isForm: false, table: { width: 150, fixed: 'right' }, - isTableForm:false, + isTableForm: false, } ])) //表单校验 export const PurchaseDetailRules = reactive({ lineNumber: [ - { required: true, message: '请输入行号', trigger: 'blur' }, + { required: true, message: '请输入行号', trigger: 'blur' }, // { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], - packQty: [ + packQty: [ { required: true, message: '请输入包装数量', trigger: 'blur' } ], packUnit: [ @@ -972,40 +960,40 @@ export const PurchaseDetailRules = reactive({ convertRate: [ { required: true, message: '请输入转换率', trigger: 'blur' } ], - taxRate: [ + taxRate: [ { required: true, message: '请输入税率', trigger: 'blur' } ], - shippedQty: [ + shippedQty: [ { required: true, message: '请输入已发货数量', trigger: 'blur' } ], - receivedQty: [ + receivedQty: [ { required: true, message: '请输入已收货数量', trigger: 'blur' } ], - returnedQty: [ + returnedQty: [ { required: true, message: '请输入已退货数量', trigger: 'blur' } ], - putawayQty: [ + putawayQty: [ { required: true, message: '请输入已上架数量', trigger: 'blur' } ], - overReceivingPercent: [ + overReceivingPercent: [ { required: true, message: '请输入超收百分比', trigger: 'blur' } ], - orderQty: [ + orderQty: [ { required: true, message: '请输入订单数量', trigger: 'blur' } ], // uom: [ // { required: true, message: '请选择计量单位', trigger: 'change' } // ], - available: [ + available: [ { required: true, message: '请选择是否可用', trigger: 'change' } ], - nuumber: [ + nuumber: [ { required: true, message: '请输入单据号', trigger: 'blur' } ], - itemCode: [ + itemCode: [ { required: true, message: '请选择物料代码', trigger: 'change' } ], - remark: [ + remark: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], })