lilei vor 3 Jahren
Ursprung
Commit
f70a3be886
1 geänderte Dateien mit 19 neuen und 22 gelöschten Zeilen
  1. 19 22
      src/views/productManagement/productInfo/edit.vue

+ 19 - 22
src/views/productManagement/productInfo/edit.vue

@@ -93,27 +93,23 @@
             </a-col>
             <a-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
               <a-form-model-item label="包装数" prop="packQty" :label-col="{span:4}" :wrapper-col="{span:16}">
-                <a-row>
-                  <a-col :span="14">
-                    <a-input-number
-                      id="productInfoEdit-packQty"
-                      v-model="form.packQty"
-                      :precision="0"
-                      :min="1"
-                      :max="999999"
-                      placeholder="请输入"
-                      style="width: 70%;" /><span>{{ form.unit }}/</span>
-                  </a-col>
-                  <a-col :span="10">
-                    <v-select
-                      code="PRODUCT_PACK_UNIT"
-                      id="productLevelEdit-packQtyUnit"
-                      v-model="form.packQtyUnit"
-                      allowClear
-                      placeholder="包装数单位"
-                    ></v-select>
-                  </a-col>
-                </a-row>
+                <a-input-number
+                  id="productInfoEdit-packQty"
+                  v-model="form.packQty"
+                  :precision="0"
+                  :min="1"
+                  :max="999999"
+                  placeholder="请输入"
+                />
+                <span style="margin: 0 5px;">/</span>
+                <v-select
+                  code="PRODUCT_PACK_UNIT"
+                  id="productLevelEdit-packQtyUnit"
+                  v-model="form.packQtyUnit"
+                  allowClear
+                  style="width: 100px;"
+                  placeholder="单位"
+                ></v-select>
               </a-form-model-item>
             </a-col>
             <a-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
@@ -215,7 +211,7 @@
         id="productInfoEdit-submit-btn"
         size="large"
         @click="handleSubmit"
-        style="padding: 0 60px;">提交</a-button>
+        style="padding: 0 60px;">保存</a-button>
     </div>
   </div>
 </template>
@@ -442,6 +438,7 @@ export default {
       this.$refs.editor.setHtml('')
       this.$refs.otherDesc.setHtml('')
       this.$refs.ruleForm.resetFields()
+      this.form.packQtyUnit = undefined
       this.getProductBrand()
       this.getProductType()
       if (this.$route.params.id) { //  编辑页