12 changed files with 2045 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
// 查询分页列表 -- 业务汇总表
|
|||
summary: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/Summary', |
|||
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' } |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
// 查询分页列表 -- 滞销品查询
|
|||
deadStockList: function(params) { |
|||
return request({ |
|||
url: '/wms/apiadmin/inventory/wmsinventory/deadStockList', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
// 查询分页列表 -- 营业汇总表
|
|||
businessSummary: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/businessSummary', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 查询分页列表 -- 营业明细表
|
|||
businessDetails: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/businessDetails', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 查询分页列表 -- 营业保外分析表
|
|||
outInsuranceBusiness: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/outInsuranceBusiness', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 查询分页列表 -- 营业欠款分析表
|
|||
debtBusiness: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/debtBusiness', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
// 查询分页列表 -- 库存查询表
|
|||
inventoryStockList: function(params) { |
|||
return request({ |
|||
url: '/wms/apiadmin/inventory/wmsinventory/inventoryStockList', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,310 @@ |
|||
<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-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.createEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="结算日期"> |
|||
<el-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型"> |
|||
<el-input v-model="listQuery.params.busType" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="名称"> |
|||
<el-input v-model="listQuery.params.name" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="工种"> |
|||
<el-input v-model="listQuery.params.serviceType" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="维修单类型"> |
|||
<el-input v-model="listQuery.params.billType" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="科目"> |
|||
<el-input v-model="listQuery.params.subject" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="图号"> |
|||
<el-input v-model="listQuery.params.goodsSkuCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="供应商"> |
|||
<el-input v-model="listQuery.params.supplierName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="厂家"> |
|||
<el-input v-model="listQuery.params.manufacturerName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="销售价/工时单价"> |
|||
<el-input v-model="listQuery.params.price" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="维修单号/销售单号"> |
|||
<el-input v-model="listQuery.params.billNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="服务顾问"> |
|||
<el-input v-model="listQuery.params.waitorName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="维修技师"> |
|||
<el-input v-model="listQuery.params.repairerName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车型"> |
|||
<el-input v-model="listQuery.params.vehModel" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号"> |
|||
<el-input v-model="listQuery.params.vehMark" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车架号"> |
|||
<el-input v-model="listQuery.params.vinNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="所属公司"> |
|||
<el-input v-model="listQuery.params.useOrgName" placeholder="" clearable/> |
|||
</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> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--Start 主页面主要部分 --> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<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="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="busType" label="业务类型" align="center" width="100" /> |
|||
<el-table-column prop="name" label="名称" align="center" min-width="100" /> |
|||
<el-table-column prop="billState" label="单据状态" align="center" width="100" /> |
|||
<el-table-column prop="serviceType" label="工种" align="center" width="100" /> |
|||
<el-table-column prop="billType" label="维修单类型" align="center" width="100" /> |
|||
<el-table-column prop="subject" label="维修科目" align="center" width="100" /> |
|||
<el-table-column prop="goodsSkuTitle" label="图号" align="center" width="100" /> |
|||
<el-table-column prop="supplierName" label="供应商" align="center" min-width="100" /> |
|||
<el-table-column prop="manufacturerName" label="厂家" align="center" min-width="100" /> |
|||
<el-table-column prop="price" label="销售价/工时单价" align="center" width="100" /> |
|||
<el-table-column prop="num" label="数量" align="center" width="100" /> |
|||
<el-table-column prop="discount" label="折扣" align="center" width="100" /> |
|||
<el-table-column prop="discountAmount" label="折后金额" align="center" width="100" /> |
|||
<el-table-column prop="cost" label="成本单价" align="center" width="100" /> |
|||
<el-table-column prop="costTotal" label="合计成本" align="center" width="100" /> |
|||
<el-table-column prop="profit" label="利润" align="center" width="100" /> |
|||
<el-table-column prop="billNo" label="维修单号/销售单号" align="center" width="190" /> |
|||
<el-table-column prop="createTime" label="开单时间" align="center" width="120" /> |
|||
<el-table-column prop="dispatchTime" label="派工时间" align="center" width="120" /> |
|||
<el-table-column prop="finishTime" label="竣工时间" align="center" width="120" /> |
|||
<el-table-column prop="settleTime" label="结算时间" align="center" width="120" /> |
|||
<el-table-column prop="waitorName" label="服务顾问" align="center" width="100" /> |
|||
<el-table-column prop="repairerName" label="维修技师" align="center" width="100" /> |
|||
<el-table-column prop="customerName" label="客户" align="center" width="100" /> |
|||
<el-table-column prop="vehModel" label="车型" align="center" width="100" /> |
|||
<el-table-column prop="vehMark" label="车牌号" align="center" width="100" /> |
|||
<el-table-column prop="vinNo" label="车架号" align="center" width="100" /> |
|||
</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/business' |
|||
|
|||
export default { |
|||
name: 'BusinessDetail', |
|||
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 |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
createStartTime: '', |
|||
createEndTime: '', |
|||
busType: '', |
|||
name: '', |
|||
billState: '', |
|||
serviceType: '', |
|||
billType: '', |
|||
subject: '', |
|||
goodsSkuCode: '', |
|||
supplierName: '', |
|||
manufacturerName: '', |
|||
price: '', |
|||
billNo: '', |
|||
waitorName: '', |
|||
repairerName: '', |
|||
customerName: '', |
|||
vehModel: '', |
|||
vehMark: '', |
|||
vinNo: '', |
|||
useOrgName: '', |
|||
deptName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
// 初始化变量 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
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.busDetailsList(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: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
createStartTime: '', |
|||
createEndTime: '', |
|||
busType: '', |
|||
name: '', |
|||
billState: '', |
|||
serviceType: '', |
|||
billType: '', |
|||
subject: '', |
|||
goodsSkuCode: '', |
|||
supplierName: '', |
|||
manufacturerName: '', |
|||
price: '', |
|||
billNo: '', |
|||
waitorName: '', |
|||
repairerName: '', |
|||
customerName: '', |
|||
vehModel: '', |
|||
vehMark: '', |
|||
vinNo: '', |
|||
useOrgName: '', |
|||
deptName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,224 @@ |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="开单日期"> |
|||
<el-date-picker v-model="listQuery.params.createStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.createEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="结算日期"> |
|||
<el-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</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-search" size="small" @click="handleToday">本日</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentMonth">本月</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentYear">本年</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> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--Start 主页面主要部分 --> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<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="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="busType" label="业务类型" align="center" width="100" /> |
|||
<el-table-column prop="name" label="名称" align="center" min-width="100" /> |
|||
<el-table-column prop="billState" label="单据状态" align="center" width="100" /> |
|||
<el-table-column prop="serviceType" label="工种" align="center" width="100" /> |
|||
<el-table-column prop="billType" label="维修单类型" align="center" width="100" /> |
|||
<el-table-column prop="subject" label="维修科目" align="center" width="100" /> |
|||
<el-table-column prop="goodsSkuCode" label="图号" align="center" width="100" /> |
|||
<el-table-column prop="supplierName" label="供应商" align="center" min-width="100" /> |
|||
<el-table-column prop="manufacturerName" label="厂家" align="center" min-width="100" /> |
|||
<el-table-column prop="num" label="数量" align="center" width="100" /> |
|||
<el-table-column prop="discountAmount" label="折后金额合计" align="center" width="100" /> |
|||
<el-table-column prop="costTotal" label="成本合计" align="center" width="100" /> |
|||
<el-table-column prop="profit" label="利润" align="center" width="100" /> |
|||
</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/business' |
|||
|
|||
export default { |
|||
name: 'ServiceSummary', |
|||
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 |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
createStartTime: '', |
|||
createEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
// 初始化变量 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
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.summary(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() |
|||
}, |
|||
handleToday() { |
|||
this.listQuery.params.dateType = '1' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentMonth() { |
|||
this.listQuery.params.dateType = '2' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentYear() { |
|||
this.listQuery.params.dateType = '3' |
|||
this.handleFilter() |
|||
}, |
|||
// 点击重置 |
|||
handleReset() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
createStartTime: '', |
|||
createEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,217 @@ |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="所属公司"> |
|||
<el-input v-model="listQuery.params.useOrgName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="所属门店"> |
|||
<el-input v-model="listQuery.params.deptName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="商品名称"> |
|||
<el-input v-model="listQuery.params.goodsSpuName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="图号"> |
|||
<el-input v-model="listQuery.params.goodsSkuCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="供应商"> |
|||
<el-input v-model="listQuery.params.supplierName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="厂家"> |
|||
<el-input v-model="listQuery.params.manufacturerName" 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> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--Start 主页面主要部分 --> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<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="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="goodsSpuName" label="商品名称" align="center" width="100" /> |
|||
<el-table-column prop="goodsSkuCode" label="图号" align="center" width="100" /> |
|||
<el-table-column prop="manufacturerName" label="生产厂家" align="center" min-width="100" /> |
|||
<el-table-column prop="supplierName" label="供应商" align="center" min-width="100" /> |
|||
<el-table-column prop="billState" label="库存数量" align="center" width="100" /> |
|||
<el-table-column prop="inventoryAge" label="最长库龄" align="center" width="100" /> |
|||
<el-table-column prop="salesTime" label="最近一次销售时间" align="center" width="100" /> |
|||
<el-table-column prop="noSalesDays" label="未销售天数" align="center" width="100" /> |
|||
<el-table-column prop="storageTime" label="最近一次入库时间" align="center" width="100" /> |
|||
<el-table-column prop="avgPrice" label="平均成本单价" align="center" width="100" /> |
|||
<el-table-column prop="totalCost" label="成本合计" align="center" width="100" /> |
|||
</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/deadStock' |
|||
|
|||
export default { |
|||
name: 'DeadStock', |
|||
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 |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
useOrgName: '', |
|||
deptName: '', |
|||
goodsSpuName: '', |
|||
goodsSkuCode: '', |
|||
manufacturerName: '', |
|||
supplierName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
// 初始化变量 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
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.deadStockList(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: 5, |
|||
total: 0, |
|||
params: { |
|||
useOrgName: '', |
|||
deptName: '', |
|||
goodsSpuName: '', |
|||
goodsSkuCode: '', |
|||
manufacturerName: '', |
|||
supplierName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,214 @@ |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="结算日期"> |
|||
<el-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</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-search" size="small" @click="handleToday">本日</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentMonth">本月</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentYear">本年</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> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--Start 主页面主要部分 --> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<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="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="billType" label="维修单类型" align="center" width="100" /> |
|||
<el-table-column prop="hourAmount" label="工时费" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmount" label="材料费" align="center" min-width="100" /> |
|||
<el-table-column prop="addAmount" label="附加费" align="center" min-width="100" /> |
|||
<el-table-column prop="otherAmount" label="其他附加费" align="center" width="100" /> |
|||
<el-table-column prop="totalAmount" label="收入合计" align="center" width="100" /> |
|||
<el-table-column prop="hourAmountCost" label="工时成本" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmountCost" label="材料成本" align="center" width="100" /> |
|||
<el-table-column prop="otherAmountCost" label="附加成本" align="center" width="100" /> |
|||
<el-table-column prop="totalCost" label="成本合计" align="center" width="100" /> |
|||
<el-table-column prop="profit" label="利润合计" align="center" width="100" /> |
|||
<el-table-column prop="billNum" label="涉及单数" align="center" width="100" /> |
|||
</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/doBusiness' |
|||
|
|||
export default { |
|||
name: 'BusinessAnalysisByFirst', |
|||
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 |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
// 初始化变量 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
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.outInsuranceBusiness(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() |
|||
}, |
|||
handleToday() { |
|||
this.listQuery.params.dateType = '1' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentMonth() { |
|||
this.listQuery.params.dateType = '2' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentYear() { |
|||
this.listQuery.params.dateType = '3' |
|||
this.handleFilter() |
|||
}, |
|||
// 点击重置 |
|||
handleReset() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,215 @@ |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="结算日期"> |
|||
<el-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</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-search" size="small" @click="handleToday">本日</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentMonth">本月</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentYear">本年</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> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--Start 主页面主要部分 --> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<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="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="billType" label="维修单类型" align="center" width="100" /> |
|||
<el-table-column prop="hourAmount" label="工时费" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmount" label="材料费" align="center" min-width="100" /> |
|||
<el-table-column prop="addAmount" label="附加费" align="center" min-width="100" /> |
|||
<el-table-column prop="otherAmount" label="其他附加费" align="center" width="100" /> |
|||
<el-table-column prop="totalAmount" label="应收合计" align="center" width="100" /> |
|||
<el-table-column prop="hourAmountCost" label="工时成本" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmountCost" label="材料成本" align="center" width="100" /> |
|||
<el-table-column prop="otherAmountCost" label="附加成本" align="center" width="100" /> |
|||
<el-table-column prop="totalCost" label="成本合计" align="center" width="100" /> |
|||
<el-table-column prop="billNum" label="单数" align="center" width="100" /> |
|||
<el-table-column prop="debtNum" label="当前欠款单数" align="center" width="100" /> |
|||
<el-table-column prop="debtAmount" label="当前欠款金额" align="center" width="100" /> |
|||
</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/doBusiness' |
|||
|
|||
export default { |
|||
name: 'BusinessAnalysisBySecond', |
|||
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 |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
// 初始化变量 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
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.debtBusiness(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() |
|||
}, |
|||
handleToday() { |
|||
this.listQuery.params.dateType = '1' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentMonth() { |
|||
this.listQuery.params.dateType = '2' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentYear() { |
|||
this.listQuery.params.dateType = '3' |
|||
this.handleFilter() |
|||
}, |
|||
// 点击重置 |
|||
handleReset() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,223 @@ |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="结算日期"> |
|||
<el-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</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-search" size="small" @click="handleToday">本日</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentMonth">本月</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentYear">本年</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> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--Start 主页面主要部分 --> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<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="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="settleTime" label="结算日期" align="center" width="100" /> |
|||
<el-table-column prop="turnover" label="营业额" align="center" width="100" /> |
|||
<el-table-column prop="billNum" label="涉及单数" align="center" min-width="100" /> |
|||
<el-table-column prop="hourAmount" label="工时" align="center" min-width="100" /> |
|||
<el-table-column prop="goodsAmount" label="材料" align="center" width="100" /> |
|||
<el-table-column prop="addAmount" label="附加项目" align="center" width="100" /> |
|||
<el-table-column prop="otherAmountCost" label="其他附加项目" align="center" width="100" /> |
|||
<el-table-column prop="backAmount" label="退货" align="center" width="100" /> |
|||
<el-table-column prop="cost" label="成本" align="center" width="100" /> |
|||
<el-table-column prop="hourAmountCost" label="工时成本" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmountCost" label="材料成本" align="center" width="100" /> |
|||
<el-table-column prop="otherAmountCost" label="其他附加项目成本" align="center" width="100" /> |
|||
<el-table-column prop="grossProfit" label="毛利润" align="center" width="100" /> |
|||
<el-table-column prop="packsReceivable" label="三包应收" align="center" width="100" /> |
|||
<el-table-column prop="packsHourAmount" label="三包工时" align="center" width="100" /> |
|||
<el-table-column prop="packsGoodsAmount" label="三包用料" align="center" width="100" /> |
|||
<el-table-column prop="packsOtherAmount" label="三包(包含其他附加)" align="center" width="100" /> |
|||
<el-table-column prop="outReceivable" label="保外应收" align="center" width="100" /> |
|||
<el-table-column prop="outHourAmount" label="保外工时" align="center" width="100" /> |
|||
<el-table-column prop="outGoodsAmount" label="保外用料" align="center" width="100" /> |
|||
<el-table-column prop="outOtherAmount" label="保外附加(包含其他附加)" align="center" width="100" /> |
|||
</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/doBusiness' |
|||
|
|||
export default { |
|||
name: 'BusinessSummary', |
|||
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 |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
// 初始化变量 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
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.businessSummary(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() |
|||
}, |
|||
handleToday() { |
|||
this.listQuery.params.dateType = '1' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentMonth() { |
|||
this.listQuery.params.dateType = '2' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentYear() { |
|||
this.listQuery.params.dateType = '3' |
|||
this.handleFilter() |
|||
}, |
|||
// 点击重置 |
|||
handleReset() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,297 @@ |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="结算日期"> |
|||
<el-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="单据编号"> |
|||
<el-input v-model="listQuery.params.billNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="单据类型"> |
|||
<el-input v-model="listQuery.params.busType" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="维修单类型"> |
|||
<el-input v-model="listQuery.params.billType" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="科目"> |
|||
<el-input v-model="listQuery.params.subject" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="客户"> |
|||
<el-input v-model="listQuery.params.customer" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号"> |
|||
<el-input v-model="listQuery.params.vehMark" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车架号"> |
|||
<el-input v-model="listQuery.params.vinNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="欠款"> |
|||
<el-input v-model="listQuery.params.vinNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="承诺回款日期"> |
|||
<el-date-picker v-model="listQuery.params.paymentStartDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.paymentEndDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="超期天数"> |
|||
<el-input v-model="listQuery.params.vinNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="对接人"> |
|||
<el-input v-model="listQuery.params.dockingPeople" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="服务顾问"> |
|||
<el-input v-model="listQuery.params.waitorName" 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-search" size="small" @click="handleToday">本日</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentMonth">本月</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentYear">本年</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> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--Start 主页面主要部分 --> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<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="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="billNo" label="单据编号" align="center" width="100" /> |
|||
<el-table-column prop="createTime" label="开单时间" align="center" width="100" /> |
|||
<el-table-column prop="finishTime" label="竣工时间" align="center" min-width="100" /> |
|||
<el-table-column prop="settleTime" label="结算时间" align="center" min-width="100" /> |
|||
<el-table-column prop="busType" label="单据类型" align="center" width="100" /> |
|||
<el-table-column prop="billType" label="维修单类型" align="center" width="100" /> |
|||
<el-table-column prop="subject" label="维修科目" align="center" width="100" /> |
|||
<el-table-column prop="customerName" label="客户" align="center" width="100" /> |
|||
<el-table-column prop="vehMark" label="车牌号" align="center" width="100" /> |
|||
<el-table-column prop="vinNo" label="车架号" align="center" width="100" /> |
|||
<el-table-column prop="hourAmount" label="工时" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmount" label="材料" align="center" width="100" /> |
|||
<el-table-column prop="addAmount" label="附加" align="center" width="100" /> |
|||
<el-table-column prop="otherAmount" label="其他附加" align="center" width="100" /> |
|||
<el-table-column prop="totalAmount" label="合计" align="center" width="100" /> |
|||
<el-table-column prop="costTotal" label="成本" align="center" width="100" /> |
|||
<el-table-column prop="hourAmountCost" label="工时成本" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmountCost" label="材料成本" align="center" width="100" /> |
|||
<el-table-column prop="otherAmountCost" label="其他附加项目成本" align="center" width="100" /> |
|||
<el-table-column prop="profit" label="利润" align="center" width="100" /> |
|||
<el-table-column prop="receivedAmount" label="已交款" align="center" width="100" /> |
|||
<el-table-column prop="debt" label="欠款" align="center" width="100" /> |
|||
<el-table-column prop="paymentDate" label="承诺回款日期" align="center" width="100" /> |
|||
<el-table-column prop="overDueDays" label="超期天数" align="center" width="100" /> |
|||
<el-table-column prop="dockingPeople" label="对接人" align="center" width="100" /> |
|||
<el-table-column prop="waitorName" label="服务顾问" align="center" width="100" /> |
|||
</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/doBusiness' |
|||
|
|||
export default { |
|||
name: 'OperatingDetail', |
|||
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 |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
createEndTime: '', |
|||
busType: '', |
|||
billType: '', |
|||
subject: '', |
|||
customer: '', |
|||
billState: '', |
|||
serviceType: '', |
|||
debtStart: '', |
|||
debtEnd: '', |
|||
paymentStartDate: '', |
|||
paymentEndDate: '', |
|||
overdueStartDay: '', |
|||
overdueEndDay: '', |
|||
dockingPeople: '', |
|||
waitorName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
// 初始化变量 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
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.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.businessDetails(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() |
|||
}, |
|||
handleToday() { |
|||
this.listQuery.params.dateType = '1' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentMonth() { |
|||
this.listQuery.params.dateType = '2' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentYear() { |
|||
this.listQuery.params.dateType = '3' |
|||
this.handleFilter() |
|||
}, |
|||
// 点击重置 |
|||
handleReset() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
createEndTime: '', |
|||
busType: '', |
|||
billType: '', |
|||
subject: '', |
|||
customer: '', |
|||
billState: '', |
|||
serviceType: '', |
|||
debtStart: '', |
|||
debtEnd: '', |
|||
paymentStartDate: '', |
|||
paymentEndDate: '', |
|||
overdueStartDay: '', |
|||
overdueEndDay: '', |
|||
dockingPeople: '', |
|||
waitorName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,257 @@ |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="商品ID"> |
|||
<el-input v-model="listQuery.params.goodsID" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="商品名称"> |
|||
<el-input v-model="listQuery.params.goodsSpuName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="图号"> |
|||
<el-input v-model="listQuery.params.goodsSkuCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="库存数量"> |
|||
<el-input v-model="listQuery.params.countStart" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="成本单价"> |
|||
<el-input v-model="listQuery.params.goodsSkuCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="销售单价"> |
|||
<el-input v-model="listQuery.params.goodsSkuCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="仓库"> |
|||
<el-input v-model="listQuery.params.warehouseName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="库区"> |
|||
<el-input v-model="listQuery.params.wareAreaName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="库位"> |
|||
<el-input v-model="listQuery.params.warehouseRackCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="供应商"> |
|||
<el-input v-model="listQuery.params.supplierName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="生产厂家"> |
|||
<el-input v-model="listQuery.params.manufacturerName" 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> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--Start 主页面主要部分 --> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<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="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="goodsID" label="商品ID" align="center" width="100" /> |
|||
<el-table-column prop="goodsSpuName" label="商品名称" align="center" width="100" /> |
|||
<el-table-column prop="goodsSkuCode" label="图号" align="center" min-width="100" /> |
|||
<el-table-column prop="goodsSkuOwnSpec" label="规格" align="center" min-width="100" /> |
|||
<el-table-column prop="unit" label="单位" align="center" width="100" /> |
|||
<el-table-column prop="count" label="库存数量" align="center" width="100" /> |
|||
<el-table-column prop="cost" label="成本单价" align="center" width="100" /> |
|||
<el-table-column prop="costTotal" label="成本合计" align="center" width="100" /> |
|||
<el-table-column prop="price" label="销售单价" align="center" width="100" /> |
|||
<el-table-column prop="warehouseName" label="仓库" align="center" width="100" /> |
|||
<el-table-column prop="wareAreaName" label="库区" align="center" width="100" /> |
|||
<el-table-column prop="warehouseRackCode" label="库位" align="center" width="100" /> |
|||
<el-table-column prop="supplierName" label="供应商" align="center" width="100" /> |
|||
<el-table-column prop="manufacturerName" label="生产厂家" align="center" width="100" /> |
|||
<el-table-column prop="firstInDate" label="首次入库日期" align="center" width="100" /> |
|||
<el-table-column prop="lastStorageDate" label="最近一次入库日期" align="center" width="100" /> |
|||
<el-table-column prop="lastSalesDate" label="最近一次销售时间" align="center" width="100" /> |
|||
<el-table-column prop="inventoryAge" label="最近一次入库距当前天数" align="center" width="100" /> |
|||
<el-table-column prop="manufactorBillNo" label="订单编号" align="center" width="100" /> |
|||
<el-table-column prop="procurementMethod" label="采购方式" align="center" width="100" /> |
|||
<el-table-column prop="purchaseTypeValue" label="采购类别" align="center" width="100" /> |
|||
<el-table-column prop="manufacturersOrderTypeValue" label="厂家订单类型" align="center" width="100" /> |
|||
</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/inventory' |
|||
|
|||
export default { |
|||
name: 'Inventory', |
|||
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 |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
goodsID: '', |
|||
goodsSpuName: '', |
|||
goodsSkuCode: '', |
|||
countStart: '', |
|||
countEnd: '', |
|||
costStart: '', |
|||
costEnd: '', |
|||
priceStart: '', |
|||
priceEnd: '', |
|||
warehouseName: '', |
|||
wareAreaName: '', |
|||
warehouseRackCode: '', |
|||
supplierName: '', |
|||
manufacturerName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
// 初始化变量 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
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.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
req.inventoryStockList(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: 5, |
|||
total: 0, |
|||
params: { |
|||
goodsID: '', |
|||
goodsSpuName: '', |
|||
goodsSkuCode: '', |
|||
countStart: '', |
|||
countEnd: '', |
|||
costStart: '', |
|||
costEnd: '', |
|||
priceStart: '', |
|||
priceEnd: '', |
|||
warehouseName: '', |
|||
wareAreaName: '', |
|||
warehouseRackCode: '', |
|||
supplierName: '', |
|||
manufacturerName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
Loading…
Reference in new issue