Pārlūkot izejas kodu

订单-用户手机,增加订单状态数据字典

chenrui 4 gadi atpakaļ
vecāks
revīzija
a3f4f233b5
2 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. 1 1
      src/views/shop/orderDetail.vue
  2. 5 5
      src/views/shop/shopOrder.vue

+ 1 - 1
src/views/shop/orderDetail.vue

@@ -22,7 +22,7 @@
         </a-col>
         <a-col :span="8" class="item-cont">
           <p class="item-label">用户手机:</p>
-          <p class="item-main"></p>
+          <p class="item-main">{{ orderDetail.customerMobile }}</p>
         </a-col>
         <a-col :span="8" class="item-cont">
           <p class="item-label">收货人姓名:</p>

+ 5 - 5
src/views/shop/shopOrder.vue

@@ -16,7 +16,7 @@
           </a-col>
           <a-col :span="6">
             <a-form-item label="用户手机" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
-              <a-input id="shopOrder-contactPhone" allowClear :maxLength="11" v-model="queryParam.contactPhone" placeholder="请输入用户手机" />
+              <a-input id="shopOrder-customerMobile" allowClear :maxLength="11" v-model="queryParam.customerMobile" placeholder="请输入用户手机" />
             </a-form-item>
           </a-col>
           <a-col :span="6">
@@ -30,7 +30,7 @@
                 v-model="queryParam.orderState"
                 ref="orderState"
                 id="shopOrder-status"
-                code="SETTLE_STATUS_ALL"
+                code="ORDER_STATE"
                 placeholder="请选择订单状态"
                 allowClear></v-select>
             </a-form-item>
@@ -91,7 +91,7 @@ export default {
       queryParam: {
         beginDate: null, // 开始时间
         endDate: null, // 结束时间
-        contactPhone: '', //  用户手机
+        customerMobile: '', //  用户手机
         orderNo: '', //  订单编号
         orderState: null // 订单状态
       },
@@ -161,7 +161,7 @@ export default {
         moment(getDate.getToday().starttime, this.dateFormat),
         moment(getDate.getToday().endtime, this.dateFormat)
       ]
-      this.queryParam.contactPhone = ''
+      this.queryParam.customerMobile = ''
       this.queryParam.orderNo = ''
       this.queryParam.orderState = null
       this.$refs.table.refresh(true)
@@ -171,7 +171,7 @@ export default {
       const params = {
         beginDate: this.queryParam.beginDate == null ? getDate.getToday().starttime : this.queryParam.beginDate,
         endDate: this.queryParam.endDate == null ? getDate.getToday().endtime : this.queryParam.endDate,
-        contactPhone: this.queryParam.contactPhone,
+        customerMobile: this.queryParam.customerMobile,
         orderNo: this.queryParam.orderNo,
         orderState: this.queryParam.orderState
       }