Răsfoiți Sursa

二维码和报价单显示样式判断

lihongxiao 2 ani în urmă
părinte
comite
1407e13c84

+ 2 - 2
src/http/moudules/letter.js

@@ -899,9 +899,9 @@ export const findForwardingListBySubOrderId = (subOrderId) => {
   })
 }
 // 判断显示报价单和二维码的样式
-export const getThemeByUserId = () => {
+export const getThemeByUserId = (userId ) => {
   return axios({
-    url: "/sys/quotation/getThemeByUserId",
+    url: "/sys/quotation/getThemeByUserId?userId="+userId ,
     method: "get",
   })
 }

+ 3 - 4
src/views/Task/daikeComponents/KtLetter.vue

@@ -4270,6 +4270,7 @@ export default {
       // this.userId = userId;
       this.$api.user.getLoginUser().then(res => {
         if (res.code == 200) {
+          this.userId = res.data.id;
           this.userform = res.data;
           this.$api.dept.getDeptById(res.data.deptId).then(res => {
             this.deptName = res.data.name;
@@ -4277,7 +4278,6 @@ export default {
         }
       });
     }
-
     //--订单编辑回显--
     // this.paramsEdit = this.$route.query.data; //接收参数
     this.obtainProtocol(this.$route.query.data);
@@ -9196,8 +9196,7 @@ export default {
           }
           data.logoImg = this.iconfftter(res.data.inscompany);
           this.queryOrders = data;
-
-          this.$api.letter.getThemeByUserId().then(res => {
+          this.$api.letter.getThemeByUserId(this.userId).then(res => {
             if (res.code == 200) {
               if (res.data[0] == 'GD') {
                 this.$refs.quotationDialogPro.setBackupVisible(true);
@@ -9235,7 +9234,7 @@ export default {
           this.systartdate = res.data.syStartDate; //商业起保日期
           // this.mobile = res.data.applyinfo.mobile;//投保人手机号
           let qrCodeUrl = res.data.qrCodeUrl;
-          this.$api.letter.getThemeByUserId().then(res => {
+          this.$api.letter.getThemeByUserId(this.userId).then(res => {
             if (res.code == 200) {
               if (res.data[0] == 'GD') {
                 this.codedialogVisiblePro = true;

+ 3 - 3
src/views/Task/daikeComponents/KtOrder.vue

@@ -519,7 +519,7 @@ export default {
       vehicleTypeoptions: [],
       trafficManagementVehicleTypeoptions: [],
       outOfBusinessVehicleUseoptions: [],
-      userIdPor: '',
+      userIdPor:  Cookies.get("user"),
       statusPor: '',
       deptIdPor: ''
     };
@@ -699,7 +699,7 @@ export default {
           }
           data.logoImg = this.iconfftter(res.data.inscompany);
           this.queryOrders = data;
-          this.$api.letter.getThemeByUserId().then(res => {
+          this.$api.letter.getThemeByUserId(this.userIdPor).then(res => {
             if (res.code == 200) {
               if (res.data[0] == 'GD') {
                 this.$refs.quotationDialogPro.setBackupVisible(true);
@@ -1012,7 +1012,7 @@ export default {
           this.systartdate = res.data.syStartDate; //商业起保日期
           // this.mobile = res.data.applyinfo.mobile;//投保人手机号
           let qrCodeUrl = res.data.qrCodeUrl;
-          this.$api.letter.getThemeByUserId().then(res => {
+          this.$api.letter.getThemeByUserId( this.userIdPor).then(res => {
             if (res.code == 200) {
               if (res.data[0] == 'GD') {
                 this.codedialogVisiblePro = true;