Browse Source

添加主生产计划错误日志

pull/166/head
xuxiaoming 3 years ago
parent
commit
7109f27451
2 changed files with 14 additions and 8 deletions
  1. +3
    -3
      src/server/request.js
  2. +11
    -5
      src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue

+ 3
- 3
src/server/request.js View File

@ -1,8 +1,8 @@
import axios from "axios";
import { ElMessage } from "element-plus";
let switchValue = true;
const baseURL = process.env.VUE_APP_BASE_URL || "http://101.201.121.115:9003/";
// const baseURL = process.env.VUE_APP_BASE_URL || "http://192.168.0.98:9003/";
// const baseURL = process.env.VUE_APP_BASE_URL || "http://101.201.121.115:9003/";
const baseURL = process.env.VUE_APP_BASE_URL || "http://192.168.0.98:9003/";
const service = axios.create({
baseURL,
timeout: 1000 * 60 * 2, // request timeout
@ -82,4 +82,4 @@ upService.interceptors.response.use(
return Promise.reject(error.response);
}
);
export {service, upService};
export {service, upService, baseURL};

+ 11
- 5
src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue View File

@ -34,8 +34,14 @@
type="text"
@click="republishHandler(history.planOrderId)"
:disabled="history.status!=100"> 再次发布</el-button>
<el-button size="mini"
style="float:right;margin-right: 10px;"
class="edit-button-style"
type="text"
@click="lookErrorHandler(history.publishedVersionNr)"
> 日志</el-button>
<el-button size="mini"
style="float:right;margin-right: 20px;"
style="float:right;margin-right: 10px;"
class="edit-button-style"
type="text"
:disabled="history.status!=100"
@ -68,6 +74,7 @@
<script>
import { publishIdentify, publicData, planOrderQuery, republish } from '@/server/productionPlanning/customerForecastDemandReview'
import PublicDetail from "./publicDetail.vue"
import { baseURL } from "@/server/request"
export default {
emits: ["cancelHandle"],
components:{
@ -119,17 +126,16 @@
this.loading = false
});
},
lookErrorHandler(versionNr,mode = "plan"){
window.open(baseURL + "admin/common/log/read/"+mode+"/"+versionNr)
},
lookDetailHandler(versionNr) {
console.log('%cpublic.vue line:123 this.showPublicDetail 1', 'color: #007acc;', this.showPublicDetail);
this.showPublicDetail = true
console.log('%cpublic.vue line:123 this.showPublicDetail 2', 'color: #007acc;', this.showPublicDetail);
this.versionNr = versionNr
},
closePublicDetailDialog(){
console.log('%cpublic.vue line:123 closePublicDetailDialog this.showPublicDetail 1', 'color: #007acc;', this.showPublicDetail);
this.showPublicDetail = false
console.log('%cpublic.vue line:123 closePublicDetailDialog this.showPublicDetail 2', 'color: #007acc;', this.showPublicDetail);
},
publishIdentify() {
this.loading = true


Loading…
Cancel
Save