| | |
| | | <!-- 订单调拨 --> |
| | | <!--成品调拨--> |
| | | |
| | | |
| | | <script lang="ts" setup> |
| | | import {ref} from "vue"; |
| | | const handleClick = (row)=>{ |
| | | router.push({ |
| | | path: '/orderAllocationUpdate', |
| | | query: { |
| | | rowData: JSON.stringify(row) |
| | | <script setup> |
| | | |
| | | 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 |
| | | } |
| | | }); |
| | | return { |
| | | tableData, |
| | | handleClick |
| | | }; |
| | | 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([ |
| | | { |
| | | "销售单号":'NG23121309', |
| | | "项目名称":'钢化玻璃', |
| | | "客户编号":'89', |
| | | "客户名称":'', |
| | | "流程卡号":'NG23121309A01', |
| | | "成品编号":'0604000299', |
| | | "箱架号":'0', |
| | | "成品名称":'3.2mm拱形钢化玻璃', |
| | | "长":'1610.00', |
| | | "宽":'520.00', |
| | | "厚":'3.20', |
| | | "数量":'122.00', |
| | | "单片面积":'0.8372', |
| | | "总面积":'102.1384', |
| | | "库区":'库区', |
| | | "库位":'0', |
| | | }, { |
| | | "销售单号":'NG23121309', |
| | | "项目名称":'钢化玻璃', |
| | | "客户编号":'89', |
| | | "客户名称":'', |
| | | "流程卡号":'NG23121309A01', |
| | | "成品编号":'0604000299', |
| | | "箱架号":'0', |
| | | "成品名称":'3.2mm拱形钢化玻璃', |
| | | "长":'1610.00', |
| | | "宽":'520.00', |
| | | "厚":'3.20', |
| | | "数量":'122.00', |
| | | "单片面积":'0.8372', |
| | | "总面积":'102.1384', |
| | | "库区":'库区', |
| | | "库位":'0', |
| | | |
| | | |
| | | |
| | | //子组件接收参数 |
| | | |
| | | 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 |
| | | }, |
| | | { |
| | | "销售单号":'NG23121309', |
| | | "项目名称":'钢化玻璃', |
| | | "客户编号":'89', |
| | | "客户名称":'', |
| | | "流程卡号":'NG23121309A01', |
| | | "成品编号":'0604000299', |
| | | "箱架号":'0', |
| | | "成品名称":'3.2mm拱形钢化玻璃', |
| | | "长":'1610.00', |
| | | "宽":'520.00', |
| | | "厚":'3.20', |
| | | "数量":'122.00', |
| | | "单片面积":'0.8372', |
| | | "总面积":'102.1384', |
| | | "库区":'库区', |
| | | "库位":'0', |
| | | 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: '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: 'NowNum', width: '120',title: '当前序号', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'Quantity',width: '140', title: '订单数量', sortable: true}, |
| | | {field: 'DiaoSalesOrderNumber', width: '150',title: '调拨单号',editRender: { name: 'input', attrs: { placeholder: '' } }, sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'NewNum', width:'150', title: '新订序', sortable: true,editRender: { name: 'input', attrs: { placeholder: '' } } }, |
| | | {field: 'DiaoQuantity',width: '140', title: '调拨数量',editRender: { name: 'input', attrs: { placeholder: '' } }, sortable: true}, |
| | | {field: 'ProcessCardNumber',width: '100', title: '流程卡号', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: 'FinishedProductNumber', width: '100',title: '成品编号', sortable: true}, |
| | | {field: 'ProductNumber',width: '100', title: '产品编号', sortable: true}, |
| | | {field: 'CustomerNumber', 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: 'SingleArea',width: '140', title: '单片面积', sortable: true}, |
| | | {field: 'TotalArea',width: '100', title: '总面积', sortable: true}, |
| | | {field: 'StorageArea',width: '100', title: '库区', sortable: true}, |
| | | {field: 'Location',width: '100', title: '库位', sortable: true}, |
| | | ],//表头按钮 |
| | | toolbarConfig: { |
| | | buttons: [ |
| | | {'name': '确认调架',status: 'primary'}, |
| | | {'name': '调拨记录'} |
| | | ], |
| | | import: false, |
| | | export: true, |
| | | print: true, |
| | | zoom: true, |
| | | custom: true |
| | | }, |
| | | data: [ |
| | | { |
| | | "SalesOrderNumber": "NG23072003", |
| | | "ProjectName": "钢化玻璃", |
| | | "ProcessCardNumber": "NG23072003A01", |
| | | 'FinishedProductNumber':'', |
| | | 'FinishedProductName':'', |
| | | 'BoxNumber':'', |
| | | "CustomerNumber": "KD0071", |
| | | "CustomerName": "件", |
| | | "Length": "1075.00", |
| | | "Width": "440.00", |
| | | "Thickness": "3.00", |
| | | "Quantity": "360", |
| | | "SingleArea": "0.473000", |
| | | "TotalArea": "170.28", |
| | | "StorageArea": "0.47", |
| | | "Location": "170.28", |
| | | "NowNum":'1' |
| | | },{ |
| | | "SalesOrderNumber": "NG23072003", |
| | | "ProjectName": "钢化玻璃", |
| | | "ProcessCardNumber": "NG23072003A01", |
| | | 'FinishedProductNumber':'', |
| | | 'FinishedProductName':'', |
| | | 'BoxNumber':'', |
| | | "CustomerNumber": "KD0071", |
| | | "CustomerName": "件", |
| | | "Length": "1075.00", |
| | | "Width": "440.00", |
| | | "Thickness": "3.00", |
| | | "Quantity": "360", |
| | | "SingleArea": "0.473000", |
| | | "TotalArea": "170.28", |
| | | "StorageArea": "0.47", |
| | | "Location": "170.28", |
| | | "NowNum":'1' |
| | | },{ |
| | | "SalesOrderNumber": "NG23072003", |
| | | "ProjectName": "钢化玻璃", |
| | | "ProcessCardNumber": "NG23072003A01", |
| | | 'FinishedProductNumber':'', |
| | | 'FinishedProductName':'', |
| | | 'BoxNumber':'', |
| | | "CustomerNumber": "KD0071", |
| | | "CustomerName": "件", |
| | | "Length": "1075.00", |
| | | "Width": "440.00", |
| | | "Thickness": "3.00", |
| | | "Quantity": "360", |
| | | "SingleArea": "0.473000", |
| | | "TotalArea": "170.28", |
| | | "StorageArea": "0.47", |
| | | "Location": "170.28", |
| | | "NowNum":'1' |
| | | }, |
| | | |
| | | ],//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="5"> |
| | | <!-- <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="name" placeholder="请输项目名称" style="width: 200px; height: 30px;" />--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="4">--> |
| | | <!-- <el-input v-model="name" placeholder="请输销售单号" style="width: 200px; height: 30px;" />--> |
| | | <!-- </el-col>--> |
| | | <el-col :span="2.5 "> |
| | | <el-button id="searchButton" type="primary" :icon="Search">调架记录</el-button> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-button id="searchButton" type="primary" :icon="Search">查询</el-button> |
| | | </el-col> |
| | | > |
| | | <!-- @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-row> |
| | | </el-form> |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">编辑</el-button> |
| | | <!-- <el-button @click="getTableRow(row,'out')" link type="primary" size="small">成品领出</el-button>--> |
| | | <!-- <el-button @click="getTableRow(row,'back')" 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> |
| | | <div> |
| | | <el-table :data="tableData" border style="width: 100%;"> |
| | | <el-table-column prop="销售单号" label="销售单号" width="180" style="text-align: center"/> |
| | | <el-table-column prop="项目名称" label="项目名称" width="180" /> |
| | | <el-table-column prop="客户编号" label="客户编号" width="180"/> |
| | | <el-table-column prop="客户名称" label="客户名称" width="180"/> |
| | | <el-table-column prop="流程卡号" label="流程卡号" width="180"/> |
| | | <el-table-column prop="成品编号" label="成品编号" width="180"/> |
| | | <el-table-column prop="箱架号" label="箱架号" width="180"/> |
| | | <el-table-column prop="成品名称" label="成品名称" width="180"/> |
| | | <el-table-column prop="长" label="长" width="180"/> |
| | | <el-table-column prop="宽" label="宽" width="180"/> |
| | | <el-table-column prop="厚" label="厚" width="180"/> |
| | | <el-table-column prop="数量" label="数量" width="180"/> |
| | | <el-table-column prop="单片面积" label="单片面积" width="180"/> |
| | | <el-table-column prop="总面积" label="总面积" width="180"/> |
| | | <el-table-column prop="库区" label="库区" width="180"/> |
| | | <el-table-column prop="库位" label="库位" width="180"/> |
| | | <el-table-column fixed="left" label="操作" width="80"> |
| | | <template #default> |
| | | <el-button link type="primary" size="small" @click="handleClick(row)" |
| | | >编辑</el-button> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | <style> |
| | | |
| | | <style scoped> |
| | | .main-div-customer{ |
| | | width: 99%; |
| | | height: 100%; |
| | | } |
| | | </style> |