From 13646595f3a8cb6c27a20f287c23a7649cbdff05 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 11 十月 2023 16:05:59 +0800
Subject: [PATCH] 销售线索+客户管理+联系人页面的跟进弹框编码规则获取问题更改+销售发票编码input修改为编码规则

---
 src/views/client/contacts/index.vue                           |    5 +++--
 src/views/client/client/index.vue                             |    3 ++-
 src/views/other/payment/saleInvoice/addSaleInvoice.vue        |   47 ++++++++++++++++++++++++++++++++++++++++++-----
 src/views/client/salesLead/index.vue                          |    3 ++-
 src/views/client/followupRecords/AddFollowupRecordsDialog.vue |    1 +
 5 files changed, 50 insertions(+), 9 deletions(-)

diff --git a/src/views/client/client/index.vue b/src/views/client/client/index.vue
index 1780ee3..d341bbe 100644
--- a/src/views/client/client/index.vue
+++ b/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) {
diff --git a/src/views/client/contacts/index.vue b/src/views/client/contacts/index.vue
index af6ace0..b00fe4d 100644
--- a/src/views/client/contacts/index.vue
+++ b/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
     }
   }
 }
diff --git a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
index 5ae30a9..631c3cd 100644
--- a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
+++ b/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;
diff --git a/src/views/client/salesLead/index.vue b/src/views/client/salesLead/index.vue
index 7da5f86..3d952f0 100644
--- a/src/views/client/salesLead/index.vue
+++ b/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() {
diff --git a/src/views/other/payment/saleInvoice/addSaleInvoice.vue b/src/views/other/payment/saleInvoice/addSaleInvoice.vue
index e844dd5..61056f8 100644
--- a/src/views/other/payment/saleInvoice/addSaleInvoice.vue
+++ b/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) {

--
Gitblit v1.8.0