Преглед на файлове

入库出库新增批次号

hcf преди 2 години
родител
ревизия
f32c392fd1
променени са 3 файла, в които са добавени 20 реда и са изтрити 5 реда
  1. 6 0
      src/views/audit/outbound/index.vue
  2. 2 1
      src/views/audit/productManagement/index.vue
  3. 12 4
      src/views/audit/warehousing/index.vue

+ 6 - 0
src/views/audit/outbound/index.vue

@@ -282,6 +282,12 @@
 									title: '单位编码',
 									field: 'unitCode',
 								},
+								{
+									width: 150,
+									title: '批次号',
+									field: 'batchNumber',
+									component: 'by-input',
+								},
 								{
 									width: 80,
 									title: '库存',

+ 2 - 1
src/views/audit/productManagement/index.vue

@@ -1112,7 +1112,8 @@
 					// console.log('单规格表格数据 ==> ', data.maindataMaterialSkus);
 					for (let v of data.maindataMaterialSkus) {
 						if (!v.price) return this.$message.warning('物料价格必填');
-						if (parseInt(v.price) <= 0) return this.$message.warning('物料价格不能小于1');
+						// if (parseInt(v.price) <= 0) return this.$message.warning('物料价格不能小于1');
+						if (parseInt(v.price) < 0) return this.$message.warning('物料价格不能为负数');
 						if (!v.unit) return this.$message.warning('物料单位必填');
 						if (!v.stock) return this.$message.warning('物料库存必填');
 						if (parseInt(v.stock) <= 0) return this.$message.warning('物料库存必须为自然数');

+ 12 - 4
src/views/audit/warehousing/index.vue

@@ -39,6 +39,7 @@
 	import productModal from "../orderTask/components/productModal.vue";
 	import Focus from "../orderTask/components/focus.vue";
 	import towInOne from "./components/towInOne.vue";
+	import batchNumber from "./components/batchNumber.vue";
 	import BusinessType from "./components/businessType.vue";
 	import { add } from '@/benyun/utils/accuracy'
 	@Component({ components: { productModal } })
@@ -204,6 +205,12 @@
 										title: '单位编码',
 										field: 'unitCode',
 									},
+									{
+										width: 150,
+										title: '批次号',
+										field: 'batchNumber',
+										component: batchNumber
+									},
 									{
 										width: 110,
 										title: '数量',
@@ -858,7 +865,7 @@
 							}]
 						})
 					};
-					billConfig.tableConfig[0].table.columns[5] = {
+					billConfig.tableConfig[0].table.columns[6] = {
 						width: 120,
 						title: '数量',
 						field: 'number',
@@ -871,7 +878,7 @@
 							},
 						}
 					};
-					billConfig.tableConfig[0].table.columns[7] = {
+					billConfig.tableConfig[0].table.columns[8] = {
 						width: 90,
 						title: '单价',
 						field: 'unitPrice',
@@ -901,6 +908,7 @@
 			let loading = this.$loading({ target: '.main-container' });
 			api.single({ id: e.id }, 'supplyEntryOrder').then((res : any) => {
 				if (res.code === 200) {
+					res.data.batchNumber = ''
 					let parentData = res.data ? res.data : e;
 					this.baseInfo = parentData;
 					if (this.tabType === 'all' || this.tabType === 'draftsBox') {
@@ -985,12 +993,12 @@
 				if (e.submitState === 1) readonly.tool.tools = { return: true, returnSmt: true, print: true };
 			}
 			readonly.tableConfig[0].table.columns = readonly.tableConfig[0].table.columns.filter((v : any) => v.title != '操作');
-			readonly.tableConfig[0].table.columns[5] = {
+			readonly.tableConfig[0].table.columns[6] = {
 				width: 120,
 				title: '数量',
 				field: 'number',
 			};
-			readonly.tableConfig[0].table.columns[7] = {
+			readonly.tableConfig[0].table.columns[8] = {
 				width: 90,
 				title: '单价',
 				field: 'unitPrice',