Procházet zdrojové kódy

选品库和盯盘下载

朱鑫波 před 3 roky
rodič
revize
b7f53ac794

+ 1 - 1
.env.production

@@ -25,6 +25,6 @@ VUE_APP_BASE_MOST_SYSTEM = http://118.24.244.213:8808
 # 测试 http://139.186.165.84:8808
 
 #盯盘相关接口
-VUE_APP_BASE_STARE_URL = http://api.tjyourong.com.cn/material
+VUE_APP_BASE_STARE_URL = http://192.168.0.195:9999/material
 # 字安接口 http://192.168.1.43:9999
 # 测试环境 http://192.168.0.195:9999

+ 14 - 1
src/mixins/JeecgListMixin.js

@@ -31,7 +31,14 @@ export const JeecgListMixin = {
         },
         showQuickJumper: true,
         // showSizeChanger: true,
-        total: 0
+        total: 0,
+        onChange: (current) => {
+          // 切换分页时的回调,
+          // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
+            this.ipagination.current = current
+            this.loadData();
+        },
+        
       },
       /* 排序参数 */
       isorter: {
@@ -152,6 +159,12 @@ export const JeecgListMixin = {
         params.userId = this.userInfo().id
       }
       
+      if(params.monthTime&&params.monthTime.length>0){
+        // params.createTime = moment(params.createTime).format('YYYY-MM-DD')
+        params.startMonth = moment(params.monthTime[0]).format('YYYY-MM')
+        params.endMonth = moment(params.monthTime[1]).format('YYYY-MM')
+        params.monthTime = null
+      }
       this.loading = true;
       await getAction(this.url.list, params).then((res) => {
         if (res.success) {

+ 2 - 2
src/utils/request.js

@@ -21,9 +21,9 @@ else if (process.env.NODE_ENV === 'debug') {
 else if (process.env.NODE_ENV === 'production') {
 	// axios.defaults.baseURL = 'http://apipre.tjyourong.com.cn/jeecg-boot'; // 预生产
 	// axios.defaults.baseURL = 'http://gateway.tjyourong.com.cn/jeecg-boot';//测试
-	axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot'; // 生产环境
+	// axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot'; // 生产环境
 	// axios.defaults.baseURL = 'http://gateway.tjyourong.com.cn/jeecg-boot'; // 测试环境
-	// axios.defaults.baseURL = 'http://192.168.0.195:9999/jeecg-boot'; // 测试环境
+	axios.defaults.baseURL = 'http://192.168.0.195:9999/jeecg-boot'; // 测试环境
 	// axios.defaults.baseURL = 'http://192.168.1.134:9999/jeecg-boot'; // 泽宇环境
 
 }

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 1023 - 0
src/views/modules/material/selectionLibrary.vue


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 368 - 335
src/views/modules/stockWatch/modules/keep-manage/keep-manage.vue


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 1163 - 1015
src/views/modules/stockWatch/modules/new-keepManage/group-keepManage.vue


+ 2 - 2
vue.config.js

@@ -105,7 +105,7 @@ module.exports = {
         // target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.43:8806', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        target: 'http://192.168.1.59:7701', //请求本地 需要jeecg-boot后台项目  赵西安
+        // target: 'http://192.168.1.59:7701', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
@@ -119,7 +119,7 @@ module.exports = {
         // target:'http://gateway.tjyourong.com.cn', //测试
         // target:'http://apipre.tjyourong.com.cn', //预生产
         // target: 'http://192.168.1.134:7001', //请求本地 需要jeecg-boot后台项目  周泽宇
-        // target:'http://192.168.0.195:9999/',
+        target:'http://192.168.0.195:9999/',
         // target:'http://gateway.tjyourong.com.cn/',//测试
 
         ws: false,