| | |
| | | :expand-config="expandConfig" |
| | | :tree-config="treeConfig" |
| | | :row-style="rowStyle" |
| | | :virtualYConfig="virtualYConfig" |
| | | @sort-change="sortChange" |
| | | @page-change="pagerChange" |
| | | @form-submit="findList" |
| | | @checkbox-change="checkChange" |
| | | @checkbox-all="checkChangeall" |
| | | @scroll-boundary="scrollBoundaryEvent" |
| | | > |
| | | <template v-slot:buttons="row"> |
| | | <slot name="buttons" v-bind="row"/> |
| | | </template> |
| | | <template #expandContent="{ row }"> |
| | | <vxe-grid v-bind="subGridOptions" :data="row.subList"> |
| | | </vxe-grid> |
| | | <vxe-grid v-bind="subGridOptions" :data="row.subList"> </vxe-grid> |
| | | </template> |
| | | <template v-slot:status="row" > |
| | | <slot name="status" v-bind="row"/> |
| | |
| | | showOverflow: { |
| | | type: Boolean, |
| | | default: () => { |
| | | return true |
| | | } |
| | | return true; |
| | | }, |
| | | }, |
| | | columns: { |
| | | type: Array, |
| | | default: () => { |
| | | return [] |
| | | } |
| | | return []; |
| | | }, |
| | | }, |
| | | showfooter: { |
| | | type: Boolean, |
| | | default: () => { |
| | | return false |
| | | } |
| | | return false; |
| | | }, |
| | | }, |
| | | toolbar: { |
| | | type: Object, |
| | | default: () => { |
| | | return { |
| | | id: 'khjgz', |
| | | id: "khjgz", |
| | | zoom: true, |
| | | resizable: { |
| | | storage: true |
| | | storage: true, |
| | | }, |
| | | custom: { |
| | | storage: true |
| | | storage: true, |
| | | }, |
| | | slots: { |
| | | buttons: 'buttons' |
| | | } |
| | | } |
| | | } |
| | | buttons: "buttons", |
| | | }, |
| | | }; |
| | | }, |
| | | }, |
| | | data: { |
| | | type: Array, |
| | | default: () => { |
| | | return [] |
| | | } |
| | | return []; |
| | | }, |
| | | }, |
| | | loading: { |
| | | type: Boolean, |
| | | default: false |
| | | default: false, |
| | | }, |
| | | page: { |
| | | type: Object, |
| | | default: function() { |
| | | return null |
| | | } |
| | | return null; |
| | | }, |
| | | }, |
| | | checkboxConfig: { |
| | | type: Object, |
| | | default: () => { |
| | | return {} |
| | | } |
| | | return {}; |
| | | }, |
| | | }, |
| | | maxHeight: { |
| | | type: String, |
| | | default: () => { |
| | | return '' |
| | | } |
| | | return ""; |
| | | }, |
| | | }, |
| | | height: { |
| | | type: String, |
| | | default: () => { |
| | | return '' |
| | | } |
| | | return ""; |
| | | }, |
| | | }, |
| | | reloadData: { |
| | | type: Function, |
| | | default: () => { |
| | | return {} |
| | | } |
| | | return {}; |
| | | }, |
| | | }, |
| | | footerCellClassName: { |
| | | type: Function, |
| | | default: () => { |
| | | return {} |
| | | } |
| | | return {}; |
| | | }, |
| | | }, |
| | | mxTableFootData: { |
| | | type: Array, |
| | | default: () => { |
| | | return [] |
| | | } |
| | | return []; |
| | | }, |
| | | }, |
| | | expandConfig: { |
| | | type: Object, |
| | | default: () => { |
| | | return {lazy: false} |
| | | } |
| | | return { lazy: false }; |
| | | }, |
| | | }, |
| | | subGridOptions: { |
| | | type:Object, |
| | | default :()=>{ |
| | | return {} |
| | | } |
| | | return {}; |
| | | }, |
| | | }, |
| | | treeConfig: { |
| | | type: Object, |
| | | default: () => { |
| | | return {} |
| | | } |
| | | return {}; |
| | | }, |
| | | }, |
| | | rowStyle: { |
| | | type: Function, |
| | | default: () => { |
| | | return {} |
| | | } |
| | | return {}; |
| | | }, |
| | | |
| | | }) |
| | | |
| | | }, |
| | | virtualYConfig:{ |
| | | type: Object, |
| | | default: () => { |
| | | return {}; |
| | | }, |
| | | } |
| | | }); |
| | | |
| | | const tableForm = ref([]); |
| | | |
| | |
| | | const emit = defineEmits(); |
| | | |
| | | function pagerChange({ type, currentPage, pageSize }) { |
| | | if (type == 'current') { |
| | | if (type == "current") { |
| | | emit("changePageNo", currentPage); |
| | | } else if (type == 'size') { |
| | | emit('changePageSize', pageSize) |
| | | } else if (type == "size") { |
| | | emit("changePageSize", pageSize); |
| | | } |
| | | } |
| | | function findList() {} |
| | | |
| | | function sortChange({ column, property, order }) { |
| | | emit('sortTable', property, order) |
| | | emit("sortTable", property, order); |
| | | } |
| | | |
| | | function checkChange(info) { |
| | | const { records, checked, row, rowIndex } = info |
| | | emit('on-checkbox', { records, rowIndex, checked }) |
| | | const { records, checked, row, rowIndex } = info; |
| | | emit("on-checkbox", { records, rowIndex, checked }); |
| | | } |
| | | |
| | | function checkChangeall(info) { |
| | | const { records, checked, row } = info |
| | | emit('on-checkbox', { records, rowIndex: null, checked }) |
| | | const { records, checked, row } = info; |
| | | emit("on-checkbox", { records, rowIndex: null, checked }); |
| | | } |
| | | |
| | | // å®ä¹ footerMethod 彿° |
| | | function footerMethod({ columns, data }) { |
| | | // 触å footerMethod äºä»¶ |
| | | emit('footerMethod', { columns, data }); |
| | | emit("footerMethod", { columns, data }); |
| | | // è¿å Vuex ä¸ç hxlhTableFootData ç¶æ |
| | | // return useStore.state.hxlhTableFootData; |
| | | }; |
| | | |
| | | function handleSum(list, field) { |
| | | var total = 0 |
| | | for (var index = 0; index < list.length; index++) { |
| | | total += Number(list[index][field] || 0) |
| | | } |
| | | return total |
| | | function scrollBoundaryEvent ({ direction }) { |
| | | switch (direction) { |
| | | case 'top': |
| | | console.log('触åé¡¶é¨éå¼èå´') |
| | | break |
| | | case 'bottom': |
| | | console.log('触ååºé¨éå¼èå´') |
| | | // this.loadList(20) |
| | | emit('bottomAutoLoadMore') |
| | | break |
| | | case 'left': |
| | | console.log('触å左侧éå¼èå´') |
| | | break |
| | | case 'right': |
| | | console.log('触åå³ä¾§éå¼èå´') |
| | | break |
| | | } |
| | | } |
| | | function handleSum(list, field) { |
| | | var total = 0; |
| | | for (var index = 0; index < list.length; index++) { |
| | | total += Number(list[index][field] || 0); |
| | | } |
| | | return total; |
| | | } |
| | | const vxeTable = ref(null); |
| | | |
| | | // å¨å¼åçæ¹åæ¶æ´æ°è¡¨å°¾å计 |
| | | function updateFooter(params) { |
| | | const xTable = vxeTable.value |
| | | xTable.updateFooter() |
| | | const xTable = vxeTable.value; |
| | | xTable.updateFooter(); |
| | | } |
| | | |
| | | // åæ¶å¤éæ¡éæ© |
| | | function clearCheckboxRow() { |
| | | const xTable = vxeTable.value |
| | | xTable.clearCheckboxRow() |
| | | const xTable = vxeTable.value; |
| | | xTable.clearCheckboxRow(); |
| | | } |
| | | |
| | | // å®ä¹ tablePage 计ç®å±æ§ |
| | |
| | | total: props.page.total, |
| | | currentPage: props.page.current, |
| | | pageSize: props.page.size, |
| | | align: 'left', |
| | | align: "left", |
| | | pageSizes: [10, 20, 50, 100, 500], |
| | | layouts: ['PrevJump', 'PrevPage', 'Number', 'NextPage', 'NextJump', 'Sizes', 'FullJump', 'Total'], |
| | | perfect: true |
| | | layouts: [ |
| | | "PrevJump", |
| | | "PrevPage", |
| | | "Number", |
| | | "NextPage", |
| | | "NextJump", |
| | | "Sizes", |
| | | "FullJump", |
| | | "Total", |
| | | ], |
| | | perfect: true, |
| | | }; |
| | | }); |
| | | |
| | |
| | | .vxe-table .vxe-footer--column.col-red { |
| | | color: red; |
| | | } |
| | | |
| | | </style> |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="90px"> |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryRef" |
| | | :inline="true" |
| | | v-show="showSearch" |
| | | label-width="90px" |
| | | > |
| | | <el-row :gutter="20"> |
| | | <el-col |
| | | :span="6"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="éææ¥æ" style="width: 308px"> |
| | | <el-date-picker |
| | | v-model="daterangeIntegrationDay" |
| | |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="6"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="æå·" prop="itemNo"> |
| | | <el-input |
| | | v-model="queryParams.itemNo" |
| | |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="12" |
| | | style="text-align: right;"> |
| | | <el-col :span="12" style="text-align: right"> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="Search" @click="handleQuery">æç´¢</el-button> |
| | | <el-button type="primary" icon="Search" @click="handleQuery" |
| | | >æç´¢</el-button |
| | | > |
| | | <el-button icon="Refresh" @click="resetQuery">éç½®</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | icon="Upload" |
| | | @click="handleImport" |
| | | v-hasPermi="['processRoute:processRoute:importData']" |
| | | >导å
¥</el-button> |
| | | >导å
¥</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | |
| | | icon="Download" |
| | | @click="handleExport" |
| | | v-hasPermi="['processRoute:processRoute:export']" |
| | | >导åº</el-button> |
| | | >导åº</el-button |
| | | > |
| | | </el-col> |
| | | <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> |
| | | <right-toolbar |
| | | v-model:showSearch="showSearch" |
| | | @queryTable="getList" |
| | | ></right-toolbar> |
| | | </el-row> |
| | | <HxlhTable |
| | | style="width: 100%" |
| | | :columns="columns" |
| | | :virtualYConfig="virtualYConfig" |
| | | :data="processRouteList" |
| | | :loading="loading" |
| | | :height="height" |
| | | @bottomAutoLoadMore="handleAutoLoadMore" |
| | | @on-checkbox="handleCheckboxChange" |
| | | > |
| | | </HxlhTable> |
| | | <!-- ç¨æ·å¯¼å
¥å¯¹è¯æ¡ --> |
| | | <el-dialog :title="upload.title" v-model="upload.open" width="90%" append-to-body @close="dialogCancel"> |
| | | <el-dialog |
| | | :title="upload.title" |
| | | v-model="upload.open" |
| | | width="90%" |
| | | append-to-body |
| | | @close="dialogCancel" |
| | | > |
| | | <el-row :gutter="10"> |
| | | <el-col> |
| | | <div style="border-bottom: 1px solid #ccc;" > |
| | | <p>ä¸ä¼ Excelæä»¶ï¼å
å«å·¥èºè·¯çº¿ä¿¡æ¯ãç³»ç»å°è§£ææ°æ®å¹¶ä¿åå°æ¬å°ï¼ç¨äºå
³èå°é¶ä»¶è®¡åä¸ã</p> |
| | | <div style="border-bottom: 1px solid #ccc"> |
| | | <p> |
| | | ä¸ä¼ Excelæä»¶ï¼å
å«å·¥èºè·¯çº¿ä¿¡æ¯ãç³»ç»å°è§£ææ°æ®å¹¶ä¿åå°æ¬å°ï¼ç¨äºå
³èå°é¶ä»¶è®¡åä¸ã |
| | | </p> |
| | | </div> |
| | | </el-col> |
| | | <el-col > |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10" style="margin-top: 20px;"> |
| | | </el-row> |
| | | <el-row :gutter="10" style="margin-top: 20px"> </el-row> |
| | | <el-row> |
| | | <el-col> |
| | | <el-upload ref="uploadRef" :limit="1" accept=".xlsx, .xls" :headers="upload.headers" :action="upload.url + '?updateSupport=' + upload.updateSupport" :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :auto-upload="true" drag> |
| | | <el-upload |
| | | ref="uploadRef" |
| | | :limit="1" |
| | | accept=".xlsx, .xls" |
| | | :headers="upload.headers" |
| | | :action="upload.url + '?updateSupport=' + upload.updateSupport" |
| | | :disabled="upload.isUploading" |
| | | :on-progress="handleFileUploadProgress" |
| | | :on-success="handleFileSuccess" |
| | | :auto-upload="true" |
| | | drag |
| | | > |
| | | <el-icon class="el-icon--upload"><upload-filled /></el-icon> |
| | | <div class="el-upload__text">å°æä»¶æå°æ¤å¤ï¼æ<em>ç¹å»ä¸ä¼ </em></div> |
| | | <div class="el-upload__text"> |
| | | å°æä»¶æå°æ¤å¤ï¼æ<em>ç¹å»ä¸ä¼ </em> |
| | | </div> |
| | | <template #tip> |
| | | <div class="el-upload__tip"> |
| | | <span>ä»
å
许导å
¥xlsãxlsxæ ¼å¼æä»¶ã</span> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col style="margin-top: 20px;"> |
| | | <el-col style="margin-top: 20px"> |
| | | <div v-show="isVisible"> |
| | | <el-alert icon="Check" :show-icon="true" title="å·¥èºè·¯çº¿æ°æ®å·²æåè§£æ" type="success" :closable="false"/> |
| | | <el-alert |
| | | icon="Check" |
| | | :show-icon="true" |
| | | title="å·¥èºè·¯çº¿æ°æ®å·²æåè§£æ" |
| | | type="success" |
| | | :closable="false" |
| | | /> |
| | | </div> |
| | | <div v-show="isError"> |
| | | <el-alert icon="Close" :show-icon="true" title="å·¥èºè·¯çº¿æ°æ®å·²è§£æå¤±è´¥" type="error" :closable="false"/> |
| | | <el-alert |
| | | icon="Close" |
| | | :show-icon="true" |
| | | title="å·¥èºè·¯çº¿æ°æ®å·²è§£æå¤±è´¥" |
| | | type="error" |
| | | :closable="false" |
| | | /> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </HxlhTable> |
| | | </el-col> |
| | | <el-col> |
| | | <div style="text-align: right;"> |
| | | <h4>å
±ä¸ä¼ <span style="color: blue;">{{ total }}</span>æ¡å·¥èºè·¯çº¿æ°æ®</h4> |
| | | <div style="text-align: right"> |
| | | <h4> |
| | | å
±ä¸ä¼ <span style="color: blue">{{ total }}</span |
| | | >æ¡å·¥èºè·¯çº¿æ°æ® |
| | | </h4> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | :disabled="planned" |
| | | @click="uploadParse" |
| | | v-hasPermi="['processRoute:processRoute:confirmProcessRoute']" |
| | | >确认ä¸ä¼ </el-button> |
| | | >确认ä¸ä¼ </el-button |
| | | > |
| | | <el-button @click="dialogCancel">å æ¶</el-button> |
| | | </div> |
| | | </template> |
| | |
| | | </template> |
| | | |
| | | <script setup name="ProcessRoute"> |
| | | import { listProcessRoute, getProcessRoute, delProcessRoute, addProcessRoute, updateProcessRoute,processRouteTempList,confirmProcessRoute } from "@/api/basicData/processRoute"; |
| | | import HxlhTable from '@/components/HxlhTable' |
| | | import { |
| | | listProcessRoute, |
| | | getProcessRoute, |
| | | delProcessRoute, |
| | | addProcessRoute, |
| | | updateProcessRoute, |
| | | processRouteTempList, |
| | | confirmProcessRoute, |
| | | } from "@/api/basicData/processRoute"; |
| | | import HxlhTable from "@/components/HxlhTable"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import { ref } from "vue"; |
| | | import { ElMessage } from 'element-plus' |
| | | import { ElMessage } from "element-plus"; |
| | | const { proxy } = getCurrentInstance(); |
| | | |
| | | const processRouteList = ref([]); |
| | |
| | | const title = ref(""); |
| | | const daterangeIntegrationDay = ref([]); |
| | | //å¼¹çªç¸å
³ |
| | | const height = ref(document.documentElement.clientHeight - 260 + "px;") |
| | | const height = ref(document.documentElement.clientHeight - 260 + "px;"); |
| | | const isVisible = ref(false); |
| | | const isError = ref(false); |
| | | const planned = ref(true); |
| | |
| | | const exampleHeight = ref("500px"); |
| | | const uploadRef = ref(); |
| | | const exampleList = ref([]); |
| | | const virtualYConfig = { |
| | | enabled: true, |
| | | gt: 0, |
| | | threshold: 50, |
| | | }; |
| | | /*** ç¨æ·å¯¼å
¥åæ° */ |
| | | const upload = reactive({ |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå±ï¼ç¨æ·å¯¼å
¥ï¼ |
| | |
| | | // 设置ä¸ä¼ ç请æ±å¤´é¨ |
| | | headers: { Authorization: "Bearer " + getToken() }, |
| | | // ä¸ä¼ çå°å |
| | | url: import.meta.env.VITE_APP_BASE_API + "/aps/processRoute/importData" |
| | | url: import.meta.env.VITE_APP_BASE_API + "/aps/processRoute/importData", |
| | | }); |
| | | // è¡¨æ ¼é
ç½®-å表 |
| | | const columns = ref([ |
| | | { type: 'checkbox', width: 60, align:"center"}, |
| | | { type: 'seq', title: 'åºå·', width: 60 }, |
| | | { type: "checkbox", width: 60, align: "center" }, |
| | | { type: "seq", title: "åºå·", width: 60 }, |
| | | { |
| | | title: 'æå·', |
| | | field: 'itemNo', |
| | | title: "æå·", |
| | | field: "itemNo", |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åå·', |
| | | field: 'workOrderNo', |
| | | title: "å·¥åå·", |
| | | field: "workOrderNo", |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºåºå·', |
| | | field: 'processNumber', |
| | | title: "å·¥åºåºå·", |
| | | field: "processNumber", |
| | | width: 100, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºåç§°', |
| | | field: 'processName', |
| | | title: "å·¥åºåç§°", |
| | | field: "processName", |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºè®¡åå¼å§æ¥æ', |
| | | field: 'processPlanStartDay', |
| | | title: "å·¥åºè®¡åå¼å§æ¥æ", |
| | | field: "processPlanStartDay", |
| | | width: 200, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºè®¡åç»ææ¥æ', |
| | | field: 'processPlanEndDay', |
| | | title: "å·¥åºè®¡åç»ææ¥æ", |
| | | field: "processPlanEndDay", |
| | | width: 200, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'æªå¼å·¥æ°é', |
| | | field: 'notStartWorkCount', |
| | | title: "æªå¼å·¥æ°é", |
| | | field: "notStartWorkCount", |
| | | width: 90, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: '已宿æ°é', |
| | | field: 'completedCount', |
| | | title: "已宿æ°é", |
| | | field: "completedCount", |
| | | width: 90, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'åºå¼æ°é', |
| | | field: 'discardCount', |
| | | title: "åºå¼æ°é", |
| | | field: "discardCount", |
| | | width: 90, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'æ åå·¥æ¶', |
| | | field: 'standardTime', |
| | | title: "æ åå·¥æ¶", |
| | | field: "standardTime", |
| | | width: 90, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºæåº', |
| | | field: 'processOrder', |
| | | title: "å·¥åºæåº", |
| | | field: "processOrder", |
| | | width: 90, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'éææ¥æ', |
| | | field: 'integrationDay', |
| | | title: "éææ¥æ", |
| | | field: "integrationDay", |
| | | width: 160, |
| | | align:"center", |
| | | } |
| | | }, |
| | | ]); |
| | | |
| | | // è¡¨æ ¼é
ç½®-å¼¹çª |
| | | const exampleColumns = ref([ |
| | | { type: 'seq', title: 'åºå·', width: 60 }, |
| | | { type: "seq", title: "åºå·", width: 60 }, |
| | | { |
| | | title: 'æå·', |
| | | field: 'itemNo', |
| | | title: "æå·", |
| | | field: "itemNo", |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åå·', |
| | | field: 'workOrderNo', |
| | | title: "å·¥åå·", |
| | | field: "workOrderNo", |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºåºå·', |
| | | field: 'processNumber', |
| | | title: "å·¥åºåºå·", |
| | | field: "processNumber", |
| | | width: 85, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºåç§°', |
| | | field: 'processName', |
| | | title: "å·¥åºåç§°", |
| | | field: "processName", |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºè®¡åå¼å§æ¥æ', |
| | | field: 'processPlanStartDay', |
| | | title: "å·¥åºè®¡åå¼å§æ¥æ", |
| | | field: "processPlanStartDay", |
| | | width: 200, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºè®¡åç»ææ¥æ', |
| | | field: 'processPlanEndDay', |
| | | title: "å·¥åºè®¡åç»ææ¥æ", |
| | | field: "processPlanEndDay", |
| | | width: 200, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'æªå¼å·¥æ°é', |
| | | field: 'notStartWorkCount', |
| | | title: "æªå¼å·¥æ°é", |
| | | field: "notStartWorkCount", |
| | | width: 140, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: '已宿æ°é', |
| | | field: 'completedCount', |
| | | title: "已宿æ°é", |
| | | field: "completedCount", |
| | | width: 140, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'åºå¼æ°é', |
| | | field: 'discardCount', |
| | | title: "åºå¼æ°é", |
| | | field: "discardCount", |
| | | width: 140, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'æ åå·¥æ¶', |
| | | field: 'standardTime', |
| | | title: "æ åå·¥æ¶", |
| | | field: "standardTime", |
| | | width: 140, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºæåº', |
| | | field: 'processOrder', |
| | | title: "å·¥åºæåº", |
| | | field: "processOrder", |
| | | width: 140, |
| | | align:"center", |
| | | }, |
| | |
| | | form: {}, |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | pageSize: 10000, |
| | | itemNo: null, |
| | | integrationDay: null, |
| | | }, |
| | | rules: { |
| | | } |
| | | rules: {}, |
| | | }); |
| | | |
| | | const { queryParams, form, rules } = toRefs(data); |
| | |
| | | function getList() { |
| | | loading.value = true; |
| | | queryParams.value.params = {}; |
| | | if (null != daterangeIntegrationDay && '' != daterangeIntegrationDay) { |
| | | queryParams.value.params["beginIntegrationDay"] = daterangeIntegrationDay.value[0]; |
| | | queryParams.value.params["endIntegrationDay"] = daterangeIntegrationDay.value[1]; |
| | | if (null != daterangeIntegrationDay && "" != daterangeIntegrationDay) { |
| | | queryParams.value.params["beginIntegrationDay"] = |
| | | daterangeIntegrationDay.value[0]; |
| | | queryParams.value.params["endIntegrationDay"] = |
| | | daterangeIntegrationDay.value[1]; |
| | | } |
| | | listProcessRoute(queryParams.value).then(response => { |
| | | listProcessRoute(queryParams.value).then((response) => { |
| | | processRouteList.value = response.rows; |
| | | total.value = response.total; |
| | | loading.value = false; |
| | | }); |
| | | } |
| | | |
| | | function handleAutoLoadMore(){ |
| | | queryParams.value.pageNum++; |
| | | getList(); |
| | | } |
| | | // åæ¶æé® |
| | | function cancel() { |
| | | open.value = false; |
| | |
| | | createBy: null, |
| | | createTime: null, |
| | | updateBy: null, |
| | | updateTime: null |
| | | updateTime: null, |
| | | }; |
| | | proxy.resetForm("processRouteRef"); |
| | | } |
| | |
| | | |
| | | // å¤éæ¡é䏿°æ® |
| | | function handleSelectionChange(selection) { |
| | | ids.value = selection.map(item => item.id); |
| | | ids.value = selection.map((item) => item.id); |
| | | single.value = selection.length != 1; |
| | | multiple.value = !selection.length; |
| | | } |
| | |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | function handleUpdate(row) { |
| | | reset(); |
| | | const _id = row.id || ids.value |
| | | getProcessRoute(_id).then(response => { |
| | | const _id = row.id || ids.value; |
| | | getProcessRoute(_id).then((response) => { |
| | | form.value = response.data; |
| | | open.value = true; |
| | | title.value = "ä¿®æ¹å·¥èºè·¯çº¿"; |
| | |
| | | |
| | | /** æäº¤æé® */ |
| | | function submitForm() { |
| | | proxy.$refs["processRouteRef"].validate(valid => { |
| | | proxy.$refs["processRouteRef"].validate((valid) => { |
| | | if (valid) { |
| | | if (form.value.id != null) { |
| | | updateProcessRoute(form.value).then(response => { |
| | | updateProcessRoute(form.value).then((response) => { |
| | | proxy.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | open.value = false; |
| | | getList(); |
| | | }); |
| | | } else { |
| | | addProcessRoute(form.value).then(response => { |
| | | addProcessRoute(form.value).then((response) => { |
| | | proxy.$modal.msgSuccess("æ°å¢æå"); |
| | | open.value = false; |
| | | getList(); |
| | |
| | | /** å é¤æé®æä½ */ |
| | | function handleDelete(row) { |
| | | const _ids = row.id || ids.value; |
| | | proxy.$modal.confirm('æ¯å¦ç¡®è®¤å é¤å·¥èºè·¯çº¿ç¼å·ä¸º"' + _ids + '"çæ°æ®é¡¹ï¼').then(function() { |
| | | proxy.$modal |
| | | .confirm('æ¯å¦ç¡®è®¤å é¤å·¥èºè·¯çº¿ç¼å·ä¸º"' + _ids + '"çæ°æ®é¡¹ï¼') |
| | | .then(function () { |
| | | return delProcessRoute(_ids); |
| | | }).then(() => { |
| | | }) |
| | | .then(() => { |
| | | getList(); |
| | | proxy.$modal.msgSuccess("å 餿å"); |
| | | }).catch(() => {}); |
| | | }) |
| | | .catch(() => {}); |
| | | } |
| | | /** 导å
¥æé®æä½ */ |
| | | function handleImport() { |
| | | upload.title = "å·¥èºè·¯çº¿æ°æ®ä¸ä¼ "; |
| | | upload.open = true; |
| | | }; |
| | | } |
| | | /** å¯¼åºæé®æä½ */ |
| | | function handleExport() { |
| | | proxy.download('aps/processRoute/export', { |
| | | ...queryParams.value |
| | | }, `processRoute_${new Date().getTime()}.xlsx`) |
| | | proxy.download( |
| | | "aps/processRoute/export", |
| | | { |
| | | ...queryParams.value, |
| | | }, |
| | | `processRoute_${new Date().getTime()}.xlsx` |
| | | ); |
| | | } |
| | | |
| | | |
| | | /**æä»¶ä¸ä¼ ä¸å¤ç */ |
| | | const handleFileUploadProgress = (event, file, fileList) => { |
| | |
| | | |
| | | /** æä»¶ä¸ä¼ æåå¤ç */ |
| | | const handleFileSuccess = (response, file, fileList) => { |
| | | if(response.code == '200'){ |
| | | if (response.code == "200") { |
| | | batchNumber.value = response.data; |
| | | isVisible.value = true; |
| | | planned.value = false; |
| | |
| | | getExampleList(); |
| | | }else{ |
| | | isError.value = true; |
| | | proxy.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导å
¥ç»æ", { dangerouslyUseHTMLString: true }); |
| | | proxy.$alert( |
| | | "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + |
| | | response.msg + |
| | | "</div>", |
| | | "导å
¥ç»æ", |
| | | { dangerouslyUseHTMLString: true } |
| | | ); |
| | | } |
| | | proxy.$refs["uploadRef"].handleRemove(file); |
| | | upload.isUploading = false; |
| | |
| | | loading.value = true; |
| | | queryParams.value = {}; |
| | | queryParams.value.batchNumber = batchNumber.value; |
| | | processRouteTempList(queryParams.value).then(response => { |
| | | processRouteTempList(queryParams.value).then((response) => { |
| | | exampleList.value = response.rows; |
| | | total.value = response.total; |
| | | loading.value = false; |
| | |
| | | function uploadParse() { |
| | | queryParams.value.params = {}; |
| | | queryParams.value.params["batchNumber"] = batchNumber.value; |
| | | confirmProcessRoute(queryParams.value).then(response => { |
| | | confirmProcessRoute(queryParams.value).then((response) => { |
| | | exampleList.value = response.rows; |
| | | loading.value = false; |
| | | isVisible.value = false; |
| | |
| | | planned.value = true; |
| | | upload.open = false; |
| | | ElMessage({ |
| | | message: 'å·¥èºè·¯çº¿æ°æ®å·²æåä¸ä¼ åè§£æ', |
| | | type: 'success', |
| | | }) |
| | | message: "å·¥èºè·¯çº¿æ°æ®å·²æåä¸ä¼ åè§£æ", |
| | | type: "success", |
| | | }); |
| | | getList(); |
| | | }); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <HxlhTable |
| | | style="width: 100%" |
| | | :columns="columns" |
| | | :data="gasPlanList" |
| | | :loading="loading" |
| | | :height="height" |
| | | > |
| | | </HxlhTable> |
| | | </template> |
| | | <script setup> |
| | | const height = ref(document.documentElement.clientHeight - 270 + "px;"); |
| | | const loading = ref(true); |
| | | const gasPlanList = ref([]); |
| | | // è¡¨æ ¼é
ç½® |
| | | const columns = ref([ |
| | | { |
| | | title: "主件æå·", |
| | | field: "mainPartNumber", |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: "ä¸å¡ç±»å", |
| | | field: "businessType", |
| | | }, |
| | | { |
| | | title: "åæ®å·", |
| | | field: "documentNumber", |
| | | width: 100, |
| | | }, |
| | | { |
| | | title: "å½åå·¥åºå·", |
| | | field: "currentProcessNumberTxt", |
| | | width: 100, |
| | | }, |
| | | { |
| | | title: "éæ±åç±»", |
| | | field: "requirementType", |
| | | width: 80, |
| | | }, |
| | | { |
| | | title: "åæ®ç¶æ", |
| | | field: "documentStatus", |
| | | width: 80, |
| | | }, |
| | | { |
| | | title: "å½åå·¥åº", |
| | | field: "workCenter", |
| | | width: 80, |
| | | }, |
| | | { |
| | | title: "计åå¼å·¥æ¥", |
| | | field: "processPlanStartDaytxt", |
| | | width: 140, |
| | | type: "html", |
| | | }, |
| | | { |
| | | title: "æå·", |
| | | field: "itemNumber", |
| | | width: 140, |
| | | type: "html", |
| | | }, |
| | | { |
| | | title: "å¾å·", |
| | | field: "drawingNo", |
| | | width: 120, |
| | | // format: 'YYYY-MM-DD' |
| | | }, |
| | | { |
| | | title: "çæ¬å·", |
| | | field: "versionNumber", |
| | | width: 140, |
| | | type: "html", |
| | | }, |
| | | { |
| | | title: "ç产æ°é", |
| | | field: "productionQuantity", |
| | | width: 140, |
| | | type: "html", |
| | | }, |
| | | { |
| | | title: "计åå®å·¥æ¥", |
| | | field: "planEndDay", |
| | | width: 140, |
| | | format: "YYYY-MM-DD hh:mm:ss", |
| | | }, |
| | | ]); |
| | | |
| | | </script> |
| | |
| | | // { |
| | | // ...queryParams.value, |
| | | // }, |
| | | `aps_plate_process_stat_${new Date().getTime()}.xlsx` |
| | | `aps_plate_process_shop_stat_${new Date().getTime()}.xlsx` |
| | | ); |
| | | } |
| | | |
| | |
| | | |
| | | }); |
| | | aps_plate_process_statList.value =listValue |
| | | debugger; |
| | | total.value = response.total; |
| | | loading.value = false; |
| | | }); |