必填只能编辑数量,非必填编辑销售单价,成本单价,数量+成本单价不填写可以通过校验填写则需要校验大于0
2个文件已修改
11 ■■■■ 已修改文件
src/components/makepager/CommonFormTableView.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/other/payment/collectionPlan/AddCollectionPlan.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/CommonFormTableView.vue
@@ -1,7 +1,6 @@
<template>
  <div class="page-view">
    <el-form ref="form" :model="tableList" :show-message="false" label-position="right">
      {{ tableList.tableData }}
      <el-table
        ref="fromTable"
        :data="tableList.tableData"
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,
@@ -238,7 +238,7 @@
        collectionType: this.collectionType,
        moneyType: "人民币",
        amountTotal: this.editCommonConfig.infomation.amountTotal,
        principalId:this.getCookie('username')
        principalId:0
      }
    },
    getCommonData() {
@@ -247,6 +247,12 @@
          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)
              }
            })
          }
        })
        .catch((err) => {