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

制造资源ok

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