| | |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | console.log(this.addConfig) |
| | | if (!this.isDetail) { |
| | | this.serviceContractId = 0 |
| | | } else { |
| | |
| | | serviceContractId: this.serviceContractId |
| | | }) |
| | | .then((res) => { |
| | | if (res.code === 200) { |
| | | if (res.data.list && res.data.list.length > 0) { |
| | | const list = res.data.list.map((item) => { |
| | | if (res.data.code === 200) { |
| | | if (res.data.data.data && res.data.data.data.length > 0) { |
| | | const list = res.data.data.data.map((item) => { |
| | | return { |
| | | ...item |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | | this.pagerOptions.totalCount = res.data.count |
| | | this.pagerOptions.totalCount = res.data.data.count |
| | | } else { |
| | | this.tableList.tableInfomation = [] |
| | | } |
| | |
| | | // 新建 |
| | | addBtnClick() { |
| | | if (this.tableList.tableInfomation && this.tableList.tableInfomation.length > 0) { |
| | | this.$message.success("该订单已创建收款计划") |
| | | this.$confirm("该订单已创建收款计划", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |