|
@@ -18,8 +18,11 @@
|
|
|
<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'&&!confirmLoading)" @click="()=>visibleTs = true">推送</a-button>
|
|
|
</a-popconfirm>
|
|
|
- <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'|| formState.state=='4')" @click="()=>visibleWj = true">完结</a-button>
|
|
|
+ <a-popconfirm title="确定提交吗?" ok-text="是" cancel-text="否" @confirm="end" @cancel="handleCancelPop('visibleTj')" :visible="visibleTj">
|
|
|
+ <a-button type="primary" style="margin-left: 8px;" :disabled="!(formState.state=='3'|| formState.state=='4')" @click="()=>visibleTj = true">提交</a-button>
|
|
|
+ </a-popconfirm>
|
|
|
+ <a-popconfirm title="确定完结吗?" ok-text="是" cancel-text="否" @confirm="finish" @cancel="handleCancelPop('visibleWj')" :visible="visibleWj">
|
|
|
+ <a-button type="primary" style="margin-left: 8px;" :disabled="!(formState.state=='5')" @click="()=>visibleWj = true">完结</a-button>
|
|
|
</a-popconfirm>
|
|
|
</template>
|
|
|
<a-spin :spinning="confirmLoading">
|
|
@@ -454,6 +457,7 @@
|
|
|
confirmLoading:false,
|
|
|
visibleFk:false,
|
|
|
visibleTs:false,
|
|
|
+ visibleTj:false,
|
|
|
visibleWj:false,
|
|
|
accessory2:[],
|
|
|
accessory:[],
|
|
@@ -694,7 +698,7 @@
|
|
|
}
|
|
|
},
|
|
|
end(){
|
|
|
- this.visibleWj = false
|
|
|
+ this.visibleTj = false
|
|
|
getAction('/oa/incidentTicket/endOrder', {headId:this.formState.id}).then((res) => {
|
|
|
if(res.success){
|
|
|
this.$message.success(res.message)
|
|
@@ -704,6 +708,17 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ finish(){
|
|
|
+ this.visibleWj = false
|
|
|
+ getAction('/oa/incidentTicket/endOrderReal', {headId:this.formState.id}).then((res) => {
|
|
|
+ if(res.success){
|
|
|
+ this.$message.success(res.message)
|
|
|
+ this.handleCancel()
|
|
|
+ }else{
|
|
|
+ this.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
sendNotice(ids){
|
|
|
getAction('/oa/incidentTicket/noticeUser', {ids:ids,headId:this.formState.id,code:this.formState.accidentNumber,title:this.formState.accidentTheme}).then((res) => {
|
|
|
if(res.success){
|
|
@@ -792,7 +807,7 @@
|
|
|
this.incidentTicketChildrenTable.dataSource =[]
|
|
|
this.formState = {}
|
|
|
this.visible = false
|
|
|
- this.visibleWj = false
|
|
|
+ this.visibleTj = false
|
|
|
this.visibleTs = false
|
|
|
this.visibleFk = false
|
|
|
this.$emit('close')
|
|
@@ -801,6 +816,7 @@
|
|
|
handleCancelPop(data){
|
|
|
if(data=='visibleFk') this.visibleFk = false
|
|
|
if(data=='visibleTs') this.visibleTs = false
|
|
|
+ if(data=='visibleTj') this.visibleTj = false
|
|
|
if(data=='visibleWj') this.visibleWj = false
|
|
|
},
|
|
|
handlePrint(){
|