Browse Source

bu过滤

master
han\hanst 2 weeks ago
parent
commit
f9eaa6e1e1
  1. 17
      src/views/modules/erf/components/expTriConfirm.vue
  2. 1
      src/views/modules/erf/expApplyList.vue

17
src/views/modules/erf/components/expTriConfirm.vue

@ -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) {

1
src/views/modules/erf/expApplyList.vue

@ -290,6 +290,7 @@
v-if="currentRow.applyNo&&currentRow.experimentType==='High Risk'"
ref="triConfirm"
:apply-no="currentRow.applyNo"
:bu-no="currentRow.buNo"
:experiment-type="currentRow.experimentType"
:height="detailHeight">
</exp-tri-confirm>

Loading…
Cancel
Save