|  |  |  | 
|---|
|  |  |  | amount: 130, | 
|---|
|  |  |  | sourceType: this.editCommonConfig.sourceType, // 源单类型 1销售明细2服务合同3销售发票 | 
|---|
|  |  |  | sourceId: this.editCommonConfig.infomation.id, | 
|---|
|  |  |  | principalId:0, | 
|---|
|  |  |  | principalId: '', | 
|---|
|  |  |  | planAmount: 0, // 计划金额 | 
|---|
|  |  |  | firstDate: this.getCurrentDate(1), | 
|---|
|  |  |  | collectionType: 1, | 
|---|
|  |  |  | 
|---|
|  |  |  | created() { | 
|---|
|  |  |  | console.log(this.editCommonConfig) | 
|---|
|  |  |  | this.setData() | 
|---|
|  |  |  | this.setTableForm() | 
|---|
|  |  |  | this.getCommonData() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | 
|---|
|  |  |  | collectionType: this.collectionType, | 
|---|
|  |  |  | moneyType: "人民币", | 
|---|
|  |  |  | amountTotal: this.editCommonConfig.infomation.amountTotal, | 
|---|
|  |  |  | principalId:0 | 
|---|
|  |  |  | principalId:'' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | getCommonData() { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$set(this.editConfig.infomation, "principalId", item.id) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | this.principalId=this.editConfig.infomation.principalId | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.setTableForm() | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .catch((err) => { | 
|---|
|  |  |  | console.log(err) | 
|---|
|  |  |  | 
|---|
|  |  |  | id: 0, | 
|---|
|  |  |  | moneyType: "人民币", | 
|---|
|  |  |  | percent: ratio, | 
|---|
|  |  |  | principalId: this.principalId, | 
|---|
|  |  |  | principalId: Number(this.principalId), | 
|---|
|  |  |  | remark: "", | 
|---|
|  |  |  | sourceId: this.sourceId, | 
|---|
|  |  |  | sourceType: this.sourceType, | 
|---|