潘超林 3 月之前
父節點
當前提交
7c36a0a7a1
共有 2 個文件被更改,包括 33 次插入29 次删除
  1. 1 1
      .env.staging
  2. 32 28
      src/views/product/module/sales-info.vue

+ 1 - 1
.env.staging

@@ -7,4 +7,4 @@ NODE_ENV = production
 ENV = 'staging'
 
 # 农商网商家管理系统/测试环境
-VUE_APP_BASE_API = '/stage-api'
+VUE_APP_BASE_API = '/dev-api/api/admin'

+ 32 - 28
src/views/product/module/sales-info.vue

@@ -57,8 +57,8 @@
             </el-table-column>
             <el-table-column prop="name" label="库存" width="160">
               <template slot-scope="scope">
-                  <el-input-number
-                :controls="false"
+                <el-input-number
+                  :controls="false"
                   v-model="scope.row.stock"
                   placeholder="库存"
                   clearable
@@ -70,8 +70,8 @@
             </el-table-column>
             <el-table-column prop="address" label="起批量" width="160">
               <template slot-scope="scope">
-                 <el-input-number
-                :controls="false"
+                <el-input-number
+                  :controls="false"
                   v-model="scope.row.skuPriceList[0].minPurchase"
                   placeholder="起批量"
                   clearable
@@ -85,8 +85,8 @@
             </el-table-column>
             <el-table-column prop="address" label="收购价" width="160">
               <template slot-scope="scope">
-              <el-input-number
-                :controls="false"
+                <el-input-number
+                  :controls="false"
                   v-model="scope.row.skuCost.purchaseFee"
                   placeholder="收购价"
                   clearable
@@ -98,8 +98,8 @@
             </el-table-column>
             <el-table-column prop="address" label="人工费" width="160">
               <template slot-scope="scope">
-                 <el-input-number
-                :controls="false"
+                <el-input-number
+                  :controls="false"
                   v-model="scope.row.skuCost.laborFee"
                   placeholder="人工费"
                   clearable
@@ -111,8 +111,8 @@
             </el-table-column>
             <el-table-column prop="address" label="代办费" width="160">
               <template slot-scope="scope">
-              <el-input-number
-                :controls="false"
+                <el-input-number
+                  :controls="false"
                   v-model="scope.row.skuCost.agencyFee"
                   placeholder="代办费"
                   clearable
@@ -125,7 +125,7 @@
             <el-table-column prop="address" label="材料费" width="160">
               <template slot-scope="scope">
                 <el-input-number
-                :controls="false"
+                  :controls="false"
                   @input="passValue"
                   v-model="scope.row.skuCost.materialFee"
                   placeholder="材料费"
@@ -143,8 +143,8 @@
             </el-table-column>
             <el-table-column label="规格重量" width="160">
               <template slot-scope="scope">
-                 <el-input-number
-                :controls="false"
+                <el-input-number
+                  :controls="false"
                   v-model="scope.row.weight"
                   placeholder="请输入单个规格重量"
                   clearable
@@ -153,7 +153,7 @@
                   <template slot="suffix"> /Kg </template>
                 </el-input-number>
               </template>
-              </el-table-column>
+            </el-table-column>
             <el-table-column prop="address" label="操作" width="160">
               <template slot-scope="scope">
                 <el-button
@@ -197,7 +197,7 @@
             <el-table-column prop="name" label="库存" width="160">
               <template slot-scope="scope">
                 <el-input-number
-                :controls="false"
+                  :controls="false"
                   v-model="scope.row.stock"
                   placeholder="库存"
                   clearable
@@ -210,7 +210,7 @@
             <el-table-column label="起批量" width="160">
               <template slot-scope="scope">
                 <el-input-number
-                :controls="false"
+                  :controls="false"
                   v-model="scope.row.skuPriceList[0].minPurchase"
                   placeholder="起批量"
                   clearable
@@ -224,8 +224,8 @@
             </el-table-column>
             <el-table-column label="批发价" width="160">
               <template slot-scope="scope">
-                 <el-input-number
-                :controls="false"
+                <el-input-number
+                  :controls="false"
                   v-model="scope.row.skuPriceList[0].originalPrice"
                   placeholder="收购价"
                   clearable
@@ -246,19 +246,19 @@
               </template>
             </el-table-column>
 
-            <el-table-column label="规格重量" width="160">
+            <el-table-column label="重量" width="160">
               <template slot-scope="scope">
-                 <el-input-number
-                :controls="false"
+                <el-input-number
+                  :controls="false"
                   v-model="scope.row.weight"
-                  placeholder="请输入单个规格重量"
+                  placeholder="请输入重量"
                   clearable
                   @input="passValue"
                 >
-                <template slot="suffix"> /Kg </template>
+                  <template slot="suffix"> /Kg </template>
                 </el-input-number>
               </template>
-              </el-table-column>
+            </el-table-column>
             <el-table-column prop="address" label="操作" width="160">
               <template slot-scope="scope">
                 <el-button
@@ -439,10 +439,14 @@ export default {
         freeShipping: [{ required: true, message: "请选择运费方式", trigger: "blur" }],
         props: [{ required: true, message: "商品属性不能为空", trigger: "blur" }],
         unit: [{ required: true, message: "计量单位", trigger: "blur" }],
-        shippingTimeDesc: [{ required: true, message: "发货时间不能为空", trigger: "blur" }],
+        shippingTimeDesc: [
+          { required: true, message: "发货时间不能为空", trigger: "blur" },
+        ],
         skuList: [{ required: true, message: "规格不能为空", trigger: "blur" }],
         packing: [{ required: true, message: "包装方式不能为空", trigger: "blur" }],
-        "shippingAddrBean.addrDetail": [{ required: true, message: "详细地址不能为空", trigger: "blur" }],
+        "shippingAddrBean.addrDetail": [
+          { required: true, message: "详细地址不能为空", trigger: "blur" },
+        ],
       },
       shopInfo: {},
     };
@@ -487,7 +491,7 @@ export default {
   },
   methods: {
     formvalidate() {
-      let that=this
+      let that = this;
       return new Promise((resolve) => {
         that.$refs.queryForm.validate((valid) => {
           console.log(valid);
@@ -592,7 +596,7 @@ export default {
     addSpecification() {
       this.form.skuList.push({
         stock: undefined,
-        weight:undefined,
+        weight: undefined,
         skuCost: {
           purchaseFee: undefined,
           laborFee: undefined,