|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
switch (buttonType) {
|
|
|
case 'agree':// 同意
|
|
|
// 判断是否最后一步流程
|
|
|
- if (this.actionTitle == '同意并结束') {
|
|
|
+ if (this.actionTitle === '同意并结束') {
|
|
|
this.setData('1')
|
|
|
} else {
|
|
|
this.setData()
|
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
this.instanceDetailVisible = true
|
|
|
break
|
|
|
case 'startFlow': // 启动流程
|
|
|
- if (this.actionTitle == '同意并结束') {
|
|
|
+ if (this.actionTitle === '同意并结束') {
|
|
|
this.setData('1')
|
|
|
} else {
|
|
|
this.setData('已编制')
|
|
|
@@ -650,7 +650,6 @@ export default {
|
|
|
if (!code) {
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
const sql = `select * from t_lcidglbdbb where tablekey_ = '${code}' and ti_jiao_kuai_zhao = '是' and gui_dang_lei_xing = 'process' and (liu_cheng_xuan_ze = (select PROC_DEF_KEY_ from ibps_bpm_inst where id_ = '${instId}' limit 1) or liu_cheng_xuan_ze = (select PROC_DEF_KEY_ from ibps_bpm_inst_his where id_ = '${instId}' limit 1))`
|
|
|
request('sql', sql).then(async res => {
|
|
|
const { data = [] } = res.variables || {}
|
|
|
@@ -671,7 +670,7 @@ export default {
|
|
|
// this.updateState(id, code, '1', null)
|
|
|
return
|
|
|
}
|
|
|
- const path = data[0].bao_biao_lu_jing_.split('.rpx') [0]
|
|
|
+ const path = data[0].bao_biao_lu_jing_.split('.rpx')[0]
|
|
|
const url = this.$getReportFile(`罗医细胞质量检测实验室/${path}`, `id_=${id}`)
|
|
|
const now = new Date(new Date().getTime() + 28800000).toJSON().slice(0, 16).replace(/[-:T]/g, '')
|
|
|
const fileName = name + now
|