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

bug125

parent 3c14fe1d
...@@ -89,11 +89,12 @@ ...@@ -89,11 +89,12 @@
} }
.img_box { .img_box {
text-align: center; text-align: center;
margin: auto;
line-height: 350px; line-height: 350px;
font-size: 32px; font-size: 32px;
width: 750px; width: 750px;
height: 350px; height: 350px;
background: #ddd; // background: #ddd;
margin: 10px 0 0 170px; margin: 10px 0 0 170px;
} }
} }
......
<template> <template>
<div> <div>
<div class="star" v-if="dispatchStatus==12"> <div class="star" v-if="dispatchStatus == 12">
<a class="start" @click="starFun"> <a class="start" @click="starFun"> <Icon type="md-play" />开工 </a>
<Icon type="md-play" />开工
</a>
</div> </div>
<div class="star" v-else> <div class="star" v-else>
<div class="flex fc-b"> <div class="flex fc-b">
<Button class="button" size="large" type="primary" @click="pauseFun" v-show="btnTextStatus"> <Button
class="button"
size="large"
type="primary"
@click="pauseFun"
v-show="btnTextStatus"
>
<Icon type="ios-pause" /> <Icon type="ios-pause" />
{{btnText}} {{ btnText }}
</Button> </Button>
<Button class="button" size="large" type="primary" @click="goPage(8,'数据填报')"> <Button
class="button"
size="large"
type="primary"
@click="goPage(8, '数据填报')"
>
<Icon type="logo-angular" />数据填报 <Icon type="logo-angular" />数据填报
</Button> </Button>
<Button class="button" size="large" type="primary" @click="goPage(7,'质量判定')"> <Button
class="button"
size="large"
type="primary"
@click="goPage(7, '质量判定')"
>
<Icon type="ios-checkmark-circle-outline" />质量判定 <Icon type="ios-checkmark-circle-outline" />质量判定
</Button> </Button>
<Button class="button" size="large" type="primary" @click="transferFn"> <Button class="button" size="large" type="primary" @click="transferFn">
...@@ -24,7 +38,7 @@ ...@@ -24,7 +38,7 @@
</div> </div>
<div class="star_step" v-if="false"> <div class="star_step" v-if="false">
<div class="step_item" v-for="i of 6" :key="i"> <div class="step_item" v-for="i of 6" :key="i">
<p class="icon_A" v-if="i>=4"> <p class="icon_A" v-if="i >= 4">
<Icon type="md-checkmark-circle" /> <Icon type="md-checkmark-circle" />
</p> </p>
<p class="icon_B" v-else> <p class="icon_B" v-else>
...@@ -49,43 +63,64 @@ ...@@ -49,43 +63,64 @@
<div class="footer_box"> <div class="footer_box">
<div class="ul_box fl"> <div class="ul_box fl">
<ul> <ul>
<li>产品名称:{{entity.productName}}</li> <li>产品名称:{{ entity.productName }}</li>
<li>图号:{{entity.drawnNumber}}</li> <li>图号:{{ entity.drawnNumber }}</li>
<li> <li>
状态: 状态:
<state code="plan.order.status" ref="state" :value="entity.status" type="text" ></state> <state
code="plan.order.status"
ref="state"
:value="entity.status"
type="text"
></state>
</li> </li>
<li>订单编号:{{entity.mesCode}}</li> <li>订单编号:{{ entity.mesCode }}</li>
<li>批次号:{{entity.batchNumber}}</li> <li>批次号:{{ entity.batchNumber }}</li>
<li>计划数量:{{entity.quantity}}</li> <li>计划数量:{{ entity.quantity }}</li>
<li>节点日期:{{entity.demandFinishDate}}</li> <li>节点日期:{{ entity.demandFinishDate }}</li>
</ul> </ul>
</div> </div>
<div class="ul_box fl"> <div class="ul_box fl">
<ul> <ul>
<li>工序名称:{{entity.seqName}}</li> <li>工序名称:{{ entity.seqName }}</li>
<li>工序序号:{{entity.seqNo}}</li> <li>工序序号:{{ entity.seqNo }}</li>
<li>派工数量:{{entity.dispatchQuantity}}</li> <li>派工数量:{{ entity.dispatchQuantity }}</li>
<li>人员信息:{{entity.userNames}}</li> <li>人员信息:{{ entity.userNames }}</li>
<li>准备工时:{{entity.setupTime}}</li> <li>准备工时:{{ entity.setupTime }}</li>
<li> <li>
工单状态: 工单状态:
<state code="taskList.status" ref="state1" :value="dispatchStatus" type="text"></state> <state
code="taskList.status"
ref="state1"
:value="dispatchStatus"
type="text"
></state>
</li> </li>
</ul> </ul>
</div> </div>
<div class="img_box fl bgDDD"> <div class="img_box fl">
<ViewerImg :images="images" /> <ViewerImg :images="images" v-if="images" />
<img src="@/assets/imgicon/chan_Pin.png" width="70%" height="100%" />
</div> </div>
</div> </div>
<Modal v-model="ransferModal" :title="transferTitle" fullscreen style="z-index:99999" :footer-hide="cardlist.length==0"> <Modal
v-model="ransferModal"
:title="transferTitle"
fullscreen
style="z-index: 99999"
:footer-hide="cardlist.length == 0"
>
<div class="wu_bgModal"> <div class="wu_bgModal">
<div class="mass_box"> <div class="mass_box">
<div class="mass_list"> <div class="mass_list">
<h2 class="btn_play tl"> <h2 class="btn_play tl">
选择产品({{cardlist.length}} 选择产品({{ cardlist.length }}
<Button class="button" type="primary" @click="allcheck">全选</Button> <Button class="button" type="primary" @click="allcheck"
<Button class="button" type="primary" @click="rechecked">反选</Button> >全选</Button
>
<Button class="button" type="primary" @click="rechecked"
>反选</Button
>
</h2> </h2>
<div class="list01 tl"> <div class="list01 tl">
<Tag <Tag
...@@ -93,22 +128,28 @@ ...@@ -93,22 +128,28 @@
:checkable="true" :checkable="true"
class="tag_card" class="tag_card"
size="large" size="large"
v-for="(item,index) in cardlist" v-for="(item, index) in cardlist"
:name="item.id" :name="item.id"
:key="index" :key="index"
:checked="item.checked" :checked="item.checked"
color="primary" color="primary"
@on-change="changeCards" @on-change="changeCards"
>{{item.product_code}}</Tag> >{{ item.product_code }}</Tag
>
</div> </div>
</div> </div>
</div> </div>
<div class="mass_box"> <div class="mass_box">
<UserSelect ref="userSelected" :datas="userlist" v-model="user" v-width="300" /> <UserSelect
ref="userSelected"
:datas="userlist"
v-model="user"
v-width="300"
/>
</div> </div>
</div> </div>
<div slot="footer"> <div slot="footer">
<Button class="button" @click="ransferModal=false">取消</Button> <Button class="button" @click="ransferModal = false">取消</Button>
<Button class="button" type="primary" @click="ransOk">确定</Button> <Button class="button" type="primary" @click="ransOk">确定</Button>
</div> </div>
</Modal> </Modal>
...@@ -131,8 +172,8 @@ export default { ...@@ -131,8 +172,8 @@ export default {
iamges1: [ iamges1: [
{ {
thumbnail: iconImg + "noPic_product.png", thumbnail: iconImg + "noPic_product.png",
source: iconImg + "noPic_product.png" source: iconImg + "noPic_product.png",
} },
], ],
entity: {}, entity: {},
id: Number(this.$route.query.id), id: Number(this.$route.query.id),
...@@ -156,7 +197,7 @@ export default { ...@@ -156,7 +197,7 @@ export default {
nextDetailId: null, nextDetailId: null,
operatorId: null, operatorId: null,
userlist: [], userlist: [],
user: null user: null,
}; };
}, },
created() { created() {
...@@ -179,10 +220,10 @@ export default { ...@@ -179,10 +220,10 @@ export default {
//开工 //开工
let params = { let params = {
id: this.id, id: this.id,
orderid: this.orderId + "" orderid: this.orderId + "",
}; };
Api.entrystart(params) Api.entrystart(params)
.then(res => { .then((res) => {
if (res.success) { if (res.success) {
this.$Message.success("开工成功!"); this.$Message.success("开工成功!");
this.dispatchStatus = 14; this.dispatchStatus = 14;
...@@ -191,7 +232,7 @@ export default { ...@@ -191,7 +232,7 @@ export default {
this.$Message.error("开工失败!"); this.$Message.error("开工失败!");
} }
}) })
.catch(err => { .catch((err) => {
this.$Message.error("连接错误"); this.$Message.error("连接错误");
}); });
}, },
...@@ -199,11 +240,11 @@ export default { ...@@ -199,11 +240,11 @@ export default {
//暂停or继续 //暂停or继续
let params = { let params = {
id: this.id, id: this.id,
orderid: this.orderId + "" orderid: this.orderId + "",
}; };
if (this.btnText == "暂停") { if (this.btnText == "暂停") {
Api.entrypause(params) Api.entrypause(params)
.then(res => { .then((res) => {
if (res.success) { if (res.success) {
this.$Message.success("暂停成功!"); this.$Message.success("暂停成功!");
this.dispatchStatus = 5; this.dispatchStatus = 5;
...@@ -213,12 +254,12 @@ export default { ...@@ -213,12 +254,12 @@ export default {
this.$Message.error("暂停失败!"); this.$Message.error("暂停失败!");
} }
}) })
.catch(err => { .catch((err) => {
this.$Message.error("连接错误"); this.$Message.error("连接错误");
}); });
} else if (this.btnText == "继续") { } else if (this.btnText == "继续") {
Api.entrentrycontinuestart(params) Api.entrentrycontinuestart(params)
.then(res => { .then((res) => {
if (res.success) { if (res.success) {
this.$Message.success("继续成功!"); this.$Message.success("继续成功!");
this.dispatchStatus = 14; this.dispatchStatus = 14;
...@@ -228,7 +269,7 @@ export default { ...@@ -228,7 +269,7 @@ export default {
this.$Message.error("继续失败!"); this.$Message.error("继续失败!");
} }
}) })
.catch(err => { .catch((err) => {
this.$Message.error("连接错误"); this.$Message.error("连接错误");
}); });
} }
...@@ -253,14 +294,14 @@ export default { ...@@ -253,14 +294,14 @@ export default {
load(v) { load(v) {
//加载基础数据 //加载基础数据
let params = { let params = {
id: v id: v,
}; };
Api.orderanddispatchinfos(params) Api.orderanddispatchinfos(params)
.then(r => { .then((r) => {
if (r.success && r.result) { if (r.success && r.result) {
this.entity = r.result; this.entity = r.result;
if (r.result.productId && r.result.productId > 0) { if (r.result.productId && r.result.productId > 0) {
ApiTech.get({ id: r.result.productId }).then(res => { ApiTech.get({ id: r.result.productId }).then((res) => {
if (res.success && res.result) { if (res.success && res.result) {
if ( if (
res.result.productUrlList && res.result.productUrlList &&
...@@ -275,14 +316,14 @@ export default { ...@@ -275,14 +316,14 @@ export default {
app: "technology", app: "technology",
eid: this.eid, eid: this.eid,
name: "", name: "",
field: "" field: "",
}; };
this.$http.sysUser this.$http.sysUser
.getFile(parms) .getFile(parms)
.then(res1 => { .then((res1) => {
if (res1.data != [] && res1.data.length > 0) { if (res1.data != [] && res1.data.length > 0) {
this.images.splice(0); this.images.splice(0);
res1.data.forEach(datas => { res1.data.forEach((datas) => {
let objImag = {}; let objImag = {};
objImag.thumbnail = this.downUrl + datas.downloadPath; objImag.thumbnail = this.downUrl + datas.downloadPath;
objImag.source = this.downUrl + datas.downloadPath; objImag.source = this.downUrl + datas.downloadPath;
...@@ -292,7 +333,7 @@ export default { ...@@ -292,7 +333,7 @@ export default {
this.images = this.iamges1; this.images = this.iamges1;
} }
}) })
.catch(err => { .catch((err) => {
this.images = this.iamges1; this.images = this.iamges1;
}); });
} }
...@@ -300,7 +341,7 @@ export default { ...@@ -300,7 +341,7 @@ export default {
} }
} }
}) })
.catch(e => { .catch((e) => {
this.$Message.error("连接错误"); this.$Message.error("连接错误");
}); });
}, },
...@@ -318,43 +359,43 @@ export default { ...@@ -318,43 +359,43 @@ export default {
let pid = Number(this.$route.query.id); // JSON.stringify() let pid = Number(this.$route.query.id); // JSON.stringify()
let params = { let params = {
id: Number(this.$route.query.id), id: Number(this.$route.query.id),
executeId: Number(this.$route.query.executeId) executeId: Number(this.$route.query.executeId),
}; };
Api.productsandoperators(params) Api.productsandoperators(params)
.then(res => { .then((res) => {
if (res.success && res.result) { if (res.success && res.result) {
this.detailId = res.result.detailId; this.detailId = res.result.detailId;
this.nextDetailId = res.result.nextDetailId; this.nextDetailId = res.result.nextDetailId;
let users = res.result.users; let users = res.result.users;
this.userlist = []; this.userlist = [];
users.forEach(u => { users.forEach((u) => {
(u.value = u.id), (u.label = u.userName); (u.value = u.id), (u.label = u.userName);
this.userlist.push(u); this.userlist.push(u);
}); });
let resoult = res.result.products; let resoult = res.result.products;
resoult.filter(u => { resoult.filter((u) => {
u.checked = false; u.checked = false;
this.cardlist.push(u); this.cardlist.push(u);
}); });
} }
}) })
.catch(e => { .catch((e) => {
this.$Message.error("连接错误"); this.$Message.error("连接错误");
}); });
}, },
// 全选 // 全选
allcheck() { allcheck() {
let cardslist = this.cardlist; let cardslist = this.cardlist;
cardslist.map(a => { cardslist.map((a) => {
a.checked = true; a.checked = true;
}); });
}, },
// 反选 // 反选
rechecked() { rechecked() {
let cardslist = this.cardlist; let cardslist = this.cardlist;
cardslist.map(b => { cardslist.map((b) => {
b.checked = !b.checked; b.checked = !b.checked;
}); });
}, },
...@@ -391,23 +432,22 @@ export default { ...@@ -391,23 +432,22 @@ export default {
nextDetailId: this.nextDetailId, nextDetailId: this.nextDetailId,
productIds: upList, productIds: upList,
operatorId: userInfo[0].id, operatorId: userInfo[0].id,
operator: userInfo[0].userName operator: userInfo[0].userName,
}; };
Api.confirmproductsandoperator(params) Api.confirmproductsandoperator(params)
.then(res => { .then((res) => {
if (res.success && res.result) { if (res.success && res.result) {
this.$Message.success("转续成功"); this.$Message.success("转续成功");
this.ransferModal=false this.ransferModal = false;
} } else {
else{
this.$Message.error("转续失败"); this.$Message.error("转续失败");
} }
}) })
.catch(e => { .catch((e) => {
this.$Message.error("连接错误"); this.$Message.error("连接错误");
}); });
} },
}, },
watch: { watch: {
"$route.query.id"(v1) { "$route.query.id"(v1) {
...@@ -433,7 +473,7 @@ export default { ...@@ -433,7 +473,7 @@ export default {
}, },
images(v) { images(v) {
this.images = v; this.images = v;
} },
} },
}; };
</script> </script>
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