Browse Source

plm字段权限

master
ruanqi 2 years ago
parent
commit
fc5a2d4abb
  1. 2
      src/api/sampleManagement/technicalSpecificationList.js
  2. 2
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue
  3. 8
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue
  4. 12
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_packageInfo.vue
  5. 133
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue
  6. 279
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
  7. 5
      src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue
  8. 89
      src/views/modules/sampleManagement/technicalSpecificationDetail/tsdzujian.vue

2
src/api/sampleManagement/technicalSpecificationList.js

@ -18,3 +18,5 @@ export const searchPartDataForSelect= data => createAPI(`/technicalSpecification
export const saveBMBom= data => createAPI(`/technicalSpecification/saveBMBom`,'post',data) export const saveBMBom= data => createAPI(`/technicalSpecification/saveBMBom`,'post',data)
export const searchBMBom= data => createAPI(`/technicalSpecification/searchBMBom`,'post',data) export const searchBMBom= data => createAPI(`/technicalSpecification/searchBMBom`,'post',data)
export const deleteBMBom= data => createAPI(`/technicalSpecification/deleteBMBom`,'post',data) export const deleteBMBom= data => createAPI(`/technicalSpecification/deleteBMBom`,'post',data)
export const searchBMRoutingDetail= data => createAPI(`/technicalSpecification/searchBMRoutingDetail`,'post',data)
export const updateBMRoutingDetail= data => createAPI(`/technicalSpecification/updateBMRoutingDetail`,'post',data)

2
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue

@ -358,7 +358,7 @@
}); });
}, },
deleteData(row){ deleteData(row){
this.$confirm(`是否删除这条代理商信息?`, '提示', {
this.$confirm(`是否删除这条信息?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'

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

@ -249,7 +249,13 @@
}, },
searchTable(){ searchTable(){
searchBMcustomerInfo(this.searchData).then(({data}) => { searchBMcustomerInfo(this.searchData).then(({data}) => {
this.dataForm = data.rows[0];
if(data.rows.length>0){
this.dataForm = data.rows[0];
}else {
this.dataForm.site=this.searchData.site
this.dataForm.codeNo=this.searchData.codeNo
}
}); });
}, },

12
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_packageInfo.vue

@ -79,12 +79,8 @@
<el-input v-model="dataForm.copyPosition" :disabled="ifDisableFlag" ></el-input> <el-input v-model="dataForm.copyPosition" :disabled="ifDisableFlag" ></el-input>
</el-form-item> </el-form-item>
</div></el-col> </div></el-col>
<el-form-item style="margin-top: 60px; margin-left: 0px;text-align:center">
<el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button>
</el-form-item>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"><div class="grid-content bg-purple"> <el-col :span="24"><div class="grid-content bg-purple">
<el-form-item :label="'执转移打印/Overprinting'"> <el-form-item :label="'执转移打印/Overprinting'">
@ -382,7 +378,13 @@
}, },
searchTable(){ searchTable(){
searchBMPackageInfo(this.searchData).then(({data}) => { searchBMPackageInfo(this.searchData).then(({data}) => {
this.dataForm = data.rows[0];
if(data.rows.length>0){
this.dataForm = data.rows[0];
}else {
this.dataForm.site=this.searchData.site;
this.dataForm.codeNo=this.searchData.codeNo;
}
}); });
}, },

133
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue

