|
@@ -161,6 +161,20 @@
|
|
|
@tap="toPartsApply(item.id)"
|
|
|
></u-button>
|
|
|
<u-button
|
|
|
+ v-if="!item.isImportExcel"
|
|
|
+ type="primary"
|
|
|
+ text="过程反馈"
|
|
|
+ @tap="toFeedback(item.id)"
|
|
|
+ ></u-button>
|
|
|
+ </block>
|
|
|
+ <block
|
|
|
+ v-if="
|
|
|
+ orderStatus_v(item.orderStatus) == 'FWZ' ||
|
|
|
+ orderStatus_v(item.orderStatus) == 'YCD' ||
|
|
|
+ (item.orderStatus == 'YWG' && item.overDate && isToday(item.overDate))
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <u-button
|
|
|
plain
|
|
|
type="primary"
|
|
|
text="辅材收费"
|
|
@@ -168,12 +182,6 @@
|
|
|
v-if="item.orderType == 'INSTALL'"
|
|
|
></u-button>
|
|
|
<u-button plain type="primary" text="配件收费" @tap="toCharge(item.id, 'P')" v-else></u-button>
|
|
|
- <u-button
|
|
|
- v-if="!item.isImportExcel"
|
|
|
- type="primary"
|
|
|
- text="过程反馈"
|
|
|
- @tap="toFeedback(item.id)"
|
|
|
- ></u-button>
|
|
|
</block>
|
|
|
<!-- 待抢单 -->
|
|
|
<block v-if="orderStatus_v(item.orderStatus) == 'DQD' && !item.isImportExcel">
|
|
@@ -288,6 +296,16 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ isToday(dateString) {
|
|
|
+ const inputDate = new Date(dateString)
|
|
|
+ const today = new Date()
|
|
|
+
|
|
|
+ return (
|
|
|
+ inputDate.getFullYear() === today.getFullYear() &&
|
|
|
+ inputDate.getMonth() === today.getMonth() &&
|
|
|
+ inputDate.getDate() === today.getDate()
|
|
|
+ )
|
|
|
+ },
|
|
|
orderStatus_v(orderStatus) {
|
|
|
if (['DYY'].includes(orderStatus)) {
|
|
|
// 待预约
|