|
|
|
|
@ -59,7 +59,7 @@ |
|
|
|
|
<u-button v-if="item.status == 0" size="mini" :plain="true" style="margin-right: 32rpx" |
|
|
|
|
@click.stop="sendOrders(item)" type="primary">接单</u-button> |
|
|
|
|
<u-button v-if="item.status == 7" size="mini" :plain="true" style="margin-right: 32rpx" |
|
|
|
|
@click.stop="sendOrders(item)" type="primary">确认付款</u-button> |
|
|
|
|
@click.stop="openModel(item, 'paymentInfo')" type="primary">确认付款</u-button> |
|
|
|
|
<u-button v-if="item.status == 0" size="mini" plain type="primary" |
|
|
|
|
style="margin-right: 32rpx" @click="openModel(item, 'close')">关闭</u-button> |
|
|
|
|
|
|
|
|
|
@ -88,7 +88,7 @@ |
|
|
|
|
<u-button v-if="item.status == 2" size="mini" :plain="true" style="margin-right: 32rpx" |
|
|
|
|
type="primary" @click="orderConfirm(item)">提交</u-button> |
|
|
|
|
<u-button v-if="item.status == 5" size="mini" :plain="true" style="margin-right: 32rpx" |
|
|
|
|
type="primary" @click="openModel(item,'repair')">维修完成</u-button> |
|
|
|
|
type="primary" @click="openModel(item, 'repair')">维修完成</u-button> |
|
|
|
|
</block> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
@ -98,7 +98,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<u-loadmore margin-top="10" margin-bottom="40" :status="loadingState" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 关闭 弹框 --> |
|
|
|
|
<betone-modal :title="'关闭原因'" :confirmText="'确认'" v-model="cloneVisible" @cancel="cloneVisible = false" |
|
|
|
|
@ -122,6 +122,13 @@ |
|
|
|
|
</view> |
|
|
|
|
</betone-modal> |
|
|
|
|
|
|
|
|
|
<!-- 客服确认付款 --> |
|
|
|
|
<betone-modal v-model="paymentShow" :title="'提示'" @confirm="paymentFn" @cancel="paymentShow = false"> |
|
|
|
|
<view class="modal-text"> |
|
|
|
|
请确认付款是否已经完成? |
|
|
|
|
</view> |
|
|
|
|
</betone-modal> |
|
|
|
|
|
|
|
|
|
<betone-loading ref="BetLoading" /> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
@ -142,7 +149,7 @@ export default { |
|
|
|
|
return { |
|
|
|
|
searchInfo: { |
|
|
|
|
requirementCode: "", |
|
|
|
|
type: '',//状态 |
|
|
|
|
statusSearch: '',//状态 |
|
|
|
|
reportUnit: '',//提报单位 |
|
|
|
|
}, |
|
|
|
|
tagColor: { |
|
|
|
|
@ -175,7 +182,9 @@ export default { |
|
|
|
|
turnShow: false,//驳回弹框 |
|
|
|
|
repaiRejectReason: '',//驳回弹框 |
|
|
|
|
|
|
|
|
|
repairShow:false,//维修人员 去人维修完成弹框 |
|
|
|
|
repairShow: false,//维修人员 去人维修完成弹框 |
|
|
|
|
|
|
|
|
|
paymentShow: false,//客服确付款 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
@ -257,7 +266,7 @@ export default { |
|
|
|
|
// tab切换 |
|
|
|
|
changeTab(index) { |
|
|
|
|
this.current = index; |
|
|
|
|
this.searchInfo.status = this.tabList[index].key == '9999' ? '' : this.tabList[index].key |
|
|
|
|
this.searchInfo.statusSearch = this.tabList[index].key == '9999' ? '' : this.tabList[index].key |
|
|
|
|
this.isNomore = false |
|
|
|
|
this.page.currentPage = 1; |
|
|
|
|
this.getRecordsList() |
|
|
|
|
@ -368,13 +377,13 @@ export default { |
|
|
|
|
subOrder(row) { |
|
|
|
|
let query_ = [row] |
|
|
|
|
this.$u.api.workOrderSave(query_).then(res => { |
|
|
|
|
this.BetLoading.hide(); |
|
|
|
|
this.BetLoading.hide(); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
this.page.currentPage = 1; |
|
|
|
|
this.getRecordsList() |
|
|
|
|
} |
|
|
|
|
}).catch(err => { |
|
|
|
|
this.BetLoading.hide(); |
|
|
|
|
this.BetLoading.hide(); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
@ -418,9 +427,12 @@ export default { |
|
|
|
|
if (type == 'turn') { |
|
|
|
|
this.turnShow = true |
|
|
|
|
} |
|
|
|
|
if(type=='repair'){ |
|
|
|
|
if (type == 'repair') { |
|
|
|
|
this.repairShow = true |
|
|
|
|
} |
|
|
|
|
if (type == 'paymentInfo') { |
|
|
|
|
this.paymentShow = true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.rowInfo = item |
|
|
|
|
}, |
|
|
|
|
@ -433,30 +445,17 @@ export default { |
|
|
|
|
id: this.rowInfo.id, |
|
|
|
|
closeReason: this.closeReason, |
|
|
|
|
} |
|
|
|
|
this.BetLoading.show(); |
|
|
|
|
this.BetLoading.show(); |
|
|
|
|
|
|
|
|
|
this.$u.api.cloneOrder(query).then(res => { |
|
|
|
|
this.cloneVisible = false |
|
|
|
|
this.BetLoading.hide(); |
|
|
|
|
this.BetLoading.hide(); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
uni.showToast({ title: "关闭成功", icon: "none" }); |
|
|
|
|
this.getRecordsList() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 跳转详情 |
|
|
|
|
goPage(item, type) { |
|
|
|
|
|
|
|
|
|
// if (type == 'evaluate') { |
|
|
|
|
// let param = { |
|
|
|
|
// id: item.id, |
|
|
|
|
// } |
|
|
|
|
// uni.navigateTo({ |
|
|
|
|
// url: `/pages/submission/evaluate${this.$u.queryParams(param)}`, |
|
|
|
|
// }); |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
// 查看需求工单 |
|
|
|
|
openWorkOrder(row) { |
|
|
|
|
let param = { |
|
|
|
|
@ -496,7 +495,7 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 维修人员确认维修是否完成 |
|
|
|
|
repairFn(){ |
|
|
|
|
repairFn() { |
|
|
|
|
let query = { |
|
|
|
|
id: this.rowInfo.id, |
|
|
|
|
} |
|
|
|
|
@ -509,14 +508,30 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 跳转评价 |
|
|
|
|
openEvaluate(item){ |
|
|
|
|
openEvaluate(item) { |
|
|
|
|
let param = { |
|
|
|
|
id: item.id, |
|
|
|
|
} |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: `/pages/submission/evaluate${this.$u.queryParams(param)}`, |
|
|
|
|
}); |
|
|
|
|
id: item.id, |
|
|
|
|
} |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: `/pages/submission/evaluate${this.$u.queryParams(param)}`, |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 客服确认是否已经付款 |
|
|
|
|
paymentFn() { |
|
|
|
|
let query = { |
|
|
|
|
id: this.rowInfo.id, |
|
|
|
|
} |
|
|
|
|
this.BetLoading.show(); |
|
|
|
|
|
|
|
|
|
this.$u.api.cloneOrder(query).then(res => { |
|
|
|
|
this.paymentShow = false |
|
|
|
|
this.BetLoading.hide(); |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
uni.showToast({ title: "确认成功", icon: "none" }); |
|
|
|
|
this.getRecordsList() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
|