|  |  | 
 |  |  |         <div class="collection-view"> | 
 |  |  |           <div class="label">收款计划类型</div> | 
 |  |  |           <el-select v-model="editConfig.infomation.collectionType" size="mini"> | 
 |  |  |             <el-option label="计划收款日期" value="1"></el-option> | 
 |  |  |             <el-option label="项目状态" value="2"></el-option> | 
 |  |  |             <el-option label="计划收款日期" :value="1"></el-option> | 
 |  |  |             <el-option label="项目状态" :value="2"></el-option> | 
 |  |  |           </el-select> | 
 |  |  |         </div> | 
 |  |  |         <div class="collection-view"> | 
 |  |  | 
 |  |  |         </div> | 
 |  |  |         <div class="collection-view"> | 
 |  |  |           <div class="label">金额</div> | 
 |  |  |           <div>{{ editConfig.infomation.amount }}</div> | 
 |  |  |           <div>{{ editConfig.infomation.amountTotal }}</div> | 
 |  |  |         </div> | 
 |  |  |         <div class="collection-view"> | 
 |  |  |           <div class="label">未计划金额</div> | 
 |  |  |           <div>{{ editConfig.infomation.amount }}</div> | 
 |  |  |           <div>{{ editConfig.infomation.amountTotal }}</div> | 
 |  |  |         </div> | 
 |  |  |         <div class="collection-view"> | 
 |  |  |           <div class="label">收款计划负责人</div> | 
 |  |  |           <div class="label"><span style="color: #f56c6c">*</span>收款计划负责人</div> | 
 |  |  |           <el-select | 
 |  |  |             v-model="editConfig.infomation.principalId" | 
 |  |  |             placeholder="请选择" | 
 |  |  | 
 |  |  |         mergeNumber: 7 | 
 |  |  |       }, | 
 |  |  |       tableData: [], | 
 |  |  |       productId: 1, | 
 |  |  |       addProductArr: [], | 
 |  |  |       memberOptions: [], | 
 |  |  |       allTerms: 3, | 
 |  |  | 
 |  |  |       sourceId: this.editCommonConfig.infomation.id, | 
 |  |  |       principalId: 0, | 
 |  |  |       planAmount: 0, // 计划金额 | 
 |  |  |       firstDate: this.getCurrentDate(1) | 
 |  |  |       firstDate: this.getCurrentDate(1), | 
 |  |  |       collectionType: 1, | 
 |  |  |       tableInfomation: [] | 
 |  |  |     } | 
 |  |  |   }, | 
 |  |  |   created() { | 
 |  |  |     console.log(this.editCommonConfig.sourceType) | 
 |  |  |     console.log(this.editCommonConfig) | 
 |  |  |     this.setData() | 
 |  |  |     this.setTableForm() | 
 |  |  |     this.getCommonData() | 
 |  |  | 
 |  |  |   methods: { | 
 |  |  |     // 设置初始值 | 
 |  |  |     setData() { | 
 |  |  |       this.amount = | 
 |  |  |         typeof this.editCommonConfig.infomation.amountTotal == "string" | 
 |  |  |           ? parseInt(this.editCommonConfig.infomation.amountTotal) | 
 |  |  |           : this.editCommonConfig.infomation.amountTotal | 
 |  |  |       this.editConfig.infomation = { | 
 |  |  |         collectionType: "1", | 
 |  |  |         collectionType: this.collectionType, | 
 |  |  |         moneyType: "人民币", | 
 |  |  |         amount: this.amount.toFixed(2) | 
 |  |  |         amountTotal: this.editCommonConfig.infomation.amountTotal | 
 |  |  |       } | 
 |  |  |     }, | 
 |  |  |     getCommonData() { | 
 |  |  | 
 |  |  |     }, | 
 |  |  |     handleClose() { | 
 |  |  |       this.editConfig.visible = false | 
 |  |  |       this.$parent.getData() | 
 |  |  |     }, | 
 |  |  |     setTableForm() { | 
 |  |  |       this.setTableInfomation(this.firstDate) | 
 |  |  |       this.tableData = { | 
 |  |  |         tableInfomation: [ | 
 |  |  |           { | 
 |  |  |             amount: this.amount, | 
 |  |  |             amountReceivable: this.amount * 0.3, | 
 |  |  |             amountReceived: 0, | 
 |  |  |             amountTotal: 0, | 
 |  |  |             collectionDate: this.getCurrentDate(1), | 
 |  |  |             collectionType: 0, | 
 |  |  |             fileId: 0, | 
 |  |  |             id: 0, | 
 |  |  |             moneyType: "人民币", | 
 |  |  |             percent: 30, | 
 |  |  |             principalId: this.principalId, | 
 |  |  |             remark: "", | 
 |  |  |             sourceId: this.sourceId, | 
 |  |  |             sourceType: this.sourceType, | 
 |  |  |             status: 1, | 
 |  |  |             term: 1 | 
 |  |  |           }, | 
 |  |  |           { | 
 |  |  |             amount: this.amount, | 
 |  |  |             amountReceivable: this.amount * 0.5, | 
 |  |  |             amountReceived: 0, | 
 |  |  |             amountTotal: 0, | 
 |  |  |             collectionDate: this.getCurrentDate(2), | 
 |  |  |             collectionType: 0, | 
 |  |  |             fileId: 0, | 
 |  |  |             id: 0, | 
 |  |  |             moneyType: "人民币", | 
 |  |  |             percent: 50, | 
 |  |  |             principalId: this.principalId, | 
 |  |  |             remark: "", | 
 |  |  |             sourceId: this.sourceId, | 
 |  |  |             sourceType: this.sourceType, | 
 |  |  |             status: 1, | 
 |  |  |             term: 2 | 
 |  |  |           }, | 
 |  |  |           { | 
 |  |  |             amount: this.amount, | 
 |  |  |             amountReceivable: this.amount * 0.2, | 
 |  |  |             amountReceived: 0, | 
 |  |  |             amountTotal: 0, | 
 |  |  |             collectionDate: this.getCurrentDate(3), | 
 |  |  |             collectionType: 0, | 
 |  |  |             fileId: 0, | 
 |  |  |             id: 0, | 
 |  |  |             moneyType: "人民币", | 
 |  |  |             percent: 20, | 
 |  |  |             principalId: this.principalId, | 
 |  |  |             remark: "", | 
 |  |  |             sourceId: this.sourceId, | 
 |  |  |             sourceType: this.sourceType, | 
 |  |  |             status: 1, | 
 |  |  |             term: 3 | 
 |  |  |           } | 
 |  |  |         ], | 
 |  |  |         tableInfomation: this.tableInfomation, | 
 |  |  |         tableColumn: [ | 
 |  |  |           { label: "操作", prop: "operate", width: 60 }, | 
 |  |  |           { label: "期次", prop: "term", inputNumber: true, width: 90 }, | 
 |  |  | 
 |  |  |           { label: "备注", prop: "remark", input: true } | 
 |  |  |         ] | 
 |  |  |       } | 
 |  |  |     }, | 
 |  |  |     setTableInfomation(date) { | 
 |  |  |       console.log(this.sourceId) | 
 |  |  |       this.tableInfomation = [ | 
 |  |  |         { | 
 |  |  |           amount: this.amount, | 
 |  |  |           amountReceivable: this.amount * 0.3, | 
 |  |  |           amountReceived: 0, | 
 |  |  |           amountTotal: this.amount, | 
 |  |  |           collectionDate: this.setDate(date, 0), | 
 |  |  |           collectionType: this.editConfig.infomation.collectionType, | 
 |  |  |           fileId: 0, | 
 |  |  |           id: 0, | 
 |  |  |           moneyType: "人民币", | 
 |  |  |           percent: 30, | 
 |  |  |           principalId: this.principalId, | 
 |  |  |           remark: "", | 
 |  |  |           sourceId: this.sourceId, | 
 |  |  |           sourceType: this.sourceType, | 
 |  |  |           status: 1, | 
 |  |  |           term: 1 | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           amount: this.amount, | 
 |  |  |           amountReceivable: this.amount * 0.5, | 
 |  |  |           amountReceived: 0, | 
 |  |  |           amountTotal: this.amount, | 
 |  |  |           collectionDate: this.setDate(date, 1), | 
 |  |  |           collectionType: this.editConfig.infomation.collectionType, | 
 |  |  |           fileId: 0, | 
 |  |  |           id: 0, | 
 |  |  |           moneyType: "人民币", | 
 |  |  |           percent: 50, | 
 |  |  |           principalId: this.principalId, | 
 |  |  |           remark: "", | 
 |  |  |           sourceId: this.sourceId, | 
 |  |  |           sourceType: this.sourceType, | 
 |  |  |           status: 1, | 
 |  |  |           term: 2 | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           amount: this.amount, | 
 |  |  |           amountReceivable: this.amount * 0.2, | 
 |  |  |           amountReceived: 0, | 
 |  |  |           amountTotal: this.amount, | 
 |  |  |           collectionDate: this.setDate(date, 2), | 
 |  |  |           collectionType: this.editConfig.infomation.collectionType, | 
 |  |  |           fileId: 0, | 
 |  |  |           id: 0, | 
 |  |  |           moneyType: "人民币", | 
 |  |  |           percent: 20, | 
 |  |  |           principalId: this.principalId, | 
 |  |  |           remark: "", | 
 |  |  |           sourceId: this.sourceId, | 
 |  |  |           sourceType: this.sourceType, | 
 |  |  |           status: 1, | 
 |  |  |           term: 3 | 
 |  |  |         } | 
 |  |  |       ] | 
 |  |  |     }, | 
 |  |  |     // 重算 | 
 |  |  |     recalculateClick() { | 
 |  |  | 
 |  |  |             amount: this.amount, | 
 |  |  |             amountReceivable: this.amount, | 
 |  |  |             amountReceived: 0, | 
 |  |  |             amountTotal: 0, | 
 |  |  |             amountTotal: this.amount, | 
 |  |  |             collectionDate: this.setDate(this.firstDate, 0), | 
 |  |  |             collectionType: 0, | 
 |  |  |             collectionType: this.editConfig.infomation.collectionType, | 
 |  |  |             fileId: 0, | 
 |  |  |             id: 0, | 
 |  |  |             moneyType: "人民币", | 
 |  |  | 
 |  |  |             amount: this.amount, | 
 |  |  |             amountReceivable: this.amount * 0.5, | 
 |  |  |             amountReceived: 0, | 
 |  |  |             amountTotal: 0, | 
 |  |  |             amountTotal: this.amount, | 
 |  |  |             collectionDate: this.setDate(this.firstDate, 0), | 
 |  |  |             collectionType: 0, | 
 |  |  |             collectionType: this.editConfig.infomation.collectionType, | 
 |  |  |             fileId: 0, | 
 |  |  |             id: 0, | 
 |  |  |             moneyType: "人民币", | 
 |  |  | 
 |  |  |             amount: this.amount, | 
 |  |  |             amountReceivable: this.amount * 0.5, | 
 |  |  |             amountReceived: 0, | 
 |  |  |             amountTotal: 0, | 
 |  |  |             amountTotal: this.amount, | 
 |  |  |             collectionDate: this.setDate(this.firstDate, 1), | 
 |  |  |             collectionType: 0, | 
 |  |  |             collectionType: this.editConfig.infomation.collectionType, | 
 |  |  |             fileId: 0, | 
 |  |  |             id: 0, | 
 |  |  |             moneyType: "人民币", | 
 |  |  | 
 |  |  |           } | 
 |  |  |         ] | 
 |  |  |       } else if (this.allTerms === 3) { | 
 |  |  |         this.tableData.tableInfomation = [ | 
 |  |  |           { | 
 |  |  |             amount: this.amount, | 
 |  |  |             amountReceivable: this.amount * 0.3, | 
 |  |  |             amountReceived: 0, | 
 |  |  |             amountTotal: 0, | 
 |  |  |             collectionDate: this.setDate(this.firstDate, 0), | 
 |  |  |             collectionType: 0, | 
 |  |  |             fileId: 0, | 
 |  |  |             id: 0, | 
 |  |  |             moneyType: "人民币", | 
 |  |  |             percent: 30, | 
 |  |  |             principalId: this.principalId, | 
 |  |  |             remark: "", | 
 |  |  |             sourceId: this.sourceId, | 
 |  |  |             sourceType: this.sourceType, | 
 |  |  |             status: 1, | 
 |  |  |             term: 1 | 
 |  |  |           }, | 
 |  |  |           { | 
 |  |  |             amount: this.amount, | 
 |  |  |             amountReceivable: this.amount * 0.5, | 
 |  |  |             amountReceived: 0, | 
 |  |  |             amountTotal: 0, | 
 |  |  |             collectionDate: this.setDate(this.firstDate, 1), | 
 |  |  |             collectionType: 0, | 
 |  |  |             fileId: 0, | 
 |  |  |             id: 0, | 
 |  |  |             moneyType: "人民币", | 
 |  |  |             percent: 50, | 
 |  |  |             principalId: this.principalId, | 
 |  |  |             remark: "", | 
 |  |  |             sourceId: this.sourceId, | 
 |  |  |             sourceType: this.sourceType, | 
 |  |  |             status: 1, | 
 |  |  |             term: 2 | 
 |  |  |           }, | 
 |  |  |           { | 
 |  |  |             amount: this.amount, | 
 |  |  |             amountReceivable: this.amount * 0.2, | 
 |  |  |             amountReceived: 0, | 
 |  |  |             amountTotal: 0, | 
 |  |  |             collectionDate: this.setDate(this.firstDate, 2), | 
 |  |  |             collectionType: 0, | 
 |  |  |             fileId: 0, | 
 |  |  |             id: 0, | 
 |  |  |             moneyType: "人民币", | 
 |  |  |             percent: 20, | 
 |  |  |             principalId: this.principalId, | 
 |  |  |             remark: "", | 
 |  |  |             sourceId: this.sourceId, | 
 |  |  |             sourceType: this.sourceType, | 
 |  |  |             status: 1, | 
 |  |  |             term: 3 | 
 |  |  |           } | 
 |  |  |         ] | 
 |  |  |         this.setTableInfomation(this.firstDate) | 
 |  |  |         this.tableData.tableInfomation = this.tableInfomation | 
 |  |  |       } | 
 |  |  |     }, | 
 |  |  |     delClick(row) { | 
 |  |  | 
 |  |  |     }, | 
 |  |  |     principalClick(val) { | 
 |  |  |       this.principalId = val | 
 |  |  |       this.setTableInfomation(this.firstDate) | 
 |  |  |       this.tableData.tableInfomation = this.tableInfomation | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  | } |