cmy 1 rok temu
rodzic
commit
d47fe5bbb8
2 zmienionych plików z 37 dodań i 37 usunięć
  1. BIN
      public/favicon.ico
  2. 37 37
      src/pages/product/productAdd/index.vue

BIN
public/favicon.ico


+ 37 - 37
src/pages/product/productAdd/index.vue

@@ -526,11 +526,11 @@
 								<InputNumber v-model="oneFormBatch[0].uint_to_erp_unit" :min="0" class="priceBox">
 								</InputNumber>
 							</template>
-							<template slot-scope="{ row, index }" slot="stock">
+							<!-- <template slot-scope="{ row, index }" slot="stock">
 								<InputNumber v-model="oneFormBatch[0].stock" :min="0"
 									:disabled="formValidate.product_type == 1 || openErp" class="priceBox">
 								</InputNumber>
-							</template>
+							</template> -->
 							<template slot-scope="{ row, index }" slot="bar_code">
 								<Input v-model="oneFormBatch[0].bar_code"></Input>
 							</template>
@@ -545,14 +545,14 @@
 								<InputNumber v-model="oneFormBatch[0].volume" :step="0.1" :min="0" class="priceBox">
 								</InputNumber>
 							</template>
-							<template slot-scope="{ row, index }" slot="fictitious"
+							<!-- <template slot-scope="{ row, index }" slot="fictitious"
 								v-if="formValidate.product_type == 1">
 								<Button v-if="
 					        !row.virtual_list && !row.stock
 					      " @click="addVirtual(0, 'oneFormBatch')">添加卡密</Button>
 								<span v-else class="seeCatMy"
 									@click="seeVirtual(oneFormBatch[0], 'oneFormBatch', 0)">已设置</span>
-							</template>
+							</template> -->
 							<template slot-scope="{ row, index }" slot="action">
 								<a @click="batchAdd">批量设置</a>
 								<Divider type="vertical" />
@@ -612,18 +612,18 @@
 								<InputNumber v-model="manyFormValidate[index].uint_to_erp_unit" :min="0"
 									class="priceBox"></InputNumber>
 							</template>
-							<template slot-scope="{ row, index }" slot="stock">
+							<!-- <template slot-scope="{ row, index }" slot="stock">
 								<InputNumber v-model="manyFormValidate[index].stock" :min="0" :precision="0"
 									:disabled="formValidate.product_type == 1 || openErp" class="priceBox">
 								</InputNumber>
-							</template>
-							<template slot-scope="{ row, index }" slot="fictitious"
+							</template> -->
+							<!-- <template slot-scope="{ row, index }" slot="fictitious"
 								v-if="formValidate.product_type == 1">
 								<Button v-if="(!row.virtual_list || !row.virtual_list.length) && !row.stock"
 									@click="addVirtual(index, 'manyFormValidate')">添加卡密</Button>
 								<span v-else class="seeCatMy"
 									@click="seeVirtual(row, 'manyFormValidate', index)">已设置</span>
-							</template>
+							</template> -->
 							<template slot-scope="{ row, index }" slot="bar_code">
 								<Input v-model="manyFormValidate[index].bar_code"></Input>
 							</template>
@@ -747,11 +747,11 @@
 						</Col>
 						<Col span="24" class="asterisk">
 						<div class="asteriskInfo">*</div>
-						<FormItem label="库存:">
+						<!-- <FormItem label="库存:">
 							<InputNumber v-model="oneFormValidate[0].stock" :min="0" :max="99999999"
 								:disabled="formValidate.product_type == 1 || openErp" :precision="0" v-width="'50%'">
 							</InputNumber>
-						</FormItem>
+						</FormItem> -->
 						</Col>
 						<Col span="24" v-if="formValidate.product_type != 4">
 						<FormItem label="商品条形码:">
@@ -776,7 +776,7 @@
 							</InputNumber>
 						</FormItem>
 						</Col>
-						<Col span="24" v-if="formValidate.product_type == 1">
+						<!-- <Col span="24" v-if="formValidate.product_type == 1">
 						<FormItem label="卡密设置:">
 							<Button v-if="
 				        !oneFormValidate[0].virtual_list.length
@@ -785,7 +785,7 @@
 							<span v-else class="seeCatMy"
 								@click="seeVirtual(oneFormValidate[0], 'oneFormValidate', 0)">已设置</span>
 						</FormItem>
-						</Col>
+						</Col> -->
 					</div>
 				</Row>
 				<!-- 商品详情 -->
@@ -930,9 +930,9 @@
                   }}</template> <template slot-scope="{ row, index }" slot="uint_to_erp_unit">{{
                     oneFormValidate[0].uint_to_erp_unit
                   }}</template>
-							<template slot-scope="{ row, index }" slot="stock">{{
+							<!-- <template slot-scope="{ row, index }" slot="stock">{{
                     oneFormValidate[0].stock
-                  }}</template>
+                  }}</template> -->
 							<template slot-scope="{ row, index }" slot="bar_code">{{
                     oneFormValidate[0].bar_code
                   }}</template>
@@ -1002,9 +1002,9 @@
 							<template slot-scope="{ row, index }" slot="uint_to_erp_unit">{{
 				    manyFormValidate[index].uint_to_erp_unit
 				  }}</template>
