Browse Source

2025-05-08

master
qiezi 8 months ago
parent
commit
297cf05e98
  1. 106
      src/views/modules/tooling/searchToolApply.vue

106
src/views/modules/tooling/searchToolApply.vue

@ -237,15 +237,15 @@
<dict-data-select :site="$store.state.user.site" v-model="dataForm.department" dict-type="tool_application_department" disabled style="width: 130px"></dict-data-select> <dict-data-select :site="$store.state.user.site" v-model="dataForm.department" dict-type="tool_application_department" disabled style="width: 130px"></dict-data-select>
</el-form-item> </el-form-item>
<el-form-item required="required"> <el-form-item required="required">
<span slot="label" style="" @click="getBaseList(103,1)"><a herf="#">报价员</a></span>
<span slot="label" style="" @click="getBaseList(2002,1)"><a herf="#">报价员</a></span>
<el-input v-model="dataForm.quoterName" ref="quoterName" placeholder="请选择人员" readonly style="width: 130px" ></el-input> <el-input v-model="dataForm.quoterName" ref="quoterName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
</el-form-item> </el-form-item>
<el-form-item required="required"> <el-form-item required="required">
<span slot="label" style="" @click="getBaseList(103,2)"><a herf="#">TP</a></span>
<span slot="label" style="" @click="getBaseList(2042,2)"><a herf="#">TP</a></span>
<el-input v-model="dataForm.tpName" ref="tpName" placeholder="请选择人员" readonly style="width: 130px" ></el-input> <el-input v-model="dataForm.tpName" ref="tpName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
</el-form-item> </el-form-item>
<el-form-item required="required"> <el-form-item required="required">
<span slot="label" style="" @click="getBaseList(103,3)"><a herf="#">采购员</a></span>
<span slot="label" style="" @click="getBaseList(2000,3)"><a herf="#">采购员</a></span>
<el-input v-model="dataForm.purchaserName" ref="purchaserName" placeholder="请选择人员" readonly style="width: 130px" ></el-input> <el-input v-model="dataForm.purchaserName" ref="purchaserName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -1448,62 +1448,54 @@
this.tagNo2 = type this.tagNo2 = type
this.$nextTick(() => { this.$nextTick(() => {
let strVal = '' 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) this.$refs.baseList.init(val, strVal)
}) })
}, },
/* 列表方法的回调 */ /* 列表方法的回调 */
getBaseData (val) { 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.visible = false
this.visibleU = false this.visibleU = false
this.refreshCurrentTabTable() this.refreshCurrentTabTable()
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
}
})
// this.$message({
// message: '',
// type: 'success',
// duration: 1500,
// onClose: () => {
// }
// })
} else { } else {
this.$alert(data.msg, '错误', { this.$alert(data.msg, '错误', {
confirmButtonText: '确定' confirmButtonText: '确定'

Loading…
Cancel
Save