| | |
| | | import {filterChanged} from "@/hook"; |
| | | import {addListener, toolbarButtonClickEvent} from "@/hook/mouseMove" |
| | | import domZindex from 'dom-zindex' |
| | | import { VxeUI } from 'vxe-pc-ui' |
| | | |
| | | const { t } = useI18n() |
| | | const userStore = useUserInfoStore() |
| | | let selectRecords = ref(null) |
| | | let router = useRouter() |
| | | let props = defineProps({ |
| | | processId:null, |
| | | technologyNumber:null |
| | | technologyNumber:null, |
| | | process:null |
| | | }) |
| | | domZindex.setCurrent(3000) |
| | | |
| | |
| | | }) |
| | | |
| | | //第一次加载数据 |
| | | request.post(`/processCard/printFlowCardDetails/${props.processId}/${props.technologyNumber}`,filterData.value).then((res) => { |
| | | request.post(`/processCard/printFlowCardDetails/${props.processId}/${props.technologyNumber}/${props.process}`,filterData.value).then((res) => { |
| | | if (res.code == 200) { |
| | | produceDetailList.value = (res.data.data) |
| | | xGridDetail.value.reloadData(produceDetailList.value) |
| | |
| | | isChecked: true |
| | | }, |
| | | editConfig: { |
| | | trigger: 'click', |
| | | trigger: 'dblclick', |
| | | mode: 'row', |
| | | showStatus: true |
| | | },//表头参数 |
| | |
| | | visible: true, |
| | | disabled: false |
| | | }, |
| | | { |
| | | code: 'flashback', |
| | | name: '倒叙', |
| | | prefixIcon: 'vxe-icon-indicator', |
| | | visible: true, |
| | | disabled: false |
| | | }, |
| | | ] |
| | | ] |
| | | } |
| | |
| | | {type: 'seq', fixed: "left", title: t('basicData.Number'), width: 50}, |
| | | { |
| | | field: 'sort', |
| | | width: 80, |
| | | width: 90, |
| | | editRender: {name: 'input', attrs: {placeholder: ''}}, |
| | | sortable: true, |
| | | title: t('processCard.sorting'), |
| | | }, |
| | | { |
| | |
| | | title: t('processCard.processId'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | filterMethod: filterChanged,width: 130 |
| | | }, |
| | | { |
| | | field: 'order_number', |
| | | title: t('order.OrderNum'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | filterMethod: filterChanged,width: 100 |
| | | }, |
| | | { |
| | | field: 'technology_number', |
| | | title: t('processCard.technologyNumber'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | filterMethod: filterChanged,width: 100 |
| | | }, |
| | | { |
| | | field: 'glassNumber', |
| | | title: t('reportingWorks.glassNumber'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged,width: 100 |
| | | }, |
| | | { |
| | | field: 'glass_address', |
| | | title: t('processCard.glassAddress'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | filterMethod: filterChanged,width: 100 |
| | | }, |
| | | { |
| | | field: 'glass_child', |
| | | title: t('reportingWorks.glassChild'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged,width: 120 |
| | | }, |
| | | { |
| | | field: 'quantity', |
| | | title: t('order.quantity'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | filterMethod: filterChanged,width: 70 |
| | | }, |
| | | { |
| | | field: 'child_width', |
| | |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged, |
| | | sortable: true, |
| | | width: 100 |
| | | }, |
| | | { |
| | | field: 'child_height', |
| | |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged, |
| | | sortable: true, |
| | | sortable: true,width: 100 |
| | | }, |
| | | { |
| | | field: 'bend_radius', |
| | | title: t('order.bendRadius'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged, |
| | | sortable: true,width: 120 |
| | | }, |
| | | { |
| | | field: 'area', |
| | | title: t('order.area'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged,width: 100 |
| | | }, |
| | | { |
| | | field: 'process', |
| | | title: t('craft.process'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | |
| | | let result = toolbarButtonClickEvent() |
| | | if (result.cell === "sort" ) { |
| | | if (result) { |
| | | const dataList = xGrid.value.getTableData().visibleData |
| | | const dataList = xGridDetail.value.getTableData().visibleData |
| | | let val = 1 |
| | | dataList.forEach((item, index) => { |
| | | if (index >= result.start && index <= result.end) { |
| | |
| | | let result = toolbarButtonClickEvent() |
| | | if (result.cell === "sort" ) { |
| | | if (result) { |
| | | const dataList = xGrid.value.getTableData().visibleData |
| | | const dataList = xGridDetail.value.getTableData().visibleData |
| | | let val = dataList[result.start][result.cell] |
| | | dataList.forEach((item, index) => { |
| | | if (index >= result.start && index <= result.end) { |
| | | item[result.cell] = val |
| | | val=val*1+1 |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | break |
| | | } |
| | | case 'flashback' : { |
| | | let result = toolbarButtonClickEvent() |
| | | if (result.cell === "sort" ) { |
| | | if (result) { |
| | | const dataList = xGridDetail.value.getTableData().visibleData |
| | | let val = dataList[result.start][result.cell] |
| | | dataList.forEach((item, index) => { |
| | | if (index >= result.start && index <= result.end) { |
| | | item[result.cell] = val |
| | | val=val*1-1 |
| | | } |
| | | }) |
| | | } |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | const handleCellDblClick = ({ row, column, cell, $event }) => { |
| | | VxeUI.clipboard.copy(row[column.property]) |
| | | } |
| | | |
| | | </script> |
| | | |
| | |
| | | height="100%" |
| | | size="small" |
| | | v-bind="detailGridOptions" |
| | | v-on="gridEventsDetail"> |
| | | v-on="gridEventsDetail" |
| | | @cell-dblclick="handleCellDblClick" |
| | | > |
| | | |
| | | <template #content="{ row }"> |
| | | <ul class="expand-wrapper"> |