提交 da2d02d1 authored 作者: Ras's avatar Ras

出货报表增加对选择记录进行,行数,体积,重量,总个数。

仓库货物报表(在库)入仓号添加链接,点击链接查看商品数据。
上级 346cbf07
......@@ -59,7 +59,23 @@
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-row :gutter="24">
<a-col :xl="3" :lg="7" :md="8" :sm="24">
<a-button type="primary" icon="download" @click="handleExportXls('商品类别')">导出</a-button>
</a-col>
<a-col :xl="3" :lg="7" :md="8" :sm="24" v-if="selectedRowKeys.length > 0">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{selectedRowKeys.length}}</a>
</a-col>
<a-col :xl="3" :lg="7" :md="8" :sm="24" v-if="selectedRowKeys.length > 0">
总体积:{{totleVolume}}
</a-col>
<a-col :xl="3" :lg="7" :md="8" :sm="24" v-if="selectedRowKeys.length > 0">
总重量:{{totleWeight}}
</a-col>
<a-col :xl="3" :lg="7" :md="8" :sm="24" v-if="selectedRowKeys.length > 0">
总件数:{{totleNum}}
</a-col>
</a-row>
</div>
<!-- table区域-begin -->
......@@ -125,6 +141,9 @@
data () {
return {
description: '客户出货报表',
totleVolume:0,
totleWeight:0,
totleNum:0,
// 表头
columns: [
{
......@@ -192,12 +211,30 @@
methods: {
initDictConfig(){
},
onSelectChange(selectedRowKeys, selectionRows) {
this.selectedRowKeys = selectedRowKeys;
this.selectionRows = selectionRows;
this.totleVolume = 0;
this.totleWeight = 0;
this.totleNum = 0;
for(let selectIndex in selectionRows)
{
let selectionRow = selectionRows[selectIndex]
let fValue = Number.parseFloat(selectionRow.总体积)
this.totleVolume = this.FloatAdd(this.totleVolume, fValue)
fValue = Number.parseFloat(selectionRow.总重量)
this.totleWeight = this.FloatAdd(this.totleWeight, fValue)
fValue = Number.parseFloat(selectionRow.实际件数)
this.totleNum = this.FloatAdd(this.totleNum, fValue)
}
},
handleDetail(text)
{
let url = `${window._CONFIG['domianURL']}/basedata/iostReceivingNote/list`;
getAction(url, {invoiceNumber:text}).then((res) => {
if (res.success) {
let record = res.result.records[0]
let record = res.result.records[0];
console.log(res)
this.$refs.modalForm.edit(record);
this.$refs.modalForm.title="详情";
this.$refs.modalForm.disableSubmit = true;
......@@ -208,7 +245,7 @@
}
that.loading = false;
})
}
},
}
}
</script>
......
......@@ -76,7 +76,7 @@
class="j-table-force-nowrap"
@change="handleTableChange">
<template slot="linkSlot" slot-scope="text">
<template slot="WareHouseNumSlot" slot-scope="text">
<a @click="handleDetail(text)">{{ text }}</a>
</template>
<template slot="htmlSlot" slot-scope="text">
......@@ -101,6 +101,8 @@
</a-table>
</div>
<iost-receiving-modal ref="modalForm" @ok="modalFormOk"/>
</a-card>
</template>
......@@ -111,10 +113,12 @@
import { JeecgListMixin4Report } from '@/mixins/JeecgListMixin4Report'
import JSearchSelectTag from '@/components/dict/JSearchSelectTag'
import JDate from '@/components/jeecg/JDate.vue'
import IostReceivingModal from './modules/IostReceivingModal'
import { getAction } from '@/api/manage'
export default {
name: 'IostWarehouseAt',
components: {JSearchSelectTag, JDate},
components: {JSearchSelectTag, JDate , IostReceivingModal},
mixins:[JeecgListMixin4Report, mixinDevice],
data () {
return {
......@@ -126,7 +130,8 @@
"title": "入仓号",
"align": "center",
"sorter": "true",
"dataIndex": "receiving_no"
"dataIndex": "receiving_no",
scopedSlots: { customRender: 'WareHouseNumSlot' },
}, {
"title": "客户名称",
"align": "center",
......@@ -151,8 +156,7 @@
"title": "仓库名称",
"align": "center",
"sorter": "true",
"dataIndex": "name",
scopedSlots: { customRender: 'linkSlot' },
"dataIndex": "name"
}, {
"title": "日期",
"align": "center",
......@@ -188,11 +192,10 @@
},
handleDetail(text)
{
return;
let url = `${window._CONFIG['domianURL']}/basedata/iostStorage/list`;
getAction(url, {name:text}).then((res) => {
let url = `${window._CONFIG['domianURL']}/basedata/iostReceiving/list`;
getAction(url, {receivingNo:text}).then((res) => {
if (res.success) {
let record = res.result.records[0]
let record = res.result.records[0];
this.$refs.modalForm.edit(record);
this.$refs.modalForm.title="详情";
this.$refs.modalForm.disableSubmit = true;
......@@ -203,7 +206,7 @@
}
that.loading = false;
})
}
},
}
}
</script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论