Prechádzať zdrojové kódy

fix: 运费试算邮编

lyc 11 hodín pred
rodič
commit
362b9a23e8
1 zmenil súbory, kde vykonal 9 pridanie a 2 odobranie
  1. 9 2
      src/views/orders/Calculator.vue

+ 9 - 2
src/views/orders/Calculator.vue

@@ -23,7 +23,7 @@
             </div>
             <div class="weight">
               <el-form-item required prop="weight" label="重量">
-                <el-input v-model="postData.weight"><span slot="suffix" style="color:#000">kg</span></el-input>
+                <el-input v-model="postData.weight" clearable><span slot="suffix" style="color:#000">kg</span></el-input>
               </el-form-item>
             </div>
             <div class="weight">
@@ -33,6 +33,11 @@
                 </el-select>
               </el-form-item>
             </div>
+            <div class="weight">
+              <el-form-item prop="zipCode" label="邮编">
+                <el-input v-model="postData.zipCode" clearable></el-input>
+              </el-form-item>
+            </div>
             <div class="weightbtn">
               <el-button type="primary" :loading="calculatorLoading" @click="postCalculator">
                 计算
@@ -207,6 +212,7 @@ export default {
       sdata: [],
       postData: {
         country: '',
+        zipCode: '',
         weight: 0,
         height: 0,
         width: 0,
@@ -262,6 +268,7 @@ export default {
               // 新客户费用试算
               NewCalculatorAll({
                 CustomerId: this.postData.CustomerId,
+                ZipCode: this.postData.zipCode,
                 Weight: this.postData.weight,
                 CountryCode: this.postData.country,
                 W: this.postData.width,
@@ -346,7 +353,7 @@ export default {
 }
 
 .calculator-warp .top-warp .weight {
-  flex-basis: 260px;
+  flex-basis: 220px;
   margin-left: 20px;
 }