|
|
@ -1488,6 +1488,7 @@ |
|
|
submitChange, // 提交 |
|
|
submitChange, // 提交 |
|
|
tpExecute, // TP执行 |
|
|
tpExecute, // TP执行 |
|
|
csExecute, // 会签执行 |
|
|
csExecute, // 会签执行 |
|
|
|
|
|
checkProcessControl, // 校验流程节点特殊管控权限 |
|
|
getNodeAuthority, // 获取节点权限 |
|
|
getNodeAuthority, // 获取节点权限 |
|
|
getApprovalList, // 查询审批信息 |
|
|
getApprovalList, // 查询审批信息 |
|
|
getBuBySite, // 根据site查bu |
|
|
getBuBySite, // 根据site查bu |
|
|
@ -3312,6 +3313,7 @@ |
|
|
|
|
|
|
|
|
// 选择模板属性 |
|
|
// 选择模板属性 |
|
|
chooseFeasibilityAssessmentModel () { |
|
|
chooseFeasibilityAssessmentModel () { |
|
|
|
|
|
const doOpen = () => { |
|
|
this.chooseModelData2 = { |
|
|
this.chooseModelData2 = { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
itemNo: '', |
|
|
itemNo: '', |
|
|
@ -3319,24 +3321,31 @@ |
|
|
functionType: 'ECN', |
|
|
functionType: 'ECN', |
|
|
codeNo: this.modelList2.length > 0 ? this.modelList2[0].codeNo : '' |
|
|
codeNo: this.modelList2.length > 0 ? this.modelList2[0].codeNo : '' |
|
|
} |
|
|
} |
|
|
// 先清空缓存选中 |
|
|
|
|
|
//this.$nextTick(() => this.$refs.itemTable2.clearSelection()) |
|
|
|
|
|
getItemList(this.chooseModelData2).then(({data}) => { |
|
|
getItemList(this.chooseModelData2).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.itemList2 = data.rows |
|
|
this.itemList2 = data.rows |
|
|
this.itemList2.forEach(val => { |
|
|
this.itemList2.forEach(val => { |
|
|
// 回显选中 |
|
|
|
|
|
if (this.chooseItemList2.map(val => val.itemNo).includes(val.itemNo)) { |
|
|
if (this.chooseItemList2.map(val => val.itemNo).includes(val.itemNo)) { |
|
|
this.$nextTick(() => this.$refs.itemTable2.toggleRowSelection(val, true)) |
|
|
this.$nextTick(() => this.$refs.itemTable2.toggleRowSelection(val, true)) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.$alert(data.msg, '错误', { confirmButtonText: '确定' }) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
this.chooseModelFlag2 = true |
|
|
this.chooseModelFlag2 = true |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.changeStatus === '草稿') { |
|
|
|
|
|
doOpen() |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
checkProcessControl({ site: this.$store.state.user.site, changeNo: this.modalData.changeNo, roleId: 9 }).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
doOpen() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '权限不足', { confirmButtonText: '确定' }) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
chooseManuFacturingCostModal () { |
|
|
chooseManuFacturingCostModal () { |
|
|
this.manuFacturingCostFlag = true |
|
|
this.manuFacturingCostFlag = true |
|
|
@ -3365,6 +3374,7 @@ |
|
|
|
|
|
|
|
|
// 选择会签模板属性 |
|
|
// 选择会签模板属性 |
|
|
chooseCSModel () { |
|
|
chooseCSModel () { |
|
|
|
|
|
const doOpen = () => { |
|
|
this.chooseCSModelData = { |
|
|
this.chooseCSModelData = { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
itemNo: '', |
|
|
itemNo: '', |
|
|
@ -3372,25 +3382,32 @@ |
|
|
functionType: 'ECN', |
|
|
functionType: 'ECN', |
|
|
codeNo: this.modelCSList.length > 0 ? this.modelCSList[0].codeNo : '' |
|
|
codeNo: this.modelCSList.length > 0 ? this.modelCSList[0].codeNo : '' |
|
|
} |
|
|
} |
|
|
// 先清空缓存选中 |
|
|
|
|
|
this.$nextTick(() => this.$refs.itemCSTable.clearSelection()) |
|
|
this.$nextTick(() => this.$refs.itemCSTable.clearSelection()) |
|
|
// 查询所有属性 |
|
|
|
|
|
getItemList(this.chooseCSModelData).then(({data}) => { |
|
|
getItemList(this.chooseCSModelData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.itemCSList = data.rows |
|
|
this.itemCSList = data.rows |
|
|
this.itemCSList.forEach(val => { |
|
|
this.itemCSList.forEach(val => { |
|
|
// 回显选中的部门 |
|
|
|
|
|
if (this.chooseCSItemList.map(val => val.itemNo).includes(val.itemNo)) { |
|
|
if (this.chooseCSItemList.map(val => val.itemNo).includes(val.itemNo)) { |
|
|
this.$nextTick(() => this.$refs.itemCSTable.toggleRowSelection(val, true)) |
|
|
this.$nextTick(() => this.$refs.itemCSTable.toggleRowSelection(val, true)) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.$alert(data.msg, '错误', { confirmButtonText: '确定' }) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
this.chooseCSModelFlag = true |
|
|
this.chooseCSModelFlag = true |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.changeStatus === '草稿') { |
|
|
|
|
|
doOpen() |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
checkProcessControl({ site: this.$store.state.user.site, changeNo: this.modalData.changeNo, roleId: 12 }).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
doOpen() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '权限不足', { confirmButtonText: '确定' }) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 确认多选属性 |
|
|
// 确认多选属性 |
|
|
@ -3584,11 +3601,24 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
chooseExecutor (row) { |
|
|
chooseExecutor (row) { |
|
|
|
|
|
const doOpen = () => { |
|
|
this.tempExecutorRow = row |
|
|
this.tempExecutorRow = row |
|
|
if (this.tempExecutorRow.executor == null) { |
|
|
if (this.tempExecutorRow.executor == null) { |
|
|
this.tempExecutorRow.executor = '' |
|
|
this.tempExecutorRow.executor = '' |
|
|
} |
|
|
} |
|
|
this.getBaseList(2010) |
|
|
this.getBaseList(2010) |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.changeStatus === '草稿') { |
|
|
|
|
|
doOpen() |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
checkProcessControl({ site: this.$store.state.user.site, changeNo: this.modalData.changeNo, roleId: 11 }).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
doOpen() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '权限不足', { confirmButtonText: '确定' }) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
ecnTypeHeaderChange (val,index) { |
|
|
ecnTypeHeaderChange (val,index) { |
|
|
@ -4604,6 +4634,7 @@ |
|
|
|
|
|
|
|
|
// 选择模板属性 |
|
|
// 选择模板属性 |
|
|
chooseModel () { |
|
|
chooseModel () { |
|
|
|
|
|
const doOpen = () => { |
|
|
this.chooseModelData = { |
|
|
this.chooseModelData = { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
itemNo: '', |
|
|
itemNo: '', |
|
|
@ -4611,25 +4642,31 @@ |
|
|
functionType: 'ECN', |
|
|
functionType: 'ECN', |
|
|
codeNo: this.modelList.length > 0 ? this.modelList[0].codeNo : '' |
|
|
codeNo: this.modelList.length > 0 ? this.modelList[0].codeNo : '' |
|
|
} |
|
|
} |
|
|
// 先清空缓存选中 |
|
|
|
|
|
//this.$nextTick(() => this.$refs.itemTable.clearSelection()) |
|
|
|
|
|
// 查询所有属性 |
|
|
|
|
|
getItemList(this.chooseModelData).then(({data}) => { |
|
|
getItemList(this.chooseModelData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.itemList = data.rows |
|
|
this.itemList = data.rows |
|
|
this.itemList.forEach(val => { |
|
|
this.itemList.forEach(val => { |
|
|
// 回显选中的部门 |
|
|
|
|
|
if (this.chooseItemList.map(val => val.itemNo).includes(val.itemNo)) { |
|
|
if (this.chooseItemList.map(val => val.itemNo).includes(val.itemNo)) { |
|
|
this.$nextTick(() => this.$refs.itemTable.toggleRowSelection(val, true)) |
|
|
this.$nextTick(() => this.$refs.itemTable.toggleRowSelection(val, true)) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.$alert(data.msg, '错误', { confirmButtonText: '确定' }) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
this.chooseModelFlag = true |
|
|
this.chooseModelFlag = true |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData.changeStatus === '草稿') { |
|
|
|
|
|
doOpen() |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
checkProcessControl({ site: this.$store.state.user.site, changeNo: this.modalData.changeNo, roleId: 10 }).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
doOpen() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '权限不足', { confirmButtonText: '确定' }) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 查询属性 |
|
|
// 查询属性 |
|
|
|