|
@@ -131,7 +131,7 @@
|
|
|
</ex-table>
|
|
|
</template>
|
|
|
</div>
|
|
|
- <div class="project-backGoodShow-title" v-if="total!==0">
|
|
|
+ <div class="project-backGoodShow-title" v-if="total !== 0">
|
|
|
{{ status === "5" || status === "6" ? "已选定方案" : "选择方案" }}
|
|
|
|
|
|
<el-button-group
|
|
@@ -268,7 +268,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import {change_project_plan,back_good_list,get_project_plan} from "@/apis";
|
|
|
+import { change_project_plan, back_good_list, get_project_plan } from "@/apis";
|
|
|
import columnsForm from "./columnsForm";
|
|
|
export default {
|
|
|
name: "changeBackGood",
|
|
@@ -361,6 +361,7 @@ export default {
|
|
|
planNos: [planNo],
|
|
|
status: "1",
|
|
|
};
|
|
|
+ model.full = this.$route.path;
|
|
|
const res = await change_project_plan(model);
|
|
|
if (res && res.code === 0) {
|
|
|
this.loading = false;
|
|
@@ -378,32 +379,32 @@ export default {
|
|
|
console.log("取消");
|
|
|
});
|
|
|
|
|
|
- const { code, data } = await back_good_list(model);
|
|
|
- if (code === 0) {
|
|
|
- const { list, count } = data;
|
|
|
- this.tableData = list;
|
|
|
- this.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;
|
|
|
- });
|
|
|
- }
|
|
|
- v.model = "";
|
|
|
- if (v.specinfo && v.specinfo.length > 0) {
|
|
|
- v.specinfo.forEach((x, i) => {
|
|
|
- v.model += `${i !== 0 ? "--" : ""}${x.spec_name}[${
|
|
|
- x.spec_value_name
|
|
|
- }]`;
|
|
|
- });
|
|
|
- }
|
|
|
- return v;
|
|
|
- });
|
|
|
- this.pageInfo.total = Number(count);
|
|
|
- } else {
|
|
|
- this.tableData = [];
|
|
|
- this.pageInfo.total = 0;
|
|
|
- }
|
|
|
+ // const { code, data } = await back_good_list(model);
|
|
|
+ // if (code === 0) {
|
|
|
+ // const { list, count } = data;
|
|
|
+ // this.tableData = list;
|
|
|
+ // this.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;
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // v.model = "";
|
|
|
+ // if (v.specinfo && v.specinfo.length > 0) {
|
|
|
+ // v.specinfo.forEach((x, i) => {
|
|
|
+ // v.model += `${i !== 0 ? "--" : ""}${x.spec_name}[${
|
|
|
+ // x.spec_value_name
|
|
|
+ // }]`;
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // return v;
|
|
|
+ // });
|
|
|
+ // this.pageInfo.total = Number(count);
|
|
|
+ // } else {
|
|
|
+ // this.tableData = [];
|
|
|
+ // this.pageInfo.total = 0;
|
|
|
+ // }
|
|
|
// change_project_plan
|
|
|
},
|
|
|
//初始化整个组件
|
|
@@ -475,9 +476,8 @@ export default {
|
|
|
projectNo: this.projectNo,
|
|
|
type: this.status === "5" || this.status === "6" ? "1" : "",
|
|
|
};
|
|
|
- const { code, data, message } = await get_project_plan(
|
|
|
- model
|
|
|
- );
|
|
|
+ model.full = this.$route.path;
|
|
|
+ const { code, data, message } = await get_project_plan(model);
|
|
|
if (code === 0) {
|
|
|
if (data.length > 0) {
|
|
|
this.allPlanList = JSON.parse(JSON.stringify(data));
|
|
@@ -493,7 +493,7 @@ export default {
|
|
|
sale_total: "0",
|
|
|
feedback: [],
|
|
|
};
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
this.$message.warning(message);
|
|
|
}
|
|
|
},
|