Commit c283def6 authored by renjintao's avatar renjintao

出库单span css zh api......

parent eb7b839d
...@@ -233,6 +233,12 @@ div::-webkit-scrollbar-corner { ...@@ -233,6 +233,12 @@ div::-webkit-scrollbar-corner {
.mb50 { .mb50 {
margin-bottom: 50px; margin-bottom: 50px;
} }
.mb60 {
margin-bottom: 60px;
}
.mb70 {
margin-bottom: 70px;
}
.ml0 { .ml0 {
margin-left: 0; margin-left: 0;
......
...@@ -1573,9 +1573,9 @@ export default { ...@@ -1573,9 +1573,9 @@ export default {
creationTime1: '入库时间', creationTime1: '入库时间',
creator1: '入库人', creator1: '入库人',
total1: '库存', total1: '库存',
count:'出库数', count: '出库数',
code:'物料序号', code: '物料序号',
nowTotal:'库存' nowTotal: '库存'
}, },
stock_item: { stock_item: {
creationTime: '创建时间', creationTime: '创建时间',
...@@ -1622,38 +1622,39 @@ export default { ...@@ -1622,38 +1622,39 @@ export default {
finishDate: '齐套时间', finishDate: '齐套时间',
orderCode: '订单编号', orderCode: '订单编号',
code: '申请单号', code: '申请单号',
materialName:'物料名称', materialName: '物料名称',
materialNumber:'物料编号', materialNumber: '物料编号',
remark:'备注', remark: '备注',
count1: '申请数量', count1: '申请数量',
outCount:'出库数', outCount: '出库数',
}, },
support_item:{ support_item: {
creationTime:'出库时间', creationTime: '出库时间',
creatorUserId:'出库人', creatorUserId: '出库人',
lastModificationTime:'更新时间', lastModificationTime: '更新时间',
lastModifierUserId:'更新人', lastModifierUserId: '更新人',
isDeleted:'删除人', isDeleted: '删除人',
deletionTime:'删除时间', deletionTime: '删除时间',
deleterUserId:'删除人', deleterUserId: '删除人',
supportMainId:'主表id', supportMainId: '主表id',
routingHeaderId:'工艺id', routingHeaderId: '工艺id',
routingDeatilId:'工序id', routingDeatilId: '工序id',
routingDetailName:'工序', routingDetailName: '工序',
routingDetailSeq:'工序号', routingDetailSeq: '工序号',
routingDetailNo:'工序号', routingDetailNo: '工序号',
count:'出库数', count: '出库数',
status:'状态', status: '状态',
materialId:'物料id', materialId: '物料id',
materialName:'物料名称', materialName: '物料名称',
nameMaterial:'物料名称', nameMaterial: '物料名称',
materialNumber:'物料编号', materialNumber: '物料编号',
needCount:'需要数量', needCount: '需要数量',
totalCount:'需要数量', totalCount: '需要数量',
outStockNumber:'出库数量', outStockNumber: '出库数量',
orderId:'', orderId: '',
remark:'备注', remark: '备注',
storeId: '库位id', storeId: '库位id',
storeTitle: '库位名称', storeTitle: '库位名称',
stockCode: '物料序号'
} }
} }
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
</p> </p>
<Split v-model="split" mode="vertical" @on-move-end="moveEnd"> <Split v-model="split" mode="vertical" @on-move-end="moveEnd">
<div slot="top" class="demo-split-pane" style="background:#fff;height:100%"> <div slot="top" class="demo-split-pane" style="background:#fff;height:100%">
<Card :padding="0">
<p slot="title">申请单物料列表</p>
<Table <Table
:columns="cols" :columns="cols"
:data="datas" :data="datas"
...@@ -21,11 +23,16 @@ ...@@ -21,11 +23,16 @@
@on-current-change="curChange" @on-current-change="curChange"
:height="tableHeight1" :height="tableHeight1"
></Table> ></Table>
</Card>
</div> </div>
<div slot="bottom" class="demo-split-pane" style="background:#fff;height:100%"> <div slot="bottom" class="demo-split-pane" style="background:#fff;height:100%">
<p class="mt10 mb10" v-show="showBottom"> <Card :padding="0" v-show="showBottom">
<Button type="primary" @click="getMetaiAll">出库</Button> <p slot="title">出库物料库房库位列表</p>
</p> <div slot="extra">
<Button type="primary" @click="getMetaiAll" shape="circle" >出库
<Icon type="md-arrow-dropright" />
</Button>
</div>
<Table <Table
:columns="colsOut" :columns="colsOut"
:data="datasOut" :data="datasOut"
...@@ -33,7 +40,6 @@ ...@@ -33,7 +40,6 @@
border border
highlight-row highlight-row
:height="tableHeight2-40" :height="tableHeight2-40"
v-show="showBottom"
> >
<template slot-scope="{ row, index }" slot="counts"> <template slot-scope="{ row, index }" slot="counts">
<InputNumber <InputNumber
...@@ -44,9 +50,10 @@ ...@@ -44,9 +50,10 @@
/> />
</template> </template>
</Table> </Table>
</Card>
</div> </div>
</Split> </Split>
<Modal v-model="ModalAccList" title="出库记录" width="1000" footer-hide> <Modal v-model="ModalAccList" title="出库记录" width="1180" footer-hide>
<DataGrid <DataGrid
:action="action" :action="action"
:columns="colsList" :columns="colsList"
...@@ -92,20 +99,23 @@ export default { ...@@ -92,20 +99,23 @@ export default {
key: "count", key: "count",
title: this.l("count1"), title: this.l("count1"),
align: "right", align: "right",
width:150, width: 150,
}, },
{ {
key: "outCount", key: "outCount",
title: "出库数", title: "出库数",
align: "right", align: "right",
width:150, width: 150,
render: (h, params) => { render: (h, params) => {
return h( return h(
"op", "op",
{ {
attrs: { attrs: {
oprate: "detail", oprate: "detail",
title: params.row.outCount&&params.row.outCount>0?"出库明细":"", title:
params.row.outCount && params.row.outCount > 0
? "出库明细"
: "",
}, },
style: { style: {
color: "blue", color: "blue",
...@@ -122,14 +132,11 @@ export default { ...@@ -122,14 +132,11 @@ export default {
key: "status", key: "status",
title: "状态", title: "状态",
align: "center", align: "center",
width:150, width: 150,
render: (h, params) => { render: (h, params) => {
return h( return h(
"op", "span",
{ {
attrs: {
oprate: "detail",
},
style: { style: {
color: this.setName(this.statuList1, params.row.status).color, color: this.setName(this.statuList1, params.row.status).color,
}, },
...@@ -178,7 +185,7 @@ export default { ...@@ -178,7 +185,7 @@ export default {
key: "creationTime", key: "creationTime",
title: this.l1("creationTime1"), title: this.l1("creationTime1"),
align: "center", align: "center",
width:220, width: 220,
}, },
{ {
key: "creator", key: "creator",
...@@ -189,14 +196,14 @@ export default { ...@@ -189,14 +196,14 @@ export default {
key: "nowTotal", key: "nowTotal",
title: this.l1("nowTotal"), title: this.l1("nowTotal"),
align: "right", align: "right",
width:150, width: 150,
}, },
{ {
key: "count", key: "count",
title: this.l1("count"), title: this.l1("count"),
align: "right", align: "right",
slot: "counts", slot: "counts",
width:150, width: 150,
}, },
], ],
datasOut: [], datasOut: [],
...@@ -208,6 +215,11 @@ export default { ...@@ -208,6 +215,11 @@ export default {
title: this.l2("materialName"), title: this.l2("materialName"),
align: "left", align: "left",
}, },
{
key: "stockCode",
title: this.l2("stockCode"),
align: "left",
},
{ {
key: "materialNumber", key: "materialNumber",
title: this.l2("materialNumber"), title: this.l2("materialNumber"),
...@@ -223,7 +235,7 @@ export default { ...@@ -223,7 +235,7 @@ export default {
key: "creationTime", key: "creationTime",
title: this.l2("creationTime"), title: this.l2("creationTime"),
align: "center", align: "center",
width:220, width: 220,
}, },
{ {
key: "creatorUserId", key: "creatorUserId",
...@@ -234,7 +246,7 @@ export default { ...@@ -234,7 +246,7 @@ export default {
key: "count", key: "count",
title: this.l2("count"), title: this.l2("count"),
align: "right", align: "right",
width:150, width: 100,
}, },
], ],
}; };
...@@ -244,7 +256,7 @@ export default { ...@@ -244,7 +256,7 @@ export default {
row: Object, row: Object,
}, },
mounted() { mounted() {
this.splitHeight = window.innerHeight - 150; this.splitHeight = window.innerHeight - 260;
this.tableHeight1 = this.splitHeight * this.split; this.tableHeight1 = this.splitHeight * this.split;
this.tableHeight2 = this.splitHeight * (1 - this.split); this.tableHeight2 = this.splitHeight * (1 - this.split);
window.onresize = () => { window.onresize = () => {
...@@ -350,7 +362,7 @@ export default { ...@@ -350,7 +362,7 @@ export default {
temItems.forEach((el) => { temItems.forEach((el) => {
if (el.count > 0) { if (el.count > 0) {
let temObj = { let temObj = {
stockItemId:el.id, stockItemId: el.id,
count: el.count, count: el.count,
storeId: el.storeId, storeId: el.storeId,
storeTitle: el.storeTitle, storeTitle: el.storeTitle,
...@@ -360,6 +372,7 @@ export default { ...@@ -360,6 +372,7 @@ export default {
materialNumber: this.tempOut.materialNumber, materialNumber: this.tempOut.materialNumber,
orderId: this.row.orderId, orderId: this.row.orderId,
supportItemId: this.tempOut.id, supportItemId: this.tempOut.id,
stockCode: el.code,
}; };
total = total + el.count; total = total + el.count;
temArray.push(temObj); temArray.push(temObj);
...@@ -368,6 +381,10 @@ export default { ...@@ -368,6 +381,10 @@ export default {
let surplus = let surplus =
Number(this.tempOut.count) - Number(this.tempOut.count) -
Number(this.tempOut.outCount ? this.tempOut.outCount : 0); Number(this.tempOut.outCount ? this.tempOut.outCount : 0);
if (total == 0) {
this.$Message.error("请输入出库数");
return;
}
if (total <= surplus) { if (total <= surplus) {
let parms = { let parms = {
main: { main: {
...@@ -392,8 +409,19 @@ export default { ...@@ -392,8 +409,19 @@ export default {
} }
}, },
moveEnd() { moveEnd() {
this.tableHeight1 = this.splitHeight * this.split; //alert(this.split.toFixed(2))
this.tableHeight2 = this.splitHeight * (1 - this.split);
if (this.split.toFixed(2) <= 0.3) {
this.tableHeight1 = this.splitHeight * this.split.toFixed(2) - 30;
} else if (this.split.toFixed(2) <= 0.4) {
this.tableHeight1 = this.splitHeight * this.split.toFixed(2) - 15;
} else if (this.split.toFixed(2) <= 0.5) {
this.tableHeight1 = this.splitHeight * this.split.toFixed(2) - 5;
} else {
this.tableHeight1 = this.splitHeight * this.split.toFixed(2) + 30;
}
//this.tableHeight1 = this.splitHeight * (this.split.toFixed(2));
this.tableHeight2 = this.splitHeight * (1 - this.split.toFixed(2));
}, },
inputChange(row, index) { inputChange(row, index) {
//输入数量 //输入数量
......
...@@ -42,4 +42,8 @@ export default { ...@@ -42,4 +42,8 @@ export default {
listbysupportitem(params) {//查询所有或单个表单出库信息 listbysupportitem(params) {//查询所有或单个表单出库信息
return Api.post(`${resourceUrl}/outitem/listbysupportitem`, params); return Api.post(`${resourceUrl}/outitem/listbysupportitem`, params);
}, },
deleteitem(params) {//撤销出库单
return Api.post(`${resourceUrl}/outmain/deleteitem`, params);
},
} }
...@@ -75,11 +75,8 @@ export default { ...@@ -75,11 +75,8 @@ export default {
width:150, width:150,
render: (h, params) => { render: (h, params) => {
return h( return h(
"op", "span",
{ {
attrs: {
oprate: "detail",
},
style: { style: {
color: this.setName(this.statuList,params.row.status).color, color: this.setName(this.statuList,params.row.status).color,
}, },
...@@ -88,7 +85,6 @@ export default { ...@@ -88,7 +85,6 @@ export default {
); );
}, },
}, },
{ key: "status1", title: this.l("status1"), align: "center",width:150, },
{ {
title: "操作", title: "操作",
key: "action", key: "action",
...@@ -108,7 +104,7 @@ export default { ...@@ -108,7 +104,7 @@ export default {
"op", "op",
{ {
attrs: { oprate: "edit" }, attrs: { oprate: "edit" },
on: { click: () => this.getOutBound(params.row) },
}, },
"出库单" "出库单"
), ),
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
状态: 状态:
<state code="outstore.status" :value="row.status+''" type="text"></state> <state code="outstore.status" :value="row.status+''" type="text"></state>
</span> </span>
</p>
<Card :padding="0">
<p slot="title">申请单物料列表</p>
<div slot="extra">
<Button <Button
type="primary" type="primary"
shape="circle" shape="circle"
...@@ -17,7 +21,7 @@ ...@@ -17,7 +21,7 @@
size="small" size="small"
@click="openMore" @click="openMore"
>{{butTxt}}</Button> >{{butTxt}}</Button>
</p> </div>
<Table <Table
:columns="cols" :columns="cols"
:data="datas" :data="datas"
...@@ -28,8 +32,10 @@ ...@@ -28,8 +32,10 @@
@on-current-change="curChange" @on-current-change="curChange"
:height="tableHeight1" :height="tableHeight1"
></Table> ></Table>
</Card>
<div class="mt20 mb50"> <div class="mt20 mb60">
<Card :padding="0">
<p slot="title">出库物料库房库位列表</p></p>
<Table <Table
:columns="colsList" :columns="colsList"
:data="dataList" :data="dataList"
...@@ -38,6 +44,7 @@ ...@@ -38,6 +44,7 @@
border border
@on-selection-change="selectChange" @on-selection-change="selectChange"
></Table> ></Table>
</Card>
</div> </div>
<div> <div>
<FooterToolbar v-show="footerToolbar" class="ftball"> <FooterToolbar v-show="footerToolbar" class="ftball">
...@@ -46,6 +53,9 @@ ...@@ -46,6 +53,9 @@
<Button @click="cancelBatch">取消</Button> <Button @click="cancelBatch">取消</Button>
</FooterToolbar> </FooterToolbar>
</div> </div>
<Modal v-model="msgInfo" :title="title" @on-ok="applicationOk">
<p>确定撤回出库物料?</p>
</Modal>
</div> </div>
</template> </template>
<script> <script>
...@@ -88,11 +98,8 @@ export default { ...@@ -88,11 +98,8 @@ export default {
width: 150, width: 150,
render: (h, params) => { render: (h, params) => {
return h( return h(
"op", "span",
{ {
attrs: {
oprate: "detail",
},
style: { style: {
color: this.setName(this.statuList1, params.row.status).color, color: this.setName(this.statuList1, params.row.status).color,
}, },
...@@ -121,6 +128,11 @@ export default { ...@@ -121,6 +128,11 @@ export default {
title: this.l2("materialName"), title: this.l2("materialName"),
align: "left", align: "left",
}, },
{
key: "stockCode",
title: this.l2("stockCode"),
align: "left",
},
{ {
key: "materialNumber", key: "materialNumber",
title: this.l2("materialNumber"), title: this.l2("materialNumber"),
...@@ -185,6 +197,9 @@ export default { ...@@ -185,6 +197,9 @@ export default {
iconLabel: "md-arrow-dropdown", iconLabel: "md-arrow-dropdown",
tempList: [], tempList: [],
tempID: null, tempID: null,
msgInfo: false,
title: "",
outBoldArr: [],
}; };
}, },
props: { props: {
...@@ -255,7 +270,7 @@ export default { ...@@ -255,7 +270,7 @@ export default {
curChange(curRow, oldRow) { curChange(curRow, oldRow) {
//当前物料过滤 //当前物料过滤
//点击物料行 //点击物料行
this.getList(curRow.id) this.getList(curRow.id);
}, },
getList(id) { getList(id) {
let parm = { supportItemId: id }; let parm = { supportItemId: id };
...@@ -302,12 +317,29 @@ export default { ...@@ -302,12 +317,29 @@ export default {
}, },
application(type, row) { application(type, row) {
//撤销出库(批量type 1 ,单挑type 2) //撤销出库(批量type 1 ,单挑type 2)
this.outBoldArr = [];
let outArr = [];
if (type == 1) { if (type == 1) {
alert(JSON.stringify(this.tempOut)); //alert(JSON.stringify(this.tempOut));
this.tempOut.forEach((el) => {
outArr.push(el.id);
});
} else { } else {
alert(JSON.stringify(this.row)); //alert(JSON.stringify(row));
outArr.push(row.id);
} }
this.title = "提示信息";
this.msgInfo = true;
this.outBoldArr = outArr;
},
applicationOk() {
Api.deleteitem(this.outBoldArr).then((res) => {
if (res.success) {
this.load(this.eid); this.load(this.eid);
}
});
this.msgInfo = false;
}, },
l(key) { l(key) {
key = "support_main" + "." + key; key = "support_main" + "." + key;
......
...@@ -181,6 +181,12 @@ div::-webkit-scrollbar-corner { ...@@ -181,6 +181,12 @@ div::-webkit-scrollbar-corner {
.mb50 { .mb50 {
margin-bottom: 50px; margin-bottom: 50px;
} }
.mb60 {
margin-bottom: 60px;
}
.mb70 {
margin-bottom: 70px;
}
.ml0 { .ml0 {
margin-left: 0; margin-left: 0;
} }
......
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