Browse Source

业务员画像

qymljy 1 year ago
parent
commit
679e2699a9

+ 2 - 2
src/HDrpManagement/customerPortrait/modules/showIsNone.vue

@@ -5,7 +5,7 @@
         <i class="el-icon-d-arrow-right" style="font-weight: bold;"></i>
         {{ title }}
       </div>
-      <div 
+      <div
         style="display: flex;align-items: center;margin-left: 30px;color: #3874f6;cursor: pointer;"
         @click="isTop = !isTop"
       >
@@ -38,4 +38,4 @@ export default {
   font-size: 14px;
   margin-bottom: 20px;
 }
-</style>
+</style>

+ 70 - 30
src/HDrpManagement/salerPortrait/modules/detail.vue

@@ -97,33 +97,47 @@
               ]"
             ></myCard>
             <showIsNone title="订单明细">
-            <pageTable
-              ref="dingdan"
-              :tablecols="tool.tabelCol($route.name).orderTable.tablecols"
-              :param="param2"
-              :custom="true"
-            >
-              <template v-slot:custom="scope">
-                <div v-if="scope.data.columnname == 'sumamount'">
-                  {{scope.data.data.sumamount && tool.formatAmount(scope.data.data.sumamount || 0,2,'¥')  }}
-                </div>
-                <div v-else-if="scope.data.columnname == 'writeoffamount'">
-                  {{scope.data.data.writeoffamount && tool.formatAmount(scope.data.data.writeoffamount || 0,2,'¥')  }}
-                </div>
-                <div v-else-if="scope.data.columnname == 'unoutOrderamount'">
-                  {{scope.data.data.unoutOrderamount && tool.formatAmount(scope.data.data.unoutOrderamount || 0,2,'¥')  }}
-                </div>
-                <div v-else-if="scope.data.columnname == 'uninvoicamount'">
-                  {{scope.data.data.uninvoicamount && tool.formatAmount(scope.data.data.uninvoicamount || 0,2,'¥')  }}
-                </div>
-                <div v-else-if="scope.data.columnname == 'unwriteoffamount'">
-                  {{scope.data.data.unwriteoffamount && tool.formatAmount(scope.data.data.unwriteoffamount || 0,2,'¥')  }}
-                </div>
-                <div v-else>
-                  {{ scope.data.data[scope.data.columnname] }}
-                </div>
-              </template>
-            </pageTable>
+              <div style="float: right;margin-bottom: 10px;margin-top: -40px">
+                <el-button-group>
+                  <el-button :type="param2.content.sort[0].sortid == '172'?'primary':''"  size="mini" @click="sortChange('订单')">订单</el-button>
+                  <el-button :type="param2.content.sort[0].sortid == '173'?'primary':''"  size="mini" @click="sortChange('出货')">出货</el-button>
+                  <el-button :type="param2.content.sort[0].sortid == '174'?'primary':''"  size="mini" @click="sortChange('开票')">开票</el-button>
+                  <el-button :type="param2.content.sort[0].sortid == '175'?'primary':''"  size="mini" @click="sortChange('回款')">回款</el-button>
+                </el-button-group>
+                <img v-if="param2.content.sort[0].reversed == 0" @click="upSort('down')" width="28" height="28" src="../../../assets/icons/upSort.svg" alt="" style="vertical-align: middle;margin-left: 10px;">
+                <img v-if="param2.content.sort[0].reversed == 1" @click="upSort('up')" width="28" height="28" src="../../../assets/icons/downSort.svg" alt="" style="vertical-align: middle;margin-left: 10px;">
+              </div>
+              <div>
+
+              </div>
+
+              <pageTable
+                ref="dingdan"
+                :tablecols="tool.tabelCol($route.name).orderTable.tablecols"
+                :param="param2"
+                :custom="true"
+              >
+                <template v-slot:custom="scope">
+                  <div v-if="scope.data.columnname == 'sumamount'">
+                    {{scope.data.data.sumamount && tool.formatAmount(scope.data.data.sumamount || 0,2,'¥')  }}
+                  </div>
+                  <div v-else-if="scope.data.columnname == 'writeoffamount'">
+                    {{scope.data.data.writeoffamount && tool.formatAmount(scope.data.data.writeoffamount || 0,2,'¥')  }}
+                  </div>
+                  <div v-else-if="scope.data.columnname == 'unoutOrderamount'">
+                    {{scope.data.data.unoutOrderamount && tool.formatAmount(scope.data.data.unoutOrderamount || 0,2,'¥')  }}
+                  </div>
+                  <div v-else-if="scope.data.columnname == 'uninvoicamount'">
+                    {{scope.data.data.uninvoicamount && tool.formatAmount(scope.data.data.uninvoicamount || 0,2,'¥')  }}
+                  </div>
+                  <div v-else-if="scope.data.columnname == 'unwriteoffamount'">
+                    {{scope.data.data.unwriteoffamount && tool.formatAmount(scope.data.data.unwriteoffamount || 0,2,'¥')  }}
+                  </div>
+                  <div v-else>
+                    {{ scope.data.data[scope.data.columnname] }}
+                  </div>
+                </template>
+              </pageTable>
             </showIsNone>
           </el-card>
         </div>
