diff --git a/.env.development b/.env.development index 6d1cc36..1390b7d 100644 --- a/.env.development +++ b/.env.development @@ -1,16 +1,10 @@ # just a flag ENV='development' -# base api -#VUE_APP_BASE_API = http://192.168.60.99:9004/ -#VUE_APP_UPLOAD_API = http://192.168.60.99:9004/api/admin/upload-file -#VUE_APP_OA_URL = http://192.168.60.18:2021 -#VUE_APP_OA_URL_TYPE = '{"领用":"37","处置":"38","应急":"39"}' - VUE_APP_BASE_API = http://192.168.60.99:8004/ VUE_APP_UPLOAD_API = http://192.168.60.99:8004/api/admin/upload-file VUE_APP_OA_URL= http://192.168.60.18:8001 -VUE_APP_OA_URL_TYPE = '{"领用":"37","处置":"38","应急":"39",'采购入库':40}' +VUE_APP_OA_URL_TYPE = '{"采购入库":51,"请示入库":43,"调拨入库":52,"领用出库":37,"处置出库":38,"调拨出库":53}' diff --git a/.env.production b/.env.production index ac96466..5801a2e 100644 --- a/.env.production +++ b/.env.production @@ -3,21 +3,17 @@ ENV = 'production' # base api #http://192.168.60.99:9004/ -VUE_APP_BASE_API = '' -VUE_APP_UPLOAD_API = /api/admin/upload-file +VUE_APP_BASE_API = 'http://192.168.60.99:8004/' +VUE_APP_UPLOAD_API = 'http://192.168.60.99:8004/api/admin/upload-file' + # 正式oa #VUE_APP_OA_URL = http://192.168.60.18:2021 -#VUE_APP_OA_URL_TYPE = '{"领用":"37","处置":"38","应急":"39"}' +#VUE_APP_OA_URL_TYPE = '{"采购入库":51,"请示入库":43,"调拨入库":52,"领用出库":37,"处置出库":38,"调拨出库":53}' #测试oa VUE_APP_OA_URL = http://192.168.60.18:8001 -VUE_APP_OA_URL_TYPE = '{"领用":"37","处置":"38","应急":"39"}' - +VUE_APP_OA_URL_TYPE = '{"采购入库":51,"请示入库":43,"调拨入库":52,"领用出库":37,"处置出库":38,"调拨出库":53}' -#VUE_APP_BASE_API = http://192.168.60.99:8004/ -#VUE_APP_UPLOAD_API = http://192.168.60.99:8004/api/admin/upload-file -#VUE_APP_OA_URL= http://suzhouhedaooa.langye.net -#VUE_APP_OA_URL_TYPE = '{"领用":"31","处置":"32"}' diff --git a/.env.staging b/.env.staging index 2233d25..ce5e67d 100644 --- a/.env.staging +++ b/.env.staging @@ -6,9 +6,8 @@ ENV = 'staging' # base api #http://192.168.60.99:9004/ -VUE_APP_BASE_API = -VUE_APP_UPLOAD_API = /api/admin/upload-file -VUE_APP_OA_URL = http://192.168.60.18:2021 -VUE_APP_OA_URL_TYPE = '{"领用":"37","处置":"38","应急":"39"}' -#VUE_APP_BASE_API = '/stage-api' +VUE_APP_BASE_API = http://192.168.60.99:8004/ +VUE_APP_UPLOAD_API = http://192.168.60.99:8004/api/admin/upload-file +VUE_APP_OA_URL= http://192.168.60.18:8001 +VUE_APP_OA_URL_TYPE = '{"采购入库":51,"请示入库":43,"调拨入库":52,"领用出库":37,"处置出库":38,"调拨出库":53}' diff --git a/src/views/jsc/index.vue b/src/views/jsc/index.vue index d4c8bc7..dcd375f 100644 --- a/src/views/jsc/index.vue +++ b/src/views/jsc/index.vue @@ -11,19 +11,24 @@
-
-
- +
物资数量统计
+
+
+ {{item.name}}: + {{item.total}}{{item.unit?item.unit:''}} +
+
- +
@@ -72,7 +77,8 @@ export default { contentStyle: { width: 0, height: 0 - }, + }, + upList:[], topObj: [{ label: '仓库数量', value: 0, @@ -81,15 +87,17 @@ export default { label: '物资种类', value: 0, id: 'wuzizhonglei_count' - }, { - label: '本月出库', - value: 0, - id: 'chuku_month_count' - }, { - label: '本月入库', - value: 0, - id: 'ruku_month_count' - }, { + }, + // { + // label: '本月出库', + // value: 0, + // id: 'chuku_month_count' + // }, { + // label: '本月入库', + // value: 0, + // id: 'ruku_month_count' + // }, + { label: '应急调度次数', value: 0, id: 'yingjidiaodu_count' @@ -142,7 +150,7 @@ export default { yData: [], todoList: [{ id: 'gongdan', - value: '工单' + value: '凋令' }, { id: 'pandian', value: '盘点' @@ -200,8 +208,9 @@ export default { }) console.log(this.xData, this.yData) // - this.apiData = res.fenleiLevel1 - this.chartDataMap = this.convertFenleiToChartDataMap(this.apiData) + // this.apiData = res.fenleiLevel1 + // this.chartDataMap = this.convertFenleiToChartDataMap(this.apiData) + this.upList = res.upList }, // 处理分类数据 convertFenleiToChartDataMap(fenleiLevel1) { @@ -370,7 +379,6 @@ export default { // flex-wrap: wrap; &-left { - // width:5.3rem; &-title { color: #6dcde6; text-align: center; @@ -378,7 +386,16 @@ export default { margin-bottom: 10px; font-size: 16px; } - + &-content{ + width: 450px; + height: 400px; + &>div{ + text-align: center; + margin:10px 0; + color:#fff; + font-size: 16px; + } + } .custom-btn { background: #0b1b3a; color: #19eaff; diff --git a/src/views/materialfile/component/addFenlei.vue b/src/views/materialfile/component/addFenlei.vue index 3727d7c..b9e62eb 100644 --- a/src/views/materialfile/component/addFenlei.vue +++ b/src/views/materialfile/component/addFenlei.vue @@ -62,6 +62,16 @@
+