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',
......
src/assets/images/background.jpg

569 KB | W: | H:

src/assets/images/background.jpg

796 KB | W: | H:

src/assets/images/background.jpg
src/assets/images/background.jpg
src/assets/images/background.jpg
src/assets/images/background.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -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)
} }
......
<template> <template>
<div> <div>
<el-card class="box-card" style="height:325px"> <el-card class="box-card" style="height: 325px">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>我的任务</span> <span>我的任务</span>
</div> </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 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="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="warehouseName" label="仓库名称" align="center" :show-overflow-tooltip="true"/>
...@@ -18,136 +171,291 @@ ...@@ -18,136 +171,291 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination :total="total" :current-page="page + 1" style="margin-top: 8px;" layout="total, prev, pager, next" <el-pagination :total="total" :current-page="page + 1" style="margin-top: 8px;" layout="total, prev, pager, next"
:page-size="3" @current-change="postPageChange"/> :page-size="3" @current-change="postPageChange"/> -->
</el-card> </el-card>
<purse-detail ref="purchase" />
<rm-detail ref="repair" />
<scrap-detail ref="scrap" />
<borrow-detail ref="borrowMy" />
<borrow-other-detail ref="borrowOther" />
<transfer-detail ref="allocationDown" />
<transfer-detail ref="allocationUp" />
<return-other-detail ref="returnOther" />
<purse-detail ref="purchase" />
<rm-detail ref="repair" />
<scrap-detail ref="scrap" />
<borrow-detail ref="borrowMy" />
<!-- <borrow-other-detail ref="borrowOther" /> -->
<transfer-detail ref="allocationDown" />
<transfer-detail ref="allocationUp" />
<!-- <return-other-detail ref="returnOther" /> -->
<inventoryReturn-detail ref="inventoryReturn" />
<purse-approval ref="approvalpurchase" @ok="initTask"/> <purse-approval ref="approvalpurchase" @ok="initTask" />
<rm-approval ref="approvalrepair" @ok="initTask"/> <rm-approval ref="approvalrepair" @ok="initTask" />
<scrap-approval ref="approvalscrap" @ok="initTask"/> <scrap-approval ref="approvalscrap" @ok="initTask" />
<borrow-approval ref="approvalborrowMy" @ok="initTask"/> <borrow-approval ref="approvalborrowMy" @ok="initTask" />
<borrow-other-approval ref="approvalborrowOther" @ok="initTask"/> <!-- <borrow-other-approval ref="approvalborrowOther" @ok="initTask"/> -->
<transfer-approval ref="approvalallocationDown" @ok="initTask"/> <transfer-approval ref="approvalallocationDown" @ok="initTask" />
<transfer-approval ref="approvalallocationUp" @ok="initTask"/> <transfer-approval ref="approvalallocationUp" @ok="initTask" />
<return-other-approval ref="approvalreturnOther" @ok="initTask"/> <!-- <return-other-approval ref="approvalreturnOther" @ok="initTask"/> -->
</div> <inventoryReturn-approval ref="approvalallinventoryReturn" @ok="initTask" />
</div>
</template> </template>
<script> <script>
import { initPdata } from '@/api/data' import { initPdata } from "@/api/data";
import { transform } from '@/utils/index' import md5 from "js-md5";
import { getPageAllOrderList } from '@/api/process' import { getPageAllOrderList } from '@/api/process'
import BorrowDetail from '@/views/warehouse/borrow/list/form' import { getPageAllOrderListHZ } from '@/api/process'
import BorrowOtherDetail from '@/views/warehouse/borrowOther/list/form' import BorrowDetail from "@/views/warehouse/borrow/list/form";
import TransferDetail from '@/views/warehouse/transfer/list/form' import BorrowOtherDetail from "@/views/warehouse/borrowOther/list/form";
import RmDetail from '@/views/rms/rm/rmList/form' import TransferDetail from "@/views/warehouse/transfer/list/form";
import ScrapDetail from '@/views/rms/scrap/scrapList/form' import RmDetail from "@/views/rms/rm/rmList/form";
import PurseDetail from '@/views/purse/list/form' import ScrapDetail from "@/views/rms/scrap/scrapList/form";
import ReturnOtherDetail from '@/views/warehouse/returnOther/list/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 BorrowApproval from "@/views/warehouse/borrow/approval/form";
import BorrowOtherApproval from '@/views/warehouse/borrowOther/approval/form' import BorrowOtherApproval from "@/views/warehouse/borrowOther/approval/form";
import TransferApproval from '@/views/warehouse/transfer/tranApproval/form' import TransferApproval from "@/views/warehouse/transfer/tranApproval/form";
import RmApproval from '@/views/rms/rm/rmApproval/form' import RmApproval from "@/views/rms/rm/rmApproval/form";
import ScrapApproval from '@/views/rms/scrap/scrapApproval/form' import ScrapApproval from "@/views/rms/scrap/scrapApproval/form";
import PurseApproval from '@/views/purse/approval/form' import PurseApproval from "@/views/purse/approval/form";
import ReturnOtherApproval from '@/views/warehouse/returnOther/approval/form' import ReturnOtherApproval from "@/views/warehouse/returnOther/approval/form";
import InventoryReturnApproval from "@/views/warehouse/inventoryReturn/approval/form";
export default { export default {
data() { data() {
return { 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: [], data: [],
orgId: this.$store.state.user.user.baseJpOrganization.id, orgId: this.$store.state.user.user.baseJpOrganization.id,
userId: this.$store.state.user.user.id, userId: this.$store.state.user.user.id,
roleIds: this.$store.state.user.user.roleIds, 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: { processUrl: {
"purchase": '/api/PuchaseOrder/GetByID', purchase: "/api/PuchaseOrder/GetByID",
"borrowMy": '/api/Borrow/GetByID', borrowMy: "/api/Borrow/GetByID",
"repair": '/api/FixReceiveApply/GetByID', repair: "/api/FixReceiveApply/GetByID",
"scrap": '/api/FixReceiveApply/GetByID', scrap: "/api/FixReceiveApply/GetByID",
"allocationUp": '/api/Transfer/GetByID', allocationUp: "/api/Transfer/GetByID",
"allocationDown": '/api/Transfer/GetByID', allocationDown: "/api/Transfer/GetByID",
"borrowOther": '/api/Transfer/GetByID', inventoryReturn: "/api/InventoryReturn/GetByID",
"returnOther": '/api/Transfer/GetByID', },
} };
}
}, },
components: {BorrowDetail, BorrowOtherDetail, TransferDetail, PurseDetail, RmDetail, ScrapDetail,ReturnOtherDetail, components: {
BorrowApproval, BorrowOtherApproval, TransferApproval, PurseApproval, RmApproval, ScrapApproval,ReturnOtherApproval BorrowDetail,
BorrowOtherDetail,
TransferDetail,
PurseDetail,
RmDetail,
ScrapDetail,
ReturnOtherDetail,
InventoryReturnDetail,
BorrowApproval,
BorrowOtherApproval,
TransferApproval,
PurseApproval,
RmApproval,
ScrapApproval,
ReturnOtherApproval,
InventoryReturnApproval,
}, },
created() { created() {
this.initTask() this.initTask();
}, },
methods: { methods: {
initTask() { initTask() {
getPageAllOrderList({page: this.page, size: this.size, orgId: this.orgId // getPageAllOrderList({page: this.page, size: this.size, orgId: this.orgId
,userId: this.userId, roleIds: this.roleIds}).then(res => { // ,userId: this.userId, roleIds: this.roleIds}).then(res => {
if(res.code == '10000'){ // if(res.code == '10000'){
this.data = res.data.content // this.data = res.data.content
this.total = res.data.totalElements // this.total = res.data.totalElements
} else if (res.code === '10030') { // } else if (res.code === '10030') {
this.$message.error('与服务器时间不同步,请调整时间') // this.$message.error('与服务器时间不同步,请调整时间')
} // }
else { // else {
this.$message.error(res.msg) // 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);
} }
}) });
},
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) { postPageChange(e) {
this.page = e - 1 this.page = e - 1;
this.initTask() this.initTask();
}, },
show(data) { show(data) {
const _this = this.$refs[data.flowType] const _this = this.$refs[data.flowType];
var params = {id: data.orderId} var params = { id: data.orderId };
if (data.flowType == 'allocationUp' || data.flowType == 'allocationDown') { params.type = '调拨' } if (
if (data.flowType == 'borrowOther') { params.type = '跨库借用' } data.flowType == "allocationUp" ||
if (data.flowType == 'returnOther') { params.type = '跨库归还' } data.flowType == "allocationDown"
initPdata( window._CONFIG['serviceURL'] + this.processUrl[data.flowType], transform(params)).then(res => { ) {
if(res.code == '10000') { params.type = "调拨";
_this.form = res.data }
_this.getSteps(res.data.flowType, res.data.orgId) // if (data.flowType == 'borrowOther') { params.type = '跨库借用' }
} // if (data.flowType == 'returnOther') { params.type = '跨库归还' }
else { var fsdata = {
this.$message.error(res.msg) 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) { approval(data) {
const _this = this.$refs['approval'+ data.flowType] const _this = this.$refs["approval" + data.flowType];
var params = {id: data.orderId} var params = { id: data.orderId };
if (data.flowType == 'allocationUp' || data.flowType == 'allocationDown') { params.type = '调拨' } if (
if (data.flowType == 'borrowOther') { params.type = '跨库借用' } data.flowType == "allocationUp" ||
if (data.flowType == 'returnOther') { params.type = '跨库归还' } data.flowType == "allocationDown"
initPdata( window._CONFIG['serviceURL'] + this.processUrl[data.flowType], transform(params)).then(res => { ) {
if(res.code == '10000') { params.type = "调拨";
_this.eForm = res.data }
_this.form = res.data // if (data.flowType == 'borrowOther') { params.type = '跨库借用' }
_this.getSteps(res.data.flowType, res.data.orgId) // 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 { } else {
this.$message.error(res.msg) this.$message.error(res.msg);
} }
}) });
_this.dialog = true _this.dialog = true;
}, },
initPost() { initPost() {
this.initTask() this.initTask();
} },
} },
} };
</script> </script>
<style lang="less" scoped> <style lang="less" >
.el-table__column-filter-trigger i {
</style> color: #fff;
\ No newline at end of file font-size: 14px;
-webkit-transform: scale(0.75);
transform: scale(0.75);
font-weight: 700;
background: #1890ff;
}
</style>
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论