Explorar o código

客户信息表增加 已沟通、未沟通/已加微、未加微

cgp hai 9 horas
pai
achega
c9bbf92b16

+ 1 - 0
src/views/member/handwriteCollection/index.vue

@@ -84,6 +84,7 @@
         </template>
       </el-table-column>
       <el-table-column label="订单号" align="center" prop="orderCode" />
+      <el-table-column label="商品" align="center" prop="productName" />
       <el-table-column label="创建销售" align="center" prop="companyUserName" />
       <el-table-column label="创建时间" align="center" prop="createTime" width="180">
         <template slot-scope="scope">

+ 69 - 14
src/views/qw/companyCustomer/index.vue

@@ -85,8 +85,39 @@
           <el-option label="已完善" :value="1" />
         </el-select>
       </el-form-item>
-      <el-form-item label="购买状态" prop="purchased">
-        <el-checkbox v-model="queryParams.purchased">已购</el-checkbox>
+      <el-form-item label="加微状态" prop="kdzlAddWechatStatus">
+        <el-select
+          v-model="queryParams.kdzlAddWechatStatus"
+          placeholder="请选择"
+          clearable
+          size="small"
+          style="width: 120px"
+        >
+          <el-option label="未加" :value="0" />
+          <el-option label="已加" :value="1" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="成交状态" prop="kdzlMakeStatus">
+        <el-select
+          v-model="queryParams.kdzlMakeStatus"
+          placeholder="请选择"
+          clearable
+          size="small"
+          style="width: 120px"
+        >
+          <el-option label="未成交" :value="0" />
+          <el-option label="已成交" :value="1" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="通话状态" prop="kdzlCallStatus">
+        <el-input
+          v-model="queryParams.kdzlCallStatus"
+          placeholder="示例:已接听、未接听"
+          clearable
+          size="small"
+          style="width: 150px"
+          @keyup.enter.native="handleQuery"
+        />
       </el-form-item>
       <el-form-item label="购买次数">
         <el-input-number
@@ -244,6 +275,26 @@
           </el-tag>
         </template>
       </el-table-column>
+      <!-- 口袋助理-加微状态 -->
+      <el-table-column label="口袋助理-加微状态" align="center" prop="kdzlAddWechatStatus">
+        <template slot-scope="scope">
+            <el-tag v-if="scope.row.kdzlAddWechatStatus === 1" type="success">已加</el-tag>
+            <el-tag v-else-if="scope.row.kdzlAddWechatStatus === 0" type="warning">未加</el-tag>
+            <span v-else>-</span>
+        </template>
+      </el-table-column>
+
+      <!-- 口袋助理-成交状态 -->
+      <el-table-column label="口袋助理-成交状态" align="center" prop="kdzlMakeStatus">
+        <template slot-scope="scope">
+            <el-tag v-if="scope.row.kdzlMakeStatus === 1" type="success">已成交</el-tag>
+            <el-tag v-else-if="scope.row.kdzlMakeStatus === 0" type="warning">未成交</el-tag>
+            <span v-else>-</span>
+        </template>
+      </el-table-column>
+
+      <!-- 口袋助理-通话状态 -->
+      <el-table-column label="口袋助理-通话状态" align="center" prop="kdzlCallStatus" />
       <el-table-column
         label="操作"
         align="center"
@@ -306,6 +357,7 @@
             size="mini"
             type="text"
             icon="el-icon-folder-add"
+            v-if="scope.row.myCustomerFlag"
             @click="handleCreateOrder(scope.row)"
           >制单</el-button
           >
@@ -1288,7 +1340,9 @@ export default {
         companyUserName: null,
         claimStatus: null,
         completeStatus: null,
-        purchased: false,
+        kdzlAddWechatStatus:null,
+        kdzlMakeStatus:null,
+        kdzlCallStatus:null,
         minBuyCount: null,
         maxBuyCount: null,
         sortField: null,   //排序字段 (create_time / filing_time)
@@ -1480,7 +1534,6 @@ export default {
       // 切换支付方式时,清空之前选择的收款记录和对应的抵扣金额
       this.createOrderForm.receiveMoneyId = null;
       this.createOrderForm.reduceAmount = null;
-      
       // 如果切换到非"预付/线下"等特定支付方式,通常也建议清空预付金额输入框
       // 假设 val == 5 是预付/线下支付(根据模板 v-if="createOrderForm.payType == 5" 推断)
       if (val != 5) {
@@ -1707,7 +1760,7 @@ export default {
     async openHandwriteDialog(order, orderParams) {
       this.resetHandwriteForm();
       this.handwriteForm.patientName = orderParams.realName || '';
-      this.handwriteForm.patientPhone = orderParams.phone || '';
+      //this.handwriteForm.patientPhone = orderParams.phone || '';
       this.handwriteForm.orderCode = order.orderCode;
 
       // 调用接口判断订单中的商品是否包含药品
@@ -1915,13 +1968,13 @@ export default {
     },
     handleCreateOrder(row) {
       //调用获取详情接口进行回填
-      getCustomer(row.id).then((res) => {
-        if (res.data.noEncryptPhone==null){
-          alert("回填号码异常,请手动填写");
-        }else {
-          this.createOrderForm.phone=res.data.noEncryptPhone;
-        }
-      });
+      // getCustomer(row.id).then((res) => {
+      //   if (res.data.noEncryptPhone==null){
+      //     alert("回填号码异常,请手动填写");
+      //   }else {
+      //     this.createOrderForm.phone=res.data.noEncryptPhone;
+      //   }
+      // });
       this.createOrderReset();
       this.createOrder.open = true;
       this.createOrderForm.companyCustomerId = row.id;
@@ -1948,7 +2001,6 @@ export default {
         params.beginCreateTime = this.createTimeRange[0];
         params.endCreateTime = this.createTimeRange[1];
       }
-      if (!params.purchased) delete params.purchased;
       // 传递排序参数(如果存在)
       if (params.sortField && params.sortOrder) {
         // 直接保留,后端会接收
@@ -1978,9 +2030,12 @@ export default {
       this.resetForm("queryForm");
       this.queryParams.claimStatus = null;
       this.queryParams.completeStatus = null;
-      this.queryParams.purchased = false;
       this.queryParams.minBuyCount = null;
       this.queryParams.maxBuyCount = null;
+      // 清空口袋助理相关查询条件
+      this.queryParams.kdzlAddWechatStatus = null;
+      this.queryParams.kdzlMakeStatus = null;
+      this.queryParams.kdzlCallStatus = null;
       // 清空排序
       this.queryParams.sortField = null;
       this.queryParams.sortOrder = null;