Commit fcafb588 by 前端

增加平安工单重推功能

1 parent 964412ac
......@@ -599,7 +599,7 @@
<div slot="footer" class="dialog-footer">
<div class="left">
<!-- <template v-if="form.orderType == 'PAZL' && form.businessStatus == 4">
<template v-if="form.orderType == 'PAZL' && form.businessStatus == 4">
<el-button
type="primary"
size="small"
......@@ -612,7 +612,7 @@
<span class="tips"
><i class="cred">*</i>说明:重推等待时长为15秒</span
>
</template> -->
</template>
</div>
<div class="right">
<el-button
......@@ -1405,24 +1405,24 @@ export default {
// 平安工单重推
repush() {
// let _this = this;
// let time = this.pushTime;
// if (this.pushInterval) {
// clearInterval(this.pushInterval);
// _this.pushInterval = null;
// }
// _this.pushInterval = setInterval(function () {
// if (time <= 0) {
// clearInterval(_this.pushInterval);
// _this.pushTime = 15;
// _this.pushInterval = null;
// return false;
// }
// time -= 1;
// _this.pushTime = time;
// console.log(time);
// }, 1000);
// _this.repushWorkOrder();
let _this = this;
let time = this.pushTime;
if (this.pushInterval) {
clearInterval(this.pushInterval);
_this.pushInterval = null;
}
_this.pushInterval = setInterval(function () {
if (time <= 0) {
clearInterval(_this.pushInterval);
_this.pushTime = 15;
_this.pushInterval = null;
return false;
}
time -= 1;
_this.pushTime = time;
console.log(time);
}, 1000);
_this.repushWorkOrder();
},
// 工单重推请求
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!