lihongxiao 2 rokov pred
rodič
commit
f1b86bd6b2

+ 2 - 2
config/dev.env.js

@@ -5,9 +5,9 @@ const prodEnv = require('./prod.env')
 module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
   ENV_CONFIG:'"dev"',
-  BASE_URL: '"http://39.98.239.48/web-api"',//测试服务器
+  // BASE_URL: '"http://39.98.239.48/web-api"',//测试服务器
   // BASE_URL:'"http://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
-  // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
+  BASE_URL: '"http://192.168.0.115:8080/"' //凯森
   // BASE_URL: '"http:///192.168.0.253:8082/"',//田智
   // BASE_URL: '"http:///192.168.0.36:8080/"',//靖燕龙
 })

+ 8 - 0
src/http/moudules/user.js

@@ -305,3 +305,11 @@ export const updateUserInfo = (userId,data) => {
       data
   })
 }
+//获取闪电增员用户权限
+export const recruitinQqueryType= (params) => {
+  return axios({
+      url: '/recruiting/queryType',
+      method: 'get',
+      params
+  })
+}

+ 91 - 0
src/views/AgreementManage/CarInsurance/SourceManagement.vue

@@ -0,0 +1,91 @@
+<template>
+    <div class="container" style="width: 99%; margin-top: 0px">
+        <templateTable  :searchData.sync="queryFrom" :tableConfig="tableConfig" :data="pageResult" @getList="findPage" :pagination="pageData">
+        </templateTable>
+
+    </div>
+</template>
+<script>
+import templateTable from '@/components/TemplateTable/index.vue'
+
+export default {
+    name: "sourceManagement",
+  components: { templateTable },
+  data() {
+    return {
+        formList: [
+        {
+          label: "开票员",
+          prop: "invoiceClerk",
+          type: 'input'
+        },
+    ],
+    pageResult: [], //表格数据
+    queryFrom: {}, //查询信息
+    tableConfig: {
+        columns: [
+          // 数据列
+          { prop: "invoiceClerk", label: "保险公司名称", type: 'text' },
+          {
+            prop: "subjects",
+            label: "科目", type: 'text',
+          },
+          { prop: "invCompanyName", label: "开票方", type: 'text', },
+
+          { prop: "peerCompanyName", label: "对方单位名称", type: 'text', },
+          { prop: "invoiceNum", label: "号码", type: 'text', },
+          {
+            prop: "invoiceDate",
+            label: "日期",
+            type: 'text',
+          },
+          {
+            prop: "taxExclusivePrice",
+            label: "金额",
+            type: 'text',
+          },
+        ],
+        loading: true,
+        isPaginationShow: true,
+        isShowIndex: true,
+        operationWidth: '120',
+        optBtns: [
+          {
+            type: 'primary',
+            label: '税源管理',
+            type: 'text',
+            click: (row, index) => { return this.addSource(row) },
+          },
+        ]
+      },
+      pageData: {
+        pageNum: 1,
+        pageSize: 10,
+        totalSize: 0
+      },
+    }
+},
+created() {
+    this.findPage()
+  },
+methods:{
+    findPage(data) {
+      this.tableConfig.loading = true;
+      this.$api.dict
+        .queryPage({ ...this.pageData, ...data })
+        .then((res) => {
+          this.tableConfig.loading = false;
+          this.pageResult = res.data.content;
+          this.pageData.pageNum = res.data.pageNum;
+          this.pageData.pageSize = res.data.pageSize;
+          this.pageData.totalSize = res.data.totalSize;
+
+        })
+    },
+    addSource(row){
+
+    },
+}
+
+}
+</script>

+ 12 - 2
src/views/Core/PersonalPanel.vue

@@ -77,7 +77,7 @@
     <!-- 修改密码 -->
     <psdreset ref="psdresetDialog" @afterRestore="afterReset"></psdreset>
     <!-- 闪电增员 -->
-    <Recruiting ref="recruitingDialog"></Recruiting>
+    <Recruiting ref="recruitingDialog" :type="recruitingType"></Recruiting>
 
   </div>
 </template>
@@ -122,6 +122,7 @@ export default {
   data() {
     return {
       avatar: require("@/assets/user.png"),
+      recruitingType:''
     }
   },
   created(){
@@ -139,7 +140,16 @@ export default {
 
     //闪电增员
     recruiting() {
-        this.$refs.recruitingDialog.setBackupVisible(true)
+      this.$api.user.recruitinQqueryType().then((res) => {
+        if(res.code==200){
+          this.recruitingType=res.data
+          this.$refs.recruitingDialog.setBackupVisible(true)
+        }
+        else{
+          this.$message.error(res.msg)
+        }
+          }).catch(function (res) {
+          })
     },
     // 清除缓存
     clearCache(){

+ 8 - 1
src/views/Sys/Recruiting.vue

@@ -23,12 +23,19 @@ export default {
     },
     created() {
     },
+    props: {
+        type:{
+            type: String,
+            default:''
+        }
+    },
+    
     methods: {
         // 设置可见性
         setBackupVisible: function (backupVisible) {
             var userId = Cookies.get("user");
             let url=''
-            if(JSON.parse(localStorage.getItem('user_data')).roleId=='19'){
+            if(this.type=='2'){
                 url = this.global.h5BaseUrl + "/#/pages/register/orderissuer?id=" + userId;
             }
             else{