Browse Source

plm BM

master
ruanqi 2 years ago
parent
commit
55753a00d3
  1. 6
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cut.vue
  2. 4
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue
  3. 95
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
  4. 1
      src/views/modules/sampleManagement/technicalSpecificationDetail/technicalSpecificationDetail.vue

6
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_cut.vue

@ -66,7 +66,7 @@
</el-row> </el-row>
</el-form> </el-form>
<el-form label-position="top" style="margin-top:60px; margin-left: 0px;text-align:center">
<el-form label-position="top" style="margin-top:60px; margin-left: 0px;text-align:center" v-if="!ifDisableFlag">
<el-button type="primary" @click="saveData()" >保存</el-button> <el-button type="primary" @click="saveData()" >保存</el-button>
</el-form> </el-form>
@ -143,6 +143,7 @@
username: this.$store.state.user.name, username: this.$store.state.user.name,
codeNo: '', codeNo: '',
buNo:'', buNo:'',
ifDisableFlag:'',
}, },
ifDisableFlag:false, ifDisableFlag:false,
dataForm:{ dataForm:{
@ -273,6 +274,9 @@
} }
// //
this.searchData = JSON.parse(JSON.stringify(inData)); this.searchData = JSON.parse(JSON.stringify(inData));
if(this.searchData.ifDisableFlag){
this.ifDisableFlag=true
}
// //
this.searchTable(); this.searchTable();
this.cutSearch(); this.cutSearch();

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

@ -229,6 +229,7 @@
username: this.$store.state.user.name, username: this.$store.state.user.name,
codeNo: '', codeNo: '',
buNo:'', buNo:'',
ifDisableFlag:'',
}, },
ifDisableFlag:false, ifDisableFlag:false,
dataForm:{ dataForm:{
@ -292,6 +293,9 @@
} }
// //
this.searchData = JSON.parse(JSON.stringify(inData)); this.searchData = JSON.parse(JSON.stringify(inData));
if(this.searchData.ifDisableFlag){
this.ifDisableFlag=true
}
// //
this.searchTable(); this.searchTable();
this.colorSearch(); this.colorSearch();

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

