|
@@ -189,15 +189,12 @@
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip
|
|
|
- v-if="powers.some((item) => item == '007')"
|
|
|
+ v-if="powers.some((item) => item == '092') && scope.row.status + '' === '8'"
|
|
|
effect="dark"
|
|
|
- content="重新"
|
|
|
+ content="重新转单"
|
|
|
placement="top"
|
|
|
>
|
|
|
- <i
|
|
|
- class="el-icon-view tb-icon"
|
|
|
- @click="getRouter('othTransferOrderLogDetail', scope.row.id)"
|
|
|
- ></i>
|
|
|
+ <i class="el-icon-refresh-left tb-icon" @click="resetOrder(scope.row.id)"></i>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
</ex-table>
|
|
@@ -336,6 +333,20 @@ export default {
|
|
|
this.$message.warning("暂未找到相关流程!");
|
|
|
}
|
|
|
},
|
|
|
+ async resetOrder(id) {
|
|
|
+ if (this.loading) return;
|
|
|
+ this.loading = true;
|
|
|
+ const { code, data, message } = await asyncRequest.retry({ id: id });
|
|
|
+ if (code === 0) {
|
|
|
+ this.loading = false;
|
|
|
+ await this.searchList();
|
|
|
+ } else if (code >= 100 && code <= 104) {
|
|
|
+ await this.logout();
|
|
|
+ } else {
|
|
|
+ this.$message.warning(message);
|
|
|
+ }
|
|
|
+ this.loading = false;
|
|
|
+ },
|
|
|
// 刷新表格
|
|
|
async searchList() {
|
|
|
if (this.loading) return;
|