@@ -454,8 +468,13 @@ export default {
             "isAll":1,
             "hrid":this.$route.query.id,
             "where": {
-              type:''
-            }
+              "type":''
+            },
+          "sort":[{
+            "reversed": 1,//1降序,0升序
+            "sorted": 1,
+            "sortid": 172,//订单:172,出货:173,开票:174,回款:175
+          }]
         }
       },
       //销售线索
@@ -547,7 +566,7 @@ export default {
       performance:{},
       contractTypeList:[],
       orderTypeList:[],
-      stageList:[]
+      stageList:[],
     }
   },
   methods:{
@@ -605,6 +624,27 @@ export default {
         return this.tool.formatAmount(num / 10000,2,'¥') + '万'
       }
     },
+    /*订单明细排序*/
+    sortChange(val){
+      if (val === '订单'){
+        this.param2.content.sort[0].sortid = 172
+      }else if (val === '出货'){
+        this.param2.content.sort[0].sortid = 173
+      }else if (val === '开票'){
+        this.param2.content.sort[0].sortid = 174
+      }else if (val === '回款'){
+        this.param2.content.sort[0].sortid = 175
+      }
+      this.$refs.dingdan.listData()
+    },
+    upSort(val){
+      if (val === 'down'){
+        this.param2.content.sort[0].reversed = 1
+      }else {
+        this.param2.content.sort[0].reversed = 0
+      }
+      this.$refs.dingdan.listData()
+    }
   },
   mounted() {
     this.getbaseInfo()

+ 1 - 0
src/assets/icons/downSort.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1701938492056" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8082" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M256 147.2H169.6v601.6H86.4l128 128 128-128H256zM384 147.2h553.6v86.4H384zM384 364.8h425.6v86.4H384zM384 787.2h169.6v86.4H384zM384 572.8h297.6v86.4H384z" fill="#333333" p-id="8083"></path></svg>

+ 1 - 0
src/assets/icons/upSort.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1701938146166" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7935" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M83.2 275.2h89.6v601.6h86.4V275.2h80l-128-128zM387.2 787.2h553.6v86.4H387.2zM387.2 572.8h425.6v86.4H387.2zM387.2 147.2h169.6v86.4h-169.6zM387.2 364.8h297.6v86.4h-297.6z" fill="#333333" p-id="7936"></path></svg>

+ 2 - 2
vue.config.js

@@ -14,8 +14,8 @@ module.exports = {
       port: 8000,
       proxy: {
         '/apis': {
-          target: 'http://61.164.207.46:8000',  // target host*/
-          // target: 'http://192.168.3.13:8080',  // target host*!
+          // target: 'http://61.164.207.46:8000',  // target host*/
+          target: 'http://192.168.3.13:8080',  // target host*!
           // target: 'http://192.168.3.9:8090',  // target host*!
           // target: 'https://oms.idcgroup.com.cn:8079/',  // target host
           // target: 'localhost:8080',  // target host