Commit 955680d7 authored by renjintao's avatar renjintao

accessory

parent 54934631
......@@ -26,16 +26,23 @@
<p class="mt10 mb10">
<Button type="primary">出库</Button>
</p>
<Table
:columns="cols"
:data="datas"
:columns="colsOut"
:data="dataOut"
class="tableCommon"
border
highlight-row
@on-current-change="curChange"
:height="tableHeight-40"
></Table>
>
<template slot-scope="{ row, index }" slot="outSup">
<InputNumber
:max="row.totalCount-row.applicationNumber"
:min="0"
v-model="row.count"
/>
</template>
</Table>
</div>
</Split>
</div>
......@@ -94,6 +101,50 @@ export default {
],
datas: [],
tableHeight: "",
colsOut: [
{
key: "materialName",
title: this.l("materialName"),
align: "left",
},
{
key: "materialNumber",
title: this.l("materialNumber"),
align: "left",
},
{
key: "",
title: "产品合格证号",
align: "right",
},
{
key: "",
title: "库位",
align: "right",
},
{
key: "",
title: "入库时间",
align: "right",
},
{
key: "",
title: "入库人",
align: "right",
},
{
key: "",
title: "库存",
align: "right",
},
{
key: "",
title: "出库数",
align: "right",
slot: "outSup",
},
],
datasOut: [],
};
},
props: {
......@@ -152,7 +203,16 @@ export default {
},
curChange(curRow, oldRow) {
//点击物料行
alert(JSON.stringify(curRow));
//alert(JSON.stringify(curRow));
Api.supportmateriallistone({ materialId:curRow.materialId}).then((r) => {
if (r.success) {
let temData = [];
for (let i = 0; i < 10; i++) {
temData = temData.concat(r.result);
}
this.datasOut = temData;
}
});
},
l(key) {
key = "support_main" + "." + key;
......
......@@ -26,9 +26,12 @@ export default {
getitemlist(params) {//根据id获取单个配套
return Api.get(`${technologyUrl}supportmain/getitemlist`, params);
},
supportmateriallist(params) {//点击物料获取对应的库房信息
supportmateriallist(params) {//查询所有物料对应的库房信息
return Api.post(`${resourceUrl}/stock/supportmateriallist`, params);
},
supportmateriallistone(params) {//点击物料根据物料ID获取对应的库房信息
return Api.post(`${resourceUrl}/stock/supportmateriallistone`, params);
},
outmainCreate(params) {//批量出库
return Api.post(`${resourceUrl}/outmain/create`, params);
},
......
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