Browse Source

feat: 上线

黎海 2 years ago
parent
commit
52beddc976

+ 2 - 0
src/components/common/layout/layout.vue

@@ -187,11 +187,13 @@ export default {
187
         border-radius: 50%;
187
         border-radius: 50%;
188
         img {
188
         img {
189
           width: 100%;
189
           width: 100%;
190
+          border-radius: 50%;
190
           display: block;
191
           display: block;
191
         }
192
         }
192
       }
193
       }
193
       .el-dropdown-link {
194
       .el-dropdown-link {
194
         img {
195
         img {
196
+          margin-left: 20px;
195
           width: 28px;
197
           width: 28px;
196
           height: 28px;
198
           height: 28px;
197
           display: block;
199
           display: block;

+ 16 - 14
src/pages/confirmOrder/details/index.vue

@@ -365,7 +365,7 @@
365
     <mine-pupop :show="PayStatus">
365
     <mine-pupop :show="PayStatus">
366
       <div class="pay-block">
366
       <div class="pay-block">
367
         <div class="delete-pupop"
367
         <div class="delete-pupop"
368
-             @click="PayStatus=false"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png"
368
+             @click="changePayStatus"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png"
369
                alt=""></div>
369
                alt=""></div>
370
         <div v-if="isPayCode">
370
         <div v-if="isPayCode">
371
           <div class="pay-title">请扫码支付</div>
371
           <div class="pay-title">请扫码支付</div>
@@ -685,9 +685,9 @@ export default {
685
         this.reservationPrice += Number(res.price)
685
         this.reservationPrice += Number(res.price)
686
       })
686
       })
687
     },
687
     },
688
+
688
     //获取订单优惠券
689
     //获取订单优惠券
689
     onCoupon () {
690
     onCoupon () {
690
-
691
       if (this.couponList.length > 0) {
691
       if (this.couponList.length > 0) {
692
         this.isCoupun = true
692
         this.isCoupun = true
693
         return
693
         return
@@ -769,9 +769,14 @@ export default {
769
 
769
 
770
       })
770
       })
771
     },
771
     },
