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

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

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