| | |
| | | <!--成品出库--> |
| | | <script setup> |
| | | |
| | | <script lang="ts" setup> |
| | | import {ref} from "vue"; |
| | | import {Search} from "@element-plus/icons-vue"; |
| | | import {defineComponent} from "vue"; |
| | | import {reactive} from "vue"; |
| | | import {useRouter} from 'vue-router' |
| | | let router=useRouter() |
| | | const getTableRow = (row,type) =>{ |
| | | switch (type) { |
| | | case 'edit' :{ |
| | | //alert('我接收到子组件传送的编辑信息') |
| | | router.push({path: '/main/productStock/OrderAllocation', query: { id: row.id }}) |
| | | break |
| | | } |
| | | case 'back':{ |
| | | router.push({path: '/main/productStock/FinishedProductRework', query: { id: row.id }}) |
| | | break |
| | | } |
| | | case 'out' :{ |
| | | //alert('我接收到子组件传送的编辑信息') |
| | | router.push({path: '/main/productStock/FinishedGoodsIssue', query: { id: row.id }}) |
| | | break |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | //子组件接收参数 |
| | | |
| | | let tableData = ref([ |
| | | { |
| | | "送货单号":'JG23121112', |
| | | "销售单号":'NG23120610', |
| | | "客户名称":'中山市横栏镇环照灯饰厂', |
| | | "项目名称":'钢化镜', |
| | | "业务员":'王良', |
| | | "订序":'1', |
| | | "楼层编号":'813404', |
| | | "订单数":'346', |
| | | "长":'813.00', |
| | | "宽":'404.00', |
| | | "厚度":'4.00', |
| | | "总数量":'176.00', |
| | | "总面积":'58.0800', |
| | | "箱号":'', |
| | | "报表日期":'2023-23-13', |
| | | "成品编号":'0601000622', |
| | | "成品名称":'4mm方形钢化镜', |
| | | "数量":'176', |
| | | "状态":'已出库', |
| | | "备注":'', |
| | | }, { |
| | | "送货单号":'JG23121112', |
| | | "销售单号":'NG23120610', |
| | | "客户名称":'中山市横栏镇环照灯饰厂', |
| | | "项目名称":'钢化镜', |
| | | "业务员":'王良', |
| | | "订序":'1', |
| | | "楼层编号":'813404', |
| | | "订单数":'346', |
| | | "长":'813.00', |
| | | "宽":'404.00', |
| | | "厚度":'4.00', |
| | | "总数量":'176.00', |
| | | "总面积":'58.0800', |
| | | "箱号":'', |
| | | "报表日期":'2023-23-13', |
| | | "成品编号":'0601000622', |
| | | "成品名称":'4mm方形钢化镜', |
| | | "数量":'176', |
| | | "状态":'已出库', |
| | | "备注":'', |
| | | }, { |
| | | "送货单号":'JG23121112', |
| | | "销售单号":'NG23120610', |
| | | "客户名称":'中山市横栏镇环照灯饰厂', |
| | | "项目名称":'钢化镜', |
| | | "业务员":'王良', |
| | | "订序":'1', |
| | | "楼层编号":'813404', |
| | | "订单数":'346', |
| | | "长":'813.00', |
| | | "宽":'404.00', |
| | | "厚度":'4.00', |
| | | "总数量":'176.00', |
| | | "总面积":'58.0800', |
| | | "箱号":'', |
| | | "报表日期":'2023-23-13', |
| | | "成品编号":'0601000622', |
| | | "成品名称":'4mm方形钢化镜', |
| | | "数量":'176', |
| | | "状态":'已出库', |
| | | "备注":'', |
| | | }, { |
| | | "送货单号":'JG23121112', |
| | | "销售单号":'NG23120610', |
| | | "客户名称":'中山市横栏镇环照灯饰厂', |
| | | "项目名称":'钢化镜', |
| | | "业务员":'王良', |
| | | "订序":'1', |
| | | "楼层编号":'813404', |
| | | "订单数":'346', |
| | | "长":'813.00', |
| | | "宽":'404.00', |
| | | "厚度":'4.00', |
| | | "总数量":'176.00', |
| | | "总面积":'58.0800', |
| | | "箱号":'', |
| | | "报表日期":'2023-23-13', |
| | | "成品编号":'0601000622', |
| | | "成品名称":'4mm方形钢化镜', |
| | | "数量":'176', |
| | | "状态":'已出库', |
| | | "备注":'', |
| | | }, { |
| | | "送货单号":'JG23121112', |
| | | "销售单号":'NG23120610', |
| | | "客户名称":'中山市横栏镇环照灯饰厂', |
| | | "项目名称":'钢化镜', |
| | | "业务员":'王良', |
| | | "订序":'1', |
| | | "楼层编号":'813404', |
| | | "订单数":'346', |
| | | "长":'813.00', |
| | | "宽":'404.00', |
| | | "厚度":'4.00', |
| | | "总数量":'176.00', |
| | | "总面积":'58.0800', |
| | | "箱号":'', |
| | | "报表日期":'2023-23-13', |
| | | "成品编号":'0601000622', |
| | | "成品名称":'4mm方形钢化镜', |
| | | "数量":'176', |
| | | "状态":'已出库', |
| | | "备注":'', |
| | | }, { |
| | | "送货单号":'JG23121112', |
| | | "销售单号":'NG23120610', |
| | | "客户名称":'中山市横栏镇环照灯饰厂', |
| | | "项目名称":'钢化镜', |
| | | "业务员":'王良', |
| | | "订序":'1', |
| | | "楼层编号":'813404', |
| | | "订单数":'346', |
| | | "长":'813.00', |
| | | "宽":'404.00', |
| | | "厚度":'4.00', |
| | | "总数量":'176.00', |
| | | "总面积":'58.0800', |
| | | "箱号":'', |
| | | "报表日期":'2023-23-13', |
| | | "成品编号":'0601000622', |
| | | "成品名称":'4mm方形钢化镜', |
| | | "数量":'176', |
| | | "状态":'已出库', |
| | | "备注":'', |
| | | const gridOptions = reactive({ |
| | | border: "full",//表格加边框 |
| | | keepSource: true,//保持源数据 |
| | | align: 'center',//文字居中 |
| | | stripe:true,//斑马纹 |
| | | rowConfig: {isCurrent: true, isHover: true,height: 50},//鼠标移动或选择高亮 |
| | | id: 'CustomerList', |
| | | showFooter: true,//显示脚 |
| | | printConfig: {}, |
| | | importConfig: {}, |
| | | exportConfig: {}, |
| | | scrollY:{ enabled: true },//开启虚拟滚动 |
| | | showOverflow:true, |
| | | columnConfig: { |
| | | resizable: true, |
| | | useKey: true |
| | | }, |
| | | filterConfig: { //筛选配置项 |
| | | remote: true |
| | | }, |
| | | customConfig: { |
| | | storage: true |
| | | }, |
| | | editConfig: { |
| | | trigger: 'click', |
| | | mode: 'row', |
| | | showStatus: true |
| | | },//表头参数 |
| | | columns:[ |
| | | {type:'expand',fixed:"left",slots: { content:'content' },width: '50'}, |
| | | { type: 'checkbox',fixed:"left", title: '选择', width: '80' }, |
| | | { type: 'seq',fixed:"left", title: '自序', width: '80' }, |
| | | {title: '操作', width: '80', slots: { default: 'button_slot' },fixed:"left"}, |
| | | {field: 'DeliveryOrderNumber', width:'150', title: '送货单号', sortable: true,editRender: { name: 'input', attrs: { placeholder: '' } } }, |
| | | {field: 'SalesOrderNumber', width: '150',title: '销售单号', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'ProjectName', width: '120',title: '项目名称', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'ProductName', width: '100',title: '成品名称', sortable: true}, |
| | | {field: 'ProductNumber',width: '100', title: '成品编号', sortable: true}, |
| | | {field: 'CustomerName',width: '100', title: '客户名称', sortable: true}, |
| | | {field: 'Length', width: '100',title: '长度', sortable: true}, |
| | | {field: 'Width',width: '100', title: '宽度', sortable: true}, |
| | | {field: 'Thickness', width: '100',title: '厚度', sortable: true}, |
| | | {field: 'TotalQuantity',width: '140', title: '总数量', sortable: true}, |
| | | {field: 'TotalArea',width: '100', title: '总面积', sortable: true}, |
| | | {field: 'FloorNumber',width: '100', title: '楼层编号', sortable: true}, |
| | | {field: 'OrderNumber',width: '100', title: '订序', sortable: true}, |
| | | {field: 'Salesman',width: '100', title: '业务员', sortable: true}, |
| | | {field: 'BoxNumber',width: '100', title: '箱号', sortable: true}, |
| | | {field: 'Quantity',width: '100', title: '数量', sortable: true}, |
| | | {field: 'ReportingDate',width: '140', title: '报表日期', sortable: true}, |
| | | {field: 'OrderQuantity',width: '100', title: '订单数', sortable: true}, |
| | | {field: 'Status',width: '100', title: '状态', sortable: true}, |
| | | {field: 'remark',width: '80', title: '备注', sortable: true}, |
| | | ],//表头按钮 |
| | | toolbarConfig: { |
| | | buttons: [{ |
| | | 'name': '确认出库', |
| | | status: 'primary' |
| | | }], |
| | | import: false, |
| | | export: true, |
| | | print: true, |
| | | zoom: true, |
| | | custom: true |
| | | }, |
| | | data: [ |
| | | { |
| | | "DeliveryOrderNumber": "1", |
| | | "SalesOrderNumber": "NG23072003", |
| | | "ProjectName": "钢化玻璃", |
| | | "CustomerName": "李二牛", |
| | | "Salesman": "小岳", |
| | | "OrderNumber": '7', |
| | | "FloorNumber": "06040000022", |
| | | "OrderQuantity": "7", |
| | | "Length": "1230.00", |
| | | "Width": "1075.00", |
| | | "Thickness": "6。700", |
| | | "TotalQuantity": "100.00", |
| | | "TotalArea": "360.80", |
| | | "BoxNumber": "06", |
| | | "ReportingDate": "2023-12-22", |
| | | "ProductNumber": "NG2312220001", |
| | | "ProductName": "超级玻璃", |
| | | "Quantity": "360", |
| | | "Status": "已调架", |
| | | "remark": "测试", |
| | | }, { |
| | | "DeliveryOrderNumber": "1", |
| | | "SalesOrderNumber": "NG23072003", |
| | | "ProjectName": "钢化玻璃", |
| | | "CustomerName": "李二牛", |
| | | "Salesman": "小岳", |
| | | "OrderNumber": '7', |
| | | "FloorNumber": "06040000022", |
| | | "OrderQuantity": "7", |
| | | "Length": "1230.00", |
| | | "Width": "1075.00", |
| | | "Thickness": "6。700", |
| | | "TotalQuantity": "100.00", |
| | | "TotalArea": "360.80", |
| | | "BoxNumber": "06", |
| | | "ReportingDate": "2023-12-22", |
| | | "ProductNumber": "NG2312220001", |
| | | "ProductName": "超级玻璃", |
| | | "Quantity": "360", |
| | | "Status": "已调架", |
| | | "remark": "测试", |
| | | }, { |
| | | "DeliveryOrderNumber": "1", |
| | | "SalesOrderNumber": "NG23072003", |
| | | "ProjectName": "钢化玻璃", |
| | | "CustomerName": "李二牛", |
| | | "Salesman": "小岳", |
| | | "OrderNumber": '7', |
| | | "FloorNumber": "06040000022", |
| | | "OrderQuantity": "7", |
| | | "Length": "1230.00", |
| | | "Width": "1075.00", |
| | | "Thickness": "6。700", |
| | | "TotalQuantity": "100.00", |
| | | "TotalArea": "360.80", |
| | | "BoxNumber": "06", |
| | | "ReportingDate": "2023-12-22", |
| | | "ProductNumber": "NG2312220001", |
| | | "ProductName": "超级玻璃", |
| | | "Quantity": "360", |
| | | "Status": "已调架", |
| | | "remark": "测试", |
| | | }, { |
| | | "DeliveryOrderNumber": "1", |
| | | "SalesOrderNumber": "NG23072003", |
| | | "ProjectName": "钢化玻璃", |
| | | "CustomerName": "李二牛", |
| | | "Salesman": "小岳", |
| | | "OrderNumber": '7', |
| | | "FloorNumber": "06040000022", |
| | | "OrderQuantity": "7", |
| | | "Length": "1230.00", |
| | | "Width": "1075.00", |
| | | "Thickness": "6。700", |
| | | "TotalQuantity": "100.00", |
| | | "TotalArea": "360.80", |
| | | "BoxNumber": "06", |
| | | "ReportingDate": "2023-12-22", |
| | | "ProductNumber": "NG2312220001", |
| | | "ProductName": "超级玻璃", |
| | | "Quantity": "360", |
| | | "Status": "已调架", |
| | | "remark": "测试", |
| | | }, { |
| | | "DeliveryOrderNumber": "1", |
| | | "SalesOrderNumber": "NG23072003", |
| | | "ProjectName": "钢化玻璃", |
| | | "CustomerName": "李二牛", |
| | | "Salesman": "小岳", |
| | | "OrderNumber": '7', |
| | | "FloorNumber": "06040000022", |
| | | "OrderQuantity": "7", |
| | | "Length": "1230.00", |
| | | "Width": "1075.00", |
| | | "Thickness": "6。700", |
| | | "TotalQuantity": "100.00", |
| | | "TotalArea": "360.80", |
| | | "BoxNumber": "06", |
| | | "ReportingDate": "2023-12-22", |
| | | "ProductNumber": "NG2312220001", |
| | | "ProductName": "超级玻璃", |
| | | "Quantity": "360", |
| | | "Status": "已调架", |
| | | "remark": "测试", |
| | | }, { |
| | | "DeliveryOrderNumber": "1", |
| | | "SalesOrderNumber": "NG23072003", |
| | | "ProjectName": "钢化玻璃", |
| | | "CustomerName": "李二牛", |
| | | "Salesman": "小岳", |
| | | "OrderNumber": '7', |
| | | "FloorNumber": "06040000022", |
| | | "OrderQuantity": "7", |
| | | "Length": "1230.00", |
| | | "Width": "1075.00", |
| | | "Thickness": "6。700", |
| | | "TotalQuantity": "100.00", |
| | | "TotalArea": "360.80", |
| | | "BoxNumber": "06", |
| | | "ReportingDate": "2023-12-22", |
| | | "ProductNumber": "NG2312220001", |
| | | "ProductName": "超级玻璃", |
| | | "Quantity": "360", |
| | | "Status": "已调架", |
| | | "remark": "测试", |
| | | }, |
| | | |
| | | ]); |
| | | ],//table body实际数据 |
| | | footerMethod ({ columns, data }) {//页脚函数 |
| | | return[ |
| | | columns.map((column, columnIndex) => { |
| | | if (columnIndex === 0) { |
| | | return '合计:' |
| | | } |
| | | // if (props.tableProp.footList.includes(column.field)) { |
| | | // return sumNum(data, column.field) |
| | | // } |
| | | return '' |
| | | }) |
| | | ] |
| | | } |
| | | |
| | | }) |
| | | |
| | | |
| | | |
| | | </script> |
| | | |
| | | <template> |
| | | <div> |
| | | <div> |
| | | <el-form size="medium" > |
| | | <div class="main-div-customer"> |
| | | <vxe-grid |
| | | max-height="100%" |
| | | @filter-change="filterChanged" |
| | | class="mytable-scrollbar" |
| | | ref="xGrid" |
| | | v-bind="gridOptions" |
| | | |
| | | <el-row gutter="7"> |
| | | <!-- <el-col :span="4">--> |
| | | <!-- <el-input v-model="name" placeholder="销售单号" style="width: 200px; height: 30px;" />--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="4">--> |
| | | <!-- <el-input v-model="productName" placeholder="送货单号" style="width: 200px; height: 30px;" />--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="4">--> |
| | | <!-- <el-input v-model="salId" placeholder="客户名称" style="width: 200px; height: 30px;" />--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="2">--> |
| | | <!-- <el-button id="searchButton" type="primary" :icon="Search" style="width: 100px; height: 25px">导出</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="4">--> |
| | | <!-- <el-button id="searchButton" type="primary" :icon="Search" style="width: 100px; height: 25px">查询</el-button>--> |
| | | <!-- </el-col>--> |
| | | <el-col :span="4"> |
| | | <el-button id="searchButton" type="primary" :icon="Search" style="width: 100px; height: 25px">确定</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | > |
| | | <!-- @toolbar-button-click="toolbarButtonClickEvent"--> |
| | | <!-- 下拉显示所有信息插槽--> |
| | | <template #content="{ row}"> |
| | | <ul class="expand-wrapper"> |
| | | <li v-for="(item,key,index) in row"> |
| | | <span style="font-weight: bold">{{key+': '}}</span> |
| | | <span>{{ item }}</span> |
| | | </li> |
| | | </ul> |
| | | </template> |
| | | |
| | | </el-form> |
| | | <div> |
| | | <el-table :data="tableData" border style="width: 100%"> |
| | | <el-table-column prop="送货单号" label="送货单号" width="100" /> |
| | | <el-table-column prop="销售单号" label="销售单号" width="120" /> |
| | | <el-table-column prop="客户名称" label="客户名称" width="180"/> |
| | | <el-table-column prop="项目名称" label="项目名称" width="100"/> |
| | | <el-table-column prop="业务员" label="业务员" width="80"/> |
| | | <el-table-column prop="订序" label="订序" width="80"/> |
| | | <el-table-column prop="楼层编号" label="楼层编号" width="100"/> |
| | | <el-table-column prop="订单数" label="订单数" width="100"/> |
| | | <el-table-column prop="长" label="长" width="180"/> |
| | | <el-table-column prop="宽" label="宽" width="80"/> |
| | | <el-table-column prop="厚度" label="厚度" width="100"/> |
| | | <el-table-column prop="总数量" label="总数量" width="80"/> |
| | | <el-table-column prop="箱号" label="箱号" width="80"/> |
| | | <el-table-column prop="总面积" label="总面积" width="80"/> |
| | | <el-table-column prop="报表日期" label="报表日期" width="100"/> |
| | | <el-table-column prop="成品编号" label="成品编号" width="120"/> |
| | | <el-table-column prop="成品名称" label="成品名称" width="130"/> |
| | | <el-table-column prop="数量" label="数量" width="80"/> |
| | | <el-table-column prop="状态" label="状态" width="80"/> |
| | | <el-table-column prop="备注" label="备注" width="80"/> |
| | | <el-table-column prop="选择" label="选择" type="selection" width="80"/> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">编辑</el-button> |
| | | |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | | <div> |
| | | <div v-for="(option, index) in column.filters" :key="index"> |
| | | <input type="type" v-model="option.data" @input="changeFilterEvent($event, option, $panel)"/> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | </vxe-grid> |
| | | </div> |
| | | </template> |
| | | <style> |
| | | |
| | | <style scoped> |
| | | .main-div-customer{ |
| | | width: 99%; |
| | | height: 100%; |
| | | } |
| | | </style> |