@ -0,0 +1,133 @@
<template>
<div class="mod-config">
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" v-if="searchData.buNo==='Flexo'||searchData.buNo==='DBE'">
<el-form-item >
<el-button type="primary" @click="searchTable()" >刷新</el-button>
<el-button type="primary" @click="newData()" v-if="!ifDisableFlag">新增</el-button>
</el-form-item>
<el-table
:height="height"
:data="tableData"
border
style="width: 100%">
<el-table-column
prop=""
header-align="center"
align="center"
min-width="30"
v-if="!ifDisableFlag"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="updateData(scope.row)">编辑</a>
<a type="text" size="small" @click="deleteData(scope.row)">删除</a>
</template>
</el-table-column>
<el-table-column
prop="familyName"
header-align="center"
align="left"
min-width="60"
label="材料分类">
</el-table-column>
<el-table-column
prop="erpPartNo"
header-align="center"
align="left"
min-width="60"
label="IFS料号">
</el-table-column>
<el-table-column
prop="partDesc"
header-align="center"
align="left"
min-width="120"
label="材料名称">
</el-table-column>
<el-table-column
prop="quantity"
header-align="center"
align="left"
min-width="60"
label="数量">
</el-table-column>
<el-table-column
prop="spec"
header-align="center"
align="left"
min-width="120"
label="UL产品型号">
</el-table-column>
<el-table-column
prop="remark"
header-align="center"
align="left"
min-width="180"
label="Remark">
</el-table-column>
</el-table>
</el-form>
</div>
</template>
<script>
import {
searchBMBom,
saveBMBom,
searchPartDataForSelect,
deleteBMBom,
} from "@/api/sampleManagement/technicalSpecificationList.js"
export default {
components: {
},
data() {
return {
height:200,
searchData: {
site: '',
username: this.$store.state.user.name,
codeNo: '',
buNo:'',
type:'',
},
type:'prepress',
ifDisableFlag:false,
}
},
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 100
})
},
methods: {
//
init(inData) {
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){
return false;
}
//
this.searchData = JSON.parse(JSON.stringify(inData));
this.searchData.type= JSON.parse(JSON.stringify(this.type));
//
this.searchTable();
},
searchTable(){
searchBMBom(this.searchData).then(({data}) => {
this.tableData = data.rows;
});
},
},
}
</script>
<style scoped>
</style>

279
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

