Browse Source

feat: 运费试算邮编

lyc 13 hours ago
parent
commit
d5be64bdab

+ 15 - 0
customer/src/views/dashboard/editor/index.vue

@@ -356,9 +356,22 @@
                 <el-form-item required prop="weight">
                   <el-input
                     v-model="postData.weight"
+                    clearable
                   ><span slot="suffix" style="color: #000">kg</span></el-input>
                 </el-form-item>
               </div>
+              <div class="zip-code" style="float: left; margin-left: 20px">
+                <p class="weight-title">
+                  邮编
+                </p>
+                <el-form-item required prop="zipCode">
+                  <el-input
+                    v-model="postData.zipCode"
+                    style="width: 200px"
+                    clearable
+                  />
+                </el-form-item>
+              </div>
               <div style="clear: both" class="weightend">
                 <div class="weight">
                   <p class="weight-title">货物体积</p>
@@ -847,6 +860,7 @@ export default {
       infos: [],
       postData: {
         country: '',
+        zipCode: '',
         weight: 0,
         height: 0,
         width: 0,
@@ -999,6 +1013,7 @@ export default {
             // 新客户费用试算
             CalculatorAll({
               CustomerId: 0,
+              ZipCode: this.postData.zipCode,
               Weight: this.postData.weight,
               CountryCode: this.postData.country,
               W: this.postData.width,

+ 9 - 1
customer/src/views/finance/calculator.vue

@@ -26,7 +26,13 @@
           <div class="weight2" style="float:left;margin-left:20px">
             <p class="weight-title"><span style="color:red">*</span>重量</p>
             <el-form-item required prop="weight">
-              <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="zip-code" style="float:left;margin-left:20px">
+            <p class="weight-title">邮编</p>
+            <el-form-item prop="zipCode">
+              <el-input v-model="postData.zipCode" style="width: 200px" clearable />
             </el-form-item>
           </div>
           <div style="clear:both" class="weightend">
@@ -191,6 +197,7 @@ export default {
       serachCountryList: [],
       postData: {
         country: '',
+        zipCode: '',
         weight: 0,
         height: 0,
         width: 0,
@@ -240,6 +247,7 @@ export default {
           if (this.IsNewCustomer) {
             // 新客户费用试算
             CalculatorAll({ CustomerId: 0,
+              ZipCode: this.postData.zipCode,
               Weight: this.postData.weight,
               CountryCode: this.postData.country,
               W: this.postData.width,