|
@@ -12,7 +12,6 @@
|
|
|
<el-checkbox v-for="item in statusList" :label="item.value" :key="item.value">{{ item.label
|
|
|
}}</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
|
- <!-- <avue-form v-model="query.checkbox" :option="checkboxOption"></avue-form> -->
|
|
|
</template>
|
|
|
<template slot="menuLeft">
|
|
|
<el-button type="primary" size="small" icon="el-icon-plus" @click="addButton">新 增
|
|
@@ -33,9 +32,9 @@
|
|
|
<el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
|
|
|
:disabled="row.orderStatus != '录入'">删 除</el-button>
|
|
|
</template>
|
|
|
- <template slot="contractNo" slot-scope="{ row }">
|
|
|
+ <!-- <template slot="contractNo" slot-scope="{ row }">
|
|
|
<span style="color: #1e9fff" @click="rowEdit(row)">{{ row.contractNo }}</span>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
<detailsPage v-if="!isShow" :detailData="detailData" @goBack="goBack"></detailsPage>
|
|
@@ -62,7 +61,7 @@
|
|
|
import { getList, remove, copyAgent, applyForPaymentList, generate } from "@/api/tradeAgency/tradeAgency";
|
|
|
import detailsPage from "./detailsPage";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
-
|
|
|
+import _ from "lodash";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -604,20 +603,20 @@ export default {
|
|
|
addButton() {
|
|
|
this.isShow = false
|
|
|
this.detailData = {
|
|
|
- new:true
|
|
|
+ new: true
|
|
|
};
|
|
|
},
|
|
|
copyButton() {
|
|
|
this.isShow = false
|
|
|
this.detailData = {
|
|
|
- copyId: this.selectionList[0].id
|
|
|
+ copyId: this.selectionList[0].itemId
|
|
|
};
|
|
|
},
|
|
|
allClick(name) {
|
|
|
if (name == '生成申请付款') {
|
|
|
let ids = []
|
|
|
this.selectionList.forEach(item => {
|
|
|
- ids.push(item.id)
|
|
|
+ ids.push(item.itemId)
|
|
|
})
|
|
|
this.$confirm('是否生成申请付款?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
@@ -634,7 +633,7 @@ export default {
|
|
|
if (name == '生成申请收款') {
|
|
|
let ids = []
|
|
|
this.selectionList.forEach(item => {
|
|
|
- ids.push(item.id)
|
|
|
+ ids.push(item.itemId)
|
|
|
})
|
|
|
this.$confirm('是否生成申请收款?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
@@ -651,7 +650,7 @@ export default {
|
|
|
},
|
|
|
rowEdit(row) {
|
|
|
this.detailData = {
|
|
|
- id: row.id
|
|
|
+ id: row.itemId
|
|
|
};
|
|
|
this.isShow = false
|
|
|
},
|
|
@@ -662,7 +661,7 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
- remove({ ids: row.id }).then(res => {
|
|
|
+ remove({ ids: row.itemId }).then(res => {
|
|
|
this.onLoad(this.page, this.query);
|
|
|
this.$message.success("成功删除");
|
|
|
})
|
|
@@ -702,9 +701,7 @@ export default {
|
|
|
this.loading = true;
|
|
|
getList(page.currentPage, page.pageSize, obj).then(res => {
|
|
|
this.data = res.data.data.records;
|
|
|
- console.log(res.data.data.records)
|
|
|
this.page.total = res.data.data.total;
|
|
|
- console.log(this.page.total)
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.crud.doLayout();
|
|
|
this.$refs.crud.dicInit();
|