Browse Source

产品信息增加箱重量字段

lichao 3 years ago
parent
commit
e1570969e7
1 changed files with 24 additions and 2 deletions
  1. 24 2
      src/views/basicData/productInformation/detailsPageEdit.vue

+ 24 - 2
src/views/basicData/productInformation/detailsPageEdit.vue

@@ -40,14 +40,24 @@
               style="width: 100%"
             />
           </template>
-          <template slot="a" slot-scope="scope">
+          <template slot="cntrVolumn" slot-scope="scope">
             <el-input
               v-input-limit="2"
-              v-model="form.a"
+              v-model="form.cntrVolumn"
               clearable
               placeholder="请输入 箱立方"
             ></el-input>
           </template>
+          <template slot="cartonWeight" slot-scope="scope">
+            <el-input
+              v-input-limit="2"
+              v-model="form.cartonWeight"
+              clearable
+              placeholder="请输入 箱重量"
+            >
+              <template slot="append">kg</template>
+            </el-input>
+          </template>
         </avue-form>
       </basic-container>
     </div>
@@ -248,6 +258,18 @@ export default {
             ]
           },
           {
+            label: "箱重量",
+            prop: "cartonWeight",
+            span: 8,
+            rules: [
+              {
+                required: true,
+                message: " ",
+                trigger: "blur"
+              }
+            ]
+          },
+          {
             label: "备注",
             prop: "remarks",
             type: "textarea",