|
@@ -104,7 +104,7 @@
|
|
|
>
|
|
|
<view
|
|
|
class="fun"
|
|
|
- v-if="orderStatus_v(item.orderStatus) !== 'DQD'"
|
|
|
+ v-if="orderStatus_v(item.orderStatus, item) !== 'DQD'"
|
|
|
@tap.stop="$callPhone(item.userMobile)"
|
|
|
>
|
|
|
<text class="iconfont icon-call"></text>
|
|
@@ -119,7 +119,7 @@
|
|
|
<view class="val address ellipsis-3">{{ item.address || item.gpsAddress }}</view>
|
|
|
<view
|
|
|
class="fun"
|
|
|
- v-if="orderStatus_v(item.orderStatus) !== 'DQD'"
|
|
|
+ v-if="orderStatus_v(item.orderStatus, item) !== 'DQD'"
|
|
|
@tap.stop="
|
|
|
$openLocation({
|
|
|
lat: item.lat,
|
|
@@ -148,13 +148,13 @@
|
|
|
// ---------------
|
|
|
(!item.isImportExcel &&
|
|
|
item.attr == 'SELF' &&
|
|
|
- ['DYY', 'DJD'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['DYY', 'DJD'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
(item.orderType == 'INSTALL' ? !!userInfo.workerNumber : true)) ||
|
|
|
// ---------------
|
|
|
(!item.isImportExcel &&
|
|
|
item.attr != 'SELF' &&
|
|
|
- (['DYY'].includes(orderStatus_v(item.orderStatus)) ||
|
|
|
- (['DJD'].includes(orderStatus_v(item.orderStatus))
|
|
|
+ (['DYY'].includes(orderStatus_v(item.orderStatus, item)) ||
|
|
|
+ (['DJD'].includes(orderStatus_v(item.orderStatus, item))
|
|
|
? item.orderType == 'INSTALL'
|
|
|
? !!userInfo.workerNumber
|
|
|
: true
|
|
@@ -171,10 +171,12 @@
|
|
|
// ---------------
|
|
|
(!item.isImportExcel &&
|
|
|
item.attr == 'SELF' &&
|
|
|
- ['DQD'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['DQD'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
(item.orderType == 'INSTALL' ? !!userInfo.workerNumber : true)) ||
|
|
|
// ---------------
|
|
|
- (!item.isImportExcel && item.attr != 'SELF' && ['DQD'].includes(orderStatus_v(item.orderStatus)))
|
|
|
+ (!item.isImportExcel &&
|
|
|
+ item.attr != 'SELF' &&
|
|
|
+ ['DQD'].includes(orderStatus_v(item.orderStatus, item)))
|
|
|
"
|
|
|
type="primary"
|
|
|
text="抢单"
|
|
@@ -187,16 +189,16 @@
|
|
|
// ---------------
|
|
|
((item.isImportExcel &&
|
|
|
item.orderType != 'INSTALL' &&
|
|
|
- (['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus)) ||
|
|
|
- (['DQD', 'DJD', 'DSHPG', 'DWDPG'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ (['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus, item)) ||
|
|
|
+ (['DQD', 'DJD', 'DSHPG', 'DWDPG'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
!userInfo.workerNumber))) ||
|
|
|
// ---------------
|
|
|
(item.isImportExcel &&
|
|
|
item.orderType != 'INSTALL' &&
|
|
|
- ['YWG'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['YWG'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
isTodayOrYesterday(item.overTime)) ||
|
|
|
// ---------------
|
|
|
- (!item.isImportExcel && ['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus)))) &&
|
|
|
+ (!item.isImportExcel && ['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus, item)))) &&
|
|
|
(item.isImportExcel ? item.isMeet : true)
|
|
|
"
|
|
|
plain
|
|
@@ -210,16 +212,16 @@
|
|
|
v-if="
|
|
|
// ---------------
|
|
|
((item.isImportExcel &&
|
|
|
- ['DYY', 'FWZ', 'YWG'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['DYY', 'FWZ', 'YWG'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
(item.orderType == 'INSTALL' ? !!userInfo.workerNumber : true)) ||
|
|
|
// ---------------
|
|
|
(item.isImportExcel &&
|
|
|
- ['DQD', 'DJD', 'DSHPG', 'DWDPG'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['DQD', 'DJD', 'DSHPG', 'DWDPG'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
item.orderType != 'INSTALL' &&
|
|
|
!userInfo.workerNumber) ||
|
|
|
// ---------------
|
|
|
(!item.isImportExcel &&
|
|
|
- ['DYY', 'FWZ', 'YWG'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['DYY', 'FWZ', 'YWG'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
(item.orderType == 'INSTALL' ? !!userInfo.workerNumber : true))) &&
|
|
|
(item.isImportExcel ? item.isMeet : true)
|
|
|
"
|
|
@@ -237,23 +239,23 @@
|
|
|
@tap="toCharge(item.id, 'M')"
|
|
|
v-if="
|
|
|
((item.isImportExcel &&
|
|
|
- ['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
(item.orderType == 'INSTALL' ? !!userInfo.workerNumber : true)) ||
|
|
|
//----------
|
|
|
(item.isImportExcel &&
|
|
|
- ['DQD', 'DJD', 'DSHPG', 'DWDPG'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['DQD', 'DJD', 'DSHPG', 'DWDPG'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
item.orderType != 'INSTALL' &&
|
|
|
!userInfo.workerNumber) ||
|
|
|
//----------
|
|
|
(!item.isImportExcel &&
|
|
|
- ['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
!!userInfo.workerNumber) ||
|
|
|
//----------
|
|
|
(((item.isImportExcel &&
|
|
|
- ['YWG'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['YWG'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
(item.orderType == 'INSTALL' ? !!userInfo.workerNumber : true)) ||
|
|
|
(!item.isImportExcel &&
|
|
|
- ['YWG'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['YWG'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
!!userInfo.workerNumber)) &&
|
|
|
isTodayOrYesterday(item.overTime))) &&
|
|
|
(item.isImportExcel ? item.isMeet : true)
|
|
@@ -265,21 +267,21 @@
|
|
|
v-if="
|
|
|
((item.isImportExcel &&
|
|
|
item.orderType != 'INSTALL' &&
|
|
|
- (['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus)) ||
|
|
|
- (['DQD', 'DJD', 'DSHPG', 'DWDPG'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ (['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus, item)) ||
|
|
|
+ (['DQD', 'DJD', 'DSHPG', 'DWDPG'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
!userInfo.workerNumber))) ||
|
|
|
//----------
|
|
|
(!item.isImportExcel &&
|
|
|
item.orderType != 'INSTALL' &&
|
|
|
- ['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
!!userInfo.workerNumber) ||
|
|
|
//----------
|
|
|
(((item.isImportExcel &&
|
|
|
item.orderType != 'INSTALL' &&
|
|
|
- ['YWG'].includes(orderStatus_v(item.orderStatus))) ||
|
|
|
+ ['YWG'].includes(orderStatus_v(item.orderStatus, item))) ||
|
|
|
(!item.isImportExcel &&
|
|
|
item.orderType != 'INSTALL' &&
|
|
|
- ['YWG'].includes(orderStatus_v(item.orderStatus)) &&
|
|
|
+ ['YWG'].includes(orderStatus_v(item.orderStatus, item)) &&
|
|
|
!!userInfo.workerNumber)) &&
|
|
|
isTodayOrYesterday(item.overTime))) &&
|
|
|
(item.isImportExcel ? item.isMeet : true)
|
|
@@ -293,11 +295,11 @@
|
|
|
<!-- 过程反馈 -->
|
|
|
<u-button
|
|
|
v-if="
|
|
|
- (['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus)) ||
|
|
|
+ (['DYY', 'FWZ'].includes(orderStatus_v(item.orderStatus, item)) ||
|
|
|
(item.isImportExcel &&
|
|
|
item.orderType != 'INSTALL' &&
|
|
|
!userInfo.workerNumber &&
|
|
|
- ['DQD', 'DJD', 'DSHPG', 'DWDPG'].includes(orderStatus_v(item.orderStatus)))) &&
|
|
|
+ ['DQD', 'DJD', 'DSHPG', 'DWDPG'].includes(orderStatus_v(item.orderStatus, item)))) &&
|
|
|
(item.isImportExcel ? item.isMeet : true)
|
|
|
"
|
|
|
type="primary"
|
|
@@ -307,7 +309,7 @@
|
|
|
|
|
|
<!-- ------------------------------------ -->
|
|
|
|
|
|
- <!-- <block v-if="orderStatus_v(item.orderStatus) == 'DJD'">
|
|
|
+ <!-- <block v-if="orderStatus_v(item.orderStatus,item) == 'DJD'">
|
|
|
<u-button
|
|
|
plain
|
|
|
type="primary"
|
|
@@ -451,7 +453,10 @@ export default {
|
|
|
inputDate.getDate() === today.getDate()
|
|
|
)
|
|
|
},
|
|
|
- orderStatus_v(orderStatus) {
|
|
|
+ orderStatus_v(orderStatus, item) {
|
|
|
+ if (item?.isImportExcel && item?.isMeet === false) {
|
|
|
+ return 'DJD'
|
|
|
+ }
|
|
|
if (['DYY'].includes(orderStatus)) {
|
|
|
// 待预约
|
|
|
return 'DYY'
|
|
@@ -483,10 +488,10 @@ export default {
|
|
|
} else if (['DWDPG', 'DWDPD', 'WDBH'].includes(orderStatus)) {
|
|
|
// 待网点派工
|
|
|
return 'DWDPG'
|
|
|
- } else if (['DJD', 'DSM', 'YZP'].includes(orderStatus)) {
|
|
|
+ } else if (['DJD'].includes(orderStatus)) {
|
|
|
// 待接单
|
|
|
return 'DJD'
|
|
|
- } else if (['FWZ', 'GCSZT', 'BFWG'].includes(orderStatus)) {
|
|
|
+ } else if (['FWZ', 'GCSZT', 'BFWG', 'DSM', 'YZP'].includes(orderStatus)) {
|
|
|
// 服务中
|
|
|
return 'FWZ'
|
|
|
} else if (['YCD'].includes(orderStatus)) {
|