yangfeng
2023-09-06 91d30cd45cb0fc4c06492db8a6736d280badb44b
src/views/other/payment/saleInvoice/addSaleInvoice.vue
@@ -403,7 +403,7 @@
        show: true,
        total: true,
        sumProp: ["Amount", "Unit", "total"],
        mergeNumber: 3
        mergeNumber: 2
      },
      editSelectClientConfig: {
        editVisible: false,
@@ -481,6 +481,17 @@
      this.$refs[formName].validate((valid) => {
        if (valid) {
          console.log(this.editConfig.infomation)
          for (let i = 0; i < this.tableData.length; i++) {
            if (this.tableData[i].name.length === 0) {
              this.isNoProduct = true
              break
            } else {
              this.isNoProduct = false
            }
          }
          if (this.isNoProduct) {
            this.$message.error("产品名称不能为空")
          } else {
          const params = this.saveParams()
          console.log(params)
          if (this.editConfig.title === "新建") {
@@ -502,6 +513,7 @@
            //   }
            // })
          }
          }
        } else {
          console.log("error submit")
          return false