| | |
| | | const getTableRow = (row,type) =>{ |
| | | switch (type) { |
| | | case 'edit' :{ |
| | | alert('我接收到子组件传送的编辑信息') |
| | | alert('点击了保存') |
| | | //router.push({path: '/main/processCard/AddProcessCard', query: { id: row.id }}) |
| | | break |
| | | } |
| | |
| | | {title: '操作', width: 70, slots: { default: 'button_slot' },fixed:"left"}, |
| | | { type: 'seq',fixed:"left", title: '自序', width: 50 }, |
| | | |
| | | {field: 'reworkTeams',width: 90, title: '返工班组', editRender: { name: 'input', attrs: { placeholder: '' } }}, |
| | | {field: 'reworkNumber',width: 120, title: '返工编号',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, }, |
| | | {field: 'salesOrderNo',width: 120, title: '销售单号', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'processCardNo',width: 120, title: '流程卡号', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'entryName', width: 120,title: '项目名称',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'batch',width: 80, title: '批次', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: 'serialNumber',width: 80, title: '序号', sortable: true}, |
| | | {field: 'singlePieceName',width: 120, title: '单片名称', sortable: true}, |
| | | {field: 'marking',width: 80, title: '标记', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: 'pieces',width: 90, title: '片标记', sortable: true}, |
| | | {field: 'number',width: 80, title: '数量', sortable: true}, |
| | | {field: 'width',width: 80, title: '宽', sortable: true}, |
| | | {field: 'height',width: 80, title: '高', sortable: true}, |
| | | {field: 'shape',width: 80, title: '形状', sortable: true}, |
| | | {field: 'type',width: 100, title: '返工工序', sortable: true}, |
| | | {field: 'type',width: 100, title: '返工类型', sortable: true}, |
| | | {field: 'damage',width: 120, title: '返工原因', sortable: true}, |
| | | {field: 'device',width: 120, title: '责任设备', sortable: true}, |
| | | {field: 'teams',width: 120, title: '责任班组', sortable: true}, |
| | | {field: 'area',width: 120, title: '返工面积', sortable: true}, |
| | | {field: 'qualityInspector',width: 100, title: '质检员', sortable: true} |
| | | {field: 'reworkTeams',width: 150, title: '返工班组', editRender: { name: 'input', attrs: { placeholder: '' } }}, |
| | | /* {field: 'reworkNumber',width: 120, title: '返工编号',filters:[{ data: '' }],slots: { filter: 'num1_filter' } /!* , sortable: true*!/, },*/ |
| | | {field: 'salesOrderNo',width: 120, title: '销售单号' /* , sortable: true*/,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'processCardNo',width: 120, title: '流程卡号' /* , sortable: true*/,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'entryName', width: 120,title: '项目名称',filters:[{ data: '' }],slots: { filter: 'num1_filter' } /* , sortable: true*/}, |
| | | {field: 'batch',width: 80, title: '批次' /* , sortable: true*/,showOverflow:"ellipsis"}, |
| | | {field: 'serialNumber',width: 80, title: '序号' /* , sortable: true*/}, |
| | | {field: 'singlePieceName',width: 120, title: '单片名称' /* , sortable: true*/}, |
| | | {field: 'marking',width: 80, title: '标记' /* , sortable: true*/,showOverflow:"ellipsis"}, |
| | | {field: 'pieces',width: 90, title: '片标记' /* , sortable: true*/}, |
| | | {field: 'number',width: 80, title: '数量' /* , sortable: true*/}, |
| | | {field: 'width',width: 80, title: '宽' /* , sortable: true*/}, |
| | | {field: 'height',width: 80, title: '高' /* , sortable: true*/}, |
| | | {field: 'shape',width: 80, title: '形状' /* , sortable: true*/}, |
| | | {field: 'type',width: 100, title: '返工工序' /* , sortable: true*/}, |
| | | {field: 'type',width: 100, title: '返工类型' /* , sortable: true*/}, |
| | | {field: 'damage',width: 120, title: '返工原因' /* , sortable: true*/}, |
| | | {field: 'device',width: 120, title: '责任设备' /* , sortable: true*/}, |
| | | {field: 'teams',width: 120, title: '责任班组' /* , sortable: true*/}, |
| | | {field: 'area',width: 120, title: '返工面积' /* , sortable: true*/}, |
| | | {field: 'qualityInspector',width: 100, title: '质检员' /* , sortable: true*/} |
| | | ],//表头按钮 |
| | | |
| | | toolbarConfig: { |
| | |
| | | }) |
| | | ] |
| | | } |
| | | |
| | | , |
| | | /*合并脚*/ |
| | | mergeFooterItems: [ |
| | | {row: 0, col: 0, rowspan: 1, colspan: 2} |
| | | ], |
| | | }) |
| | | |
| | | |
| | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">保存</el-button> |
| | | |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | |
| | | <input type="type" v-model="option.data" @input="changeFilterEvent($event, option, $panel)"/> |
| | | </div> |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | |
| | | </vxe-grid> |
| | | </div> |
| | | </template> |
| | | |
| | | <style scoped> |
| | | |
| | | .main-div-customer{ |
| | | width: 99%; |
| | | height: 100%; |
| | | height: 98%; |
| | | } |
| | | |
| | | </style> |