yangfeng
2023-10-25 1df9d898ab3c517cf3048628d3c12b7bf7c96af2
新建销售明细单优化
3个文件已修改
18 ■■■■ 已修改文件
src/views/sales/salesDetails/AddSalesDetailsDialog.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesReturn/AddSalesReturnDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -117,7 +117,7 @@
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="12">
              <!-- <el-col :span="12">
                <el-form-item label="销售子单" prop="subbill_name">
                  <div class="custom-name">
                    <el-autocomplete
@@ -148,7 +148,7 @@
                    </div>
                  </div>
                </el-form-item>
              </el-col>
              </el-col> -->
              <el-col :span="12">
                <el-form-item label="销售报价单" prop="quotation_number">
                  <div class="custom-name">
@@ -596,8 +596,8 @@
    saveClick(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          for (let i = 0; i < this.tableData.length; i++) {
            if (this.tableData[i].name.length === 0) {
          for (let i = 0; i < this.selProductData.length; i++) {
            if (this.selProductData[i].name.length === 0) {
              this.isNoProduct = true
              break
            } else {
@@ -834,6 +834,8 @@
        this.editConfig.infomation.sale_chance_name = ""
        this.editConfig.infomation.client_name = ""
        this.editConfig.infomation.subbill_name = ""
        this.editConfig.infomation.quotation_number = ""
        this.quotationId = 0
        this.clientId = 0
        this.saleChanceId = 0
        this.subbillId = 0
@@ -846,7 +848,11 @@
      } else if (value === "subbill") {
        this.editConfig.infomation.subbill_name = ""
        this.subbillId = 0
      } else if (value === "quotation") {
        this.editConfig.infomation.quotation_number = ""
        this.quotationId = 0
      }
      this.productTableList.tableData = []
    },
    // 添加附件
    addAnnexClick() {},
src/views/sales/salesDetails/index.vue
@@ -310,7 +310,8 @@
        currency: "人民币",
        sale_chance_name: "",
        subbill_name: "",
        client_name: this.addConfig?.client_name ?? ""
        client_name: this.addConfig?.client_name ?? "",
        quotation_number: ""
      }
    },
    // 编辑
src/views/sales/salesReturn/AddSalesReturnDialog.vue
@@ -538,6 +538,7 @@
        this.editConfig.infomation.salesDetailNumber = ""
        this.editConfig.infomation.client_name = ""
        this.clientId = 0
        this.productTableList.tableData = []
      } else if (value === "contract") {
        this.editConfig.infomation.salesDetailNumber = ""
        this.productTableList.tableData = []