Commit 687df1cc authored by 仇晓婷's avatar 仇晓婷

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents d11aeedd 1b457162
......@@ -143,8 +143,10 @@
</template>
<script>
import ColumnSlot from "./treeGrid/columnSolt";
export default {
name: "DataGrid",
components: { ColumnSlot },
data() {
return {
keys: "",
......@@ -155,7 +157,7 @@ export default {
pageIndex: 1,
pageSize: 20,
sortBy: "id",
isDesc:true,
isDesc: true,
conditions: [],
},
searchConditions: this.search,
......@@ -294,15 +296,16 @@ export default {
default: "",
},
},
provide() {
return {
tableRoot: this.slots,
};
},
created() {
this.columns.forEach((u) => {
if (!u.hide) {
u.hide = false;
}
});
this.columnsCur = this.$u.clone(this.columns);
},
mounted() {
this.initColumns();
if (this.data && this.data.length > 0) {
this.list = this.data;
return;
......@@ -350,7 +353,41 @@ export default {
this.getRoutingHeaderData();
this.getAllUser(); //获取所有用户
},
methods: {
//列初始化 slot 支持;
slots() {
return this.$scopedSlots;
},
initColumns() {
this.columns.forEach((u) => {
if (!u.hide) {
u.hide = false;
}
});
var items=this.$u.clone(this.columns);
var soct=this.$scopedSlots;
console.warn("that.$scopedSlots()",soct["action"]());
items.forEach((u) => {
if (u.slot) {
u.render = (h, params) => {
return h(
"span",
// soct[u.slot]({
// row: params.row,
// column: params.column,
// index: params.index,
// })
params.row.id
);
};
delete u.slot;
}
});
this.columnsCur = items;
console.log("cur", items,this.columnsCur);
},
//数据加载
load() {
if (this.action) {
......
export default {
name: 'ColumnSlot',
functional: true,
inject: ['tableRoot'],
props: {
row: Object,
index: Number,
column: {
type: Object,
default: null
}
},
render: (h, ctx) => {
return h('span', ctx.injections.tableRoot()[ctx.props.column.slot]({
row: ctx.props.row,
column: ctx.props.column,
index: ctx.props.index
}));
}
};
\ No newline at end of file
This diff is collapsed.
export default {
name: 'TableSlot',
functional: true,
inject: ['tableRoot'],
props: {
row: Object,
index: Number,
column: {
type: Object,
default: null
}
},
render: (h, ctx) => {
return h('div', ctx.injections.tableRoot.$scopedSlots[ctx.props.column.slot]({
row: ctx.props.row,
column: ctx.props.column,
index: ctx.props.index
}));
}
};
\ No newline at end of file
......@@ -157,8 +157,8 @@ export default {
this.resources = this.$u.clone(r.result);
//alert(JSON.stringify(this.resources))
this.entity = v;
this.entity.resourceCode = v.firsT_EQUIP_CODE;
let code = v.firsT_EQUIP_CODE;
this.entity.resourceCode = v.first_equip;
let code = v.first_equip;
this.entity.resource = []
//let code = 'PCZYBZBH_20200804_1'
if (code && code != '') {
......
......@@ -144,9 +144,9 @@ export default {
key: "firsT_EQUIP_CODE",
title: this.l("first_equip"),
align: "left",
render: (h, params) => { //test:PCZYBZBH_20200804_1 params.row.firsT_EQUIP_CODE
return h("span", {}, this.getResourceName(params.row.firsT_EQUIP_CODE))
}
// render: (h, params) => { //test:PCZYBZBH_20200804_1 params.row.firsT_EQUIP_CODE
// return h("span", {}, this.getResourceName(params.row.firsT_EQUIP_CODE))
// }
},
{
key: "setup_time",
......
<template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90">
<template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Row>
<Col :span="12">
<FormItem :label="l('upId')" prop="upId">
......@@ -138,10 +138,7 @@
</Col>
<Col :span="12">
<FormItem :label="l('isSupportingFinish')" prop="isSupportingFinish">
<Dictionary
code="mes_xingchi_plan.mes_order.is_supporting_finish"
v-model="entity.isSupportingFinish"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.is_supporting_finish" v-model="entity.isSupportingFinish"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
......@@ -191,10 +188,7 @@
</Col>
<Col :span="12">
<FormItem :label="l('orderQuotationStatus')" prop="orderQuotationStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.order_quotation_status"
v-model="entity.orderQuotationStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.order_quotation_status" v-model="entity.orderQuotationStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
......@@ -233,10 +227,7 @@
</FormItem>
</Col>
<Col :span="12">
<FormItem
:label="l('productingPreparationFinishDate')"
prop="productingPreparationFinishDate"
>
<FormItem :label="l('productingPreparationFinishDate')" prop="productingPreparationFinishDate">
<DatePicker type="date" v-model="entity.productingPreparationFinishDate"></DatePicker>
</FormItem>
</Col>
......@@ -292,34 +283,22 @@
</Col>
<Col :span="12">
<FormItem :label="l('mainRoutingSetStatus')" prop="mainRoutingSetStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.main_routing_set_status"
v-model="entity.mainRoutingSetStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.main_routing_set_status" v-model="entity.mainRoutingSetStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('majorRoutingSetStatus')" prop="majorRoutingSetStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.major_routing_set_status"
v-model="entity.majorRoutingSetStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.major_routing_set_status" v-model="entity.majorRoutingSetStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('materialBillSetStatus')" prop="materialBillSetStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.material_bill_set_status"
v-model="entity.materialBillSetStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.material_bill_set_status" v-model="entity.materialBillSetStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('routingDataSetStatus')" prop="routingDataSetStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.routing_data_set_status"
v-model="entity.routingDataSetStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.routing_data_set_status" v-model="entity.routingDataSetStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
......@@ -329,18 +308,12 @@
</Col>
<Col :span="12">
<FormItem :label="l('mainRoutingExecuteStatus')" prop="mainRoutingExecuteStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.main_routing_execute_status"
v-model="entity.mainRoutingExecuteStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.main_routing_execute_status" v-model="entity.mainRoutingExecuteStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('majorRoutingExecuteStatus')" prop="majorRoutingExecuteStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.major_routing_execute_status"
v-model="entity.majorRoutingExecuteStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.major_routing_execute_status" v-model="entity.majorRoutingExecuteStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
......@@ -385,10 +358,7 @@
</Col>
<Col :span="12">
<FormItem :label="l('isPreschedule')" prop="isPreschedule">
<Dictionary
code="mes_xingchi_plan.mes_order.is_preschedule"
v-model="entity.isPreschedule"
></Dictionary>
<Dictionary code="aps.plan.ispreschedule" v-model="entity.isPreschedule"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
......@@ -416,9 +386,11 @@
<Button type="primary" @click="handleSubmit" v-noClick>保存</Button>
<Button @click="handleClose" class="ml20">取消</Button>
</FormItem>
</Form>
</Form>
</template>
<script>
<script>
import Api from "./api";
export default {
name: "Add",
......@@ -426,7 +398,11 @@ export default {
return {
entity: {},
rules: {
name: [{ required: true, message: "必填", trigger: "blur" }],
name: [{
required: true,
message: "必填",
trigger: "blur"
}],
},
};
},
......
<template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Row>
<Col :span="12">
<FormItem :label="l('upId')" prop="upId">
......@@ -138,10 +138,7 @@
</Col>
<Col :span="12">
<FormItem :label="l('isSupportingFinish')" prop="isSupportingFinish">
<Dictionary
code="mes_xingchi_plan.mes_order.is_supporting_finish"
v-model="entity.isSupportingFinish"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.is_supporting_finish" v-model="entity.isSupportingFinish"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
......@@ -191,10 +188,7 @@
</Col>
<Col :span="12">
<FormItem :label="l('orderQuotationStatus')" prop="orderQuotationStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.order_quotation_status"
v-model="entity.orderQuotationStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.order_quotation_status" v-model="entity.orderQuotationStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
......@@ -233,10 +227,7 @@
</FormItem>
</Col>
<Col :span="12">
<FormItem
:label="l('productingPreparationFinishDate')"
prop="productingPreparationFinishDate"
>
<FormItem :label="l('productingPreparationFinishDate')" prop="productingPreparationFinishDate">
<DatePicker type="date" v-model="entity.productingPreparationFinishDate"></DatePicker>
</FormItem>
</Col>
......@@ -292,34 +283,22 @@
</Col>
<Col :span="12">
<FormItem :label="l('mainRoutingSetStatus')" prop="mainRoutingSetStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.main_routing_set_status"
v-model="entity.mainRoutingSetStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.main_routing_set_status" v-model="entity.mainRoutingSetStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('majorRoutingSetStatus')" prop="majorRoutingSetStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.major_routing_set_status"
v-model="entity.majorRoutingSetStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.major_routing_set_status" v-model="entity.majorRoutingSetStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('materialBillSetStatus')" prop="materialBillSetStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.material_bill_set_status"
v-model="entity.materialBillSetStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.material_bill_set_status" v-model="entity.materialBillSetStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('routingDataSetStatus')" prop="routingDataSetStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.routing_data_set_status"
v-model="entity.routingDataSetStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.routing_data_set_status" v-model="entity.routingDataSetStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
......@@ -329,18 +308,12 @@
</Col>
<Col :span="12">
<FormItem :label="l('mainRoutingExecuteStatus')" prop="mainRoutingExecuteStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.main_routing_execute_status"
v-model="entity.mainRoutingExecuteStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.main_routing_execute_status" v-model="entity.mainRoutingExecuteStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('majorRoutingExecuteStatus')" prop="majorRoutingExecuteStatus">
<Dictionary
code="mes_xingchi_plan.mes_order.major_routing_execute_status"
v-model="entity.majorRoutingExecuteStatus"
></Dictionary>
<Dictionary code="mes_xingchi_plan.mes_order.major_routing_execute_status" v-model="entity.majorRoutingExecuteStatus"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
......@@ -385,10 +358,7 @@
</Col>
<Col :span="12">
<FormItem :label="l('isPreschedule')" prop="isPreschedule">
<Dictionary
code="mes_xingchi_plan.mes_order.is_preschedule"
v-model="entity.isPreschedule"
></Dictionary>
<Dictionary code="aps.plan.ispreschedule" v-model="entity.isPreschedule"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
......@@ -416,8 +386,9 @@
<Button type="primary" @click="handleSubmit" v-noClick>保存</Button>
<Button @click="handleClose" class="ml20">取消</Button>
</FormItem>
</Form>
</Form>
</template>
<script>
import Api from "./api";
export default {
......@@ -426,7 +397,11 @@ export default {
return {
entity: {},
rules: {
name: [{ required: true, message: "必填", trigger: "blur" }],
name: [{
required: true,
message: "必填",
trigger: "blur"
}],
},
};
},
......@@ -435,7 +410,9 @@ export default {
},
methods: {
load(v) {
Api.get({ id: v }).then((r) => {
Api.get({
id: v
}).then((r) => {
this.entity = r.result;
this.$emit("on-load");
});
......
......@@ -266,6 +266,14 @@ export default {
high: true,
hide: true,
},
{
key: "isPreschedule",
title: this.l("isPreschedule"),
align: "center",
width: 100,
high: true,
code: "aps.plan.ispreschedule",
},
{
key: "demandStart",
title: this.l("demandStart"),
......
This diff is collapsed.
<template>
<div class="">
<Form :label-width="190" inline>
<div class="orderDetail">
<Row>
<Col span="12">
<FormItem label="订单编号:" style="width:100%">
<h3>{{baseData.mesCode}}</h3>
</FormItem>
<Col span="8">
<span class="fwBold">{{l('mesCode')}}</span>
<p>{{baseData.mesCode}}</p>
</Col>
<Col span="12" class="">
<FormItem label="产品名称:" style="width:100%">
<h4>{{baseData.productName}}</h4>
</FormItem>
<Col span="8">
<span class="fwBold">{{l('taskType')}}</span>
<p>
<state code="plan.order.taskType" :value="baseData.taskType" type="text"></state>
</p>
</Col>
<Col span="12" class="">
<FormItem label="产品图号:" style="width:100%">
<h4>{{baseData.drawnNumber}}</h4>
</FormItem>
<Col span="8">
<span class="fwBold">{{l('quantity')}}</span>
<p>{{baseData.quantity}}</p>
</Col>
<Col span="12" class="">
<FormItem label="任务类型:" style="width:100%">
<state code="plan.order.taskType" :value="baseData.taskType+''" type="text"></state>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="阶段:" style="width:100%">
<state code="plan.order.stage" :value="baseData.stage+''" type="text"></state>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="材料:" style="width:100%">
<state code="plan.order.material" :value="baseData.materialId+''" type="text"></state>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="数量:" style="width:100%">
<span>{{baseData.quantity}}</span>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="工艺方法:" style="width:100%">
<state code="plan.order.routingMethod" :value="baseData.routing_Method+''" type="text"></state>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="甲方客户:" style="width:100%">
<state code="plan.order.guestName" :value="baseData.guestName+''" type="text"></state>
</FormItem>
</Col>
<Col span="8" class="">
<FormItem label="外包络尺寸(mm):" style="width:100%">
<span>{{baseData.outer_Envelope_Size}}</span>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="开始时间:" style="width:100%">
<span>{{baseData.demandStartDate}}</span>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="完成时间:" style="width:100%">
<span>{{baseData.demandFinishDate}}</span>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="任务节点要求:" style="width:100%">
<span>{{baseData.taskRequire}}</span>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="厂内责任机关:" style="width:100%">
<span>{{baseData.functionaryOffice}}</span>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="厂内责任主体部门:" style="width:100%">
<state code="plan.order.mainDepartment" :value="baseData.mainDepartmentId+''" type="text"></state>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="3D打印承制单位:" style="width:100%">
<state code="plan.order.printSupply" :value="baseData.printSupply+''" type="text"></state>
</FormItem>
</Col>
<Col span="12" class="">
<FormItem label="甲方投产输入文件(编号):" style="width:100%">
<span>{{baseData.putintDocmentCode}}</span>
</FormItem>
</Row>
<Row>
<Col span="8">
<span class="fwBold">{{l('status')}}</span>
<p>
<state code="plan.order.status" :value="baseData.status" type="text"></state>
</p>
</Col>
<Col span="12" class="">
<FormItem label="甲方技术输入文件(编号):" style="width:100%">
<span>{{baseData.technologyDocmentCode}}</span>
</FormItem>
<Col span="8">
<span class="fwBold">{{l('productName')}}</span>
<p>{{baseData.productName}}</p>
</Col>
<Col span="12" class="">
<FormItem label="外部图号/模型号:" style="width:100%">
<span>{{baseData.outerDrawnNumber}}</span>
</FormItem>
<Col span="8">
<span class="fwBold">{{l('drawnNumber')}}</span>
<p>{{baseData.drawnNumber}}</p>
</Col>
<Col span="12" class="">
<FormItem label="模型版本:" style="width:100%">
<span>{{baseData.modelVersion}}</span>
</FormItem>
</Row>
<Row>
<Col span="8">
<span class="fwBold">{{l('batchNumber')}}</span>
<p>{{baseData.batchNumber}}</p>
</Col>
<Col span="12" class="">
<FormItem label="甲方任务号:" style="width:100%">
<span>{{baseData.taskCode}}</span>
</FormItem>
<Col span="8">
<span class="fwBold">{{l('projectNumber')}}</span>
<p>{{baseData.projectNumber}}</p>
</Col>
<Col span="12" class="">
<FormItem label="甲方设计人员:" style="width:100%">
<span>{{baseData.designer}}</span>
</FormItem>
<Col span="8">
<span class="fwBold">{{l('urgencyLevel')}}</span>
<p>
<state code="plan.order.urgencyLevel" :value="baseData.urgencyLevel" type="text"></state>
</p>
</Col>
<Col span="12" class="">
<FormItem label="厂内机关负责人:" style="width:100%">
<span>{{baseData.officeFunctionary}}</span>
</FormItem>
</Row>
<Row>
<Col span="8">
<span class="fwBold">{{l('demandStartDate')}}</span>
<p>
<DTSpan type="date" v-model="baseData.demandStartDate"></DTSpan>
</p>
</Col>
<Col span="8">
<span class="fwBold">{{l('demandFinishDate')}}</span>
<p>
<DTSpan type="date" v-model="baseData.demandFinishDate"></DTSpan>
</p>
</Col>
<Col span="8">
<span class="fwBold">{{l('taskRequire')}}</span>
<p>{{baseData.taskRequire}}</p>
</Col>
<Col span="12" class="">
<FormItem label="厂内主工艺人员:" style="width:100%">
<span>{{baseData.mainRoutingPeople}}</span>
</FormItem>
</Row>
<Row class="lastRow">
<Col span="24">
<span class="fwBold">{{l('remark')}}</span>
<p>{{baseData.remark}}</p>
</Col>
</Row>
</Form>
</div>
</div>
</template>
<script>
export default {
props: ['baseData'],
data() {
return {
themeBg:'light',
basicData:{},
themeBg: 'light',
basicData: {},
}
},
methods: {
l(key) {
key = "mes_plan" + "." + key;
return this.$t(key);
}
},
}
</script>
<style scoped>
<style lang="less">
.orderDetail {
line-height: 30px;
width: 90%;
margin: 0 auto;
.ivu-row {
padding-top: 20px;
padding-bottom: 20px;
border-bottom: #ccc solid 1px;
}
.lastRow {
border-bottom: none;
}
}
</style>
<template>
<div class="reve_cont">
<div class="reve_cont">
<Row>
<Col span="4">
<Menu :active-name="actNum" ref="actNum" class="menuBg" @on-select="openView" :theme="themeBg">
......@@ -15,22 +15,27 @@
</Menu>
</Col>
<Col span="20" class="revieweBox">
<basicView ref="basicView" :baseData="basicData" v-show="basicmodal"/>
<basicView ref="basicView" :baseData="basicData" v-show="basicmodal" />
<mainView ref="mainView" :baseData="basicData" v-show="mainmodal" />
<!-- <dispatched ref="dispatched" :baseData="basicData" v-show="dispatchedmodal"/> -->
</Col>
</Row>
</div>
</div>
</template>
<script>
import service from '@/plugins/request'
import basicView from './basicView.vue';
import mainView from './mainView.vue';
import dispatched from './dispatched.vue';
export default {
components:{basicView,mainView,dispatched},
components: {
basicView,
mainView,
dispatched
},
props: {
basicData:null,
basicData: null,
actValue: {
type: Number,
default: 1
......@@ -41,21 +46,21 @@ export default {
},
data() {
return {
actNum:'1',
themeBg:'light',
actNum: '1',
themeBg: 'light',
basicmodal: true,
mainmodal: false,
dispatchedmodal: false,
headerid:'',//暂存传字段
routingType:'',//工艺类型(主/专业)
diHeaderid:'',//暂存传字段
diRoutingType:'',//工艺类型(主/专业)
disexecuteid:0,
mainexecuteid:0
headerid: '', //暂存传字段
routingType: '', //工艺类型(主/专业)
diHeaderid: '', //暂存传字段
diRoutingType: '', //工艺类型(主/专业)
disexecuteid: 0,
mainexecuteid: 0
}
},
mounted(){
this.$nextTick(()=>{
mounted() {
this.$nextTick(() => {
this.actNum == this.$route.path.slice(1)
this.$refs.actNum.updateActiveName();
// this.shop = this.$route.path.slice(1)
......@@ -63,30 +68,30 @@ export default {
})
},
methods: {
loaddata(pamasId){
this.basicmodal=true;
this.mainmodal= false;
loaddata(pamasId) {
this.basicmodal = true;
this.mainmodal = false;
// this.dispatchedmodal= false;
// console.warn(pamasId) 获取主工艺信息 10030
let url = `${designUrl}/orderrouting/getordersheaderinfo?orderId=` + pamasId;
if(pamasId){
if (pamasId) {
service.get(`${url}`).then((response) => {
console.log(response)
if(response.result.length>0){
if(response.result[0]){
if (response.result.length > 0) {
if (response.result[0]) {
this.$refs.mainView.craftData = response.result[0];
this.headerid = response.result[0].id;
this.routingType = response.result[0].routingType;
this.getmainorder(pamasId)
}
if(response.result[1]){
if (response.result[1]) {
this.$refs.dispatched.craftData = response.result[1];
this.diHeaderid = response.result[1].id;
this.diRoutingType = response.result[1].routingType;
this.getdisorder(pamasId)
}
this.$refs.dispatched.getmaterialsupport(pamasId)
}else{
//this.$refs.dispatched.getmaterialsupport(pamasId)
} else {
console.log('获取工艺信息为空.')
this.$refs.mainView.craftData = {};
this.$refs.dispatched.craftData = {};
......@@ -95,21 +100,21 @@ export default {
}
},
// 获取产品号和设备id orderexecute/getorderproductandequip 10050
getmainorder(pamasId){
getmainorder(pamasId) {
let headerid = this.headerid;
let routingType = this.routingType;
let url01 = `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` + pamasId
+`&headerid=`+headerid +`&routingType=`+ routingType;
let url01 = `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` + pamasId +
`&headerid=` + headerid + `&routingType=` + routingType;
service.get(`${url01}`).then((res) => {
if(res.success){
if(res.result.equipids){
if (res.success) {
if (res.result.equipids) {
let equipids = res.result.equipids;
this.mainexecuteid = res.result.executeid;
this.$refs.mainView.getlistall(equipids)
this.$refs.mainView.getqc(this.mainexecuteid);
let bandleList = res.result.productCode;
let codeList = [];// 编号List
bandleList.map((item,index)=>{
let codeList = []; // 编号List
bandleList.map((item, index) => {
codeList.push(item.productcodes)
})
this.$refs.mainView.mainCodeList = codeList
......@@ -125,28 +130,27 @@ export default {
console.log(err)
})
},
getdisorder(pamasId){
getdisorder(pamasId) {
let diHeaderid = this.diHeaderid;
let diRoutingType = this.diRoutingType;
let url02 = `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` + pamasId
+`&headerid=`+diHeaderid +`&routingType=`+ diRoutingType;
let url02 = `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` + pamasId +
`&headerid=` + diHeaderid + `&routingType=` + diRoutingType;
service.get(`${url02}`).then((res) => {
if(res.success){
if(res.result.equipids){
if (res.success) {
if (res.result.equipids) {
let equipids = res.result.equipids;
this.disexecuteid = res.result.executeid;
this.$refs.dispatched.getlistall(equipids)
this.$refs.dispatched.getqc(this.disexecuteid);
let bandleList = res.result.productCode;
let boardList = [];// 板次List
bandleList.map((item,index)=>{
let boardList = []; // 板次List
bandleList.map((item, index) => {
boardList.push(item.boardNumber)
})
this.$refs.dispatched.disCodeList = boardList
console.warn(boardList)
}
else {
} else {
console.log('获取专业工艺信息数据为空.')
}
} else {
......@@ -157,10 +161,10 @@ export default {
})
},
// 更换左侧
openView(v){
if(v==2){
this.basicmodal= false;
this.mainmodal= true;
openView(v) {
if (v == 2) {
this.basicmodal = false;
this.mainmodal = true;
// this.dispatchedmodal= false;
this.$refs.mainView.getqc(this.mainexecuteid);
}
......@@ -170,18 +174,18 @@ export default {
// // this.dispatchedmodal= true;
//  this.$refs.dispatched.getqc(this.disexecuteid);
// }
else{
this.basicmodal= true;
this.mainmodal= false;
else {
this.basicmodal = true;
this.mainmodal = false;
// this.dispatchedmodal= false;
}
},
},
watch:{
watch: {
basicData: {
handler(v, o) {
this.loaddata(v.id)
if(v){
if (v) {
this.actNum == '1'
this.openView(1)
}
......@@ -191,15 +195,18 @@ export default {
},
}
</script>
<style scoped>
.menuBg{
.menuBg {
background: none;
height: 630px;
}
.menuBg .ivu-menu-item{
.menuBg .ivu-menu-item {
color: #000;
}
.revieweBox{
.revieweBox {
padding: 0 0 0 60px;
height: 630px;
}
......
This diff is collapsed.
......@@ -17,13 +17,13 @@
<template>
<div class="flex fd test_layout">
<div>
<Menu mode="horizontal" theme="light" active-name="0">
<Menu mode="horizontal" theme="light" active-name="a0">
<div class="layout-assistant">
<MenuItem name="0" to="/test/example">基础组件</MenuItem>
<MenuItem name="1" to="/test/user">人员选择</MenuItem>
<MenuItem name="2" to="/test/com">异步组件</MenuItem>
<MenuItem name="4" to="/test/resource">资源选择</MenuItem>
<MenuItem name="3" to="/test/view">详情拖拽排版</MenuItem>
<MenuItem name="a0" to="/test/example">基础组件</MenuItem>
<MenuItem name="a1" to="/test/user">人员选择</MenuItem>
<MenuItem name="a2" to="/test/com">异步组件</MenuItem>
<MenuItem name="a4" to="/test/resource">资源选择</MenuItem>
<MenuItem name="a3" to="/test/view">详情拖拽排版</MenuItem>
</div>
</Menu>
</div>
......
......@@ -13,10 +13,16 @@ export const exampleRouter = [
},
{
route: '/test/example/table',
title: 'treeGrid组件',
title: '表格',
name: 'components-table',
icon: 'md-aperture'
},
{
route: '/test/example/tree',
title: '树',
name: 'tree',
icon: 'md-aperture'
},
{
route: '/test/example/select',
title: 'select组件',
......
......@@ -21,6 +21,9 @@
</FormItem>
</Form>
</template>
<template slot-scope="{row,column,index}" slot="action">
<strong>aaaa</strong>
</template>
</DataGrid>
</div>
</template>
......@@ -62,6 +65,7 @@ export default {
easy: true,
sortable:true,
high: true,
slot:"cardNo",
tooltip: true,
},
],
......
<template>
<div class="tree">
<TreeGrid :columns="columns" :items="treeData">
<template slot-scope="{row,column,index}" slot="name">
<Icon type="md-folder" /> {{row.name}}
</template>
<template slot-scope="{row,column,index}" slot="action">
<strong>{{row.action}}</strong>
</template>
</TreeGrid>
<!-- <Input v-model="data" type="textarea" rows="20" placeholder=""></Input> -->
</div>
</template>
<script>
import Mock from "mockjs";
export default {
name: "",
data() {
return {
columns: [
{
type: "selection",
width:50,
align:"center"
},
{
key: "name",
title: "名称",
tree:true,
slot:"name"
},
{
key: "status",
title: "状态",
width: "100"
},
{
key: "action",
title: "操作",
width: "100",
sortable:true,
slot:"action"
},
],
treeData1: [],
treeData: [
{
action: "510000202006085435",
name: "书加部保处",
status: 0,
children: [
{ action: "430000200008054924", name: "越组大过越", status: 0 },
{ action: "350000200106195747", name: "反走和报山", status: 1 },
{ action: "46000019920810827X", name: "强级法量少务持", status: 1 },
{ action: "620000198005286979", name: "况题米", status: 1 },
{ action: "440000200901093872", name: "又多为", status: 0 },
],
},
{ action: "510000199304272074", name: "参什叫", status: 1 },
{ action: "710000199110144186", name: "情克应个该农", status: 1 },
{ action: "140000201204175550", name: "阶研其交式", status: 1 },
{ action: "500000198710051748", name: "议开你集", status: 1 },
],
data: "",
};
},
mounted() {
// this.init();
},
methods: {
init() {
var data = Mock.mock({
"data|5": [
{
action: "@id",
name: "@ctitle",
"status|1": [0, 1],
},
],
});
console.warn(data);
this.data = JSON.stringify(data.data);
this.treeData = data.data;
},
},
};
</script>
<style lang="less" >
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment