Commit fca87e43 authored by renjintao's avatar renjintao

outbound 控制

parent c283def6
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
<p slot="title">申请单物料列表</p> <p slot="title">申请单物料列表</p>
<div slot="extra"> <div slot="extra">
<Button <Button
type="primary" type="primary"
shape="circle" shape="circle"
:icon="iconLabel" :icon="iconLabel"
class="fr" class="fr"
size="small" size="small"
@click="openMore" @click="openMore"
>{{butTxt}}</Button> >{{butTxt}}</Button>
</div> </div>
<Table <Table
:columns="cols" :columns="cols"
...@@ -34,17 +34,17 @@ ...@@ -34,17 +34,17 @@
></Table> ></Table>
</Card> </Card>
<div class="mt20 mb60"> <div class="mt20 mb60">
<Card :padding="0"> <Card :padding="0">
<p slot="title">出库物料库房库位列表</p></p> <p slot="title">出库物料库房库位列表</p>
<Table <Table
:columns="colsList" :columns="colsList"
:data="dataList" :data="dataList"
class="tableCommon" class="tableCommon"
ref="gridTable1" ref="gridTable1"
border border
@on-selection-change="selectChange" @on-selection-change="selectChange"
></Table> ></Table>
</Card> </Card>
</div> </div>
<div> <div>
<FooterToolbar v-show="footerToolbar" class="ftball"> <FooterToolbar v-show="footerToolbar" class="ftball">
...@@ -200,6 +200,8 @@ export default { ...@@ -200,6 +200,8 @@ export default {
msgInfo: false, msgInfo: false,
title: "", title: "",
outBoldArr: [], outBoldArr: [],
orderId: 0,
curRowId: 0,
}; };
}, },
props: { props: {
...@@ -235,7 +237,13 @@ export default { ...@@ -235,7 +237,13 @@ export default {
//this.datas = r.result.children; //this.datas = r.result.children;
this.tempList = r.result.children; this.tempList = r.result.children;
this.datas = this.tempList.slice(0, 1); this.datas = this.tempList.slice(0, 1);
this.tableHeight1 = "96";
this.butTxt = "更多";
this.iconLabel = "md-arrow-dropdown";
let parm = { orderId: r.result.orderId }; let parm = { orderId: r.result.orderId };
this.orderId = r.result.orderId;
this.curRowId = 0;
Api.listbysupportitem(parm).then((res) => { Api.listbysupportitem(parm).then((res) => {
if (res.success) { if (res.success) {
this.dataList = res.result; this.dataList = res.result;
...@@ -270,6 +278,7 @@ export default { ...@@ -270,6 +278,7 @@ export default {
curChange(curRow, oldRow) { curChange(curRow, oldRow) {
//当前物料过滤 //当前物料过滤
//点击物料行 //点击物料行
this.curRowId = curRow.id;
this.getList(curRow.id); this.getList(curRow.id);
}, },
getList(id) { getList(id) {
...@@ -336,7 +345,11 @@ export default { ...@@ -336,7 +345,11 @@ export default {
applicationOk() { applicationOk() {
Api.deleteitem(this.outBoldArr).then((res) => { Api.deleteitem(this.outBoldArr).then((res) => {
if (res.success) { if (res.success) {
this.load(this.eid); if (this.curRowId != 0) {
this.getList(this.curRowId);
} else {
this.load(this.eid);
}
} }
}); });
this.msgInfo = false; this.msgInfo = false;
......
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