Commit caf8ca7b authored by 周远喜's avatar 周远喜

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

parents ced42538 666c80fc
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<FooterToolbar v-if="batch" v-show="footerToolbar"> <FooterToolbar v-if="batch" v-show="footerToolbar">
<div class="tip">已选{{selectItems.length}}</div> <div class="tip">已选{{selectItems.length}}</div>
<slot name="batch"></slot> <slot name="batch"></slot>
<Button @click="footerToolbar=false">取消</Button> <Button @click="cancelBatch">取消</Button>
</FooterToolbar> </FooterToolbar>
</div> </div>
</template> </template>
...@@ -296,8 +296,8 @@ export default { ...@@ -296,8 +296,8 @@ export default {
} }
if (this.action) { if (this.action) {
//条件初始化处理。 //条件初始化处理。
if(this.initsearch){ if (this.initsearch) {
this.initsearch(this.search) this.initsearch(this.search);
} }
this.$api.post(this.action, this.search).then(r => { this.$api.post(this.action, this.search).then(r => {
if (this.format) { if (this.format) {
...@@ -484,6 +484,11 @@ export default { ...@@ -484,6 +484,11 @@ export default {
}, },
selectAll(status) { selectAll(status) {
this.$refs.table.selectAll(status); this.$refs.table.selectAll(status);
},
//批量取消
cancelBatch() {
this.footerToolbar = false;
this.$refs.table.selectAll(false);
} }
}, },
computed: { computed: {
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<Col :span="4"> <Col :span="4">
<div class="sanjiao" :style="tdStyle(row.status)"></div> <div class="sanjiao" :style="tdStyle(row.status)"></div>
<div class="box"> <div class="box">
<div class="text" style="font-size:4px;font-weight:normal"> <div class="text">
<state <state
code="taskList.status" code="taskList.status"
ref="state" ref="state"
...@@ -217,7 +217,15 @@ export default { ...@@ -217,7 +217,15 @@ export default {
search() { search() {
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
}, },
toExecute(id, orderId, executeId, headid, routingDetailId,quantity, status) { toExecute(
id,
orderId,
executeId,
headid,
routingDetailId,
quantity,
status
) {
//跳转到对应操作页面 获取id:this.$route.query.id //跳转到对应操作页面 获取id:this.$route.query.id
this.$router.push({ this.$router.push({
path: "/produce/execute", path: "/produce/execute",
...@@ -315,11 +323,11 @@ export default { ...@@ -315,11 +323,11 @@ export default {
height: calc(100vh - 110px); height: calc(100vh - 110px);
.body { .body {
background: white; background: white;
border-radius: 4px; border-radius: 4px 0 4px 4px;
border: #cacbd0 solid 1px; border: #cacbd0 solid 1px;
margin-bottom: 30px; margin-bottom: 30px;
.title-i { .title-i {
padding: 0 8px; padding: 0 0 0 8px;
height: 38px; height: 38px;
line-height: 38px; line-height: 38px;
color: #2680eb; color: #2680eb;
...@@ -352,32 +360,30 @@ export default { ...@@ -352,32 +360,30 @@ export default {
box-shadow: 0 0 10px #888888; box-shadow: 0 0 10px #888888;
} }
} }
.sanjiao { .sanjiao {
margin: 38px;
height: 0px; height: 0px;
width: 0px; width: 0;
border-left: solid 60px transparent; border-left: solid 50px transparent;
position: absolute; float: right;
right: -46px; margin-right:-1px;
top: -38px;
} }
.box { .box {
color: white; color: white;
width: 80px; float: right;
height: 30px; margin-top: -42px;
overflow: hidden;
/* Rotate div */ /* Rotate div */
transform: rotate(33deg); transform: rotate(37deg);
-ms-transform: rotate(33deg); /* Internet Explorer */ -ms-transform: rotate(37deg); /* Internet Explorer */
-moz-transform: rotate(33deg); /* Firefox */ -moz-transform: rotate(37deg); /* Firefox */
-webkit-transform: rotate(33deg); /* Safari 和 Chrome */ -webkit-transform: rotate(37deg); /* Safari 和 Chrome */
-o-transform: rotate(33deg); /* Opera */ -o-transform: rotate(37deg); /* Opera */
.text { .text {
position: absolute; font-size: 8px;
left: 32px; font-weight: normal;
top: -13px;
} }
} }
.rowBottom .ivu-col-span-10 { .rowBottom .ivu-col-span-10 {
height: 24px; height: 24px;
padding-right: 10px; padding-right: 10px;
......
<template> <template>
<Layout class="full"> <Layout class="full">
<Sider hide-trigger :style="{background: '#fff'}" class="menu" width="240" style=" flex:0;"> <Sider hide-trigger :style="{background: '#fff'}" class="menu" width="240" style=" flex:0;">
<StoreHouseLeft @storeIds="storeIds" :type='1'></StoreHouseLeft> <StoreHouseLeft @storeIds="storeIds" :type='2'></StoreHouseLeft>
</Sider> </Sider>
<Content class="content"> <Content class="content">
<DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :height="tdHeight"> <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :height="tdHeight">
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
:show.sync="showStoreHouseTree" :show.sync="showStoreHouseTree"
:value.sync="conditions.storeId.value" :value.sync="conditions.storeId.value"
:text.sync="conditions.storeTitle.value" :text.sync="conditions.storeTitle.value"
:type='2'
/> />
</div> </div>
</template> </template>
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
:show.sync="showStoreHouseTree" :show.sync="showStoreHouseTree"
:value.sync="conditions.storeId.value" :value.sync="conditions.storeId.value"
:text.sync="conditions.storeTitle.value" :text.sync="conditions.storeTitle.value"
:type='1'
/> />
</div> </div>
</template> </template>
......
<template> <template>
<Layout class="full"> <Layout class="full">
<Sider hide-trigger :style="{background: '#fff'}" class="menu" width="240" style=" flex:0;"> <Sider hide-trigger :style="{background: '#fff'}" class="menu" width="240" style=" flex:0;">
<StoreHouseLeft @storeIds="storeIds" c></StoreHouseLeft> <StoreHouseLeft @storeIds="storeIds" :type='3'></StoreHouseLeft>
</Sider> </Sider>
<Content class="content"> <Content class="content">
<DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :height="tdHeight"> <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :height="tdHeight">
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
:show.sync="showStoreHouseTree" :show.sync="showStoreHouseTree"
:value.sync="conditions.storeId.value" :value.sync="conditions.storeId.value"
:text.sync="conditions.storeTitle.value" :text.sync="conditions.storeTitle.value"
:type='3'
/> />
</div> </div>
</template> </template>
......
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