|
@@ -11,14 +11,14 @@
|
|
|
<template #footer>
|
|
|
<a-button @click="handleCancel" style="margin-left: 8px;">取消</a-button>
|
|
|
<a-button type="primary" @click="addNotice" style="margin-left: 8px;" :disabled="!(formState.state=='1')">通知</a-button>
|
|
|
- <a-popconfirm title="确定反馈通知吗?" ok-text="是" cancel-text="否" @confirm="feedbackNotice" :visible="visibleFk">
|
|
|
+ <a-popconfirm title="确定反馈通知吗?" ok-text="是" cancel-text="否" @confirm="feedbackNotice" @cancel="handleCancelPop('visibleFk')" :visible="visibleFk">
|
|
|
<a-button type="primary" style="margin-left: 8px;" :disabled="!(formState.state=='2')" @click="()=>visibleFk = true">反馈通知</a-button>
|
|
|
</a-popconfirm>
|
|
|
- <a-popconfirm title="确定推送吗?" ok-text="是" cancel-text="否" @confirm="push" :visible="visibleTs">
|
|
|
+ <a-popconfirm title="确定推送吗?" ok-text="是" cancel-text="否" @confirm="push" @cancel="handleCancelPop('visibleTs')" :visible="visibleTs">
|
|
|
<a-button type="primary" style="margin-left: 8px;" :disabled="!(formState.state=='3')" @click="()=>visibleTs = true">推送</a-button>
|
|
|
</a-popconfirm>
|
|
|
- <a-popconfirm title="确定完结吗?" ok-text="是" cancel-text="否" @confirm="end" :visible="visibleWj">
|
|
|
- <a-button type="primary" style="margin-left: 8px;" :disabled="!(formState.state=='4')" @click="()=>visibleWj = true">完结</a-button>
|
|
|
+ <a-popconfirm title="确定完结吗?" ok-text="是" cancel-text="否" @confirm="end" @cancel="handleCancelPop('visibleWj')" :visible="visibleWj">
|
|
|
+ <a-button type="primary" style="margin-left: 8px;" :disabled="!(formState.state=='3')" @click="()=>visibleWj = true">完结</a-button>
|
|
|
</a-popconfirm>
|
|
|
</template>
|
|
|
<a-spin :spinning="confirmLoading">
|
|
@@ -176,7 +176,7 @@
|
|
|
:columns="incidentTicketChildrenTable.columns"
|
|
|
:data-source="incidentTicketChildrenTable.dataSource"
|
|
|
:loading="incidentTicketChildrenTable.loading"
|
|
|
- :scroll="{x: 2000,y:300 }"
|
|
|
+ :scroll="{x: 1500,y:300 }"
|
|
|
:pagination="false"
|
|
|
>
|
|
|
<!-- 汇率 -->
|
|
@@ -400,6 +400,7 @@
|
|
|
align: "center",
|
|
|
dataIndex: 'planNumber',
|
|
|
width: 140,
|
|
|
+ width: '7%',
|
|
|
// scopedSlots: { customRender: 'planNumber' },
|
|
|
},
|
|
|
{
|
|
@@ -407,6 +408,7 @@
|
|
|
align: "center",
|
|
|
dataIndex: 'accidentType',
|
|
|
width: 140,
|
|
|
+ width: '7%',
|
|
|
// scopedSlots: { customRender: 'accidentType' },
|
|
|
},
|
|
|
{
|
|
@@ -414,6 +416,7 @@
|
|
|
align: "center",
|
|
|
dataIndex: 'accidentSum',
|
|
|
width: 140,
|
|
|
+ width: '7%',
|
|
|
// scopedSlots: { customRender: 'accidentSum' },
|
|
|
},
|
|
|
{
|
|
@@ -421,6 +424,7 @@
|
|
|
align: "center",
|
|
|
dataIndex: 'exchangeRate',
|
|
|
width: 140,
|
|
|
+ width: '9%',
|
|
|
// scopedSlots: { customRender: 'exchangeRate' },
|
|
|
},
|
|
|
{
|
|
@@ -428,20 +432,21 @@
|
|
|
align: "center",
|
|
|
dataIndex: 'practicalSum',
|
|
|
width: 140,
|
|
|
+ width: '7%',
|
|
|
// scopedSlots: { customRender: 'practicalSum' },
|
|
|
},
|
|
|
{
|
|
|
title: 'U8生成运费发票号',
|
|
|
align: "center",
|
|
|
dataIndex: 'u8Invoice',
|
|
|
- width: 140,
|
|
|
+ width: '9%',
|
|
|
// scopedSlots: { customRender: 'u8Invoice' },
|
|
|
},
|
|
|
{
|
|
|
title: '账套号',
|
|
|
align: "center",
|
|
|
dataIndex: 'zhanghaoId',
|
|
|
- width: 140,
|
|
|
+ width: '9%',
|
|
|
// scopedSlots: { customRender: 'zhanghaoId' },
|
|
|
},
|
|
|
|
|
@@ -449,7 +454,7 @@
|
|
|
title: '备注',
|
|
|
align: "center",
|
|
|
dataIndex: 'remark',
|
|
|
- width: 140,
|
|
|
+ width: '20%',
|
|
|
// scopedSlots: { customRender: 'remark' },
|
|
|
},
|
|
|
|
|
@@ -471,6 +476,7 @@
|
|
|
this.$refs.JSelectBizComponent.showModal()
|
|
|
},
|
|
|
feedbackNotice(){
|
|
|
+ this.visibleFk =false
|
|
|
getAction('/oa/incidentTicket/noticeUserReturn', {headId:this.formState.id,title:this.formState.accidentTheme,code:this.formState.accidentNumber}).then((res) => {
|
|
|
if(res.success){
|
|
|
this.$message.success(res.message)
|
|
@@ -483,7 +489,18 @@
|
|
|
})
|
|
|
},
|
|
|
push(){
|
|
|
- getAction('/oa/incidentTicket/propelling', {headId:this.formState.id}).then((res) => {
|
|
|
+ this.visibleTs = false
|
|
|
+ var pushOk = 'yes'
|
|
|
+ this.incidentTicketChildrenTable.dataSource.every(item=>{
|
|
|
+ if(item.zhanghaoId==''||!item.zhanghaoId){
|
|
|
+ this.$message.warning('请选择账套号!')
|
|
|
+ pushOk = 'no'
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ })
|
|
|
+ if(pushOk=='yes'){
|
|
|
+ getAction('/oa/incidentTicket/propelling', {headId:this.formState.id}).then((res) => {
|
|
|
if(res.success){
|
|
|
this.$message.success(res.message)
|
|
|
this.handleCancel()
|
|
@@ -491,8 +508,10 @@
|
|
|
this.$message.warning(res.message)
|
|
|
}
|
|
|
})
|
|
|
+ }
|
|
|
},
|
|
|
end(){
|
|
|
+ this.visibleWj = false
|
|
|
getAction('/oa/incidentTicket/endOrder', {headId:this.formState.id}).then((res) => {
|
|
|
if(res.success){
|
|
|
this.$message.success(res.message)
|
|
@@ -583,6 +602,12 @@
|
|
|
this.visibleFk = false
|
|
|
this.$emit('close')
|
|
|
},
|
|
|
+ // 关闭提示框
|
|
|
+ handleCancelPop(data){
|
|
|
+ if(data=='visibleFk') this.visibleFk = false
|
|
|
+ if(data=='visibleTs') this.visibleTs = false
|
|
|
+ if(data=='visibleTs') this.visibleTs = false
|
|
|
+ },
|
|
|
// getAllTable() {
|
|
|
// let values = this.tableKeys.map(key => getRefPromise(this, key))
|
|
|
// return Promise.all(values)
|