@ -142,14 +142,31 @@
</el-form> </el-form>
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" v-if="searchData.buNo!='RDC'"> <el-form label-position="top" style="margin-top: 1px; margin-left: 0px;" v-if="searchData.buNo!='RDC'">
<el-form-item >
<el-button type="primary" @click="searchTable()" >刷新</el-button>
</el-form-item>
<el-form :inline="true" label-position="top" style="margin-top: 1px; margin-left: 0px;" >
<el-form-item label="物料">
<el-input v-model="routeData.partNo" readonly style="width: 120px"></el-input>
</el-form-item>
<el-form-item label="工艺路线类型">
<el-input v-model="routeData.routingType" readonly style="width: 120px"></el-input>
</el-form-item>
<el-form-item label="工艺路线版本">
<el-input v-model="routeData.routingRevision" readonly style="width: 120px"></el-input>
</el-form-item>
<el-form-item label="替代编码">
<el-input v-model="routeData.alternativeNo" readonly style="width: 120px"></el-input>
</el-form-item>
<el-form-item label=" ">
<el-button type="primary" @click="searchTable()" >刷新</el-button>
<el-button type="primary" @click="changeBomRev()" >变更</el-button>
<!-- <el-button type="primary" @click="newData()" v-if="!ifDisableFlag">新增</el-button>-->
</el-form-item>
</el-form>
<el-table <el-table
:height="height"
:height="'250'"
:data="tableData" :data="tableData"
highlight-current-row
border border
@row-click="chooseRoute"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
fixed="left" fixed="left"
@ -177,6 +194,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<component style="margin-top: 5px" :is="selectedComponent" ref="routeRef"></component>
</el-form> </el-form>
<!-- <el-dialog append-to-body title="工艺路线" :close-on-click-modal="false" v-drag :visible.sync="routeFlag" width="470px">--> <!-- <el-dialog append-to-body title="工艺路线" :close-on-click-modal="false" v-drag :visible.sync="routeFlag" width="470px">-->
@ -343,6 +361,24 @@
import packagePage from "./com_bm_demoSlot";/*组件*/ import packagePage from "./com_bm_demoSlot";/*组件*/
import fqc from "./com_bm_demoSlot";/*组件*/ import fqc from "./com_bm_demoSlot";/*组件*/
import cqc from "./com_bm_demoSlot";/*组件*/ import cqc from "./com_bm_demoSlot";/*组件*/
//
import prepress2 from "./com_bm_prepress";/*组件*/
import printing2 from "./com_bm_printing";/*组件*/
import printOther2 from "./com_bm_printOther";/*组件*/
import overprinting2 from "./com_bm_demoSlot";/*组件*/
import slitting2 from "./com_bm_demoSlot";/*组件*/
import lamTemperature2 from "./com_bm_demoSlot";/*组件*/
import cutting2 from "./com_bm_demoSlot";/*组件*/
import InkMixing2 from "./com_bm_inkMixing";/*组件*/
import InkFormulation2 from "./com_bm_inkFormulation";/*组件*/
import lamination2 from "./com_bm_lamination";/*组件*/
import CNC2 from "./com_bm_cnc";
import Cut2 from "./com_bm_cut";
import packagePage2 from "./com_bm_demoSlot";/*组件*/
import fqc2 from "./com_bm_demoSlot";/*组件*/
import cqc2 from "./com_bm_demoSlot";/*组件*/
export default { export default {
components: { components: {
Chooselist, Chooselist,
@ -361,11 +397,34 @@
packagePage, packagePage,
fqc, fqc,
cqc, cqc,
prepress2,
printing2,
printOther2,
overprinting2,
slitting2,
lamTemperature2,
cutting2,
InkMixing2,
InkFormulation2,
lamination2,
CNC2,
Cut2,
packagePage2,
fqc2,
cqc2,
}, },
data() { data() {
return { return {
//
selectedComponent: null,
routeData:{
site: '',
partNo:'',
alternativeNo:'',
routingType:'',
routingRevision:'',
},
routeFlag:false, routeFlag:false,
routeModelFlag:false, routeModelFlag:false,
height:200, height:200,
@ -791,7 +850,7 @@
}else { }else {
searchBMRoute(this.searchData).then(({data}) => { searchBMRoute(this.searchData).then(({data}) => {
this.tableData = data.rows; this.tableData = data.rows;
this.routeData = data.row;
}); });
} }
}, },
@ -1009,7 +1068,27 @@
return return
}) })
}, },
chooseRoute(row){
switch (row.itemType) {
case 'Cut':
this.selectedComponent='Cut2';
let inData=JSON.parse(JSON.stringify(this.searchData))
inData.type='Cut'
inData.ifDisableFlag=true
this.$nextTick (()=>{this.$refs.routeRef.init(inData)});
break;
case 'prepress':
this.selectedComponent='prepress2';
let prepressData=JSON.parse(JSON.stringify(this.searchData))
prepressData.type='prepress'
prepressData.ifDisableFlag=true
this.$nextTick (()=>{this.$refs.routeRef.init(prepressData)});
break;
default :
this.selectedComponent=null;
break;
}
},
}, },
} }

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

@ -147,6 +147,7 @@
}else if(this.activeName == 'bom'){ }else if(this.activeName == 'bom'){
this.getBom(); this.getBom();
}else if(this.activeName == 'routing'){ }else if(this.activeName == 'routing'){
this.changeHeight(1400);
this.getRouting(); this.getRouting();
}else if(this.activeName == 'technicalRequirement'){ }else if(this.activeName == 'technicalRequirement'){
this.getTechnicalRequirement(); this.getTechnicalRequirement();

Loading…
Cancel
Save