Browse Source

2025-06-05

字段授权没生效
master
fengyuan_yang 7 months ago
parent
commit
120f71dc25
  1. 15
      src/views/modules/demoComponents/orderProperties.vue
  2. 2
      src/views/modules/part/bomManagement.vue
  3. 2
      src/views/modules/part/partInformation.vue
  4. 2
      src/views/modules/part/routingManagement.vue
  5. 12
      src/views/modules/proofing/requestForProofing.vue
  6. 275
      src/views/modules/sampleManagement/com_technical-add-or-update.vue
  7. 446
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

15
src/views/modules/demoComponents/orderProperties.vue

@ -1,14 +1,17 @@
<template>
<div>
<div style="margin-top: 5px">
{{approvalUsername}}
<template v-if="approvalUsername && approvalUsername.split(';').includes($store.state.user.name)">
<template v-if="isAuth('103001:tab1:save')">
<el-button type="primary" @click="clickSaveBtn" v-if="orderNo" :disabled="disabled">新增</el-button>
<el-button type="primary" @click="clickSaveBtn" v-if="orderNo && proofingStatus === '审批中'" :disabled="disabled">新增</el-button>
</template>
<template v-if="isAuth('103001:tab1:update')">
<el-button type="primary" :loading="loading" v-if="orderNo" :disabled="disabled" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button>
<el-button type="primary" :loading="loading" v-if="orderNo && proofingStatus === '审批中'" :disabled="disabled" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button>
</template>
<template v-if="isAuth('103001:tab1:save')">
<el-button type="primary" @click="refreshPropertiesModal" :disabled="disabled" v-if="attributeDialog && orderNo">刷新属性模板</el-button>
<el-button type="primary" @click="refreshPropertiesModal" :disabled="disabled" v-if="attributeDialog && orderNo && proofingStatus === '审批中'">刷新属性模板</el-button>
</template>
</template>
</div>
<div class="rq " v-if="attributeDialog">
@ -117,6 +120,12 @@ export default {
codeNo: {
type:String,
},
approvalUsername: {
type:String,
},
proofingStatus: {
type:String,
},
functionType: {
type:String,
},

2
src/views/modules/part/bomManagement.vue

@ -84,8 +84,8 @@
width="150"
label="操作">
<template slot-scope="scope">
<el-link v-if="isAuth('104002001:details')" style="cursor: pointer" @click="detailsModal(scope.row)">详情</el-link>
<el-link v-if="isAuth('104002001:update')" style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link>
<el-link v-if="isAuth('104002001:details')" style="cursor: pointer" @click="detailsModal(scope.row)">详情</el-link>
<el-link style="cursor: pointer" @click="checkOutToRouting(scope.row.plmPartNo)">切换Routing</el-link>
</template>
</el-table-column>

2
src/views/modules/part/partInformation.vue

@ -121,8 +121,8 @@
width="100"
label="操作">
<template slot-scope="scope">
<el-link v-if="isAuth('104001001:details')" style="cursor: pointer" @click="detailsModal(scope.row)">详情</el-link>
<el-link v-if="isAuth('104001001:update')" style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link>
<el-link v-if="isAuth('104001001:details')" style="cursor: pointer" @click="detailsModal(scope.row)">详情</el-link>
<el-dropdown trigger="click">
<el-link style="cursor: pointer;font-size: 12px">
更多

2
src/views/modules/part/routingManagement.vue

@ -85,8 +85,8 @@
width="135"
label="操作">
<template slot-scope="scope">
<el-link v-if="isAuth('104003001:details')" style="cursor: pointer" @click="detailsModal(scope.row)">详情</el-link>
<el-link v-if="isAuth('104003001:update')" style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link>
<el-link v-if="isAuth('104003001:details')" style="cursor: pointer" @click="detailsModal(scope.row)">详情</el-link>
<el-link style="cursor: pointer" @click="checkOutToBom(scope.row.plmPartNo)">切换BOM</el-link>
</template>
</el-table-column>

12
src/views/modules/proofing/requestForProofing.vue

@ -532,10 +532,16 @@
</el-dialog>
<!-- 页签 -->
<el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; min-height: 300px;" type="border-card"
@tab-click="tabClick" class="customer-tab">
<el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; min-height: 300px;" type="border-card" @tab-click="tabClick" class="customer-tab">
<el-tab-pane label="基本信息" name="attribute">
<proofing-attribute ref="dialogAttribute" :disabled="proofingCurrentRow.proofingStatus === '已完成'" :order-no="proofingCurrentRow.proofingNo" :code-no="'Proofing'" :function-type="'order'"></proofing-attribute>
<proofing-attribute ref="dialogAttribute"
:disabled="proofingCurrentRow.proofingStatus === '已完成'"
:order-no="proofingCurrentRow.proofingNo"
:approval-username="proofingCurrentRow.approvalUsername"
:proofing-status="proofingCurrentRow.proofingStatus"
:code-no="'Proofing'"
:function-type="'order'">
</proofing-attribute>
</el-tab-pane>
<!-- 项目信息页签 -->
<el-tab-pane label="项目信息" name="project_information">

275
src/views/modules/sampleManagement/com_technical-add-or-update.vue

@ -56,9 +56,13 @@
<span slot="label" @click="getUserList(8)"><a herf="#">Select Artwork</a></span>
<el-input v-model="dataForm.technician" readonly style="width: 130px" placeholder="请选择人员" ></el-input>
</el-form-item>
<!-- <el-form-item >-->
<!-- <span slot="label" @click="getUserList(6)"><a herf="#">Select Technical</a></span>-->
<!-- <el-input v-model="dataForm.mpOperatorName" ref="mpOperatorName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>-->
<!-- </el-form-item>-->
<el-form-item>
<span slot="label" @click="getUserList(6)"><a herf="#">Select Technical</a></span>
<el-input v-model="dataForm.mpOperatorName" ref="mpOperatorName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
<span slot="label" @click="handleMpOperator"><a>Select Technical</a></span>
<el-input v-model="dataForm.mpOperatorName" @focus="handleMpOperator()" ref="mpOperatorName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
</el-form-item>
<el-form-item>
<!-- <span slot="label" @click="getUserList(1)"><a herf="#">Select CQC</a></span>-->
@ -121,11 +125,8 @@
<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"
v-model="quotationOfficerList" class="rq" filterable
:props="operatorProp" :data="operatorList"
:titles="['未选择', '已选择']">
</el-transfer>
<span slot="footer" class="dialog-footer">
@ -138,11 +139,8 @@
<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"
v-model="engineerList" class="rq" filterable
:props="operatorProp" :data="operatorList"
:titles="['未选择', '已选择']">
</el-transfer>
<span slot="footer" class="dialog-footer">
@ -153,17 +151,10 @@
</span>
</el-dialog>
<el-dialog
width="530px"
title="项目负责人"
:close-on-click-modal="false"
:visible.sync="ownerFlag">
<el-dialog width="530px" title="项目负责人" :close-on-click-modal="false" :visible.sync="ownerFlag">
<el-transfer
v-model="technicianList"
class="rq"
filterable
:props="{key: 'operatorId',label: 'operatorName'}"
:data="operatorList"
v-model="technicianList" class="rq" filterable
:props="operatorProp" :data="operatorList"
:titles="['未选择', '已选择']">
</el-transfer>
<span slot="footer" class="dialog-footer">
@ -345,37 +336,24 @@
</el-pagination>
</el-dialog>
<el-dialog
width="530px"
title="DCC人员"
:close-on-click-modal="false"
:visible.sync="dccFlag">
<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"
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="savetDccList()">确定</el-button>
<el-button type="primary" @click="saveDccList()">确定</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">
@ -383,16 +361,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">
@ -401,6 +374,18 @@
</div>
</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>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
<ChooseUser ref="userList" @getBaseData="getUserData"></ChooseUser>
@ -476,7 +461,9 @@
dcc: '',
dccList: [],
rev: '',
customerRev: ''
customerRev: '',
mpOperatorList: [],
csOperatorList: [],
},
dccList:'',
dccFlag:false,
@ -541,7 +528,6 @@
trigger: 'change'
}
],
},
proofingList:[],
proofingModelFlag:false,
@ -556,9 +542,11 @@
label: 'operatorName'
},
cqcVisible: false,
cqcOperatorList:[],
faiVisible: false,
mpVisible: false,
cqcOperatorList: [],
faiOperatorList: [],
mpOperatorList: []
}
},
created () {
@ -749,6 +737,7 @@
}
}
},
init (id) {
this.jumpFlag = true
this.dataForm.id = id || 0
@ -762,30 +751,38 @@
}
technicalSpecificationListSearch(inData).then(({data}) => {
if (data.page.list.length > 0) {
this.dataForm= data.page.list[0];
this.dataForm = data.page.list[0]
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
})
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: this.dataForm.site,
codeNo: this.dataForm.codeNo,
type: 'mp',
}
searchTechnicalSpecificationTeamStr(inData4).then(({data}) => {
this.dataForm.mpOperatorList = data.rows
})
let inData5 = {
site: this.dataForm.site,
@ -795,6 +792,22 @@
searchTechnicalSpecificationTeamStr(inData5).then(({data}) => {
this.dataForm.dccList = data.rows
})
let inData6 = {
site: this.dataForm.site,
codeNo: this.dataForm.codeNo,
type: 'cqc',
}
searchTechnicalSpecificationTeamStr(inData6).then(({data}) => {
this.dataForm.cqcOperatorList = data.rows
})
let inData7 = {
site: this.dataForm.site,
codeNo: this.dataForm.codeNo,
type: 'fai',
}
searchTechnicalSpecificationTeamStr(inData7).then(({data}) => {
this.dataForm.faiOperatorList = data.rows
})
this.visible = true
} else {
this.$message.error('技术参数卡数据有误!')
@ -840,12 +853,15 @@
dcc: '',
dccList: [],
rev: '',
customerRev:''
customerRev: '',
mpOperatorList: [],
csOperatorList: [],
}
// DCCList
this.visible = true
}
},
chooseProofingModel () {
if (this.dataForm.id !== 0 ) {
return false;
@ -861,7 +877,6 @@
getProofingDataByUserRole(this.proofingSearch).then(({data}) => {
this.proofingList = data.rows
})
this.proofingModelFlag = true
},
@ -898,6 +913,7 @@
this.proofingList=data.rows
})
},
changeProofingNoChange(){
let inData={
site:this.dataForm.site,
@ -929,11 +945,12 @@
this.$nextTick(() => {
this.operatorList = data.rows
this.dccList = data.rows.map(item=>item.operatorId)
this.savetDccList()
this.saveDccList()
this.operatorList = []
})
}
})
// CQC
this.queryUserInfoByBM('R008').then(({data}) => {
if (data && data.code === 0){
@ -945,6 +962,7 @@
})
}
})
// FAI
this.queryUserInfoByBM('R009').then(({data}) => {
if (data && data.code === 0){
@ -1035,6 +1053,7 @@
this.dataForm.engineerList=JSON.parse(JSON.stringify(this.engineerList));
this.engineerFlag=false
},
technicianModal(){
let inData={
site:this.dataForm.site,
@ -1045,8 +1064,9 @@
this.technicianList = JSON.parse(JSON.stringify(this.dataForm.technicianList));
this.ownerFlag=true
},
savetechnicianList () {
let technicianName='';
let technicianName = ''
for (let i = 0; i < this.technicianList.length; i++) {
let select = this.operatorList.filter(item => item.operatorId === this.technicianList[i])
if (select.length > 0) {
@ -1054,21 +1074,10 @@
}
}
this.dataForm.technician = technicianName
this.dataForm.technicianList=JSON.parse(JSON.stringify(this.technicianList));
this.dataForm.technicianList = JSON.parse(JSON.stringify(this.technicianList))
this.ownerFlag = 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
},
//
dataFormSubmit () {
if (this.dataForm.testPartNo === '') {
@ -1079,10 +1088,12 @@
this.$message.error('请输入版本号!')
return false
}
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.saveLoading = true
saveTechnicalSpecificationSheet(this.dataForm).then(({data}) => {
if (data && data.code === 0) {
@ -1091,7 +1102,7 @@
this.$emit('refreshDataList')
if (this.jumpFlag) {
setTimeout(() => {
let now = Date.now();
let now = Date.now()
let inData = {
site: this.$store.state.user.site,
codeNo: data.row.codeNo,
@ -1099,12 +1110,11 @@
username: this.$store.state.user.name,
uuid: now + '',
activeName: 'baseInfo'
};
}
localStorage.setItem('tsfData', JSON.stringify(inData))
window.open('#/BMPage/'+now);
},500)
}
} else {
this.$message.error(data.msg)
}
@ -1114,8 +1124,9 @@
this.saveLoading = false
})
},
changeTestDesc () {
this.dataForm.proofingNo="";
this.dataForm.proofingNo = ""
let inData = {
site: this.$store.state.user.site,
testPartNo: this.dataForm.testPartNo
@ -1130,34 +1141,23 @@
this.dataForm.projectId = ''
this.dataForm.partDesc = ''
}
}
})
},
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.refreshPartList()
},
//
currentChangeHandle (val) {
this.pageIndex = val
this.refreshPartList()
},
dccChooseModal(){
// let inData={
// site:this.dataForm.site,
// buNo:this.dataForm.buNo,
// roleNo:'R015'
// }
this.operatorList = [];
this.queryUserInfoByBM('R015').then(({data}) => {
this.operatorList = data.rows
})
this.dccList = JSON.parse(JSON.stringify(this.dataForm.dccList));
this.dccFlag=true
},
queryUserInfoByBM (roleNo) {
let params = {
site: this.dataForm.site,
@ -1166,8 +1166,25 @@
}
return searchBMUser(params)
},
// Select Technical
handleMpOperator () {
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 () {
this.cqcVisible = true;
this.cqcVisible = true
this.cqcOperatorList = []
this.queryUserInfoByBM('R008').then(({data}) => {
if (data && data.code === 0) {
@ -1176,11 +1193,13 @@
this.$message.warning(data.msg)
}
}).catch((error)=>{
this.$message.error(error);
this.$message.error(error)
})
},
// Select FAI
handleFaiOperator () {
this.faiVisible = true;
this.faiVisible = true
this.faiOperatorList = []
this.queryUserInfoByBM('R009').then(({data}) => {
if (data && data.code === 0) {
@ -1189,18 +1208,49 @@
this.$message.warning(data.msg)
}
}).catch((error)=>{
this.$message.error(error);
this.$message.error(error)
})
},
// Select DCC
dccChooseModal () {
this.operatorList = []
this.queryUserInfoByBM('R015').then(({data}) => {
this.operatorList = data.rows
})
this.dccList = JSON.parse(JSON.stringify(this.dataForm.dccList))
this.dccFlag = 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.dataForm.cqcOperatorName = this.cqcOperatorList.filter(item => this.dataForm.cqcOperatorList.includes(item.operatorId)).map(item=> item.operatorName).join(';')
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.dataForm.faiOperatorName = this.faiOperatorList.filter(item => this.dataForm.faiOperatorList.includes(item.operatorId)).map(item=> item.operatorName).join(';')
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.dccFlag = false
},
},
watch: {
saveLoading (newVal,oldVal) {
if (newVal) {
@ -1209,22 +1259,31 @@
},30000)
}
},
visible (newVal,oldVal) {
if (!newVal) {
this.dataForm.cqcOperatorList = []
this.dataForm.faiOperatorList = []
}
},
cqcVisible (newVal,oldVal) {
if (!newVal){
this.cqcOperatorList = []
}
},
faiVisible (newVal,oldVal) {
if (!newVal) {
this.faiOperatorList = []
}
},
mpVisible (newVal,oldVal) {
if (!newVal) {
this.mpOperatorList = []
}
},
},
}
</script>

446
src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

@ -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"

Loading…
Cancel
Save