|
@@ -1180,8 +1180,17 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- getGoods(1, 500).then(res => {
|
|
|
- this.goodsoptions = res.data.data.records;
|
|
|
+ getGoods(1, 10).then(res => {
|
|
|
+ if (res.data.data.total > 0) {
|
|
|
+ this.goodsoptions = res.data.data.records;
|
|
|
+ if (Math.ceil(res.data.data.total / 10) > 1) {
|
|
|
+ for (let i = 2; i <= Math.ceil(res.data.data.total / 10); i++) {
|
|
|
+ getGoods(i, 10).then(e => {
|
|
|
+ this.goodsoptions = this.goodsoptions.concat(e.data.data.records);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
getAllBoxs().then(res => {
|
|
|
this.allBoxs = res.data.data;
|
|
@@ -2238,8 +2247,8 @@ export default {
|
|
|
);
|
|
|
if (inSave) {
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.crud.doLayout()
|
|
|
- })
|
|
|
+ this.$refs.crud.doLayout();
|
|
|
+ });
|
|
|
this.$message.success("保存成功");
|
|
|
//关闭窗口
|
|
|
this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
@@ -2253,8 +2262,8 @@ export default {
|
|
|
);
|
|
|
if (inSave) {
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.crud.doLayout()
|
|
|
- })
|
|
|
+ this.$refs.crud.doLayout();
|
|
|
+ });
|
|
|
this.$message.success("重置成功");
|
|
|
this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
}
|
|
@@ -2291,8 +2300,8 @@ export default {
|
|
|
);
|
|
|
if (inSave) {
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.goodsCrud.doLayout()
|
|
|
- })
|
|
|
+ this.$refs.goodsCrud.doLayout();
|
|
|
+ });
|
|
|
this.$message.success("保存成功");
|
|
|
//关闭窗口
|
|
|
this.$refs.goodsCrud.$refs.dialogColumn.columnBox = false;
|
|
@@ -2306,8 +2315,8 @@ export default {
|
|
|
);
|
|
|
if (inSave) {
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.goodsCrud.doLayout()
|
|
|
- })
|
|
|
+ this.$refs.goodsCrud.doLayout();
|
|
|
+ });
|
|
|
this.$message.success("重置成功");
|
|
|
//关闭窗口
|
|
|
setTimeout(() => {
|