Browse Source

plm BMM

master
ruanqi 11 months ago
parent
commit
879ba2bbd9
  1. 66
      src/views/modules/sampleManagement/com_technical-add-or-update.vue
  2. 8
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

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

@ -83,9 +83,13 @@
<span slot="label" style="" @click="getUserList(4)"><a herf="#">CS人员</a></span> <span slot="label" style="" @click="getUserList(4)"><a herf="#">CS人员</a></span>
<el-input v-model="dataForm.csOperaterName" ref="csOperaterName" placeholder="请选择人员" readonly style="width: 130px" ></el-input> <el-input v-model="dataForm.csOperaterName" ref="csOperaterName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item >-->
<!-- <span slot="label" style="" @click="getUserList(5)"><a herf="#">DCC人员</a></span>-->
<!-- <el-input v-model="dataForm.dccOperaterName" ref="dccOperaterName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>-->
<!-- </el-form-item>-->
<el-form-item > <el-form-item >
<span slot="label" style="" @click="getUserList(5)"><a herf="#">DCC人员</a></span>
<el-input v-model="dataForm.dccOperaterName" ref="dccOperaterName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
<span slot="label" style="" @click="dccChooseModal()"><a herf="#">DCC人员</a></span>
<el-input v-model="dataForm.dcc" ref="dcc" readonly style="" @focus="dccChooseModal()" style="width: 130px"></el-input>
</el-form-item> </el-form-item>
<el-form-item > <el-form-item >
<span slot="label" style="" @click="getUserList(6)"><a herf="#">Select Technical</a></span> <span slot="label" style="" @click="getUserList(6)"><a herf="#">Select Technical</a></span>
@ -339,7 +343,22 @@
layout="total, sizes, prev, pager, next, jumper"> layout="total, sizes, prev, pager, next, jumper">
</el-pagination> </el-pagination>
</el-dialog> </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>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
<ChooseUser ref="userList" @getBaseData="getUserData"></ChooseUser> <ChooseUser ref="userList" @getBaseData="getUserData"></ChooseUser>
</div> </div>
@ -355,6 +374,7 @@
getTestPartChangeData, getTestPartChangeData,
getProofingDataByUserRole, getProofingDataByUserRole,
getFinalPartData, getFinalPartData,
searchBMUser,
} from "@/api/sampleManagement/technicalSpecificationList.js" } from "@/api/sampleManagement/technicalSpecificationList.js"
import Chooselist from '@/views/modules/common/Chooselist' import Chooselist from '@/views/modules/common/Chooselist'
import ChooseUser from '@/views/modules/common/ChooseUser' import ChooseUser from '@/views/modules/common/ChooseUser'
@ -408,7 +428,11 @@
mpOperatorName:'', mpOperatorName:'',
mpOperator:'', mpOperator:'',
buNo:'', buNo:'',
dcc:'',
dccList:[],
}, },
dccList:'',
dccFlag:false,
proofingSearch:{ proofingSearch:{
projectId:'', projectId:'',
proofingNo:'', proofingNo:'',
@ -704,6 +728,14 @@
searchTechnicalSpecificationTeamStr(inData3).then(({data}) => { searchTechnicalSpecificationTeamStr(inData3).then(({data}) => {
this.dataForm.engineerList=data.rows this.dataForm.engineerList=data.rows
}) })
let inData5 = {
site: this.dataForm.site,
codeNo: this.dataForm.codeNo,
type: 'dcc',
}
searchTechnicalSpecificationTeamStr(inData5).then(({data}) => {
this.dataForm.dccList = data.rows
})
this.visible = true this.visible = true
}else { }else {
this.$alert('技术参数卡数据有误!', '错误', { this.$alert('技术参数卡数据有误!', '错误', {
@ -746,6 +778,9 @@
oriCodeNo:'', oriCodeNo:'',
engineerNo:'', engineerNo:'',
technicianNo:'', technicianNo:'',
buNo:'',
dcc:'',
dccList:[],
} }
this.visible = true this.visible = true
} }
@ -925,7 +960,18 @@
this.dataForm.technicianList=JSON.parse(JSON.stringify(this.technicianList)); this.dataForm.technicianList=JSON.parse(JSON.stringify(this.technicianList));
this.ownerFlag=false 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 () { dataFormSubmit () {
if(this.dataForm.testPartNo===''){ if(this.dataForm.testPartNo===''){
@ -1001,7 +1047,17 @@
this.pageIndex = val this.pageIndex = val
this.refreshPartList() this.refreshPartList()
}, },
dccChooseModal(){
let inData={
site:this.dataForm.site,
buNo:this.dataForm.buNo,
}
searchBMUser(inData).then(({data}) => {
this.operatorList=data.rows
})
this.dccList = JSON.parse(JSON.stringify(this.dataForm.dccList));
this.dccFlag=true
},
}, },
} }

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

@ -180,10 +180,10 @@
<!-- <span slot="label" style="" @click="getBaseList(5)"><a herf="#">DCC人员</a></span>--> <!-- <span slot="label" style="" @click="getBaseList(5)"><a herf="#">DCC人员</a></span>-->
<!-- <el-input v-model="dataForm.dccOperaterName" ref="dccOperaterName" placeholder="请选择人员" readonly style="" ></el-input>--> <!-- <el-input v-model="dataForm.dccOperaterName" ref="dccOperaterName" placeholder="请选择人员" readonly style="" ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item >
<span slot="label" style="" @click="dccChooseModal()"><a herf="#">DCC人员</a></span>
<el-input v-model="dataForm.dcc" ref="dcc" readonly style="" @focus="dccChooseModal()"></el-input>
</el-form-item>
<el-form-item >
<span slot="label" style="" @click="dccChooseModal()"><a herf="#">DCC人员</a></span>
<el-input v-model="dataForm.dcc" ref="dcc" readonly style="" @focus="dccChooseModal()"></el-input>
</el-form-item>
</div></el-col> </div></el-col>
<el-col :span="6"><div class="grid-content bg-purple"> <el-col :span="6"><div class="grid-content bg-purple">
<el-form-item > <el-form-item >

Loading…
Cancel
Save