john 2 年之前
父節點
當前提交
73c5ea254b

+ 6 - 0
src/common/js/BaseDictionary.js

@@ -38,6 +38,12 @@ const HKC = {
 
 // 前海
 const QHKC = {
+  dev: {
+    ...testAppIdInfo,
+    groupId: '8aaa81947c6e1ca0017c73c13cc30006',
+    mallId: '8aaa82ea804d07cd0180516ff03b0008',
+    projectId: 'HKC',
+  },
   qa: {
     ...testAppIdInfo,
     groupId: '8a84819f7c6e260e017c72669bbe01c2',

+ 5 - 4
src/pages/parkingFee/mixins/parkingReceipt/parkingChangeHeader.js

@@ -147,17 +147,18 @@ export default {
     },
     // 添加、编辑抬头信息
     submit: async function () {
+      console.log(150, this.condition)
       let res = null
       if (!this.condition.titleName)  return uni.showToast({
         title: '请填写抬头名称',
         icon: 'none',
       });
-      if (!this.condition.taxNo) return uni.showToast({
-          title: '请填写公司税号',
-          icon: 'none',
-        });
       try {
         if ( this.isCompany ) {
+          if (!this.condition.taxNo) return uni.showToast({
+            title: '请填写公司税号',
+            icon: 'none',
+          });
           if ( !this.condition?.titleName ) {
             uni.showToast({
               title: '请输入公司名称',

+ 4 - 4
src/utils/index.js

@@ -205,9 +205,9 @@ export function initEnv() {
 
 export function requestInit() {
   let baseURL = window.profileApi + '/temporary-parking/v1';
-  // if (window.location.href.indexOf('parking.') < 0) {
-  //   baseURL = '/msApi';
-  // }
+  if (window.location.href.indexOf('parking.') < 0) {
+    baseURL = '/msApi';
+  }
   window.requestms = createAxiosByinterceptors({
     // baseURL: `https://dev-kip-service-internal.kerryonvip.com/`,
     // baseURL: `http://tp.hht.test/`,
@@ -219,7 +219,7 @@ export function requestInit() {
 
 // websocket 链接
 export function getUrl() {
-  // return `https://crm.kerryplus.com/xcrm-api`; // TODO: 临时更改websocket域名为prod
+  return `https://crm.kerryplus.com/xcrm-api`; // TODO: 临时更改websocket域名为prod
   // 如果 kerry+ 这边的访问环境是 sl 或者 lt,需要把 wss 指向 qa 环境。
   const href = `${ window.location.href }`;
   if ( /dev-|8080/.test(href) ) {

+ 2 - 2
vue.config.js

@@ -122,9 +122,9 @@ module.exports = {
         },
       },
       '/msApi': {
-        // target: 'http://172.21.201.149:8080',
+        target: 'http://172.21.201.251:8080',
         // target: 'http://172.21.202.133:8080',
-        target: 'https://dev-kip-service-internal.kerryonvip.com/temporary-parking-service', //代理地址,这里设置的地址会代替axios中设置的baseURL
+        // target: 'https://dev-kip-service-internal.kerryonvip.com/temporary-parking-service', //代理地址,这里设置的地址会代替axios中设置的baseURL
         // target: 'http://172.21.203.140:8080', //代理地址,这里设置的地址会代替axios中设置的baseURL   2023-2-9
         // target: 'http://172.21.203.20:8080', //代理地址,这里设置的地址会代替axios中设置的baseURL
         // target: 'http://172.21.200.89:8080', //代理地址,这里设置的地址会代替axios中设置的baseURL