用车需求,面包屑

This commit is contained in:
王帅 2025-04-28 15:20:20 +08:00
parent a57c10450a
commit ad2cf964f6
2 changed files with 28 additions and 15 deletions

View File

@ -8,7 +8,7 @@
v-if="multipage" v-if="multipage"
:active-key="activePage" :active-key="activePage"
class="tab-layout-tabs" class="tab-layout-tabs"
style="height:52px" style="height:42px; margin-top: -5px;"
:hide-add="true" :hide-add="true"
type="editable-card" type="editable-card"
@change="changePage" @change="changePage"

View File

@ -56,7 +56,7 @@
<!-- 查询区域-END --> <!-- 查询区域-END -->
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<div class="table-operator"> <!-- <div class="table-operator"> -->
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button> <a-button type="primary" icon="import">导入</a-button>
</a-upload> --> </a-upload> -->
@ -68,7 +68,7 @@
</a-menu> </a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown> --> </a-dropdown> -->
</div> <!-- </div> -->
<!-- table区域-begin --> <!-- table区域-begin -->
<div> <div>
@ -80,12 +80,12 @@
<a-table <a-table
ref="table" ref="table"
size="middle" size="middle"
:scroll="{x:'max-content'}" :scroll="{ y: 200, x:'max-content' }"
bordered bordered
rowKey="id" rowKey="id"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="false"
:loading="loading" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: 'radio'}" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: 'radio'}"
class="j-table-force-nowrap" class="j-table-force-nowrap"
@ -134,7 +134,7 @@
</a-table> </a-table>
</div> </div>
<a-row :gutter="24"> <a-row :gutter="24" style="margin-top: 15px;">
<a-col :span="12"> <a-col :span="12">
<div class="bordered-container"> <div class="bordered-container">
<div class="title">用车需求物料明细</div> <div class="title">用车需求物料明细</div>
@ -158,6 +158,7 @@
import { mixinDevice } from '@/utils/mixin' import { mixinDevice } from '@/utils/mixin'
import { postAction } from '@/api/manage' import { postAction } from '@/api/manage'
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import moment from 'moment'
import VehicleDemandModal from './modules/VehicleDemandModal' import VehicleDemandModal from './modules/VehicleDemandModal'
import DeliveryDemand from '../deliverydemand/DeliveryDemand.vue'; import DeliveryDemand from '../deliverydemand/DeliveryDemand.vue';
import VehicleDemandCountList from '../vehicledemandcount/VehicleDemandCountList.vue' import VehicleDemandCountList from '../vehicledemandcount/VehicleDemandCountList.vue'
@ -173,13 +174,17 @@
data () { data () {
return { return {
description: '用车需求管理页面', description: '用车需求管理页面',
queryParam: {
shipDate_begin: moment().format('YYYY-MM-DD'),
shipDate_end: moment().format('YYYY-MM-DD'),
},
// 表头 // 表头
columns: [ columns: [
{ {
title: '#', title: '#',
dataIndex: '', dataIndex: '',
key:'rowIndex', key:'rowIndex',
width:60, width:40,
align:"center", align:"center",
customRender:function (t,r,index) { customRender:function (t,r,index) {
return parseInt(index)+1; return parseInt(index)+1;
@ -189,6 +194,7 @@
title:'发货日期', title:'发货日期',
align:"center", align:"center",
dataIndex: 'shipDate', dataIndex: 'shipDate',
width: 100,
customRender:function (text) { customRender:function (text) {
return !text?"":(text.length>10?text.substr(0,10):text) return !text?"":(text.length>10?text.substr(0,10):text)
} }
@ -196,22 +202,26 @@
{ {
title:'发货类型', title:'发货类型',
align:"center", align:"center",
dataIndex: 'shipType_dictText' dataIndex: 'shipType_dictText',
width: 70,
}, },
{ {
title:'料号', title:'料号',
align:"center", align:"center",
dataIndex: 'pn' dataIndex: 'pn',
width: 100,
}, },
{ {
title:'预计装车总托数', title:'预计装车总托数',
align:"center", align:"center",
dataIndex: 'totalPallets' dataIndex: 'totalPallets',
width: 105,
}, },
{ {
title:'总发货数量', title:'总发货数量',
align:"center", align:"center",
dataIndex: 'totalShips' dataIndex: 'totalShips',
width: 90,
}, },
// { // {
// title:'送货区域', // title:'送货区域',
@ -221,24 +231,27 @@
{ {
title:'送货地点', title:'送货地点',
align:"center", align:"center",
dataIndex: 'deliveryAddress_dictText' dataIndex: 'deliveryAddress',
width: 70,
}, },
{ {
title:'取货仓库', title:'取货仓库',
align:"center", align:"center",
dataIndex: 'pickUpHub_dictText' dataIndex: 'pickUpHub',
width: 70,
}, },
{ {
title:'用车需求编号', title:'用车需求编号',
align:"center", align:"center",
dataIndex: 'vdNo' dataIndex: 'vdNo',
width: 110,
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align:"center", align:"center",
fixed:"right", fixed:"right",
width:147, width:170,
scopedSlots: { customRender: 'action' } scopedSlots: { customRender: 'action' }
} }
], ],