@ -12,7 +12,7 @@
maxlength="255" maxlength="255"
show-word-limit show-word-limit
:disabled="ifDisableFlag" :disabled="ifDisableFlag"
style="height: 60px" disabled>
style="height: 60px" >
</el-input> </el-input>
</el-form-item> </el-form-item>
</div></el-col> </div></el-col>
@ -34,7 +34,7 @@
</el-row> </el-row>
<el-row :gutter="20" > <el-row :gutter="20" >
<el-col :span="6"><div class="grid-content bg-purple"> <el-col :span="6"><div class="grid-content bg-purple">
<el-form-item :label="'图稿/Drawing Revison'">
<el-form-item :label="'图稿版本/Drawing Revison'">
<el-input v-model="dataForm.drawingRevison" :disabled="ifDisableFlag" ></el-input> <el-input v-model="dataForm.drawingRevison" :disabled="ifDisableFlag" ></el-input>
</el-form-item> </el-form-item>
</div></el-col> </div></el-col>
@ -61,37 +61,46 @@
maxlength="255" maxlength="255"
show-word-limit show-word-limit
:disabled="ifDisableFlag" :disabled="ifDisableFlag"
style="height: 60px" disabled>
style="height: 60px" >
</el-input> </el-input>
</el-form-item> </el-form-item>
</div></el-col> </div></el-col>
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: 60px"> <el-row :gutter="20" style="margin-top: 60px">
<el-col :span="6"><div class="grid-content bg-purple"> <el-col :span="6"><div class="grid-content bg-purple">
<el-form-item :label="'作业说明本/WI Revison'">
<el-form-item :label="'作业说明本/WI Revison'">
<el-input v-model="dataForm.wiRevison" :disabled="ifDisableFlag" ></el-input> <el-input v-model="dataForm.wiRevison" :disabled="ifDisableFlag" ></el-input>
</el-form-item> </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 :label="'图稿/Drawing'">
<el-input v-model="dataForm.routingDrawing" :disabled="ifDisableFlag" ></el-input>
<el-form-item :label="'作业说明日期/WI Date'">
<el-date-picker
v-model="searchData.wiDate"
type="date"
value-format="yyyy-MM-dd"
:disabled="ifDisableFlag"
placeholder="选择日期">
</el-date-picker>
</el-form-item> </el-form-item>
</div></el-col> </div></el-col>
</el-row> </el-row>
<el-row :gutter="20" > <el-row :gutter="20" >
<el-col :span="6"><div class="grid-content bg-purple"> <el-col :span="6"><div class="grid-content bg-purple">
<el-form-item :label="'选择审查工程师/Select ME Review Engineer'">
<el-input v-model="dataForm.reviewEngineer" :disabled="ifDisableFlag" ></el-input>
<el-form-item>
<span slot="label" style="" @click="reviewEngineerChooseModal()"><a herf="#">选择审查工程师/Select ME Review Engineer</a></span>
<el-input v-model="dataForm.reviewEngineer" readonly style="" @focus="reviewEngineerChooseModal()" ></el-input>
</el-form-item> </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 :label="'选择PE工程师/Select PE Engineer'">
<el-input v-model="dataForm.peEngineer" :disabled="ifDisableFlag" ></el-input>
<el-form-item >
<span slot="label" style="" @click="peEngineerChooseModal()"><a herf="#">选择PE工程师/Select PE Engineer</a></span>
<el-input v-model="dataForm.peEngineer" readonly style="" @focus="peEngineerChooseModal()" ></el-input>
</el-form-item> </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 :label="'选择CQE/Select CQE'">
<el-input v-model="dataForm.cqe" :disabled="ifDisableFlag" ></el-input>
<el-form-item >
<span slot="label" style="" @click="cqeModal()"><a herf="#">选择CQE/Select CQE</a></span>
<el-input v-model="dataForm.cqe" readonly style="" @focus="cqeModal()" ></el-input>
</el-form-item> </el-form-item>
</div></el-col> </div></el-col>
</el-row> </el-row>
@ -106,7 +115,7 @@
maxlength="255" maxlength="255"
show-word-limit show-word-limit
:disabled="ifDisableFlag" :disabled="ifDisableFlag"
style="height: 60px" disabled>
style="height: 60px" >
</el-input> </el-input>
</el-form-item> </el-form-item>
</div></el-col> </div></el-col>
@ -122,13 +131,13 @@
maxlength="255" maxlength="255"
show-word-limit show-word-limit
:disabled="ifDisableFlag" :disabled="ifDisableFlag"
style="height: 60px" disabled>
style="height: 60px" >
</el-input> </el-input>
</el-form-item> </el-form-item>
</div></el-col> </div></el-col>
</el-row> </el-row>
<el-form-item style="margin-top: 60px;text-align:center"> <el-form-item style="margin-top: 60px;text-align:center">
<el-button type="primary" @click="newData()" v-if="!ifDisableFlag">保存</el-button>
<el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -298,6 +307,56 @@
</span> </span>
</el-dialog> </el-dialog>
<el-dialog
width="530px"
title="报价员"
:close-on-click-modal="false"
:visible.sync="reviewEngineerFlag">
<el-transfer v-model="reviewEngineerList" 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="savereviewEngineerList()">确定</el-button>
<el-button @click="reviewEngineerFlag = false" type="primary">取消</el-button>
</div>
</span>
</el-dialog>
<el-dialog
width="530px"
title="工程师"
:close-on-click-modal="false"
:visible.sync="peEngineerFlag">
<el-transfer v-model="peEngineerList" 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="savepeEngineerList()">确定</el-button>
<el-button @click="peEngineerFlag = false" type="primary">取消</el-button>
</div>
</span>
</el-dialog>
<el-dialog
width="530px"
title="项目负责人"
:close-on-click-modal="false"
:visible.sync="cqeFlag">
<el-transfer v-model="cqeList" 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="savecqeList()">确定</el-button>
<el-button @click="cqeFlag = false" type="primary">取消</el-button>
</div>
</span>
</el-dialog>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div> </div>
</template> </template>
@ -308,8 +367,14 @@
saveBMBom, saveBMBom,
searchPartDataForSelect, searchPartDataForSelect,
deleteBMBom, deleteBMBom,
searchTechnicalSpecificationTeamStr,
searchBMRoutingDetail,
updateBMRoutingDetail,
} 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 {
searchOperatorWithSite,
} from "@/api/project/project.js"
export default { export default {
components: { components: {
Chooselist Chooselist
@ -336,34 +401,33 @@
partList:[], partList:[],
ifDisableFlag:false, ifDisableFlag:false,
dataForm:{ dataForm:{
addId:'',
site: '', site: '',
codeNo:'', codeNo:'',
erpPartNo:'',
familyId: '',
familyName:'',
partDesc:'',
quantity:'',
spec:'',
remark:'',
processDetail:'',
supplyAdhesiveTape: '',
routingDrawing:'',
drawingRevison:'',
drawingDate:'',
workInfo:'',
wiRevison:'',
wiDate:'',
reviewEngineer: '',
routingRemark:'',
routingAction:'',
username:this.$store.state.user.name, username:this.$store.state.user.name,
peEngineer:'',
cqe:'',
reviewEngineerList:[],
peEngineerList:[],
cqeList:[],
}, },
dataRole: {
partTypeDesc: [
{
required: true,
message: ' ',
trigger: 'change'
}
],
partName: [
{
required: true,
message: ' ',
trigger: 'change'
}
],
}
reviewEngineerFlag:false,
peEngineerFlag:false,
cqeFlag:false,
operatorList:[],
reviewEngineerList:[],
peEngineerList:[],
cqeList:[],
} }
}, },
mounted () { mounted () {
@ -484,10 +548,47 @@
}, },
searchTable(){ searchTable(){
searchBMBom(this.searchData).then(({data}) => {
this.tableData = data.rows;
if(this.searchData.buNo!='DBE'){
searchBMRoutingDetail(this.searchData).then(({data}) => {
if(data.rows.length>0){
this.dataForm=data.rows[0]
}else {
this.dataForm.site=this.searchData.site
this.dataForm.codeNo=this.searchData.codeNo
}
});
});
let inData = {
site: this.searchData.site,
codeNo: this.searchData.codeNo,
type: 'reviewEngineer',
}
searchTechnicalSpecificationTeamStr(inData).then(({data}) => {
this.dataForm.reviewEngineerList = data.rows
})
let inData2 = {
site: this.searchData.site,
codeNo: this.searchData.codeNo,
type: 'cqe',
}
searchTechnicalSpecificationTeamStr(inData2).then(({data}) => {
this.dataForm.cqeList = data.rows
})
let inData3 = {
site: this.searchData.site,
codeNo: this.searchData.codeNo,
type: 'peEngineer',
}
searchTechnicalSpecificationTeamStr(inData3).then(({data}) => {
this.dataForm.peEngineerList = data.rows
})
}else {
searchBMBom(this.searchData).then(({data}) => {
this.tableData = data.rows;
});
}
}, },
deleteData(row){ deleteData(row){
this.$confirm(`是否删除这条代理商信息?`, '提示', { this.$confirm(`是否删除这条代理商信息?`, '提示', {
@ -514,6 +615,100 @@
}).catch(() => { }).catch(() => {
}) })
}, },
reviewEngineerChooseModal(){
if(this.ifDisableFlag){
return false
}
let inData={
site:this.searchData.site,
}
searchOperatorWithSite(inData).then(({data}) => {
this.operatorList=data.rows
})
this.reviewEngineerList = JSON.parse(JSON.stringify(this.dataForm.reviewEngineerList));
this.reviewEngineerFlag=true
},
savereviewEngineerList(){
let reviewEngineerName='';
for (let i = 0; i < this.reviewEngineerList.length; i++) {
let select= this.operatorList.filter(item => item.operatorId === this.reviewEngineerList[i])
if(select.length>0){
reviewEngineerName+=select[0].operatorName+';'
}
}
this.dataForm.reviewEngineer=reviewEngineerName
this.dataForm.reviewEngineerList=JSON.parse(JSON.stringify(this.reviewEngineerList));
this.reviewEngineerFlag=false
},
peEngineerChooseModal(){
if(this.ifDisableFlag){
return false
}
let inData={
site:this.searchData.site,
}
searchOperatorWithSite(inData).then(({data}) => {
this.operatorList=data.rows
})
this.peEngineerList = JSON.parse(JSON.stringify(this.dataForm.peEngineerList));
this.peEngineerFlag=true
},
savepeEngineerList(){
let peEngineerName='';
for (let i = 0; i < this.peEngineerList.length; i++) {
let select= this.operatorList.filter(item => item.operatorId === this.peEngineerList[i])
if(select.length>0){
peEngineerName+=select[0].operatorName+';'
}
}
this.dataForm.peEngineer=peEngineerName
this.dataForm.peEngineerList=JSON.parse(JSON.stringify(this.peEngineerList));
this.peEngineerFlag=false
},
cqeModal(){
if(this.ifDisableFlag){
return false
}
let inData={
site:this.searchData.site,
}
searchOperatorWithSite(inData).then(({data}) => {
this.operatorList=data.rows
})
this.cqeList = JSON.parse(JSON.stringify(this.dataForm.cqeList));
this.cqeFlag=true
},
savecqeList(){
let cqeName='';
for (let i = 0; i < this.cqeList.length; i++) {
let select= this.operatorList.filter(item => item.operatorId === this.cqeList[i])
if(select.length>0){
cqeName+=select[0].operatorName+';'
}
}
this.dataForm.cqe=cqeName
this.dataForm.cqeList=JSON.parse(JSON.stringify(this.cqeList));
this.cqeFlag=false
},
saveData(){
this.$confirm("是否保存基本信息?", '保存提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
updateBMRoutingDetail(this.dataForm).then(({data}) => {
if (data && data.code === 0) {
this.$message.success( '操作成功')
} else {
this.$message.error(data.msg)
}
})
}).catch(() => {
return
})
},
}, },
} }
</script> </script>

