Commit 99159c18 authored by kangzhenfei's avatar kangzhenfei

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

parents 4e51f204 7566c7da
This diff is collapsed.
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
@on-drag-drop="onDragDrop" @on-drag-drop="onDragDrop"
@on-selection-change="selectionChange" @on-selection-change="selectionChange"
@on-select="onSelect" @on-select="onSelect"
:row-key="rowKey"
></Table> ></Table>
</div> </div>
<div class="table-footer"> <div class="table-footer">
...@@ -225,6 +226,10 @@ export default { ...@@ -225,6 +226,10 @@ export default {
span: {//栅格数 span: {//栅格数
type: Number, type: Number,
default: 24 default: 24
},
//table控件children子数据控制功能
rowKey: {
type: [String, Number]
}, },
gutter:{//间距 gutter:{//间距
type:Number, type:Number,
......
...@@ -33,14 +33,25 @@ ...@@ -33,14 +33,25 @@
</Col> </Col>
<Col :span="24" style="padding:20px 0 0px 10px;margin-bottom:10px;" class="table-solt"> <Col :span="24" style="padding:20px 0 0px 10px;margin-bottom:10px;" class="table-solt">
<Table border :columns="columns" :data="checkList" class="tableCommon" height="300"> <Table border :columns="columns" :data="checkList" class="tableCommon" height="300">
<template slot-scope="{ row, index }" slot="title">
<div v-if="row.fieldType==1||row.fieldType==2">{{row.title}}</div>
<Input
v-if="row.fieldType==3"
v-model="row.title"
placeholder="请输入"
@on-blur="setRow(row,index)"
/>
</template>
<template slot-scope="{ row, index }" slot="note"> <template slot-scope="{ row, index }" slot="note">
<Input v-model="row.note" placeholder="请输入" @on-blur="setRow(row,index)" /> <div v-if="row.fieldType==1">{{row.note}}</div>
<Input v-model="row.note" placeholder="请输入" @on-blur="setRow(row,index)" v-else />
</template> </template>
<template slot-scope="{ row, index }" slot="datatype"> <template slot-scope="{ row, index }" slot="datatype">
<!-- <Input v-model="row.datatype" placeholder="请输入" @on-blur="setRow(row,index)" /> --> <div v-if="row.fieldType==1">{{row.datatype}}</div>
<Select v-model="row.datatype" style="width:200px" @on-change="setRow(row,index)"> <Select v-model="row.datatype" v-else>
<Option <Option
v-for="item in cityList" @on-change="setRow(row,index)"
v-for="(item,index) in cityList"
:value="item.value" :value="item.value"
:key="item.value" :key="item.value"
>{{ item.label }}</Option> >{{ item.label }}</Option>
...@@ -52,8 +63,15 @@ ...@@ -52,8 +63,15 @@
<template slot-scope="{ row, index }" slot="required"> <template slot-scope="{ row, index }" slot="required">
<Checkbox v-model="row.required" @on-change="setRow(row,index)"></Checkbox> <Checkbox v-model="row.required" @on-change="setRow(row,index)"></Checkbox>
</template> </template>
<template slot-scope="{ row, index }" slot="isunique"> <template slot-scope="{ row, index }" slot="isUnique">
<Checkbox v-model="row.isunique" @on-change="setRow(row,index)"></Checkbox> <Checkbox v-model="row.isUnique" @on-change="setRow(row,index)"></Checkbox>
</template>
<template
slot-scope="{ row, index }"
slot="action"
v-if="row.fieldType==2||row.fieldType==3"
>
<a @click="remove(index)" style="color:#FF7A8B">删除</a>
</template> </template>
</Table> </Table>
</Col> </Col>
...@@ -79,6 +97,7 @@ export default { ...@@ -79,6 +97,7 @@ export default {
upId: 0, upId: 0,
code: 0 code: 0
}, },
cityList: [ cityList: [
{ {
value: "0", value: "0",
...@@ -112,7 +131,8 @@ export default { ...@@ -112,7 +131,8 @@ export default {
{ {
title: "属性名称", title: "属性名称",
key: "title", key: "title",
align: "center" align: "center",
slot: "title"
}, },
{ {
title: "备注", title: "备注",
...@@ -140,9 +160,15 @@ export default { ...@@ -140,9 +160,15 @@ export default {
}, },
{ {
title: "是否唯一属性", title: "是否唯一属性",
key: "isunique", key: "isUnique",
align: "center", align: "center",
slot: "isunique" slot: "isUnique"
},
{
title: "操作",
slot: "action",
width: 100,
align: "center"
} }
], ],
checkList: [], checkList: [],
...@@ -159,19 +185,47 @@ export default { ...@@ -159,19 +185,47 @@ export default {
}, },
methods: { methods: {
tableData() { tableData() {
let conditions = []; let conditions = [
{
conditionalType: "In",
fieldName: "fieldType",
fieldValue: "1,2"
},
{
conditionalType: "Equal",
fieldName: "categoryId",
fieldValue: "0"
}
];
Api.listTable({ conditions: conditions }).then(r => { Api.listTable({ conditions: conditions }).then(r => {
if (r.result) { if (r.result) {
console.log(r); var arr = r.result;
this.checkList = r.result; this.checkList = arr.filter(function(item) {
delete item["id"];
return item
});
} }
}); });
}, },
remove(index) {
this.checkList.splice(index, 1);
},
setRow() { setRow() {
this.$set(this.checkList, index, row); this.$set(this.checkList, index, row);
}, },
addNew() {}, addNew() {
let obj = {
title: "",
note: "",
datatype: "",
required: false,
isunique: false,
fieldType: 3,
categoryId: 0
};
this.checkList.push(obj);
},
handleSubmit() { handleSubmit() {
this.$refs.form.validate(v => { this.$refs.form.validate(v => {
if (v) { if (v) {
......
...@@ -33,14 +33,25 @@ ...@@ -33,14 +33,25 @@
</Col> </Col>
<Col :span="24" style="padding:20px 0 0px 10px;margin-bottom:10px;" class="table-solt"> <Col :span="24" style="padding:20px 0 0px 10px;margin-bottom:10px;" class="table-solt">
<Table border :columns="columns" :data="checkList" class="tableCommon" height="300"> <Table border :columns="columns" :data="checkList" class="tableCommon" height="300">
<template slot-scope="{ row, index }" slot="title">
<div v-if="row.fieldType==1||row.fieldType==2">{{row.title}}</div>
<Input
v-if="row.fieldType==3"
v-model="row.title"
placeholder="请输入"
@on-blur="setRow(row,index)"
/>
</template>
<template slot-scope="{ row, index }" slot="note"> <template slot-scope="{ row, index }" slot="note">
<Input v-model="row.note" placeholder="请输入" @on-blur="setRow(row,index)" /> <div v-if="row.fieldType==1">{{row.note}}</div>
<Input v-model="row.note" placeholder="请输入" @on-blur="setRow(row,index)" v-else />
</template> </template>
<template slot-scope="{ row, index }" slot="datatype"> <template slot-scope="{ row, index }" slot="datatype">
<!-- <Input v-model="row.datatype" placeholder="请输入" @on-blur="setRow(row,index)" /> --> <div v-if="row.fieldType==1">{{row.datatype}}</div>
<Select v-model="row.datatype" style="width:200px" @on-change="setRow(row,index)"> <Select v-model="row.datatype" v-else>
<Option <Option
v-for="item in cityList" @on-change="setRow(row,index)"
v-for="(item,index) in cityList"
:value="item.value" :value="item.value"
:key="item.value" :key="item.value"
>{{ item.label }}</Option> >{{ item.label }}</Option>
...@@ -52,8 +63,15 @@ ...@@ -52,8 +63,15 @@
<template slot-scope="{ row, index }" slot="required"> <template slot-scope="{ row, index }" slot="required">
<Checkbox v-model="row.required" @on-change="setRow(row,index)"></Checkbox> <Checkbox v-model="row.required" @on-change="setRow(row,index)"></Checkbox>
</template> </template>
<template slot-scope="{ row, index }" slot="isunique"> <template slot-scope="{ row, index }" slot="isUnique">
<Checkbox v-model="row.isunique" @on-change="setRow(row,index)"></Checkbox> <Checkbox v-model="row.isUnique" @on-change="setRow(row,index)"></Checkbox>
</template>
<template
slot-scope="{ row, index }"
slot="action"
v-if="row.fieldType==2||row.fieldType==3"
>
<a @click="remove(index)" style="color:#FF7A8B">删除</a>
</template> </template>
</Table> </Table>
</Col> </Col>
...@@ -73,6 +91,7 @@ ...@@ -73,6 +91,7 @@
<script> <script>
import Api from "./api"; import Api from "./api";
export default { export default {
props: ["nodeInfo"],
data() { data() {
return { return {
entity: { entity: {
...@@ -143,6 +162,12 @@ export default { ...@@ -143,6 +162,12 @@ export default {
key: "isunique", key: "isunique",
align: "center", align: "center",
slot: "isunique" slot: "isunique"
},
{
title: "操作",
slot: "action",
width: 100,
align: "center"
} }
], ],
checkList: [], checkList: [],
...@@ -151,13 +176,22 @@ export default { ...@@ -151,13 +176,22 @@ export default {
} }
}; };
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
mounted() { mounted() {
this.tableData(); this.tableData();
this.get();
}, },
methods: { methods: {
get() {
Api.get({ id: this.nodeInfo.id }).then(r => {
if (r.result) {
this.entity = r.result;
}
});
},
tableData() { tableData() {
let conditions = []; let conditions = [];
Api.listTable({ conditions: conditions }).then(r => { Api.listTable({ conditions: conditions }).then(r => {
...@@ -167,11 +201,24 @@ export default { ...@@ -167,11 +201,24 @@ export default {
} }
}); });
}, },
remove(index) {
this.checkList.splice(index, 1);
},
setRow() { setRow() {
this.$set(this.checkList, index, row); this.$set(this.checkList, index, row);
}, },
addNew() {}, addNew() {
let obj = {
title: "",
note: "",
datatype: "",
required: false,
isunique: false,
fieldType: 3,
categoryId: 0
};
this.checkList.push(obj);
},
handleSubmit() { handleSubmit() {
this.$refs.form.validate(v => { this.$refs.form.validate(v => {
if (v) { if (v) {
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<!-- <Product :parent="parent" /> --> <!-- <Product :parent="parent" /> -->
</Content> </Content>
</Layout> </Layout>
<Modal v-model="modal" :title="title" width="1000" footer-hide> <Modal v-model="modal" :title="title" width="1000" footer-hide :mask-closable="false">
<component :is="detail" :eid="curId" :nodeInfo="nodeInfo" @on-close="cancel" @on-ok="ok" /> <component :is="detail" :eid="curId" :nodeInfo="nodeInfo" @on-close="cancel" @on-ok="ok" />
</Modal> </Modal>
</div> </div>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
@on-selection-change="onSelect" @on-selection-change="onSelect"
:batch="true" :batch="true"
:border="false" :border="false"
:rowKey="id" rowKey="id"
> >
<template slot="easySearch"> <template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline> <Form ref="formInline" :model="easySearch" inline>
......
...@@ -13,4 +13,17 @@ export default { ...@@ -13,4 +13,17 @@ export default {
orderanddispatchinfos(params) { orderanddispatchinfos(params) {
return Api.get(`${PlanUrl}/orderexecutenew/orderanddispatchinfos`, params); return Api.get(`${PlanUrl}/orderexecutenew/orderanddispatchinfos`, params);
}, },
//工单开工
entrystart(params) {
return Api.post(`${PlanUrl}/orderexecute/entrystart`, params);
},
//工单暂停
entrypause(params) {
return Api.post(`${PlanUrl}/orderexecute/entrypause`, params);
},
//工单继续
entrentrycontinuestart(params) {
return Api.post(`${PlanUrl}/orderexecute/entrycontinue`, params);
},
} }
\ No newline at end of file
<template> <template>
<div class="order_list"> <div class="order_list">
<div class="card_box"> <div class="card_box">
<Card class="card_order" v-for="(item,index) in listTasks" <Card
@click.native="goPage(item)" :key="index" class="card_order"
:class="item.status==12 ? 'card_border1' : (item.status==14 ? 'card_border2': (item.status==5 ?'card_border3': v-for="(item,index) in listTasks"
:style="order==item.id?'box-shadow: 0px 0px 15px #333;':''"
@click.native="goPage(item)"
:key="index"
:class="item.status==12 ? 'card_border1' : (item.status==14 ? 'card_border2': (item.status==5 ?'card_border3':
(item.status==7?'card_border4':(item.status==-1?'card_border5':''))))" (item.status==7?'card_border4':(item.status==-1?'card_border5':''))))"
> >
<!-- :class="item.status=='未开工'? 'card_border1' : (item.status=='执行中' ? 'card_border2': (item.status=='暂停中' ?'card_border3':
<!-- :class="item.status=='未开工'? 'card_border1' : (item.status=='执行中' ? 'card_border2': (item.status=='暂停中' ?'card_border3': (item.status=='交检中'?'card_border4':(item.status=='交接中'?'card_border5':''))))"-->
(item.status=='交检中'?'card_border4':(item.status=='交接中'?'card_border5':''))))" --> <p slot="title">
<p slot="title">{{item.mesCode}} {{item.mesCode}}
<state <state code="taskList.status" ref="state" class="fr" :value="item.status" type="text"></state>
code="taskList.status" <!-- <span >{{item.status}}</span> -->
ref="state" class="fr" </p>
:value="item.status" <p class="order_tit">{{item.productName}}</p>
type="text" <p>
></state> <Icon type="ios-pricetags" />
<!-- <span >{{item.status}}</span> --> {{item.taskName}}
</p> </p>
<p class="order_tit">{{item.productName}}</p> <p>{{item.beginTime}}~{{item.endTime}}</p>
<p><Icon type="ios-pricetags" />{{item.taskName}}</p> </Card>
<p>{{item.beginTime}}~{{item.endTime}}</p> <p>{{listTasks.length}} 个工单</p>
</Card>
<p>{{listTasks.length}} 个工单</p>
</div>
</div> </div>
</div>
</template> </template>
<script> <script>
import Api from "../../api"; import Api from "../../api";
export default { export default {
name:'orderlist', name: "orderlist",
data(){ data() {
return{ return {
gnFlag:0, gnFlag: 0,
listTasks:[], listTasks: [],
dataLength:0, dataLength: 0
} };
},
props: {
order: {
type: String,
default: '',
}
},
created() {
this.loadTree(-9);
},
methods: {
loadTree(value) {
let parmse = {
status: value,
isAsc: true
};
Api.getCardList(parmse).then(res => {
if (res.success) {
this.listTasks = res.result;
this.dataLength = res.result.length;
}
});
}, },
created() { gnFunto(number, type) {
this.loadTree(-9); this.gnFlag = number;
}, },
methods: { goPage(item) {
loadTree(value){ this.$router.push({
let parmse = { path: "/produce/execute",
status: value, query: {
isAsc: true id: item.id,
} orderId: item.orderId,
Api.getCardList(parmse).then(res=>{ executeId: item.executeId,
if(res.success){ headid: item.routingHeaderId,
this.listTasks = res.result dispatchStatus: item.status
this.dataLength = res.result.length }
} });
}) }
}, },
gnFunto(number,type){ watch: {
this.gnFlag = number order(v)
}, {
goPage(item){ //alert(v)
console.log(item) }
this.$Message.success("工单查询数据...") }
}, };
},
watch:{
},
}
</script> </script>
\ No newline at end of file
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</div> </div>
</div> </div>
<!-- 列表卡片主内容 --> <!-- 列表卡片主内容 -->
<orderlist ref="orderlist" /> <orderlist ref="orderlist" :order="inputId" />
</Drawer> </Drawer>
<!-- 功能区 --> <!-- 功能区 -->
<Drawer <Drawer
...@@ -56,8 +56,9 @@ export default { ...@@ -56,8 +56,9 @@ export default {
detail: null, detail: null,
row:{}, row:{},
odermodel: -9, odermodel: -9,
orderId: null, orderId: this.$route.query.id,
condition: [] condition: [],
inputId: null,
}; };
}, },
created() { created() {
...@@ -66,6 +67,7 @@ export default { ...@@ -66,6 +67,7 @@ export default {
row.orderId = this.$route.query.orderId; row.orderId = this.$route.query.orderId;
row.executeId = this.$route.query.executeId; row.executeId = this.$route.query.executeId;
this.row=row this.row=row
this.inputId=this.$route.query.id
this.detail = () => import("./starOrder/index"); this.detail = () => import("./starOrder/index");
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
...@@ -120,6 +122,14 @@ export default { ...@@ -120,6 +122,14 @@ export default {
} //测试数据 } //测试数据
} }
}, },
watch: {} watch: {
'$route.query.id'(v)
{
this.row.id = v
this.inputId=v
this.detail = () => import("./starOrder/index")
},
}
}; };
</script> </script>
<template> <template>
<div class> <div class>
<div class="star" v-if="!starmodal"> <div class="star" v-if="dispatchStatus==12">
<a class="start" @click="starFun"> <a class="start" @click="starFun">
<Icon type="md-play" />开工 <Icon type="md-play" />开工
</a> </a>
</div> </div>
<div class="star" v-else-if="starmodal"> <div class="star" v-else>
<div class="flex fc-b"> <div class="flex fc-b">
<Button class="button" size="large" type="primary"> <Button class="button" size="large" type="primary" @click="pauseFun" v-show="btnTextStatus">
<Icon type="ios-pause" />暂停 <Icon type="ios-pause" />
{{btnText}}
</Button> </Button>
<Button class="button" size="large" type="primary"> <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"> <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">
<Icon type="md-swap" />转序交接 <Icon type="md-swap" />转序交接
</Button> </Button>
</div> </div>
<div class="star_step"> <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" />
...@@ -50,7 +51,10 @@ ...@@ -50,7 +51,10 @@
<ul> <ul>
<li>产品名称:{{entity.productName}}</li> <li>产品名称:{{entity.productName}}</li>
<li>图号:{{entity.drawnNumber}}</li> <li>图号:{{entity.drawnNumber}}</li>
<li>状态:{{entity.status}}</li> <li>
状态:
<state code="plan.order.status" ref="state" :value="entity.status" type="text"></state>
</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>
...@@ -64,13 +68,14 @@ ...@@ -64,13 +68,14 @@
<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>工单状态: <state code="taskList.status" ref="state1" :value="dispatchStatus" type="text"></state></li>
</ul> </ul>
</div> </div>
<div class="img_box fl" style="background:#DDD"> <div class="img_box fl" style="background:#DDD">
<ViewerImg :images="images" /> <ViewerImg :images="images" />
</div> </div>
</div> </div>
<Modal v-model="ransferModal" :title="transferTitle" width="800" > <Modal v-model="ransferModal" :title="transferTitle" width="800">
<!-- <component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" footer-hide/> --> <!-- <component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" footer-hide/> -->
<p>转序交接</p> <p>转序交接</p>
</Modal> </Modal>
...@@ -90,9 +95,29 @@ export default { ...@@ -90,9 +95,29 @@ export default {
ransferModal: false, ransferModal: false,
transferTitle: "确认转序", transferTitle: "确认转序",
images: [], images: [],
iamges1: [
{
thumbnail: iconImg + "noPic_product.png",
source: iconImg + "noPic_product.png"
}
],
entity: {}, entity: {},
id: Number(this.$route.query.id), id: Number(this.$route.query.id),
eid: "" orderId: Number(this.$route.query.orderId),
dispatchStatus: Number(this.$route.query.dispatchStatus),
eid: "",
btnText:
Number(this.$route.query.dispatchStatus) == 14
? "暂停"
: Number(this.$route.query.dispatchStatus) == 5
? "继续"
: "",
btnTextStatus:
Number(this.$route.query.dispatchStatus) == 14
? true
: Number(this.$route.query.dispatchStatus) == 5
? true
: false
}; };
}, },
created() { created() {
...@@ -102,7 +127,7 @@ export default { ...@@ -102,7 +127,7 @@ export default {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
mounted() { mounted() {
this.load(this.id) this.load(this.id);
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
...@@ -112,12 +137,81 @@ export default { ...@@ -112,12 +137,81 @@ export default {
}, },
methods: { methods: {
starFun() { starFun() {
this.$Message.success("开工..."); //开工
let params = {
id: this.id,
orderid: this.orderId + ""
};
Api.entrystart(params)
.then(res => {
if (res.success) {
this.$Message.success("开工成功!");
this.dispatchStatus = 14;
this.textBtn();
} else {
this.$Message.error("开工失败!");
}
})
.catch(err => {
this.$Message.error("连接错误");
});
}, },
transferFn(){ pauseFun() {
this.ransferModal = true //暂停or继续
let params = {
id: this.id,
orderid: this.orderId + ""
};
if (this.btnText == "暂停") {
Api.entrypause(params)
.then(res => {
if (res.success) {
this.$Message.success("暂停成功!");
this.dispatchStatus = 5;
this.btnText = "继续";
this.textBtn();
} else {
this.$Message.error("暂停失败!");
}
})
.catch(err => {
this.$Message.error("连接错误");
});
} else if (this.btnText == "继续") {
Api.entrentrycontinuestart(params)
.then(res => {
if (res.success) {
this.$Message.success("继续成功!");
this.dispatchStatus = 14;
this.btnText = "暂停";
this.textBtn();
} else {
this.$Message.error("继续失败!");
}
})
.catch(err => {
this.$Message.error("连接错误");
});
}
},
textBtn() {
//控制第一个按钮的text及显示
if (this.dispatchStatus == 14) {
this.btnText = "暂停";
this.btnTextStatus = true;
} else if (this.dispatchStatus == 5) {
this.btnText = "继续";
this.btnTextStatus = true;
} else {
this.btnText = "";
this.btnTextStatus = false;
}
},
transferFn() {
this.ransferModal = true;
}, },
load(v) { load(v) {
//加载基础数据
let params = { let params = {
id: v id: v
}; };
...@@ -128,13 +222,13 @@ export default { ...@@ -128,13 +222,13 @@ export default {
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(res.result.productUrlList&& res.result.productUrlList.length>0) if (
{ res.result.productUrlList &&
this.eid = res.result.productUrlList; res.result.productUrlList.length > 0
} ) {
else this.eid = res.result.productUrlList;
{ } else {
this.eid=this.$u.guid(); this.eid = this.$u.guid();
} }
//查询上传到文件服务器上的文件 //查询上传到文件服务器上的文件
let parms = { let parms = {
...@@ -143,18 +237,24 @@ export default { ...@@ -143,18 +237,24 @@ export default {
name: "", name: "",
field: "" field: ""
}; };
this.$http.sysUser.getFile(parms).then(res1 => { this.$http.sysUser
if (res1.data != [] && res1.data.length > 0) { .getFile(parms)
this.images = []; .then(res1 => {
res1.data.forEach(datas => { if (res1.data != [] && res1.data.length > 0) {
let objImag = {}; this.images.splice(0);
objImag.thumbnail=this.downUrl+datas.downloadPath res1.data.forEach(datas => {
objImag.source=this.downUrl+datas.downloadPath let objImag = {};
this.images.push(objImag) objImag.thumbnail = this.downUrl + datas.downloadPath;
}); objImag.source = this.downUrl + datas.downloadPath;
} this.images.push(objImag);
}); });
} else {
this.images = this.iamges1;
}
})
.catch(err => {
this.images = this.iamges1;
});
} }
}); });
} }
...@@ -169,11 +269,36 @@ export default { ...@@ -169,11 +269,36 @@ export default {
}, },
show() { show() {
this.$viewer.show(); this.$viewer.show();
},
goPage(type,title)
{
this.$parent.changeTitle(type,title)
} }
}, },
watch:{ watch: {
images(v){ "$route.query.id"(v1) {
this.images=v this.images = [];
this.id = v1;
this.load(v1);
},
"$route.query.dispatchStatus"(v2) {
this.dispatchStatus = v2;
if (v2 == 14) {
this.btnText = "暂停";
this.btnTextStatus = true;
} else if (v2 == 5) {
this.btnText = "继续";
this.btnTextStatus = true;
} else {
this.btnText = "";
this.btnTextStatus = false;
}
},
"$route.query.orderId"(v3) {
this.orderId = v3;
},
images(v) {
this.images = v;
} }
} }
}; };
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<Button :icon="iconInfo" shape="circle" :title="titleInfo" @click="changeShwo"></Button> <Button :icon="iconInfo" shape="circle" :title="titleInfo" @click="changeShwo"></Button>
</template> </template>
<template slot="card" slot-scope="{row}"> <template slot="card" slot-scope="{row}">
<div class="body" @click="toExecute(row.id,row.orderId,row.executeId,row.routingHeaderId)"> <div class="body" @click="toExecute(row.id,row.orderId,row.executeId,row.routingHeaderId,row.status)">
<Row class="title-i"> <Row class="title-i">
<Col :span="10" class="order-code">{{row.productName}}</Col> <Col :span="10" class="order-code">{{row.productName}}</Col>
<Col :span="10" class="order-code">{{row.mesCode}}</Col> <Col :span="10" class="order-code">{{row.mesCode}}</Col>
...@@ -181,7 +181,8 @@ export default { ...@@ -181,7 +181,8 @@ export default {
params.row.id, params.row.id,
params.row.orderId, params.row.orderId,
params.row.executeId, params.row.executeId,
params.row.routingHeaderId params.row.routingHeaderId,
params.row.status
) )
} }
}, },
...@@ -211,11 +212,11 @@ export default { ...@@ -211,11 +212,11 @@ export default {
search() { search() {
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
}, },
toExecute(id, orderId, executeId,headid) { toExecute(id, orderId, executeId,headid,status) {
//跳转到对应操作页面 获取id:this.$route.query.id //跳转到对应操作页面 获取id:this.$route.query.id
this.$router.push({ this.$router.push({
path: "/produce/execute", path: "/produce/execute",
query: { id: id, orderId: orderId, executeId: executeId,headid:headid } query: { id: id, orderId: orderId, executeId: executeId,headid:headid,dispatchStatus:status }
}); });
}, },
tdStyle(val) { tdStyle(val) {
...@@ -349,8 +350,8 @@ export default { ...@@ -349,8 +350,8 @@ export default {
} }
.box { .box {
color: white; color: white;
width: 70px; width: 80px;
height: 20px; height: 30px;
overflow: hidden; overflow: hidden;
/* Rotate div */ /* Rotate div */
transform: rotate(33deg); transform: rotate(33deg);
......
...@@ -50,6 +50,9 @@ div::-webkit-scrollbar-corner { ...@@ -50,6 +50,9 @@ div::-webkit-scrollbar-corner {
.fc-a { .fc-a {
justify-content: space-around; justify-content: space-around;
} }
.fc-ev {
justify-content: space-evenly;
}
.fd { .fd {
flex-direction: column; flex-direction: column;
} }
...@@ -721,7 +724,7 @@ html [type=button] { ...@@ -721,7 +724,7 @@ html [type=button] {
} }
.waitTask { .waitTask {
/*flex 布局*/ /*flex 布局*/
display: flex!important; display: flex !important;
align-items: center; align-items: center;
width: 200px; width: 200px;
height: 100px; height: 100px;
...@@ -1028,7 +1031,7 @@ html [type=button] { ...@@ -1028,7 +1031,7 @@ html [type=button] {
} }
.menu_side { .menu_side {
background: #fff !important; background: #fff !important;
margin: 5px 0 0 0!important; margin: 5px 0 0 0 !important;
border: 1px solid #dcdee2 !important; border: 1px solid #dcdee2 !important;
} }
.show_menu { .show_menu {
...@@ -1061,3 +1064,6 @@ html [type=button] { ...@@ -1061,3 +1064,6 @@ html [type=button] {
.tohtml img { .tohtml img {
max-width: 95%; max-width: 95%;
} }
.gdShow {
box-shadow: 0px 0px 15px #333;
}
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