lilei hai 1 ano
pai
achega
f4ee21c0c6
Modificáronse 3 ficheiros con 4 adicións e 5 borrados
  1. 1 2
      src/store/modules/app.js
  2. 1 1
      src/utils/request.js
  3. 2 2
      vue.config.js

+ 1 - 2
src/store/modules/app.js

@@ -50,8 +50,7 @@ const app = {
     isWarehouse: false,// 仓库管理权限
     isShowCustomerSearch:false ,//客服查询权限
     mainInterfaceList: [
-      'sales/findBySn', // 销售单
-      'dispatch/findBySalesBillSn', // 下推
+      'sales/findBySn', // 销售单,下推
       'salesReturn/findBySn', // 销售退货
       'sparePartsReturn/queryBySn', // 采购退货
       'allocateBill/findBySn', // 调拨

+ 1 - 1
src/utils/request.js

@@ -117,7 +117,7 @@ service.interceptors.request.use(config => {
     config.headers['access-token'] = token // 让每个请求携带自定义 token 请根据实际情况自行修改
   }
   if(noRestTimeStr){
-    config.headers['lock-time'] = noRestTimeStr
+    config.headers['biz-updatedate'] = noRestTimeStr
   }
   config.headers['auth-price'] = authPrice.join(',') // 价格权限
   config.retry = 3

+ 2 - 2
vue.config.js

@@ -108,9 +108,9 @@ const vueConfig = {
     // If you want to turn on the proxy, please remosve the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        // target: 'http://192.168.2.113:8660/ocs-admin',
+        target: 'http://192.168.2.113:8660/ocs-admin',
         // target: 'https://t.ocs.360arrow.com/ocs-admin', //  练习
-        target: 'https://p.ocs.360arrow.com/ocs-admin', //  预发布
+        // target: 'https://p.ocs.360arrow.com/ocs-admin', //  预发布
         ws: false,
         changeOrigin: true,
         pathRewrite: {