|
|
|
@ -153,18 +153,24 @@ |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
<!-- <el-col :span="6">--> |
|
|
|
<!-- <div class="grid-content bg-purple">--> |
|
|
|
<!-- <el-form-item >--> |
|
|
|
<!-- <span slot="label" style="" @click="getBaseList(6)"><a herf="#">Select Technical</a></span>--> |
|
|
|
<!-- <el-input v-model="dataForm.mpOperatorName" ref="mpOperatorName" placeholder="请选择人员" readonly></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </div>--> |
|
|
|
<!-- </el-col>--> |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="grid-content bg-purple"> |
|
|
|
<el-form-item > |
|
|
|
<span slot="label" style="" @click="getBaseList(6)"><a herf="#">Select Technical</a></span> |
|
|
|
<el-input v-model="dataForm.mpOperatorName" ref="mpOperatorName" placeholder="请选择人员" readonly></el-input> |
|
|
|
<span slot="label" @click="handleMpOperator"><a>Select Technical</a></span> |
|
|
|
<el-input v-model="dataForm.mpOperatorName" @focus="handleMpOperator()" ref="mpOperatorName" placeholder="请选择人员" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
|
|
<!-- </el-row>--> |
|
|
|
|
|
|
|
<!-- <el-row :gutter="20">--> |
|
|
|
<!-- <el-col :span="12"><div class="grid-content bg-purple">--> |
|
|
|
<!-- <el-form-item >--> |
|
|
|
@ -233,41 +239,27 @@ |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="grid-content bg-purple"> |
|
|
|
<el-form-item label="备注区" class="auto-form"> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
v-model="dataForm.remarkPage " |
|
|
|
:rows="10" |
|
|
|
resize='none' |
|
|
|
:disabled="ifDisableFlag"> |
|
|
|
</el-input> |
|
|
|
<el-input type="textarea" v-model="dataForm.remarkPage" :rows="10" resize='none' :disabled="ifDisableFlag"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="24"><div class="grid-content bg-purple"> |
|
|
|
<el-form-item label="关联料号" class="auto-form"> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
v-model="dataForm.relevancePartNo" |
|
|
|
:rows="4" |
|
|
|
resize='none' |
|
|
|
:disabled="ifDisableFlag"> |
|
|
|
</el-input> |
|
|
|
<el-input type="textarea" v-model="dataForm.relevancePartNo" :rows="4" resize='none' :disabled="ifDisableFlag"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div></el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
<el-dialog |
|
|
|
width="530px" |
|
|
|
title="报价员" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:visible.sync="quotationOfficerFlag"> |
|
|
|
<el-transfer v-model="quotationOfficerList" class="rq" filterable :props="{ |
|
|
|
key: 'operatorId', |
|
|
|
label: 'operatorName' |
|
|
|
}" :data="operatorList" :titles="['未选择', '已选择']"></el-transfer> |
|
|
|
|
|
|
|
<el-dialog width="530px" title="报价员" :close-on-click-modal="false" :visible.sync="quotationOfficerFlag"> |
|
|
|
<el-transfer |
|
|
|
v-model="quotationOfficerList" class="rq" filterable |
|
|
|
:props="{key: 'operatorId',label: 'operatorName'}" |
|
|
|
:data="operatorList" :titles="['未选择', '已选择']"> |
|
|
|
</el-transfer> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<div style="margin-top: 5px"> |
|
|
|
<el-button type="primary" @click="saveQuotationOfficerList()">确定</el-button> |
|
|
|
@ -275,15 +267,13 @@ |
|
|
|
</div> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog |
|
|
|
width="530px" |
|
|
|
title="工程师" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:visible.sync="engineerFlag"> |
|
|
|
<el-transfer v-model="engineerList" class="rq" filterable :props="{ |
|
|
|
key: 'operatorId', |
|
|
|
label: 'operatorName' |
|
|
|
}" :data="operatorList" :titles="['未选择', '已选择']"></el-transfer> |
|
|
|
|
|
|
|
<el-dialog width="530px" title="工程师" :close-on-click-modal="false" :visible.sync="engineerFlag"> |
|
|
|
<el-transfer |
|
|
|
v-model="engineerList" class="rq" filterable |
|
|
|
:props="{key: 'operatorId',label: 'operatorName'}" |
|
|
|
:data="operatorList" :titles="['未选择', '已选择']"> |
|
|
|
</el-transfer> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<div style="margin-top: 5px"> |
|
|
|
<el-button type="primary" @click="saveEngineerList()">确定</el-button> |
|
|
|
@ -291,15 +281,13 @@ |
|
|
|
</div> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog |
|
|
|
width="530px" |
|
|
|
title="项目负责人" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:visible.sync="technicianFlag"> |
|
|
|
<el-transfer v-model="technicianList" class="rq" filterable :props="{ |
|
|
|
key: 'operatorId', |
|
|
|
label: 'operatorName' |
|
|
|
}" :data="operatorList" :titles="['未选择', '已选择']"></el-transfer> |
|
|
|
|
|
|
|
<el-dialog width="530px" title="项目负责人" :close-on-click-modal="false" :visible.sync="technicianFlag"> |
|
|
|
<el-transfer |
|
|
|
v-model="technicianList" class="rq" filterable |
|
|
|
:props="{key: 'operatorId',label: 'operatorName'}" |
|
|
|
:data="operatorList" :titles="['未选择', '已选择']"> |
|
|
|
</el-transfer> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<div style="margin-top: 5px"> |
|
|
|
<el-button type="primary" @click="savetechnicianList()">确定</el-button> |
|
|
|
@ -308,34 +296,10 @@ |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog |
|
|
|
width="530px" |
|
|
|
title="DCC人员" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:visible.sync="dccFlag"> |
|
|
|
<el-transfer v-model="dccList" class="rq" filterable :props="{ |
|
|
|
key: 'operatorId', |
|
|
|
label: 'operatorName' |
|
|
|
}" :data="operatorList" :titles="['未选择', '已选择']"></el-transfer> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<div style="margin-top: 5px"> |
|
|
|
<el-button type="primary" @click="savetDccList()">确定</el-button> |
|
|
|
<el-button @click="dccFlag = false" type="primary">取消</el-button> |
|
|
|
</div> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="CQC人员" |
|
|
|
:visible.sync="cqcVisible" |
|
|
|
:close-on-click-modal="false" |
|
|
|
width="530px"> |
|
|
|
<el-dialog title="CQC人员" :visible.sync="cqcVisible" :close-on-click-modal="false" width="530px"> |
|
|
|
<el-transfer |
|
|
|
v-model="dataForm.cqcOperatorList" |
|
|
|
class="rq" |
|
|
|
filterable |
|
|
|
:props="operatorProp" |
|
|
|
:data="cqcOperatorList" |
|
|
|
v-model="dataForm.cqcOperatorList" class="rq" filterable |
|
|
|
:props="operatorProp" :data="cqcOperatorList" |
|
|
|
:titles="['未选择', '已选择']"> |
|
|
|
</el-transfer> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
@ -343,16 +307,11 @@ |
|
|
|
<el-button type="primary" @click="cqcVisible = false">取消</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog title="FAI人员" |
|
|
|
:visible.sync="faiVisible" |
|
|
|
:close-on-click-modal="false" |
|
|
|
width="530px"> |
|
|
|
|
|
|
|
<el-dialog title="FAI人员" :visible.sync="faiVisible" :close-on-click-modal="false" width="530px"> |
|
|
|
<el-transfer |
|
|
|
v-model="dataForm.faiOperatorList" |
|
|
|
class="rq" |
|
|
|
filterable |
|
|
|
:props="operatorProp" |
|
|
|
:data="faiOperatorList" |
|
|
|
v-model="dataForm.faiOperatorList" class="rq" filterable |
|
|
|
:props="operatorProp" :data="faiOperatorList" |
|
|
|
:titles="['未选择', '已选择']"> |
|
|
|
</el-transfer> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
@ -361,6 +320,31 @@ |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog width="530px" title="DCC人员" :close-on-click-modal="false" :visible.sync="dccVisible"> |
|
|
|
<el-transfer |
|
|
|
v-model="dccList" class="rq" filterable |
|
|
|
:props="operatorProp" :data="operatorList" |
|
|
|
:titles="['未选择', '已选择']"> |
|
|
|
</el-transfer> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<div style="margin-top: 5px"> |
|
|
|
<el-button type="primary" @click="saveDccList()">确定</el-button> |
|
|
|
<el-button @click="dccVisible = false" type="primary">取消</el-button> |
|
|
|
</div> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="Technical人员" :visible.sync="mpVisible" :close-on-click-modal="false" width="530px"> |
|
|
|
<el-transfer |
|
|
|
v-model="dataForm.mpOperatorList" class="rq" filterable |
|
|
|
:props="operatorProp" :data="mpOperatorList" |
|
|
|
:titles="['未选择', '已选择']"> |
|
|
|
</el-transfer> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="handleSaveMpOperator">确定</el-button> |
|
|
|
<el-button type="primary" @click="mpVisible = false">取消</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<ChooseUser ref="baseList" @getBaseData="getBaseData"></ChooseUser> |
|
|
|
|
|
|
|
@ -413,7 +397,7 @@ |
|
|
|
quotationOfficerFlag: false, |
|
|
|
engineerFlag: false, |
|
|
|
technicianFlag: false, |
|
|
|
dccFlag:false, |
|
|
|
dccVisible: false, |
|
|
|
operatorList:[], |
|
|
|
dccList: [], |
|
|
|
quotationOfficerList: [], |
|
|
|
@ -423,7 +407,6 @@ |
|
|
|
sp:'', |
|
|
|
nodeName:'', |
|
|
|
}, |
|
|
|
|
|
|
|
dataForm: { |
|
|
|
nodeName:'', |
|
|
|
process:'', |
|
|
|
@ -450,8 +433,6 @@ |
|
|
|
engineer:'', |
|
|
|
technician:'', |
|
|
|
quotationOfficerList:[], |
|
|
|
engineerList:[], |
|
|
|
technicianList:[], |
|
|
|
stage:'', |
|
|
|
remarkPage:'', |
|
|
|
cqcOperator:'', |
|
|
|
@ -467,11 +448,15 @@ |
|
|
|
engineerNo:'', |
|
|
|
technicianNo:'', |
|
|
|
dcc: '', |
|
|
|
dccList:'', |
|
|
|
relevancePartNo: '', |
|
|
|
ecnUpgradeVersion: '', |
|
|
|
csOperatorList: [], |
|
|
|
engineerList: [], |
|
|
|
technicianList: [], |
|
|
|
mpOperatorList: [], |
|
|
|
cqcOperatorList: [], |
|
|
|
faiOperatorList: [], |
|
|
|
relevancePartNo:'', |
|
|
|
ecnUpgradeVersion:'' |
|
|
|
dccList: '', |
|
|
|
}, |
|
|
|
dataRole: { |
|
|
|
partTypeDesc: [ |
|
|
|
@ -497,13 +482,18 @@ |
|
|
|
label: 'operatorName' |
|
|
|
}, |
|
|
|
cqcVisible: false, |
|
|
|
cqcOperatorList:[], |
|
|
|
faiVisible: false, |
|
|
|
mpVisible: false, |
|
|
|
cqcOperatorList: [], |
|
|
|
faiOperatorList: [], |
|
|
|
mpOperatorList: [], |
|
|
|
ecnNeedChangeDrawing: 'No', |
|
|
|
plmTechnicalSpecificationSheetArr: [], |
|
|
|
plmTechnicalSpecificationTeamArr: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
// 获取基础数据列表S |
|
|
|
getBaseList (type) { |
|
|
|
if(this.ifDisableFlag){ |
|
|
|
@ -513,86 +503,86 @@ |
|
|
|
this.$nextTick(() => { |
|
|
|
let strVal = '' |
|
|
|
let roleId = '' |
|
|
|
if(type==1) { |
|
|
|
if(type === 1) { |
|
|
|
strVal = this.dataForm.cqcOperator |
|
|
|
roleId = 'R008' |
|
|
|
} |
|
|
|
if(type==2) { |
|
|
|
if(type === 2) { |
|
|
|
strVal = this.dataForm.faiOperator |
|
|
|
roleId = 'R009' |
|
|
|
} |
|
|
|
if(type==4) { |
|
|
|
if(type === 4) { |
|
|
|
strVal = this.dataForm.csOperater |
|
|
|
roleId = 'R010' |
|
|
|
} |
|
|
|
if(type==6) { |
|
|
|
if(type === 6) { |
|
|
|
strVal = this.dataForm.mpOperator |
|
|
|
roleId = 'R021' |
|
|
|
} |
|
|
|
if(type==7) { |
|
|
|
if(type === 7) { |
|
|
|
strVal = this.dataForm.engineerNo |
|
|
|
roleId = 'R004' |
|
|
|
} |
|
|
|
if(type==8) { |
|
|
|
if(type === 8) { |
|
|
|
strVal = this.dataForm.technicianNo |
|
|
|
roleId = 'R014' |
|
|
|
} |
|
|
|
this.$refs.baseList.init(this.searchData.site,this.searchData.buNo, strVal,roleId) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
/* 列表方法的回调 */ |
|
|
|
getBaseData (val) { |
|
|
|
|
|
|
|
if(this.tagNo1==1) { |
|
|
|
if (this.tagNo1 === 1) { |
|
|
|
this.dataForm.cqcOperator = val.username |
|
|
|
this.dataForm.cqcOperatorName = val.userDisplay |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$triggerInputEvent(this.$refs.cqcOperatorName); |
|
|
|
}); |
|
|
|
} |
|
|
|
if(this.tagNo1==2) { |
|
|
|
if (this.tagNo1 === 2) { |
|
|
|
this.dataForm.faiOperator = val.username |
|
|
|
this.dataForm.faiOperatorName = val.userDisplay |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$triggerInputEvent(this.$refs.faiOperatorName); |
|
|
|
}); |
|
|
|
} |
|
|
|
if(this.tagNo1==3) { |
|
|
|
if (this.tagNo1 === 3) { |
|
|
|
this.dataForm.peOperater = val.username |
|
|
|
this.dataForm.peOperaterName = val.userDisplay |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$triggerInputEvent(this.$refs.peOperaterName); |
|
|
|
}); |
|
|
|
} |
|
|
|
if(this.tagNo1==4) { |
|
|
|
if (this.tagNo1 === 4) { |
|
|
|
this.dataForm.csOperater = val.username |
|
|
|
this.dataForm.csOperaterName = val.userDisplay |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$triggerInputEvent(this.$refs.csOperaterName); |
|
|
|
}); |
|
|
|
} |
|
|
|
if(this.tagNo1==5) { |
|
|
|
if (this.tagNo1 === 5) { |
|
|
|
this.dataForm.dccOperater = val.username |
|
|
|
this.dataForm.dccOperaterName = val.userDisplay |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$triggerInputEvent(this.$refs.dccOperaterName); |
|
|
|
}); |
|
|
|
} |
|
|
|
if(this.tagNo1==6) { |
|
|
|
if (this.tagNo1 === 6) { |
|
|
|
this.dataForm.mpOperator = val.username |
|
|
|
this.dataForm.mpOperatorName = val.userDisplay |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$triggerInputEvent(this.$refs.mpOperatorName); |
|
|
|
}); |
|
|
|
} |
|
|
|
if(this.tagNo1==7) { |
|
|
|
if (this.tagNo1 === 7) { |
|
|
|
this.dataForm.engineerNo = val.username |
|
|
|
this.dataForm.engineer = val.userDisplay |
|
|
|
// this.$nextTick(() => { |
|
|
|
// this.$triggerInputEvent(this.$refs.mpOperatorName); |
|
|
|
// }); |
|
|
|
} |
|
|
|
if(this.tagNo1==8) { |
|
|
|
if (this.tagNo1 === 8) { |
|
|
|
this.dataForm.technicianNo = val.username |
|
|
|
this.dataForm.technician = val.userDisplay |
|
|
|
// this.$nextTick(() => { |
|
|
|
@ -600,9 +590,10 @@ |
|
|
|
// }); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 初始化组件的参数 |
|
|
|
init (inData) { |
|
|
|
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){ |
|
|
|
if (this.dataForm.codeNo != null && this.dataForm.codeNo !== '') { |
|
|
|
return false; |
|
|
|
} |
|
|
|
// 初始化参数 |
|
|
|
@ -613,6 +604,7 @@ |
|
|
|
//刷新表格 |
|
|
|
this.searchTable(); |
|
|
|
}, |
|
|
|
|
|
|
|
refresh () { |
|
|
|
if (this.searchData.codeNo === '' || this.searchData.codeNo === null) { |
|
|
|
this.$alert('刷新失败请重新打开技术参数卡', '失败', { |
|
|
|
@ -623,7 +615,7 @@ |
|
|
|
this.$clearHighLight() |
|
|
|
tsdBasicInformationSearch(this.searchData).then(({data}) => { |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code == 0) { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getNodeAuthority(data.row) |
|
|
|
this.dataForm = data.row |
|
|
|
// 2025-05-22海波要求添加 初始化这个值 ecnNeedChangeDrawing监听这个反刷 this.dataForm.ecnNeedChangeDrawing |
|
|
|
@ -637,30 +629,30 @@ |
|
|
|
let inData = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
type: 'quotationOfficer', |
|
|
|
type: 'cs', |
|
|
|
} |
|
|
|
getOADetailForBM(inData).then(({data}) => { |
|
|
|
this.spForm.nodeName = data.row.nodeName |
|
|
|
this.spForm.sp = data.row.sp == null ? '' : data.row.sp |
|
|
|
}) |
|
|
|
searchTechnicalSpecificationTeamStr(inData).then(({data}) => { |
|
|
|
this.dataForm.quotationOfficerList = data.rows |
|
|
|
this.dataForm.csOperatorList = data.rows |
|
|
|
}) |
|
|
|
let inData2 = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
type: 'technician', |
|
|
|
type: 'engineer', |
|
|
|
} |
|
|
|
searchTechnicalSpecificationTeamStr(inData2).then(({data}) => { |
|
|
|
this.dataForm.technicianList = data.rows |
|
|
|
this.dataForm.engineerList = data.rows |
|
|
|
}) |
|
|
|
let inData3 = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
type: 'engineer', |
|
|
|
type: 'technician', |
|
|
|
} |
|
|
|
searchTechnicalSpecificationTeamStr(inData3).then(({data}) => { |
|
|
|
this.dataForm.engineerList = data.rows |
|
|
|
this.dataForm.technicianList = data.rows |
|
|
|
}) |
|
|
|
let inData4 = { |
|
|
|
site: data.row.site, |
|
|
|
@ -671,16 +663,22 @@ |
|
|
|
this.quotationNo = data.rows[0].quotationNo |
|
|
|
} |
|
|
|
}) |
|
|
|
// dcc 人员查询 |
|
|
|
let inData5 = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
type: 'dcc', |
|
|
|
type: 'mp', |
|
|
|
} |
|
|
|
searchTechnicalSpecificationTeamStr(inData5).then(({data}) => { |
|
|
|
this.dataForm.mpOperatorList = data.rows |
|
|
|
}) |
|
|
|
let inData6 = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
type: 'dcc', |
|
|
|
} |
|
|
|
searchTechnicalSpecificationTeamStr(inData6).then(({data}) => { |
|
|
|
this.dataForm.dccList = data.rows |
|
|
|
}) |
|
|
|
// cqc |
|
|
|
let cqcParams = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
@ -691,7 +689,6 @@ |
|
|
|
this.dataForm.cqcOperatorList = data.rows |
|
|
|
} |
|
|
|
}) |
|
|
|
// fai |
|
|
|
let faiParams = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
@ -703,17 +700,18 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.dataList = ''; |
|
|
|
this.dataList = '' |
|
|
|
this.$alert('刷新失败请重新打开技术参数卡', '失败', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
searchTable () { |
|
|
|
tsdBasicInformationSearch(this.searchData).then(({data}) => { |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code == 0) { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.dataForm = data.row |
|
|
|
// 2025-06-03 泽廉漏加 导致一直初始No |
|
|
|
if (this.dataForm.ecnNeedChangeDrawing === 'Yes') { |
|
|
|
@ -725,10 +723,10 @@ |
|
|
|
let inData = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
type: 'quotationOfficer', |
|
|
|
type: 'cs', |
|
|
|
} |
|
|
|
searchTechnicalSpecificationTeamStr(inData).then(({data}) => { |
|
|
|
this.dataForm.quotationOfficerList = data.rows |
|
|
|
this.dataForm.csOperatorList = data.rows |
|
|
|
}) |
|
|
|
getOADetailForBM(inData).then(({data}) => { |
|
|
|
this.spForm.nodeName = data.row.nodeName |
|
|
|
@ -737,18 +735,18 @@ |
|
|
|
let inData2 = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
type: 'technician', |
|
|
|
type: 'engineer', |
|
|
|
} |
|
|
|
searchTechnicalSpecificationTeamStr(inData2).then(({data}) => { |
|
|
|
this.dataForm.technicianList = data.rows |
|
|
|
this.dataForm.engineerList = data.rows |
|
|
|
}) |
|
|
|
let inData3 = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
type: 'engineer', |
|
|
|
type: 'technician', |
|
|
|
} |
|
|
|
searchTechnicalSpecificationTeamStr(inData3).then(({data}) => { |
|
|
|
this.dataForm.engineerList = data.rows |
|
|
|
this.dataForm.technicianList = data.rows |
|
|
|
}) |
|
|
|
let inData4 = { |
|
|
|
site: data.row.site, |
|
|
|
@ -762,12 +760,19 @@ |
|
|
|
let inData5 = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
type: 'dcc', |
|
|
|
type: 'mp', |
|
|
|
} |
|
|
|
searchTechnicalSpecificationTeamStr(inData5).then(({data}) => { |
|
|
|
this.dataForm.mpOperatorList = data.rows |
|
|
|
}) |
|
|
|
let inData6 = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
type: 'dcc', |
|
|
|
} |
|
|
|
searchTechnicalSpecificationTeamStr(inData6).then(({data}) => { |
|
|
|
this.dataForm.dccList = data.rows |
|
|
|
}) |
|
|
|
// cqc |
|
|
|
let cqcParams = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
@ -778,7 +783,6 @@ |
|
|
|
this.dataForm.cqcOperatorList = data.rows |
|
|
|
} |
|
|
|
}) |
|
|
|
// fai |
|
|
|
let faiParams = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
@ -790,10 +794,11 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.dataList = ''; |
|
|
|
this.dataList = '' |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
quotationOfficerChooseModal () { |
|
|
|
if (this.ifDisableFlag) { |
|
|
|
return false |
|
|
|
@ -835,22 +840,7 @@ |
|
|
|
this.engineerList = JSON.parse(JSON.stringify(this.dataForm.engineerList)); |
|
|
|
this.engineerFlag = true |
|
|
|
}, |
|
|
|
dccChooseModal(){ |
|
|
|
if(this.ifDisableFlag){ |
|
|
|
return false |
|
|
|
} |
|
|
|
let inData={ |
|
|
|
site:this.dataForm.site, |
|
|
|
buNo:this.dataForm.buNo, |
|
|
|
roleNo:'R015' |
|
|
|
} |
|
|
|
this.operatorList = []; |
|
|
|
searchBMUser(inData).then(({data}) => { |
|
|
|
this.operatorList=data.rows |
|
|
|
}) |
|
|
|
this.dccList = JSON.parse(JSON.stringify(this.dataForm.dccList)); |
|
|
|
this.dccFlag=true |
|
|
|
}, |
|
|
|
|
|
|
|
saveEngineerList () { |
|
|
|
let engineerName = ''; |
|
|
|
for (let i = 0; i < this.engineerList.length; i++) { |
|
|
|
@ -864,6 +854,7 @@ |
|
|
|
this.$triggerInputEvent(this.$refs.engineer); |
|
|
|
this.engineerFlag = false |
|
|
|
}, |
|
|
|
|
|
|
|
technicianModal () { |
|
|
|
if (this.ifDisableFlag) { |
|
|
|
return false |
|
|
|
@ -877,6 +868,7 @@ |
|
|
|
this.technicianList = JSON.parse(JSON.stringify(this.dataForm.technicianList)); |
|
|
|
this.technicianFlag = true |
|
|
|
}, |
|
|
|
|
|
|
|
savetechnicianList () { |
|
|
|
let technicianName = ''; |
|
|
|
for (let i = 0; i < this.technicianList.length; i++) { |
|
|
|
@ -889,23 +881,14 @@ |
|
|
|
this.dataForm.technicianList = JSON.parse(JSON.stringify(this.technicianList)); |
|
|
|
this.technicianFlag = false |
|
|
|
}, |
|
|
|
savetDccList(){ |
|
|
|
let dccName=''; |
|
|
|
for (let i = 0; i < this.dccList.length; i++) { |
|
|
|
let select= this.operatorList.filter(item => item.operatorId === this.dccList[i]) |
|
|
|
if(select.length>0){ |
|
|
|
dccName+=select[0].operatorName+';' |
|
|
|
} |
|
|
|
} |
|
|
|
this.dataForm.dcc=dccName |
|
|
|
this.dataForm.dccList=JSON.parse(JSON.stringify(this.dccList)); |
|
|
|
this.dccFlag=false |
|
|
|
}, |
|
|
|
|
|
|
|
saveData () { |
|
|
|
this.dataForm.engineerList = []; |
|
|
|
this.dataForm.engineerList.push(this.dataForm.engineerNo); |
|
|
|
this.dataForm.technicianList = []; |
|
|
|
this.dataForm.technicianList.push(this.dataForm.technicianNo); |
|
|
|
this.dataForm.engineerList = [] |
|
|
|
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer |
|
|
|
this.dataForm.technicianList = [] |
|
|
|
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork |
|
|
|
this.dataForm.csOperatorList = [] |
|
|
|
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS |
|
|
|
this.$confirm("是否保存基本信息?", '保存提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
@ -922,6 +905,7 @@ |
|
|
|
return |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
jumpPage (type) { |
|
|
|
/* if(type==="A"&& this.dataForm.ecnNo!==null&&this.dataForm.ecnNo!==''){ |
|
|
|
this.$refs.jumpA.blur(); |
|
|
|
@ -946,7 +930,6 @@ |
|
|
|
} |
|
|
|
localStorage.setItem('proofingData', JSON.stringify(inData)) |
|
|
|
window.open('#/proofing-requestForProofing'); |
|
|
|
|
|
|
|
} |
|
|
|
if (type === "C" && this.quotationNo !== null && this.quotationNo !== '') { |
|
|
|
this.$refs.jumpC.blur(); |
|
|
|
@ -955,9 +938,9 @@ |
|
|
|
} |
|
|
|
localStorage.setItem('quotationData', JSON.stringify(inData)) |
|
|
|
window.open('#/quotation-sellForQuotation'); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取流程的配置权限 |
|
|
|
getNodeAuthority (row) { |
|
|
|
getBMStatusDesc(this.searchData).then(({data}) => { |
|
|
|
@ -979,6 +962,8 @@ |
|
|
|
getNodeAuthority(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.ifDisableFlag = true |
|
|
|
this.plmTechnicalSpecificationSheetArr = data.rows.plm_technical_specification_sheet |
|
|
|
this.plmTechnicalSpecificationTeamArr = data.rows.plm_technicalSpecification_team |
|
|
|
let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm |
|
|
|
let arr = plmStepRoleBaseBm.filter(a => a.fieldId === 'basicInformation') |
|
|
|
if (arr.length > 0) { |
|
|
|
@ -1003,10 +988,12 @@ |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.dataForm.engineerList = []; |
|
|
|
this.dataForm.engineerList.push(this.dataForm.engineerNo); |
|
|
|
this.dataForm.technicianList = []; |
|
|
|
this.dataForm.technicianList.push(this.dataForm.technicianNo); |
|
|
|
this.dataForm.engineerList = [] |
|
|
|
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer |
|
|
|
this.dataForm.technicianList = [] |
|
|
|
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork |
|
|
|
this.dataForm.csOperatorList = [] |
|
|
|
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS |
|
|
|
let tempData = { |
|
|
|
...this.dataForm, |
|
|
|
site: this.searchData.site, |
|
|
|
@ -1018,6 +1005,7 @@ |
|
|
|
this.submitData(tempData) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 下达 |
|
|
|
issueModal () { |
|
|
|
this.$confirm(`是否确认下达?`, '提示', { |
|
|
|
@ -1025,10 +1013,12 @@ |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.dataForm.engineerList = []; |
|
|
|
this.dataForm.engineerList.push(this.dataForm.engineerNo); |
|
|
|
this.dataForm.technicianList = []; |
|
|
|
this.dataForm.technicianList.push(this.dataForm.technicianNo); |
|
|
|
this.dataForm.engineerList = [] |
|
|
|
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer |
|
|
|
this.dataForm.technicianList = [] |
|
|
|
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork |
|
|
|
this.dataForm.csOperatorList = [] |
|
|
|
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS |
|
|
|
let tempData = { |
|
|
|
...this.dataForm, |
|
|
|
site: this.searchData.site, |
|
|
|
@ -1069,10 +1059,12 @@ |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.dataForm.engineerList = []; |
|
|
|
this.dataForm.engineerList.push(this.dataForm.engineerNo); |
|
|
|
this.dataForm.technicianList = []; |
|
|
|
this.dataForm.technicianList.push(this.dataForm.technicianNo); |
|
|
|
this.dataForm.engineerList = [] |
|
|
|
this.dataForm.engineerList.push(this.dataForm.engineerNo) // Engineer |
|
|
|
this.dataForm.technicianList = [] |
|
|
|
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork |
|
|
|
this.dataForm.csOperatorList = [] |
|
|
|
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS |
|
|
|
let tempData = { |
|
|
|
...this.dataForm, |
|
|
|
site: this.searchData.site, |
|
|
|
@ -1085,7 +1077,24 @@ |
|
|
|
this.submitData(tempData) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
submitData (tempData) { |
|
|
|
if (this.plmTechnicalSpecificationSheetArr) { |
|
|
|
for (let i = 0; i < this.plmTechnicalSpecificationSheetArr.length; i++) { |
|
|
|
if (!this.dataForm[this.plmTechnicalSpecificationSheetArr[i].fieldId] && this.plmTechnicalSpecificationSheetArr[i].required === 'Y') { |
|
|
|
this.$message.warning(this.plmTechnicalSpecificationSheetArr[i].fieldName + '不能为空!') |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.plmTechnicalSpecificationTeamArr) { |
|
|
|
for (let i = 0; i < this.plmTechnicalSpecificationTeamArr.length; i++) { |
|
|
|
if (this.dataForm[this.plmTechnicalSpecificationTeamArr[i].fieldId].length === 0 && this.plmTechnicalSpecificationTeamArr[i].required === 'Y') { |
|
|
|
this.$message.warning(this.plmTechnicalSpecificationTeamArr[i].fieldName + '不能为空!') |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
updateBMBasicInformation(this.dataForm).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
submitChange(tempData).then(({data}) => { |
|
|
|
@ -1104,8 +1113,8 @@ |
|
|
|
this.$message.error(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
queryUserInfoByBM (roleNo) { |
|
|
|
let params = { |
|
|
|
site: this.dataForm.site, |
|
|
|
@ -1114,11 +1123,31 @@ |
|
|
|
} |
|
|
|
return searchBMUser(params) |
|
|
|
}, |
|
|
|
|
|
|
|
// Select Technical |
|
|
|
handleMpOperator () { |
|
|
|
if (this.ifDisableFlag) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.mpVisible = true |
|
|
|
this.mpOperatorList = [] |
|
|
|
this.queryUserInfoByBM('R021').then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.mpOperatorList = data.rows |
|
|
|
} else { |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// Select CQC |
|
|
|
handleCqcOperator () { |
|
|
|
if (this.ifDisableFlag) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.cqcVisible = true; |
|
|
|
this.cqcVisible = true |
|
|
|
this.cqcOperatorList = [] |
|
|
|
this.queryUserInfoByBM('R008').then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -1127,14 +1156,16 @@ |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error); |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// Select FAI |
|
|
|
handleFaiOperator () { |
|
|
|
if (this.ifDisableFlag) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.faiVisible = true; |
|
|
|
this.faiVisible = true |
|
|
|
this.faiOperatorList = [] |
|
|
|
this.queryUserInfoByBM('R009').then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -1143,29 +1174,76 @@ |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error); |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// Select DCC |
|
|
|
dccChooseModal () { |
|
|
|
if (this.ifDisableFlag) { |
|
|
|
return false |
|
|
|
} |
|
|
|
let inData = { |
|
|
|
site: this.dataForm.site, |
|
|
|
buNo: this.dataForm.buNo, |
|
|
|
roleNo: 'R015' |
|
|
|
} |
|
|
|
this.operatorList = [] |
|
|
|
searchBMUser(inData).then(({data}) => { |
|
|
|
this.operatorList = data.rows |
|
|
|
}) |
|
|
|
this.dccList = JSON.parse(JSON.stringify(this.dataForm.dccList)) |
|
|
|
this.dccVisible = true |
|
|
|
}, |
|
|
|
|
|
|
|
handleSaveMpOperator () { |
|
|
|
this.dataForm.mpOperatorName = this.mpOperatorList.filter(item => this.dataForm.mpOperatorList.includes(item.operatorId)).map(item=> item.operatorName).join(';'); |
|
|
|
this.mpVisible = false |
|
|
|
}, |
|
|
|
|
|
|
|
handleSaveCqcOperator () { |
|
|
|
this.dataForm.cqcOperatorName = this.cqcOperatorList.filter(item => this.dataForm.cqcOperatorList.includes(item.operatorId)).map(item=> item.operatorName).join(';'); |
|
|
|
this.cqcVisible = false; |
|
|
|
this.cqcVisible = false |
|
|
|
}, |
|
|
|
|
|
|
|
handleSaveFaiOperator () { |
|
|
|
this.dataForm.faiOperatorName = this.faiOperatorList.filter(item => this.dataForm.faiOperatorList.includes(item.operatorId)).map(item=> item.operatorName).join(';'); |
|
|
|
this.faiVisible = false; |
|
|
|
this.faiVisible = false |
|
|
|
}, |
|
|
|
|
|
|
|
saveDccList () { |
|
|
|
let dccName = '' |
|
|
|
for (let i = 0; i < this.dccList.length; i++) { |
|
|
|
let select = this.operatorList.filter(item => item.operatorId === this.dccList[i]) |
|
|
|
if (select.length > 0) { |
|
|
|
dccName += select[0].operatorName + ';' |
|
|
|
} |
|
|
|
} |
|
|
|
this.dataForm.dcc = dccName |
|
|
|
this.dataForm.dccList = JSON.parse(JSON.stringify(this.dccList)) |
|
|
|
this.dccVisible = false |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
cqcVisible (newVal, oldVal) { |
|
|
|
if (!newVal) { |
|
|
|
this.cqcOperatorList = [] |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
faiVisible (newVal, oldVal) { |
|
|
|
if (!newVal) { |
|
|
|
this.faiOperatorList = [] |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
mpVisible (newVal, oldVal) { |
|
|
|
if (!newVal) { |
|
|
|
this.mpOperatorList = [] |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
ecnNeedChangeDrawing (newVal) { |
|
|
|
if (newVal === 'Yes') { |
|
|
|
this.dataForm.ecnNeedChangeDrawing = "Yes" |
|
|
|
|