|
@@ -14,31 +14,38 @@
|
|
|
@keyup.enter.native="handleSearch" >
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-model-item label="入库时间" prop="time">
|
|
|
+ <a-form-model-item label="审核时间" prop="time">
|
|
|
<rangeDate ref="rangeDate" @change="dateChange" />
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-model-item label="连锁调出单号">
|
|
|
- <a-input id="chainTransferInReport-allocationLinkagePutNo" v-model.trim="queryParam.allocationLinkagePutNo" allowClear placeholder="请输入连锁调出单号"/>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :md="4" :sm="24">
|
|
|
- <a-form-item label="调往对象">
|
|
|
- <outTenant id="chainTransferInReport-outTenantSn" v-model="queryParam.outTenantSn"></outTenant>
|
|
|
+ <a-form-item label="出库时间">
|
|
|
+ <rangeDate ref="outWareRangeDate" :value="outWareTime" @change="outWareDateChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :md="4" :sm="24">
|
|
|
- <a-form-item label="调拨产品类型">
|
|
|
- <v-select
|
|
|
- v-model="queryParam.allocationType"
|
|
|
- ref="allocationType"
|
|
|
- id="chainTransferInReport-allocationType"
|
|
|
- code="ALLOCATION_LINKAGE_PRODUCT_TYPE"
|
|
|
- placeholder="请选择调拨产品类型"
|
|
|
- allowClear></v-select>
|
|
|
- </a-form-item>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-model-item label="连锁调出单号">
|
|
|
+ <a-input id="chainTransferInReport-allocationLinkageOutNo" v-model.trim="queryParam.allocationLinkageOutNo" allowClear placeholder="请输入连锁调出单号"/>
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
+ <template v-if="advanced">
|
|
|
+ <a-col :md="4" :sm="24">
|
|
|
+ <a-form-item label="调往对象">
|
|
|
+ <outTenant id="chainTransferInReport-putTenantSn" v-model="queryParam.putTenantSn"></outTenant>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="4" :sm="24">
|
|
|
+ <a-form-item label="调拨产品类型">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.allocationType"
|
|
|
+ ref="allocationType"
|
|
|
+ id="chainTransferInReport-allocationType"
|
|
|
+ code="ALLOCATION_LINKAGE_PRODUCT_TYPE"
|
|
|
+ placeholder="请选择调拨产品类型"
|
|
|
+ allowClear></v-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </template>
|
|
|
<a-col :md="4" :sm="24" style="margin-bottom: 10px;">
|
|
|
<a-button type="primary" @click="handleSearch" :disabled="disabled" id="chainTransferInReport-refresh">查询</a-button>
|
|
|
<a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="chainTransferInReport-reset">重置</a-button>
|
|
@@ -51,6 +58,10 @@
|
|
|
v-if="$hasPermissions('M_storeTransferOutReportExport')"
|
|
|
class="button-warning"
|
|
|
id="chainTransferInReport-export-btn">导出</a-button>
|
|
|
+ <a @click="advanced=!advanced" style="margin-left: 5px">
|
|
|
+ {{ advanced ? '收起' : '展开' }}
|
|
|
+ <a-icon :type="advanced ? 'up' : 'down'"/>
|
|
|
+ </a>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-form-model>
|
|
@@ -58,7 +69,7 @@
|
|
|
<!-- 合计 -->
|
|
|
<a-alert type="info" style="margin-bottom:10px">
|
|
|
<div class="ftext" slot="message">
|
|
|
- 总单数:<strong>{{ (totalData && (totalData.productTotalCategory || totalData.productTotalCategory==0)) ? totalData.productTotalCategory : '--' }}</strong>;
|
|
|
+ 总单数:<strong>{{ (totalData && (totalData.totalCount || totalData.totalCount==0)) ? totalData.totalCount : '--' }}</strong>;
|
|
|
产品总数量:<strong>{{ (totalData && (totalData.productTotalQty || totalData.productTotalQty==0)) ? totalData.productTotalQty : '--' }}</strong>;
|
|
|
<div v-if="$hasPermissions('M_ShowAllCost')" style="display: inline-block;">
|
|
|
调入总成本:<strong>{{ (totalData && (totalData.productTotalCost || totalData.productTotalCost==0)) ? '¥'+totalData.productTotalCost : '--' }}</strong>;
|
|
@@ -85,7 +96,7 @@ import { STable, VSelect } from '@/components'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import { downloadExcel } from '@/libs/JGPrint.js'
|
|
|
import outTenant from '@/views/common/outTenant.js'
|
|
|
-import { reportStoreCallOutPageList, reportStoreCallOutListTotal, reportStoreCallOutExport } from '@/api/reportData'
|
|
|
+import { reportAllocLinkageOutList, reportAllocLinkageOutCount, reportAllocLinkageOutExport } from '@/api/reportData'
|
|
|
export default {
|
|
|
components: { STable, VSelect, rangeDate, outTenant },
|
|
|
mixins: [commonMixin],
|
|
@@ -96,15 +107,19 @@ export default {
|
|
|
wrapperCol: { span: 16 },
|
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
|
tableHeight: 0,
|
|
|
+ outWareTime: [],
|
|
|
queryParam: { // 查询条件
|
|
|
- beginDate: '',
|
|
|
- endDate: '',
|
|
|
- outTenantSn:undefined,
|
|
|
+ time:[],
|
|
|
+ auditBeginDate: '',
|
|
|
+ auditEndDate: '',
|
|
|
+ outWarehouseBeginDate:'',
|
|
|
+ outWarehouseEndDate:'',
|
|
|
+ putTenantSn:undefined,
|
|
|
allocationType: undefined,
|
|
|
- allocationLinkagePutNo: ''
|
|
|
+ allocationLinkageOutNo: ''
|
|
|
},
|
|
|
rules: {
|
|
|
- 'time': [{ required: true, message: '请选择入库时间', trigger: 'change' }]
|
|
|
+ 'time': [{ required: true, message: '请选择审核时间', trigger: 'change' }]
|
|
|
},
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
exportLoading: false,
|
|
@@ -114,7 +129,7 @@ export default {
|
|
|
const params = Object.assign(parameter, this.queryParam)
|
|
|
this.spinning = true
|
|
|
delete params.time
|
|
|
- return reportStoreCallOutPageList(params).then(res => {
|
|
|
+ return reportAllocLinkageOutList(params).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
|
data = res.data
|
|
@@ -131,19 +146,18 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
totalData: null, // 合计
|
|
|
- storeCallOutTypeList: [] // 调拨类型
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
columns () {
|
|
|
const arr = [
|
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
|
- { title: '连锁调入单号', dataIndex: 'allocationLinkagePutNo', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '调出对象', dataIndex: 'outTenantName', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '连锁调出单号', dataIndex: 'allocationLinkageOutNo', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '调往对象', dataIndex: 'putTenantName', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '款数', dataIndex: 'productTotalCategory', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '数量', dataIndex: 'productTotalQty', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '入库时间', dataIndex: 'putWarehouseTime', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '调拨产品类型', dataIndex: 'allocationTypeDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
+ { title: '出库时间', dataIndex: 'outWarehouseTime', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '调拨类型', dataIndex: 'allocationTypeDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
]
|
|
|
if (this.$hasPermissions('M_ShowAllCost')) {
|
|
|
arr.splice(5, 0, { title: '成本', dataIndex: 'productTotalCost', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
@@ -154,7 +168,7 @@ export default {
|
|
|
methods: {
|
|
|
// 合计
|
|
|
getCount (params) {
|
|
|
- reportStoreCallOutListTotal(params).then(res => {
|
|
|
+ reportAllocLinkageOutCount(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.totalData = res.data
|
|
|
} else {
|
|
@@ -164,8 +178,13 @@ export default {
|
|
|
},
|
|
|
// 创建时间 change
|
|
|
dateChange (date) {
|
|
|
- this.queryParam.beginDate = date[0] || ''
|
|
|
- this.queryParam.endDate = date[1] || ''
|
|
|
+ this.queryParam.time = date
|
|
|
+ this.queryParam.auditBeginDate = date[0] || ''
|
|
|
+ this.queryParam.auditEndDate = date[1] || ''
|
|
|
+ },
|
|
|
+ outWareDateChange (date) {
|
|
|
+ this.queryParam.outWarehouseBeginDate = date[0]
|
|
|
+ this.queryParam.outWarehouseEndDate = date[1]
|
|
|
},
|
|
|
// 查询
|
|
|
handleSearch () {
|
|
@@ -180,11 +199,17 @@ export default {
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
this.$refs.rangeDate.resetDate()
|
|
|
- this.queryParam.beginDate = ''
|
|
|
- this.queryParam.endDate = ''
|
|
|
+ this.queryParam.time = []
|
|
|
+ this.queryParam.auditBeginDate = ''
|
|
|
+ this.queryParam.auditEndDate = ''
|
|
|
+ this.$refs.outWareRangeDate.resetDate('')
|
|
|
+ this.outWareTime = []
|
|
|
+ this.queryParam.outWarehouseBeginDate = ''
|
|
|
+ this.queryParam.outWarehouseEndDate = ''
|
|
|
+
|
|
|
this.queryParam.allocationType = undefined
|
|
|
- this.queryParam.outTenantSn = undefined
|
|
|
- this.queryParam.allocationLinkagePutNo = ''
|
|
|
+ this.queryParam.putTenantSn = undefined
|
|
|
+ this.queryParam.allocationLinkageOutNo = ''
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
this.totalData = null
|
|
|
this.$refs.table.clearTable()
|
|
@@ -195,11 +220,11 @@ export default {
|
|
|
this.$refs.ruleForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
const params = _this.queryParam
|
|
|
- params.showCost = this.$hasPermissions('M_ShowAllCost') ? '1' : '0'
|
|
|
+ params.costFlag = this.$hasPermissions('M_ShowAllCost') ? '1' : '0'
|
|
|
_this.exportLoading = true
|
|
|
_this.spinning = true
|
|
|
- reportStoreCallOutExport(params).then(res => {
|
|
|
- downloadExcel(res, '连锁调入报表')
|
|
|
+ reportAllocLinkageOutExport(params).then(res => {
|
|
|
+ downloadExcel(res, '连锁调出报表')
|
|
|
_this.exportLoading = false
|
|
|
_this.spinning = false
|
|
|
})
|