|
|
|
@ -512,6 +512,10 @@ export default { |
|
|
|
type: String, |
|
|
|
required: true |
|
|
|
}, |
|
|
|
buNo: { |
|
|
|
type: String, |
|
|
|
required: true |
|
|
|
}, |
|
|
|
height: { |
|
|
|
type: String, |
|
|
|
default: '35vh' |
|
|
|
@ -1060,12 +1064,13 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 加载工序模版列表 |
|
|
|
* 加载工序模版列表(根据BU过滤) |
|
|
|
*/ |
|
|
|
loadTemplateList() { |
|
|
|
this.templateLoading = true |
|
|
|
getProcessTemplateList({ |
|
|
|
site: this.$store.state.user.site |
|
|
|
site: this.$store.state.user.site, |
|
|
|
buNo: this.buNo |
|
|
|
}).then(({data}) => { |
|
|
|
this.templateLoading = false |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -1141,6 +1146,7 @@ export default { |
|
|
|
}).then(() => { |
|
|
|
saveProcessTemplate({ |
|
|
|
site: this.$store.state.user.site, |
|
|
|
buNo: this.buNo, |
|
|
|
templateName: this.processForm.processStep.trim(), |
|
|
|
prodApproverName: this.processForm.prodApproverName, |
|
|
|
prodApproverUserId: this.processForm.prodApproverUserId, |
|
|
|
@ -1152,6 +1158,8 @@ export default { |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.$message.success('保存模版成功') |
|
|
|
// 刷新模版列表 |
|
|
|
this.loadTemplateList() |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg || '保存模版失败') |
|
|
|
} |
|
|
|
@ -1179,13 +1187,14 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 加载人员列表 |
|
|
|
* 加载人员列表(根据BU过滤) |
|
|
|
*/ |
|
|
|
loadUserList(roleType) { |
|
|
|
this.userLoading = true |
|
|
|
getUserListByRole({ |
|
|
|
roleType: roleType, |
|
|
|
site: this.$store.state.user.site |
|
|
|
site: this.$store.state.user.site, |
|
|
|
buNo: this.buNo |
|
|
|
}).then(({data}) => { |
|
|
|
this.userLoading = false |
|
|
|
if (data && data.code === 0) { |
|
|
|
|