Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
police-jyzb-vue-hzzj
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
Tian
police-jyzb-vue-hzzj
Commits
89fd8240
Commit
89fd8240
authored
Oct 08, 2022
by
T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页功能完善、bug修复
parent
7baa5c8f
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
539 行增加
和
122 行删除
+539
-122
index.js
config/index.js
+2
-2
index.html
index.html
+21
-0
process.js
src/api/process.js
+8
-0
background.0564k.jpg
src/assets/images/background.0564k.jpg
+0
-0
background.jpg
src/assets/images/background.jpg
+0
-0
index.js
src/utils/index.js
+10
-0
ColumnarChart.vue
src/views/dashboard/ColumnarChart.vue
+50
-12
MyTask.vue
src/views/dashboard/MyTask.vue
+399
-91
PanelGroup.vue
src/views/dashboard/PanelGroup.vue
+45
-13
index.vue
src/views/system/threshold/index.vue
+2
-2
common.vue
src/views/warehouse/inAndOutMang/common.vue
+1
-1
index.vue
src/views/warehouse/scrap/index.vue
+1
-1
没有找到文件。
config/index.js
View file @
89fd8240
...
...
@@ -32,8 +32,8 @@ module.exports = {
},
// Various Dev Server settings
host
:
'192.168.2.
104
'
,
// 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
host
:
'192.168.2.
246
'
,
// can be overwritten by process.env.HOST
port
:
9998
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser
:
true
,
errorOverlay
:
true
,
notifyOnErrors
:
false
,
...
...
index.html
View file @
89fd8240
...
...
@@ -9,12 +9,32 @@
<!-- 全局配置 -->
<script>
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
[
'userURL'
]
=
'http://192.168.2.105:10004'
;
// window._CONFIG['serviceURL'] = 'http://41.190.20.132:5000';
// window._CONFIG['userURL'] = 'http://41.190.20.132:10004';
</script>
<script
type=
"text/javascript"
src=
"http://jzpt.gat.zj:10001/web_jznew/js/jquery/jquery-1.8.3.js"
></script>
</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>
<div
id=
"app"
>
<div
class=
"sampleContainer"
>
...
...
@@ -25,6 +45,7 @@
<span
class=
"dot dot_4"
></span>
</div>
</div>
<div
id=
"zjzp"
class=
"zjwd-zjzp"
></div>
</div>
</body>
</html>
src/api/process.js
View file @
89fd8240
...
...
@@ -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
)
{
return
request
({
url
:
window
.
_CONFIG
[
'serviceURL'
]
+
'/api/Print/InsertInventory'
,
...
...
src/assets/images/background.0564k.jpg
0 → 100644
View file @
89fd8240
569 KB
src/assets/images/background.jpg
View replaced file @
7baa5c8f
View file @
89fd8240
569 KB
|
W:
|
H:
796 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/utils/index.js
View file @
89fd8240
...
...
@@ -181,6 +181,16 @@
sign
:
md5
(
'a1dca4cf35a6d460128f5e4ad401b1c1'
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
'1.0'
+
escape
(
JSON
.
stringify
(
data
)))
}
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
)
{
...
...
src/views/dashboard/ColumnarChart.vue
View file @
89fd8240
...
...
@@ -12,7 +12,7 @@
<v-tooltip
/>
<v-axis
/>
<v-legend
/>
<v-bar
position=
"装备类型*使用量
"
color=
"parentName"
:adjust=
"adjust"
/>
<v-bar
:position=
"position
"
color=
"parentName"
:adjust=
"adjust"
/>
</v-chart>
</el-card>
</
template
>
...
...
@@ -31,20 +31,22 @@ export default {
adjust
:
[{
type
:
'dodge'
,
marginRatio
:
1
/
32
,
}]
}],
chartData
:
[],
position
:
'装备类型*使用量'
}
},
computed
:
{
chartData
()
{
let
dv
=
new
DataSet
.
View
().
source
(
this
.
dataSource
)
dv
.
transform
({
type
:
'fold'
,
fields
:
[
'近七天使用次数'
,
'近三十天使用次数'
],
key
:
'装备类型'
,
value
:
'使用量'
,
});
return
dv
.
rows
},
//
chartData() {
//
let dv = new DataSet.View().source(this.dataSource)
//
dv.transform({
//
type: 'fold',
//
fields: ['近七天使用次数', '近三十天使用次数'],
//
key: '装备类型',
//
value: '使用量',
//
});
//
return dv.rows
//
},
},
mounted
()
{
this
.
init
()
...
...
@@ -55,6 +57,15 @@ export default {
getSyPOrg
({
orgId
:
this
.
orgId
}).
then
(
res
=>
{
if
(
res
.
code
==
"10000"
)
{
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
{
this
.
$message
.
error
(
res
.
msg
)
}
...
...
@@ -65,6 +76,15 @@ export default {
getSyPOrg
({
orgId
:
this
.
orgId
}).
then
(
res
=>
{
if
(
res
.
code
==
"10000"
)
{
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
{
this
.
$message
.
error
(
res
.
msg
)
}
...
...
@@ -73,6 +93,15 @@ export default {
getWxPOrg
({
orgId
:
this
.
orgId
}).
then
(
res
=>
{
if
(
res
.
code
==
"10000"
)
{
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
{
this
.
$message
.
error
(
res
.
msg
)
}
...
...
@@ -81,6 +110,15 @@ export default {
getBfPOrg
({
orgId
:
this
.
orgId
}).
then
(
res
=>
{
if
(
res
.
code
==
"10000"
)
{
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
{
this
.
$message
.
error
(
res
.
msg
)
}
...
...
src/views/dashboard/MyTask.vue
View file @
89fd8240
<
template
>
<div>
<el-card
class=
"box-card"
style=
"height:
325px"
>
<div>
<el-card
class=
"box-card"
style=
"height:
325px"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
我的任务
</span>
</div>
<el-table
:data=
"data"
style=
"width:100%"
border
stripe
>
<el-tabs
v-model=
"activeName"
class=
"InOutOrder"
style=
"margin-top: -25px"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"入库单"
name=
"入库单"
>
<el-table
:data=
"data"
style=
"width: 100%"
@
filter-change=
"filterChangedInOrder"
border
stripe
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
align=
"center"
/>
<el-table-column
prop=
"orderNo"
label=
"订单号"
align=
"center"
width=
"210"
:show-overflow-tooltip=
"true"
/>
<el-table-column
prop=
"warehouseName"
label=
"仓库名称"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<!--
<el-table-column
prop=
"flowName"
label=
"业务流程"
width=
"160"
align=
"center"
/>
-->
<el-table-column
prop=
"flowName"
label=
"业务流程"
width=
"160"
column-key=
"flowName"
:filters=
"[
{ text: '采购入库', value: '采购流程' },
{ text: '调拨入库', value: '调拨申请流程' },
]"
filter-placement="bottom-end"
align="center"
/>
<el-table-column
prop=
"updateTime"
sortable
label=
"更新时间"
width=
"160"
align=
"center"
/>
<el-table-column
label=
"操作"
width=
"180"
align=
"center"
>
<template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"warning"
@
click=
"approval(scope.row)"
>
审批
</el-button
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"show(scope.row)"
>
查看
</el-button
>
</
template
>
</el-table-column>
</el-table>
<el-pagination
:total=
"total"
:current-page=
"page + 1"
style=
"margin-top: 8px"
layout=
"total, prev, pager, next"
:page-size=
"2"
@
current-change=
"postPageChange"
/>
</el-tab-pane>
<el-tab-pane
label=
"出库单"
name=
"出库单"
>
<el-table
:data=
"data"
style=
"width: 100%"
@
filter-change=
"filterChangedOutOrder"
border
stripe
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
align=
"center"
/>
<el-table-column
prop=
"orderNo"
label=
"订单号"
align=
"center"
width=
"210"
:show-overflow-tooltip=
"true"
/>
<el-table-column
prop=
"warehouseName"
label=
"仓库名称"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<!-- <el-table-column prop="flowName" label="业务流程" width="160" align="center"/> -->
<el-table-column
prop=
"flowName"
label=
"业务流程"
width=
"160"
column-key=
"flowName"
:filters=
"[
{ text: '借用出库', value: '本库借用流程' },
{ text: '调拨出库', value: '调拨下发流程' },
{ text: '维修出库', value: '维修流程' },
{ text: '报废出库', value: '报废流程' },
]"
filter-placement=
"bottom-end"
align=
"center"
/>
<el-table-column
prop=
"updateTime"
sortable
label=
"更新时间"
width=
"160"
align=
"center"
/>
<el-table-column
label=
"操作"
width=
"180"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"warning"
@
click=
"approval(scope.row)"
>
审批
</el-button
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"show(scope.row)"
>
查看
</el-button
>
</
template
>
</el-table-column>
</el-table>
<el-pagination
:total=
"total"
:current-page=
"page + 1"
style=
"margin-top: 8px"
layout=
"total, prev, pager, next"
:page-size=
"2"
@
current-change=
"postPageChange"
/>
</el-tab-pane>
</el-tabs>
<!-- <el-table :data="data" style="width:100%" border stripe>
<el-table-column type="index" label="序号" width="50" align="center"/>
<el-table-column prop="orderNo" label="订单号" align="center" width="210" :show-overflow-tooltip="true"/>
<el-table-column prop="warehouseName" label="仓库名称" align="center" :show-overflow-tooltip="true"/>
...
...
@@ -18,136 +171,291 @@
</el-table-column>
</el-table>
<el-pagination :total="total" :current-page="page + 1" style="margin-top: 8px;" layout="total, prev, pager, next"
:page-size=
"3"
@
current-change=
"postPageChange"
/>
</el-card>
:page-size="3" @current-change="postPageChange"/>
-->
</el-card>
<purse-detail
ref=
"purchase"
/>
<rm-detail
ref=
"repair"
/>
<scrap-detail
ref=
"scrap"
/>
<borrow-detail
ref=
"borrowMy"
/>
<borrow-other-detail
ref=
"borrowOther"
/
>
<!-- <borrow-other-detail ref="borrowOther" /> --
>
<transfer-detail
ref=
"allocationDown"
/>
<transfer-detail
ref=
"allocationUp"
/>
<return-other-detail
ref=
"returnOther"
/>
<!-- <return-other-detail ref="returnOther" /> -->
<inventoryReturn-detail
ref=
"inventoryReturn"
/>
<purse-approval
ref=
"approvalpurchase"
@
ok=
"initTask"
/>
<rm-approval
ref=
"approvalrepair"
@
ok=
"initTask"
/>
<scrap-approval
ref=
"approvalscrap"
@
ok=
"initTask"
/>
<borrow-approval
ref=
"approvalborrowMy"
@
ok=
"initTask"
/
>
<borrow-other-approval
ref=
"approvalborrowOther"
@
ok=
"initTask"
/>
<transfer-approval
ref=
"approvalallocationDown"
@
ok=
"initTask"
/>
<transfer-approval
ref=
"approvalallocationUp"
@
ok=
"initTask"
/>
<return-other-approval
ref=
"approvalreturnOther"
@
ok=
"initTask"
/>
</div>
<purse-approval
ref=
"approvalpurchase"
@
ok=
"initTask"
/>
<rm-approval
ref=
"approvalrepair"
@
ok=
"initTask"
/>
<scrap-approval
ref=
"approvalscrap"
@
ok=
"initTask"
/>
<borrow-approval
ref=
"approvalborrowMy"
@
ok=
"initTask"
/>
<!-- <borrow-other-approval ref="approvalborrowOther" @ok="initTask"/> --
>
<transfer-approval
ref=
"approvalallocationDown"
@
ok=
"initTask"
/>
<transfer-approval
ref=
"approvalallocationUp"
@
ok=
"initTask"
/>
<!-- <return-other-approval ref="approvalreturnOther" @ok="initTask"/> -->
<inventoryReturn-approval
ref=
"approvalallinventoryReturn"
@
ok=
"initTask"
/>
</div>
</template>
<
script
>
import
{
initPdata
}
from
'@/api/data'
import
{
transform
}
from
'@/utils/index'
import
{
initPdata
}
from
"@/api/data"
;
import
md5
from
"js-md5"
;
import
{
getPageAllOrderList
}
from
'@/api/process'
import
BorrowDetail
from
'@/views/warehouse/borrow/list/form'
import
BorrowOtherDetail
from
'@/views/warehouse/borrowOther/list/form'
import
TransferDetail
from
'@/views/warehouse/transfer/list/form'
import
RmDetail
from
'@/views/rms/rm/rmList/form'
import
ScrapDetail
from
'@/views/rms/scrap/scrapList/form'
import
PurseDetail
from
'@/views/purse/list/form'
import
ReturnOtherDetail
from
'@/views/warehouse/returnOther/list/form'
import
{
getPageAllOrderListHZ
}
from
'@/api/process'
import
BorrowDetail
from
"@/views/warehouse/borrow/list/form"
;
import
BorrowOtherDetail
from
"@/views/warehouse/borrowOther/list/form"
;
import
TransferDetail
from
"@/views/warehouse/transfer/list/form"
;
import
RmDetail
from
"@/views/rms/rm/rmList/form"
;
import
ScrapDetail
from
"@/views/rms/scrap/scrapList/form"
;
import
PurseDetail
from
"@/views/purse/list/form"
;
import
ReturnOtherDetail
from
"@/views/warehouse/returnOther/list/form"
;
import
InventoryReturnDetail
from
"@/views/warehouse/inventoryReturn/list/form"
;
import
BorrowApproval
from
'@/views/warehouse/borrow/approval/form'
import
BorrowOtherApproval
from
'@/views/warehouse/borrowOther/approval/form'
import
TransferApproval
from
'@/views/warehouse/transfer/tranApproval/form'
import
RmApproval
from
'@/views/rms/rm/rmApproval/form'
import
ScrapApproval
from
'@/views/rms/scrap/scrapApproval/form'
import
PurseApproval
from
'@/views/purse/approval/form'
import
ReturnOtherApproval
from
'@/views/warehouse/returnOther/approval/form'
import
BorrowApproval
from
"@/views/warehouse/borrow/approval/form"
;
import
BorrowOtherApproval
from
"@/views/warehouse/borrowOther/approval/form"
;
import
TransferApproval
from
"@/views/warehouse/transfer/tranApproval/form"
;
import
RmApproval
from
"@/views/rms/rm/rmApproval/form"
;
import
ScrapApproval
from
"@/views/rms/scrap/scrapApproval/form"
;
import
PurseApproval
from
"@/views/purse/approval/form"
;
import
ReturnOtherApproval
from
"@/views/warehouse/returnOther/approval/form"
;
import
InventoryReturnApproval
from
"@/views/warehouse/inventoryReturn/approval/form"
;
export
default
{
data
()
{
return
{
// activeName: 'inOrder',
// data: [],
// orgId: this.$store.state.user.user.baseJpOrganization.id,
// userId: this.$store.state.user.user.id,
// roleIds: this.$store.state.user.user.roleIds,
// page: 0, size: 2, total: 0,
// processUrl: {
// "purchase": '/api/PuchaseOrder/GetByID',
// "borrowMy": '/api/Borrow/GetByID',
// "repair": '/api/FixReceiveApply/GetByID',
// "scrap": '/api/FixReceiveApply/GetByID',
// "allocationUp": '/api/Transfer/GetByID',
// "allocationDown": '/api/Transfer/GetByID',
// "borrowOther": '/api/Transfer/GetByID',
// "returnOther": '/api/Transfer/GetByID',
// }
activeName
:
"入库单"
,
data
:
[],
orgId
:
this
.
$store
.
state
.
user
.
user
.
baseJpOrganization
.
id
,
userId
:
this
.
$store
.
state
.
user
.
user
.
id
,
roleIds
:
this
.
$store
.
state
.
user
.
user
.
roleIds
,
page
:
0
,
size
:
3
,
total
:
0
,
page
:
0
,
size
:
2
,
total
:
0
,
type
:
this
.
activeName
,
orderType
:
this
.
flowName
,
processUrl
:
{
"purchase"
:
'/api/PuchaseOrder/GetByID'
,
"borrowMy"
:
'/api/Borrow/GetByID'
,
"repair"
:
'/api/FixReceiveApply/GetByID'
,
"scrap"
:
'/api/FixReceiveApply/GetByID'
,
"allocationUp"
:
'/api/Transfer/GetByID'
,
"allocationDown"
:
'/api/Transfer/GetByID'
,
"borrowOther"
:
'/api/Transfer/GetByID'
,
"returnOther"
:
'/api/Transfer/GetByID'
,
}
}
purchase
:
"/api/PuchaseOrder/GetByID"
,
borrowMy
:
"/api/Borrow/GetByID"
,
repair
:
"/api/FixReceiveApply/GetByID"
,
scrap
:
"/api/FixReceiveApply/GetByID"
,
allocationUp
:
"/api/Transfer/GetByID"
,
allocationDown
:
"/api/Transfer/GetByID"
,
inventoryReturn
:
"/api/InventoryReturn/GetByID"
,
},
};
},
components
:
{
BorrowDetail
,
BorrowOtherDetail
,
TransferDetail
,
PurseDetail
,
RmDetail
,
ScrapDetail
,
ReturnOtherDetail
,
BorrowApproval
,
BorrowOtherApproval
,
TransferApproval
,
PurseApproval
,
RmApproval
,
ScrapApproval
,
ReturnOtherApproval
components
:
{
BorrowDetail
,
BorrowOtherDetail
,
TransferDetail
,
PurseDetail
,
RmDetail
,
ScrapDetail
,
ReturnOtherDetail
,
InventoryReturnDetail
,
BorrowApproval
,
BorrowOtherApproval
,
TransferApproval
,
PurseApproval
,
RmApproval
,
ScrapApproval
,
ReturnOtherApproval
,
InventoryReturnApproval
,
},
created
()
{
this
.
initTask
()
this
.
initTask
()
;
},
methods
:
{
initTask
()
{
getPageAllOrderList
({
page
:
this
.
page
,
size
:
this
.
size
,
orgId
:
this
.
orgId
,
userId
:
this
.
userId
,
roleIds
:
this
.
roleIds
}).
then
(
res
=>
{
if
(
res
.
code
==
'10000'
){
this
.
data
=
res
.
data
.
content
this
.
total
=
res
.
data
.
totalElements
}
else
if
(
res
.
code
===
'10030'
)
{
this
.
$message
.
error
(
'与服务器时间不同步,请调整时间'
)
// getPageAllOrderList({page: this.page, size: this.size, orgId: this.orgId
// ,userId: this.userId, roleIds: this.roleIds}).then(res => {
// if(res.code == '10000'){
// this.data = res.data.content
// this.total = res.data.totalElements
// } else if (res.code === '10030') {
// this.$message.error('与服务器时间不同步,请调整时间')
// }
// else {
// this.$message.error(res.msg)
// }
// })
getPageAllOrderListHZ
({
page
:
this
.
page
,
size
:
this
.
size
,
orgId
:
this
.
orgId
,
userId
:
this
.
userId
,
roleIds
:
this
.
roleIds
,
type
:
this
.
activeName
,
orderType
:
this
.
flowName
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
"10000"
)
{
this
.
data
=
res
.
data
.
content
;
this
.
total
=
res
.
data
.
totalElements
;
}
else
if
(
res
.
code
===
"10030"
)
{
this
.
$message
.
error
(
"与服务器时间不同步,请调整时间"
);
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
else
{
this
.
$message
.
error
(
res
.
msg
)
});
},
handleClick
()
{
this
.
flowName
=
""
;
this
.
page
=
0
;
this
.
size
=
2
;
this
.
initTask
();
},
// 单据筛选
//入库单
filterChangedInOrder
(
filterCondition
)
{
//filterCondition是一个对象,其key值为通过在el-table-column中设置的column-key属性,标志哪一个列的过滤条件,可用于区分哪一个列的筛选条件发生了改变。
//filterChanged函数和filter-method属性一般而言使用一个,前者可自定义筛选条件,如需要重新查库,则比较适用,filter-method为el-table-column的属性函数,
//其绑定的函数内部逻辑为:遍历表格绑定的数据,匹配表格每一行是否满足筛选条件,然后返回,所以上述示例中的filterTag、filterChanged函数其实会重复执行,不可在其内部调用后端接口,否则会发生调用死循环。
if
(
filterCondition
.
flowName
)
{
//修改查询条件
var
str
=
""
;
filterCondition
.
flowName
.
forEach
((
element
)
=>
{
str
=
element
+
","
+
str
;
});
this
.
flowName
=
str
.
slice
(
0
,
str
.
length
-
1
);
//发送http请求,查找新数据
this
.
page
=
0
;
this
.
size
=
2
;
this
.
initTask
();
}
})
},
//出库单
filterChangedOutOrder
(
filterCondition
)
{
// console.log(filterConditionOutOrder)
//filterCondition是一个对象,其key值为通过在el-table-column中设置的column-key属性,标志哪一个列的过滤条件,可用于区分哪一个列的筛选条件发生了改变。
//filterChanged函数和filter-method属性一般而言使用一个,前者可自定义筛选条件,如需要重新查库,则比较适用,filter-method为el-table-column的属性函数,
//其绑定的函数内部逻辑为:遍历表格绑定的数据,匹配表格每一行是否满足筛选条件,然后返回,所以上述示例中的filterTag、filterChanged函数其实会重复执行,不可在其内部调用后端接口,否则会发生调用死循环。
if
(
filterCondition
.
flowName
)
{
//修改查询条件
var
str
=
""
;
filterCondition
.
flowName
.
forEach
((
element
)
=>
{
str
=
element
+
","
+
str
;
});
this
.
flowName
=
str
.
slice
(
0
,
str
.
length
-
1
);
//发送http请求,查找新数据
this
.
page
=
0
;
this
.
size
=
2
;
this
.
initTask
();
}
},
//切换页
postPageChange
(
e
)
{
this
.
page
=
e
-
1
this
.
initTask
()
this
.
page
=
e
-
1
;
this
.
initTask
()
;
},
show
(
data
)
{
const
_this
=
this
.
$refs
[
data
.
flowType
]
var
params
=
{
id
:
data
.
orderId
}
if
(
data
.
flowType
==
'allocationUp'
||
data
.
flowType
==
'allocationDown'
)
{
params
.
type
=
'调拨'
}
if
(
data
.
flowType
==
'borrowOther'
)
{
params
.
type
=
'跨库借用'
}
if
(
data
.
flowType
==
'returnOther'
)
{
params
.
type
=
'跨库归还'
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
data
.
flowType
],
transform
(
params
)).
then
(
res
=>
{
if
(
res
.
code
==
'10000'
)
{
_this
.
form
=
res
.
data
_this
.
getSteps
(
res
.
data
.
flowType
,
res
.
data
.
orgId
)
const
_this
=
this
.
$refs
[
data
.
flowType
];
var
params
=
{
id
:
data
.
orderId
};
if
(
data
.
flowType
==
"allocationUp"
||
data
.
flowType
==
"allocationDown"
)
{
params
.
type
=
"调拨"
;
}
else
{
this
.
$message
.
error
(
res
.
msg
)
// if (data.flowType == 'borrowOther') { params.type = '跨库借用' }
// if (data.flowType == 'returnOther') { params.type = '跨库归还' }
var
fsdata
=
{
appKey
:
"odykzzWm1GASj15K1AGxwQ=="
,
orgId
:
""
,
version
:
"1.0"
,
timestamp
:
parseInt
(
new
Date
().
getTime
()
/
1000
),
body
:
escape
(
JSON
.
stringify
(
params
)),
sign
:
md5
(
"a1dca4cf35a6d460128f5e4ad401b1c1"
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
"1.0"
+
escape
(
JSON
.
stringify
(
params
))
),
};
initPdata
(
window
.
_CONFIG
[
"serviceURL"
]
+
this
.
processUrl
[
data
.
flowType
],
fsdata
).
then
((
res
)
=>
{
if
(
res
.
code
==
"10000"
)
{
_this
.
form
=
res
.
data
;
_this
.
getSteps
(
res
.
data
.
flowType
,
res
.
data
.
orgId
);
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
})
_this
.
dialog
=
true
})
;
_this
.
dialog
=
true
;
},
approval
(
data
)
{
const
_this
=
this
.
$refs
[
'approval'
+
data
.
flowType
]
var
params
=
{
id
:
data
.
orderId
}
if
(
data
.
flowType
==
'allocationUp'
||
data
.
flowType
==
'allocationDown'
)
{
params
.
type
=
'调拨'
}
if
(
data
.
flowType
==
'borrowOther'
)
{
params
.
type
=
'跨库借用'
}
if
(
data
.
flowType
==
'returnOther'
)
{
params
.
type
=
'跨库归还'
}
initPdata
(
window
.
_CONFIG
[
'serviceURL'
]
+
this
.
processUrl
[
data
.
flowType
],
transform
(
params
)).
then
(
res
=>
{
if
(
res
.
code
==
'10000'
)
{
_this
.
eForm
=
res
.
data
_this
.
form
=
res
.
data
_this
.
getSteps
(
res
.
data
.
flowType
,
res
.
data
.
orgId
)
const
_this
=
this
.
$refs
[
"approval"
+
data
.
flowType
];
var
params
=
{
id
:
data
.
orderId
};
if
(
data
.
flowType
==
"allocationUp"
||
data
.
flowType
==
"allocationDown"
)
{
params
.
type
=
"调拨"
;
}
// if (data.flowType == 'borrowOther') { params.type = '跨库借用' }
// if (data.flowType == 'returnOther') { params.type = '跨库归还' }
var
fsdata
=
{
appKey
:
"odykzzWm1GASj15K1AGxwQ=="
,
orgId
:
""
,
version
:
"1.0"
,
timestamp
:
parseInt
(
new
Date
().
getTime
()
/
1000
),
body
:
escape
(
JSON
.
stringify
(
params
)),
sign
:
md5
(
"a1dca4cf35a6d460128f5e4ad401b1c1"
+
parseInt
(
new
Date
().
getTime
()
/
1000
)
+
"1.0"
+
escape
(
JSON
.
stringify
(
params
))
),
};
initPdata
(
window
.
_CONFIG
[
"serviceURL"
]
+
this
.
processUrl
[
data
.
flowType
],
fsdata
).
then
((
res
)
=>
{
if
(
res
.
code
==
"10000"
)
{
_this
.
eForm
=
res
.
data
;
_this
.
form
=
res
.
data
;
_this
.
getSteps
(
res
.
data
.
flowType
,
res
.
data
.
orgId
);
}
else
{
this
.
$message
.
error
(
res
.
msg
)
this
.
$message
.
error
(
res
.
msg
)
;
}
})
_this
.
dialog
=
true
})
;
_this
.
dialog
=
true
;
},
initPost
()
{
this
.
initTask
()
}
}
}
this
.
initTask
()
;
}
,
}
,
}
;
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
>
.el-table__column-filter-trigger
i
{
color
:
#fff
;
font-size
:
14px
;
-webkit-transform
:
scale
(
0.75
);
transform
:
scale
(
0.75
);
font-weight
:
700
;
background
:
#1890ff
;
}
</
style
>
src/views/dashboard/PanelGroup.vue
View file @
89fd8240
...
...
@@ -11,7 +11,8 @@
</div>
</div>
</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-icon-wrapper icon-money"
>
<svg-icon
icon-class=
"zaiku"
class-name=
"card-panel-icon"
/>
...
...
@@ -43,8 +44,8 @@
<count-to
:start-val=
"0"
:end-val=
"count.lyCount"
:duration=
"2600"
class=
"card-panel-num"
/>
</div>
</div>
</el-col>
<el-col
:xs=
"12"
:sm=
"12"
:lg=
"
{span: '3-4'}" class="card-panel-col">
</el-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-icon-wrapper icon-people"
>
<svg-icon
icon-class=
"维修"
class-name=
"card-panel-icon1"
/>
...
...
@@ -54,11 +55,12 @@
<count-to
:start-val=
"0"
:end-val=
"count.wxCount"
:duration=
"2600"
class=
"card-panel-num"
/>
</div>
</div>
</el-col>
</el-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-icon-wrapper icon-people"
>
<svg-icon
icon-class=
"30天"
class-name=
"card-panel-icon
1
"
/>
<svg-icon
icon-class=
"30天"
class-name=
"card-panel-icon"
/>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
临近报废
</div>
...
...
@@ -66,7 +68,7 @@
</div>
</div>
</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-icon-wrapper icon-people"
>
<svg-icon
icon-class=
"garbage"
class-name=
"card-panel-icon"
/>
...
...
@@ -76,6 +78,28 @@
<count-to
:start-val=
"0"
:end-val=
"count.bfCount"
: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-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-row>
</
template
>
...
...
@@ -153,6 +177,7 @@ export default {
})
}
}
}
}
</
script
>
...
...
@@ -163,8 +188,15 @@ export default {
.el-col-lg-3-4
{
width
:
14.28%
;
}
.el-col-lg-3-4
{
width
:
20.28%
;
}
//
.card-panel-col
{
//
margin-bottom
:
15px
;
//
}
.card-panel-col
{
margin-bottom
:
15px
;
margin-bottom
:
20px
;
margin-left
:
65px
;
}
.card-panel
{
height
:
108px
;
...
...
@@ -197,12 +229,12 @@ export default {
}
.card-panel-icon
{
float
:
left
;
font-size
:
48px
;
}
.card-panel-icon1
{
float
:
left
;
font-size
:
52px
;
font-size
:
65px
;
}
//
.card-panel-icon1
{
//
float
:
left
;
//
font-size
:
52px
;
//
}
.card-panel-description
{
float
:
right
;
font-weight
:
bold
;
...
...
@@ -215,7 +247,7 @@ export default {
margin-bottom
:
12px
;
}
.card-panel-num
{
font-size
:
2
0
px
;
font-size
:
2
3
px
;
}
}
}
...
...
src/views/system/threshold/index.vue
View file @
89fd8240
...
...
@@ -19,7 +19,7 @@
<el-table-column
label=
"操作"
width=
"150"
align=
"center"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-popconfirm
title=
"确定删除本条数据吗?"
@
onC
onfirm=
"subDelete(scope.row.id)"
>
<el-popconfirm
title=
"确定删除本条数据吗?"
@
c
onfirm=
"subDelete(scope.row.id)"
>
<el-button
slot=
"reference"
type=
"danger"
size=
"mini"
>
删除
</el-button>
</el-popconfirm>
</
template
>
...
...
@@ -43,7 +43,7 @@
<el-table-column
label=
"操作"
width=
"150"
align=
"center"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-popconfirm
title=
"确定删除本条数据吗?"
@
onC
onfirm=
"subDelete(scope.row.id)"
>
<el-popconfirm
title=
"确定删除本条数据吗?"
@
c
onfirm=
"subDelete(scope.row.id)"
>
<el-button
slot=
"reference"
type=
"danger"
size=
"mini"
>
删除
</el-button>
</el-popconfirm>
</
template
>
...
...
src/views/warehouse/inAndOutMang/common.vue
View file @
89fd8240
...
...
@@ -80,7 +80,7 @@
<
template
slot-scope=
"scope"
>
<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=
"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>
</
template
>
</el-table-column>
...
...
src/views/warehouse/scrap/index.vue
View file @
89fd8240
...
...
@@ -165,7 +165,7 @@ export default {
list
=
res
.
data
.
content
import
(
'@/utils/Export2Excel备份'
).
then
(
excel
=>
{
const
tHeader
=
[
'仓库名称'
,
'装备名称'
,
'装备型号名称'
,
'数量'
]
const
filterVal
=
[
'warehouseName'
,
'equName'
,
'size
Count
'
,
'count'
]
const
filterVal
=
[
'warehouseName'
,
'equName'
,
'size
Name
'
,
'count'
]
result
=
this
.
formatJson
(
filterVal
,
list
)
excel
.
export_json_to_excel
({
header
:
tHeader
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论