5
src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue

@ -16,6 +16,9 @@
<el-tab-pane label="工艺信息" name="routing"> <el-tab-pane label="工艺信息" name="routing">
<routing ref="routing"></routing> <routing ref="routing"></routing>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="印前" name="prepress">
<prepress ref="prepress"></prepress>
</el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</template> </template>
@ -26,6 +29,7 @@
import packageInfo from "./com_bm_packageInfo";/*包装信息*/ import packageInfo from "./com_bm_packageInfo";/*包装信息*/
import bom from "./com_bm_bom";/*BOM*/ import bom from "./com_bm_bom";/*BOM*/
import routing from "./com_bm_routing";/*工艺*/ import routing from "./com_bm_routing";/*工艺*/
import prepress from "./com_bm_prepress";/*印前*/
export default { export default {
name: "technicalSpecificationDetail", name: "technicalSpecificationDetail",
components: { components: {
@ -34,6 +38,7 @@
packageInfo, packageInfo,
bom, bom,
routing, routing,
prepress,
}, },
data() { data() {
return { return {

89
src/views/modules/sampleManagement/technicalSpecificationDetail/tsdzujian.vue

@ -1,89 +0,0 @@
<template>
<div class="mod-config">
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-form :inline="true" label-position="top" style="margin-top: 0px">
<el-button type="primary" @click="addModal()">新增</el-button>
</el-form>
</el-form>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
<script>
import {
getProjectInfoPartList,
saveProjectPart,
deleteProjectPartWithId,
} from "@/api/project/project.js"
import Chooselist from '@/views/modules/common/Chooselist'
export default {
components: {
Chooselist
},
data() {
return {
searchData: {
site: '',
username: this.$store.state.user.name,
projectId: '',
},
dataRole: {
partTypeDesc: [
{
required: true,
message: ' ',
trigger: 'change'
}
],
partName: [
{
required: true,
message: ' ',
trigger: 'change'
}
],
}
}
},
methods: {
// S
getBaseList (val, type) {
this.tagNo = val
this.tagNo1 = type
this.$nextTick(() => {
let strVal = ''
if (val === 1013) {
if(type==1) {
strVal = this.dataForm.partType
}
}
this.$refs.baseList.init(val, strVal)
})
},
/* 列表方法的回调 */
getBaseData (val) {
if (this.tagNo === 1013) {
if(this.tagNo1==1) {
this.dataForm.partType = val.Base_id
this.dataForm.partTypeDesc = val.Base_desc
}
}
},
//
init(inData) {
//
this.searchData = JSON.parse(JSON.stringify(inData));
//
this.searchTable();
},
},
}
</script>
<style scoped>
</style>
Loading…
Cancel
Save