Commit 89fd8240 by T

首页功能完善、bug修复

parent 7baa5c8f
...@@ -32,8 +32,8 @@ module.exports = { ...@@ -32,8 +32,8 @@ module.exports = {
}, },
// Various Dev Server settings // Various Dev Server settings
host: '192.168.2.104', // can be overwritten by process.env.HOST host: '192.168.2.246', // can be overwritten by process.env.HOST
port: 8999, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined port: 9998, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true, autoOpenBrowser: true,
errorOverlay: true, errorOverlay: true,
notifyOnErrors: false, notifyOnErrors: false,
......
...@@ -9,12 +9,32 @@ ...@@ -9,12 +9,32 @@
<!-- 全局配置 --> <!-- 全局配置 -->
<script> <script>
window._CONFIG = {}; window._CONFIG = {};
//自建平台
// window._CONFIG['serviceURL'] = 'http://192.168.2.105:8848';
// window._CONFIG['userURL'] = 'http://192.168.2.105:10005';
//总平台
window._CONFIG['serviceURL'] = 'http://192.168.2.105:5000'; window._CONFIG['serviceURL'] = 'http://192.168.2.105:5000';
window._CONFIG['userURL'] = 'http://192.168.2.105:10004'; window._CONFIG['userURL'] = 'http://192.168.2.105:10004';
// window._CONFIG['serviceURL'] = 'http://41.190.20.132:5000'; // window._CONFIG['serviceURL'] = 'http://41.190.20.132:5000';
// window._CONFIG['userURL'] = 'http://41.190.20.132:10004'; // window._CONFIG['userURL'] = 'http://41.190.20.132:10004';
</script> </script>
<script type="text/javascript" src="http://jzpt.gat.zj:10001/web_jznew/js/jquery/jquery-1.8.3.js"></script>
</head> </head>
<!-- 浙警智评-V1.0-202208 BEGIN -->
<link rel="stylesheet" type="text/css" href="http://jzpt.gat.zj:10001/web_jznew/pages/jzwd/zjzp/css/jzwd-zjzp.css">
<link rel="stylesheet" type="text/css" href="http://jzpt.gat.zj:10001/web_jznew/pages/jzwd/zjzp/css/jzwd-zjzp.css">
<script type="text/javascript" src="http://jzpt.gat.zj:10001/web_jznew/pages/jzwd/zjzp/js/jzwd-zjzp.js"></script>
<link rel="stylesheet" type="text/css" href="http://jzpt.gat.zj:10001/web_jznew/pages/jzwd/zjzp/js/hsycmsAlert/hsycmsAlert.min.css">
<script type="text/javascript" src="http://jzpt.gat.zj:10001/web_jznew/pages/jzwd/zjzp/js/hsycmsAlert/hsycmsAlert.min.js"></script>
<script>
$(document).ready(function () {
/**
     * xtbs:系统标识,通过综合资源服务平台获取(*)
    */
$("#zjzp").jzwdZjzp({'xtbs': 'A3301004000002021010002'});
});
</script>
<!-- 浙警智评-V1.0-202208 END-->
<body> <body>
<div id="app"> <div id="app">
<div class="sampleContainer"> <div class="sampleContainer">
...@@ -25,6 +45,7 @@ ...@@ -25,6 +45,7 @@
<span class="dot dot_4"></span> <span class="dot dot_4"></span>
</div> </div>
</div> </div>
<div id="zjzp" class="zjwd-zjzp"></div>
</div> </div>
</body> </body>
</html> </html>
...@@ -87,6 +87,14 @@ export function getPageAllOrderList(data) { ...@@ -87,6 +87,14 @@ export function getPageAllOrderList(data) {
}) })
} }
export function getPageAllOrderListHZ(data) {
return request({
url: window._CONFIG['serviceURL'] + '/api/Process/GetPageAllOrderListHZ',
method: 'post',
data: transform(data)
})
}
export function insertInventory(data) { export function insertInventory(data) {
return request({ return request({
url: window._CONFIG['serviceURL'] + '/api/Print/InsertInventory', url: window._CONFIG['serviceURL'] + '/api/Print/InsertInventory',
......
...@@ -181,6 +181,16 @@ ...@@ -181,6 +181,16 @@
sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+escape(JSON.stringify(data))) sign: md5('a1dca4cf35a6d460128f5e4ad401b1c1'+parseInt(new Date().getTime()/1000)+'1.0'+escape(JSON.stringify(data)))
} }
return k; return k;
// let k = {
// appKey: '8EV3FnNIVaKp8zekBwxpdw==',
// orgId: '',
// version: '1.0',
// timestamp: parseInt(new Date().getTime()/1000),
// body: escape(JSON.stringify(data)),
// sign: md5('f0457716734855a2a9f337a4070c6977'+parseInt(new Date().getTime()/1000)+'1.0'+escape(JSON.stringify(data)))
// }
// return k;
} }
export function downloadFile(obj, name, suffix) { export function downloadFile(obj, name, suffix) {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<v-tooltip /> <v-tooltip />
<v-axis /> <v-axis />
<v-legend /> <v-legend />
<v-bar position="装备类型*使用量" color="parentName" :adjust="adjust" /> <v-bar :position="position" color="parentName" :adjust="adjust" />
</v-chart> </v-chart>
</el-card> </el-card>
</template> </template>
...@@ -31,20 +31,22 @@ export default { ...@@ -31,20 +31,22 @@ export default {
adjust: [{ adjust: [{
type: 'dodge', type: 'dodge',
marginRatio: 1 / 32, marginRatio: 1 / 32,
}] }],
chartData: [],
position: '装备类型*使用量'
} }
}, },
computed: { computed: {
chartData() { // chartData() {
let dv = new DataSet.View().source(this.dataSource) // let dv = new DataSet.View().source(this.dataSource)
dv.transform({ // dv.transform({
type: 'fold', // type: 'fold',
fields: ['近七天使用次数', '近三十天使用次数'], // fields: ['近七天使用次数', '近三十天使用次数'],
key: '装备类型', // key: '装备类型',
value: '使用量', // value: '使用量',
}); // });
return dv.rows // return dv.rows
}, // },
}, },
mounted() { mounted() {
this.init() this.init()
...@@ -55,6 +57,15 @@ export default { ...@@ -55,6 +57,15 @@ export default {
getSyPOrg({orgId: this.orgId}).then(res => { getSyPOrg({orgId: this.orgId}).then(res => {
if (res.code == "10000") { if (res.code == "10000") {
this.dataSource = res.data this.dataSource = res.data
let dv = new DataSet.View().source(this.dataSource)
dv.transform({
type: 'fold',
fields: ['近七天使用次数', '近三十天使用次数'],
key: '装备类型',
value: '使用量',
});
this.chartData = dv
this.position = '装备类型*使用量'
} else { } else {
this.$message.error(res.msg) this.$message.error(res.msg)
} }
...@@ -65,6 +76,15 @@ export default { ...@@ -65,6 +76,15 @@ export default {
getSyPOrg({orgId: this.orgId}).then(res => { getSyPOrg({orgId: this.orgId}).then(res => {
if (res.code == "10000") { if (res.code == "10000") {
this.dataSource = res.data this.dataSource = res.data
let dv = new DataSet.View().source(this.dataSource)
dv.transform({
type: 'fold',
fields: ['近七天使用次数', '近三十天使用次数'],
key: '装备类型',
value: '使用量',
});
this.chartData = dv
this.position = '装备类型*使用量'
} else { } else {
this.$message.error(res.msg) this.$message.error(res.msg)
} }
...@@ -73,6 +93,15 @@ export default { ...@@ -73,6 +93,15 @@ export default {
getWxPOrg({orgId: this.orgId}).then(res => { getWxPOrg({orgId: this.orgId}).then(res => {
if (res.code == "10000") { if (res.code == "10000") {
this.dataSource = res.data this.dataSource = res.data
let dv = new DataSet.View().source(this.dataSource)
dv.transform({
type: 'fold',
fields: ['近三个月维修次数', '近半年维修次数'],
key: '装备类型',
value: '维修数',
});
this.chartData = dv
this.position = '装备类型*维修数'
} else { } else {
this.$message.error(res.msg) this.$message.error(res.msg)
} }
...@@ -81,6 +110,15 @@ export default { ...@@ -81,6 +110,15 @@ export default {
getBfPOrg({orgId: this.orgId}).then(res => { getBfPOrg({orgId: this.orgId}).then(res => {
if (res.code == "10000") { if (res.code == "10000") {
this.dataSource = res.data this.dataSource = res.data
let dv = new DataSet.View().source(this.dataSource)
dv.transform({
type: 'fold',
fields: ['近三个月报废数', '近半年使报废数'],
key: '装备类型',
value: '报废数',
});
this.chartData = dv
this.position = '装备类型*报废数'
} else { } else {
this.$message.error(res.msg) this.$message.error(res.msg)
} }
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :xs="12" :sm="12" :lg="{span: '3-4'}" class="card-panel-col">
<!-- <el-col :xs="12" :sm="12" :lg="{span: '3-4'}" class="card-panel-col">
<div class="card-panel" @click="nextpage('在库数量')"> <div class="card-panel" @click="nextpage('在库数量')">
<div class="card-panel-icon-wrapper icon-money"> <div class="card-panel-icon-wrapper icon-money">
<svg-icon icon-class="zaiku" class-name="card-panel-icon" /> <svg-icon icon-class="zaiku" class-name="card-panel-icon" />
...@@ -43,8 +44,8 @@ ...@@ -43,8 +44,8 @@
<count-to :start-val="0" :end-val="count.lyCount" :duration="2600" class="card-panel-num"/> <count-to :start-val="0" :end-val="count.lyCount" :duration="2600" class="card-panel-num"/>
</div> </div>
</div> </div>
</el-col> </el-col> -->
<el-col :xs="12" :sm="12" :lg="{span: '3-4'}" class="card-panel-col"> <!-- <el-col :xs="12" :sm="12" :lg="{span: '3-4'}" class="card-panel-col">
<div class="card-panel" @click="nextpage('维修数量')"> <div class="card-panel" @click="nextpage('维修数量')">
<div class="card-panel-icon-wrapper icon-people"> <div class="card-panel-icon-wrapper icon-people">
<svg-icon icon-class="维修" class-name="card-panel-icon1"/> <svg-icon icon-class="维修" class-name="card-panel-icon1"/>
...@@ -54,11 +55,12 @@ ...@@ -54,11 +55,12 @@
<count-to :start-val="0" :end-val="count.wxCount" :duration="2600" class="card-panel-num"/> <count-to :start-val="0" :end-val="count.wxCount" :duration="2600" class="card-panel-num"/>
</div> </div>
</div> </div>
</el-col> </el-col> -->
<el-col :xs="12" :sm="12" :lg="{span: '3-4'}" class="card-panel-col"> <el-col :xs="12" :sm="12" :lg="{span: '3-4'}" class="card-panel-col">
<div class="card-panel" @click="nextpage('即将报废数量')"> <div class="card-panel" @click="nextpage('即将报废数量')">
<div class="card-panel-icon-wrapper icon-people"> <div class="card-panel-icon-wrapper icon-people">
<svg-icon icon-class="30天" class-name="card-panel-icon1"/> <svg-icon icon-class="30天" class-name="card-panel-icon"/>
</div> </div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text">临近报废</div> <div class="card-panel-text">临近报废</div>
...@@ -66,7 +68,7 @@ ...@@ -66,7 +68,7 @@
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :xs="12" :sm="12" :lg="{span: '3-4'}" class="card-panel-col"> <!-- <el-col :xs="12" :sm="12" :lg="{span: '3-4'}" class="card-panel-col">
<div class="card-panel" @click="nextpage('报废数量')"> <div class="card-panel" @click="nextpage('报废数量')">
<div class="card-panel-icon-wrapper icon-people"> <div class="card-panel-icon-wrapper icon-people">
<svg-icon icon-class="garbage" class-name="card-panel-icon" /> <svg-icon icon-class="garbage" class-name="card-panel-icon" />
...@@ -76,6 +78,28 @@ ...@@ -76,6 +78,28 @@
<count-to :start-val="0" :end-val="count.bfCount" :duration="2600" class="card-panel-num"/> <count-to :start-val="0" :end-val="count.bfCount" :duration="2600" class="card-panel-num"/>
</div> </div>
</div> </div>
</el-col> -->
<el-col :xs="12" :sm="12" :lg="{span: '3-4'}" class="card-panel-col">
<div class="card-panel" >
<div class="card-panel-icon-wrapper icon-money">
<svg-icon icon-class="collecting" class-name="card-panel-icon" />
</div>
<div class="card-panel-description">
<div class="card-panel-text">今年出库数</div>
<count-to :start-val="0" :end-val="2600" :duration="2600" class="card-panel-num"/>
</div>
</div>
</el-col>
<el-col :xs="12" :sm="12" :lg="{span: '3-4'}" class="card-panel-col">
<div class="card-panel" >
<div class="card-panel-icon-wrapper icon-people">
<svg-icon icon-class="garbage" class-name="card-panel-icon" />
</div>
<div class="card-panel-description">
<div class="card-panel-text">今年报废数</div>
<count-to :start-val="0" :end-val="280" :duration="2600" class="card-panel-num"/>
</div>
</div>
</el-col> </el-col>
</el-row> </el-row>
</template> </template>
...@@ -133,7 +157,7 @@ export default { ...@@ -133,7 +157,7 @@ export default {
}) })
} }
}, },
nextpage(param) { nextpage(param) {
if(param === '即将报废数量') { if(param === '即将报废数量') {
this.$router.push({ this.$router.push({
path: '/warehouse/inventoryList', path: '/warehouse/inventoryList',
...@@ -153,6 +177,7 @@ export default { ...@@ -153,6 +177,7 @@ export default {
}) })
} }
} }
} }
} }
</script> </script>
...@@ -163,8 +188,15 @@ export default { ...@@ -163,8 +188,15 @@ export default {
.el-col-lg-3-4 { .el-col-lg-3-4 {
width: 14.28%; width: 14.28%;
} }
.el-col-lg-3-4 {
width: 20.28%;
}
// .card-panel-col{
// margin-bottom: 15px;
// }
.card-panel-col{ .card-panel-col{
margin-bottom: 15px; margin-bottom: 20px;
margin-left: 65px;
} }
.card-panel { .card-panel {
height: 108px; height: 108px;
...@@ -197,12 +229,12 @@ export default { ...@@ -197,12 +229,12 @@ export default {
} }
.card-panel-icon { .card-panel-icon {
float: left; float: left;
font-size: 48px; font-size: 65px;
}
.card-panel-icon1 {
float: left;
font-size: 52px;
} }
// .card-panel-icon1 {
// float: left;
// font-size: 52px;
// }
.card-panel-description { .card-panel-description {
float: right; float: right;
font-weight: bold; font-weight: bold;
...@@ -215,7 +247,7 @@ export default { ...@@ -215,7 +247,7 @@ export default {
margin-bottom: 12px; margin-bottom: 12px;
} }
.card-panel-num { .card-panel-num {
font-size: 20px; font-size: 23px;
} }
} }
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<el-table-column label="操作" width="150" align="center" fixed="right"> <el-table-column label="操作" width="150" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="primary" @click="edit(scope.row)">编辑</el-button> <el-button size="mini" type="primary" @click="edit(scope.row)">编辑</el-button>
<el-popconfirm title="确定删除本条数据吗?" @onConfirm="subDelete(scope.row.id)"> <el-popconfirm title="确定删除本条数据吗?" @confirm="subDelete(scope.row.id)">
<el-button slot="reference" type="danger" size="mini">删除</el-button> <el-button slot="reference" type="danger" size="mini">删除</el-button>
</el-popconfirm> </el-popconfirm>
</template> </template>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<el-table-column label="操作" width="150" align="center" fixed="right"> <el-table-column label="操作" width="150" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="primary" @click="edit(scope.row)">编辑</el-button> <el-button size="mini" type="primary" @click="edit(scope.row)">编辑</el-button>
<el-popconfirm title="确定删除本条数据吗?" @onConfirm="subDelete(scope.row.id)"> <el-popconfirm title="确定删除本条数据吗?" @confirm="subDelete(scope.row.id)">
<el-button slot="reference" type="danger" size="mini">删除</el-button> <el-button slot="reference" type="danger" size="mini">删除</el-button>
</el-popconfirm> </el-popconfirm>
</template> </template>
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="primary" key="2" @click="show(scope.row)">查看</el-button> <el-button size="mini" type="primary" key="2" @click="show(scope.row)">查看</el-button>
<el-button size="mini" type="warning" key="3" @click="printExcel(scope.row.order)" v-if="scope.row.stateType == '0' && scope.row.type == 1">打印</el-button> <el-button size="mini" type="warning" key="3" @click="printExcel(scope.row.order)" v-if="scope.row.stateType == '0' && scope.row.type == 1">打印</el-button>
<el-button size="mini" type="warning" key="4" @click="printExcel2(scope.row.order)" v-if="(scope.row.type == 0 || scope.row.type == 4)">打印</el-button> <!-- <el-button size="mini" type="warning" key="4" @click="printExcel2(scope.row.order)" v-if="(scope.row.type == 0 || scope.row.type == 4)">打印</el-button> -->
<el-button size="mini" type="warning" key="1" v-if="scope.row.type == 11 && scope.row.currentState == 1" @click="transfer(scope.row)">转换</el-button> <el-button size="mini" type="warning" key="1" v-if="scope.row.type == 11 && scope.row.currentState == 1" @click="transfer(scope.row)">转换</el-button>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -165,7 +165,7 @@ export default { ...@@ -165,7 +165,7 @@ export default {
list = res.data.content list = res.data.content
import('@/utils/Export2Excel备份').then(excel => { import('@/utils/Export2Excel备份').then(excel => {
const tHeader = ['仓库名称', '装备名称', '装备型号名称', '数量'] const tHeader = ['仓库名称', '装备名称', '装备型号名称', '数量']
const filterVal = ['warehouseName', 'equName', 'sizeCount', 'count'] const filterVal = ['warehouseName', 'equName', 'sizeName', 'count']
result = this.formatJson(filterVal, list) result = this.formatJson(filterVal, list)
excel.export_json_to_excel({ excel.export_json_to_excel({
header: tHeader, header: tHeader,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论