|
@@ -43,7 +43,7 @@
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
v-model="time"
|
|
v-model="time"
|
|
|
type="datetime"
|
|
type="datetime"
|
|
|
- placeholder="选择日期时间"
|
|
|
|
|
|
|
+ placeholder="未编制"
|
|
|
:readonly="true"
|
|
:readonly="true"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -93,7 +93,7 @@
|
|
|
prop=""
|
|
prop=""
|
|
|
label="序号"
|
|
label="序号"
|
|
|
type="index"
|
|
type="index"
|
|
|
- width="100"
|
|
|
|
|
|
|
+ width="50"
|
|
|
:index="showIndex"
|
|
:index="showIndex"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -110,7 +110,7 @@
|
|
|
<el-input v-model="row.gong_zuo_huan_jie" type="textarea" :rows="2" size="mini" :readonly="readonly" />
|
|
<el-input v-model="row.gong_zuo_huan_jie" type="textarea" :rows="2" size="mini" :readonly="readonly" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
|
|
|
|
+ <!-- <el-table-column
|
|
|
prop="gong_zuo_miao_shu"
|
|
prop="gong_zuo_miao_shu"
|
|
|
label="工作描述"
|
|
label="工作描述"
|
|
|
width="150"
|
|
width="150"
|
|
@@ -118,6 +118,15 @@
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
<el-input v-model="row.gong_zuo_miao_shu" type="textarea" :rows="2" size="mini" :readonly="readonly" />
|
|
<el-input v-model="row.gong_zuo_miao_shu" type="textarea" :rows="2" size="mini" :readonly="readonly" />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ </el-table-column> -->
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="ni_cai_qu_cuo_shi"
|
|
|
|
|
+ label="拟采取控制措施"
|
|
|
|
|
+ width="150"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
|
+ <el-input v-model="row.ni_cai_qu_cuo_shi" type="textarea" :rows="2" size="mini" :readonly="readonly" />
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="feng_xian_miao_sh"
|
|
prop="feng_xian_miao_sh"
|
|
@@ -173,7 +182,7 @@
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="feng_xian_zhi_shu"
|
|
prop="feng_xian_zhi_shu"
|
|
|
label="风险指数"
|
|
label="风险指数"
|
|
|
- width="100"
|
|
|
|
|
|
|
+ width="70"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="feng_xian_deng_ji"
|
|
prop="feng_xian_deng_ji"
|
|
@@ -213,20 +222,6 @@
|
|
|
/>
|
|
/>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
|
|
- prop="ni_cai_qu_cuo_shi"
|
|
|
|
|
- label="拟采取控制措施"
|
|
|
|
|
- width="120"
|
|
|
|
|
- >
|
|
|
|
|
- <template slot-scope="{row}">
|
|
|
|
|
- <el-input v-model="row.ni_cai_qu_cuo_shi" type="textarea" :rows="2" size="mini" :readonly="readonly" />
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <!-- <el-table-column prop="" label="操作" width="100" fixed="right">
|
|
|
|
|
- <template slot-scope="{row}">
|
|
|
|
|
- <el-button type="primary" size="mini">编辑</el-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column> -->
|
|
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -355,11 +350,11 @@ export default {
|
|
|
shi_bie_xiang_: item.id_,
|
|
shi_bie_xiang_: item.id_,
|
|
|
yao_su_tiao_kuan_: item.tiao_kuan_,
|
|
yao_su_tiao_kuan_: item.tiao_kuan_,
|
|
|
gong_zuo_huan_jie: item.huan_jie_,
|
|
gong_zuo_huan_jie: item.huan_jie_,
|
|
|
- gong_zuo_miao_shu: item.gong_zuo_miao_shu,
|
|
|
|
|
|
|
+ // gong_zuo_miao_shu: item.gong_zuo_miao_shu,
|
|
|
feng_xian_miao_sh: item.feng_xian_miao_sh,
|
|
feng_xian_miao_sh: item.feng_xian_miao_sh,
|
|
|
|
|
|
|
|
xian_xing_kong_zh: '',
|
|
xian_xing_kong_zh: '',
|
|
|
- ni_cai_qu_cuo_shi: '',
|
|
|
|
|
|
|
+ ni_cai_qu_cuo_shi: item.gong_zuo_miao_shu,
|
|
|
zhi_ding_ren_: ''
|
|
zhi_ding_ren_: ''
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -390,11 +385,19 @@ export default {
|
|
|
const { variables: { data }} = await this.$common.request('sql', sql)
|
|
const { variables: { data }} = await this.$common.request('sql', sql)
|
|
|
if (data.length > 0) {
|
|
if (data.length > 0) {
|
|
|
// console.log('data', data)
|
|
// console.log('data', data)
|
|
|
|
|
+ this.position = data[0].bian_zhi_bu_men_
|
|
|
|
|
+ this.userId = data[0].bian_zhi_ren_
|
|
|
|
|
+ this.time = data[0].bian_zhi_shi_jian
|
|
|
this.form.xuan_ze_feng_xian = data[0].xuan_ze_feng_xian
|
|
this.form.xuan_ze_feng_xian = data[0].xuan_ze_feng_xian
|
|
|
this.tableList = data
|
|
this.tableList = data
|
|
|
// 存储原始数据的 id 数组
|
|
// 存储原始数据的 id 数组
|
|
|
this.Ids = this.tableList.map(item => item.shi_bie_xiang_)
|
|
this.Ids = this.tableList.map(item => item.shi_bie_xiang_)
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ if (this.rowParams.bian_zhi_ren_) {
|
|
|
|
|
+ this.position = this.rowParams.bian_zhi_bu_men_
|
|
|
|
|
+ this.userId = this.rowParams.bian_zhi_ren_
|
|
|
|
|
+ this.time = ''
|
|
|
|
|
+ }
|
|
|
this.tableList = []
|
|
this.tableList = []
|
|
|
this.Ids = []
|
|
this.Ids = []
|
|
|
}
|
|
}
|
|
@@ -561,6 +564,25 @@ export default {
|
|
|
}
|
|
}
|
|
|
console.log(params)
|
|
console.log(params)
|
|
|
await this.$common.request('update', params)
|
|
await this.$common.request('update', params)
|
|
|
|
|
+ // 判断是否是最后一个提交的评估人
|
|
|
|
|
+ const pinGuRenNum = this.params.ping_gu_ren_yuan_.split(',').length
|
|
|
|
|
+ const sql = `select * from t_fxsbpgb2 where parent_id_='${this.params.id_}'`
|
|
|
|
|
+ const { variables: { data }} = await this.$common.request('sql', sql)
|
|
|
|
|
+ const submitNum = new Set(data.map(item => item.bian_zhi_ren_)).size
|
|
|
|
|
+ if (submitNum === pinGuRenNum && data.every(item => item.shi_fou_guo_shen_ === '已完成')) {
|
|
|
|
|
+ // 提醒组长
|
|
|
|
|
+ await this.$common.sendMsg({
|
|
|
|
|
+ subject: '风险评估与措施表单待提交',
|
|
|
|
|
+ content: `您有一份评估与措施表单待提交,请前往-风险控制-风险评估与措施页面提交,计划编号:${this.params.ji_hua_bian_hao_}。`,
|
|
|
|
|
+ receiverId: this.params.zu_chang_id_,
|
|
|
|
|
+ canreplay: '0',
|
|
|
|
|
+ skipTypeMsg: JSON.stringify({
|
|
|
|
|
+ skipType: 3,
|
|
|
|
|
+ pathInfo: '/tygl/fxkzV2/fxpgycslb' // 路由
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log('通知组长成功')
|
|
|
|
|
+ }
|
|
|
console.log('提交成功')
|
|
console.log('提交成功')
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|