Commit 05e68aae by Mr. Lan

添加催办功能

parent 0411c968
...@@ -53,3 +53,12 @@ export function inversionWorkOrder(data) { ...@@ -53,3 +53,12 @@ export function inversionWorkOrder(data) {
data data
}) })
} }
// 催办工单
export function urgeWorkOrder(params) {
return request({
url: '/api/v1/work-order/urge',
method: 'get',
params
})
}
...@@ -65,6 +65,13 @@ ...@@ -65,6 +65,13 @@
@click="handleView(scope.row)" @click="handleView(scope.row)"
>查看</el-button> >查看</el-button>
<el-button <el-button
v-permisaction="['process:list:upcoming:urge']"
size="mini"
type="text"
icon="el-icon-alarm-clock"
@click="handleUrge(scope.row)"
>催办</el-button>
<el-button
v-if="scope.row.is_end===0" v-if="scope.row.is_end===0"
v-permisaction="['process:list:upcoming:inversion']" v-permisaction="['process:list:upcoming:inversion']"
size="mini" size="mini"
...@@ -114,7 +121,7 @@ ...@@ -114,7 +121,7 @@
</template> </template>
<script> <script>
import { workOrderList, inversionWorkOrder } from '@/api/process/work-order' import { workOrderList, inversionWorkOrder, urgeWorkOrder } from '@/api/process/work-order'
import { listUser } from '@/api/system/sysuser' import { listUser } from '@/api/system/sysuser'
export default { export default {
data() { data() {
...@@ -191,6 +198,29 @@ export default { ...@@ -191,6 +198,29 @@ export default {
}) })
} }
}) })
},
handleUrge(row) {
this.$confirm('<span style="font-size:15px ">对此工单处理人进行催办通知提醒, 是否继续?</span><br><span style="color: #c33; font-size: 10px">注意:十分钟内只能催办一次。</span>', '催办', {
dangerouslyUseHTMLString: true,
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
urgeWorkOrder({
workOrderId: row.id
}).then(response => {
console.log(response)
this.$message({
type: 'success',
message: '已进行催办通知!'
})
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
})
})
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment