Merge remote-tracking branch 'origin/dev' into dev
| | |
| | | return request({ |
| | | url: '/insOrder/rawAllInsOrderExport', |
| | | method: 'get', |
| | | data: query, |
| | | params: query, |
| | | responseType: "blob" |
| | | }) |
| | | } |
| | |
| | | // å é¤é¨é¨ |
| | | export function delDepartmentLims(query) { |
| | | return request({ |
| | | url: "/department/delDepartmentLims", |
| | | url: "/personBasicInfo/delDepartmentLims", |
| | | method: "delete", |
| | | params: query |
| | | }); |
| | |
| | | // æ·»å é¨é¨ |
| | | export function addDepartmentLims(query) { |
| | | return request({ |
| | | url: "/department/addDepartmentLims", |
| | | url: "/personBasicInfo/addDepartmentLims", |
| | | method: "post", |
| | | data: query |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <el-dialog title="详æ
" :visible.sync="viewInfoDia" width="1000px"> |
| | | <limsTable :tableData="tableData" :column="column" |
| | | height="600" @pagination="pagination" |
| | | :page="page" :tableLoading="tableLoading"></limsTable> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import {selectRatesDetail} from "@/api/business/insOrderRates"; |
| | | export default { |
| | | name: '', |
| | | // import å¼å
¥çç»ä»¶éè¦æ³¨å
¥å°å¯¹è±¡ä¸æè½ä½¿ç¨ |
| | | components: { limsTable }, |
| | | data() { |
| | | // è¿éåæ¾æ°æ® |
| | | return { |
| | | tableData: [], |
| | | column: [ |
| | | { label: 'å§æç¼å·', prop: 'entrustCode', width: 160 }, |
| | | {label: 'æ£éªé¡¹åç±»', prop: 'inspectionItemClass', width: 160}, |
| | | {label: 'æ£éªé¡¹', prop: 'inspectionItem', width: 160}, |
| | | {label: 'æ£éªå项', prop: 'inspectionItemSubclass', width: 160}, |
| | | { label: 'æ¶è´¹æ å(å
/次)', prop: 'rates' }, |
| | | ], |
| | | viewInfoDia: false, |
| | | tableLoading: false, |
| | | page: { |
| | | current: 1, |
| | | size: 10, |
| | | total: 0 |
| | | }, |
| | | info: {} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | // æ¹æ³éå |
| | | methods: { |
| | | openDia(row) { |
| | | this.viewInfoDia = true |
| | | this.info = this.HaveJson(row) |
| | | this.page.current = 1 |
| | | this.page.size = 10 |
| | | this.getList(); |
| | | }, |
| | | getList() { |
| | | this.tableLoading = true; |
| | | selectRatesDetail({insOrderId: this.info.id, ...this.page}).then(res => { |
| | | this.tableLoading = false; |
| | | this.tableData = res.data.records; |
| | | this.page.total = res.data.total; |
| | | }).catch(err => { |
| | | this.tableLoading = false; |
| | | }) |
| | | }, |
| | | pagination(page) { |
| | | this.page.size = page.limit; |
| | | this.getList(); |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | </style> |
| | |
| | | <template> |
| | | <!-- è´¹ç¨ç»è®¡é¡µé¢--> |
| | | <div class="capacity-scope"> |
| | | <div class="search"> |
| | | <div> |
| | |
| | | :height="'calc(100vh - 250px)'" @pagination="pagination" |
| | | :page="page" :tableLoading="tableLoading"></lims-table> |
| | | </div> |
| | | <viewInfoDia ref="viewInfoDia" v-if="viewInfoDia"></viewInfoDia> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import viewInfoDia from "./components/viewInfoDia.vue"; |
| | | import {selectRatesPage} from "@/api/business/insOrderRates"; |
| | | import {selectCustomPageList} from "@/api/system/customer"; |
| | | |
| | | export default { |
| | | components: {limsTable}, |
| | | components: {limsTable,viewInfoDia}, |
| | | data() { |
| | | return { |
| | | entity: { |
| | |
| | | { label: 'å§æäºº', prop: 'prepareUser' }, |
| | | { label: 'ç产åä½', prop: 'production' }, |
| | | { label: 'å·¥ç¨åç§°', prop: 'engineering' }, |
| | | { label: 'å·¥æ¶', prop: 'cost' } |
| | | { label: 'å·¥æ¶', prop: 'cost' }, |
| | | { |
| | | dataType: "action", |
| | | fixed: "right", |
| | | label: "æä½", |
| | | operation: [ |
| | | { |
| | | name: "æ¥ç详æ
", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | this.openDia(row) |
| | | }, |
| | | }, |
| | | ], |
| | | } |
| | | ], |
| | | page: { |
| | | total: 0, |
| | | size: 10, |
| | | current: 1 |
| | | }, |
| | | companyOptions: [] |
| | | companyOptions: [], |
| | | viewInfoDia: false |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.page.size = page.limit |
| | | this.refreshTable() |
| | | }, |
| | | // æ¥ç详æ
|
| | | openDia (row) { |
| | | this.viewInfoDia = true |
| | | this.$nextTick(() => { |
| | | this.$refs.viewInfoDia.openDia(row) |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | /* if (!row.tempUrlPdf) return this.$message.warning('æä»¶æªä¸ä¼ ') |
| | | this.currentInfo = row |
| | | this.lookDialogVisible = true*/ |
| | | console.log(this.javaApi) |
| | | this.currentInfo = row; |
| | | let fileName = row.url |
| | | let fileType = "docx" |
| | |
| | | <edit-inspection-item ref="editInspectionItem"></edit-inspection-item> |
| | | <!--æ¥çå·¥æ¶å¼¹æ¡--> |
| | | <viewManHourDia ref="viewManHourDia"></viewManHourDia> |
| | | <!--ä¸åæ ¼å¤æµæ¥çå¼¹æ¡--> |
| | | <un-pass-retest-result v-if="retestVisible" :retestInfo="retestInfo" :retestVisible="retestVisible" @closeRetestLook="closeRetestLook"></un-pass-retest-result> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import EditInspectionItem from "./components/EditInspectionItem.vue"; |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import viewManHourDia from "./components/viewManHourDia.vue" |
| | | import UnPassRetestResult from "@/components/rawMaterialInspection/unPassRetestResult.vue" |
| | | import { |
| | | claimInsOrderPlan, |
| | | upPlanUser2, |
| | |
| | | selectSampleAndProductByOrderId, |
| | | } from "@/api/business/inspectionTask.js"; |
| | | import { mapGetters } from "vuex"; |
| | | import {getRetestResult} from "@/api/business/rawMaterialOrder"; |
| | | export default { |
| | | name: 'InspectionTask', |
| | | components: { |
| | | EditInspectionItem, |
| | | limsTable, |
| | | viewManHourDia |
| | | viewManHourDia, |
| | | UnPassRetestResult |
| | | }, |
| | | dicts: ["urgency_level", "inspection_task_state"], |
| | | computed: { |
| | |
| | | label: "æä½", |
| | | operation: [ |
| | | { |
| | | name: "ä¸åæ ¼å¤æµæ¥ç", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | this.getRetestResultInfo(row); |
| | | }, |
| | | disabled: (row) => { |
| | | return row.insResult!=0 |
| | | }, |
| | | }, |
| | | { |
| | | name: "æ£éªé¡¹ç»å®", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | |
| | | }, |
| | | lookTableLoading: false, |
| | | // æ°æ®æ¥çç¸å
³å段---ç»æ |
| | | retestVisible: false, |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | this.personList = data; |
| | | }); |
| | | }, |
| | | // æ¥çä¸åæ ¼å¤æµç»æ |
| | | getRetestResultInfo (row) { |
| | | getRetestResult({insProductId: row.insProductId}).then(res => { |
| | | this.retestVisible = true |
| | | this.retestInfo = res.data |
| | | }) |
| | | }, |
| | | closeRetestLook () { |
| | | this.retestVisible = false |
| | | }, |
| | | // ç»å®æ£éªé¡¹ç»å® |
| | | getBinding(row) { |
| | | this.bindCurrentInfo = row; |
| | |
| | | this.getRetestResult(row); |
| | | }, |
| | | disabled: (row, index) => { |
| | | return row.insResult!==0 |
| | | return row.insResult!=0 |
| | | } |
| | | }, |
| | | ] |
| | |
| | | }, |
| | | // 导åºè®°å½ |
| | | downLoad() { |
| | | rawAllInsOrderExport({ ...this.entity }).then(res => { |
| | | const params = { ...this.entity, state: this.tabList[this.tabIndex].value } |
| | | rawAllInsOrderExport({ ...params }).then(res => { |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, 'å§ææ£æµä¿¡æ¯å¯¼åº.xlsx'); |
| | | }).catch(err => { |
| | |
| | | </div> |
| | | </div> |
| | | <div style="display: flex; align-items: center; justify-content: space-between"> |
| | | <el-radio-group :key="'111'" v-model="currentTable" size="small"> |
| | | <el-radio-group :key="'111'" v-model="currentTable" size="small" @change="searchList"> |
| | | <el-radio-button label="ValueTable0"> è¾
å©å·¥æ¶ </el-radio-button> |
| | | <el-radio-button label="ValueTable1"> 产éå·¥æ¶ </el-radio-button> |
| | | </el-radio-group> |
| | |
| | | this.getCurrentWeekNumber(); |
| | | this.collectWorkingHours(); |
| | | this.selectshiftByUser(); |
| | | this.getList(); |
| | | this.getList0(); |
| | | this.searchList() |
| | | }, |
| | | methods: { |
| | | searchList() { |
| | | if (this.currentTable == 'ValueTable0') { |
| | | this.getList(); |
| | | } else { |
| | | this.getList0(); |
| | | } |
| | | }, |
| | | // æ¥è¯¢è¾
å©å·¥æ¶å表 |
| | | getList(entity) { |
| | | this.tableLoading = true; |
| | | let param = {}; |
| | |
| | | this.tableLoading = false; |
| | | }); |
| | | }, |
| | | // æ¥è¯¢äº§éå·¥æ¶å表 |
| | | getList0(entity) { |
| | | this.tableLoading = true; |
| | | let param = {}; |