Commit c25fd74e authored by 仇晓婷's avatar 仇晓婷

数据包

parent 6facfc64
<template>
<div class>
<p>
<Select @on-change="productonchange" style="width:300px" placeholder="请选择编号">
<Option value class="option-text">请选择编号</Option>
<Option v-for="item in mainCodeList" :value="item" :key="item">{{ item }}</Option>
</Select>
</p>
<Tabs :animated="false" @on-click="tabChange" value="1">
<TabPane label="工艺信息" name="1">
<Form :model="craftData" :label-width="130" inline>
<Row>
<Col span="12">
<FormItem label="工艺文件编号:" style="width:100%">
<span>{{craftData.code}}</span>
<FormItem label="工艺文件编号:" style="width: 100%">
<span>{{ craftData.code }}</span>
</FormItem>
</Col>
<Col span="12">
<FormItem label="工艺文件名称:" style="width:100%">
<span>{{craftData.name}}</span>
<FormItem label="工艺文件名称:" style="width: 100%">
<span>{{ craftData.name }}</span>
</FormItem>
</Col>
<Col span="12">
<FormItem label="工艺文件版本:" style="width:100%">
<span>{{craftData.versiondesc}}</span>
<FormItem label="工艺文件版本:" style="width: 100%">
<span>{{ craftData.versiondesc }}</span>
</FormItem>
</Col>
<Col span="12">
<FormItem label="任务类型:" style="width:100%">
<state code="plan.order.taskType" :value="craftData.task_type" type="text"></state>
<FormItem label="任务类型:" style="width: 100%">
<state
code="plan.order.taskType"
:value="craftData.task_type"
type="text"
></state>
<!-- <span>{{craftData.task_type}}</span> -->
</FormItem>
</Col>
<Col span="12">
<FormItem label="研制方式:" style="width:100%">
<span>{{craftData.development_mode_str}}</span>
<FormItem label="研制方式:" style="width: 100%">
<span>{{ craftData.development_mode_str }}</span>
</FormItem>
</Col>
<Col span="12">
<FormItem label="产品名称:" style="width:100%">
<span>{{craftData.productName}}</span>
<FormItem label="产品名称:" style="width: 100%">
<span>{{ craftData.productName }}</span>
</FormItem>
</Col>
<Col span="12">
<FormItem label="产品图号:" style="width:100%">
<span>{{craftData.productCode}}</span>
<FormItem label="产品编号:" style="width: 100%">
<span>{{ craftData.productCode }}</span>
</FormItem>
</Col>
</Row>
</Form>
</TabPane>
<TabPane label="设备信息" name="2">
<!-- <TabPane label="设备信息" name="2">
<Form :model="equipmentData" :label-width="130" inline>
<Row>
<Col span="12">
......@@ -74,32 +72,49 @@
</Col>
</Row>
</Form>
</TabPane>
</TabPane> -->
<TabPane label="质量信息" name="3">
<orderqcrecord ref="orderqcrecord1" />
<orderqcrecord ref="orderqcrecord1" :items="items"/>
</TabPane>
<TabPane label="配套数据" name="4">
<!-- <orderqcrecord ref="orderqcrecord1" /> -->
</TabPane>
</Tabs>
</div>
</template>
<script>
import service from '@/plugins/request'
import orderqcrecord from './orderqcrecord.vue'
import service from "@/plugins/request";
import orderqcrecord from "./orderqcrecord.vue";
export default {
components: { orderqcrecord },
props: {
baseData: {
type: [String, Number, Array, Object]
}
type: [String, Number, Array, Object],
},
items: {
mesCodeId: {
type: Number,
},
headerid: {
type: Number,
},
routingType: {
type: Number,
},
craftData: {
type: Object,
},
},
},
data() {
return {
themeBg: 'light',
craftData: {}, //工艺信息
themeBg: "light",
craftData:this.items.craftData, //工艺信息
equipmentData: {}, //设备信息
headerid: '', //暂存传字段
routingType: '', //工艺类型(主/专业)
mainCodeList: [] //编号数组
}
headerid: "", //暂存传字段
routingType: "", //工艺类型(主/专业)
mainCodeList: [], //编号数组
};
},
created() {
// this.loaddata()
......@@ -107,34 +122,33 @@ export default {
methods: {
// 获取设备信息 10020 /equipinfo/getlistall
getlistall(equipids) {
let url02 = `${systemUrl}/equipinfo/getlistall?equipids=` + equipids
let url02 = `${systemUrl}/equipinfo/getlistall?equipids=` + equipids;
service.get(`${url02}`).then((res) => {
if (res.success) {
if (res.result.length != 0) {
this.equipmentData = res.result[0]
this.equipmentData = res.result[0];
} else {
this.equipmentData = []
console.log('获取主工艺设备信息为空.')
this.equipmentData = [];
console.log("获取主工艺设备信息为空.");
}
} else {
this.equipmentData = []
console.log('获取主工艺设备数据失败.')
this.equipmentData = [];
console.log("获取主工艺设备数据失败.");
}
})
});
},
getqc(executeid) {
this.$refs.orderqcrecord1.qcdatasearch.execute_id = executeid
this.$refs.orderqcrecord1.qcdatasearch.execute_id = executeid;
},
productonchange(e) {
this.$refs.orderqcrecord1.qcdatasearch.isMain = 1
this.$refs.orderqcrecord1.qcdatasearch.productcode = e
this.$refs.orderqcrecord1.qcdatasearch.SkipCount = 0
this.$refs.orderqcrecord1.onqcpage()
this.$refs.orderqcrecord1.qcdatasearch.isMain = 1;
this.$refs.orderqcrecord1.qcdatasearch.productcode = e;
this.$refs.orderqcrecord1.qcdatasearch.SkipCount = 0;
this.$refs.orderqcrecord1.onqcpage();
},
tabChange() {
// console.log("切换tab")
}
},
},
mounted() {},
watch: {
......@@ -145,10 +159,10 @@ export default {
// this.loaddata(v.id)
// console.info(o.id)
},
deep: true
}
}
}
deep: true,
},
},
};
</script>
<style scoped>
</style>
\ No newline at end of file
<template>
<div>
<Table ref="table" border class="tableCommon" :columns="qcrecordcolumn" :data="qcrecorddata">
<template slot-scope="{ row,index }" slot="selffillin">
<p style="margin-bottom: 10px">
<Select
@on-change="productonchange"
style="width: 300px"
clearable
placeholder="请选择编号"
>
<!-- <Option value class="option-text">请选择编号</Option> -->
<Option v-for="item in mainCodeList" :value="item" :key="item">{{
item
}}</Option>
</Select>
</p>
<Table
ref="table"
border
class="tableCommon"
:columns="qcrecordcolumn"
:data="qcrecorddata"
>
<template slot-scope="{ row, index }" slot="selffillin">
<template>
<template
v-if="row.fillintype == 1"
>{{row.selfchecklist.user_name}} {{row.selfchecklist.addTime}}</template>
<template v-else-if="row.fillintype ==2">
<op class="view">{{row.selfchecklist.fill_in_content}}</op>
{{row.selfchecklist.user_name}} {{row.selfchecklist.addTime}}
<template v-if="row.fillintype == 1"
>{{ row.selfchecklist.user_name }}
{{ row.selfchecklist.addTime }}</template
>
<template v-else-if="row.fillintype == 2">
<op class="view">{{ row.selfchecklist.fill_in_content }}</op>
{{ row.selfchecklist.user_name }} {{ row.selfchecklist.addTime }}
</template>
<template v-else>
<op v-if="row.selfchecklist.fillinstatus!=0"
<op
v-if="row.selfchecklist.fillinstatus != 0"
class="view"
@click="showrecordData(row,1,false)"
v-text="row.selfchecklist.user_name+' '+row.selfchecklist.addTime"
@click="showrecordData(row, 1, false)"
v-text="
row.selfchecklist.user_name + ' ' + row.selfchecklist.addTime
"
></op>
</template>
</template>
</template>
<!--互检-->
<template slot-scope="{ row,index }" slot="mutualfillin">
<template v-if="row.check_type==2||row.check_type==4">
<template slot-scope="{ row, index }" slot="mutualfillin">
<template v-if="row.check_type == 2 || row.check_type == 4">
<template>
<template
v-if="row.fillintype == 1"
>{{row.mutualchecklist.user_name}} {{row.mutualchecklist.addTime}}</template>
<template v-else-if="row.fillintype ==2">
<op class="view">{{row.mutualchecklist.fill_in_content}}</op>
{{row.mutualchecklist.user_name}} {{row.mutualchecklist.addTime}}
<template v-if="row.fillintype == 1"
>{{ row.mutualchecklist.user_name }}
{{ row.mutualchecklist.addTime }}</template
>
<template v-else-if="row.fillintype == 2">
<op class="view">{{ row.mutualchecklist.fill_in_content }}</op>
{{ row.mutualchecklist.user_name }}
{{ row.mutualchecklist.addTime }}
</template>
<template v-else>
<op v-if="row.mutualchecklist.fillinstatus!=0"
<op
v-if="row.mutualchecklist.fillinstatus != 0"
class="view"
@click="showrecordData(row,2,false)"
v-text="row.mutualchecklist.user_name+' '+row.mutualchecklist.addTime"
@click="showrecordData(row, 2, false)"
v-text="
row.mutualchecklist.user_name +
' ' +
row.mutualchecklist.addTime
"
></op>
</template>
</template>
</template>
</template>
<template slot-scope="{ row,index }" slot="seizurefillin">
<template v-if="row.check_type==3||row.check_type==4">
<template v-if="row.seizurechecklist.fillinstatus==1">
<template
v-if="row.fillintype == 1"
>{{row.seizurechecklist.user_name}} {{row.seizurechecklist.addTime}}</template>
<template v-else-if="row.fillintype ==2">
<op class="view">{{row.seizurechecklist.fill_in_content}}</op>
{{row.seizurechecklist.user_name}} {{row.seizurechecklist.addTime}}
<template slot-scope="{ row, index }" slot="seizurefillin">
<template v-if="row.check_type == 3 || row.check_type == 4">
<template v-if="row.seizurechecklist.fillinstatus == 1">
<template v-if="row.fillintype == 1"
>{{ row.seizurechecklist.user_name }}
{{ row.seizurechecklist.addTime }}</template
>
<template v-else-if="row.fillintype == 2">
<op class="view">{{ row.seizurechecklist.fill_in_content }}</op>
{{ row.seizurechecklist.user_name }}
{{ row.seizurechecklist.addTime }}
</template>
<template v-else>
<op v-if="row.seizurechecklist.fillinstatus!=0"
<op
v-if="row.seizurechecklist.fillinstatus != 0"
class="view"
@click="showrecordData(row,3,false)"
v-text="row.seizurechecklist.user_name+' '+row.seizurechecklist.addTime"
@click="showrecordData(row, 3, false)"
v-text="
row.seizurechecklist.user_name +
' ' +
row.seizurechecklist.addTime
"
></op>
</template>
</template>
</template>
</template>
<template slot-scope="{ row,index }" slot="isPhotograph">
<template v-if="row.isPhotograph==0">
<template slot-scope="{ row, index }" slot="isPhotograph">
<template v-if="row.isPhotograph == 0">
<op class="view"></op>
</template>
<template v-else>
<op class="view" @click="showPhoto(row,false)">查看</op>
<op class="view" @click="showPhoto(row, false)">查看</op>
</template>
</template>
</Table>
......@@ -113,182 +149,244 @@
</div>
</template>
<script>
import service from '@/plugins/request'
import QS from 'querystring'
import entryrecordfiles from '../../../implement/components/entryrecordfiles.vue'
import entryrecordMovie from '../../../implement/components/entryrecordMovie.vue'
import entryrecorddata from '../../../implement/components/entryrecorddata.vue'
import service from "@/plugins/request";
import QS from "querystring";
import entryrecordfiles from "../../../implement/components/entryrecordfiles.vue";
import entryrecordMovie from "../../../implement/components/entryrecordMovie.vue";
import entryrecorddata from "../../../implement/components/entryrecorddata.vue";
export default {
name: 'orderqcrecord',
components: {entryrecordfiles,entryrecordMovie,entryrecorddata},
name: "orderqcrecord",
components: { entryrecordfiles, entryrecordMovie, entryrecorddata },
props: {
items: {
mesCodeId: {
type: Number,
},
headerid: {
type: Number,
},
routingType: {
type: Number,
},
craftData: {
type: Object,
},
},
},
data() {
return {
mainCodeList: [], //编号数组
pageindex: 1,
pagesize: 5,
qcdatatotal: 0,
qcdatasearch: {
isMain: 1,
productcode: '1',
productcode: "1",
execute_id: 0,
SkipCount: 0,
MaxResultCount: 5
MaxResultCount: 5,
},
entryrecordfilesModal: false,
entryrecorddataModal: false,
entryrecordmovieModal: false,
qcrecorddata: [],
qcrecordcolumn: [
{ title: '序号', type: 'index', width: '70', align: 'center' },
{ title: '工序', key: 'remark' },
{ title: '参数名称', key: 'check_params' },
{ title: '检验标记', key: 'check_type_str' },
{ title: '汇报类型', key: 'fillintype_str' },
{ title: '标准指标', key: 'standard' },
{ title: '生产要求', key: 'production_requirement', tooltip: true },
{ title: '检测内容', key: 'check_content', tooltip: true },
{ title: "序号", type: "index", width: "70", align: "center" },
{ title: "工序", key: "remark" },
{ title: "参数名称", key: "check_params" },
{ title: "检验标记", key: "check_type_str" },
{ title: "汇报类型", key: "fillintype_str" },
{ title: "标准指标", key: "standard" },
{ title: "生产要求", key: "production_requirement", tooltip: true },
{ title: "检测内容", key: "check_content", tooltip: true },
{
title: '操作员',
key: 'fillintype',
title: "操作员",
key: "fillintype",
slot: 'selffillin'
slot: "selffillin",
},
{
title: '互检员',
key: 'mutual',
title: "互检员",
key: "mutual",
slot: 'mutualfillin'
slot: "mutualfillin",
},
{
title: '检验员',
key: 'seizure',
title: "检验员",
key: "seizure",
slot: 'seizurefillin'
slot: "seizurefillin",
},
{
title: '是否拍照',
key: 'isPhotograph',
slot: 'isPhotograph'
title: "是否拍照",
key: "isPhotograph",
slot: "isPhotograph",
},
{
title: '模板',
key: 'qualityTemplate',
title: "模板",
key: "qualityTemplate",
render: (h, params) => {
return h(
'div',
"div",
{
class: 'icon_box'
class: "icon_box",
},
[
h(
'A',
"A",
{
attrs: {
href: fileUrlDown + params.row.qualityTemplate,
target: '_blank'
target: "_blank",
},
props: {},
style: {
color: '#249E91',
marginRight: '5px',
cursor: 'pointer'
}
color: "#249E91",
marginRight: "5px",
cursor: "pointer",
},
},
params.row.qualityTemplateName
)
),
]
)
}
}
]
}
);
},
},
],
};
},
mounted() {
this.getmainorder();
},
mounted() {},
watch: {},
methods: {
productonchange(e) {
// console.log(e);
this.qcdatasearch.isMain = 1;
this.qcdatasearch.productcode = e;
this.qcdatasearch.SkipCount = 0;
// this.$refs.orderqcrecord1.onqcpage()
},
getmainorder() {
let mesCodeId = this.items.mesCodeId;
let headerid = this.items.headerid;
let routingType = this.items.routingType;
let url01 =
`${PlanUrl}/orderexecute/getorderproductandequip?orderId=` +
mesCodeId +
`&headerid=` +
headerid +
`&routingType=` +
routingType;
service
.get(`${url01}`)
.then((res) => {
if (res.success) {
if (res.result.productCode) {
let codeList = []; // 编号List
let bandleList = res.result.productCode;
bandleList.map((item, index) => {
codeList.push(item.productcodes);
});
this.mainCodeList = codeList;
}
// 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);
// this.$refs.mainView.mainCodeList = codeList;
// console.warn(codeList);
// } else {
// console.log("获取主工艺设备信息数据为空.");
// }
} else {
console.log("获取主工艺设备信息数据失败.");
}
})
.catch((err) => {
console.log(err);
});
},
onPageChanged(page_index) {
this.pageindex = page_index
this.onqcpage()
this.pageindex = page_index;
this.onqcpage();
},
onPagesizeChanged(page_size) {
this.qcdatasearch.MaxResultCount = page_size
this.onqcpage()
this.qcdatasearch.MaxResultCount = page_size;
this.onqcpage();
},
onqcpage() {
this.qcdatasearch.SkipCount =
(this.pageindex - 1) * this.qcdatasearch.MaxResultCount
(this.pageindex - 1) * this.qcdatasearch.MaxResultCount;
var url =
`${PlanUrl}/orderexecutequalityrecord/getorderqcrecordlist?` +
QS.stringify(this.qcdatasearch)
QS.stringify(this.qcdatasearch);
service.get(`${url}`).then((response) => {
this.qcrecorddata = response.result.items
this.qcrecorddata = response.result.items;
this.qcdatatotal = response.result.totalCount
this.getdetail()
})
this.qcdatatotal = response.result.totalCount;
this.getdetail();
});
},
getdetail() {
let routing_header_id = 0
let routing_header_id = 0;
if (this.qcrecorddata != null && this.qcrecorddata.length > 0) {
routing_header_id = this.qcrecorddata[0].routing_header_id
routing_header_id = this.qcrecorddata[0].routing_header_id;
var url =
`${designUrl}/routingdetail/getlistbyheaderid?headerID=` +
routing_header_id
routing_header_id;
service.get(`${url}`).then((response) => {
let detaildata = response.result
let detaildata = response.result;
for (let i = 0; i < this.qcrecorddata.length; i++) {
let qc = this.qcrecorddata[i]
let qc = this.qcrecorddata[i];
var gh = detaildata.filter(function(obj) {
return obj.id == qc.routing_detail_id
})
var gh = detaildata.filter(function (obj) {
return obj.id == qc.routing_detail_id;
});
if (gh != null && gh.length > 0) {
this.qcrecorddata[i].remark = gh[0].task_seq + ':' + gh[0].name
this.qcrecorddata[i].remark = gh[0].task_seq + ":" + gh[0].name;
}
}
})
});
}
},
showPhoto(params, isedit) {
this.entryrecordmovieModal = true
this.$refs.entryrecordMovie.loadpage(
params,
'',
'',
isedit
)
this.entryrecordmovieModal = true;
this.$refs.entryrecordMovie.loadpage(params, "", "", isedit);
},
showrecordData(params, fill_in_user_type, isedit) {
this.qc_show_data = params
this.qc_show_fill_in_user_type = fill_in_user_type
this.qc_show_data = params;
this.qc_show_fill_in_user_type = fill_in_user_type;
//显示附件数据包页面
if (params.fillintype == 3) {
this.entryrecordfilesModal = true
this.entryrecordfilesModal = true;
this.$refs.entryrecordfiles.loadpage(
params,
fill_in_user_type,
'',
'',
"",
"",
isedit
)
);
} else if (params.fillintype == 4) {
this.entryrecorddataModal = true
this.entryrecorddataModal = true;
this.$refs.entryrecorddata.loadpage(
params,
fill_in_user_type,
'',
'',
"",
"",
isedit
)
);
}
},
}
}
},
};
</script>
\ No newline at end of file
<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">
<MenuItem name="1" replace>
基本信息
<Menu
:active-name="actNum"
ref="actNum"
class="menuBg"
@on-select="openView"
:theme="themeBg"
>
<MenuItem name="1" replace> 基本信息 </MenuItem>
<MenuItem
v-for="(li, index) in nameList"
:key="index"
:name="index + 2"
replace
>
{{ li.name }}
</MenuItem>
<MenuItem name="2" replace>
工艺信息
</MenuItem>
<!-- <MenuItem name="3" replace>
专业工艺
</MenuItem> -->
</Menu>
</Col>
<Col span="20" class="revieweBox">
<basicView ref="basicView" :baseData="basicData" v-show="basicmodal" />
<mainView ref="mainView" :baseData="basicData" v-show="mainmodal" />
<component
:is="detail"
:baseData="basicData"
:items="items"
@on-close="cancel"
@on-ok="ok"
/>
<!-- <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';
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
dispatched,
},
props: {
basicData: null,
actValue: {
type: Number,
default: 1
}
default: 1,
},
},
created() {
this.openView(1)
this.detail = () => import("./basicView");
this.openView(this.actNum);
},
data() {
return {
actNum: '1',
themeBg: 'light',
items: {
mesCodeId: this.basicData.id,
headerid: 0,
routingType: 0,
craftData: {},
},
nameList: [],
detail: null,
actNum: "1",
themeBg: "light",
basicmodal: true,
mainmodal: false,
dispatchedmodal: false,
headerid: '', //暂存传字段
routingType: '', //工艺类型(主/专业)
diHeaderid: '', //暂存传字段
diRoutingType: '', //工艺类型(主/专业)
headerid: "", //暂存传字段
routingType: "", //工艺类型(主/专业)
diHeaderid: "", //暂存传字段
diRoutingType: "", //工艺类型(主/专业)
disexecuteid: 0,
mainexecuteid: 0
}
mainexecuteid: 0,
};
},
mounted() {
this.$nextTick(() => {
this.actNum == this.$route.path.slice(1)
this.$refs.actNum.updateActiveName();
// this.shop = this.$route.path.slice(1)
// this.$refs.shop.updateActiveName()
})
this.actNum = "1";
this.loaddata(this.basicData.id);
},
methods: {
loaddata(pamasId) {
......@@ -73,127 +92,148 @@ export default {
this.mainmodal = false;
// this.dispatchedmodal= false;
// console.warn(pamasId) 获取主工艺信息 10030
let url = `${designUrl}/orderrouting/getordersheaderinfo?orderId=` + pamasId;
let url =
`${technologyUrl}orderrouting/getordersheaderinfo?orderId=` + pamasId;
if (pamasId) {
service.get(`${url}`).then((response) => {
console.log(response)
console.log(response);
if (response.result.length > 0) {
this.nameList = response.result;
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)
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]) {
this.$refs.dispatched.craftData = response.result[1];
this.diHeaderid = response.result[1].id;
this.diRoutingType = response.result[1].routingType;
this.getdisorder(pamasId)
// this.diHeaderid = response.result[1].id;
// this.diRoutingType = response.result[1].routingType;
this.getdisorder(pamasId);
}
//this.$refs.dispatched.getmaterialsupport(pamasId)
} else {
console.log('获取工艺信息为空.')
console.log("获取工艺信息为空.");
this.$refs.mainView.craftData = {};
this.$refs.dispatched.craftData = {};
}
})
});
}
},
// 获取产品号和设备id orderexecute/getorderproductandequip 10050
getmainorder(pamasId) {
let headerid = this.headerid;
let routingType = this.routingType;
let url01 = `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` + pamasId +
`&headerid=` + headerid + `&routingType=` + routingType;
service.get(`${url01}`).then((res) => {
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) => {
codeList.push(item.productcodes)
})
this.$refs.mainView.mainCodeList = codeList
// getmainorder(pamasId) {
// let headerid = this.headerid;
// let routingType = this.routingType;
// let url01 =
// `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` +
// pamasId +
// `&headerid=` +
// headerid +
// `&routingType=` +
// routingType;
// service
// .get(`${url01}`)
// .then((res) => {
// 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) => {
// codeList.push(item.productcodes);
// });
// // this.$refs.mainView.mainCodeList = codeList;
console.warn(codeList)
} else {
console.log('获取主工艺设备信息数据为空.')
}
} else {
console.log('获取主工艺设备信息数据失败.')
}
}).catch((err) => {
console.log(err)
})
},
getdisorder(pamasId) {
let diHeaderid = this.diHeaderid;
let diRoutingType = this.diRoutingType;
let url02 = `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` + pamasId +
`&headerid=` + diHeaderid + `&routingType=` + diRoutingType;
service.get(`${url02}`).then((res) => {
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) => {
boardList.push(item.boardNumber)
})
this.$refs.dispatched.disCodeList = boardList
// console.warn(codeList);
// } else {
// console.log("获取主工艺设备信息数据为空.");
// }
// } else {
// console.log("获取主工艺设备信息数据失败.");
// }
// })
// .catch((err) => {
// console.log(err);
// });
// },
// getdisorder(pamasId) {
// let diHeaderid = this.diHeaderid;
// let diRoutingType = this.diRoutingType;
// let url02 =
// `${PlanUrl}/orderexecute/getorderproductandequip?orderId=` +
// pamasId +
// `&headerid=` +
// diHeaderid +
// `&routingType=` +
// diRoutingType;
// service
// .get(`${url02}`)
// .then((res) => {
// 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) => {
// boardList.push(item.boardNumber);
// });
// this.$refs.dispatched.disCodeList = boardList;
console.warn(boardList)
} else {
console.log('获取专业工艺信息数据为空.')
}
} else {
console.log('获取专业工艺信息数据失败.')
}
}).catch((err) => {
console.log(err)
})
},
// console.warn(boardList);
// } else {
// console.log("获取专业工艺信息数据为空.");
// }
// } else {
// console.log("获取专业工艺信息数据失败.");
// }
// })
// .catch((err) => {
// console.log(err);
// });
// },
// 更换左侧
openView(v) {
if (v == 2) {
this.basicmodal = false;
this.mainmodal = true;
// this.dispatchedmodal= false;
this.$refs.mainView.getqc(this.mainexecuteid);
console.log(v);
if (v == 1) {
this.detail = () => import("./basicView");
// this.this.basicmodal = true;
// this.mainmodal = false;
} else {
let i = v - 2;
this.nameList.forEach((e, index) => {
if (i == index) {
this.items.craftData = e;
this.items.headerid = e.id;
this.items.routingType = e.routingType;
}
// else if(v==3){
// this.basicmodal= false;
// this.mainmodal= false;
// // this.dispatchedmodal= true;
//  this.$refs.dispatched.getqc(this.disexecuteid);
// }
else {
this.basicmodal = true;
this.mainmodal = false;
// this.dispatchedmodal= false;
});
this.detail = () => import("./mainView");
// this.$refs.mainView.getqc(this.mainexecuteid);
}
},
cancel() {},
ok() {},
},
watch: {
basicData: {
handler(v, o) {
this.loaddata(v.id)
this.loaddata(v.id);
if (v) {
this.actNum == '1'
this.openView(1)
this.actNum == "1";
this.openView(this.actNum);
}
},
deep: true
deep: true,
},
},
}
};
</script>
<style scoped>
......
......@@ -281,7 +281,7 @@ export default {
//追溯
this.reviewModal = true;
this.itemData = item;
this.$refs.reviewCount.actNum = "1";
// this.$refs.reviewCount.actNum = "1";
},
reviewOk() {
this.reviewModal = false;
......@@ -292,7 +292,7 @@ export default {
// this.$refs.reviewCount.$refs.menus.updateActiveName();
// })
// }
this.$refs.reviewCount.actNum = "";
// this.$refs.reviewCount.actNum = "1";
},
// 分页
pageChange(pageNum) {
......
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