Browse Source

完善报表

master
myTest383 5 months ago
parent
commit
d8c85b50e1
  1. 27
      yxt-as-ui/src/api/statement/monthlyReport/inventoryManagement.js
  2. 54
      yxt-as-ui/src/api/storage/adjustment.js
  3. 82
      yxt-as-ui/src/router/index.js
  4. 8
      yxt-as-ui/src/views/statement/monthlyReport/claimFormRate/claimFormRate.vue
  5. 8
      yxt-as-ui/src/views/statement/monthlyReport/essentialDetails/essentialDetails.vue
  6. 193
      yxt-as-ui/src/views/statement/monthlyReport/inventoryManagement/inventoryManagement.vue
  7. 8
      yxt-as-ui/src/views/statement/monthlyReport/oneTimeRate/oneTimeRate.vue

27
yxt-as-ui/src/api/statement/monthlyReport/inventoryManagement.js

@ -0,0 +1,27 @@
import request from '@/utils/request'
// 月度报表 月度配件库存管理指标完成情况报表
export default {
// 查询分页列表
listPage: function(params) {
return request({
baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/as/v1/inventoryRate/listPage',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
// 查询分页列表
busDetailsList: function(params) {
return request({
url: '/as/v1/AsBusrepairBill/busDetailsList',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}
}

54
yxt-as-ui/src/api/storage/adjustment.js

@ -2,20 +2,22 @@ import request from '@/utils/request'
export default {
// 查询分页列表
// 查询分页列表
listPage: function(params) {
return request({
url: '/sms/v1/smspricestrategybill/listPage',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
})
},
// 初始化
init: function(data) {
return request({
url: '/sms/v1/smspricestrategybill/fetchDetailsBySid/'+data,
url: '/sms/v1/smspricestrategybill/fetchDetailsBySid/' + data,
method: 'get'
});
},
@ -27,7 +29,9 @@ export default {
url: '/sms/v1/smspricestrategybill/save',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
});
},
@ -37,7 +41,9 @@ export default {
url: '/sms/v1/smspricestrategybill/submit',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
});
},
@ -47,59 +53,71 @@ export default {
url: '/sms/v1/smspricestrategybill/delBySids',
method: 'DELETE',
data: data,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
})
},
// 流程审批(同意)
complete: function(params) {
return request({
url: '/as/v1/smspricestrategybill/complete',
url: '/sms/v1/smspricestrategybill/complete',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
})
},
// 流程审批(加签)
delegate: function(params) {
return request({
url: '/as/v1/smspricestrategybill/delegate',
url: '/sms/v1/smspricestrategybill/delegate',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
})
},
// 流程审批(驳回)
reject: function(params) {
return request({
url: '/as/v1/smspricestrategybill/reject',
url: '/sms/v1/smspricestrategybill/reject',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
})
},
// 流程审批(终止)
breakProcess: function(params) {
return request({
url: '/as/v1/smspricestrategybill/breakProcess',
url: '/sms/v1/smspricestrategybill/breakProcess',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
})
},
// 流程审批(撤回)
revokeProcess: function(params) {
return request({
url: '/as/v1/smspricestrategybill/revokeProcess',
url: '/sms/v1/smspricestrategybill/revokeProcess',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
})
},
// 审批流程(同意)获取下一环节
getNextNodesForSubmit: function(data) {
return request({
url: '/as/v1/smspricestrategybill/getNextNodesForSubmit',
url: '/sms/v1/smspricestrategybill/getNextNodesForSubmit',
method: 'get',
params: data
})
@ -107,7 +125,7 @@ export default {
// 审批流程(驳回)获取上一环节
getPreviousNodesForReject: function(data) {
return request({
url: '/as/v1/smspricestrategybill/getPreviousNodesForReject',
url: '/sms/v1/smspricestrategybill/getPreviousNodesForReject',
method: 'get',
params: data
})

82
yxt-as-ui/src/router/index.js

@ -207,7 +207,7 @@ export const constantRoutes = [{
component: () => import('@/views/operation/settleAccounts/settleAccounts.vue'),
name: 'SettleAccounts',
meta: {
title: '维修单结算管理',
title: '结算申请管理',
noCache: true
}
},
@ -238,15 +238,6 @@ export const constantRoutes = [{
noCache: true
}
},
{
path: '/salesSettlement/salesSettlement',
component: () => import('@/views/operation/salesSettlement/salesSettlement.vue'),
name: 'SalesSettlement',
meta: {
title: '销售单结算管理',
noCache: true
}
},
{
path: '/merchandisereturn/merchandisereturn',
component: () => import('@/views/operation/merchandisereturn/merchandisereturn.vue'),
@ -943,6 +934,42 @@ export const constantRoutes = [{
title: '维修项目提成明细表',
noCache: true
}
},
{
path: '/inventoryManagement/inventoryManagement',
component: () => import('@/views/statement/monthlyReport/inventoryManagement/inventoryManagement'),
name: 'InventoryManagement',
meta: {
title: '库存管理指标',
noCache: true
}
},
{
path: '/claimFormRate/claimFormRate',
component: () => import('@/views/statement/monthlyReport/claimFormRate/claimFormRate'),
name: 'ClaimForm',
meta: {
title: '索赔单生效率',
noCache: true
}
},
{
path: '/oneTimeRate/oneTimeRate',
component: () => import('@/views/statement/monthlyReport/oneTimeRate/oneTimeRate'),
name: 'OneTimeRate',
meta: {
title: '一次性满足率',
noCache: true
}
},
{
path: '/essentialDetails/essentialDetails',
component: () => import('@/views/statement/monthlyReport/essentialDetails/essentialDetails'),
name: 'EssentialDetails',
meta: {
title: '必备件明细',
noCache: true
}
}
]
},
@ -1496,6 +1523,7 @@ export const constantRoutes = [{
name: 'SecondaryCooperativeStationYiBan'
},
// 旧件处理申请 -- 编辑
{
path: '/oldPartsCopeFlow/oldPartsCopeEdit',
@ -1518,6 +1546,7 @@ export const constantRoutes = [{
name: 'OldPartsCopeYiBan'
},
// 调拨(一级站内) -- 编辑
{
path: '/allocationFlow/allocationEdit',
@ -1540,6 +1569,8 @@ export const constantRoutes = [{
name: 'AdjustmentYiBan'
},
// 调拨(分公司内) -- 编辑
{
path: '/allocationByBranchesFlow/allocationByBranchesEdit',
@ -1562,6 +1593,8 @@ export const constantRoutes = [{
name: 'AllocationByBranchesYiBan'
},
// 调拨(集团内) -- 编辑
{
path: '/allocationByGroupFlow/allocationByGroupEdit',
@ -1584,6 +1617,8 @@ export const constantRoutes = [{
name: 'AllocationByGroupYiBan'
},
// 盘盈入库 -- 编辑
{
path: '/stocktakingSurplusFlow/stocktakingSurplusEdit',
@ -1606,6 +1641,7 @@ export const constantRoutes = [{
name: 'StocktakingSurplusYiBan'
},
// 盘亏出库 -- 编辑
{
path: '/stocktakingLossFlow/stocktakingLossEdit',
@ -1650,6 +1686,7 @@ export const constantRoutes = [{
name: 'OldpPartStocktakingSurplusYiBan'
},
// 旧件盘亏出库 -- 编辑
{
path: '/oldpPartStocktakingLossFlow/oldpPartStocktakingLossEdit',
@ -1672,6 +1709,7 @@ export const constantRoutes = [{
name: 'OldpPartStocktakingLossYiBan'
},
// 销售单申请开票 -- 编辑
{
path: '/salesInvoiceFlow/salesInvoiceEdit',
@ -1694,27 +1732,9 @@ export const constantRoutes = [{
name: 'SalesInvoiceYiBan'
},
// 销售单结算管理 -- 编辑
{
path: '/xiaoshoujiesuanFlow/salesSettlementEdit',
component: () =>
import('@/views/workFlow/xiaoshoujiesuanFlow/salesSettlementEdit.vue'),
name: 'SalesSettlementEdit'
},
// 销售单结算管理 -- 待办
{
path: '/xiaoshoujiesuanFlow/salesSettlementDaiBan',
component: () =>
import('@/views/workFlow/xiaoshoujiesuanFlow/salesSettlementDaiBan.vue'),
name: 'SalesSettlementDaiBan'
},
// 销售单结算管理 -- 已办
{
path: '/xiaoshoujiesuanFlow/salesSettlementYiBan',
component: () =>
import('@/views/workFlow/xiaoshoujiesuanFlow/salesSettlementYiBan.vue'),
name: 'SalesSettlementYiBan'
}
// 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true }

8
yxt-as-ui/src/views/statement/monthlyReport/claimFormRate/claimFormRate.vue

@ -0,0 +1,8 @@
<template>
</template>
<script>
</script>
<style>
</style>

8
yxt-as-ui/src/views/statement/monthlyReport/essentialDetails/essentialDetails.vue

@ -0,0 +1,8 @@
<template>
</template>
<script>
</script>
<style>
</style>

193
yxt-as-ui/src/views/statement/monthlyReport/inventoryManagement/inventoryManagement.vue

@ -0,0 +1,193 @@
<template>
<div class="app-container">
<!--列表页面-->
<div v-show="viewState == 1">
<button-bar view-title="月度配件库存管理指标完成情况报表" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle" />
<!--Start查询列表部分-->
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="选择月份">
<el-date-picker v-model="listQuery.params.createStartTime" value-format="yyyy-MM" format="yyyy-MM"
type="date" placeholder="开始月份"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.createEndTime" value-format="yyyy-MM" format="yyyy-MM"
type="date" placeholder="结束月份"></el-date-picker>
</el-form-item>
<el-form-item label="服务站">
<el-input v-model="listQuery.params.deptName" placeholder="" clearable />
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<!--End查询列表部分-->
<div class="listtop">
<div class="tit">指标完成情况</div>
</div>
<!--Start 主页面主要部分 -->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;"
@row-click="handle">
<!-- <el-table-column fixed type="selection" align="center" width="50" /> -->
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center" />
<el-table-column prop="createTime" label="年月" align="center" width="150" />
<el-table-column prop="deptName" label="服务站" align="center" />
</el-table>
</div>
<!--End 主页面主要部分-->
<div class="pages">
<div class="tit" />
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
:limit.sync="listQuery.size" class="pagination" @pagination="getList" />
</div>
<!--End查询列表部分-->
</div>
</div>
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/statement/monthlyReport/inventoryManagement'
export default {
name: 'inventoryManagement',
components: {
Pagination,
pageye,
ButtonBar
},
data() {
return {
btndisabled: false,
btnList: [{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}],
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 1, // 1 2 3 4
tableKey: 0,
list: [],
sids: [], // SIDs
listLoading: false,
//
listQuery: {
current: 1,
size: 10,
total: 0,
params: {
createStartTime: '',
createEndTime: '',
deptName: '',
userSid: '',
orgPath: '',
menuUrl: ''
}
}
}
},
created() {
//
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
handle(row) {
console.log('handle ' + row.sid)
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doClose':
this.doClose()
break
default:
break
}
},
// sid
handleSelectionChange(row) {
const aa = []
row.forEach(element => {
aa.push(element.sid)
})
this.sids = aa
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
req.listPage(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleReset() {
this.listQuery = {
current: 1,
size: 10,
total: 0,
params: {
createStartTime: '',
createEndTime: '',
deptName: '',
userSid: '',
orgPath: '',
menuUrl: ''
}
}
this.getList()
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
</style>

8
yxt-as-ui/src/views/statement/monthlyReport/oneTimeRate/oneTimeRate.vue

@ -0,0 +1,8 @@
<template>
</template>
<script>
</script>
<style>
</style>
Loading…
Cancel
Save