shish 4 лет назад
Родитель
Сommit
f7aeae6685

+ 2 - 4
hdApp/src/admin/home/order.vue

@@ -18,9 +18,8 @@
               <span class="app-size-30 app-bold">¥{{ item.orderPrice ? parseFloat(item.orderPrice) :0 }}</span>
               <span class="app-size-30 app-bold">¥{{ item.orderPrice ? parseFloat(item.orderPrice) :0 }}</span>
             </view>
             </view>
             <view class="list-button">
             <view class="list-button">
-                <view class="admin-button-com default">编辑收花人</view>
-                <view class="admin-button-com default">发货</view>
-                <view class="admin-button-com default">打印</view>
+                <view class="admin-button-com middle" v-if="item.payStatus == 1">打印</view>
+                <view class="admin-button-com default" v-else>打印</view>
             </view>
             </view>
           </view>
           </view>
         </view>
         </view>
@@ -210,7 +209,6 @@ export default {
           .admin-button-com {
           .admin-button-com {
             margin-left: 50upx;
             margin-left: 50upx;
             padding:20upx 30upx;
             padding:20upx 30upx;
-            color:#999999;
           }
           }
         }
         }
       }
       }

+ 6 - 3
hdApp/src/admin/order/detail.vue

@@ -14,7 +14,10 @@
       </view>
       </view>
 
 
       <view class="module-com order-msg" v-if="!$util.isEmpty(orderInfo.receiveMobile)">
       <view class="module-com order-msg" v-if="!$util.isEmpty(orderInfo.receiveMobile)">
-        <view class="module-tit">收花人信息</view>
+        <view class="module-tit">
+          收花人信息
+          <button class="admin-button-com mini-btn" style="float:right;">编辑</button>
+        </view>
         <view class="module-det">
         <view class="module-det">
           <view class="order-msg-blo">
           <view class="order-msg-blo">
             <view class="msg-list">
             <view class="msg-list">
@@ -27,7 +30,7 @@
             </view>
             </view>
             <view class="msg-list">
             <view class="msg-list">
               <view class="label">地址:</view>
               <view class="label">地址:</view>
-              <view class="value">{{ orderInfo.receiveFullAddress }}</view>
+              <view class="value">{{ orderInfo.fullAddress }}<text v-if="!$util.isEmpty(orderInfo.showAddress)">({{orderInfo.showAddress}})</text></view>
             </view>
             </view>
           </view>
           </view>
           <view class="order-msg-blo">
           <view class="order-msg-blo">
@@ -100,7 +103,7 @@
     <view class="page-btn app-footer">
     <view class="page-btn app-footer">
       <view class="flex-center"> </view>
       <view class="flex-center"> </view>
       <view class="operate-btn-wrap">
       <view class="operate-btn-wrap">
-          <button class="admin-button-com middle" style="color: #666666;border-color: #dddddd;">发货</button>
+          <button class="admin-button-com middle" v-if="orderInfo.payStatus == 1">打印</button>
       </view>
       </view>
     </view>
     </view>
   </view>
   </view>

+ 19 - 19
mallApp/src/components/app-delivery.vue

@@ -30,23 +30,23 @@
         <div class="tui-title">所在城市</div>
         <div class="tui-title">所在城市</div>
         <div
         <div
           class="tui-input"
           class="tui-input"
-          v-if="form.receiveProvince || form.receiveCity"
-        >{{ form.receiveProvince + '-' + form.receiveCity }}</div>
+          v-if="form.province || form.city"
+        >{{ form.province + '-' + form.city }}</div>
         <div class="tui-placeholder" v-else>请选择</div>
         <div class="tui-placeholder" v-else>请选择</div>
       </tui-list-cell>
       </tui-list-cell>
       <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="selRegionFn">
       <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="selRegionFn">
         <div class="tui-title">详细地址</div>
         <div class="tui-title">详细地址</div>
-        <div class="tui-input" v-if="form.receiveAddress">{{ form.receiveAddress }}</div>
+        <div class="tui-input" v-if="form.address">{{ form.address }}</div>
         <div class="tui-placeholder" v-else>请选择地址</div>
         <div class="tui-placeholder" v-else>请选择地址</div>
       </tui-list-cell>
       </tui-list-cell>
       <tui-list-cell class="line-cell" :hover="false">
       <tui-list-cell class="line-cell" :hover="false">
         <div class="tui-title">门牌号</div>
         <div class="tui-title">门牌号</div>
         <input
         <input
-          v-model="form.receiveFloor"
+          v-model="form.floor"
           placeholder-class="phcolor"
           placeholder-class="phcolor"
           placeholder-style="color:#ccc"
           placeholder-style="color:#ccc"
           class="tui-input"
           class="tui-input"
