From 79c696b150f2ba38585b628443cf3698e2628845 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com>
Date: Tue, 28 Sep 2021 00:28:36 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E5=95=86=E5=93=81=E5=92=8C=E5=8D=95?=
=?UTF-8?q?=E6=8D=AE=E5=A2=9E=E5=8A=A0=E5=BA=8F=E5=88=97=E5=8F=B7=E5=92=8C?=
=?UTF-8?q?=E6=89=B9=E6=AC=A1=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/bill/dialog/BillDetail.vue | 94 +++++++++++--------
.../views/bill/modules/PurchaseBackModal.vue | 3 +
.../views/bill/modules/PurchaseInModal.vue | 3 +
.../src/views/bill/modules/SaleBackModal.vue | 3 +
.../src/views/bill/modules/SaleOutModal.vue | 3 +
.../src/views/material/MaterialList.vue | 9 +-
.../views/material/modules/MaterialModal.vue | 55 ++++++-----
7 files changed, 107 insertions(+), 63 deletions(-)
diff --git a/jshERP-web/src/views/bill/dialog/BillDetail.vue b/jshERP-web/src/views/bill/dialog/BillDetail.vue
index 99e144e1..7f28d2ad 100644
--- a/jshERP-web/src/views/bill/dialog/BillDetail.vue
+++ b/jshERP-web/src/views/bill/dialog/BillDetail.vue
@@ -884,12 +884,12 @@
//列定义
defColumns: [],
allocationOutColumns: [
- { title: '仓库名称', dataIndex: 'depotName', width: '8%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '调入仓库', dataIndex: 'anotherDepotName', width: '8%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
@@ -901,12 +901,12 @@
],
assembleColumns: [
{ title: '商品类型', dataIndex: 'mType',width:'7%'},
- { title: '仓库名称', dataIndex: 'depotName', width: '8%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
@@ -917,12 +917,12 @@
],
disassembleColumns: [
{ title: '商品类型', dataIndex: 'mType',width:'7%'},
- { title: '仓库名称', dataIndex: 'depotName', width: '8%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
@@ -932,12 +932,12 @@
{ title: '备注', dataIndex: 'remark', width: '5%'}
],
otherInColumns: [
- { title: '仓库名称', dataIndex: 'depotName', width: '8%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
@@ -947,12 +947,12 @@
{ title: '备注', dataIndex: 'remark', width: '5%'}
],
otherOutColumns: [
- { title: '仓库名称', dataIndex: 'depotName', width: '8%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
@@ -962,49 +962,55 @@
{ title: '备注', dataIndex: 'remark', width: '5%'}
],
purchaseBackColumns: [
- { title: '仓库名称', dataIndex: 'depotName', width: '7%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
+ { title: '序列号', dataIndex: 'snList', width: '4%'},
+ { title: '批号', dataIndex: 'batchNumber', width: '4%'},
+ { title: '有效期', dataIndex: 'expirationDate',width: '6%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
{ title: '数量', dataIndex: 'operNumber', width: '5%'},
{ title: '单价', dataIndex: 'unitPrice', width: '5%'},
{ title: '含税单价', dataIndex: 'taxUnitPrice', width: '5%'},
{ title: '金额', dataIndex: 'allPrice', width: '5%'},
{ title: '税率(%)', dataIndex: 'taxRate', width: '5%'},
- { title: '税额', dataIndex: 'taxMoney', width: '5%'},
+ { title: '税额', dataIndex: 'taxMoney', width: '4%'},
{ title: '价税合计', dataIndex: 'taxLastMoney', width: '5%'},
{ title: '备注', dataIndex: 'remark', width: '5%'}
],
purchaseInColumns: [
- { title: '仓库名称', dataIndex: 'depotName', width: '7%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
+ { title: '序列号', dataIndex: 'snList', width: '4%'},
+ { title: '批号', dataIndex: 'batchNumber', width: '4%'},
+ { title: '有效期', dataIndex: 'expirationDate',width: '6%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
{ title: '数量', dataIndex: 'operNumber', width: '5%'},
{ title: '单价', dataIndex: 'unitPrice', width: '5%'},
{ title: '含税单价', dataIndex: 'taxUnitPrice', width: '5%'},
{ title: '金额', dataIndex: 'allPrice', width: '5%'},
{ title: '税率(%)', dataIndex: 'taxRate', width: '5%'},
- { title: '税额', dataIndex: 'taxMoney', width: '5%'},
+ { title: '税额', dataIndex: 'taxMoney', width: '4%'},
{ title: '价税合计', dataIndex: 'taxLastMoney', width: '5%'},
{ title: '备注', dataIndex: 'remark', width: '5%'}
],
purchaseOrderColumns: [
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
@@ -1015,12 +1021,12 @@
{ title: '备注', dataIndex: 'remark', width: '5%'}
],
retailBackColumns: [
- { title: '仓库名称', dataIndex: 'depotName', width: '8%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
@@ -1030,12 +1036,12 @@
{ title: '备注', dataIndex: 'remark', width: '5%'}
],
retailOutColumns: [
- { title: '仓库名称', dataIndex: 'depotName', width: '8%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
@@ -1045,30 +1051,33 @@
{ title: '备注', dataIndex: 'remark', width: '5%'}
],
saleBackColumns: [
- { title: '仓库名称', dataIndex: 'depotName', width: '7%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
+ { title: '序列号', dataIndex: 'snList', width: '4%'},
+ { title: '批号', dataIndex: 'batchNumber', width: '4%'},
+ { title: '有效期', dataIndex: 'expirationDate',width: '6%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
{ title: '数量', dataIndex: 'operNumber', width: '5%'},
{ title: '单价', dataIndex: 'unitPrice', width: '5%'},
{ title: '含税单价', dataIndex: 'taxUnitPrice', width: '5%'},
{ title: '金额', dataIndex: 'allPrice', width: '5%'},
{ title: '税率(%)', dataIndex: 'taxRate', width: '5%'},
- { title: '税额', dataIndex: 'taxMoney', width: '5%'},
+ { title: '税额', dataIndex: 'taxMoney', width: '4%'},
{ title: '价税合计', dataIndex: 'taxLastMoney', width: '5%'},
{ title: '备注', dataIndex: 'remark', width: '5%'}
],
saleOrderColumns: [
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
@@ -1079,21 +1088,24 @@
{ title: '备注', dataIndex: 'remark', width: '5%'}
],
saleOutColumns: [
- { title: '仓库名称', dataIndex: 'depotName', width: '7%'},
- { title: '条码', dataIndex: 'barCode', width: '10%'},
+ { title: '仓库名称', dataIndex: 'depotName', width: '5%'},
+ { title: '条码', dataIndex: 'barCode', width: '8%'},
{ title: '名称', dataIndex: 'name', width: '8%'},
{ title: '规格', dataIndex: 'standard', width: '5%'},
{ title: '型号', dataIndex: 'model', width: '5%'},
- { title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
+ { title: '扩展信息', dataIndex: 'materialOther', width: '5%'},
{ title: '库存', dataIndex: 'stock', width: '5%'},
{ title: '单位', dataIndex: 'unit', width: '4%'},
+ { title: '序列号', dataIndex: 'snList', width: '4%'},
+ { title: '批号', dataIndex: 'batchNumber', width: '4%'},
+ { title: '有效期', dataIndex: 'expirationDate',width: '6%'},
{ title: '多属性', dataIndex: 'sku', width: '4%'},
{ title: '数量', dataIndex: 'operNumber', width: '5%'},
{ title: '单价', dataIndex: 'unitPrice', width: '5%'},
{ title: '含税单价', dataIndex: 'taxUnitPrice', width: '5%'},
{ title: '金额', dataIndex: 'allPrice', width: '5%'},
{ title: '税率(%)', dataIndex: 'taxRate', width: '5%'},
- { title: '税额', dataIndex: 'taxMoney', width: '5%'},
+ { title: '税额', dataIndex: 'taxMoney', width: '4%'},
{ title: '价税合计', dataIndex: 'taxLastMoney', width: '5%'},
{ title: '备注', dataIndex: 'remark', width: '5%'}
]
diff --git a/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue b/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
index a0f995ba..ff25557a 100644
--- a/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
+++ b/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
@@ -181,6 +181,9 @@
{ title: '扩展信息', key: 'materialOther', width: '5%', 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: 'snList', width: '5%', type: FormTypes.input },
+ { title: '批号', key: 'batchNumber', width: '5%', type: FormTypes.input },
+ { title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.input },
{ title: '多属性', key: 'sku', width: '4%', type: FormTypes.input, readonly: true },
{ title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true,
validateRules: [{ required: true, message: '${title}不能为空' }]
diff --git a/jshERP-web/src/views/bill/modules/PurchaseInModal.vue b/jshERP-web/src/views/bill/modules/PurchaseInModal.vue
index 1fbf7368..1577298a 100644
--- a/jshERP-web/src/views/bill/modules/PurchaseInModal.vue
+++ b/jshERP-web/src/views/bill/modules/PurchaseInModal.vue
@@ -182,6 +182,9 @@
{ title: '扩展信息', key: 'materialOther', width: '5%', 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: 'snList', width: '5%', type: FormTypes.input },
+ { title: '批号', key: 'batchNumber', width: '5%', type: FormTypes.input },
+ { title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.date },
{ title: '多属性', key: 'sku', width: '4%', type: FormTypes.input, readonly: true },
{ title: '原数量', key: 'preNumber', width: '4%', type: FormTypes.input, readonly: true },
{ title: '已入库', key: 'finishNumber', width: '4%', type: FormTypes.input, readonly: true },
diff --git a/jshERP-web/src/views/bill/modules/SaleBackModal.vue b/jshERP-web/src/views/bill/modules/SaleBackModal.vue
index 1ac58269..6678f2b4 100644
--- a/jshERP-web/src/views/bill/modules/SaleBackModal.vue
+++ b/jshERP-web/src/views/bill/modules/SaleBackModal.vue
@@ -186,6 +186,9 @@
{ title: '扩展信息', key: 'materialOther', width: '5%', 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: 'snList', width: '5%', type: FormTypes.input },
+ { title: '批号', key: 'batchNumber', width: '5%', type: FormTypes.input },
+ { title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.input },
{ title: '多属性', key: 'sku', width: '4%', type: FormTypes.input, readonly: true },
{ title: '数量', key: 'operNumber', width: '5%', type: FormTypes.inputNumber, statistics: true,
validateRules: [{ required: true, message: '${title}不能为空' }]
diff --git a/jshERP-web/src/views/bill/modules/SaleOutModal.vue b/jshERP-web/src/views/bill/modules/SaleOutModal.vue
index 001fcb79..88e10e34 100644
--- a/jshERP-web/src/views/bill/modules/SaleOutModal.vue
+++ b/jshERP-web/src/views/bill/modules/SaleOutModal.vue
@@ -186,6 +186,9 @@
{ title: '扩展信息', key: 'materialOther', width: '5%', 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: 'snList', width: '5%', type: FormTypes.input },
+ { title: '批号', key: 'batchNumber', width: '5%', type: FormTypes.input },
+ { title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.input },
{ title: '多属性', key: 'sku', width: '4%', type: FormTypes.input, readonly: true },
{ title: '原数量', key: 'preNumber', width: '4%', type: FormTypes.input, readonly: true },
{ title: '已入库', key: 'finishNumber', width: '4%', type: FormTypes.input, readonly: true },
diff --git a/jshERP-web/src/views/material/MaterialList.vue b/jshERP-web/src/views/material/MaterialList.vue
index bd48b1f7..a8bb7943 100644
--- a/jshERP-web/src/views/material/MaterialList.vue
+++ b/jshERP-web/src/views/material/MaterialList.vue
@@ -106,6 +106,10 @@
有
无
+
+ 有
+ 无
+
@@ -175,11 +179,14 @@
{title: '序列号', dataIndex: 'enableSerialNumber', width: '4%', align: "center",
scopedSlots: { customRender: 'customRenderEnableSerialNumber' }
},
+ {title: '批号', dataIndex: 'enableBatchNumber', width: '3%', align: "center",
+ scopedSlots: { customRender: 'customRenderEnableBatchNumber' }
+ },
{
title: '操作',
dataIndex: 'action',
align:"center",
- width: '8%',
+ width: '6%',
scopedSlots: { customRender: 'action' },
}
],
diff --git a/jshERP-web/src/views/material/modules/MaterialModal.vue b/jshERP-web/src/views/material/modules/MaterialModal.vue
index 916af857..9970e9cc 100644
--- a/jshERP-web/src/views/material/modules/MaterialModal.vue
+++ b/jshERP-web/src/views/material/modules/MaterialModal.vue
@@ -1,7 +1,7 @@
-
+
-
+
-
+
+
+
+
+
+
@@ -48,24 +53,19 @@
-
-
-
-
-
-
+
-
+
-
+
有
@@ -73,12 +73,25 @@
-
+
+
+
+ 有
+ 无
+
+
+
+
-
+
+
+
+
+
+
@@ -86,7 +99,7 @@
-
+
@@ -95,7 +108,7 @@
-
+
@@ -104,7 +117,7 @@
-
+
@@ -115,7 +128,7 @@
-
+
@@ -124,7 +137,7 @@
-
+
@@ -133,7 +146,7 @@
-
+
@@ -394,7 +407,7 @@
}
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model, 'name', 'standard', 'unit', 'unitId', 'model', 'color',
- 'categoryId','enableSerialNumber','safetyStock','remark','mfrs','otherField1','otherField2','otherField3'))
+ 'categoryId','enableSerialNumber','enableBatchNumber','expiryNum','safetyStock','remark','mfrs','otherField1','otherField2','otherField3'))
});
this.initMaterialAttribute()
// 加载子表数据