-							<template slot-scope="{ row, index }" slot="stock">{{
+							<!-- <template slot-scope="{ row, index }" slot="stock">{{
                     manyFormValidate[index].stock
-                  }}</template>
+                  }}</template> -->
 							<template slot-scope="{ row, index }" slot="bar_code">{{
                     manyFormValidate[index].bar_code
                   }}</template>
@@ -1728,7 +1728,7 @@
 					erp_product_id: 0,
 					unit: 0,
 					uint_to_erp_unit: 0,
-					stock: 0,
+					// stock: 0,
 					bar_code: "",
 					code: "",
 					weight: 0,
@@ -1790,12 +1790,12 @@
 						align: "center",
 						minWidth: 95,
 					},
-					{
-						title: "库存",
-						slot: "stock",
-						align: "center",
-						minWidth: 95,
-					},
+					// {
+					// 	title: "库存",
+					// 	slot: "stock",
+					// 	align: "center",
+					// 	minWidth: 95,
+					// },
 					{
 						title: "商品条形码",
 						slot: "bar_code",
@@ -1902,7 +1902,7 @@
 						erp_product_id: 0,
 						unit: '',
 						uint_to_erp_unit: 0,
-						stock: 0,
+						// stock: 0,
 						bar_code: "",
 						code: "",
 					}, ],
@@ -1933,7 +1933,7 @@
 					erp_product_id: 0,
 					unit: '',
 					uint_to_erp_unit: 0,
-					stock: 0,
+					// stock: 0,
 					bar_code: "",
 					code: "",
 					weight: 0,
@@ -2258,7 +2258,7 @@
 									erp_product_id: 0,
 									unit: '',
 									uint_to_erp_unit: 0,
-									stock: 0,
+									// stock: 0,
 									bar_code: "",
 									code: "",
 									weight: 0,
@@ -2416,7 +2416,7 @@
 				this.virtualListClear();
 				this.$refs.addCarMy.fixedCar = {
 					disk_info: '',
-					stock: 0
+					// stock: 0
 				}
 				this.$refs.addCarMy.cartMyType = 1;
 				this.carMyShow = true;
@@ -2425,11 +2425,11 @@
 			fixdBtn(e) {
 				if (e.cartMyType == 1) {
 					this.$set(this[this.tabName][this.tabIndex], "disk_info", e.disk_info);
-					this.$set(this[this.tabName][this.tabIndex], "stock", Number(e.stock));
+					// this.$set(this[this.tabName][this.tabIndex], "stock", Number(e.stock));
 					this[this.tabName][this.tabIndex].virtual_list = [];
 				} else {
 					this.$set(this[this.tabName][this.tabIndex], "virtual_list", e.virtualList);
-					this.$set(this[this.tabName][this.tabIndex], "stock", e.virtualList.length);
+					// this.$set(this[this.tabName][this.tabIndex], "stock", e.virtualList.length);
 					this[this.tabName][this.tabIndex].disk_info = '';
 				}
 				this.carMyShow = false;
@@ -2450,7 +2450,7 @@
 				this.virtualListClear();
 				this.$refs.addCarMy.fixedCar = {
 					disk_info: '',
-					stock: 0
+					// stock: 0
 				}
 				if (data.virtual_list && data.virtual_list.length) {
 					this.$refs.addCarMy.cartMyType = 2;
@@ -2458,7 +2458,7 @@
 				} else if (data.disk_info) {
 					this.$refs.addCarMy.cartMyType = 1;
 					this.$refs.addCarMy.fixedCar.disk_info = data.disk_info;
-					this.$refs.addCarMy.fixedCar.stock = data.stock;
+					// this.$refs.addCarMy.fixedCar.stock = data.stock;
 				}
 				this.carMyShow = true;
 			},
@@ -2557,7 +2557,7 @@
 				j.erp_product_id = 0;
 				j.unit = '';
 				j.uint_to_erp_unit = 0;
-				j.stock = 0;
+				// j.stock = 0;
 				j.bar_code = '';
 				j.code = '';
 				j.weight = 0;
@@ -2952,7 +2952,7 @@
 						erp_product_id: 0,
 						unit: '',
 						uint_to_erp_unit: 0,
-						stock: 0,
+						// stock: 0,
 						bar_code: "",
 						code: "",
 						weight: 0,
@@ -3210,7 +3210,7 @@
 					erp_product_id: 0,
 					unit: '',
 					uint_to_erp_unit: 0,
-					stock: 0,
+					// stock: 0,
 					bar_code: "",
 					code: "",
 					weight: 0,
@@ -3295,9 +3295,9 @@
 						if (this.oneFormBatch[0].uint_to_erp_unit > 0) {
 							this.$set(val, "uint_to_erp_unit", this.oneFormBatch[0].uint_to_erp_unit);
 						}
-						if (this.oneFormBatch[0].stock > 0) {
-							this.$set(val, "stock", this.oneFormBatch[0].stock);
-						}
+						// if (this.oneFormBatch[0].stock > 0) {
+						// 	this.$set(val, "stock", this.oneFormBatch[0].stock);
+						// }
 						if (this.oneFormBatch[0].bar_code !== "") {
 							this.$set(val, "bar_code", this.oneFormBatch[0].bar_code);
 						}