最后一舞---去他妈的缪海庆,扣脚大爷都没你扣,没有格局把路走窄了
| | |
| | | }) |
| | | } |
| | | |
| | | export function deleteInstrument(params) { |
| | | return request({ |
| | | url: '/instrument/delete', |
| | | method: 'delete', |
| | | params |
| | | }) |
| | | } |
| | | |
| | | // æ ¹æ®è®¾å¤idæ¥æ¾å¯¹åºç ç¹ |
| | | export function getEquipmentPointList(params) { |
| | | return request({ |
| | |
| | | font-size: 14px; |
| | | padding: 12px 24px; |
| | | height: 38px; |
| | | width: 100%; |
| | | // width: 100%; |
| | | margin: 0px 9px; |
| | | background: #fff; |
| | | // margin-left: px; |
| | | .no-redirect { |
| | |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // path: '/rawMaterials', |
| | | // component: Layout, |
| | | // redirect: '/rawMaterials/reportForInspection', |
| | | // name: 'rawMaterials', |
| | | // meta: { title: 'æ£éª', icon: 'el-icon-s-help' }, |
| | | // children: [ |
| | | // { |
| | | // path: 'reportForInspection', |
| | | // name: 'ReportForInspection', |
| | | // component: () => import('@/views/rawMaterials/reportForInspection/index'), |
| | | // meta: { title: 'åæææ¥æ£', icon: 'table' }, |
| | | // children: [ |
| | | // // { |
| | | // // path: 'index', |
| | | // // name: 'ReportForInspectionIndex', |
| | | // // // hidden: true, |
| | | // // component: () => import('@/views/rawMaterials/reportForInspection/index'), |
| | | // // meta: { title: 'åæææ¥æ£', icon: 'table' } |
| | | // // }, |
| | | // { |
| | | // path: 'forInspectionDetail', |
| | | // name: 'ForInspectionDetail', |
| | | // hidden: true, |
| | | // component: () => import('@/views/rawMaterials/reportForInspection/forInspectionDetail'), |
| | | // meta: { title: 'æ°å¢æ£éªå详æ
', icon: 'table' } |
| | | // } |
| | | // ] |
| | | // }, |
| | | // { |
| | | // path: 'print', |
| | | // name: 'Print', |
| | | // component: () => import('@/views/rawMaterials/print/index'), |
| | | // meta: { title: 'æ¡ç æå°', icon: 'tree' } |
| | | // }, |
| | | // { |
| | | // path: 'planAssignments', |
| | | // name: 'PlanAssignments', |
| | | // component: () => import('@/views/rawMaterials/planAssignments/index'), |
| | | // meta: { title: 'æ£éªè®¡ååé
', icon: 'tree' } |
| | | // }, |
| | | // { |
| | | // path: 'rawMaterialInspection', |
| | | // name: 'RawMaterialInspection', |
| | | // component: () => import('@/views/rawMaterials/rawMaterialInspection/index'), |
| | | // meta: { title: 'åæææ£éª', icon: 'tree' } |
| | | // }, |
| | | // { |
| | | // path: 'checkTheReport', |
| | | // name: 'CheckTheReport', |
| | | // component: () => import('@/views/rawMaterials/checkTheReport/index'), |
| | | // meta: { title: 'æ£éªæ¥å', icon: 'tree' } |
| | | // }, |
| | | // { |
| | | // path: 'reportAuditing', |
| | | // name: 'ReportAuditing', |
| | | // component: () => import('@/views/rawMaterials/reportAuditing/index'), |
| | | // meta: { title: 'æ¥åå®¡æ ¸', icon: 'tree' } |
| | | // }, |
| | | // { |
| | | // path: 'nonConformanceReview', |
| | | // name: 'NonConformanceReview', |
| | | // component: () => import('@/views/rawMaterials/nonConformanceReview/index'), |
| | | // meta: { title: 'ä¸åæ ¼åé¦', icon: 'tree' } |
| | | // }, |
| | | // { |
| | | // path: 'nonConformingFeedback', |
| | | // name: 'NonConformingFeedback', |
| | | // component: () => import('@/views/rawMaterials/nonConformingFeedback/index'), |
| | | // meta: { title: 'ä¸åæ ¼è¯å®¡', icon: 'tree' } |
| | | // }, |
| | | // { |
| | | // path: 'passRateStatistics', |
| | | // name: 'PassRateStatistics', |
| | | // component: () => import('@/views/rawMaterials/passRateStatistics/index'), |
| | | // meta: { title: 'åæ ¼çç»è®¡', icon: 'tree' } |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | path: '/trialManagement', |
| | | path: '/inspectionManagement', |
| | | component: Layout, |
| | | redirect: '/trialManagement/index', |
| | | meta: { title: 'è¯éªç®¡ç', icon: 'el-icon-s-help' }, |
| | | redirect: '/inspectionManagement/commissionInspection', |
| | | name: 'InspectionManagement', |
| | | meta: { title: 'æ¥æ£ç®¡ç', icon: 'el-icon-s-help' }, |
| | | children: [ |
| | | { |
| | | path: 'index', |
| | | name: 'entrust', |
| | | component: () => import('@/views/trialManagement/entrust'), |
| | | meta: { title: 'å§ææ£éª', icon: 'form' } |
| | | }, |
| | | { |
| | | path: 'rawMaterials', |
| | | name: 'RawMaterials', |
| | | component: () => import('@/views/trialManagement/rawMaterials'), |
| | | meta: { title: 'åæææ¥æ£', icon: 'form' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/rawMaterials', |
| | | component: Layout, |
| | | redirect: '/rawMaterials/reportForInspection', |
| | | name: 'rawMaterials', |
| | | meta: { title: 'æ£éª', icon: 'el-icon-s-help' }, |
| | | children: [ |
| | | { |
| | | path: 'reportForInspection', |
| | | name: 'ReportForInspection', |
| | | component: () => import('@/views/rawMaterials/reportForInspection/index'), |
| | | meta: { title: 'åæææ¥æ£', icon: 'table' }, |
| | | path: 'commissionInspection', |
| | | name: 'CommissionInspection', |
| | | component: () => import('@/views/inspectionManagement/commissionInspection/index'), |
| | | meta: { title: 'å§ææ£éª', icon: 'table' }, |
| | | children: [ |
| | | // { |
| | | // path: 'index', |
| | | // name: 'ReportForInspectionIndex', |
| | | // // hidden: true, |
| | | // component: () => import('@/views/rawMaterials/reportForInspection/index'), |
| | | // meta: { title: 'åæææ¥æ£', icon: 'table' } |
| | | // }, |
| | | { |
| | | path: 'forInspectionDetail', |
| | | name: 'ForInspectionDetail', |
| | | path: 'addCommision', |
| | | name: 'AddCommision', |
| | | hidden: true, |
| | | component: () => import('@/views/rawMaterials/reportForInspection/forInspectionDetail'), |
| | | meta: { title: 'æ°å¢æ£éªå详æ
', icon: 'table' } |
| | | component: () => import('@/views/inspectionManagement/commissionInspection/addCommision'), |
| | | meta: { title: 'æ£æµä¿¡æ¯', icon: 'table' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: 'print', |
| | | name: 'Print', |
| | | component: () => import('@/views/rawMaterials/print/index'), |
| | | meta: { title: 'æ¡ç æå°', icon: 'tree' } |
| | | path: 'reportForInspection', |
| | | name: 'ReportForInspection', |
| | | component: () => import('@/views/inspectionManagement/reportForInspection/index'), |
| | | meta: { title: 'åæææ¥æ£', icon: 'tree' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/experiment', |
| | | component: Layout, |
| | | redirect: '/experiment/inspectionApplication', |
| | | name: 'Experiment', |
| | | meta: { title: 'è¯éªç®¡ç', icon: 'el-icon-s-help' }, |
| | | children: [ |
| | | { |
| | | path: 'inspectionApplication', |
| | | name: 'InspectionApplication', |
| | | component: () => import('@/views/experiment/inspectionApplication/index'), |
| | | meta: { title: 'æ£éªç³è¯·', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'planAssignments', |
| | | name: 'PlanAssignments', |
| | | component: () => import('@/views/rawMaterials/planAssignments/index'), |
| | | component: () => import('@/views/experiment/planAssignments/index'), |
| | | meta: { title: 'æ£éªè®¡ååé
', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'rawMaterialInspection', |
| | | name: 'RawMaterialInspection', |
| | | component: () => import('@/views/rawMaterials/rawMaterialInspection/index'), |
| | | meta: { title: 'åæææ£éª', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'checkTheReport', |
| | | name: 'CheckTheReport', |
| | | component: () => import('@/views/rawMaterials/checkTheReport/index'), |
| | | component: () => import('@/views/experiment/checkTheReport/index'), |
| | | meta: { title: 'æ£éªæ¥å', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'reportAuditing', |
| | | name: 'ReportAuditing', |
| | | component: () => import('@/views/rawMaterials/reportAuditing/index'), |
| | | component: () => import('@/views/experiment/reportAuditing/index'), |
| | | meta: { title: 'æ¥åå®¡æ ¸', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'nonConformanceReview', |
| | | name: 'NonConformanceReview', |
| | | component: () => import('@/views/rawMaterials/nonConformanceReview/index'), |
| | | meta: { title: 'ä¸åæ ¼åé¦', icon: 'tree' } |
| | | component: () => import('@/views/experiment/nonConformanceReview/index'), |
| | | meta: { title: 'ä¸åæ ¼ååé¦', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'nonConformingFeedback', |
| | | name: 'NonConformingFeedback', |
| | | component: () => import('@/views/rawMaterials/nonConformingFeedback/index'), |
| | | meta: { title: 'ä¸åæ ¼è¯å®¡', icon: 'tree' } |
| | | component: () => import('@/views/experiment/nonConformingFeedback/index'), |
| | | meta: { title: 'ä¸åæ ¼åè¯å®¡', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'passRateStatistics', |
| | | name: 'PassRateStatistics', |
| | | component: () => import('@/views/rawMaterials/passRateStatistics/index'), |
| | | component: () => import('@/views/experiment/passRateStatistics/index'), |
| | | meta: { title: 'åæ ¼çç»è®¡', icon: 'tree' } |
| | | } |
| | | ] |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/CNAS', |
| | | component: Layout, |
| | | redirect: '/CNAS/reviewAnnualPlan', |
| | | name: 'CNAS', |
| | | meta: { title: 'CNAS管ç', icon: 'el-icon-s-help' }, |
| | | children: [ |
| | | { |
| | | path: 'reviewAnnualPlan', |
| | | name: 'ReviewAnnualPlan', |
| | | component: () => import('@/views/CNAS/reviewAnnualPlan/index'), |
| | | meta: { title: 'å®¡æ ¸å¹´åº¦è®¡å', icon: 'table' } |
| | | }, |
| | | { |
| | | path: 'nonConformanceManage', |
| | | name: 'NonConformanceManage', |
| | | component: () => import('@/views/CNAS/nonConformanceManage/index'), |
| | | meta: { title: 'ä¸ç¬¦å项管ç', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'nonConformanceStatistics', |
| | | name: 'NonConformanceStatistics', |
| | | component: () => import('@/views/CNAS/nonConformanceStatistics/index'), |
| | | meta: { title: 'ä¸ç¬¦å项ç»è®¡', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'satisfactionSurveys', |
| | | name: 'SatisfactionSurveys', |
| | | component: () => import('@/views/CNAS/satisfactionSurveys/index'), |
| | | meta: { title: '满æåº¦è°æ¥', icon: 'tree' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/chart', |
| | | component: Layout, |
| | | redirect: '/chart/center', |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | ä¸ç¬¦å项管ç |
| | | </div> |
| | | </template> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div>ä¸ç¬¦å项ç»è®¡</div> |
| | | </template> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | å®¡æ ¸å¹´åº¦è®¡å |
| | | </div> |
| | | </template> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | 满æåº¦è°æ¥ |
| | | </div> |
| | | </template> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div>æ£æµæ¥å</div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | æ£éªç³è¯· |
| | | </div> |
| | | </template> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div>ä¸åæ ¼è¯å®¡</div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div>ä¸åæ ¼åé¦</div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div>åæ ¼çç»è®¡</div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div>æ£éªè®¡ååé
</div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div>æ¥åå®¡æ ¸</div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="content-main"> |
| | | <div class="firstBox"> |
| | | <span>æ£æµä¿¡æ¯</span> |
| | | <div tableBox> |
| | | <el-button type="primary" size="small" style="background-color: rgb(1, 102, 226);">æ·»å æ ·å</el-button> |
| | | <el-input |
| | | v-model="searchData" |
| | | class="input-form" |
| | | placeholder="æ«æäºç»´ç å½å
¥æ ·å..." |
| | | prefix-icon="el-icon-search" |
| | | style="width: 200px;" |
| | | > |
| | | </el-input> |
| | | <el-button type="primary" size="small" style="background-color: rgb(1, 102, 226);">éç½®</el-button> |
| | | <el-table |
| | | ref="commisionTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="commisionTable" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="index" |
| | | label="åºå·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="commisioncode" |
| | | label="å§æç¼å·" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="department" |
| | | label="å§æåä½" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="samplecode" |
| | | label="æ ·åç¼å·" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="samplename" |
| | | label="æ ·ååç§°" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="modelandspecification" |
| | | label="è§æ ¼åå·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="arrivetime" |
| | | label="éè¾¾æ¶é´" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="deadline" |
| | | label="宿æé" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="person" |
| | | label="å§æç¼å¶äºº" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="checkdate" |
| | | label="æ£éªæ¥æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="state" |
| | | label="ç¶æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="8%" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="handleClick(scope.row)">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- åé¡µå¨ --> |
| | | <div> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-sizes="[100, 200, 300, 400]" |
| | | :page-size="100" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="400"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <div class="secondBox"> |
| | | <el-row class="header"> |
| | | <el-col :span="12">åºæ¬ä¿¡æ¯</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <!-- ç¹å»è¿åï¼å½å页é¢å¼ä¸ºfalse --> |
| | | <el-button type="primary" size="mini" style="background-color: rgb(1, 102, 226); ">æå°å§æå</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form :model="infoForm" ref="infoForm" class="infoForm" label-position="left" label-width="100px" size="mini" > |
| | | <div class="formwrapper"> |
| | | <el-row :gutter="50"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="å§æç¼å·ï¼"> |
| | | <el-input style="width: 100px;" v-model="infoForm.commisioncode" placeholder="请è¾å
¥è®¢åå·" readonly autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="å§æåä½ï¼"> |
| | | <el-select style="width: 180px;" v-model="infoForm.department" size="small" placeholder="è¯·éæ©äº§ååç§°"> |
| | | <el-option value="é项1"></el-option> |
| | | <el-option value="é项2"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="è系人ï¼"> |
| | | <el-select style="width: 180px;" v-model="infoForm.contacter" size="small" placeholder="è¯·éæ©äº§ååç§°"> |
| | | <el-option value="é项1"></el-option> |
| | | <el-option value="é项2"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="èç³»çµè¯ï¼"> |
| | | <el-select style="width: 180px;" v-model="infoForm.tel" size="small" placeholder="è¯·éæ©äº§ååç§°"> |
| | | <el-option value="é项1"></el-option> |
| | | <el-option value="é项2"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="450"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="èç³»å°åï¼" > |
| | | <el-select style="width: 180px;" v-model="infoForm.address" size="small" placeholder="è¯·éæ©äº§ååç§°"> |
| | | <el-option value="é项1"></el-option> |
| | | <el-option value="é项2"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="宿æéï¼"> |
| | | <el-date-picker |
| | | v-model="infoForm.deadline" |
| | | type="date" |
| | | placeholder="éæ©æ¥æ" |
| | | style="width: 180px;"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·æ¶é´ï¼"> |
| | | <el-date-picker |
| | | v-model="infoForm.time" |
| | | type="date" |
| | | placeholder="éæ©æ¥æ" |
| | | style="width: 180px;"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·æ¹å¼ï¼"> |
| | | <el-select style="width: 180px;" v-model="infoForm.way" size="small" placeholder="éæ ·"> |
| | | <el-option value="é项1"></el-option> |
| | | <el-option value="é项2"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="450"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·äººï¼" > |
| | | <el-input style="width: 180px;" v-model="infoForm.sender" placeholder="请è¾å
¥éæ ·äºº" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·äººçµè¯ï¼" > |
| | | <el-input style="width: 180px;" v-model="infoForm.sendertel" placeholder="请è¾å
¥éæ ·äººçµè¯" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="æ¥åæ°ï¼"> |
| | | <el-input style="width: 180px;" v-model="infoForm.num" placeholder="请è¾å
¥æ¥åæ°" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="姿夿³¨ï¼"> |
| | | <el-input style="width: 180px;" v-model="infoForm.other" placeholder="夿³¨" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | searchData: '', |
| | | infoForm: [{ |
| | | commisioncode: '', |
| | | department: '', |
| | | contacter: '', |
| | | tel: '', |
| | | address: '', |
| | | deadline: '', |
| | | time: '', |
| | | way: '', |
| | | sender: '', |
| | | sendertel: '', |
| | | num: '', |
| | | other: '' |
| | | }] |
| | | } |
| | | }, |
| | | methods: { |
| | | handleSelectionChange(val) { |
| | | console.log(val) |
| | | this.radioSelected = val.number // éä¸è¡çnumber |
| | | this.multipleSelection = val // éä¸çä¸è¡æ°æ® |
| | | }, |
| | | handleSizeChange(pageSize) { |
| | | this.pageParams.pageSize = pageSize |
| | | }, |
| | | handleCurrentChange(pageNo) { |
| | | this.pageParams.pageNo = pageNo |
| | | }, |
| | | headerBg({ row, rowIndex }) { |
| | | console.log('rowIndex', rowIndex) |
| | | if (rowIndex === 0) { |
| | | return 'headerBgClass' |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <div v-if="!showDetail"> |
| | | <div class="content-main"> |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true" :model="searchData"> |
| | | <el-form-item label="å§æç¼å·:" class="sermargin"> |
| | | <el-input |
| | | v-model="searchData.code" |
| | | class="input-form" |
| | | placeholder="请è¾å
¥" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ ·ååç§°:" class="sermargin"> |
| | | <el-input |
| | | v-model="searchData.name" |
| | | class="input-form" |
| | | placeholder="请è¾å
¥" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å§æåä½:" style="margin-right: 20px;"> |
| | | <el-select v-model="searchData.department" placeholder="å
¨é¨"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary">æ¥è¯¢</el-button> |
| | | <el-button type="primary" plain>éç½®</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form> |
| | | <el-button class="rightBtn" type="primary" @click="goToaddCommision">æ°å¢å§æ</el-button> |
| | | </el-form> |
| | | </div> |
| | | <div class="library-table"> |
| | | <div class="table-header"> |
| | | <div class="search-bar"> |
| | | <el-radio-group v-model="radioValue"> |
| | | <el-radio-button label="å
¨é¨" /> |
| | | <el-radio-button label="å¾
æ£éª" /> |
| | | <el-radio-button label="å·²æ£éª" /> |
| | | </el-radio-group> |
| | | </div> |
| | | <div class="generateInsp"> |
| | | <el-button type="primary" size="mini" icon="el-icon-document" style="background-color: rgb(1, 102, 226);">çææ¥æ£å</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table-box"> |
| | | <el-table |
| | | ref="commisionTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="commisionTable" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="index" |
| | | label="åºå·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="commisioncode" |
| | | label="å§æç¼å·" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="department" |
| | | label="å§æåä½" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="samplecode" |
| | | label="æ ·åç¼å·" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="samplename" |
| | | label="æ ·ååç§°" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="modelandspecification" |
| | | label="è§æ ¼åå·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="arrivetime" |
| | | label="éè¾¾æ¶é´" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="deadline" |
| | | label="宿æé" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="person" |
| | | label="å§æç¼å¶äºº" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="checkdate" |
| | | label="æ£éªæ¥æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="state" |
| | | label="ç¶æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="8%" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="handleClick(scope.row)">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- åé¡µå¨ --> |
| | | <div> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-sizes="[100, 200, 300, 400]" |
| | | :page-size="100" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="400"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div v-else> |
| | | <router-view /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | form: [], |
| | | searchData: { |
| | | code: '', |
| | | name: '', |
| | | department: '' |
| | | }, |
| | | options: [{ |
| | | value: '1', |
| | | label: 'é¨é¨1' |
| | | }, { |
| | | value: '2', |
| | | label: 'é¨é¨2' |
| | | }, { |
| | | value: '3', |
| | | label: 'é¨é¨3' |
| | | }], |
| | | radioValue: '', |
| | | commisionTable: [{ |
| | | commisioncode: 'GW31478631', |
| | | department: 'å½ç½å±±ä¸ççµåæéå
¬å¸', |
| | | samplecode: 'BP214274', |
| | | samplename: 'ç»ç¼æ', |
| | | modelandspecification: 'JLHA/G1A-185/30-26/7', |
| | | arrivetime: '2023-08-01', |
| | | deadline: '2023-08-05', |
| | | person: 'é»å°æ', |
| | | checkdate: '2023-08-02', |
| | | state: 'å·²æ£æµ' |
| | | }, { |
| | | commisioncode: 'GW31478631', |
| | | department: 'å½ç½å±±ä¸ççµåæéå
¬å¸', |
| | | samplecode: 'BP214274', |
| | | samplename: 'ç»ç¼æ', |
| | | modelandspecification: 'JLHA/G1A-185/30-26/7', |
| | | arrivetime: '2023-08-01', |
| | | deadline: '2023-08-05', |
| | | person: 'é»å°æ', |
| | | checkdate: '2023-08-02', |
| | | state: 'å·²æ£æµ' |
| | | }, { |
| | | commisioncode: 'GW31478631', |
| | | department: 'å½ç½å±±ä¸ççµåæéå
¬å¸', |
| | | samplecode: 'BP214274', |
| | | samplename: 'ç»ç¼æ', |
| | | modelandspecification: 'JLHA/G1A-185/30-26/7', |
| | | arrivetime: '2023-08-01', |
| | | deadline: '2023-08-05', |
| | | person: 'é»å°zhi', |
| | | checkdate: '2023-08-02', |
| | | state: 'å·²æ£æµ' |
| | | }], |
| | | currentPage: 0, |
| | | showDetail: false |
| | | } |
| | | }, |
| | | updated() { |
| | | if (this.$router.currentRoute.name === 'AddCommision') { |
| | | // console.log(this.$router.currentRoute.name) |
| | | this.showDetail = true |
| | | } |
| | | }, |
| | | methods: { |
| | | // æ¯é¡µæ¡æ°æ¹åæ¶è§¦å éæ©ä¸é¡µæ¾ç¤ºå¤å°è¡ |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`) |
| | | this.currentPage = 1 |
| | | this.pageSize = val |
| | | }, |
| | | // å½å页æ¹åæ¶è§¦å 跳转å
¶ä»é¡µ |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`) |
| | | this.currentPage = val |
| | | }, |
| | | goToaddCommision() { |
| | | this.$router.push('/inspectionManagement/commissionInspection/addCommision') |
| | | this.showDetail = true |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | .top-bar{ |
| | | margin: -25px -15px; |
| | | background: #fff; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 5px 24px 0px 24px; |
| | | .sermargin{ |
| | | margin-right: 60px; |
| | | } |
| | | } |
| | | .rightBtn{ |
| | | background-color: rgb(1, 102, 226); |
| | | } |
| | | .library-table{ |
| | | background-color: #fff; |
| | | flex: 1; |
| | | margin: 0px -15px; |
| | | margin-top: 40px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .table-header{ |
| | | padding: 20px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .el-form-item{ |
| | | margin-bottom: 30px !important; |
| | | } |
| | | } |
| | | .table-box{ |
| | | padding: 0px 20px; |
| | | margin-top: 0px; |
| | | flex: 1; |
| | | background: #fff; |
| | | /* padding: 20px 20px 10px 20px; */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | .el-table { |
| | | flex: 1; |
| | | } |
| | | >div:nth-child(2){ |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="content-main"> |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true" :model="searchData"> |
| | | <el-form-item label="ææç¼ç :" class="sermargin"> |
| | | <el-input |
| | | v-model="searchData.code" |
| | | class="input-form" |
| | | placeholder="请è¾å
¥" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ææåç§°:" class="sermargin"> |
| | | <el-input |
| | | v-model="searchData.name" |
| | | class="input-form" |
| | | placeholder="请è¾å
¥" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ç¶æ:" class="sermargin"> |
| | | <el-select v-model="searchData.state" placeholder="å
¨é¨"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æ¥ææ¥æ:" style="margin-right: 20px;"> |
| | | <el-input |
| | | v-model="searchData.date" |
| | | class="input-form" |
| | | placeholder="请è¾å
¥" |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary">æ¥è¯¢</el-button> |
| | | <el-button type="primary" plain>éç½®</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="library-table"> |
| | | <div class="table-header"> |
| | | <div class="search-bar"> |
| | | <el-radio-group v-model="radioValue"> |
| | | <el-radio-button label="å
¨é¨" /> |
| | | <el-radio-button label="å¾
æ£éª" /> |
| | | <el-radio-button label="å·²æ£éª" /> |
| | | </el-radio-group> |
| | | </div> |
| | | <div class="generateInsp"> |
| | | <el-button type="primary" size="mini" icon="el-icon-document" style="background-color: rgb(1, 102, 226);">çææ¥æ£å</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table-box"> |
| | | <el-table |
| | | ref="inspectionTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="inspectionTable" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | label="" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | type="index" |
| | | label="åºå·" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="date" |
| | | label="æ¥ææ¥æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="providerName" |
| | | label="ä¾åºååç§°" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="code" |
| | | label="ææç¼ç " |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="ææåç§°" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="modelandspecification" |
| | | label="è§æ ¼åå·" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="unit" |
| | | label="åä½" |
| | | min-width="5%" |
| | | /> |
| | | <el-table-column |
| | | prop="amount" |
| | | label="æ°é" |
| | | min-width="5%" |
| | | /> |
| | | <el-table-column |
| | | prop="commisiondate" |
| | | label="æ¥æ£æ¥æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="person" |
| | | label="æ£éªäºº" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="checkdate" |
| | | label="æ£éªæ¥æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="state" |
| | | label="ç¶æ" |
| | | min-width="8%" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span :style="{ color: scope.row.state === 'å·²æ£æµ' ? 'green' : 'red' }"> |
| | | {{ scope.row.state }} |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- åé¡µå¨ --> |
| | | <div> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-sizes="[100, 200, 300, 400]" |
| | | :page-size="100" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="400"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | form: [], |
| | | searchData: { |
| | | code: '', |
| | | name: '', |
| | | state: '', |
| | | date: '' |
| | | }, |
| | | options: [{ |
| | | value: '1', |
| | | label: 'é¨é¨1' |
| | | }, { |
| | | value: '2', |
| | | label: 'é¨é¨2' |
| | | }, { |
| | | value: '3', |
| | | label: 'é¨é¨3' |
| | | }], |
| | | radioValue: '', |
| | | inspectionTable: [{ |
| | | date: '2023-07-28', |
| | | providerName: 'å½ç½å±±ä¸ççµåæéå
¬å¸', |
| | | code: 'BP214274', |
| | | name: 'éå
é¢ç»çº¿', |
| | | modelandspecification: 'JLHA/G1A-185/30-26/7', |
| | | unit: 'å¨', |
| | | amount: '21', |
| | | commisiondate: '2023-08-02', |
| | | person: 'é»å°æ', |
| | | checkdate: '2023-12-09', |
| | | state: 'å·²æ£æµ' |
| | | }, { |
| | | date: '2023-07-28', |
| | | providerName: 'å½ç½å±±ä¸ççµåæéå
¬å¸', |
| | | code: 'BP214274', |
| | | name: 'éå
é¢ç»çº¿', |
| | | modelandspecification: 'JLHA/G1A-185/30-26/7', |
| | | unit: 'å¨', |
| | | amount: '21', |
| | | commisiondate: '2023-08-02', |
| | | person: 'é»å°æ', |
| | | checkdate: '2023-12-09', |
| | | state: 'å¾
æ£æµ' |
| | | }, { |
| | | date: '2023-07-28', |
| | | providerName: 'å½ç½å±±ä¸ççµåæéå
¬å¸', |
| | | code: 'BP214274', |
| | | name: 'éå
é¢ç»çº¿', |
| | | modelandspecification: 'JLHA/G1A-185/30-26/7', |
| | | unit: 'å¨', |
| | | amount: '21', |
| | | commisiondate: '2023-08-02', |
| | | person: 'é»å°æ', |
| | | checkdate: '2023-12-09', |
| | | state: 'å·²æ£æµ' |
| | | }, { |
| | | date: '2023-07-28', |
| | | providerName: 'å½ç½å±±ä¸ççµåæéå
¬å¸', |
| | | code: 'BP214274', |
| | | name: 'éå
é¢ç»çº¿', |
| | | modelandspecification: 'JLHA/G1A-185/30-26/7', |
| | | unit: 'å¨', |
| | | amount: '21', |
| | | commisiondate: '2023-08-02', |
| | | person: 'é»å°æ', |
| | | checkdate: '2023-12-09', |
| | | state: 'å¾
æ£æµ' |
| | | }], |
| | | currentPage: 0 |
| | | } |
| | | }, |
| | | methods: { |
| | | // æ¯é¡µæ¡æ°æ¹åæ¶è§¦å éæ©ä¸é¡µæ¾ç¤ºå¤å°è¡ |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`) |
| | | this.currentPage = 1 |
| | | this.pageSize = val |
| | | }, |
| | | // å½å页æ¹åæ¶è§¦å 跳转å
¶ä»é¡µ |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`) |
| | | this.currentPage = val |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | .top-bar{ |
| | | margin: -25px -15px; |
| | | background: #fff; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 5px 24px 0px 24px; |
| | | .sermargin{ |
| | | margin-right: 60px; |
| | | } |
| | | } |
| | | .rightBtn{ |
| | | background-color: rgb(1, 102, 226); |
| | | } |
| | | .library-table{ |
| | | background-color: #fff; |
| | | flex: 1; |
| | | margin: 0px -15px; |
| | | margin-top: 40px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .table-header{ |
| | | padding: 20px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .el-form-item{ |
| | | margin-bottom: 30px !important; |
| | | } |
| | | } |
| | | .table-box{ |
| | | padding: 0px 20px; |
| | | margin-top: 0px; |
| | | flex: 1; |
| | | background: #fff; |
| | | /* padding: 20px 20px 10px 20px; */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | .el-table { |
| | | flex: 1; |
| | | } |
| | | >div:nth-child(2){ |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | .checked { |
| | | color: green; |
| | | } |
| | | |
| | | .unchecked { |
| | | color: red; |
| | | } |
| | | |
| | | </style> |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary">æ¥è¯¢</el-button> |
| | | <el-button type="primary" plain>éç½®</el-button> |
| | | <el-button type="primary" @click="filterTableData">æ¥è¯¢</el-button> |
| | | <el-button type="primary" plain @click="resetBtn">éç½®</el-button> |
| | | <!-- <el-button type="text">é«çº§æç´¢<i class="el-icon-arrow-down el-icon--right" /></el-button> --> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | <el-row> |
| | | <el-col :span="19"> |
| | | <el-input |
| | | v-model="filterText" |
| | | placeholder="è¾å
¥å
³é®åè¿è¡è¿æ»¤" |
| | | /> |
| | | </el-col> |
| | |
| | | ref="classTree" |
| | | :data="classTree" |
| | | :props="defaultProps" |
| | | default-expand-all |
| | | :default-expand-all="true" |
| | | :filter-node-method="filterNode" |
| | | @node-click="nodeClickHandler" |
| | | /> |
| | |
| | | <div class="library-table"> |
| | | <div class="table-header"> |
| | | <div class="search-bar"> |
| | | <el-radio-group v-model="radioValue"> |
| | | <el-radio-button label="0">å
¨é¨</el-radio-button> |
| | | <el-radio-group v-model="radioValue" @change="getConditionTable"> |
| | | <!-- <el-radio-button label="0">å
¨é¨</el-radio-button> --> |
| | | <el-radio-button v-for="item in conditionsOptions" :key="item.value" :label="item.value"> |
| | | {{ item.label }} |
| | | </el-radio-button> |
| | | </el-radio-group> |
| | | <el-checkbox v-model="isOut" :style="{'marginLeft':'12px'}">å·²è¿æ</el-checkbox> |
| | | <el-checkbox v-model="isOut" @change="getExpireTable" :style="{'marginLeft':'12px'}">å·²è¿æ</el-checkbox> |
| | | </div> |
| | | <div class="serve-btn"> |
| | | <!-- <el-button type="primary" icon="el-icon-plus">æ°å¢äººå</el-button> --> |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="openDetail(scope.row)">ç¼è¾</el-button> |
| | | <el-button type="text" size="small">å é¤</el-button> |
| | | <el-button type="text" size="small" @click="clickDelete(scope.row)">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-button @click="measureFormVisible = false">å æ¶</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <!-- å é¤ä»ªå¨å¼¹åºæ¡ --> |
| | | <el-dialog |
| | | title="æç¤º" |
| | | :visible.sync="deletedialogVisible" |
| | | width="30%" |
| | | :before-close="handleClose"> |
| | | <span>ç¡®å®å é¤è¯¥ä»ªå¨åï¼</span> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="deletedialogVisible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="deleteInstrument">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { getClassifyList, getInstrumentList, |
| | | addInstrumentUser, addInstrument, getInstrumentDetail, |
| | | getEquipmentPointList, addEquipmentPoint, |
| | | getMetricalInformationList, changeInstrument, addMetricalInformation } from '@/api/laboratory/ledger' |
| | | getMetricalInformationList, changeInstrument, addMetricalInformation, deleteInstrument } from '@/api/laboratory/ledger' |
| | | import { parseTime } from '@/utils/index' |
| | | export default { |
| | | filters: { |
| | |
| | | userOpetions: [], |
| | | // 仪å¨ç¶æé
置项 |
| | | conditionsOptions: [ |
| | | { |
| | | label: 'å
¨é¨', |
| | | value: 0 |
| | | }, |
| | | { |
| | | label: 'è¿è¡', |
| | | value: 1 |
| | |
| | | addClassVisible: false, |
| | | // æ§å¶æ°å¢è®¡éæ¨¡ææ¡æ¾ç¤º |
| | | measureFormVisible: false, |
| | | // æ§å¶å é¤ä»ªå¨æ¨¡ææ¡æ¾ç¤º |
| | | deletedialogVisible: false, |
| | | // æ§å¶æ·»å ä¿®æ¹ä»ªå¨æ½å±çæ¾ç¤º |
| | | addDrawerVisible: false, |
| | | // æ·»å ä¿®æ¹ä»ªå¨åæ°å¯¹è±¡ |
| | |
| | | // ç ç¹è¡¨æ ¼çç¶æï¼æ°æ®å±ç¤ºfalse/æ°å¢è¾å
¥true |
| | | codePointesTableStatus: false, |
| | | // 设å¤è¯¦æ
对象 |
| | | equipmentDetail: {} |
| | | equipmentDetail: {}, |
| | | // è¿æ»¤å
³é®å |
| | | filterText: '', |
| | | // è¿æ»¤åç仪å¨è®¾å¤è¡¨ |
| | | filterdequipmentTable: '', |
| | | oldtableData: '', |
| | | // è¿æ»¤ä¸åç¶æè®¾å¤ |
| | | conditionTable: '', |
| | | nodeclicked: '', |
| | | expireData: '', |
| | | instrumentId: '' |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | }, |
| | | // èç¹ç¹å»å¤ç |
| | | nodeClickHandler(data, node, element) { |
| | | console.log(data) |
| | | this.nodeclicked = data |
| | | // console.log(data) |
| | | // åªææ°æ®ä¸æºå¸¦idæè½åéæ¥è¯¢è¯·æ± |
| | | if (data.id) { |
| | | this.getEquipmentTable({ classifyId: data.id, pageSize: this.pageSize, pageNo: this.currentPage }) |
| | | this.getEquipmentTable({ classifyId: data.id, pageSize: this.pageSize, pageNo: this.currentPage, whetherWhether: this.isOut }) |
| | | } |
| | | }, |
| | | // è·å仪å¨åè¡¨æ°æ® |
| | | async getEquipmentTable(ages) { |
| | | // console.log('æ¡ä»¶å¯¹è±¡', ages) |
| | | const { data } = await getInstrumentList(ages) |
| | | // console.log(data) |
| | | console.log(data) |
| | | this.equipmentTable = data.row |
| | | this.total = data.total |
| | | this.oldtableData = this.equipmentTable |
| | | }, |
| | | // è¿æ»¤èç¹ |
| | | filterNode(value, data) { |
| | |
| | | handleUpload(file, fileList) { |
| | | // console.log(file, fileList) |
| | | this.measureForm.file = file |
| | | }, |
| | | // æ ¹æ®è¾å
¥ç设å¤ç¼å·ï¼è®¾å¤åç§°æè
åå·è§æ ¼å
³é®åè¿è¡è¿æ»¤å表 |
| | | filterTableData() { |
| | | this.oldtableData = this.equipmentTable |
| | | const filterdequipmentTable = this.equipmentTable.filter(item => { |
| | | return item.equipment_code.includes(this.searchData.keyword) || item.equipment_name.includes(this.searchData.keyword) || item.specifications_models.includes(this.searchData.keyword) |
| | | }) |
| | | this.equipmentTable = filterdequipmentTable |
| | | }, |
| | | resetBtn() { |
| | | this.searchData.keyword = '' |
| | | this.equipmentTable = this.oldtableData |
| | | }, |
| | | getConditionTable() { |
| | | // console.log(this.radioValue) |
| | | let filteredTable = this.oldtableData.filter(item => { |
| | | return item.conditions === this.radioValue |
| | | }) |
| | | // å
夿isOut |
| | | if (this.isOut) { |
| | | // 妿ç°å¨å¾éäºå·²è¿ææé®ï¼é£å°±ä»å½åè¿æ»¤å¥½çå表ä¸çéåºè¿æå表 |
| | | if (this.expireData.length === 0) { |
| | | this.equipmentTable = null |
| | | } else { |
| | | let expireItem |
| | | for (expireItem of this.expireData) { |
| | | filteredTable = filteredTable.filter(item => { |
| | | return item.equipment_code === expireItem.equipment_code |
| | | }) |
| | | } |
| | | this.equipmentTable = filteredTable |
| | | } |
| | | if (!this.radioValue) { |
| | | this.equipmentTable = this.expireData |
| | | } |
| | | } else { |
| | | this.equipmentTable = filteredTable |
| | | if (!this.radioValue) { |
| | | this.equipmentTable = this.oldtableData |
| | | } |
| | | } |
| | | }, |
| | | async getExpireTable() { |
| | | // const filteredTable = this.oldtableData.filter(item => { |
| | | // return item.conditions === this.radioValue |
| | | // }) |
| | | if (this.isOut) { |
| | | // æè·ç¹å»äºå·²è¿æï¼è¯·æ±è¿ææ°æ®å¹¶ä¿å |
| | | const { data } = await getInstrumentList({ classifyId: this.nodeclicked.id, pageSize: this.pageSize, pageNo: this.currentPage, whetherWhether: this.isOut }) |
| | | this.expireData = data.row |
| | | if (this.expireData.length === 0) { |
| | | this.equipmentTable = null |
| | | } else { |
| | | if (this.radioValue !== 0) { |
| | | let expireItem |
| | | for (expireItem of this.expireData) { |
| | | this.equipmentTable = this.oldtableData.filter(item => { |
| | | console.log(this.radioValue) |
| | | console.log('item', item) |
| | | console.log('expireItem', expireItem) |
| | | return item.conditions === this.radioValue && item.equipment_code === expireItem.equipment_code |
| | | }) |
| | | console.log(this.equipmentTable) |
| | | } |
| | | } else { |
| | | this.equipmentTable = this.expireData |
| | | } |
| | | } |
| | | } else { |
| | | // æè·åæ¶äºå·²è¿æï¼å°è¿ææ°æ®æ¸
空ï¼éæ°æ´æ°equipmentTable |
| | | this.expireData = '' |
| | | this.equipmentTable = this.oldtableData.filter(item => { |
| | | return item.conditions === this.radioValue |
| | | }) |
| | | if (this.radioValue === 0) { |
| | | this.equipmentTable = this.oldtableData |
| | | } |
| | | } |
| | | }, |
| | | clickDelete(row) { |
| | | this.instrumentId = row.id |
| | | this.deletedialogVisible = true |
| | | }, |
| | | async deleteInstrument() { |
| | | // console.log(row.id) |
| | | await deleteInstrument({ instrumentId: this.instrumentId }) |
| | | this.deletedialogVisible = false |
| | | } |
| | | } |
| | | } |