|
@@ -88,10 +88,6 @@
|
|
|
<div class="project-backGoodShow-title">商品反馈情况</div>
|
|
|
<div class="project-backGoodShow-backGood-table">
|
|
|
<template v-if="allList[index].tableData">
|
|
|
- <!-- allList[index].pageInfo.curr = 1;
|
|
|
- searchList(index);
|
|
|
-
|
|
|
- -->
|
|
|
<ex-table
|
|
|
v-loading="allList[index].loading"
|
|
|
:table="table"
|
|
@@ -170,18 +166,30 @@ export default {
|
|
|
// console.log(this.allList);
|
|
|
await this.searchList(this.index);
|
|
|
},
|
|
|
- next(){
|
|
|
- const{selection}=this.allList[this.index]
|
|
|
- if(selection.length===0){
|
|
|
+ async next() {
|
|
|
+ const { selection } = this.allList[this.index];
|
|
|
+ if (selection.length === 0) {
|
|
|
this.$message.warning("至少选择一个商品!");
|
|
|
- return
|
|
|
+ return;
|
|
|
}
|
|
|
- if(this.index+1!==this.allList.length){
|
|
|
- this.index++
|
|
|
- }else{
|
|
|
-
|
|
|
+ if (this.index + 1 !== this.allList.length) {
|
|
|
+ this.index++;
|
|
|
+ await this.searchList(this.index);
|
|
|
+ } else {
|
|
|
+ await this.$confirm("确定要提交?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(async () => {
|
|
|
+ this.$emit("selectEnd");
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ console.log("取消");
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
selection_change(e) {
|
|
|
const { list } = e;
|
|
|
this.allList[this.index].selection = JSON.parse(JSON.stringify(list));
|
|
@@ -257,17 +265,7 @@ export default {
|
|
|
const { code, data } = await asyncRequest.back_good_list(model);
|
|
|
if (code === 0) {
|
|
|
const { list, count } = data;
|
|
|
- this.allList[index].tableData = [{ num: 1 }];
|
|
|
- // list;
|
|
|
- // this.allList[index].tableData.map((v) => {
|
|
|
- // v.class_cat = "";
|
|
|
- // if (v.can && v.can.length > 0) {
|
|
|
- // v.can.forEach((x, i) => {
|
|
|
- // v.class_cat += i === 0 ? x.name : "/" + x.name;
|
|
|
- // });
|
|
|
- // }
|
|
|
- // return v;
|
|
|
- // });
|
|
|
+ this.allList[index].tableData = list;
|
|
|
this.allList[index].pageInfo.total = Number(count);
|
|
|
} else if (code >= 100 && code <= 104) {
|
|
|
await this.logout();
|