772
+    changePayStatus () {
773
+      this.PayStatus = false
774
+      if (this.payStatusInterval) { //如果定时器在运行则关闭
775
+        clearInterval(this.payStatusInterval)
776
+      }
777
+    },
772
     payStatus () {
778
     payStatus () {
773
       api.payStatus({ id: this.id, }).then(res => {
779
       api.payStatus({ id: this.id, }).then(res => {
774
-
775
         if (res.data.pay_status == 1) {
780
         if (res.data.pay_status == 1) {
776
           clearInterval(this.payStatusInterval)
781
           clearInterval(this.payStatusInterval)
777
           this.isPayCode = false
782
           this.isPayCode = false
@@ -808,9 +813,7 @@ export default {
808
        */
813
        */
809
     selectPupop: function (item, index) {
814
     selectPupop: function (item, index) {
810
 
815
 
811
-
812
       let CouPonIndex = this.couponList
816
       let CouPonIndex = this.couponList
813
-
814
       let selectIndex = index
817
       let selectIndex = index
815
       let curreValue = !CouPonIndex[selectIndex].isSelect
818
       let curreValue = !CouPonIndex[selectIndex].isSelect
816
       let project_list = this.order_data.project_list //这里是项目列表
819
       let project_list = this.order_data.project_list //这里是项目列表
@@ -860,8 +863,6 @@ export default {
860
       this.order_data = orderDetails1
863
       this.order_data = orderDetails1
861
       this.couponList = CouPonIndex
864
       this.couponList = CouPonIndex
862
       this.coupSelectType = this.couponList[selectIndex].type
865
       this.coupSelectType = this.couponList[selectIndex].type
863
-
864
-
865
       this.selectCoup()
866
       this.selectCoup()
866
 
867
 
867
     },
868
     },
@@ -889,11 +890,12 @@ export default {
889
       let project_list = this.order_data.project_list //这里是项目列表
890
       let project_list = this.order_data.project_list //这里是项目列表
890
       let isSelectCoup = this.isSelectCoup //这里选择了的卡券列表
891
       let isSelectCoup = this.isSelectCoup //这里选择了的卡券列表
891
       let selectProjectList = [] // 适合的卡券列表
892
       let selectProjectList = [] // 适合的卡券列表
892
-      // let CouPonIndex = this.CouPonIndex // 卡券选择的Id
893
+      // let CouPonIndex = this.CouPonIndex // 卡券选择的Id\
893
       let productDiscount = this.couponList // 卡券列表
894
       let productDiscount = this.couponList // 卡券列表
894
-        (productDiscount)
895
+      console.log(this.couponList, 'this.couponList');
896
+      (productDiscount)
895
       // debugger
897
       // debugger
896
-      if (isSelectCoup[0].type == 4) {
898
+      if (isSelectCoup.length > 0 && isSelectCoup[0].type && isSelectCoup[0].type == 4) {
897
         for (let i = 0; i < isSelectCoup.length; i++) { // 首先遍历卡券
899
         for (let i = 0; i < isSelectCoup.length; i++) { // 首先遍历卡券
898
           if (!isSelectCoup[i].projectids) { // 如果卡券没绑定项目
900
           if (!isSelectCoup[i].projectids) { // 如果卡券没绑定项目
899
 
901
 
@@ -938,7 +940,7 @@ export default {
938
     // 计算总额
940
     // 计算总额
939
     calculateMoney () {
941
     calculateMoney () {
940
       let that = this
942
       let that = this
941
-      let money = this.order_data.price
943
+      let money = Number(this.order_data.price)
942
       let isSelectCoup = this.isSelectCoup
944
       let isSelectCoup = this.isSelectCoup
943
       let project_list = this.order_data.project_list //这里是项目列表
945
       let project_list = this.order_data.project_list //这里是项目列表
944
 
946
 
@@ -951,17 +953,17 @@ export default {
951
       if (isSelectCoup[0].type == 4) {
953
       if (isSelectCoup[0].type == 4) {
952
         for (let i = 0; i < project_list.length; i++) {
954
         for (let i = 0; i < project_list.length; i++) {
953
           if (project_list[i].cardId) {
955
           if (project_list[i].cardId) {
954
-            money = money - project_list[i].price
956
+            money = money - Number(project_list[i].price)
955
           }
957
           }
956
         }
958
         }
957
         this.showMoney = money.toFixed(2)
959
         this.showMoney = money.toFixed(2)
958
       } else if (isSelectCoup[0].type == 3) {
960
       } else if (isSelectCoup[0].type == 3) {
959
         for (let i = 0; i < project_list.length; i++) {
961
         for (let i = 0; i < project_list.length; i++) {
960
-          money = money - project_list[i].price
962
+          money = money - Number(project_list[i].price)
961
         }
963
         }
962
 
964
 
963
       } else {
965
       } else {
964
-        money = money - isSelectCoup[0].price
966
+        money = money - Number(isSelectCoup[0].price)
965
       }
967
       }
966
 
968
 
967
       this.showMoney = money.toFixed(2)
969
       this.showMoney = money.toFixed(2)

+ 9 - 2
src/pages/coupon/index.vue

@@ -34,7 +34,7 @@
34
       <el-table ref="multipleTable"
34
       <el-table ref="multipleTable"
35
                 :data="tableData"
35
                 :data="tableData"
36
                 tooltip-effect="dark"
36
                 tooltip-effect="dark"
37
-                height="354"
37
+                height="500"
38
                 style="width: 100%;border-radius: 8px;"
38
                 style="width: 100%;border-radius: 8px;"
39
                 @selection-change="handleSelectionChange">
39
                 @selection-change="handleSelectionChange">
40
         <el-table-column type="selection"
40
         <el-table-column type="selection"
@@ -110,7 +110,14 @@ export default {
110
         user_ids: selectIds.substring(1, selectIds.length),
110
         user_ids: selectIds.substring(1, selectIds.length),
111
         num: this.couponNum
111
         num: this.couponNum
112
       };
112
       };
113
-      api.sendCoupon(params).then(res => { });
113
+      api.sendCoupon(params).then(res => {
114
+        if (res.code == 200) {
115
+          this.$message({
116
+            message: '发送成功',
117
+            type: 'success'
118
+          });
119
+        }
120
+      });
114
     },
121
     },
115
 
122
 
116
     // 获取订单列表
123
     // 获取订单列表

+ 40 - 31
src/pages/customerMan/details/index.vue

@@ -3,7 +3,8 @@
3
     <div class="left">
3
     <div class="left">
4
       <div class="user-info">
4
       <div class="user-info">
5
         <div class="user-img">
5
         <div class="user-img">
6
-          <img :src="userInfo.avatar_url" alt />
6
+          <img :src="userInfo.avatar_url"
7
+               alt />
7
         </div>
8
         </div>
8
         <div class="user-span">
9
         <div class="user-span">
9
           <div class="name">
10
           <div class="name">
@@ -82,7 +83,9 @@
82
           <div class="lable">
83
           <div class="lable">
83
             <div class="lable-title">面诊标签</div>
84
             <div class="lable-title">面诊标签</div>
84
             <div class="lable-list">
85
             <div class="lable-list">
85
-              <div v-for="(item,index) in lableList" :key="index" class="lable-info">{{item.text}}</div>
86
+              <div v-for="(item,index) in lableList"
87
+                   :key="index"
88
+                   class="lable-info">{{item.text}}</div>
86
             </div>
89
             </div>
87
           </div>
90
           </div>
88
           <div class="ps">
91
           <div class="ps">
@@ -91,18 +94,22 @@
91
           </div>
94
           </div>
92
         </div>
95
         </div>
93
         <div class="right-top-list">
96
         <div class="right-top-list">
94
-          <div class="dataList" @click="toOrder(1)">
95
-            <img :src="userInfo.image" />
97
+          <div class="dataList"
98
+               @click="toOrder(1)">
99
+            <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/project_icon.png" />
96
             <p>项目订单</p>
100
             <p>项目订单</p>
97
             <span>{{order_total.project}}</span>
101
             <span>{{order_total.project}}</span>
98
           </div>
102
           </div>
99
-          <div class="dataList" style="margin:18px 0px" @click="toOrder(2)">
100
-            <img :src="userInfo.image" />
101
-            <p>卡券订单</p>
103
+          <div class="dataList"
104
+               style="margin:18px 0px"
105
+               @click="toOrder(2)">
106
+            <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/coupon_icon.png" />
107
+            <p>优惠券</p>
102
             <span>{{order_total.coupon}}</span>
108
             <span>{{order_total.coupon}}</span>
103
           </div>
109
           </div>
104
-          <div class="dataList" @click="toOrder(3)">
105
-            <img :src="userInfo.image" />
110
+          <div class="dataList"
111
+               @click="toOrder(3)">
112
+            <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/order_total_icon.png" />
106
             <p>商品订单</p>
113
             <p>商品订单</p>
107
             <span>{{order_total.goods}}</span>
114
             <span>{{order_total.goods}}</span>
108
           </div>
115
           </div>
@@ -114,18 +121,14 @@
114
             <div class="tab-title">执行方案</div>
121
             <div class="tab-title">执行方案</div>
115
           </div>
122
           </div>
116
           <div class="programme-list">
123
           <div class="programme-list">
117
-            <div
118
-              :class="['programme-info',item.onSelect?'programme-active':'']"
119
-              v-for="(item,index) in programmeList"
120
-              :key="index"
121
-              @click="onOperation(index)"
122
-            >
124
+            <div :class="['programme-info',item.onSelect?'programme-active':'']"
125
+                 v-for="(item,index) in programmeList"
126
+                 :key="index"
127
+                 @click="onOperation(index)">
123
               <div class="programme-left">
128
               <div class="programme-left">
124
                 <div class="programme-img">
129
                 <div class="programme-img">
125
-                  <img
126
-                    src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/make.png"
127
-                    alt
128
-                  />
130
+                  <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/make.png"
131
+                       alt />
129
                 </div>
132
                 </div>
130
                 <div class="programme-tips">
133
                 <div class="programme-tips">
131
                   <div class="tips-title">{{'【清洁补水】华熙智慧…'|ellipsis(9)}}</div>
134
                   <div class="tips-title">{{'【清洁补水】华熙智慧…'|ellipsis(9)}}</div>
@@ -146,7 +149,8 @@
146
                   <span>28天</span>
149
                   <span>28天</span>
147
                 </div>
150
                 </div>
148
               </div>
151
               </div>
149
-              <div class="operation" v-if="item.onSelect">
152
+              <div class="operation"
153
+                   v-if="item.onSelect">
150
                 <div class="edit">编辑</div>
154
                 <div class="edit">编辑</div>
151
                 <div class="delete">删除</div>
155
                 <div class="delete">删除</div>
152
               </div>
156
               </div>
@@ -162,7 +166,7 @@
162
 import api from "../../../server/home";
166
 import api from "../../../server/home";
163
 
167
 
164
 export default {
168
 export default {
165
-  data() {
169
+  data () {
166
     return {
170
     return {
167
       userInfo: {
171
       userInfo: {
168
         image:
172
         image:
@@ -195,7 +199,7 @@ export default {
195
   watch: {},
199
   watch: {},
196
 
200
 
197
   methods: {
201
   methods: {
198
-    getPadUserInfo() {
202
+    getPadUserInfo () {
199
       api.getPadUserInfo({ id: this.id }).then(res => {
203
       api.getPadUserInfo({ id: this.id }).then(res => {
200
         this.userInfo = res.data.user;
204
         this.userInfo = res.data.user;
201
         this.remarks = res.data.remark;
205
         this.remarks = res.data.remark;
@@ -208,7 +212,7 @@ export default {
208
       });
212
       });
209
     },
213
     },
210
 
214
 
211
-    onOperation(index) {
215
+    onOperation (index) {
212
       if (this.programmeList[index].onSelect) {
216
       if (this.programmeList[index].onSelect) {
213
         this.$set(
217
         this.$set(
214
           this.programmeList[index],
218
           this.programmeList[index],
@@ -219,27 +223,32 @@ export default {
219
         this.$set(this.programmeList[index], "onSelect", true);
223
         this.$set(this.programmeList[index], "onSelect", true);
220
       }
224
       }
221
     },
225
     },
222
-    toOrder(index) {
223
-      if (index === 1) {
226
+    toOrder (index) {
227
+      let activeName = 'first'
228
+      if (index == 3) {
229
+        activeName = 'third'
230
+      } else if (index == 2) {
231
+        activeName = 'second'
232
+      }
224
       this.$router.push({
233
       this.$router.push({
225
         path: "/customerMan/projectOrder",
234
         path: "/customerMan/projectOrder",
226
         query: {
235
         query: {
227
-          id: this.id
236
+          id: this.id,
237
+          activeName: activeName
228
         }
238
         }
229
       });
239
       });
230
-      }
231
     },
240
     },
232
-    onSubmit() {},
233
-    submitFrequency() {}
241
+    onSubmit () { },
242
+    submitFrequency () { }
234
   },
243
   },
235
 
244
 
236
-  created() {
245
+  created () {
237
     let id = this.$route.query.id;
246
     let id = this.$route.query.id;
238
     this.id = id;
247
     this.id = id;
239
     this.getPadUserInfo();
248
     this.getPadUserInfo();
240
   },
249
   },
241
 
250
 
242
-  mounted() {}
251
+  mounted () { }
243
 };
252
 };
244
 </script>
253
 </script>
245
 
254
 

+ 1 - 1
src/pages/customerMan/index.vue

@@ -16,7 +16,7 @@
16
       <el-table ref="multipleTable"
16
       <el-table ref="multipleTable"
17
                 :data="tableData"
17
                 :data="tableData"
18
                 tooltip-effect="dark"
18
                 tooltip-effect="dark"
19
-                height="354"
19
+                height="500"
20
                 style="width: 100%;border-radius: 8px;"
20
                 style="width: 100%;border-radius: 8px;"
21
                 @row-click="handleSelectionChange">
21
                 @row-click="handleSelectionChange">
22
         <el-table-column label="头像"
22
         <el-table-column label="头像"

+ 24 - 9
src/pages/customerMan/myOrder/index.vue

@@ -1,8 +1,10 @@
1
 <template>
1
 <template>
2
   <div class="order">
2
   <div class="order">
3
     <div class="warp">
3
     <div class="warp">
4
-      <el-tabs type="border-card">
5
-        <el-tab-pane label="项目订单">
4
+      <el-tabs type="border-card"
5
+               v-model="activeName">
6
+        <el-tab-pane label="项目订单"
7
+                     name="first">
6
           <div class="user-list">
8
           <div class="user-list">
7
             <el-table ref="multipleTable"
9
             <el-table ref="multipleTable"
8
                       :data="projectData"
10
                       :data="projectData"
@@ -41,7 +43,7 @@
41
                                label="状态"
43
                                label="状态"
42
                                show-overflow-tooltip>
44
                                show-overflow-tooltip>
43
                 <template slot-scope="scope">
45
                 <template slot-scope="scope">
44
-                  <div :class="'color'+scope.row.status">{{statusStr[scope.row.status]}}</div>
46
+                  <div :class="'color'+scope.row.status">{{scope.row.status!=5?statusStr[scope.row.status]:statusStr[statusStr.length-1]}}</div>
45
                 </template>
47
                 </template>
46
               </el-table-column>
48
               </el-table-column>
47
             </el-table>
49
             </el-table>
@@ -56,7 +58,8 @@
56
             </div>
58
             </div>
57
           </div>
59
           </div>
58
         </el-tab-pane>
60
         </el-tab-pane>
59
-        <el-tab-pane label="卡卷订单">
61
+        <el-tab-pane label="卡卷订单"
62
+                     name="second">
60
           <div class="user-list">
63
           <div class="user-list">
61
             <el-table ref="multipleTable"
64
             <el-table ref="multipleTable"
62
                       :data="couponData"
65
                       :data="couponData"
@@ -93,7 +96,7 @@ type: "全额券" -->
93
                                label="状态"
96
                                label="状态"
94
                                show-overflow-tooltip>
97
                                show-overflow-tooltip>
95
                 <template slot-scope="scope">
98
                 <template slot-scope="scope">
96
-                  <div :class="'color'+scope.row.status">{{statusStr[scope.row.status]}}</div>
99
+                  <div :class="'color'+scope.row.status">{{couponStatus[scope.row.status]}}</div>
97
                 </template>
100
                 </template>
98
               </el-table-column>
101
               </el-table-column>
99
             </el-table>
102
             </el-table>
@@ -109,7 +112,8 @@ type: "全额券" -->
109
           </div>
112
           </div>
110
         </el-tab-pane>
113
         </el-tab-pane>
111
 
114
 
112
-        <el-tab-pane label="商品订单">
115
+        <el-tab-pane label="商品订单"
116
+                     name="third">
113
           <div class="user-list">
117
           <div class="user-list">
114
             <el-table ref="multipleTable"
118
             <el-table ref="multipleTable"
115
                       :data="goodData"
119
                       :data="goodData"
@@ -152,7 +156,7 @@ status: 5 -->
152
                                label="状态"
156
                                label="状态"
153
                                show-overflow-tooltip>
157
                                show-overflow-tooltip>
154
                 <template slot-scope="scope">
158
                 <template slot-scope="scope">
155
-                  <div :class="'classShow'+scope.$index">{{statusStr[scope.row.status]}}</div>
159
+                  <div :class="'classShow'+scope.$index">{{scope.row.status==1||scope.row.status==2?goodStatus[scope.row.status]:goodStatus[goodStatus.length-1]}}</div>
156
                 </template>
160
                 </template>
157
               </el-table-column>
161
               </el-table-column>
158
             </el-table>
162
             </el-table>
@@ -213,14 +217,23 @@ export default {
213
         }
217
         }
214
       ],
218
       ],
215
       statusStr: [
219
       statusStr: [
216
-        "已预约",
217
         "未支付",
220
         "未支付",
218
-        "已支付",
219
         "待使用",
221
         "待使用",
220
         "正在使用",
222
         "正在使用",
221
         "已结算",
223
         "已结算",
222
         "已取消"
224
         "已取消"
223
       ],
225
       ],
226
+      couponStatus: [
227
+        '待使用',
228
+        '已使用',
229
+        '已过期'
230
+      ],
231
+      goodStatus: [
232
+        '未支付',
233
+        '已支付',
234
+        '已取货'
235
+      ],
236
+      activeName: 'first',
224
       currentPage1: 1,
237
       currentPage1: 1,
225
       couponData: [],
238
       couponData: [],
226
       goodData: [],
239
       goodData: [],
@@ -282,6 +295,8 @@ export default {
282
 
295
 
283
   created () {
296
   created () {
284
     let id = this.$route.query.id;
297
     let id = this.$route.query.id;
298
+    let activeName = this.$route.query.activeName
299
+    this.activeName = activeName
285
     this.id = id;
300
     this.id = id;
286
     this.getUserCoupon();
301
     this.getUserCoupon();
287
     this.getUserGoods();
302
     this.getUserGoods();

+ 1 - 1
src/pages/historicalOrder/index.vue

@@ -36,7 +36,7 @@
36
       <el-table ref="multipleTable"
36
       <el-table ref="multipleTable"
37
                 :data="tableData"
37
                 :data="tableData"
38
                 tooltip-effect="dark"
38
                 tooltip-effect="dark"
39
-                height="354"
39
+                height="500"
40
                 style="width: 100%;border-radius: 8px;"
40
                 style="width: 100%;border-radius: 8px;"
41
                 @row-click="handleSelectionChange">
41
                 @row-click="handleSelectionChange">
42
         <el-table-column label="头像"
42
         <el-table-column label="头像"

+ 20 - 7
src/pages/home/index.vue

@@ -3,6 +3,7 @@
3
     <div class="tab">
3
     <div class="tab">
4
       <div class="make-order"
4
       <div class="make-order"
5
            v-for="item,index in tabList"
5
            v-for="item,index in tabList"
6
+           @click="changeTable(item.type)"
6
            :key="index">
7
            :key="index">
7
         <div class="make-icon">
8
         <div class="make-icon">
8
           <img :src="item.image">
9
           <img :src="item.image">
@@ -27,7 +28,8 @@
27
                @click="toOrderDetails(item)"
28
                @click="toOrderDetails(item)"
28
                :style="index==orderList.length-1?'border-bottom:0px':''">
29
                :style="index==orderList.length-1?'border-bottom:0px':''">
29
             <div class="head-img">
30
             <div class="head-img">
30
-              <div class="new">新</div><img :src="item.avatar_url"
31
+              <div class="new"
32
+                   v-if="item.is_new==1">新</div><img :src="item.avatar_url"
31
                    alt="">
33
                    alt="">
32
             </div>
34
             </div>
33
             <div class="user-information">
35
             <div class="user-information">
@@ -69,17 +71,20 @@ export default {
69
         {
71
         {
70
           image: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/make.png',
72
           image: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/make.png',
71
           num: 0,
73
           num: 0,
72
-          name: '预约订单'
74
+          name: '预约订单',
75
+          type: 1,
73
         },
76
         },
74
         {
77
         {
75
           image: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/unpaid.png',
78
           image: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/unpaid.png',
76
           num: 0,
79
           num: 0,
77
-          name: '未支付订单'
80
+          name: '未支付订单',
81
+          type: 2,
78
         },
82
         },
79
         {
83
         {
80
           image: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/cancelOrder.png',
84
           image: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/cancelOrder.png',
81
           num: 0,
85
           num: 0,
82
-          name: '取消订单'
86
+          name: '取消订单',
87
+          type: 3
83
         },
88
         },
84
       ],
89
       ],
85
       orderList: [
90
       orderList: [
@@ -87,7 +92,8 @@ export default {
87
       loading: false,
92
       loading: false,
88
       finished: false,
93
       finished: false,
89
       page: 1,
94
       page: 1,
90
-      limit: 10
95
+      limit: 10,
96
+      type: 0
91
 
97
 
92
     }
98
     }
93
   },
99
   },
@@ -109,9 +115,16 @@ export default {
109
         }
115
         }
110
       })
116
       })
111
     },
117
     },
118
+    changeTable (type) {
119
+      this.type = type
120
+      this.orderList = []
121
+      this.loading = false
122
+      this.finished = false
123
+      this.page = 1
124
+    },
112
     getToday () {
125
     getToday () {
113
       setTimeout(() => {
126
       setTimeout(() => {
114
-        api.getToday({ page: this.page, limit: this.limit }).then(res => {
127
+        api.getToday({ page: this.page, limit: this.limit, type: this.type }).then(res => {
115
           if (res.code = 200) {
128
           if (res.code = 200) {
116
             this.orderList = [...this.orderList, ...res.data.list]
129
             this.orderList = [...this.orderList, ...res.data.list]
117
             this.page++
130
             this.page++
@@ -209,7 +222,7 @@ export default {
209
     }
222
     }
210
 
223
 
211
     .list-info {
224
     .list-info {
212
-      height: 300px;
225
+      height: 450px;
213
       overflow: auto;
226
       overflow: auto;
214
 
227
 
215
       .user-info {
228
       .user-info {

+ 2 - 0
src/pages/login/login.vue

@@ -57,6 +57,8 @@ export default {
57
           this.$router.push({
57
           this.$router.push({
58
             path: '/home'
58
             path: '/home'
59
           })
59
           })
60
+        } else {
61
+          this.$message.error('账号或密码错误,请核对后输入');
60
         }
62
         }
61
       })
63
       })
62
     }
64
     }

+ 7 - 1
src/router/map/home.js

@@ -37,7 +37,13 @@ export default {
37
       },
37
       },
38
       component: CustomerManDetails
38
       component: CustomerManDetails
39
     },
39
     },
40
-    { path: '/customerMan/projectOrder', component: projectOrder },
40
+    {
41
+      path: '/customerMan/projectOrder',
42
+      meta: {
43
+        isback: true,
44
+      },
45
+      component: projectOrder
46
+    },
41
     { path: '/historicalOrder', component: HistoricalOrder },
47
     { path: '/historicalOrder', component: HistoricalOrder },
42
     {
48
     {
43
       path: '/historicalOrder/details',
49
       path: '/historicalOrder/details',