diff --git a/src/views/modules/tooling/searchToolApply.vue b/src/views/modules/tooling/searchToolApply.vue
index 4cc0fdf..6bc17e3 100644
--- a/src/views/modules/tooling/searchToolApply.vue
+++ b/src/views/modules/tooling/searchToolApply.vue
@@ -237,15 +237,15 @@
- 报价员
+ 报价员
- TP
+ TP
- 采购员
+ 采购员
@@ -1448,62 +1448,54 @@
this.tagNo2 = type
this.$nextTick(() => {
let strVal = ''
- if (val === 103) {
- if(type==1) {
- if(this.changeApplyHeaderFlag('quoter') === 'N'){
- this.$alert('没有权限在审批过程中修改!', '错误', {
- confirmButtonText: '确定'
- })
- return false
- }
- strVal = this.dataForm.quoter
+ if (val === 2002) {
+ if (this.changeApplyHeaderFlag('quoter') === 'N' && this.currentRow.status === '审批中') {
+ this.$alert('没有权限在审批过程中修改!', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false
}
- if(type==2) {
- if(this.changeApplyHeaderFlag('tp') === 'N'){
- this.$alert('没有权限在审批过程中修改!', '错误', {
- confirmButtonText: '确定'
- })
- return false
- }
- strVal = this.dataForm.tp
+ strVal = this.dataForm.quoter
+ }else if (val === 2042){
+ if (this.changeApplyHeaderFlag('tp') === 'N' && this.currentRow.status === '审批中') {
+ this.$alert('没有权限在审批过程中修改!', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false
}
- if(type==3) {
- if(this.changeApplyHeaderFlag('purchaser') === 'N'){
- this.$alert('没有权限在审批过程中修改!', '错误', {
- confirmButtonText: '确定'
- })
- return false
- }
- strVal = this.dataForm.purchaser
+ strVal = this.dataForm.tp
+ }else if (val === 2000){
+ if (this.changeApplyHeaderFlag('purchaser') === 'N' && this.currentRow.status === '审批中') {
+ this.$alert('没有权限在审批过程中修改!', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false
}
+ strVal = this.dataForm.purchaser
}
this.$refs.baseList.init(val, strVal)
})
},
/* 列表方法的回调 */
getBaseData (val) {
- if (this.tagNo === 103) {
- if(this.tagNo2==1) {
- this.dataForm.quoter = val.username
- this.dataForm.quoterName = val.user_display
- this.$nextTick(() => {
- this.$triggerInputEvent(this.$refs.quoterName);
- });
- }
- if(this.tagNo2==2) {
- this.dataForm.tp = val.username
- this.dataForm.tpName = val.user_display
- this.$nextTick(() => {
- this.$triggerInputEvent(this.$refs.tpName);
- });
- }
- if(this.tagNo2==3) {
- this.dataForm.purchaser = val.username
- this.dataForm.purchaserName = val.user_display
- this.$nextTick(() => {
- this.$triggerInputEvent(this.$refs.purchaserName);
- });
- }
+ if (this.tagNo === 2002) {
+ this.dataForm.quoter = val.username
+ this.dataForm.quoterName = val.user_display
+ this.$nextTick(() => {
+ this.$triggerInputEvent(this.$refs.quoterName);
+ });
+ }else if (this.tagNo === 2042){
+ this.dataForm.tp = val.username
+ this.dataForm.tpName = val.user_display
+ this.$nextTick(() => {
+ this.$triggerInputEvent(this.$refs.tpName);
+ });
+ }else if (this.tagNo === 2000){
+ this.dataForm.purchaser = val.username
+ this.dataForm.purchaserName = val.user_display
+ this.$nextTick(() => {
+ this.$triggerInputEvent(this.$refs.purchaserName);
+ });
}
},
@@ -2043,13 +2035,13 @@
this.visible = false
this.visibleU = false
this.refreshCurrentTabTable()
- this.$message({
- message: '操作成功',
- type: 'success',
- duration: 1500,
- onClose: () => {
- }
- })
+ // this.$message({
+ // message: '操作成功',
+ // type: 'success',
+ // duration: 1500,
+ // onClose: () => {
+ // }
+ // })
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'