diff --git a/jshERP-web/src/views/bill/modules/AllocationOutModal.vue b/jshERP-web/src/views/bill/modules/AllocationOutModal.vue index 379ca93b..c8260d88 100644 --- a/jshERP-web/src/views/bill/modules/AllocationOutModal.vue +++ b/jshERP-web/src/views/bill/modules/AllocationOutModal.vue @@ -90,8 +90,12 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '8%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '5%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '5%', type: FormTypes.input, readonly: true }, @@ -99,7 +103,9 @@ { title: '库存', key: 'stock', width: '5%', type: FormTypes.input, readonly: true }, { title: '调入仓库', key: 'anotherDepotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: []}, { title: '单位', key: 'unit', width: '4%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } diff --git a/jshERP-web/src/views/bill/modules/AssembleModal.vue b/jshERP-web/src/views/bill/modules/AssembleModal.vue index af0f80bb..c11f7d7a 100644 --- a/jshERP-web/src/views/bill/modules/AssembleModal.vue +++ b/jshERP-web/src/views/bill/modules/AssembleModal.vue @@ -92,15 +92,21 @@ dataSource: [], columns: [ { title: '商品类型',key: 'mType',width:'7%', type: FormTypes.input, readonly: true }, - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '8%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '5%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '5%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '6%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '5%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } diff --git a/jshERP-web/src/views/bill/modules/DisassembleModal.vue b/jshERP-web/src/views/bill/modules/DisassembleModal.vue index 76b2f830..bb3ed5fc 100644 --- a/jshERP-web/src/views/bill/modules/DisassembleModal.vue +++ b/jshERP-web/src/views/bill/modules/DisassembleModal.vue @@ -92,15 +92,21 @@ dataSource: [], columns: [ { title: '商品类型',key: 'mType',width:'7%', type: FormTypes.input, readonly: true }, - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '8%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '5%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '5%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '6%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '5%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } diff --git a/jshERP-web/src/views/bill/modules/OtherInModal.vue b/jshERP-web/src/views/bill/modules/OtherInModal.vue index 726e5e07..f82d6a3e 100644 --- a/jshERP-web/src/views/bill/modules/OtherInModal.vue +++ b/jshERP-web/src/views/bill/modules/OtherInModal.vue @@ -98,15 +98,21 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '8%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '5%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '5%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '6%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '5%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } diff --git a/jshERP-web/src/views/bill/modules/OtherOutModal.vue b/jshERP-web/src/views/bill/modules/OtherOutModal.vue index 464b0812..020a4bf8 100644 --- a/jshERP-web/src/views/bill/modules/OtherOutModal.vue +++ b/jshERP-web/src/views/bill/modules/OtherOutModal.vue @@ -98,15 +98,21 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '8%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '5%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '5%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '6%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '5%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } diff --git a/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue b/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue index 481ede2c..fdc85328 100644 --- a/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue +++ b/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue @@ -152,20 +152,26 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '8%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '5%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '5%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '6%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '5%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, - { title: '含税单价', key: 'taxUnitPrice', width: '6%', type: FormTypes.inputNumber}, + { title: '含税单价', key: 'taxUnitPrice', width: '6%', type: FormTypes.inputNumber, readonly: true}, { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, { title: '税率(%)', key: 'taxRate', width: '6%', type: FormTypes.inputNumber}, - { title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, statistics: true, readonly: true}, { title: '价税合计', key: 'taxLastMoney', width: '6%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } ] diff --git a/jshERP-web/src/views/bill/modules/PurchaseInModal.vue b/jshERP-web/src/views/bill/modules/PurchaseInModal.vue index 81a22dd7..2b43976c 100644 --- a/jshERP-web/src/views/bill/modules/PurchaseInModal.vue +++ b/jshERP-web/src/views/bill/modules/PurchaseInModal.vue @@ -161,15 +161,21 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '8%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '5%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '5%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '6%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '5%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, { title: '含税单价', key: 'taxUnitPrice', width: '6%', type: FormTypes.inputNumber, readonly: true}, { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, diff --git a/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue b/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue index d1994612..3bf904f2 100644 --- a/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue +++ b/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue @@ -101,15 +101,21 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '12%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '12%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '10%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '6%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '6%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '8%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '6%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '6%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '6%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '6%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '6%', type: FormTypes.inputNumber }, { title: '金额', key: 'allPrice', width: '6%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '8%', type: FormTypes.input} diff --git a/jshERP-web/src/views/bill/modules/RetailBackModal.vue b/jshERP-web/src/views/bill/modules/RetailBackModal.vue index 7588a558..c3c3bd16 100644 --- a/jshERP-web/src/views/bill/modules/RetailBackModal.vue +++ b/jshERP-web/src/views/bill/modules/RetailBackModal.vue @@ -131,15 +131,21 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '10%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '6%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '6%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '8%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '6%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '6%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '6%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '6%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '8%', type: FormTypes.inputNumber}, { title: '金额', key: 'allPrice', width: '8%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '9%', type: FormTypes.input } diff --git a/jshERP-web/src/views/bill/modules/RetailOutModal.vue b/jshERP-web/src/views/bill/modules/RetailOutModal.vue index 16aad958..ebad1e5d 100644 --- a/jshERP-web/src/views/bill/modules/RetailOutModal.vue +++ b/jshERP-web/src/views/bill/modules/RetailOutModal.vue @@ -138,15 +138,21 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '10%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '6%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '6%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '8%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '6%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '6%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '6%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '6%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '8%', type: FormTypes.inputNumber}, { title: '金额', key: 'allPrice', width: '8%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '9%', type: FormTypes.input } diff --git a/jshERP-web/src/views/bill/modules/SaleBackModal.vue b/jshERP-web/src/views/bill/modules/SaleBackModal.vue index af01cffc..3bcf182a 100644 --- a/jshERP-web/src/views/bill/modules/SaleBackModal.vue +++ b/jshERP-web/src/views/bill/modules/SaleBackModal.vue @@ -157,20 +157,26 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '8%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '5%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '5%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '6%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '5%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, - { title: '含税单价', key: 'taxUnitPrice', width: '6%', type: FormTypes.inputNumber}, + { title: '含税单价', key: 'taxUnitPrice', width: '6%', type: FormTypes.inputNumber, readonly: true}, { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, { title: '税率(%)', key: 'taxRate', width: '6%', type: FormTypes.inputNumber}, - { title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, statistics: true, readonly: true}, { title: '价税合计', key: 'taxLastMoney', width: '6%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } ] diff --git a/jshERP-web/src/views/bill/modules/SaleOrderModal.vue b/jshERP-web/src/views/bill/modules/SaleOrderModal.vue index b95b4b4a..e3398b9c 100644 --- a/jshERP-web/src/views/bill/modules/SaleOrderModal.vue +++ b/jshERP-web/src/views/bill/modules/SaleOrderModal.vue @@ -104,15 +104,21 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '8%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '5%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '5%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '6%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '5%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } diff --git a/jshERP-web/src/views/bill/modules/SaleOutModal.vue b/jshERP-web/src/views/bill/modules/SaleOutModal.vue index 8e3d4ef9..82721e5e 100644 --- a/jshERP-web/src/views/bill/modules/SaleOutModal.vue +++ b/jshERP-web/src/views/bill/modules/SaleOutModal.vue @@ -165,20 +165,26 @@ loading: false, dataSource: [], columns: [ - { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [] }, - { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh }, + { title: '仓库名称', key: 'depotId', width: '8%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '条码', key: 'barCode', width: '10%', type: FormTypes.popupJsh, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '名称', key: 'name', width: '8%', type: FormTypes.input, readonly: true }, { title: '规格', key: 'standard', width: '5%', type: FormTypes.input, readonly: true }, { title: '型号', key: 'model', width: '5%', type: FormTypes.input, readonly: true }, { title: '扩展信息', key: 'materialOther', width: '6%', type: FormTypes.input, readonly: true }, { title: '库存', key: 'stock', width: '5%', type: FormTypes.input, readonly: true }, { title: '单位', key: 'unit', width: '4%', type: FormTypes.input, readonly: true }, - { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true, + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '单价', key: 'unitPrice', width: '5%', type: FormTypes.inputNumber}, - { title: '含税单价', key: 'taxUnitPrice', width: '6%', type: FormTypes.inputNumber}, + { title: '含税单价', key: 'taxUnitPrice', width: '6%', type: FormTypes.inputNumber, readonly: true}, { title: '金额', key: 'allPrice', width: '5%', type: FormTypes.inputNumber, statistics: true }, { title: '税率(%)', key: 'taxRate', width: '6%', type: FormTypes.inputNumber}, - { title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, statistics: true }, + { title: '税额', key: 'taxMoney', width: '5%', type: FormTypes.inputNumber, statistics: true, readonly: true}, { title: '价税合计', key: 'taxLastMoney', width: '6%', type: FormTypes.inputNumber, statistics: true }, { title: '备注', key: 'remark', width: '5%', type: FormTypes.input } ] diff --git a/jshERP-web/src/views/financial/modules/AdvanceInModal.vue b/jshERP-web/src/views/financial/modules/AdvanceInModal.vue index 253611ed..04550c4e 100644 --- a/jshERP-web/src/views/financial/modules/AdvanceInModal.vue +++ b/jshERP-web/src/views/financial/modules/AdvanceInModal.vue @@ -113,8 +113,12 @@ loading: false, dataSource: [], columns: [ - { title: '账户名称',key: 'accountId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: []}, - { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}' }, + { title: '账户名称',key: 'accountId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}', + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '备注',key: 'remark', width: '30%', type: FormTypes.input, placeholder: '请选择${title}'} ] }, diff --git a/jshERP-web/src/views/financial/modules/GiroModal.vue b/jshERP-web/src/views/financial/modules/GiroModal.vue index e8839e82..f28ebbfe 100644 --- a/jshERP-web/src/views/financial/modules/GiroModal.vue +++ b/jshERP-web/src/views/financial/modules/GiroModal.vue @@ -57,7 +57,7 @@ - + {{ item.name }} @@ -66,7 +66,7 @@ - + @@ -113,8 +113,12 @@ loading: false, dataSource: [], columns: [ - { title: '账户名称',key: 'accountId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: []}, - { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}' }, + { title: '账户名称',key: 'accountId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}', + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '备注',key: 'remark', width: '30%', type: FormTypes.input, placeholder: '请选择${title}'} ] }, @@ -124,6 +128,16 @@ rules: [ { required: true, message: '请选择经手人!' } ] + }, + accountId:{ + rules: [ + { required: true, message: '请选择付款账户!' } + ] + }, + changeAmount:{ + rules: [ + { required: true, message: '请输入实付金额!' } + ] } }, url: { diff --git a/jshERP-web/src/views/financial/modules/ItemInModal.vue b/jshERP-web/src/views/financial/modules/ItemInModal.vue index 2761f657..c865de72 100644 --- a/jshERP-web/src/views/financial/modules/ItemInModal.vue +++ b/jshERP-web/src/views/financial/modules/ItemInModal.vue @@ -64,7 +64,7 @@ - + {{ item.name }} @@ -73,7 +73,7 @@ - + @@ -120,8 +120,12 @@ loading: false, dataSource: [], columns: [ - { title: '收入项目',key: 'inOutItemId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: []}, - { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}' }, + { title: '收入项目',key: 'inOutItemId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}', + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '备注',key: 'remark', width: '30%', type: FormTypes.input, placeholder: '请选择${title}'} ] }, @@ -136,6 +140,16 @@ rules: [ { required: true, message: '请选择经手人!' } ] + }, + accountId:{ + rules: [ + { required: true, message: '请选择收款账户!' } + ] + }, + changeAmount:{ + rules: [ + { required: true, message: '请输入收款金额!' } + ] } }, url: { diff --git a/jshERP-web/src/views/financial/modules/ItemOutModal.vue b/jshERP-web/src/views/financial/modules/ItemOutModal.vue index c00ec5fd..72cb4aec 100644 --- a/jshERP-web/src/views/financial/modules/ItemOutModal.vue +++ b/jshERP-web/src/views/financial/modules/ItemOutModal.vue @@ -64,7 +64,7 @@ - + {{ item.name }} @@ -73,7 +73,7 @@ - + @@ -120,8 +120,12 @@ loading: false, dataSource: [], columns: [ - { title: '支出项目',key: 'inOutItemId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: []}, - { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}' }, + { title: '支出项目',key: 'inOutItemId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}', + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '备注',key: 'remark', width: '30%', type: FormTypes.input, placeholder: '请选择${title}'} ] }, @@ -136,6 +140,16 @@ rules: [ { required: true, message: '请选择经手人!' } ] + }, + accountId:{ + rules: [ + { required: true, message: '请选择付款账户!' } + ] + }, + changeAmount:{ + rules: [ + { required: true, message: '请输入付款金额!' } + ] } }, url: { diff --git a/jshERP-web/src/views/financial/modules/MoneyInModal.vue b/jshERP-web/src/views/financial/modules/MoneyInModal.vue index 45a15503..3d9f4295 100644 --- a/jshERP-web/src/views/financial/modules/MoneyInModal.vue +++ b/jshERP-web/src/views/financial/modules/MoneyInModal.vue @@ -113,8 +113,12 @@ loading: false, dataSource: [], columns: [ - { title: '账户名称',key: 'accountId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: []}, - { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}' }, + { title: '账户名称',key: 'accountId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}', + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '备注',key: 'remark', width: '30%', type: FormTypes.input, placeholder: '请选择${title}'} ] }, diff --git a/jshERP-web/src/views/financial/modules/MoneyOutModal.vue b/jshERP-web/src/views/financial/modules/MoneyOutModal.vue index 4971c79f..57df3828 100644 --- a/jshERP-web/src/views/financial/modules/MoneyOutModal.vue +++ b/jshERP-web/src/views/financial/modules/MoneyOutModal.vue @@ -113,8 +113,12 @@ loading: false, dataSource: [], columns: [ - { title: '账户名称',key: 'accountId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: []}, - { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}' }, + { title: '账户名称',key: 'accountId',width: '20%', type: FormTypes.select, placeholder: '请选择${title}', options: [], + validateRules: [{ required: true, message: '${title}不能为空' }] + }, + { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}', + validateRules: [{ required: true, message: '${title}不能为空' }] + }, { title: '备注',key: 'remark', width: '30%', type: FormTypes.input, placeholder: '请选择${title}'} ] },