cmy hace 10 meses
padre
commit
a302788ab8
Se han modificado 1 ficheros con 127 adiciones y 0 borrados
  1. 127 0
      src/pages/product/productAdd/index.vue

+ 127 - 0
src/pages/product/productAdd/index.vue

@@ -667,6 +667,23 @@
                           class="priceBox"
                       ></InputNumber>
                     </template>
+					<template slot-scope="{ row, index }" slot="erp_product_id">
+					  <InputNumber
+					      v-model="oneFormBatch[0].erp_product_id"
+					      :min="0"
+					      class="priceBox"
+					  ></InputNumber>
+					</template>
+					<template slot-scope="{ row, index }" slot="unit">
+					  <Input v-model="oneFormBatch[0].unit"></Input>
+					</template>
+					<template slot-scope="{ row, index }" slot="uint_to_erp_unit">
+					  <InputNumber
+					      v-model="oneFormBatch[0].uint_to_erp_unit"
+					      :min="0"
+					      class="priceBox"
+					  ></InputNumber>
+					</template>
                     <template slot-scope="{ row, index }" slot="stock">
                       <InputNumber
                           v-model="oneFormBatch[0].stock"
@@ -781,6 +798,23 @@
                           class="priceBox"
                       ></InputNumber>
                     </template>
+					<template slot-scope="{ row, index }" slot="erp_product_id">
+					  <InputNumber
+					      v-model="manyFormValidate[index].erp_product_id"
+					      :min="0"
+					      class="priceBox"
+					  ></InputNumber>
+					</template>
+					<template slot-scope="{ row, index }" slot="unit">
+					  <Input v-model="manyFormValidate[index].unit"></Input>
+					</template>
+					<template slot-scope="{ row, index }" slot="uint_to_erp_unit">
+					  <InputNumber
+					      v-model="manyFormValidate[index].uint_to_erp_unit"
+					      :min="0"
+					      class="priceBox"
+					  ></InputNumber>
+					</template>
                     <template slot-scope="{ row, index }" slot="stock">
                       <InputNumber
                           v-model="manyFormValidate[index].stock"
@@ -940,6 +974,35 @@
                 ></InputNumber>
               </FormItem>
             </Col>
+			<Col span="24">
+			  <FormItem label="仓库商品:">
+			    <Input
+			        v-model="oneFormValidate[0].erp_product_id"
+			        v-width="'50%'"
+					suffix="ios-search"
+			    ></Input>
+			  </FormItem>
+			</Col>
+			<Col span="24">
+			  <FormItem label="规格名:">
+			    <InputNumber
+			        v-model="oneFormValidate[0].unit"
+			        :min="0"
+			        :max="99999999"
+			        v-width="'50%'"
+			    ></InputNumber>
+			  </FormItem>
+			</Col>
+			<Col span="24">
+			  <FormItem label="对应库存:">
+			    <InputNumber
+			        v-model="oneFormValidate[0].uint_to_erp_unit"
+			        :min="0"
+			        :max="99999999"
+			        v-width="'50%'"
+			    ></InputNumber>
+			  </FormItem>
+			</Col>
             <Col span="24" class="asterisk">
               <div class="asteriskInfo">*</div>
               <FormItem label="库存:">
@@ -1193,6 +1256,13 @@
                   }}</template>
                 <template slot-scope="{ row, index }" slot="ot_price">{{
                     oneFormValidate[0].ot_price
+                  }}</template>
+				  <template slot-scope="{ row, index }" slot="erp_product_id">{{
+				      oneFormValidate[0].erp_product_id
+				    }}</template> <template slot-scope="{ row, index }" slot="unit">{{
+                    oneFormValidate[0].unit
+                  }}</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">{{
                     oneFormValidate[0].stock
@@ -1285,6 +1355,15 @@
                 <template slot-scope="{ row, index }" slot="ot_price">{{
                     manyFormValidate[index].ot_price
                   }}</template>
+				<template slot-scope="{ row, index }" slot="erp_product_id">{{
+				    manyFormValidate[index].erp_product_id
+				  }}</template>
+				<template slot-scope="{ row, index }" slot="unit">{{
+				    manyFormValidate[index].unit
+				  }}</template>
+				<template slot-scope="{ row, index }" slot="uint_to_erp_unit">{{
+				    manyFormValidate[index].uint_to_erp_unit
+				  }}</template>
                 <template slot-scope="{ row, index }" slot="stock">{{
                     manyFormValidate[index].stock
                   }}</template>
@@ -2115,6 +2194,9 @@ export default {
 		  settle_price: 0,
           cost: 0,
           ot_price: 0,
+		  erp_product_id: 0,
+		  unit: 0,
+		  uint_to_erp_unit: 0,
           stock: 0,
           bar_code: "",
           code: "",
@@ -2161,6 +2243,24 @@ export default {
           align: "center",
           minWidth: 95,
         },
+		{
+		  title: "仓库商品",
+		  slot: "erp_product_id",
+		  align: "center",
+		  minWidth: 95,
+		},
+		{
+		  title: "规格名",
+		  slot: "unit",
+		  align: "center",
+		  minWidth: 95,
+		},
+		{
+		  title: "对应库存",
+		  slot: "uint_to_erp_unit",
+		  align: "center",
+		  minWidth: 95,
+		},
         {
           title: "库存",
           slot: "stock",
@@ -2271,6 +2371,9 @@ export default {
             price: 0,
             cost: 0,
             ot_price: 0,
+			erp_product_id: 0,
+			unit: '',
+			uint_to_erp_unit: 0,
             stock: 0,
             bar_code: "",
             code: "",
@@ -2301,6 +2404,9 @@ export default {
 		  settle_price: 0,
           cost: 0,
           ot_price: 0,
+		  erp_product_id: 0,
+		  unit: '',
+		  uint_to_erp_unit: 0,
           stock: 0,
           bar_code: "",
           code: "",
@@ -2611,6 +2717,9 @@ export default {
 					settle_price: 0,
                     cost: 0,
                     ot_price: 0,
+					erp_product_id: 0,
+					unit: '',
+					uint_to_erp_unit: 0,
                     stock: 0,
                     bar_code: "",
                     code: "",
@@ -2881,6 +2990,9 @@ export default {
 	  j.settle_price = 0;
       j.cost = 0;
       j.ot_price = 0;
+	  j.erp_product_id = 0;
+	  j.unit = '';
+	  j.uint_to_erp_unit = 0;
       j.stock = 0;
       j.bar_code = '';
       j.code = '';
@@ -3221,6 +3333,9 @@ export default {
 			settle_price: 0,
             cost: 0,
             ot_price: 0,
+			erp_product_id: 0,
+			unit: '',
+			uint_to_erp_unit: 0,
             stock: 0,
             bar_code: "",
             code: "",
@@ -3478,6 +3593,9 @@ export default {
 		  settle_price: 0,
           cost: 0,
           ot_price: 0,
+		  erp_product_id: 0,
+		  unit: '',
+		  uint_to_erp_unit: 0,
           stock: 0,
           bar_code: "",
           code: "",
@@ -3553,6 +3671,15 @@ export default {
           if (this.oneFormBatch[0].ot_price > 0) {
             this.$set(val, "ot_price", this.oneFormBatch[0].ot_price);
           }
+		  if (this.oneFormBatch[0].erp_product_id > 0) {
+		    this.$set(val, "erp_product_id", this.oneFormBatch[0].erp_product_id);
+		  }
+		  if (this.oneFormBatch[0].unit) {
+		    this.$set(val, "unit", this.oneFormBatch[0].unit);
+		  }
+		  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);
           }