|
|
|
|
@ -41,14 +41,14 @@ |
|
|
|
|
<!-- 巡检任务 客户 确认--> |
|
|
|
|
<block v-if="subsectionCurrent == '0' && dataTypes == 1 && item.taskStatus == 3"> |
|
|
|
|
<u-button size="mini" plain style="margin-right: 32rpx" |
|
|
|
|
@click.stop="openWorkOrder(item,'tsak')">确认</u-button> |
|
|
|
|
@click.stop="openWorkOrder(item, 'tsak')">确认</u-button> |
|
|
|
|
</block> |
|
|
|
|
<!--巡检任务 维修人员 接单 提交--> |
|
|
|
|
<block v-if="subsectionCurrent == '0' && dataTypes == 4"> |
|
|
|
|
<u-button v-if="item.taskStatus == 1" size="mini" plain style="margin-right: 32rpx" |
|
|
|
|
@click="openWorkOrder(item,'tsak')">接单</u-button> |
|
|
|
|
@click="openWorkOrder(item, 'tsak')">接单</u-button> |
|
|
|
|
<u-button v-if="item.taskStatus == 2" size="mini" plain style="margin-right: 32rpx" |
|
|
|
|
@click="openWorkOrder(item,'tsak')">巡检</u-button> |
|
|
|
|
@click="openWorkOrder(item, 'tsak')">巡检</u-button> |
|
|
|
|
</block> |
|
|
|
|
<!--巡检任务 维修主管 指派 --> |
|
|
|
|
<block v-if="subsectionCurrent == '0' && dataTypes == 3"> |
|
|
|
|
@ -61,24 +61,24 @@ |
|
|
|
|
<!--巡检维修 客户 --> |
|
|
|
|
<block v-if="subsectionCurrent == '1' && dataTypes == 1"> |
|
|
|
|
<u-button v-if="item.repairStatus == 3" size="mini" plain style="margin-right: 32rpx" |
|
|
|
|
@click="openWorkOrder(item,'repair')">审批</u-button> |
|
|
|
|
@click="openWorkOrder(item, 'repair')">审批</u-button> |
|
|
|
|
<u-button v-if="item.repairStatus == 5" size="mini" plain style="margin-right: 32rpx" |
|
|
|
|
@click="openEvaluate(item)">评价</u-button> |
|
|
|
|
</block> |
|
|
|
|
<!--巡检维修 客服 --> |
|
|
|
|
<block v-if="subsectionCurrent == '1' && dataTypes == 2"> |
|
|
|
|
<u-button v-if="item.repairStatus == 6" size="mini" plain |
|
|
|
|
style="margin-right: 32rpx" @click.stop="openModel(item, 'paymentInfo')">确认付款</u-button> |
|
|
|
|
<u-button v-if="item.repairStatus == 6" size="mini" plain style="margin-right: 32rpx" |
|
|
|
|
@click.stop="openModel(item, 'paymentInfo')">确认付款</u-button> |
|
|
|
|
</block> |
|
|
|
|
<!--巡检维修 维修主管 --> |
|
|
|
|
<block v-if="subsectionCurrent == '1' && dataTypes == 3"> |
|
|
|
|
<u-button v-if="item.repairStatus == 2" size="mini" plain style="margin-right: 32rpx" |
|
|
|
|
@click="openWorkOrder(item,'repair')">审批</u-button> |
|
|
|
|
@click="openWorkOrder(item, 'repair')">审批</u-button> |
|
|
|
|
</block> |
|
|
|
|
<!--巡检维修 维修人员 --> |
|
|
|
|
<block v-if="subsectionCurrent == '1' && dataTypes == 4"> |
|
|
|
|
<u-button v-if="item.repairStatus == 1" size="mini" plain style="margin-right: 32rpx" |
|
|
|
|
@click="openWorkOrder(item,'repair')">提交</u-button> |
|
|
|
|
@click="openWorkOrder(item, 'repair')">提交</u-button> |
|
|
|
|
<u-button v-if="item.repairStatus == 4" size="mini" plain style="margin-right: 32rpx" |
|
|
|
|
@click="openModel(item, 'repairComplete')">维修完成</u-button> |
|
|
|
|
</block> |
|
|
|
|
@ -96,7 +96,8 @@ |
|
|
|
|
value-name="id" title="选择维修人员"></u-select> |
|
|
|
|
|
|
|
|
|
<!-- 维修人员 确认维修是否完成 --> |
|
|
|
|
<betone-modal v-model="repairCompleteShow" :title="'提示'" @confirm="repairCompleteFn" @cancel="repairCompleteShow = false"> |
|
|
|
|
<betone-modal v-model="repairCompleteShow" :title="'提示'" @confirm="repairCompleteFn" |
|
|
|
|
@cancel="repairCompleteShow = false"> |
|
|
|
|
维修是否完成? |
|
|
|
|
</betone-modal> |
|
|
|
|
|
|
|
|
|
@ -124,17 +125,24 @@ export default { |
|
|
|
|
requirementCode: "", |
|
|
|
|
type: '',//状态 |
|
|
|
|
reportUnit: '',//提报单位 |
|
|
|
|
statusSearch:'',//巡检任务状态 |
|
|
|
|
statusSearch: '',//巡检任务状态 |
|
|
|
|
}, |
|
|
|
|
userInfo: {},//用户信息 |
|
|
|
|
rowInfo: {},//选中行数据 |
|
|
|
|
tagColor: { |
|
|
|
|
维修中: "#3A62D7", |
|
|
|
|
待确认: "#81B337", |
|
|
|
|
待维修: "#3A62D7", |
|
|
|
|
待提报: "#81B337", |
|
|
|
|
待巡检: "#67c23a", |
|
|
|
|
巡检中: "#e6a23", |
|
|
|
|
待确认: '#67c23a', |
|
|
|
|
待派单: "#409eff", |
|
|
|
|
待接单: "#67c23a", |
|
|
|
|
已完成: "#CECECE", |
|
|
|
|
待维修: '#E99D42' |
|
|
|
|
待提交: "#67c23a", |
|
|
|
|
待审批 :"#409eff", |
|
|
|
|
维修中:"#e6a23", |
|
|
|
|
待确认:"#67c23a", |
|
|
|
|
待评价:"#67c23a", |
|
|
|
|
维修完成:"#67c23a", |
|
|
|
|
待付款:"#67c23a", |
|
|
|
|
}, |
|
|
|
|
tabList: [], |
|
|
|
|
tasktabList: [], |
|
|
|
|
@ -165,7 +173,7 @@ export default { |
|
|
|
|
rowInfo: {},//获取列表数据 |
|
|
|
|
|
|
|
|
|
repairCompleteShow: false,//维修完成 |
|
|
|
|
paymentShow:false,//确认付款是否完成 |
|
|
|
|
paymentShow: false,//确认付款是否完成 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
@ -277,7 +285,7 @@ export default { |
|
|
|
|
this.getRecordsList() |
|
|
|
|
}, |
|
|
|
|
// 巡检维修 tab切换 |
|
|
|
|
subsectionChangeTab(index){ |
|
|
|
|
subsectionChangeTab(index) { |
|
|
|
|
this.current = index; |
|
|
|
|
this.searchInfo.statusSearch = this.tasktabList[index].key == '9999' ? '' : this.tasktabList[index].key |
|
|
|
|
this.isNomore = false |
|
|
|
|
@ -296,11 +304,11 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//跳转工单 |
|
|
|
|
openWorkOrder(item,type) { |
|
|
|
|
openWorkOrder(item, type) { |
|
|
|
|
let param = { |
|
|
|
|
id: item.id, |
|
|
|
|
type: 'view', |
|
|
|
|
details:type |
|
|
|
|
details: type |
|
|
|
|
} |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: `/pages/inspection/questOrder${this.$u.queryParams(param)}`, |
|
|
|
|
@ -308,7 +316,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
subsectionChange(e) { |
|
|
|
|
this.subsectionCurrent = e; |
|
|
|
|
this.searchInfo.statusSearch='' |
|
|
|
|
this.searchInfo.statusSearch = '' |
|
|
|
|
this.getRecordsList() |
|
|
|
|
}, |
|
|
|
|
// 指派 |
|
|
|
|
@ -346,7 +354,7 @@ export default { |
|
|
|
|
if (type == 'repairComplete') { |
|
|
|
|
this.repairCompleteShow = true |
|
|
|
|
} |
|
|
|
|
if(type =='paymentInfo'){ |
|
|
|
|
if (type == 'paymentInfo') { |
|
|
|
|
this.paymentShow = true |
|
|
|
|
} |
|
|
|
|
this.rowInfo = item |
|
|
|
|
@ -366,7 +374,7 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 确认付款是否完成 |
|
|
|
|
paymentFn(){ |
|
|
|
|
paymentFn() { |
|
|
|
|
let query = { |
|
|
|
|
id: this.rowInfo.id, |
|
|
|
|
} |
|
|
|
|
@ -440,7 +448,7 @@ export default { |
|
|
|
|
if ((item == 5 && this.dataTypes == 3) || (item == 5 && this.dataTypes == 4)) { |
|
|
|
|
return '维修完成' |
|
|
|
|
} |
|
|
|
|
if ((item == 6 && this.dataTypes == 3) || (item == 6 && this.dataTypes == 2)||(item == 6 && this.dataTypes == 1)) { |
|
|
|
|
if ((item == 6 && this.dataTypes == 3) || (item == 6 && this.dataTypes == 2) || (item == 6 && this.dataTypes == 1)) { |
|
|
|
|
return '待付款' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|