haoxuan
2023-10-23 19c517afd6080773ba263fde73f9e2ae682bebd1
销售机会 添加,编辑参数修改
16个文件已修改
25 ■■■■ 已修改文件
src/views/client/client/AddClientManageDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/contacts/AddContactsDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/followupRecords/AddFollowupRecordsDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/salesLead/AddSalesLeadDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/contractManage/AddContractManageDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/masterOrder/AddMasterOrderDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/quotation/AddQuotationDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/refundForm/AddRefundFormDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/AddSalesDetailsDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesReturn/AddSalesReturnDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/subOrder/AddSubOrderDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/service/clientServiceOrder/mixin/codeMixin.js 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/service/serviceContract/AddServiceContractDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/service/serviceFollowup/AddServiceFollowupDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/client/AddClientManageDialog.vue
@@ -747,7 +747,6 @@
        sales_leads_id: data.sales_leads_id || 0,
        contact_id: data.contact_id || 0,
        codeStandID:data.ID,
        codeRule:this.codeRule,
      }
      return params
    },
src/views/client/contacts/AddContactsDialog.vue
@@ -454,7 +454,6 @@
        region_id: data.region_id || 0,
        wechat: data.wechat || "",
        // codeStandID: data.ID,
        // codeRule: this.codeRule
      }
      return params
    },
src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -635,7 +635,6 @@
          sales_leads_id: this.saleLeadId || 0,
          topic: data.topic || "",
          codeStandID: data.ID,
          codeRule: this.codeRule,
        },
      };
      let params = {};
src/views/client/salesLead/AddSalesLeadDialog.vue
@@ -384,7 +384,6 @@
            sales_sources_id: this.editConfig.infomation.sales_sources_id || 0,
            detail_address: this.editConfig.infomation.detail_address || "",
            codeStandID:this.editConfig.infomation.ID,
            codeRule:this.codeRule,
          }
          console.log(params)
          if (this.editConfig.title === "新建") {
src/views/sales/contractManage/AddContractManageDialog.vue
@@ -390,7 +390,6 @@
        quotation_id: this.quotationId || 0,
        status_id: data.statusId || 0,
        codeStandID: data.ID,
        codeRule: this.codeRule
      }
      return params
    },
src/views/sales/masterOrder/AddMasterOrderDialog.vue
@@ -318,7 +318,6 @@
        number: data.number || "",
        start_time: data.start_time || "",
        codeStandID: data.ID,
        codeRule: this.codeRule
      }
      return params
    },
src/views/sales/quotation/AddQuotationDialog.vue
@@ -521,7 +521,6 @@
        validity_date: data.validity_date || "",
        products: this.tableData,
        codeStandID: data.ID,
        codeRule: this.codeRule,
        client_id: this.clientId || 0
      }
      return params
src/views/sales/refundForm/AddRefundFormDialog.vue
@@ -510,7 +510,6 @@
          refundDate: data.refundDate || "",
          sourceId: this.sourceId || 0,
          sourceType: 1,
          codeRule: this.codeRule
        }
      }
      return params
src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -646,7 +646,6 @@
        logisticCompany: data.logisticCompany || "",
        logisticCost: data.logisticCost || 0,
        logisticNumber: data.logisticNumber || "",
        codeRule: this.codeRule
      }
      let params = {}
      if (this.editConfig.title === "新建") {
src/views/sales/salesOpportunity/AddSalesOpportunityDialog.vue
@@ -795,7 +795,6 @@
        detail_address: data.detail_address || "",
        codeStandID: data.ID,
        codeRule: this.codeRule
      }
      return params
    },
src/views/sales/salesReturn/AddSalesReturnDialog.vue
@@ -444,7 +444,6 @@
          salesReturnStatusId: data.salesReturnStatusId || 0,
          sourceId: this.SalesDetailsId,
          sourceType: 1,
          codeRule: this.codeRule
        }
      }
      return params
src/views/sales/subOrder/AddSubOrderDialog.vue
@@ -391,7 +391,6 @@
        number: data.number || "",
        product: this.tableData,
        codeStandID: data.ID,
        codeRule: this.codeRule
      }
      return params
    },
src/views/service/clientServiceOrder/AddCientServiceOrderDialog.vue
@@ -897,7 +897,6 @@
        subject: data.subject || "",
        timeSpentId: data.timeSpentId || 0,
        codeStandID: data.ID,
        codeRule: this.codeRule
      }
      return params
    },
src/views/service/clientServiceOrder/mixin/codeMixin.js
@@ -18,7 +18,6 @@
      objCode: { name: "", page: 0, pageSize: 0, type: "客户服务编码", codeStandID: "" },
      codeRule: {},
      codeLength: 0,
      autoCodeObj: {}
    }
  },
@@ -73,7 +72,6 @@
                  //     ? this.editConfig.infomation.serviceNumber
                  //     : autoRule.PrefixValue
                  // )
                  return true
                }
              }
            }
@@ -81,6 +79,7 @@
          } else {
            this.$message.error(res.data.msg ? res.data.msg : "获取编码规范失败,请重试!")
          }
          this.getAutoCodeValue()
        } else {
          this.codeList(this.editConfig.infomation.serviceNumber)
        }
@@ -89,10 +88,11 @@
      }
    },
    async getAutoCodeValue() {
      const res = await getAutoCode({ codeType: this.objCode.type, autoIncr: this.autoIncr });
      if(Object.keys(this.codeRule).length>0){
        const res = await getAutoCode(this.codeRule);
      if (res.code == 200) {
        this.autoCodeObj = res.data;
        this.$set(this.editConfig.infomation, 'number', this.autoCodeObj.id)
          this.$set(this.editConfig.infomation, 'serviceNumber', res.data?res.data:'')
        }
      }
    },
    codeList(val) {
src/views/service/serviceContract/AddServiceContractDialog.vue
@@ -661,7 +661,6 @@
        serviceContractTypeId: data.serviceContractTypeId || 0,
        serviceContractStatusId: data.serviceContractStatusId || 0,
        codeStandID: data.ID,
        codeRule: this.codeRule
      }
      return params
    },
src/views/service/serviceFollowup/AddServiceFollowupDialog.vue
@@ -461,7 +461,6 @@
        solveRate: data.solveRateId || 0,
        timelyRate: data.timelyRateId || 0,
        codeStandID: data.ID,
        codeRule: this.codeRule
      }
      return params
    },