Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev
¶Ô±ÈÐÂÎļþ |
| | |
| | | // è´¹ç¨ç»è®¡é¡µé¢ç¸å
³æ¥å£ |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢è®¢åå表 |
| | | export function selectRatesPage(query) { |
| | | return request({ |
| | | url: '/insOrderRates/selectRatesPage', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | // æ¥è¯¢è®¢åè´¹ç¨è¯¦æ
|
| | | export function selectRatesDetail(query) { |
| | | return request({ |
| | | url: '/insOrderRates/selectRatesDetail', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | data: query |
| | | }) |
| | | } |
| | | |
| | | // æ¥è¯¢çæ§è¯ä»·éä»¶å表 |
| | | export function getEvaluateFileList(query) { |
| | | return request({ |
| | | url: "/qualityMonitor/getEvaluateFileList", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | // å é¤çæ§è¯ä»·éä»¶å表 |
| | | export function delVerifyEvaluateFileList(query) { |
| | | return request({ |
| | | url: '/qualityMonitor/delVerifyEvaluateFileList', |
| | | method: 'delete', |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | <el-row class="title"> |
| | | <el-col :span="6" style="padding-left: 20px;text-align: left;">æ°æ®åæ</el-col> |
| | | <el-col :span="18" style="text-align: right;"> |
| | | <el-button size="medium" @click="$emit('goBack')">è¿å</el-button> |
| | | <el-button size="small" @click="$emit('goBack')">è¿å</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | |
| | | }, |
| | | noQs: true |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.comparisonData1 = res.data |
| | | this.getInfo1() |
| | | }) |
| | |
| | | downloadLoadingInstance.close(); |
| | | }); |
| | | }, |
| | | async downloadFileFromUrl(url, filename) { |
| | | try { |
| | | let state = /\.(jpg|jpeg|png|gif)$/i.test(url) // 夿æ¯å¦ä¸ºå¾ç |
| | | let url1 = '' |
| | | if (state) { |
| | | url1 = Vue.prototype.javaApi + '/img/' + url; |
| | | } else { |
| | | url1 = Vue.prototype.javaApi + '/word/' + url |
| | | async saveAs(text, name, opts) { |
| | | if (typeof text === "string") { |
| | | try { |
| | | let state = /\.(jpg|jpeg|png|gif)$/i.test(text) // 夿æ¯å¦ä¸ºå¾ç |
| | | let url1 = '' |
| | | if (state) { |
| | | url1 = Vue.prototype.javaApi + '/img/' + text; |
| | | } else { |
| | | url1 = Vue.prototype.javaApi + '/word/' + text |
| | | } |
| | | // ä½¿ç¨ fetch è·åæä»¶ |
| | | const response = await fetch(url1); |
| | | if (!response.ok) { |
| | | throw new Error('æä»¶ä¸è½½å¤±è´¥: ' + response.statusText); |
| | | } |
| | | // å°æä»¶è½¬æ¢ä¸º Blob |
| | | const blob = await response.blob(); |
| | | // ä½¿ç¨ saveAs ä¿åæä»¶ |
| | | saveAs(blob, name); |
| | | Message.success("æ°æ®å¯¼åºæå"); |
| | | } catch (error) { |
| | | Message.error(error); |
| | | } |
| | | // ä½¿ç¨ fetch è·åæä»¶ |
| | | const response = await fetch(url1); |
| | | if (!response.ok) { |
| | | throw new Error('æä»¶ä¸è½½å¤±è´¥: ' + response.statusText); |
| | | } |
| | | // å°æä»¶è½¬æ¢ä¸º Blob |
| | | const blob = await response.blob(); |
| | | // ä½¿ç¨ saveAs ä¿åæä»¶ |
| | | saveAs(blob, filename); |
| | | Message.success("æ°æ®å¯¼åºæå"); |
| | | } catch (error) { |
| | | Message.error(error); |
| | | } else { |
| | | // æµä¸è½½ |
| | | blobToText(text) |
| | | .then((result) => { |
| | | Message.error(result.msg); |
| | | }) |
| | | .catch(() => { |
| | | saveAs(text, name, opts); |
| | | Message.success("æ°æ®å¯¼åºæå"); |
| | | }); |
| | | } |
| | | }, |
| | | saveAs(text, name, opts) { |
| | | // æµä¸è½½ |
| | | blobToText(text).then((result) => { |
| | | Message.error(result.msg); |
| | | }).catch(() => { |
| | | saveAs(text, name, opts); |
| | | Message.success("æ°æ®å¯¼åºæå"); |
| | | }); |
| | | }, |
| | | async printErrMsg(data) { |
| | | const resText = await data.text(); |
| | |
| | | if (type === 'edit') { |
| | | this.dialogType = "update"; |
| | | selectStoreById({ id: row.id }).then(res => { |
| | | if (res.code === 201) return |
| | | this.consumables = res.data.consumables |
| | | this.form = { ...res.data.store } |
| | | }).catch(err => { |
| | |
| | | </div> |
| | | <div> |
| | | <!-- <el-button size="medium" @click="exportExcel">导 åº</el-button>--> |
| | | <el-button size="medium" type="primary" @click="showDialog('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="showDialog('add')">æ° å¢</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | ...mapGetters(["userId"]), |
| | | }, |
| | | mounted() { |
| | | // this.entityCopy = this.HaveJson(this.componentData.entity); |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | // æéåé
|
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let up = false |
| | | let del = false |
| | | let add = false |
| | | let out = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'doProcessComplain') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'addProcessComplain') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delProcessComplain') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportProcessComplain') { |
| | | out = true |
| | | } |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | this.outPower = out |
| | | this.addPower = add |
| | | }, |
| | | openAdd() { |
| | | this.addInfo = {} |
| | | this.addDialogVisible = true |
| | |
| | | this.addLoading = true |
| | | addProcessComplain(this.addInfo).then((res) => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | this.$message({ |
| | | type: 'error', |
| | | message: 'æ°å¢å¤±è´¥' |
| | | }) |
| | | return |
| | | } |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'æ°å¢æå' |
| | |
| | | } |
| | | doProcessComplain(this.currentInfo0).then((res) => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | this.$message({ |
| | | type: 'error', |
| | | message: 'æäº¤å¤±è´¥' |
| | | }) |
| | | return |
| | | } |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'æäº¤æå' |
| | |
| | | this.outLoading = true |
| | | exportProcessComplain(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, 'æè¯æ
嵿±æ»è¡¨.xlsx'); |
| | | }) |
| | | }, |
| | | handleOut(row) { |
| | | getProcessComplain({ id: row.id }).then((res) => { |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.currentInfo = res.data |
| | | this.currentInfo0 = this.HaveJson(res.data) |
| | | this.title = '导åº' |
| | |
| | | }) |
| | | .then(() => { |
| | | delProcessComplain({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("å 餿å"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | </el-form> |
| | | </div> |
| | | <div style="text-align: right; margin-bottom: 20px"> |
| | | <el-button size="medium" type="primary" @click="goAdd">æ°å¢</el-button> |
| | | <el-button size="small" type="primary" @click="goAdd">æ°å¢</el-button> |
| | | </div> |
| | | <div class="table"> |
| | | <el-table v-loading="tableListLoading" :data="tableList" height="530" style="width: 100%"> |
| | |
| | | }; |
| | | }, |
| | | mounted() { |
| | | // this.getPower() |
| | | this.getAuthorizedPerson() |
| | | this.refreshTable() |
| | | }, |
| | |
| | | this.buttonLoading = true |
| | | updateInspectionOrder(this.currentInfo).then(res => { |
| | | this.buttonLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æ°å¢æå') |
| | | this.detailDialogVisible = false |
| | | this.orderRowsVisible = false |
| | |
| | | :action="fileAction" |
| | | :auto-upload="true" |
| | | :before-upload="fileBeforeUpload" :data="{detailsEvaluateId: info.detailsEvaluateId}" |
| | | :headers="headers" :on-error="onError" |
| | | :headers="uploadHeader" :on-error="onError" |
| | | :on-success="handleSuccessUp" |
| | | :show-file-list="false" |
| | | accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' style="width: 80px !important;"> |
| | |
| | | import file from '@/utils/file'; |
| | | import filePreview from '@/components/Preview/filePreview.vue'; |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import { |
| | | delVerifyEvaluateFileList, |
| | | getEvaluateFileList |
| | | } from '@/api/cnas/process/ensureResults/qualityMonitor' |
| | | |
| | | |
| | | export default { |
| | | name: 'ViewRecord', |
| | |
| | | // æ¥è¯¢éä»¶å表 |
| | | searchTableList () { |
| | | this.tableLoading = true |
| | | this.$axios.get(this.$api.qualityMonitor.getEvaluateFileList + '?detailsEvaluateId=' + this.info.detailsEvaluateId).then(res => { |
| | | getEvaluateFileList({detailsEvaluateId:this.info.detailsEvaluateId}).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data |
| | | if (res.code === 200){ |
| | | this.tableData = res.data |
| | | } |
| | | }).catch(err => { |
| | | this.tableLoading = false |
| | | console.log('err---', err); |
| | |
| | | // å é¤ |
| | | delete (row) { |
| | | this.tableLoading = true |
| | | this.$axios.get(this.$api.qualityMonitor.delVerifyEvaluateFileList + '?evaluateFileId=' + row.evaluateFileId).then(res => { |
| | | delVerifyEvaluateFileList({evaluateFileId : row.evaluateFileId}).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchTableList() |
| | | }).catch(err => { |
| | |
| | | if (response.code == 200) { |
| | | this.$message.success('ä¸ä¼ æå'); |
| | | this.searchTableList() |
| | | } else { |
| | | this.$message.error(response.msg); |
| | | } |
| | | }, |
| | | // æ¥çæä»¶ |
| | |
| | | }, |
| | | }, |
| | | computed: { |
| | | headers() { |
| | | return { |
| | | 'token': sessionStorage.getItem('token') |
| | | } |
| | | }, |
| | | fileAction() { |
| | | return this.javaApi + this.$api.qualityMonitor.uploadEvaluateFile |
| | | return this.javaApi + '/qualityMonitor/uploadEvaluateFile' |
| | | |
| | | } |
| | | }, |
| | |
| | | addInfo() { |
| | | addQualityMonitorRatify(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeCarryOutDia() |
| | | }).catch(err => { |
| | |
| | | editInfo() { |
| | | addQualityMonitorRatifyOpinion(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeCarryOutDia() |
| | | }).catch(err => { |
| | |
| | | this.upLoad = true |
| | | addQualityMonitorDetail(entity).then(res => { |
| | | this.upLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æ°å¢æå') |
| | | this.closeDia() |
| | | }).catch(err => { |
| | |
| | | this.upLoad = true |
| | | updateQualityMonitorDetail(entity).then(res => { |
| | | this.upLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('ä¿®æ¹æå') |
| | | this.closeDia() |
| | | }).catch(err => { |
| | |
| | | title="è´¨éçæ§è¯ä»·" |
| | | width="60%" @close="closeEvaDia"> |
| | | <div style="text-align: right"> |
| | | <el-button size="small" type="primary" @click="viewTestRecord">éä»¶ä¸ä¼ </el-button> |
| | | <el-button size="small" type="primary" @click="viewTestRecord" :disabled="currentStep === 0">éä»¶ä¸ä¼ </el-button> |
| | | </div> |
| | | <el-steps :active="currentStep" align-center finish-status="success"> |
| | | <el-step title="çæ§è®¡å宿½æ
åµ" @click.native="setStep(0)"></el-step> |
| | |
| | | this.upLoad = true |
| | | updateQualitySuperviseDetail(entity).then(res => { |
| | | this.upLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('ä¿®æ¹æå') |
| | | this.closeDia() |
| | | }).catch(err => { |
| | |
| | | if (this.currentStep === 0) { |
| | | addEquipSuperviseDetailAccording(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æäº¤æå') |
| | | this.closeProcessingDia() |
| | | }).catch(err => { |
| | |
| | | } else { |
| | | approverEquipSuperviseDetailAccording(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æ¹åæå') |
| | | this.closeProcessingDia() |
| | | }).catch(err => { |
| | |
| | | if (this.currentStep === 0) { |
| | | addEquipSuperviseDetailCorrect(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æäº¤æå') |
| | | this.closeRectifyDia() |
| | | }).catch(err => { |
| | |
| | | } else { |
| | | approveEquipSuperviseDetailCorrect(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æ¹åæå') |
| | | this.closeRectifyDia() |
| | | }).catch(err => { |
| | |
| | | :visible.sync="formDia" |
| | | width="90%" @close="closeDia"> |
| | | <div v-if="operationType === 'edit'" style="text-align: right"> |
| | | <el-button :disabled="form.confirmDate" size="medium" type="primary" @click="validation">éªè¯ç¡®è®¤</el-button> |
| | | <el-button :disabled="form.confirmDate" size="small" type="primary" @click="validation">éªè¯ç¡®è®¤</el-button> |
| | | </div> |
| | | <table border="1" cellspacing="10" class="tables"> |
| | | <tr> |
| | |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.queryParams = {}; |
| | | this.getList(); |
| | | }, |
| | | // æéåé
|
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem("power")); |
| | | let up = false; |
| | | let del = false; |
| | | let add = false; |
| | | let inPower = false; |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == "addStandardMethod") { |
| | | add = true; |
| | | } |
| | | if (power[i].menuMethod == "delStandardMethod") { |
| | | del = true; |
| | | } |
| | | if (power[i].menuMethod == "upStandardMethod") { |
| | | up = true; |
| | | } |
| | | if (power[i].menuMethod == "importStandardDetails") { |
| | | inPower = true; |
| | | } |
| | | } |
| | | this.addPower = add; |
| | | this.inPower = inPower; |
| | | }, |
| | | openAdd() { |
| | | this.title = "æ°å¢"; |
| | | this.addForm = {}; |
| | |
| | | :visible.sync="formDia" |
| | | width="90%" @close="closeDia"> |
| | | <div v-if="operationType === 'edit'" style="text-align: right"> |
| | | <el-button :disabled="form.confirmDate !== '' && form.confirmDate !== null && form.confirmDate !== undefined" size="medium" type="primary" @click="validation">éªè¯ç¡®è®¤</el-button> |
| | | <el-button :disabled="form.confirmDate !== '' && form.confirmDate !== null && form.confirmDate !== undefined" size="small" type="primary" @click="validation">éªè¯ç¡®è®¤</el-button> |
| | | </div> |
| | | <table border="1" cellspacing="10" class="tables"> |
| | | <tr> |
| | |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.editLoad = true |
| | | addMethodSearchNew(this.form.taskRel).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeDia() |
| | | }).catch(err => { |
| | |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <el-button size="medium" type="primary" @click="openApprovalDialog1">建 档</el-button> |
| | | <el-button size="small" type="primary" @click="openApprovalDialog1">建 档</el-button> |
| | | <el-upload ref='upload' :action="action" :before-upload="beforeUpload" :headers="uploadHeader" :on-error="onError" |
| | | :on-success="handleSuccessUp" :show-file-list="false" |
| | | accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' |
| | | style="display: inline-block; margin-left: 10px;"> |
| | | <el-button :loading="upLoading" size="medium" type="primary">导å
¥</el-button> |
| | | <el-button :loading="upLoading" size="small" type="primary">导å
¥</el-button> |
| | | </el-upload> |
| | | <el-button size="medium" style="margin-left: 10px;" type="primary" @click="openFormDia">æ° å¢</el-button> |
| | | <el-button size="small" style="margin-left: 10px;" type="primary" @click="openFormDia">æ° å¢</el-button> |
| | | </div> |
| | | </div> |
| | | <div> |
| | |
| | | this.diaLoading = true |
| | | getInconsistentDistributionOne({ distributionId: row.distributionId }).then(res => { |
| | | this.diaLoading = false |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | this.distributionDetailList = this.form.distributionDetailList |
| | | this.distributionProportion = this.form.distributionProportion |
| | |
| | | if (this.operationType === 'add') { |
| | | addInconsistentDistribution(internalPlan).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | updateInconsistentDistribution(internalPlan).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeDia() |
| | | }).catch(err => { |
| | |
| | | <el-input v-model="searchForm.distributionYear" clearable size="small"></el-input> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | <div class="btn"> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.tableLoading = true |
| | | pageInconsistentDistribution({ ...entity, ...page }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | delInconsistentDistribution({ distributionId: row.distributionId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | searchInfo(row) { |
| | | this.form.qualityMonitorDetailsId = row.qualityMonitorDetailsId |
| | | getSuperviseDetailAccording({ superviseDetailsId: row.superviseDetailsId }).then(res => { |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | |
| | | <el-input v-model="searchForm.occurrenceDepartment" clearable size="small"></el-input> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.tableLoading = true |
| | | pageSuperviseDetailAccording({ ...entity, ...page }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | <el-button size="small" type="primary" @click="refreshTable()">æ¥ è¯¢</el-button> |
| | | </div> |
| | | <div class="btn"> |
| | | <el-button size="medium" type="primary" @click="handleDown" :loading="outLoading" v-if="outPower">导åº</el-button> |
| | | <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">æ°å¢</el-button> |
| | | <el-button size="small" type="primary" @click="handleDown" :loading="outLoading" v-if="outPower">导åº</el-button> |
| | | <el-button size="small" type="primary" @click="openAdd" v-if="addPower">æ°å¢</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.getAuthorizedPerson() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let up = false |
| | | let del = false |
| | | let add = false |
| | | let out = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'doProcessReport') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'addProcessReport') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delProcessReport') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportProcessReport') { |
| | | out = true |
| | | } |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.outPower = out |
| | | this.addPower = add |
| | | }, |
| | | handleDown() { |
| | | if (this.mutilSelect.length == 0) { |
| | | this.$message.warning('è¯·éæ©è¦å¯¼åºçæ°æ®') |
| | |
| | | this.outLoading = true |
| | | exportProcessReport({ ids: this.mutilSelect.map(m => m.id) }).then(res => { |
| | | this.outLoading = false |
| | | this.$download.downloadFileFromUrl(res.data, "æ¥åç»æ"); |
| | | this.$download.saveAs(res.data, "æ¥åç»æ"); |
| | | }) |
| | | }, |
| | | openAdd() { |
| | |
| | | if (this.title == 'æ°å¢') { |
| | | addProcessReport(addInfo).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | } else { |
| | | doProcessReport(addInfo).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | }) |
| | | .then(() => { |
| | | delProcessReport({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("å 餿å"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;">æ°å¢</el-button> |
| | | <div class="table" style="height: calc(100% - 200px)" v-if="activeName == 'å¡«å'"> |
| | | <lims-table :tableData="tableData" :column="column" :tableLoading="tableLoading" |
| | | key="tableData" |
| | | :height="'calc(100vh - 290px)'" :page="page" @pagination="pagination"></lims-table> |
| | | </div> |
| | | </el-tab-pane> |
| | |
| | | </div> |
| | | <div class="table"> |
| | | <lims-table :tableData="tableData0" :column="column0" :tableLoading="tableLoading" |
| | | key="tableData0" |
| | | :height="'calc(100vh - 300px)'" :page="page0" @pagination="pagination0"></lims-table> |
| | | </div> |
| | | </el-tab-pane> |
| | |
| | | }; |
| | | }, |
| | | mounted() { |
| | | // this.entityCopy = this.HaveJson(this.componentData.entity); |
| | | this.getCustomPageList() |
| | | this.getList() |
| | | this.getList0() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let add = false |
| | | let out = false |
| | | let submitProcessTotaldeal = false |
| | | let checkProcessTotaldeal = false |
| | | let ratifyProcessTotaldeal = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addProcessDeal') { |
| | | add = true |
| | | } |
| | | // if (power[i].menuMethod == 'exportProcessEvaluate') { |
| | | // out = true |
| | | // } |
| | | if (power[i].menuMethod == 'submitProcessTotaldeal') { |
| | | submitProcessTotaldeal = true |
| | | } |
| | | if (power[i].menuMethod == 'checkProcessTotaldeal') { |
| | | checkProcessTotaldeal = true |
| | | } |
| | | if (power[i].menuMethod == 'ratifyProcessTotaldeal') { |
| | | ratifyProcessTotaldeal = true |
| | | } |
| | | } |
| | | if (!ratifyProcessTotaldeal) { |
| | | this.componentData.do.splice(4, 1) |
| | | } |
| | | if (!checkProcessTotaldeal) { |
| | | this.componentData.do.splice(3, 1) |
| | | } |
| | | if (!submitProcessTotaldeal) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData0.do.splice(1, 1) |
| | | this.componentData0.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | }, |
| | | // è·åéæ ·åä½å表 |
| | | getCustomPageList() { |
| | | selectCustomPageList({ |
| | |
| | | ...this.addInfo |
| | | }).then(res => { |
| | | this.addLoading = false |
| | | if (res.code === 201) return |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | ...this.addInfo |
| | | }).then(res => { |
| | | this.addLoading = false |
| | | if (res.code === 201) return |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | submitProcessTotaldeal({ |
| | | id: row.id |
| | | }).then(res => { |
| | | if (res.code === 201) return |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'æäº¤æå!' |
| | |
| | | }, |
| | | // æ¥ç |
| | | handleLook(row) { |
| | | // console.log(row) |
| | | // this.title0 = 'æ¥ç' |
| | | // this.commonFun(row) |
| | | this.activeName = 'å¡«å' |
| | | this.queryParams.totaldealId = row.id |
| | | this.$nextTick(() => { |
| | | this.page.current = 0; |
| | | this.page.current = 1; |
| | | this.getList(); |
| | | }) |
| | | }, |
| | |
| | | }).then(res => { |
| | | this.checkLoading = false |
| | | this.noCheckLoading = false |
| | | if (res.code === 201) return |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'æä½æå!' |
| | |
| | | }).then(res => { |
| | | this.checkLoading = false |
| | | this.noCheckLoading = false |
| | | if (res.code === 201) return |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'æä½æå!' |
| | |
| | | return |
| | | } |
| | | // å端ä¸è½½ |
| | | this.$download.downloadFileFromUrl(row.url, row.month + ' æ ·åå¤çç³è¯·è¡¨'); |
| | | this.$download.saveAs(row.url, row.month + ' æ ·åå¤çç³è¯·è¡¨'); |
| | | }, |
| | | handleDelete(row) { |
| | | this.$confirm("æ¯å¦å é¤è¯¥æ¡æ°æ®?", "æç¤º", { |
| | |
| | | }) |
| | | .then(() => { |
| | | delProcessDeal({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("å 餿å"); |
| | | this.page.current = 0; |
| | | this.getList(); |
| | |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let up = false |
| | | let del = false |
| | | let add = false |
| | | let out = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'doProcessEvaluate') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'addProcessEvaluate') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delProcessEvaluate') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportProcessEvaluate') { |
| | | out = true |
| | | } |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.outPower = out |
| | | this.addPower = add |
| | | }, |
| | | handleDown0() { |
| | | this.outLoading = true |
| | | exportProcessEvaluate(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | if (res.code === 201) return |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, 'æµéä¸ç¡®å®åº¦çè¯å®.xlsx'); |
| | | }) |
| | |
| | | this.$message.warning('ææ æä»¶') |
| | | return |
| | | } |
| | | this.$download.downloadFileFromUrl(row.reportUrl, row.reportName); |
| | | this.$download.saveAs(row.reportUrl, row.reportName); |
| | | }, |
| | | beforeUpload(file) { |
| | | if (file.size > 1024 * 1024 * 10) { |
| | |
| | | evaluateUser: this.userId |
| | | }).then((res) => { |
| | | this.addLoading = false; |
| | | if (res.code == 201) { |
| | | this.$message.error('è¯ä»·å¤±è´¥'); |
| | | return; |
| | | } |
| | | this.$message.success('è¯ä»·æå'); |
| | | this.addDialogVisible = false; |
| | | this.refreshTable() |
| | |
| | | }) |
| | | .then(() => { |
| | | delProcessEvaluate({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("å 餿å"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | <el-row class="title"> |
| | | <el-col :span="6" style="padding-left: 20px;text-align: left;">æ°éé
ç½®</el-col> |
| | | <el-col :span="18" style="text-align: right;"> |
| | | <el-button size="medium" type="primary" @click="fileConfiguration">æä»¶é
ç½®</el-button> |
| | | <el-button size="medium" @click="$parent.closeDataVue()"> |
| | | <el-button size="small" type="primary" @click="fileConfiguration">æä»¶é
ç½®</el-button> |
| | | <el-button size="small" @click="$parent.closeDataVue()"> |
| | | <span style="color: #3A7BFA;">è¿å</span> |
| | | </el-button> |
| | | </el-col> |
| | |
| | | }) |
| | | .then(() => { |
| | | deleteDeviceBorrow({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("å 餿å"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | }) |
| | | }, |
| | | handleAttachmentClick(row) { |
| | | this.$download.downloadFileFromUrl(row.systemFileName, row.systemFileName) |
| | | this.$download.saveAs(row.systemFileName, row.systemFileName) |
| | | }, |
| | | //å¯¼åº |
| | | handleDown() { |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ValueTable from "@/components/Table/value-table.vue"; |
| | | import file from '@/utils/file'; |
| | | import { mapGetters } from "vuex"; |
| | | export default { |
| | | components: { |
| | | ValueTable |
| | | }, |
| | | components: {}, |
| | | props: { |
| | | clickNodeVal: { |
| | | type: Object, |
| | |
| | | this.tableLoading = true |
| | | getDeviceAcceptanceFileList({ acceptanceId: this.acceptanceId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data |
| | | }).catch(err => { |
| | | this.tableLoading = false |
| | |
| | | }, |
| | | // ä¸è½½ |
| | | upload(row) { |
| | | this.$download.downloadFileFromUrl(row.fileUrl, row.fileName) |
| | | this.$download.saveAs(row.fileUrl, row.fileName) |
| | | }, |
| | | // å é¤ |
| | | delete(row) { |
| | |
| | | this.tableLoading = true |
| | | delDeviceAcceptanceFileList({ acceptanceFileId: row.acceptanceFileId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchTableList() |
| | | }).catch(err => { |
| | |
| | | if (response.code == 200) { |
| | | this.$message.success('ä¸ä¼ æå'); |
| | | this.getYearTableData() |
| | | } else if (response.code == 201) { |
| | | } else { |
| | | this.$message.error(response.message) |
| | | } |
| | | }, |
| | |
| | | }, |
| | | getUserList() { |
| | | selectUserCondition().then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.userList = res.data |
| | | }) |
| | | }, |
| | |
| | | |
| | | <script> |
| | | import { MessageBox } from 'element-ui' |
| | | import ValueTable from "@/components/Table/value-table.vue"; |
| | | import fileDownload from '@/utils/file' |
| | | import vueQr from 'vue-qr' |
| | | import PrintJS from 'print-js' |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | ValueTable, |
| | | vueQr |
| | | }, |
| | | data() { |
| | |
| | | handleAttachmentClick(row) { |
| | | console.log(row) |
| | | if (row.fileName) { |
| | | this.$download.downloadFileFromUrl(row.fileName) |
| | | this.$download.saveAs(row.fileName) |
| | | } else { |
| | | this.$message.warning('æªä¸ä¼ æä»¶ï¼') |
| | | } |
| | |
| | | } |
| | | this.upLoad = true; |
| | | upDeviceParameter(formData).then(res => { |
| | | if (res.code === 201) { |
| | | this.upLoad = false |
| | | return |
| | | } |
| | | this.$message.success('ä¿®æ¹æå') |
| | | this.upLoad = false |
| | | this.getList(this.clickNodeVal.value) |
| | |
| | | }, |
| | | getUserList() { |
| | | selectUserCondition().then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.userList = res.data |
| | | }) |
| | | }, |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | // this.entityCopy = this.HaveJson(this.componentData.entity) |
| | | // this.getPower() |
| | | this.selectEnumByCategory() |
| | | this.selectDevicePrincipal() |
| | | this.obtainItemParameterList() |
| | | this.getInsProductIds() |
| | | // this.$customEvents.$on('largeCategory', this.handleNotification); |
| | | // åå§å |
| | | this.clickSidebar(this.clickNodeVal) |
| | | }, |
| | |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, '设å¤ä»ªå¨ä¸è§è¡¨.doc') |
| | | }) |
| | | }, |
| | | // æéåé
|
| | | getPower(radio) { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let up = false |
| | | let del = false |
| | | let add = false |
| | | let config = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'upDeviceParameter') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'delDeviceParameter') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'addDeviceParameter') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'saveDataAcquisitionConfiguration') { |
| | | config = true |
| | | } |
| | | } |
| | | if (!config) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | }, |
| | | // è·ååå
¸ |
| | | selectEnumByCategory() { |
| | |
| | | } |
| | | this.upLoad = true; |
| | | upDeviceParameter(formData).then(res => { |
| | | if (res.code === 201) { |
| | | this.upLoad = false |
| | | return |
| | | } |
| | | this.$message.success('ä¿®æ¹æå') |
| | | this.upLoad = false |
| | | this.refreshTable('page') |
| | |
| | | } |
| | | this.upLoad2 = true; |
| | | addDeviceParameter(formData).then(res => { |
| | | if (res.code === 201) { |
| | | this.upLoad2 = false |
| | | return |
| | | } |
| | | this.$message.success('æäº¤æå') |
| | | this.upLoad2 = false |
| | | this.refreshTable('page') |
| | |
| | | this.upLoad3 = true |
| | | numberCollect(this.configForm).then(res => { |
| | | this.upLoad3 = false |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$message.success('æä½æå') |
| | | this.refreshTable('page') |
| | | this.dialogVisible3 = false |
| | |
| | | }) |
| | | .then(() => { |
| | | delDeviceParameter({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("å 餿å"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | }, |
| | | getUserList() { |
| | | selectUserCondition().then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.userList = res.data |
| | | }) |
| | | }, |
| | |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <el-button size="medium" @click="handleDown">导 åº</el-button> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" @click="handleDown">导 åº</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | }, |
| | | handleRemove(file) { |
| | | this.$axios.delete(this.$api.personnel.deleteCNASFile + "?fileName=" + file.name).then(res => { |
| | | if (res.code === 201) return; |
| | | this.$message.success('å 餿åï¼') |
| | | let index = this.form.fileList.indexOf(fileName) |
| | | if (index != -1) { |
| | |
| | | this.$message.warning('ææ æä»¶') |
| | | return |
| | | } |
| | | this.$download.downloadFileFromUrl(row.systemFileName, row.fileName) |
| | | this.$download.saveAs(row.systemFileName, row.fileName) |
| | | } |
| | | } |
| | | } |
| | |
| | | feMeasuredQuantityListDelete(row, index) { |
| | | if (row.measuredQuantityId) { |
| | | deleteFeMeasuredQuantity({ measuredQuantityId: row.measuredQuantityId }).then(res => { |
| | | if (res.code === 201) return |
| | | this.form.feMeasuredQuantityList.splice(index, 1) |
| | | this.$message.success('å 餿åï¼') |
| | | }) |
| | |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | @keyup.enter.native="searchList"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button size="medium" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | this.loading = true |
| | | addStandardSubstance(this.form).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeYearDia() |
| | | }).catch(err => { |
| | |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <el-button size="medium" @click="exportFun">导 åº</el-button> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" @click="exportFun">导 åº</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | }, |
| | | // ä¸è½½ |
| | | upload(row) { |
| | | this.$download.downloadFileFromUrl(row.fileUrl, row.fileName); |
| | | this.$download.saveAs(row.fileUrl, row.fileName); |
| | | }, |
| | | // å é¤ |
| | | delete(row) { |
| | |
| | | }, |
| | | // ä¸è½½å®¢æ·ç¦å»º |
| | | upload(row) { |
| | | this.$download.downloadFileFromUrl(row.fileUrl, row.fileName); |
| | | this.$download.saveAs(row.fileUrl, row.fileName); |
| | | }, |
| | | // å é¤å®¢æ·åæéä»¶ |
| | | delFile(row) { |
| | |
| | | this.page.current = 1; |
| | | this.getList(); |
| | | }, |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let up = false |
| | | let del = false |
| | | let add = false |
| | | // let check = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addManageDocumentControlled') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'addManageDocumentControlled') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageDocumentControlled') { |
| | | del = true |
| | | } |
| | | // if (power[i].menuMethod == 'checkManageDocumentControlled') { |
| | | // check = true |
| | | // } |
| | | } |
| | | // if (!check) { |
| | | // this.componentData.do.splice(2, 1) |
| | | // } |
| | | if (!del) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | }, |
| | | getAuthorizedPerson() { |
| | | selectUserCondition().then(res => { |
| | | let data = [] |
| | |
| | | }, |
| | | handleDown(row) { |
| | | if (!row.url) return this.$message.warning('æä»¶æªä¸ä¼ ') |
| | | this.$download.downloadFileFromUrl(row.url, row.url); |
| | | this.$download.saveAs(row.url, row.url); |
| | | }, |
| | | async uploadPDF(pdfBlob) { |
| | | const formData = new FormData(); |
| | |
| | | this.selectEnumByCategory() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let out = false |
| | | let del = false |
| | | let add = false |
| | | // let check = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'exportManageDocumentIssueRecycle') { |
| | | out = true |
| | | } |
| | | if (power[i].menuMethod == 'addManageDocumentIssueRecycle') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageDocumentIssueRecycle') { |
| | | del = true |
| | | } |
| | | // if (power[i].menuMethod == 'checkManageDocumentControlled') { |
| | | // check = true |
| | | // } |
| | | } |
| | | // if (!check) { |
| | | // this.componentData.do.splice(2, 1) |
| | | // } |
| | | if (!del) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | this.outPower = out |
| | | }, |
| | | getList() { |
| | | this.tableLoading = true; |
| | | let param = { ...this.queryParams, ...this.page }; |
| | |
| | | this.selectEnumByCategory() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let up = false |
| | | let del = false |
| | | let add = false |
| | | let out = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addManageDocumentAlter') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'addManageDocumentAlter') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageDocumentAlter') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportManageDocumentAlter') { |
| | | out = true |
| | | } |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | this.outPower = out |
| | | }, |
| | | getList() { |
| | | this.tableLoading = true; |
| | | let param = { ...this.queryParams, ...this.page }; |
| | |
| | | // ä¸è½½éä»¶ |
| | | handleDown(row) { |
| | | if (!row.alterAfterUrl) return this.$message.warning('æä»¶æªä¸ä¼ ') |
| | | this.$download.downloadFileFromUrl(row.alterAfterUrl, row.alterAfterUrl) |
| | | this.$download.saveAs(row.alterAfterUrl, row.alterAfterUrl) |
| | | }, |
| | | // æå¼å®¡æ ¸å¼¹æ¡ |
| | | handleCheck(row) { |
| | |
| | | // ä¸è½½æä»¶ |
| | | handleDown(row) { |
| | | if (!row.url) return this.$message.warning('æä»¶æªä¸ä¼ ') |
| | | this.$download.downloadFileFromUrl(row.url, row.url); |
| | | this.$download.saveAs(row.url, row.url); |
| | | }, |
| | | // æ¥çæä»¶ |
| | | handleLook(row) { |
| | | if (!row.url) return this.$message.warning('æä»¶æªä¸ä¼ ') |
| | | this.currentInfo = row |
| | | this.lookDialogVisible = true |
| | | }, |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let up = false |
| | | let upFile = false |
| | | let add = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'doManageDocumentList') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'exportManageDocumentList') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'uploadFileManageDocumentList') { |
| | | upFile = true |
| | | } |
| | | } |
| | | if (!upFile) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | }, |
| | | // ä¸ä¼ æä»¶ |
| | | handleUp(row) { |
| | |
| | | this.selectEnumByCategory() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let out = false |
| | | let del = false |
| | | let add = false |
| | | // let check = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'exportManageDocumentCancel') { |
| | | out = true |
| | | } |
| | | if (power[i].menuMethod == 'addManageDocumentCancel') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageDocumentCancel') { |
| | | del = true |
| | | } |
| | | // if (power[i].menuMethod == 'checkManageDocumentControlled') { |
| | | // check = true |
| | | // } |
| | | } |
| | | // if (!check) { |
| | | // this.componentData.do.splice(2, 1) |
| | | // } |
| | | if (!del) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | this.outPower = out |
| | | }, |
| | | getList() { |
| | | this.tableLoading = true; |
| | | let param = { ...this.queryParams, ...this.page }; |
| | |
| | | this.getAuthorizedPerson() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let add = false |
| | | let del = false |
| | | let up = false; |
| | | let out = false; |
| | | let check = false |
| | | let ratify = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addManageRecordCheck') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageRecordCheck') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportInManageRecordCheck') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'checkManageRecordCheck') { |
| | | check = true |
| | | } |
| | | if (power[i].menuMethod == 'ratifyManageRecordCheck') { |
| | | ratify = true |
| | | } |
| | | if (power[i].menuMethod == 'exportOutManageRecordCheck') { |
| | | out = true |
| | | } |
| | | } |
| | | if (!ratify) { |
| | | this.componentData.do.splice(3, 1) |
| | | } |
| | | if (!check) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | this.outPower = out |
| | | this.upPower = up |
| | | }, |
| | | getList() { |
| | | this.tableLoading = true; |
| | | let param = { ...this.queryParams, ...this.page }; |
| | |
| | | // queryParams |
| | | exportOutManageRecordCheck(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | this.$download.downloadFileFromUrl(res.data, 'æä»¶å®¡æ¹è®°å½') |
| | | this.$download.saveAs(res.data, 'æä»¶å®¡æ¹è®°å½') |
| | | }) |
| | | }, |
| | | getAuthorizedPerson() { |
| | |
| | | this.getFileList() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let add = false |
| | | let del = false |
| | | let up = false; |
| | | let out = false; |
| | | let ratify = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addManageRecordCancel') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageRecordCancel') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportInManageRecordCancel') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'ratifyManageRecordCancel') { |
| | | ratify = true |
| | | } |
| | | if (power[i].menuMethod == 'exportOutManageRecordCancel') { |
| | | out = true |
| | | } |
| | | } |
| | | if (!ratify) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | this.outPower = out |
| | | this.upPower = up |
| | | }, |
| | | openAdd() { |
| | | this.addInfo = {} |
| | | this.title = 'æ°å¢' |
| | |
| | | this.outLoading = true |
| | | exportOutManageRecordCancel(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | this.$download.downloadFileFromUrl(res.data, "ä½åºæä»¶éæ¯è®°å½"); |
| | | this.$download.saveAs(res.data, "ä½åºæä»¶éæ¯è®°å½"); |
| | | }) |
| | | }, |
| | | getList() { |
| | |
| | | // this.selectTreeList() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let add = false |
| | | let del = false |
| | | let up = false; |
| | | let out = false; |
| | | let edit = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addManageRecordIssueRecycle') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageRecordIssueRecycle') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportInManageRecordIssueRecycle') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'doManageRecordIssueRecycle') { |
| | | edit = true |
| | | } |
| | | if (power[i].menuMethod == 'exportOutManageRecordIssueRecycle') { |
| | | out = true |
| | | } |
| | | } |
| | | if (!add) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | this.outPower = out |
| | | this.upPower = up |
| | | }, |
| | | // æ°å¢ |
| | | openAdd() { |
| | | // this.$refs.ValueTable.openAddDia(this.$api.manageRecordIssueRecycle.addManageRecordIssueRecycle); |
| | |
| | | this.outLoading = true |
| | | exportOutManageRecordIssueRecycle(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | this.$download.downloadFileFromUrl(res.data, 'æä»¶åæ¾ä¸åæ¶è®°å½') |
| | | this.$download.saveAs(res.data, 'æä»¶åæ¾ä¸åæ¶è®°å½') |
| | | }) |
| | | }, |
| | | getList() { |
| | |
| | | this.getList0() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let add = false |
| | | let del = false |
| | | let up = false; |
| | | let sub = false |
| | | let ratify = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addManageRecordVerify') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageRecordVerify') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportManageRecordVerify') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'submitManageRecordTotal') { |
| | | sub = true |
| | | } |
| | | if (power[i].menuMethod == 'ratifyManageRecordTotal') { |
| | | ratify = true |
| | | } |
| | | } |
| | | if (!ratify) { |
| | | this.componentData.do.splice(3, 1) |
| | | } |
| | | if (!sub) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData0.do.splice(1, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData0.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | this.upPower = up |
| | | }, |
| | | openAdd(title, row) { |
| | | this.title = title; |
| | | if (row) { |
| | |
| | | }).catch(err => { }); |
| | | }, |
| | | handleDown0(row) { |
| | | this.$download.downloadFileFromUrl(row.url, '夿¥æä»¶ç¡®è®¤è®°å½') |
| | | this.$download.saveAs(row.url, '夿¥æä»¶ç¡®è®¤è®°å½') |
| | | }, |
| | | // æäº¤ |
| | | handleSubmit(row) { |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | // this.entityCopy = this.HaveJson(this.componentData.entity); |
| | | // this.entityCopy0 = this.HaveJson(this.componentData0.entity); |
| | | this.getList() |
| | | this.getList0() |
| | | this.getFileList() |
| | | this.selectEnumByCategory() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let add = false |
| | | let del = false |
| | | let up = false; |
| | | let out = false; |
| | | let submit = false |
| | | let ratify = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addManageRecordIntervals') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageRecordIntervals') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportInManageRecordIntervals') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'exportOutManageRecordIntervals') { |
| | | out = true |
| | | } |
| | | if (power[i].menuMethod == 'submitManageRecordIntervalsTotal') { |
| | | submit = true |
| | | } |
| | | if (power[i].menuMethod == 'ratifyManageRecordIntervalsTotal') { |
| | | ratify = true |
| | | } |
| | | } |
| | | if (!ratify) { |
| | | this.componentData0.do.splice(3, 1) |
| | | } |
| | | if (!submit) { |
| | | this.componentData0.do.splice(2, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | this.outPower = out |
| | | this.upPower = up |
| | | }, |
| | | // æ°å¢ |
| | | openAdd() { |
| | | // this.$refs.ValueTable.openAddDia(this.$api.manageRecordIssueRecycle.addManageRecordIssueRecycle); |
| | | this.addInfo = {} |
| | | this.title = 'æ°å¢' |
| | | this.addDialogVisible = true; |
| | |
| | | this.outLoading = true |
| | | exportOutManageRecordIntervals(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | this.$download.downloadFileFromUrl(res.message, "æä»¶å®æå®¡æ¥è®°å½"); |
| | | this.$download.saveAs(res.message, "æä»¶å®æå®¡æ¥è®°å½"); |
| | | }) |
| | | }, |
| | | getList() { |
| | |
| | | } |
| | | }, |
| | | handleDown0(row) { |
| | | this.$download.downloadFileFromUrl(row.url, "æææä»¶å®ææ£æ¥è®°å½"); |
| | | this.$download.saveAs(row.url, "æææä»¶å®ææ£æ¥è®°å½"); |
| | | }, |
| | | // æäº¤ |
| | | handleSubmit(row) { |
| | |
| | | this.selectTreeList() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let add = false |
| | | let del = false |
| | | let out = false; |
| | | let ratify = false |
| | | let audit1 = false |
| | | let audit2 = false |
| | | let audit3 = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addManageRecordAudit') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageRecordAudit') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'ratifyManageRecordAudit') { |
| | | ratify = true |
| | | } |
| | | if (power[i].menuMethod == 'exportOutManageRecordAudit') { |
| | | out = true |
| | | } |
| | | if (power[i].menuMethod == 'manageRecordAudit1') { |
| | | audit1 = true |
| | | } |
| | | if (power[i].menuMethod == 'manageRecordAudit2') { |
| | | audit2 = true |
| | | } |
| | | if (power[i].menuMethod == 'manageRecordAudit3') { |
| | | audit3 = true |
| | | } |
| | | } |
| | | if (!audit3) { |
| | | this.componentData.do.splice(8, 1) |
| | | } |
| | | if (!audit2) { |
| | | this.componentData.do.splice(7, 1) |
| | | } |
| | | if (!audit1) { |
| | | this.componentData.do.splice(6, 1) |
| | | } |
| | | if (!ratify) { |
| | | this.componentData.do.splice(5, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData.do.splice(4, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(3, 1) |
| | | } |
| | | this.addPower = add |
| | | this.outPower = out |
| | | }, |
| | | openAdd() { |
| | | this.addInfo = { |
| | | method: '修订', |
| | |
| | | this.outLoading = true |
| | | exportOutManageRecordAudit(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | this.$download.downloadFileFromUrl(res.data, "æä»¶ä¿®è®¢è¡¨"); |
| | | this.$download.saveAs(res.data, "æä»¶ä¿®è®¢è¡¨"); |
| | | }) |
| | | }, |
| | | getList() { |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageRecordAudit({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("å 餿å"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | this.tableLoading = true |
| | | getInternalCorrectFileList({ correctId: this.info.correctId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data |
| | | }).catch(err => { |
| | | this.tableLoading = false |
| | |
| | | }, |
| | | // ä¸è½½ |
| | | upload(row) { |
| | | this.$download.downloadFileFromUrl(row.fileUrl, row.fileName) |
| | | this.$download.saveAs(row.fileUrl, row.fileName) |
| | | }, |
| | | // å é¤ |
| | | delete(row) { |
| | | this.tableLoading = true |
| | | delInternalCorrectFile({ correctFileId: row.correctFileId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchTableList() |
| | | }).catch(err => { |
| | |
| | | <span class="search-group"> |
| | | <span style="width: 160px">å审é¨é¨ï¼</span> |
| | | <el-input v-model="searchForm.department" clearable size="small"></el-input> |
| | | <el-button size="medium" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </span> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.tableLoading = true |
| | | delInternalCheck({ checkId: row.checkId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | if (this.operationType === 'add') { |
| | | addInternalCheck(internalCheckDto).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | updateInternalCheck(internalCheckDto).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | <span class="search-group"> |
| | | <span style="width: 160px">æ¶é´ï¼</span> |
| | | <el-input v-model="searchForm.meetingDate" clearable size="small"></el-input> |
| | | <el-button size="medium" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </span> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.tableLoading = true |
| | | delInternalMeeting({ meetingId: row.meetingId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | if (this.operationType === 'add') { |
| | | addInternalMeeting(internalMeeting).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeYearDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | updateInternalMeeting(internalMeeting).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeYearDia() |
| | | }).catch(err => { |
| | |
| | | <span class="search-group"> |
| | | <span style="width: 160px">å®¡æ ¸ç®çï¼</span> |
| | | <el-input v-model="searchForm.purposes" clearable size="small"></el-input> |
| | | <el-button size="medium" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </span> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.tableLoading = true |
| | | delInternalReport({ reportId: row.reportId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | this.diaLoading = true |
| | | getInternalReportOne({ reportId: row.reportId }).then(res => { |
| | | this.diaLoading = false |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | }).catch(err => { |
| | | console.log(err) |
| | |
| | | if (this.operationType === 'add') { |
| | | addInternalReport(internalReport).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | updateInternalReport(internalReport).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | <span class="search-group"> |
| | | <span style="width: 200px">ä¸åæ ¼æè¿°ï¼</span> |
| | | <el-input v-model="searchForm.raiseResult" clearable size="small"></el-input> |
| | | <el-button size="medium" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </span> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.tableLoading = true |
| | | pageInternalCorrect({ ...entity, ...page }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | searchInfo(row) { |
| | | this.form.qualityMonitorDetailsId = row.qualityMonitorDetailsId |
| | | getInternalCorrect({ correctId: row.correctId }).then(res => { |
| | | if (res.code === 201) return |
| | | if (res.data.superviseDetailsCorrectId === null) { |
| | | this.showStep = 0 |
| | | this.currentStep = 0 |
| | |
| | | this.form.flowType = this.currentStep |
| | | addInternalCorrect(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æäº¤æå') |
| | | this.closeRectifyDia() |
| | | }).catch(err => { |
| | |
| | | this.diaLoading = true |
| | | getInternalImplementOne({ implementId: row.implementId }).then(res => { |
| | | this.diaLoading = false |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | this.implementDetailList = this.form.implementDetailList |
| | | }).catch(err => { |
| | |
| | | if (this.operationType === 'add') { |
| | | addInternalImplement(internalImplementDto).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | updateInternalImplement(internalImplementDto).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | <span class="search-group"> |
| | | <span style="width: 160px">å®¡æ ¸ç®çï¼</span> |
| | | <el-input v-model="searchForm.purposes" clearable size="small"></el-input> |
| | | <el-button size="medium" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </span> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.tableLoading = true |
| | | pageInternalImplement({ ...entity, ...page }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | delInternalImplement({ implementId: row.implementId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | <span class="search-group"> |
| | | <span style="width: 160px">å
审ç®çï¼</span> |
| | | <el-input v-model="searchForm.purpose" clearable size="small"></el-input> |
| | | <el-button size="medium" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </span> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.tableLoading = true |
| | | pageInternalPlan({ ...entity, ...page }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | delInternalPlan({ planId: row.planId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | this.diaLoading = true |
| | | getInternalPlanOne({ planId: row.planId }).then(res => { |
| | | this.diaLoading = false |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | this.planDetailList = this.form.planDetailList |
| | | }).catch(err => { |
| | |
| | | if (this.operationType === 'add') { |
| | | addInternalPlan(internalPlan).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeYearDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | updateInternalPlan(internalPlan).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeYearDia() |
| | | }).catch(err => { |
| | |
| | | this.form.participants = row.participants ? row.participants.split(',').map(m => Number(m)) : [] |
| | | } |
| | | }, |
| | | // æ¥è¯¢è¯¦æ
|
| | | // searchInfo (row) { |
| | | // this.diaLoading = true |
| | | // this.$axios(this.$api.internalReport.getInternalReportOne + '?reportId=' + row.reportId).then(res => { |
| | | // this.diaLoading = false |
| | | // if (res.code === 201) return |
| | | // this.form = res.data |
| | | // }).catch(err => { |
| | | // console.log(err) |
| | | // this.diaLoading = false |
| | | // }) |
| | | // }, |
| | | // æäº¤å¼¹æ¡æ°æ® |
| | | handleEdit() { |
| | | this.$refs['form'].validate((valid) => { |
| | |
| | | if (this.operationType === 'add') { |
| | | addReviewProgram(internalReport).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | modifyReviewProgram(internalReport).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | <span class="search-group"> |
| | | <span style="width: 160px">è¯å®¡å°ç¹ï¼</span> |
| | | <el-input v-model="searchForm.judgingLocation" clearable size="small"></el-input> |
| | | <el-button size="medium" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </span> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | size: this.page.size |
| | | }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | deleteReviewProgram({ id: row.id }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | }, |
| | | handleDown0(url, name) { |
| | | if (!url) return this.$message.warning('æä»¶æªä¸ä¼ ') |
| | | this.$download.downloadFileFromUrl(url, name); |
| | | this.$download.saveAs(url, name); |
| | | } |
| | | } |
| | | }; |
| | |
| | | <span class="search-group"> |
| | | <span style="width: 160px">ä¼è®®å°ç¹ï¼</span> |
| | | <el-input v-model="searchForm.place" clearable size="small"></el-input> |
| | | <el-button size="medium" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </span> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.tableLoading = true |
| | | getPageMeeting({ place: this.searchForm.place, pages: this.page.current, size: this.page.size }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | deleteMeeting({ id: row.id }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | }, |
| | | handleDown(row) { |
| | | exportMeeting({ id: row.id }).then(res => { |
| | | if (res.code == 201) { |
| | | this.$message.error(res.message) |
| | | return |
| | | } |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, 'ä¼è®®è®°å½.docx'); |
| | | }) |
| | |
| | | if (this.operationType === 'add') { |
| | | addMeeting(internalMeeting).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeYearDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | modifyMeeting(internalMeeting).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeYearDia() |
| | | }).catch(err => { |
| | |
| | | <span class="search-group"> |
| | | <span style="width: 160px">å°ç¹ï¼</span> |
| | | <el-input v-model="searchForm.place" clearable size="small"></el-input> |
| | | <el-button size="medium" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="medium" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button size="small" style="margin-left: 10px" @click="resetSearchForm">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="searchList">æ¥ è¯¢</el-button> |
| | | </span> |
| | | <span class="search-group"> |
| | | <el-button size="medium" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | <el-button size="small" type="primary" @click="openFormDia('add')">æ° å¢</el-button> |
| | | </span> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | this.tableLoading = true |
| | | getPageReviewReport({ place: this.searchForm.place, pages: this.page.current, size: this.page.size }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | deleteReviewReport({ id: row.id }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('å 餿å') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | }, |
| | | handleDown(row) { |
| | | exportReviewReport({ id: row.id }).then(res => { |
| | | if (res.code == 201) { |
| | | this.$message.error(res.message) |
| | | return |
| | | } |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, 'è¯å®¡æ¥å.docx'); |
| | | }) |
| | |
| | | let obj = row |
| | | obj[type] = this.nickName; |
| | | modifyReviewReport(obj).then(res => { |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | if (this.operationType === 'add') { |
| | | addReviewReport(internalMeeting).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeYearDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | modifyReviewReport(internalMeeting).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeYearDia() |
| | | }).catch(err => { |
| | |
| | | initData() { |
| | | this.tableData = [] |
| | | getPageResults(this.page).then(res => { |
| | | if (res.code === 201) return; |
| | | this.tableData = res.data.records; |
| | | this.page.total = res.data.total; |
| | | }); |
| | |
| | | // å®¡æ¹æ¥å£ |
| | | approvalApi(userId, status) { |
| | | dangerousRiskApproval({ approval: userId, status: status }).then(res => { |
| | | if (res.code === 201) return; |
| | | this.initData() |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | // æ¹åæ¥å£ |
| | | approveApi(userId, status) { |
| | | hazardIdentificationAndRiskApproval({ approve: userId, status: status }).then(res => { |
| | | if (res.code === 201) return; |
| | | this.initData() |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | }, |
| | | // æä»¶ä¸ä¼ æå |
| | | onSuccess(response) { |
| | | if (response.code == 201) { |
| | | if (response.code != 200) { |
| | | this.$message({ |
| | | type: 'error', |
| | | message: response.message, |
| | |
| | | type: 'warning' |
| | | }).then(() => { |
| | | removeRiskFactors({ id: row.id }).then(res => { |
| | | if (res.code === 201) return; |
| | | this.initData() |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | addApi() { |
| | | this.loading = true |
| | | addNewRiskFactors(this.form).then(res => { |
| | | if (res.code === 201) return; |
| | | this.dialogVisible = false |
| | | this.loading = false |
| | | this.initData() |
| | |
| | | type: 'warning' |
| | | }).then(() => { |
| | | deleteSignificantRiskFactorAnalysis({ id: row.id }).then(res => { |
| | | if (res.code === 201) return; |
| | | this.initData() |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | addApi() { |
| | | this.loading = true |
| | | analysisOfMajorRiskFactorsAdded(this.form).then(res => { |
| | | if (res.code === 201) return; |
| | | this.dialogVisible = false |
| | | this.loading = false |
| | | this.initData() |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="capacity-scope"> |
| | | <div class="search"> |
| | | <div> |
| | | <el-form :model="entity" ref="entity" size="small" :inline="true"> |
| | | <el-form-item label="æ ·ååç§°" prop="sample"> |
| | | <el-input size="small" placeholder="请è¾å
¥" clearable v-model="entity.sample" |
| | | @keyup.enter.native="refreshTable()"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å§æåä½" prop="company"> |
| | | <el-select @focus="getCompanyOptions" @change="refreshTable()" clearable |
| | | size="small" v-model="entity.company" style="width: 100%"> |
| | | <el-option v-for="item in companyOptions" :key="item.value" |
| | | :label="item.label" :value="item.label"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="refreshTable">æ¥ è¯¢</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="refresh">é ç½®</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <lims-table :tableData="tableData" :column="column" |
| | | :height="'calc(100vh - 250px)'" @pagination="pagination" |
| | | :page="page" :tableLoading="tableLoading"></lims-table> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import {selectRatesPage} from "@/api/business/insOrderRates"; |
| | | import {selectCustomPageList} from "@/api/system/customer"; |
| | | |
| | | export default { |
| | | components: {limsTable}, |
| | | data() { |
| | | return { |
| | | entity: { |
| | | sample: null, |
| | | company: null, |
| | | }, |
| | | tableData: [], |
| | | tableLoading: false, |
| | | column: [ |
| | | { label: 'ä¸åæ¶é´', prop: 'createTime', width: 150 }, |
| | | { label: 'å§æç¼å·', prop: 'entrustCode', width: 160 }, |
| | | { label: 'æ ·ååç§°', prop: 'sample', width: 160 }, |
| | | { label: 'æ ·åæ°é', prop: 'sampleNum' }, |
| | | { label: 'å§æåä½', prop: 'company' }, |
| | | { label: 'å§æäºº', prop: 'prepareUser' }, |
| | | { label: 'ç产åä½', prop: 'production' }, |
| | | { label: 'å·¥ç¨åç§°', prop: 'engineering' }, |
| | | { label: 'å·¥æ¶', prop: 'cost' } |
| | | ], |
| | | page: { |
| | | total: 0, |
| | | size: 10, |
| | | current: 1 |
| | | }, |
| | | companyOptions: [] |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.refreshTable() |
| | | this.getCompanyOptions() |
| | | }, |
| | | methods :{ |
| | | refreshTable() { |
| | | this.tableLoading = true |
| | | selectRatesPage({ ...this.page, ...this.entity }).then(res => { |
| | | this.tableLoading = false |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | | this.tableLoading = false |
| | | }) |
| | | }, |
| | | // éç½® |
| | | refresh() { |
| | | this.resetForm('entity') |
| | | this.refreshTable() |
| | | }, |
| | | // æ¥è¯¢å§æåä½ä¸ææ¡æ°æ® |
| | | getCompanyOptions () { |
| | | selectCustomPageList({ |
| | | current: -1, |
| | | size: -1 |
| | | }).then(res => { |
| | | const list = res.data.records |
| | | this.companyOptions = [] |
| | | list.map((item) => { |
| | | const obj = Object.assign({ |
| | | value: item.id, |
| | | label: item.company, |
| | | }) |
| | | this.companyOptions.push(obj) |
| | | }) |
| | | }).catch(err => { }); |
| | | }, |
| | | // å页忢 |
| | | pagination(page) { |
| | | this.page.size = page.limit |
| | | this.refreshTable() |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .search { |
| | | height: 46px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | // import ValueTable from '../../tool/value-table.vue' |
| | | import file from '@/utils/file' |
| | | import excelFunction from '@/utils/excelFountion' |
| | | import UnPassDialog from "@/views/business/unpass/components/unPassDialog.vue"; |
| | | import AddUnPass from "@/views/business/unpass/components/addUnPass.vue"; |
| | |
| | | downFile({ |
| | | id: row.id, |
| | | }).then(res => { |
| | | this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName); |
| | | this.$download.saveAs(res.data.fileUrl, row.fileName); |
| | | }).catch(error => { |
| | | |
| | | }) |
| | |
| | | this.getInsStateDicts(); |
| | | this.getComparisonList(); |
| | | this.getAuthorizedPerson(); |
| | | // this.getPower(); |
| | | this.startWorker(); |
| | | // this.getList0() // ä»»å¡åæ¢ |
| | | this.scrollInit(); |
| | |
| | | this.getInsStateDicts(); |
| | | this.getComparisonList(); |
| | | this.getAuthorizedPerson(); |
| | | // this.getPower(); |
| | | this.startWorker(); |
| | | // this.getList0() // ä»»å¡åæ¢ |
| | | this.scrollInit(); |
| | |
| | | a.download = "table.png"; |
| | | a.click(); |
| | | }); |
| | | }, |
| | | // æéè·å |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem("power")); |
| | | let fileDel = false; |
| | | let fileAdd = false; |
| | | let collected = false; |
| | | let temDataAcquisition = false; |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == "uploadFile") { |
| | | fileAdd = true; |
| | | } |
| | | if (power[i].menuMethod == "delfile") { |
| | | fileDel = true; |
| | | } |
| | | if (power[i].menuMethod == "isItAllowedToModifyTheCollectedValues") { |
| | | collected = true; |
| | | } |
| | | if (power[i].menuMethod == "temDataAcquisition") { |
| | | temDataAcquisition = true; |
| | | } |
| | | } |
| | | if (!fileDel) { |
| | | // this.componentData0.do.splice(1, 1); |
| | | } |
| | | this.fileAdd = fileAdd; |
| | | this.collected = collected; |
| | | this.temDataAcquisition = temDataAcquisition; |
| | | }, |
| | | uploadSample() { |
| | | doInsOrder({ |
| | |
| | | }, |
| | | handleDown(row) { |
| | | downFile({ id: row.id }).then((res) => { |
| | | this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName) |
| | | this.$download.saveAs(res.data.fileUrl, row.fileName) |
| | | }) |
| | | .catch((error) => { }); |
| | | }, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | // import ValueTable from '../../tool/value-table.vue' |
| | | import Vue from 'vue' |
| | | import { |
| | | addRawCopperOrder, |
| | |
| | | // å¾
ä¸åæ¥è¯¢ |
| | | getPurchaseOrderList() { |
| | | this.tableLoading = true |
| | | const params = { ...this.entity, isInspect: 1, state: 0 } |
| | | const params = { ...this.entity, isInspect: 1, state: 0, ...this.page } |
| | | getWarehouseSubmit(params).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 200) { |
| | |
| | | // æ£éªä¸æ¥è¯¢ |
| | | getIfsByStateOneList() { |
| | | this.tableLoading1 = true |
| | | const params = { ...this.entity, orderState: 1, state: 1 } |
| | | const params = { ...this.entity, orderState: 1, state: 1, ...this.page1 } |
| | | getIfsByStateOne(params).then(res => { |
| | | this.tableLoading1 = false |
| | | if (res.code === 200) { |
| | |
| | | // å·²æ£éªæ¥è¯¢ |
| | | getIfsByOverList() { |
| | | this.tableLoading2 = true |
| | | const params = { ...this.entity, orderState: 4, state: 2 } |
| | | if(null != this.entity.date){ |
| | | this.entity.beginDeclareDate = this.entity.date[0] |
| | | this.entity.endDeclareDate = this.entity.date[1] |
| | | } else { |
| | | this.entity.beginDeclareDate = '' |
| | | this.entity.endDeclareDate = '' |
| | | } |
| | | const params = { ...this.entity, orderState: 4, state: 2, ...this.page2 } |
| | | getIfsByOver(params).then(res => { |
| | | this.tableLoading2 = false |
| | | if (res.code === 200) { |
| | |
| | | // æ¥è¯¢å£åº¦æ£éª |
| | | getIfsByQuarterList() { |
| | | this.tableLoading4 = true |
| | | const params = { ...this.entity } |
| | | if(null != this.entity.date){ |
| | | this.entity.beginDeclareDate = this.entity.date[0] |
| | | this.entity.endDeclareDate = this.entity.date[1] |
| | | } else { |
| | | this.entity.beginDeclareDate = '' |
| | | this.entity.endDeclareDate = '' |
| | | } |
| | | const params = { ...this.entity, ...this.page4 } |
| | | getIfsByOver(params).then(res => { |
| | | this.tableLoading4 = false |
| | | if (res.code === 200) { |
| | |
| | | // å
¨é¨ |
| | | getIfsByAllList() { |
| | | this.tableLoading3 = true |
| | | const params = { ...this.entity, isInspect: 1 } |
| | | if(null != this.entity.date){ |
| | | this.entity.beginDeclareDate = this.entity.date[0] |
| | | this.entity.endDeclareDate = this.entity.date[1] |
| | | } else { |
| | | this.entity.beginDeclareDate = '' |
| | | this.entity.endDeclareDate = '' |
| | | } |
| | | const params = { ...this.entity, isInspect: 1, ...this.page3 } |
| | | getIfsByAll(params).then(res => { |
| | | this.tableLoading3 = false |
| | | if (res.code === 200) { |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ValueTable from "@/components/Table/value-table.vue"; |
| | | import UnPassRetestResult from "./unPassRetestResult.vue"; |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import {getRetestResult, selectSampleAndProductByOrderId} from "@/api/business/rawMaterialOrder"; |
| | |
| | | export default { |
| | | name: "dataLookVisible", |
| | | // import å¼å
¥çç»ä»¶éè¦æ³¨å
¥å°å¯¹è±¡ä¸æè½ä½¿ç¨ |
| | | components: {limsTable, UnPassRetestResult, ValueTable}, |
| | | components: {limsTable, UnPassRetestResult}, |
| | | props: { |
| | | dataDialogVisible: { |
| | | type: Boolean, |
| | |
| | | this.entity.id = this.dataLookInfo.quarterOrderId |
| | | } |
| | | this.tableLoading = true |
| | | const params = {...this.entity} |
| | | const params = {...this.entity, ...this.page} |
| | | selectSampleAndProductByOrderId(params).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 200) { |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ValueTable from "@/components/Table/value-table.vue"; |
| | | |
| | | export default { |
| | | name: "downFileDialog", |
| | | // import å¼å
¥çç»ä»¶éè¦æ³¨å
¥å°å¯¹è±¡ä¸æè½ä½¿ç¨ |
| | | components: {ValueTable}, |
| | | components: {}, |
| | | props: { |
| | | downFileDialogVisible: { |
| | | type: Boolean, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ValueTable from "@/components/Table/value-table.vue"; |
| | | import file from "@/utils/file"; |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import { delfile, downFile, getFileList } from "@/api/business/rawMaterialOrder"; |
| | | import { delFile, downFile, getFileList } from "@/api/business/rawMaterialOrder"; |
| | | export default { |
| | | name: "filesLookVisible", |
| | | // import å¼å
¥çç»ä»¶éè¦æ³¨å
¥å°å¯¹è±¡ä¸æè½ä½¿ç¨ |
| | | components: { limsTable, ValueTable }, |
| | | components: { limsTable }, |
| | | props: { |
| | | filesDialogVisible: { |
| | | type: Boolean, |
| | |
| | | // ä¸è½½ |
| | | handleDown(row) { |
| | | downFile({ id: row.id, }).then(res => { |
| | | this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName); |
| | | this.$download.saveAs(res.data.fileUrl, row.fileName); |
| | | }).catch(error => { |
| | | |
| | | }) |
| | |
| | | if (response.code == 200) { |
| | | this.$message.success('ä¸ä¼ æå'); |
| | | this.getFileList() |
| | | } else { |
| | | this.$message.error(response.msg); |
| | | } |
| | | }, |
| | | beforeUpload(file) { |
| | |
| | | cancelButtonText: "åæ¶", |
| | | type: "warning" |
| | | }).then(() => { |
| | | delfile({ id: row.id }).then(res => { |
| | | if (res.code === 500) { |
| | | return |
| | | } |
| | | delFile({ id: row.id }).then(res => { |
| | | this.$message.success('å 餿å') |
| | | this.getList() |
| | | }).catch(e => { |
| | | this.$message.error('å é¤å¤±è´¥') |
| | | this.getFileList() |
| | | }) |
| | | }).catch(() => { }) |
| | | } |
| | |
| | | userId: this.distributeData.userId, |
| | | sonLaboratory:this.distributeData.sonLaboratory |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | this.upLoad = false |
| | | return |
| | | } |
| | | this.$message.success('æäº¤æå') |
| | | this.upLoad = false |
| | | this.issuedDialogVisible = false |
| | |
| | | delInsOrderTemplate({ |
| | | id: row.id |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$message.success('å 餿å') |
| | | this.selectInsOrderTemplate() |
| | | }).catch(e => { |
| | |
| | | <el-input v-model="entity.sampleModel" clearable placeholder="请è¾å
¥" size="small" |
| | | @keyup.enter.native="refreshTable()"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button :icon="!more ? 'el-icon-arrow-down' : 'el-icon-arrow-up'" style="color: #3A7BFA;" type="text" |
| | | @click="more = !more">{{ !more ? 'æ´å¤' : 'æ¶èµ·' }}</el-button> |
| | | <el-button size="small" @click="refresh()">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="refreshTable()">æ¥ è¯¢</el-button> |
| | | </el-form-item> |
| | | <el-form-item label="æ ·åç¼å·" prop="sampleCode" v-if="more"> |
| | | <el-input v-model="entity.sampleCode" clearable placeholder="请è¾å
¥" size="small" |
| | | @keyup.enter.native="refreshTable"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="æ ·åç¼å·" prop="sampleCode" v-if="more">--> |
| | | <!-- <el-input v-model="entity.sampleCode" clearable placeholder="请è¾å
¥" size="small"--> |
| | | <!-- @keyup.enter.native="refreshTable">--> |
| | | <!-- </el-input>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="ä¸åæ¶é´" prop="createTime" v-if="more"> |
| | | <el-date-picker v-model="entity.createTime" clearable format="yyyy-MM-dd" placeholder="éæ©æ¥æ" size="small" |
| | | style="width:100%" type="date" value-format="yyyy-MM-dd HH:mm:ss"> |
| | |
| | | <el-input v-model="entity.company" clearable placeholder="请è¾å
¥" size="small" |
| | | @keyup.enter.native="refreshTable"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button :icon="!more ? 'el-icon-arrow-down' : 'el-icon-arrow-up'" style="color: #3A7BFA;" type="text" |
| | | @click="more = !more">{{ !more ? 'æ´å¤' : 'æ¶èµ·' }}</el-button> |
| | | <el-button size="small" @click="refresh()">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="refreshTable()">æ¥ è¯¢</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog :visible.sync="dataDialogVisible" title="æ°æ®æ¥ç" width="80%"> |
| | | <el-dialog :visible.sync="dataDialogVisible" title="æ°æ®æ¥ç" width="80%" @close="closeDia"> |
| | | <div v-if="dataDialogVisible"> |
| | | <lims-table :tableData="tableDataLook" :column="tableDataLookColumn" @pagination="tableDataLookPagination" |
| | | height="500px" key="tableDataLook" :page="tableDataLookPage" |
| | |
| | | quashDialogVisible: false, |
| | | issuedDialogVisible: false, |
| | | dataDialogVisible: false, // æ°æ®æ¥çå¼¹æ¡ |
| | | currentRow: {}, // æ°æ®æ¥çå¼¹æ¡ |
| | | tableDataLookTableLoading: false, // æ°æ®æ¥çå¼¹æ¡ |
| | | tableDataLook: [], |
| | | tableDataLookPage: { |
| | |
| | | } |
| | | const params = { ...this.entity, state: this.tabList[this.tabIndex].value } |
| | | this.tableLoading = true |
| | | selectInsOrderParameter(params).then(res => { |
| | | selectInsOrderParameter({...this.page,...params}).then(res => { |
| | | this.upIndex++ |
| | | this.tableLoading = false |
| | | if (res.code === 200) { |
| | |
| | | // æ°æ®æ¥ç |
| | | handleDataLook(row) { |
| | | this.dataDialogVisible = true; |
| | | this.getDataTableList(row) |
| | | this.currentRow = row; |
| | | this.getDataTableList(this.currentRow) |
| | | }, |
| | | // æ¥è¯¢æ°æ®æ¥çåè¡¨æ°æ® |
| | | getDataTableList(row) { |
| | | this.tableDataLookTableLoading = true |
| | | selectSampleAndProductByOrderId({ id: row.id }).then(res => { |
| | | selectSampleAndProductByOrderId({ id: row.id, ...this.tableDataLookPage }).then(res => { |
| | | this.tableDataLookTableLoading = false |
| | | if (res.code === 200) { |
| | | this.tableDataLook = res.data.records |
| | |
| | | }, |
| | | tableDataLookPagination(page) { |
| | | this.tableDataLookPage.size = page.limit |
| | | this.getDataTableList() |
| | | this.getDataTableList(this.currentRow) |
| | | }, |
| | | closeDia () { |
| | | this.tableDataLookPage = { |
| | | total: 0, |
| | | size: 10, |
| | | current: 1 |
| | | } |
| | | this.dataDialogVisible = false |
| | | }, |
| | | // éä»¶æ¥ç |
| | | handleFileLook(row) { |
| | |
| | | downFile({ |
| | | id: row.id, |
| | | }).then(res => { |
| | | this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName); |
| | | this.$download.saveAs(res.data.fileUrl, row.fileName); |
| | | }).catch(error => { |
| | | |
| | | }) |
| | |
| | | download(row) { |
| | | let url = row.urlS ? row.urlS : row.url; |
| | | if (url) { |
| | | this.$download.downloadFileFromUrl(url, this.downLoadInfo.fileName); |
| | | this.$download.saveAs(url, row.entrustCode); |
| | | } |
| | | }, |
| | | // æ¤é |
| | |
| | | </el-dialog> |
| | | <!-- ç¡®è®¤æ¥æ£ --> |
| | | <el-dialog :close-on-click-modal="false" :title="declareType === 'add' ? 'æ°å¢æ¥æ£ä¿¡æ¯' : 'åæææ¥æ£'" |
| | | :visible.sync="declareDialogVisible" width="800px" @close="resetForm"> |
| | | :visible.sync="declareDialogVisible" width="800px" @close="resetFormData"> |
| | | <el-form ref="declareObj" :inline="true" :model="declareObj" :rules="declareObjRules" label-width="130px" |
| | | label-position="right"> |
| | | <el-form-item class="declareObj-form-item" label="订åå·:" prop="orderNo"> |
| | |
| | | partNo: null, |
| | | partDesc: null, |
| | | supplierName: null, |
| | | date: '', |
| | | date: null, |
| | | entrustCode: '', |
| | | inspectStatus: '', |
| | | }, |
| | |
| | | // 已宿鍿¥è¯¢ |
| | | getIfsByFinishList() { |
| | | this.tableLoading1 = true |
| | | if(null != this.componentData.date){ |
| | | this.componentData.beginDeclareDate = this.componentData.date[0] |
| | | this.componentData.endDeclareDate = this.componentData.date[1] |
| | | } else { |
| | | this.componentData.beginDeclareDate = '' |
| | | this.componentData.endDeclareDate = '' |
| | | } |
| | | getIfsByFinish({ ...this.componentData, ...this.page1 }).then(res => { |
| | | this.tableLoading1 = false |
| | | if (res.code === 200) { |
| | |
| | | // å
¨é¨æ¥è¯¢ |
| | | getIfsByAllList() { |
| | | this.tableLoading1 = true |
| | | if(null != this.componentData.date){ |
| | | this.componentData.beginDeclareDate = this.componentData.date[0] |
| | | this.componentData.endDeclareDate = this.componentData.date[1] |
| | | } else { |
| | | this.componentData.beginDeclareDate = '' |
| | | this.componentData.endDeclareDate = '' |
| | | } |
| | | getIfsByAll({ ...this.componentData, ...this.page1 }).then(res => { |
| | | this.tableLoading1 = false |
| | | if (res.code === 200) { |
| | |
| | | }); |
| | | } |
| | | }, |
| | | resetForm() { |
| | | resetFormData() { |
| | | this.$refs['declareObj'].resetFields(); |
| | | this.declareDialogVisible = false |
| | | }, |
| | |
| | | downFile({ |
| | | id: row.id, |
| | | }).then(res => { |
| | | this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName); |
| | | this.$download.saveAs(res.data.fileUrl, row.fileName); |
| | | }).catch(error => { |
| | | |
| | | }) |
| | |
| | | downFile({ |
| | | id: row.id, |
| | | }).then(res => { |
| | | this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName); |
| | | this.$download.saveAs(res.data.fileUrl, row.fileName); |
| | | }).catch(error => { |
| | | |
| | | }) |
| | |
| | | import OAProcess from "./components/OAProcess.vue"; |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import {deleteUnqualifiedHandler, page, pushOA} from "@/api/business/unqualifiedHandler"; |
| | | import ValueTable from "@/components/Table/value-table.vue"; |
| | | |
| | | export default { |
| | | components: { |
| | | limsTable, |
| | | OAProcess, |
| | | UnPassDialog, |
| | | ValueTable |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | this.monthList.push(i); |
| | | } |
| | | this.monthList.reverse(); |
| | | // this.getPower(); |
| | | }, |
| | | methods: { |
| | | refresh() { |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ValueTable from "@/components/Table/value-table.vue"; |
| | | import { getYearAndMonthAndDays } from "@/utils/date"; |
| | | import { |
| | | selectAuxiliaryWorkingHoursDay, |
| | |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | export default { |
| | | components: { |
| | | ValueTable, |
| | | limsTable, |
| | | }, |
| | | dicts: ["sys_class_type"], |
| | |
| | | // è·åæ¬ææ£éªç±»åæ°é |
| | | getOrderType() { |
| | | getOrderTypeCookie().then((res) => { |
| | | if (res.code === 201) return |
| | | this.materialPieSeries1[0].data[0].value = res.data.customer // å§æ |
| | | this.materialPieSeries1[0].data[1].value = res.data.enter // è¿å |
| | | this.materialPieSeries1[0].data[2].value = res.data.quarterly // å£åº¦ |
| | |
| | | this.$message.warning('ææ éä»¶') |
| | | return; |
| | | } |
| | | this.$download.downloadFileFromUrl(row.fileUrl, row.fileUrl); |
| | | this.$download.saveAs(row.fileUrl, row.fileUrl); |
| | | }, |
| | | openAdd() { |
| | | this.qualificationsConnectVisible = true; |