重点工程 - 强制结束重点工程(不删除对应关联)
parent
e156a96acc
commit
8e0fea9f30
|
@ -159,7 +159,8 @@
|
||||||
<el-button type="success" icon="el-icon-view" size="mini" @click="goDetail(row.OUTSOURCED_ID)">查看</el-button>
|
<el-button type="success" icon="el-icon-view" size="mini" @click="goDetail(row.OUTSOURCED_ID)">查看</el-button>
|
||||||
<el-button v-if="row.CREATOR==userInfoUserId && row.STATE==-1" type="success" icon="el-icon-view" size="mini" @click="handleState(row.OUTSOURCED_ID)">开工审批</el-button>
|
<el-button v-if="row.CREATOR==userInfoUserId && row.STATE==-1" type="success" icon="el-icon-view" size="mini" @click="handleState(row.OUTSOURCED_ID)">开工审批</el-button>
|
||||||
<el-button v-if="row.CREATOR==userInfoUserId && row.STATE==-2" type="success" icon="el-icon-view" size="mini" @click="handleJie(row.OUTSOURCED_ID)">结束审批</el-button>
|
<el-button v-if="row.CREATOR==userInfoUserId && row.STATE==-2" type="success" icon="el-icon-view" size="mini" @click="handleJie(row.OUTSOURCED_ID)">结束审批</el-button>
|
||||||
<el-button v-if="1 == row.STATE" type="danger" icon="el-icon-delete" size="mini" @click="handlePreForceDelete(row.OUTSOURCED_ID)">强制结束</el-button>
|
<el-button v-if="1 == row.STATE" type="danger" icon="el-icon-delete" size="mini" @click="handlePreForceDelete(row)">强制结束</el-button>
|
||||||
|
<el-button v-if="2 == row.STATE" type="success" icon="el-icon-view" size="mini" @click="handlePreForceDelete(row)">查看关联</el-button>
|
||||||
<el-button v-show="edit" v-if="0 === row.IS_CORP_TYPE" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.OUTSOURCED_ID)">编辑</el-button>
|
<el-button v-show="edit" v-if="0 === row.IS_CORP_TYPE" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.OUTSOURCED_ID)">编辑</el-button>
|
||||||
<el-button v-show="del" v-if="0 === row.IS_CORP_TYPE" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.OUTSOURCED_ID)">删除</el-button>
|
<el-button v-show="del" v-if="0 === row.IS_CORP_TYPE" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.OUTSOURCED_ID)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
@ -326,7 +327,7 @@
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="forceDelete" type="danger" icon="el-icon-delete">强制删除并结束</el-button>
|
<el-button v-if="selectOSTATE == 1" @click="forceJie" type="danger" icon="el-icon-delete">强制结束</el-button>
|
||||||
<el-button @click="dialogPreDeleteShow = false">关 闭</el-button>
|
<el-button @click="dialogPreDeleteShow = false">关 闭</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
@ -383,6 +384,7 @@ export default {
|
||||||
fkList:[],// 待反馈处罚
|
fkList:[],// 待反馈处罚
|
||||||
aiList:[],// AI报警
|
aiList:[],// AI报警
|
||||||
selectOID: '',
|
selectOID: '',
|
||||||
|
selectOSTATE:'',
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
value: 'id',
|
value: 'id',
|
||||||
children: 'nodes',
|
children: 'nodes',
|
||||||
|
@ -620,11 +622,11 @@ export default {
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handlePreForceDelete(id){
|
handlePreForceDelete(row){
|
||||||
this.dialogPreDeleteShow = true
|
this.dialogPreDeleteShow = true
|
||||||
requestFN(
|
requestFN(
|
||||||
'/outsourced/preForceDelete',
|
'/outsourced/preForceDelete',
|
||||||
{ OUTSOURCED_ID: id }
|
{ OUTSOURCED_ID: row.OUTSOURCED_ID }
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.inspectList = data.inspectList // 待确认的安全环保检查
|
this.inspectList = data.inspectList // 待确认的安全环保检查
|
||||||
this.zgList = data.zgList // 需整改的隐患
|
this.zgList = data.zgList // 需整改的隐患
|
||||||
|
@ -632,12 +634,14 @@ export default {
|
||||||
this.cfList = data.cfList // 待处罚
|
this.cfList = data.cfList // 待处罚
|
||||||
this.fkList = data.fkList // 待反馈的处罚
|
this.fkList = data.fkList // 待反馈的处罚
|
||||||
this.aiList = data.aiList // 关联的AI报警
|
this.aiList = data.aiList // 关联的AI报警
|
||||||
this.selectOID = id
|
this.selectOID = row.OUTSOURCED_ID
|
||||||
|
this.selectOSTATE = row.STATE
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
// 全部删除接口
|
// 全部删除接口
|
||||||
forceDelete(){
|
forceJie(){
|
||||||
if (!this.selectOID) {
|
if (!this.selectOID) {
|
||||||
this.$message('请勿重复点击', {
|
this.$message('请勿重复点击', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
|
@ -645,21 +649,23 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// ---
|
// ---
|
||||||
this.$confirm('确定要删除所有关联吗?', {
|
this.$confirm('确定要结束该重点工程吗?', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
requestFN(
|
requestFN(
|
||||||
'/outsourced/forceDelete',
|
'/outsourced/forceJie',
|
||||||
{OUTSOURCED_ID: this.selectOID}
|
{OUTSOURCED_ID: this.selectOID}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.dialogPreDeleteShow = false
|
this.dialogPreDeleteShow = false
|
||||||
this.selectOID = ''
|
this.selectOID = ''
|
||||||
|
this.selectOSTATE = ''
|
||||||
this.getList()
|
this.getList()
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
this.selectOID = ''
|
this.selectOID = ''
|
||||||
|
this.selectOSTATE = ''
|
||||||
})
|
})
|
||||||
|
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
Loading…
Reference in New Issue