haoxuan
2023-12-22 f86d07ccc55c800eaefc6b1cff0f242d71f6841b
src/views/other/payment/collectionPlan/AddCollectionPlan.vue
@@ -198,7 +198,7 @@
      amount: 130,
      sourceType: this.editCommonConfig.sourceType, // 源单类型 1销售明细2服务合同3销售发票
      sourceId: this.editCommonConfig.infomation.id,
      principalId: this.getCookie('username')||0,
      principalId:0,
      planAmount: 0, // 计划金额
      firstDate: this.getCurrentDate(1),
      collectionType: 1,
@@ -209,7 +209,6 @@
  created() {
    console.log(this.editCommonConfig)
    this.setData()
    this.setTableForm()
    this.getCommonData()
  },
  methods: {
@@ -238,7 +237,7 @@
        collectionType: this.collectionType,
        moneyType: "人民币",
        amountTotal: this.editCommonConfig.infomation.amountTotal,
        principalId:this.getCookie('username')
        principalId:0
      }
    },
    getCommonData() {
@@ -247,7 +246,15 @@
          console.log(res)
          if (res.code === 200) {
            this.memberOptions = res.data.member
            let username =this.getCookie('username')
            this.memberOptions.map((item) => {
              if (item.username == username) {
                this.$set(this.editConfig.infomation, "principalId", item.id)
              }
            })
            this.principalId=this.editConfig.infomation.principalId
          }
          this.setTableForm()
        })
        .catch((err) => {
          console.log(err)