Commit a132a115 authored by 仇晓婷's avatar 仇晓婷

制造资源ok

parent 27158adc
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
.catch((err) => { .catch((err) => {
this.disabled = false; this.disabled = false;
this.$Message.error("保存失败"); this.$Message.error("保存失败");
console.warn(err); // console.warn(err);
}); });
} }
}); });
......
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
.catch((err) => { .catch((err) => {
this.disabled = false; this.disabled = false;
this.$Message.error("保存失败"); this.$Message.error("保存失败");
console.warn(err); // console.warn(err);
}); });
} }
}); });
......
...@@ -327,7 +327,7 @@ export default { ...@@ -327,7 +327,7 @@ export default {
computed: {}, computed: {},
methods: { methods: {
checkData(items) { checkData(items) {
console.warn("items", items); // console.warn("items", items);
return items.map((u) => { return items.map((u) => {
u._disabled = u.numberAvailable <= 0; u._disabled = u.numberAvailable <= 0;
u._checked = false; u._checked = false;
...@@ -407,8 +407,6 @@ export default { ...@@ -407,8 +407,6 @@ export default {
this.$store.commit("setCart", this.cartList); this.$store.commit("setCart", this.cartList);
this.$store.commit("setCartCount", this.cartListCount); this.$store.commit("setCartCount", this.cartListCount);
} else { } else {
console.log(this.$store.state.count);
console.log(this.$store.state.cart);
this.cartListCount = 0; this.cartListCount = 0;
this.cartList = []; this.cartList = [];
this.$store.commit("setCart", this.cartList); this.$store.commit("setCart", this.cartList);
...@@ -428,8 +426,8 @@ export default { ...@@ -428,8 +426,8 @@ export default {
} }
}, },
lendingRecord() { lendingRecord() {
window.open("/resource/resource/record", "_blank"); // window.open("/resource/resource/record", "_blank");
// this.$router.push("/resource/resource/record"); this.$router.push("/resource/resource/record");
}, },
ok() { ok() {
this.$refs.grid.load(); this.$refs.grid.load();
...@@ -457,15 +455,7 @@ export default { ...@@ -457,15 +455,7 @@ export default {
this.detail = () => import("./add"); this.detail = () => import("./add");
this.modal = true; this.modal = true;
}, },
// view(row) {
// this.curId = row.id;
// this.storeId = row.storeId;
// this.mCode = row.materialCode;
// this.title = "详情";
// this.detail = () => import("./detail");
// this.fscreeen = true;
// this.modal = true;
// },
remove(id) { remove(id) {
Api.delete(id).then((r) => { Api.delete(id).then((r) => {
if (r.success) { if (r.success) {
...@@ -494,7 +484,7 @@ export default { ...@@ -494,7 +484,7 @@ export default {
this.showMenu = true; this.showMenu = true;
}, },
productSearch(item, ids, rootName) { productSearch(item, ids, rootName) {
console.log(item); // console.log(item);
this.curId = item.id; this.curId = item.id;
this.storeTitle = item.title; this.storeTitle = item.title;
this.rootName = rootName.join(" / "); this.rootName = rootName.join(" / ");
......
...@@ -26,17 +26,21 @@ export default { ...@@ -26,17 +26,21 @@ export default {
}); });
}, },
}, },
{
title: this.l("creatorUserId"),
key: "customer",
},
{
title: "编号",
key: "code",
},
{ {
title: this.l("count"), title: this.l("count"),
key: "count", key: "count",
align: "right",
}, },
{ {
title: this.l("numberAvailable"), title: this.l("numberAvailable"),
key: "numberAvailable", key: "numberAvailable",
align: "right",
}, },
{ {
title: this.l("creationTime"), title: this.l("creationTime"),
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
> >
<template slot-scope="{ row, index }" slot="count"> <template slot-scope="{ row, index }" slot="count">
<InputNumber <InputNumber
:max="row.count" :max="row.count1"
:min="1" :min="1"
v-model="row.count" v-model="row.count"
@on-change="inputOrderCat(row,index)" @on-change="inputOrderCat(row,index)"
...@@ -169,6 +169,9 @@ export default { ...@@ -169,6 +169,9 @@ export default {
easySearch() { easySearch() {
this.get(this.search.name); this.get(this.search.name);
}, },
inputOrderCat(row, index) {
this.dataList[index].count = row.count;
},
}, },
watch: {}, watch: {},
}; };
......
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