| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="90px"> |
| | | <el-row :gutter="20"> |
| | | <el-col |
| | | :span="6"> |
| | | <el-form-item label="èµæºç»" prop="resourceGroupName"> |
| | | <el-input |
| | | v-model="queryParams.resourceGroupName" |
| | |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="6"> |
| | | <el-form-item label="æªæ¢æºå éæ±æ¥æ" style="width: 400px" label-width="150px"> |
| | | <el-date-picker |
| | | v-model="daterangeRequestDate" |
| | |
| | | end-placeholder="ç»ææ¥æ" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="12" |
| | | style="text-align: right;"> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="Search" @click="handleQuery">æç´¢</el-button> |
| | | <el-button icon="Refresh" @click="resetQuery">éç½®</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 20px;"> |
| | | <el-form-item label="æªæ¢æºå éæ±æ¥æ" prop="requestDate" > |
| | | <el-date-picker clearable |
| | | v-model="requestDate" |
| | | type="datetime" |
| | | value-format="YYYY-MM-DD HH:mm:ss" |
| | | placeholder="è¯·éæ©æºå éæ±æ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-col> |
| | | <div> |
| | | <el-button |
| | |
| | | const exampleHeight = ref("500px"); |
| | | const uploadRef = ref(); |
| | | const exampleList = ref([]); |
| | | const requestDate = ref(); |
| | | /*** ç¨æ·å¯¼å
¥åæ° */ |
| | | const upload = reactive({ |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå±ï¼ç¨æ·å¯¼å
¥ï¼ |
| | |
| | | { type: 'checkbox', width: 60, align:"center"}, |
| | | { type: 'seq', title: 'åºå·', width: 60 }, |
| | | { |
| | | title: 'æå·', |
| | | field: 'itemNo', |
| | | title: 'èµæºç»åç§°', |
| | | field: 'resourceGroupName', |
| | | width: 300, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'è®¾å¤æ°é', |
| | | field: 'devicesQuantity', |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åå·', |
| | | field: 'workOrderNo', |
| | | width: 150, |
| | | title: 'æ¯æ¥ç论æ¶é´', |
| | | field: 'theoryHours', |
| | | width: 300, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºåºå·', |
| | | field: 'processNumber', |
| | | width: 100, |
| | | title: 'æªæ¢éæ±æ¥å©ä½å¤©æ°', |
| | | field: 'restDays', |
| | | width: 210, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºåç§°', |
| | | field: 'processName', |
| | | width: 150, |
| | | title: 'ç论产è½', |
| | | field: 'theoryCapacity', |
| | | width: 300, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºè®¡åå¼å§æ¥æ', |
| | | field: 'processPlanStartDay', |
| | | width: 200, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºè®¡åç»ææ¥æ', |
| | | field: 'processPlanEndDay', |
| | | width: 200, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'æªå¼å·¥æ°é', |
| | | field: 'notStartWorkCount', |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: '已宿æ°é', |
| | | field: 'completedCount', |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'åºå¼æ°é', |
| | | field: 'discardCount', |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'éææ¥æ', |
| | | field: 'integrationDay', |
| | | width: 160, |
| | | title: 'æªæ¢æºå éæ±æ¥æ', |
| | | field: 'requestDate', |
| | | width: 300, |
| | | align:"center", |
| | | } |
| | | ]); |
| | |
| | | const exampleColumns = ref([ |
| | | { type: 'seq', title: 'åºå·', width: 60 }, |
| | | { |
| | | title: 'æå·', |
| | | field: 'itemNo', |
| | | title: 'èµæºç»åç§°', |
| | | field: 'resourceGroupName', |
| | | width: 300, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'è®¾å¤æ°é', |
| | | field: 'devicesQuantity', |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åå·', |
| | | field: 'workOrderNo', |
| | | width: 150, |
| | | title: 'æ¯æ¥ç论æ¶é´', |
| | | field: 'theoryHours', |
| | | width: 300, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºåºå·', |
| | | field: 'processNumber', |
| | | width: 100, |
| | | title: 'æªæ¢éæ±æ¥å©ä½å¤©æ°', |
| | | field: 'restDays', |
| | | width: 210, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºåç§°', |
| | | field: 'processName', |
| | | width: 150, |
| | | title: 'ç论产è½', |
| | | field: 'theoryCapacity', |
| | | width: 300, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºè®¡åå¼å§æ¥æ', |
| | | field: 'processPlanStartDay', |
| | | width: 200, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºè®¡åç»ææ¥æ', |
| | | field: 'processPlanEndDay', |
| | | width: 200, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'æªå¼å·¥æ°é', |
| | | field: 'notStartWorkCount', |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: '已宿æ°é', |
| | | field: 'completedCount', |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'åºå¼æ°é', |
| | | field: 'discardCount', |
| | | width: 150, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'éææ¥æ', |
| | | field: 'integrationDay', |
| | | width: 160, |
| | | title: 'æªæ¢æºå éæ±æ¥æ', |
| | | field: 'requestDate', |
| | | width: 370, |
| | | align:"center", |
| | | } |
| | | ]); |
| | |
| | | plant: null |
| | | }, |
| | | rules: { |
| | | |
| | | } |
| | | }); |
| | | |
| | |
| | | } |
| | | /** ä¸ä¼ å¹¶è§£ææé®æä½ */ |
| | | function uploadParse() { |
| | | if (requestDate.value === null || typeof requestDate.value === 'undefined' || requestDate.value === '') { |
| | | ElMessage({ |
| | | message: 'è¯·éæ©æªæ¢æºå éæ±æ¥æ', |
| | | type: 'warning', |
| | | }) |
| | | return |
| | | } |
| | | queryParams.value.params = {}; |
| | | queryParams.value.params["batchNumber"] = batchNumber.value; |
| | | queryParams.value.params["requestDate"] = requestDate.value; |
| | | confirmApsResourceGroup(queryParams.value).then(response => { |
| | | exampleList.value = response.rows; |
| | | loading.value = false; |
| | |
| | | isError.value = false; |
| | | planned.value = true; |
| | | upload.open = false; |
| | | requestDate.value = null; |
| | | ElMessage({ |
| | | message: 'èµæºæ± æ°æ®å·²æåä¸ä¼ åè§£æ', |
| | | type: 'success', |
| | |
| | | if (uploadRef.value) { |
| | | uploadRef.value.clearFiles(); |
| | | } |
| | | requestDate.value = null; |
| | | isVisible.value = false; |
| | | isError.value = false; |
| | | planned.value = true; |
| | | upload.open = false; |
| | | |
| | | } |
| | | |
| | | getList(); |
ÎļþÃû´Ó src/views/aps/processRoute/index.vue ÐÞ¸Ä |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="90px"> |
| | | <el-row :gutter="20"> |
| | | <el-col |
| | | :span="6"> |
| | | <el-form-item label="éææ¥æ" style="width: 308px"> |
| | | <el-date-picker |
| | | v-model="daterangeIntegrationDay" |
| | |
| | | end-placeholder="ç»ææ¥æ" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="6"> |
| | | <el-form-item label="æå·" prop="itemNo"> |
| | | <el-input |
| | | v-model="queryParams.itemNo" |
| | |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="12" |
| | | style="text-align: right;"> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="Search" @click="handleQuery">æç´¢</el-button> |
| | | <el-button icon="Refresh" @click="resetQuery">éç½®</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="Plus" |
| | | @click="handleAdd" |
| | | v-hasPermi="['aps:processRoute:add']" |
| | | >æ°å¢</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | | icon="Edit" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['aps:processRoute:edit']" |
| | | >ä¿®æ¹</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | | icon="Delete" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['aps:processRoute:remove']" |
| | | >å é¤</el-button> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="info" |
| | |
| | | </template> |
| | | |
| | | <script setup name="ProcessRoute"> |
| | | import { listProcessRoute, getProcessRoute, delProcessRoute, addProcessRoute, updateProcessRoute,processRouteTempList,confirmProcessRoute } from "@/api/aps/processRoute"; |
| | | 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"; |
| | |
| | | { |
| | | title: 'æªå¼å·¥æ°é', |
| | | field: 'notStartWorkCount', |
| | | width: 150, |
| | | width: 90, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: '已宿æ°é', |
| | | field: 'completedCount', |
| | | width: 150, |
| | | width: 90, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'åºå¼æ°é', |
| | | field: 'discardCount', |
| | | width: 150, |
| | | width: 90, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'æ åå·¥æ¶', |
| | | field: 'standardTime', |
| | | width: 90, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'å·¥åºæåº', |
| | | field: 'processOrder', |
| | | width: 90, |
| | | align:"center", |
| | | }, |
| | | { |
| | |
| | | { |
| | | title: 'å·¥åºåºå·', |
| | | field: 'processNumber', |
| | | width: 100, |
| | | width: 85, |
| | | align:"center", |
| | | }, |
| | | { |
| | |
| | | { |
| | | title: 'æªå¼å·¥æ°é', |
| | | field: 'notStartWorkCount', |
| | | width: 150, |
| | | width: 140, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: '已宿æ°é', |
| | | field: 'completedCount', |
| | | width: 150, |
| | | width: 140, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'åºå¼æ°é', |
| | | field: 'discardCount', |
| | | width: 150, |
| | | width: 140, |
| | | align:"center", |
| | | }, |
| | | { |
| | | title: 'éææ¥æ', |
| | | field: 'integrationDay', |
| | | width: 160, |
| | | title: 'æ åå·¥æ¶', |
| | | field: 'standardTime', |
| | | width: 140, |
| | | align:"center", |
| | | } |
| | | }, |
| | | { |
| | | title: 'å·¥åºæåº', |
| | | field: 'processOrder', |
| | | width: 140, |
| | | align:"center", |
| | | }, |
| | | // { |
| | | // title: 'éææ¥æ', |
| | | // field: 'integrationDay', |
| | | // width: 160, |
| | | // align:"center", |
| | | // } |
| | | ]); |
| | | const data = reactive({ |
| | | form: {}, |