用车需求调整
This commit is contained in:
parent
34fa9031bb
commit
152a2a7284
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<a-card :bordered="false">
|
||||
<!-- 查询区域 -->
|
||||
<div class="table-page-search-wrapper">
|
||||
<!-- <div class="table-page-search-wrapper">
|
||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||
<a-row :gutter="24">
|
||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||
@ -29,27 +29,26 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- 查询区域-END -->
|
||||
|
||||
<!-- 操作按钮区域 -->
|
||||
<div class="table-operator">
|
||||
<!-- <div class="table-operator">
|
||||
<a-button type="primary" icon="download" @click="handleExportXls('发货需求')">导出</a-button>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- table区域-begin -->
|
||||
<div>
|
||||
<a-table
|
||||
ref="table"
|
||||
size="middle"
|
||||
:scroll="{x:true}"
|
||||
size="small"
|
||||
:scroll="{ y: 300, x:true }"
|
||||
bordered
|
||||
rowKey="id"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:pagination="false"
|
||||
:loading="loading"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
class="j-table-force-nowrap"
|
||||
@change="handleTableChange">
|
||||
|
||||
@ -104,7 +103,7 @@
|
||||
import '@/assets/less/TableExpand.less'
|
||||
import { mixinDevice } from '@/utils/mixin'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { postAction } from '@/api/manage'
|
||||
import { postAction,getAction } from '@/api/manage'
|
||||
import DeliveryDemandModal from './modules/DeliveryDemandModal'
|
||||
|
||||
export default {
|
||||
@ -118,45 +117,51 @@
|
||||
description: '发货需求管理页面',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
title: '#',
|
||||
dataIndex: '',
|
||||
key:'rowIndex',
|
||||
width:60,
|
||||
align:"center",
|
||||
customRender:function (t,r,index) {
|
||||
return parseInt(index)+1;
|
||||
}
|
||||
},
|
||||
// {
|
||||
// title: '#',
|
||||
// dataIndex: '',
|
||||
// key:'rowIndex',
|
||||
// width:60,
|
||||
// align:"center",
|
||||
// customRender:function (t,r,index) {
|
||||
// return parseInt(index)+1;
|
||||
// }
|
||||
// },
|
||||
{
|
||||
title:'用车需求编号',
|
||||
align:"center",
|
||||
dataIndex: 'vdNo'
|
||||
dataIndex: 'vdNo',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title:'料号',
|
||||
align:"center",
|
||||
dataIndex: 'pn'
|
||||
dataIndex: 'pn',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title:'规格',
|
||||
align:"center",
|
||||
dataIndex: 'spec'
|
||||
dataIndex: 'spec',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title:'发货数量',
|
||||
align:"center",
|
||||
dataIndex: 'shipNumber'
|
||||
dataIndex: 'shipNumber',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title:'预估托盘数',
|
||||
align:"center",
|
||||
dataIndex: 'palletsNum'
|
||||
dataIndex: 'palletsNum',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title:'发货单',
|
||||
align:"center",
|
||||
dataIndex: 'invoice'
|
||||
dataIndex: 'invoice',
|
||||
width: 100
|
||||
},
|
||||
// {
|
||||
// title: '操作',
|
||||
@ -173,7 +178,8 @@
|
||||
deleteBatch: "/deliverydemand/deliveryDemand/deleteBatch",
|
||||
exportXlsUrl: "/deliverydemand/deliveryDemand/exportXls",
|
||||
importExcelUrl: "deliverydemand/deliveryDemand/importExcel",
|
||||
handleMerge: '/deliverydemand/deliveryDemand/handleMerge'
|
||||
handleMerge: '/deliverydemand/deliveryDemand/handleMerge',
|
||||
getByVdNo: '/deliverydemand/deliveryDemand/getByVdNo',
|
||||
},
|
||||
dictOptions:{},
|
||||
superFieldList:[],
|
||||
@ -218,6 +224,16 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
getByVdNo(vdNo){
|
||||
getAction(this.url.getByVdNo,{vdNo: vdNo}).then(res => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result;
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
loadData(){},
|
||||
initDictConfig(){
|
||||
},
|
||||
getSuperFieldList(){
|
||||
|
@ -87,7 +87,7 @@
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: 'radio'}"
|
||||
class="j-table-force-nowrap"
|
||||
@change="handleTableChange">
|
||||
|
||||
@ -134,7 +134,16 @@
|
||||
|
||||
</a-table>
|
||||
</div>
|
||||
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="title">用车需求物料明细</div>
|
||||
<DeliveryDemand ref="deliveryDemand"/>
|
||||
</a-col>
|
||||
<a-col :span="12" style="margin-right: -30px;">
|
||||
<div class="title">用车需求计算</div>
|
||||
<VehicleDemandCountList ref="vehicleDemandCountList"/>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<vehicle-demand-modal ref="modalForm" @ok="modalFormOk"></vehicle-demand-modal>
|
||||
</a-card>
|
||||
</template>
|
||||
@ -146,12 +155,16 @@
|
||||
import { postAction } from '@/api/manage'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import VehicleDemandModal from './modules/VehicleDemandModal'
|
||||
import DeliveryDemand from '../deliverydemand/DeliveryDemand.vue';
|
||||
import VehicleDemandCountList from '../vehicledemandcount/VehicleDemandCountList.vue'
|
||||
|
||||
export default {
|
||||
name: 'VehicleDemandList',
|
||||
mixins:[JeecgListMixin, mixinDevice],
|
||||
components: {
|
||||
VehicleDemandModal
|
||||
VehicleDemandModal,
|
||||
DeliveryDemand,
|
||||
VehicleDemandCountList
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
@ -257,6 +270,13 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
onSelectChange(selectedRowKeys, selectionRows) {
|
||||
this.selectedRowKeys = selectedRowKeys;
|
||||
this.selectionRows = selectionRows;
|
||||
let vdNo = selectionRows[0].vdNo;
|
||||
this.$refs.deliveryDemand.getByVdNo(vdNo);
|
||||
this.$refs.vehicleDemandCountList.getByVdNo(vdNo);
|
||||
},
|
||||
initDictConfig(){
|
||||
},
|
||||
getSuperFieldList(){
|
||||
@ -275,4 +295,8 @@
|
||||
</script>
|
||||
<style scoped>
|
||||
@import '~@assets/less/common.less';
|
||||
.title {
|
||||
font-size: 18px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
</style>
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<a-card :bordered="false">
|
||||
<!-- 查询区域 -->
|
||||
<div class="table-page-search-wrapper">
|
||||
<!-- <div class="table-page-search-wrapper">
|
||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||
<a-row :gutter="24">
|
||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||
@ -48,44 +48,43 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- 查询区域-END -->
|
||||
|
||||
<!-- 操作按钮区域 -->
|
||||
<div class="table-operator">
|
||||
<!-- <div class="table-operator">
|
||||
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
||||
<a-button type="primary" icon="download" @click="handleExportXls('用车需求计算')">导出</a-button>
|
||||
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
||||
<a-button type="primary" icon="import">导入</a-button>
|
||||
</a-upload>
|
||||
</a-upload> -->
|
||||
<!-- 高级查询区域 -->
|
||||
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
|
||||
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
|
||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||
</a-menu>
|
||||
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
|
||||
</a-dropdown>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- table区域-begin -->
|
||||
<div>
|
||||
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
||||
<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
||||
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
|
||||
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<a-table
|
||||
ref="table"
|
||||
size="middle"
|
||||
:scroll="{x:true}"
|
||||
size="small"
|
||||
:scroll="{ y: 300, x:true }"
|
||||
bordered
|
||||
rowKey="id"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:pagination="false"
|
||||
:loading="loading"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
class="j-table-force-nowrap"
|
||||
@change="handleTableChange">
|
||||
|
||||
@ -139,6 +138,7 @@
|
||||
|
||||
import '@/assets/less/TableExpand.less'
|
||||
import { mixinDevice } from '@/utils/mixin'
|
||||
import { getAction } from '@/api/manage'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import VehicleDemandCountModal from './modules/VehicleDemandCountModal'
|
||||
|
||||
@ -153,64 +153,72 @@
|
||||
description: '用车需求计算管理页面',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
title: '#',
|
||||
dataIndex: '',
|
||||
key:'rowIndex',
|
||||
width:60,
|
||||
align:"center",
|
||||
customRender:function (t,r,index) {
|
||||
return parseInt(index)+1;
|
||||
}
|
||||
},
|
||||
// {
|
||||
// title: '#',
|
||||
// dataIndex: '',
|
||||
// key:'rowIndex',
|
||||
// width:60,
|
||||
// align:"center",
|
||||
// customRender:function (t,r,index) {
|
||||
// return parseInt(index)+1;
|
||||
// }
|
||||
// },
|
||||
{
|
||||
title:'用车需求编号',
|
||||
align:"center",
|
||||
dataIndex: 'vdNo'
|
||||
dataIndex: 'vdNo',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title:'发货类型',
|
||||
align:"center",
|
||||
dataIndex: 'shipType_dictText'
|
||||
dataIndex: 'shipType_dictText',
|
||||
width: 80
|
||||
},
|
||||
{
|
||||
title:'车型',
|
||||
align:"center",
|
||||
dataIndex: 'carType'
|
||||
dataIndex: 'carType',
|
||||
width: 80
|
||||
},
|
||||
{
|
||||
title:'车长',
|
||||
align:"center",
|
||||
dataIndex: 'carLong'
|
||||
dataIndex: 'carLong',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title:'送货区域',
|
||||
align:"center",
|
||||
dataIndex: 'deliveryArea'
|
||||
dataIndex: 'deliveryArea',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title:'送货地点',
|
||||
align:"center",
|
||||
dataIndex: 'deliveryAddress'
|
||||
dataIndex: 'deliveryAddress',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title:'取货仓库',
|
||||
align:"center",
|
||||
dataIndex: 'pickUpHub'
|
||||
dataIndex: 'pickUpHub',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title:'审核结果',
|
||||
align:"center",
|
||||
dataIndex: 'auditResult_dictText'
|
||||
dataIndex: 'auditResult_dictText',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'action',
|
||||
align:"center",
|
||||
fixed:"right",
|
||||
width:147,
|
||||
scopedSlots: { customRender: 'action' }
|
||||
}
|
||||
// {
|
||||
// title: '操作',
|
||||
// dataIndex: 'action',
|
||||
// align:"center",
|
||||
// fixed:"right",
|
||||
// width:147,
|
||||
// scopedSlots: { customRender: 'action' }
|
||||
// }
|
||||
],
|
||||
url: {
|
||||
list: "/vehicledemandcount/vehicleDemandCount/list",
|
||||
@ -218,6 +226,7 @@
|
||||
deleteBatch: "/vehicledemandcount/vehicleDemandCount/deleteBatch",
|
||||
exportXlsUrl: "/vehicledemandcount/vehicleDemandCount/exportXls",
|
||||
importExcelUrl: "vehicledemandcount/vehicleDemandCount/importExcel",
|
||||
getByVdNo: "vehicledemandcount/vehicleDemandCount/getByVdNo",
|
||||
|
||||
},
|
||||
dictOptions:{},
|
||||
@ -233,6 +242,16 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
getByVdNo(vdNo){
|
||||
getAction(this.url.getByVdNo,{vdNo: vdNo}).then(res => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result.records||res.result;
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
loadData(){},
|
||||
initDictConfig(){
|
||||
},
|
||||
getSuperFieldList(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user