Commit 59b0c802 authored by 周远喜's avatar 周远喜

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

parents 95125198 e226e14c
...@@ -401,7 +401,7 @@ export default { ...@@ -401,7 +401,7 @@ export default {
if (index > -1) { if (index > -1) {
this.cartListCount -= value; this.cartListCount -= value;
this.cartList.splice(index, 1); this.cartList.splice(index, 1);
if (value == 0) { if (value == 0 || this.cartList.length == 0) {
this.cartListCount = 0; this.cartListCount = 0;
} }
this.$store.commit("setCart", this.cartList); this.$store.commit("setCart", this.cartList);
......
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
dataList: [], dataList: [],
curId: 0, curId: 0,
modal: false, modal: false,
title: "详情", title: "归还",
columns: [ columns: [
{ {
type: "index", type: "index",
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
class: "details", class: "details",
on: { click: () => this.details(params.row.id) }, on: { click: () => this.details(params.row.id) },
}, },
"查看" params.row.status == 0 ? "归还" : ""
), ),
]); ]);
}, },
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
libraryTube: this.$store.state.userInfo.userName, //库管员 libraryTube: this.$store.state.userInfo.userName, //库管员
}; };
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
props: {}, props: {},
......
...@@ -97,6 +97,14 @@ export default { ...@@ -97,6 +97,14 @@ export default {
key: "storeTitle", key: "storeTitle",
width: 100, width: 100,
}, },
{
title: "借出数量",
key: "lentCount",
},
{
title: "已归还数量",
key: "lentCount2",
},
{ {
title: this.l("count"), title: this.l("count"),
key: "count", key: "count",
...@@ -114,6 +122,7 @@ export default { ...@@ -114,6 +122,7 @@ export default {
libraryTube: this.$store.state.userInfo.userName, //库管员 libraryTube: this.$store.state.userInfo.userName, //库管员
}; };
}, },
props: { props: {
eid: Number, eid: Number,
}, },
...@@ -135,6 +144,7 @@ export default { ...@@ -135,6 +144,7 @@ export default {
let objList = data; let objList = data;
objList.count1 = parseFloat(data.count); objList.count1 = parseFloat(data.count);
objList.count = parseFloat(data.count); objList.count = parseFloat(data.count);
objList.lentCount2 = parseFloat(data.lentCount - data.count);
objList.state = "3"; objList.state = "3";
items.push(objList); items.push(objList);
}); });
......
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