|
|
|
@ -142,14 +142,31 @@ |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<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 |
|
|
|
:height="height" |
|
|
|
:height="'250'" |
|
|
|
:data="tableData" |
|
|
|
highlight-current-row |
|
|
|
border |
|
|
|
@row-click="chooseRoute" |
|
|
|
style="width: 100%"> |
|
|
|
<el-table-column |
|
|
|
fixed="left" |
|
|
|
@ -177,6 +194,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<component style="margin-top: 5px" :is="selectedComponent" ref="routeRef"></component> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<!-- <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 fqc 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 { |
|
|
|
components: { |
|
|
|
Chooselist, |
|
|
|
@ -361,11 +397,34 @@ |
|
|
|
packagePage, |
|
|
|
fqc, |
|
|
|
cqc, |
|
|
|
|
|
|
|
prepress2, |
|
|
|
printing2, |
|
|
|
printOther2, |
|
|
|
overprinting2, |
|
|
|
slitting2, |
|
|
|
lamTemperature2, |
|
|
|
cutting2, |
|
|
|
InkMixing2, |
|
|
|
InkFormulation2, |
|
|
|
lamination2, |
|
|
|
CNC2, |
|
|
|
Cut2, |
|
|
|
packagePage2, |
|
|
|
fqc2, |
|
|
|
cqc2, |
|
|
|
}, |
|
|
|
|
|
|
|
data() { |
|
|
|
return { |
|
|
|
//动态组件 |
|
|
|
selectedComponent: null, |
|
|
|
routeData:{ |
|
|
|
site: '', |
|
|
|
partNo:'', |
|
|
|
alternativeNo:'', |
|
|
|
routingType:'', |
|
|
|
routingRevision:'', |
|
|
|
}, |
|
|
|
routeFlag:false, |
|
|
|
routeModelFlag:false, |
|
|
|
height:200, |
|
|
|
@ -791,7 +850,7 @@ |
|
|
|
}else { |
|
|
|
searchBMRoute(this.searchData).then(({data}) => { |
|
|
|
this.tableData = data.rows; |
|
|
|
|
|
|
|
this.routeData = data.row; |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -1009,7 +1068,27 @@ |
|
|
|
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; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
|