-          name="receiveFloor"
+          name="floor"
           placeholder="楼号门牌号(选填)"
           placeholder="楼号门牌号(选填)"
         />
         />
       </tui-list-cell>
       </tui-list-cell>
@@ -176,7 +176,7 @@
     <app-area-sel
     <app-area-sel
       :isFocus="false"
       :isFocus="false"
       :show.sync="showRegion" 
       :show.sync="showRegion" 
-      :city="form.receiveCity" 
+      :city="form.city" 
       @change="changeAreaFn" />
       @change="changeAreaFn" />
   </div>
   </div>
 </template>
 </template>
@@ -211,10 +211,10 @@ export default {
       form: {
       form: {
         receiveUserName: "", // 收花人姓名;到店自提的姓名
         receiveUserName: "", // 收花人姓名;到店自提的姓名
         receiveMobile: "", // 收花人手机;到店自提的电话;
         receiveMobile: "", // 收花人手机;到店自提的电话;
-        receiveProvince: "", // 收花人省份
-        receiveCity: "", // 收花人城市
-        receiveAddress: "", // 收花人城市
-        receiveFloor: "", // 收花人门楼号和牌号
+        province: "", // 收花人省份
+        city: "", // 收花人城市
+        address: "", // 收花人城市
+        floor: "", // 收花人门楼号和牌号
         showAddress: "", // 收花人完整地址,从腾讯地图接口获取
         showAddress: "", // 收花人完整地址,从腾讯地图接口获取
         bookMobile: "", // 订花人手机号
         bookMobile: "", // 订花人手机号
         reachDate: 0, // 配送时间
         reachDate: 0, // 配送时间
@@ -238,16 +238,16 @@ export default {
   watch: {
   watch: {
     orderShop(val) {
     orderShop(val) {
       console.log("val", val);
       console.log("val", val);
-      this.form.receiveProvince = val.shop.province ? val.shop.province : "";
-      this.form.receiveCity = val.shop.city ? val.shop.city : "";
+      this.form.province = val.shop.province ? val.shop.province : "";
+      this.form.city = val.shop.city ? val.shop.city : "";
     }
     }
   },
   },
   mounted() {
   mounted() {
     if (!this.$util.isEmpty(this.orderShop)) {
     if (!this.$util.isEmpty(this.orderShop)) {
-      this.form.receiveProvince = this.orderShop.shop.province
+      this.form.province = this.orderShop.shop.province
         ? this.orderShop.shop.province
         ? this.orderShop.shop.province
         : "";
         : "";
-      this.form.receiveCity = this.orderShop.shop.city
+      this.form.city = this.orderShop.shop.city
         ? this.orderShop.shop.city
         ? this.orderShop.shop.city
         : "";
         : "";
     }
     }
@@ -259,7 +259,7 @@ export default {
     },
     },
     // 选择地址
     // 选择地址
     selRegionFn() {
     selRegionFn() {
-      if (!this.form.receiveCity) {
+      if (!this.form.city) {
         this.$msg("请先选择地址!");
         this.$msg("请先选择地址!");
         return false;
         return false;
       }
       }
@@ -267,7 +267,7 @@ export default {
     },
     },
     changeAreaFn(e) {
     changeAreaFn(e) {
       console.log("changeAreaFn", e);
       console.log("changeAreaFn", e);
-      this.form.receiveAddress = e.title;
+      this.form.address = e.title;
       this.form.showAddress = e.address;
       this.form.showAddress = e.address;
       this.region.latitude = e.location.lat;
       this.region.latitude = e.location.lat;
       this.region.longitude = e.location.lng;
       this.region.longitude = e.location.lng;
@@ -291,9 +291,9 @@ export default {
       this.$refs.simpleAddress.open();
       this.$refs.simpleAddress.open();
     },
     },
     onCityConfirm(e) {
     onCityConfirm(e) {
-      this.form.receiveAddress = e.label;
-      this.form.receiveProvince = e.provinceName;
-      this.form.receiveCity = e.cityName;
+      this.form.address = e.label;
+      this.form.province = e.provinceName;
+      this.form.city = e.cityName;
     },
     },
     // 获取微信手机号
     // 获取微信手机号
     getWxMobile(e) {
     getWxMobile(e) {

+ 2 - 2
mallApp/src/pages/order/buy.vue

@@ -200,8 +200,8 @@ export default {
           return false;
           return false;
         }
         }
         let reachDate = form.reachDate;
         let reachDate = form.reachDate;
-        let receiveAddress = form.receiveAddress;
-        if (this.$util.isEmpty(receiveAddress)) {
+        let address = form.address;
+        if (this.$util.isEmpty(address)) {
           this.$msg("请填写地址!");
           this.$msg("请填写地址!");
           return false;
           return false;
         }
         }