收款计划的收款计划负责人默认选中登录人的逻辑,之前是name修改为id,切初始的时候循环添加到列表中
2个文件已修改
8 ■■■■■ 已修改文件
src/views/other/payment/collectionPlan/AddCollectionPlan.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/AddSalesDetailsDialog.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/other/payment/collectionPlan/AddCollectionPlan.vue
@@ -209,7 +209,6 @@
  created() {
    console.log(this.editCommonConfig)
    this.setData()
    this.setTableForm()
    this.getCommonData()
  },
  methods: {
@@ -253,7 +252,9 @@
                this.$set(this.editConfig.infomation, "principalId", item.id)
              }
            })
            this.principalId=this.editConfig.infomation.principalId
          }
          this.setTableForm()
        })
        .catch((err) => {
          console.log(err)
src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -675,8 +675,9 @@
            this.$message.error("请选择产品")
          } else {
            for (let i = 0; i < this.tableData.length; i++) {
              if (this.tableData[i].cost||Number(this.tableData[i].cost)==0) {
                let reg = /^\+?[1-9]\d*$/;
              if (this.tableData[i].cost) {
                let reg =
            /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;
                if(!reg.test(this.tableData[i].cost)){
                  this.$message.error("成本单价需要填写大于0的2位小数!")
                  return true;