销售线索+客户管理+联系人页面的跟进弹框编码规则获取问题更改+销售发票编码input修改为编码规则
5个文件已修改
59 ■■■■ 已修改文件
src/views/client/client/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/contacts/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/followupRecords/AddFollowupRecordsDialog.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/salesLead/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/other/payment/saleInvoice/addSaleInvoice.vue 47 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/client/index.vue
@@ -369,14 +369,15 @@
    // 跟进
    followupClick(row) {
      console.log(row)
      this.editFollowupConfig.visible = true
      this.editFollowupConfig.title = "新建"
      this.editFollowupConfig.infomation = {
        ...row,
        client_name: row.name,
        number: "",
        codeStandID:'',
        next_follow_time: row.next_visit_time
      }
      this.editFollowupConfig.visible = true
    },
    // 分配
    allocationBtnClick(row) {
src/views/client/contacts/index.vue
@@ -296,13 +296,14 @@
    // 跟进
    followupClick(row) {
      console.log(row)
      this.editFollowupConfig.visible = true
      this.editFollowupConfig.title = "新建"
      this.editFollowupConfig.infomation = {
        ...row,
        client_name: row.Client.name,
        number: ""
        number: "",
        codeStandID:''
      }
      this.editFollowupConfig.visible = true
    }
  }
}
src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -449,6 +449,7 @@
  },
  methods: {
    formInfo(){
      this.objCode.type='跟进记录编码'
      this.objCode.codeStandID = ''
      if(this.editConfig.infomation.codeStandID){
        this.objCode.codeStandID = this.editConfig.infomation.codeStandID;
src/views/client/salesLead/index.vue
@@ -226,9 +226,10 @@
    },
    // 跟进
    followupClick(row) {
      this.editConfig.visible = true
      this.editConfig.title = "新建"
      this.editConfig.infomation = { sales_leads_name: row.name }
      this.editConfig.visible = true
    },
    // 导入
    importClitk() {
src/views/other/payment/saleInvoice/addSaleInvoice.vue
@@ -24,15 +24,31 @@
          <div class="basic-info-view">
            <el-row>
              <el-col :span="12">
                <el-form-item label="发票编号" prop="number">
                  <WordInput
                    v-if="codenumer && (explain != '' || isIdDisabled)&&method == 0"
                    :codenumer="codenumer"
                    :sum="sum"
                    :disabled="editConfig.infomation.id || isIdDisabled"
                    :inputValue="inputValue"
                    @codeList="codeList"
                  />
                  <span v-else-if="method == 0" style="color: #f56c6c"
                    >请优先配置编码规范
                    <el-button type="text"  @click="numberClick">
                        配置规范
                      </el-button
                    ></span
                  >
                  <span  v-else>自动生成</span>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="主题" prop="subject">
                  <el-input v-model="editConfig.infomation.subject" style="width: 100%"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="发票编号" prop="number">
                  <el-input v-model="editConfig.infomation.number" style="width: 100%"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="客户名称" prop="client_name">
                  <div class="custom-name">
@@ -362,8 +378,10 @@
import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog"
import SelectCommonDialog from "@/views/other/commonDialog/SelectCommonDialog"
import { addInvoice, getInvoiceTypeList, getInvoiceStatusList, getCourierCompanyList } from "@/api/common/payment"
import codeMixin from "@/views/client/followupRecords/mixin/codeMixin";
export default {
  name: "AddSaleInvoiceDialog",
  mixins: [codeMixin],
  props: {
    editCommonConfig: {
      type: Object,
@@ -444,8 +462,27 @@
    this.$store.dispatch("geSalesDetails")
    this.setTableForm()
    this.getCommonData()
    this.formInfo();
  },
  watch:{
    'editCommonConfig.visible'(val){
      if(val){
        this.formInfo()
      }
    },
    'editCommonConfig.infomation.codeStandID'(){
      this.formInfo()
    }
  },
  methods: {
    formInfo(){
      this.objCode.type='销售发票编码'
      this.objCode.codeStandID = ''
      if(this.editConfig.infomation.codeStandID){
        this.objCode.codeStandID = this.editConfig.infomation.codeStandID;
      }
      this.getRCodeStandardList();
    },
    getCommonData() {
      getAllData().then((res) => {
        if (res.code === 200) {