¶Ô±ÈÐÂÎļþ |
| | |
| | | // å®éªå®¤çæ£æµè½åæ¡£æ¡ç¸å
³æ¥å£ |
| | | import request from "@/utils/request"; |
| | | |
| | | // æ 忥æ°å表 |
| | | export function pageMethodSearchNew(query) { |
| | | return request({ |
| | | url: "/processMethodSearchNew/pageMethodSearchNew", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | // æ¥è¯¢åæ¡£ |
| | | export function pageSearchNewArchived(query) { |
| | | return request({ |
| | | url: "/processMethodSearchNew/pageSearchNewArchived", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | // æ°å¢æ 忥æ°å®¡æ¹æµç¨ |
| | | export function addSearchNewArchived(data) { |
| | | return request({ |
| | | url: "/processMethodSearchNew/addSearchNewArchived", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | |
| | | // æ°å¢æ åæ¥æ° |
| | | export function addMethodSearchNew(data) { |
| | | return request({ |
| | | url: "/processMethodSearchNew/addMethodSearchNew", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | |
| | | // ä¿®æ¹æ åæ¥æ° |
| | | export function updateMethodSearchNew(data) { |
| | | return request({ |
| | | url: "/processMethodSearchNew/updateMethodSearchNew", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | |
| | | // åæ¡£æ¹å |
| | | export function ratifySearchNewArchivedr(data) { |
| | | return request({ |
| | | url: "/processMethodSearchNew/ratifySearchNewArchivedr", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | |
| | | // æ¥è¯¢åæ¡£å¤ä»½å表 |
| | | export function pageSearchNewBackups(query) { |
| | | return request({ |
| | | url: "/processMethodSearchNew/pageSearchNewBackups", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | // å¯¼åºæ åæ¥æ° |
| | | export function exportMethodSearchNew(query) { |
| | | return request({ |
| | | url: "/processMethodSearchNew/exportMethodSearchNew", |
| | | method: "get", |
| | | responseType: "blob", |
| | | params: query, |
| | | }); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <el-dialog :visible.sync="formDia" title="ç¼è¾" width="80%" @close="closeDia"> |
| | | <el-form ref="form" :model="form" :rules="formRules" label-width="auto"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="æ ååç§°ï¼" prop="methodName"> |
| | | <el-input v-model="form.methodName" size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="æ åå·ï¼" prop="standardNo"> |
| | | <el-input v-model="form.standardNo" size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="æä»¶ç¼å·ï¼" prop="fileNo"> |
| | | <el-input v-model="form.fileNo" size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="æ¯å¦æ¯æ°æ åï¼" prop="isNewStandard"> |
| | | <el-radio-group v-model="form.isNewStandard"> |
| | | <el-radio :label="0">å¦</el-radio> |
| | | <el-radio :label="1">æ¯</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="æ¥æ°è®°å½æ¥æºï¼" prop="searchNewSource"> |
| | | <el-radio-group v-model="form.searchNewSource"> |
| | | <el-radio :label="0">æ åç½</el-radio> |
| | | <el-radio :label="1">å§ææ
æ¥</el-radio> |
| | | <el-radio :label="2">æ åæ°</el-radio> |
| | | <el-radio :label="3">å
¶ä»</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="夿³¨ï¼" prop="remark"> |
| | | <el-select v-model="form.remark" |
| | | clearable size="small"> |
| | | <el-option :value="0" label="ä½åº"></el-option> |
| | | <el-option :value="1" label="æ¿æ¢"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col v-if="form.isNewStandard == 1" :span="8"> |
| | | <el-form-item label="æ°æ ååç§°ï¼" prop="newMethodName"> |
| | | <el-input v-model="form.newMethodName" size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col v-if="form.isNewStandard == 1" :span="8"> |
| | | <el-form-item label="æ°æ åå·ï¼" prop="newStandardNo"> |
| | | <el-input v-model="form.newStandardNo" size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="closeDia">å æ¶</el-button> |
| | | <el-button :loading="editLoad" type="primary" @click="handleEdit">æ 交</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | updateMethodSearchNew |
| | | } from '@/api/cnas/process/method/standardNoveltyRetrieval' |
| | | |
| | | export default { |
| | | name: 'FormDialog', |
| | | // import å¼å
¥çç»ä»¶éè¦æ³¨å
¥å°å¯¹è±¡ä¸æè½ä½¿ç¨ |
| | | components: {}, |
| | | data() { |
| | | // è¿éåæ¾æ°æ® |
| | | return { |
| | | formDia: false, |
| | | form: { |
| | | methodName: '', |
| | | standardNo: '', |
| | | isNewStandard: '', |
| | | newMethodName: '', |
| | | newStandardNo: '', |
| | | searchNewSource: '', |
| | | remark: '', |
| | | fileNo: '', |
| | | }, |
| | | formRules: { |
| | | methodName: [{required: true, message: 'è¯·å¡«åæ ååç§°',trigger: 'blur'}], |
| | | standardNo: [{required: true, message: 'è¯·å¡«åæ åå·',trigger: 'blur'}], |
| | | isNewStandard: [{required: true, message: 'è¯·éæ©æ¯å¦æ¯æ°æ å',trigger: 'change'}], |
| | | newMethodName: [{required: false, message: 'è¯·å¡«åæ°æ ååç§°',trigger: 'blur'}], |
| | | newStandardNo: [{required: false, message: 'è¯·å¡«åæ°æ åå·',trigger: 'blur'}], |
| | | searchNewSource: [{required: true, message: 'è¯·éæ©æ¥æ°è®°å½æ¥æº',trigger: 'change'}], |
| | | fileNo: [{required: true, message: '请填åæä»¶å·',trigger: 'blur'}], |
| | | }, |
| | | editLoad: false, |
| | | info: {}, |
| | | }; |
| | | }, |
| | | // æ¹æ³éå |
| | | methods: { |
| | | openDia(row) { |
| | | this.formDia = true |
| | | this.form = {...row} |
| | | }, |
| | | handleEdit() { |
| | | this.$refs['form'].validate((valid) => { |
| | | if (valid) { |
| | | this.editLoad = true |
| | | const processMethodSearchNews = this.HaveJson(this.form) |
| | | delete processMethodSearchNews.createTime |
| | | updateMethodSearchNew(processMethodSearchNews).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 200){ |
| | | this.$message.success('æä½æå') |
| | | this.closeDia() |
| | | } |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | | this.editLoad = false |
| | | }) |
| | | } else { |
| | | console.log('error submit!!'); |
| | | return false; |
| | | } |
| | | }); |
| | | }, |
| | | closeDia() { |
| | | this.$refs.form.resetFields(); |
| | | this.formDia = false |
| | | this.$emit('closeEditDia'); |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .form-info { |
| | | display: inline-block; |
| | | max-height: 600px; |
| | | overflow-y: auto; |
| | | } |
| | | >>>.el-dialog { |
| | | margin: 6vh auto 50px !important; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <el-dialog :visible.sync="formDia" title="æ°å¢" width="80%" @close="closeDia"> |
| | | <el-form ref="form" :model="form" :rules="formRules" label-width="auto"> |
| | | <el-button size="small" type="primary" @click="addBtn">æ·»å 䏿¡</el-button> |
| | | <div class="form-info"> |
| | | <div v-for="(items,index) in form.taskRel" :key="index"> |
| | | <el-col :span="12"> |
| | | <el-form-item :prop="`taskRel.${index}.newMethodName`" :rules="{required: true, message: 'è¯·å¡«åæ ååç§°',trigger: 'blur',}" label="æ°æ ååç§°ï¼"> |
| | | <el-input v-model="items.newMethodName" size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item :prop="`taskRel.${index}.newStandardNo`" :rules="{required: true,message: 'è¯·å¡«åæ åå·',trigger: 'blur',}" label="æ°æ åå·ï¼"> |
| | | <el-input v-model="items.newStandardNo" size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item :prop="`taskRel.${index}.searchNewSource`" :rules="{required: true,message: 'è¯·éæ©æ¥æ°è®°å½æ¥æº',trigger: 'change',}" label="æ¥æ°è®°å½æ¥æºï¼"> |
| | | <el-radio-group v-model="items.searchNewSource"> |
| | | <el-radio :label="0">æ åç½</el-radio> |
| | | <el-radio :label="1">å§ææ
æ¥</el-radio> |
| | | <el-radio :label="2">æ åæ°</el-radio> |
| | | <el-radio :label="3">å
¶ä»</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item :prop="`taskRel.${index}.remark`" :rules="{required: false,message: 'è¯·éæ©å¤æ³¨',trigger: 'change',}" label="夿³¨ï¼"> |
| | | <el-select v-model="items.remark" :prop="`taskRel.${index}.remark`" |
| | | :rules="{required: false,message: 'è¯·éæ©å¤æ³¨',trigger: 'change',}" |
| | | clearable size="small"> |
| | | <el-option :value="0" label="ä½åº"></el-option> |
| | | <el-option :value="1" label="æ¿æ¢"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-button v-if="index !== 0" circle icon="el-icon-delete" size="small" type="danger" @click="deleteHeaderRow(index)"></el-button> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-divider></el-divider> |
| | | </el-col> |
| | | </div> |
| | | </div> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="closeDia">å æ¶</el-button> |
| | | <el-button :loading="editLoad" type="primary" @click="handleEdit">æ 交</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { addMethodSearchNew } from '@/api/cnas/process/method/standardNoveltyRetrieval' |
| | | |
| | | export default { |
| | | name: 'FormDialog', |
| | | // import å¼å
¥çç»ä»¶éè¦æ³¨å
¥å°å¯¹è±¡ä¸æè½ä½¿ç¨ |
| | | components: {}, |
| | | data() { |
| | | // è¿éåæ¾æ°æ® |
| | | return { |
| | | formDia: false, |
| | | form: { |
| | | taskRel: [ |
| | | { |
| | | newMethodName: '', |
| | | newStandardNo: '', |
| | | searchNewSource: '', |
| | | remark: '', |
| | | } |
| | | ] |
| | | }, |
| | | formRules: {}, |
| | | editLoad: false, |
| | | info: {}, |
| | | }; |
| | | }, |
| | | // æ¹æ³éå |
| | | methods: { |
| | | openDia (row) { |
| | | this.formDia = true |
| | | }, |
| | | // æ·»å 䏿¡ |
| | | addBtn() { |
| | | this.form.taskRel.push({ newMethodName: '', newStandardNo:'', searchNewSource: '', remark: ''}); |
| | | }, |
| | | // å é¤ä¸æ¡ |
| | | deleteHeaderRow (index) { |
| | | this.form.taskRel.splice(index, 1); |
| | | }, |
| | | handleEdit () { |
| | | this.$refs['form'].validate((valid) => { |
| | | if (valid) { |
| | | this.editLoad = true |
| | | addMethodSearchNew(this.form.taskRel).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('æä½æå') |
| | | this.closeDia() |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | | this.editLoad = false |
| | | }) |
| | | } else { |
| | | console.log('error submit!!'); |
| | | return false; |
| | | } |
| | | }); |
| | | }, |
| | | closeDia () { |
| | | this.$refs.form.resetFields(); |
| | | this.formDia = false |
| | | this.$emit('closeDia'); |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .form-info { |
| | | display: inline-block; |
| | | max-height: 42em; |
| | | overflow-y: auto; |
| | | } |
| | | >>>.el-dialog { |
| | | margin: 6vh auto 50px !important; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="capacity-scope"> |
| | | <div class="search"> |
| | | <div> |
| | | <el-form :model="searchForm" ref="searchForm" size="small" :inline="true"> |
| | | <el-form-item label="æ åå·" prop="standardNo"> |
| | | <el-input size="small" placeholder="请è¾å
¥" clearable v-model="searchForm.standardNo"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="searchList">æ¥ è¯¢</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetSearchForm">é ç½®</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <el-button size="medium" type="primary" @click="openApprovalDialog1">建 档</el-button> |
| | | <el-upload ref='upload' :action="action" |
| | | :before-upload="beforeUpload" :headers="headers" :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-upload> |
| | | <el-button size="medium" style="margin-left: 10px;" type="primary" @click="openFormDia">æ° å¢</el-button> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="table"> |
| | | <div class="table-tab"> |
| | | <el-radio-group v-model="tabIndex" @input="searchList"> |
| | | <el-radio-button label="0">ä»å¹´æ åè®°å½</el-radio-button> |
| | | <el-radio-button label="1">å岿¡£æ¡</el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | <div v-if="tabIndex === '0'"> |
| | | <TableCard :showForm="false" :showTitle="false"> |
| | | <template v-slot:table> |
| | | <lims-table |
| | | :column="tableColumn" |
| | | :height="'calc(100vh - 26em)'" |
| | | :table-data="tableData" |
| | | :table-loading="tableLoading" |
| | | :page="page" |
| | | @pagination="pagination"> |
| | | </lims-table> |
| | | </template> |
| | | </TableCard> |
| | | </div> |
| | | <div v-if="tabIndex === '1'"> |
| | | <TableCard :showForm="false" :showTitle="false"> |
| | | <template v-slot:table> |
| | | <lims-table |
| | | :column="oldTableColumn" |
| | | :height="'calc(100vh - 20em)'" |
| | | :table-data="oldTableData" |
| | | :table-loading="oldTableLoading" |
| | | :page="oldPage" |
| | | @pagination="oldPagination"> |
| | | </lims-table> |
| | | </template> |
| | | </TableCard> |
| | | </div> |
| | | </div> |
| | | <!-- å岿¡£æ¡æ¹åå¼¹æ¡--> |
| | | <el-dialog :visible.sync="approvalDialog" title="æ¹å" width="30%" @close="approvalDialog = false"> |
| | | <span> |
| | | æ¹å夿³¨ï¼ |
| | | <el-input v-model="qualityRemark" type="textarea"></el-input> |
| | | </span> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button :loading="approvalLoading" @click="handleApproval(0)">䏿¹å</el-button> |
| | | <el-button :loading="approvalLoading" type="primary" @click="handleApproval(1)">æ¹ å</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog :visible.sync="approvalDialog1" title="建档" width="30%" @close="approvalDialog1 = false"> |
| | | <span> |
| | | æ¡£æ¡åç§°ï¼ |
| | | <el-input v-model="archivedName" type="textarea"></el-input> |
| | | </span> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button :loading="approvalLoading" @click="approvalDialog1 = false, archivedName = ''">å æ¶</el-button> |
| | | <el-button :loading="approvalLoading" type="primary" @click="handleApproval1()">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <FormDialog v-if="formDialog" ref="formDialog" @closeDia="closeDia"></FormDialog> |
| | | <EditFormDia v-if="editFormDialog" ref="editFormDialog" @closeEditDia="closeEditDia"></EditFormDia> |
| | | <el-dialog :visible.sync="viewRocordDia" title="详æ
" width="80%" @close="approvalDialog = false"> |
| | | <TableCard :showForm="false" :showTitle="false"> |
| | | <template v-slot:table> |
| | | <limsTable |
| | | :column="tableColumn1" |
| | | :height="'calc(100vh - 26em)'" |
| | | :table-data="tableData1" |
| | | :table-loading="tableLoading1" |
| | | style="padding: 0 15px;margin-bottom: 16px" |
| | | :page="page1" |
| | | @pagination="pagination1"> |
| | | </limsTable> |
| | | </template> |
| | | </TableCard> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import limsTable from '@/components/Table/lims-table.vue' |
| | | import TableCard from '@/views/CNAS/externalService/serviceAndSupplyPro/component/index.vue'; |
| | | import FormDialog from './component/FormDialog.vue'; |
| | | import EditFormDia from './component/EditFormDia.vue'; |
| | | import { |
| | | addSearchNewArchived, exportMethodSearchNew, |
| | | pageMethodSearchNew, pageSearchNewArchived, pageSearchNewBackups, ratifySearchNewArchivedr |
| | | } from '@/api/cnas/process/method/standardNoveltyRetrieval' |
| | | |
| | | export default { |
| | | name: 'a7-standard-novelty-retrieval', |
| | | // import å¼å
¥çç»ä»¶éè¦æ³¨å
¥å°å¯¹è±¡ä¸æè½ä½¿ç¨ |
| | | components: { |
| | | FormDialog, |
| | | TableCard, |
| | | limsTable, |
| | | EditFormDia |
| | | }, |
| | | data() { |
| | | // è¿éåæ¾æ°æ® |
| | | return { |
| | | searchForm: { |
| | | year: '', |
| | | standardNo: '', |
| | | }, |
| | | options: [ |
| | | {label: 'ä¸åå¹´', value: '1'}, |
| | | {label: 'ä¸åå¹´', value: '2'}, |
| | | ], |
| | | tableColumn: [ |
| | | { |
| | | label: 'æ ååç§°', |
| | | prop: 'methodName', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | label: 'æ åå·', |
| | | prop: 'standardNo', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | label: 'æä»¶ç¼å·', |
| | | prop: 'fileNo', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | dataType: 'tag', |
| | | label: 'æ¯å¦æ¯æ°æ å', |
| | | prop: 'isNewStandard', |
| | | minWidth: '100', |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return 'å¦'; |
| | | } else if (params == 1) { |
| | | return 'æ¯'; |
| | | } else { |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return 'danger'; |
| | | } else if (params == 1) { |
| | | return 'success'; |
| | | } else { |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | label: 'æ°æ ååç§°', |
| | | prop: 'newMethodName', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | label: 'æ°æ åå·', |
| | | prop: 'newStandardNo', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | dataType: 'tag', |
| | | label: 'æ¥è¯¢è®°å½æ¥æº', |
| | | prop: 'searchNewSource', |
| | | minWidth: '100', |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return 'æ åç½'; |
| | | } else if (params == 1) { |
| | | return 'å§ææ
æ¥'; |
| | | } else if (params == 2) { |
| | | return 'æ åæ°'; |
| | | } else if (params == 3) { |
| | | return 'å
¶ä»'; |
| | | } else { |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return 'success'; |
| | | } else if (params == 1) { |
| | | return 'danger'; |
| | | } else if (params == 2) { |
| | | return 'warning'; |
| | | } else if (params == 3) { |
| | | return 'info'; |
| | | } else { |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | dataType: 'tag', |
| | | label: '夿³¨', |
| | | prop: 'remark', |
| | | minWidth: '100', |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return 'ä½åº'; |
| | | } else if (params == 1) { |
| | | return 'æ¿æ¢'; |
| | | } else { |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return 'danger'; |
| | | } else if (params == 1) { |
| | | return 'success'; |
| | | } else { |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | dataType: 'action', |
| | | minWidth: '100', |
| | | label: 'æä½', |
| | | operation: [ |
| | | { |
| | | name: 'ç¼è¾', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.openEditFormDia(row); |
| | | }, |
| | | }, |
| | | ] |
| | | } |
| | | ], |
| | | tableColumn1: [ |
| | | { |
| | | label: 'æ ååç§°', |
| | | prop: 'methodName', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | label: 'æ åå·', |
| | | prop: 'standardNo', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | label: 'æä»¶ç¼å·', |
| | | prop: 'fileNo', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | dataType: 'tag', |
| | | label: 'æ¯å¦æ¯æ°æ å', |
| | | prop: 'isNewStandard', |
| | | minWidth: '100', |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return 'å¦'; |
| | | } else if (params == 1) { |
| | | return 'æ¯'; |
| | | } else { |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return 'danger'; |
| | | } else if (params == 1) { |
| | | return 'success'; |
| | | } else { |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | label: 'æ°æ ååç§°', |
| | | prop: 'newMethodName', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | label: 'æ°æ åå·', |
| | | prop: 'newStandardNo', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | dataType: 'tag', |
| | | label: 'æ¥è¯¢è®°å½æ¥æº', |
| | | prop: 'searchNewSource', |
| | | minWidth: '100', |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return 'æ åç½'; |
| | | } else if (params == 1) { |
| | | return 'å§ææ
æ¥'; |
| | | } else if (params == 2) { |
| | | return 'æ åæ°'; |
| | | } else if (params == 3) { |
| | | return 'å
¶ä»'; |
| | | } else { |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return 'success'; |
| | | } else if (params == 1) { |
| | | return 'danger'; |
| | | } else if (params == 2) { |
| | | return 'warning'; |
| | | } else if (params == 3) { |
| | | return 'info'; |
| | | } else { |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | dataType: 'tag', |
| | | label: '夿³¨', |
| | | prop: 'remark', |
| | | minWidth: '100', |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return 'ä½åº'; |
| | | } else if (params == 1) { |
| | | return 'æ¿æ¢'; |
| | | } else { |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return 'danger'; |
| | | } else if (params == 1) { |
| | | return 'success'; |
| | | } else { |
| | | return null |
| | | } |
| | | } |
| | | } |
| | | ], |
| | | tableData: [], |
| | | tableData1: [], |
| | | tableLoading: false, |
| | | tableLoading1: false, |
| | | page: { |
| | | size: 10, |
| | | current: 1, |
| | | total: 0 |
| | | }, |
| | | page1: { |
| | | size: 10, |
| | | current: 1, |
| | | total: 0 |
| | | }, |
| | | oldPage: { |
| | | size: 10, |
| | | current: 1, |
| | | total: 0, |
| | | }, |
| | | oldTableColumn: [ |
| | | { |
| | | label: 'åæ¡£åç§°', |
| | | prop: 'archivedName', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | label: 'ç¼å¶äºº', |
| | | prop: 'writeName', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | label: 'ç¼å¶æ¶é´', |
| | | prop: 'writeTime', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | label: 'æ¹å人', |
| | | prop: 'ratifyName', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | label: 'æ¹åä¿¡æ¯', |
| | | prop: 'ratifyRemark', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | dataType: 'tag', |
| | | label: 'æ¹åç¶æ', |
| | | prop: 'ratifyStatus', |
| | | minWidth: '100', |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return 'ä¸éè¿'; |
| | | } else if (params == 1) { |
| | | return 'éè¿'; |
| | | } else { |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return 'danger'; |
| | | } else if (params == 1) { |
| | | return 'success'; |
| | | } else { |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | label: 'æ¹åæ¶é´', |
| | | prop: 'ratifyTime', |
| | | minWidth: '100' |
| | | }, |
| | | { |
| | | dataType: 'action', |
| | | minWidth: '100', |
| | | label: 'æä½', |
| | | operation: [ |
| | | { |
| | | name: 'æ¹å', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.openApprovalDialog(row); |
| | | }, |
| | | disabled: (row) => { |
| | | if (row.ratifyStatus === 1) { |
| | | return true |
| | | } else { |
| | | return false |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | name: 'æ¥ç', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.openViewDia(row); |
| | | }, |
| | | }, |
| | | { |
| | | name: '导åº', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.handleOut(row); |
| | | }, |
| | | } |
| | | ] |
| | | } |
| | | ], |
| | | oldTableData: [], |
| | | oldTableLoading: false, |
| | | tabIndex: '0', |
| | | formDialog: false, |
| | | editFormDialog: false, |
| | | upLoading:false, |
| | | outLoading:false, |
| | | ratifyInfo: { |
| | | writeUserId: '', |
| | | ratifyUserId: '', |
| | | writeDate: '', |
| | | ratifyDate: '', |
| | | }, |
| | | userList: [], |
| | | approvalDialog: false, |
| | | approvalDialog1: false, |
| | | viewRocordDia: false, |
| | | approvalLoading: false, |
| | | qualityRemark: '', |
| | | archivedName: '', |
| | | archivedId: '', |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.searchList() |
| | | }, |
| | | // æ¹æ³éå |
| | | methods: { |
| | | // æ¥è¯¢å表 |
| | | searchList () { |
| | | let params = {} |
| | | if (this.tabIndex === '0') { |
| | | params = { |
| | | entity: { |
| | | standardNo: this.searchForm.standardNo, |
| | | }, |
| | | page: this.page |
| | | } |
| | | } else { |
| | | params = { |
| | | entity: {}, |
| | | page: this.oldPage |
| | | } |
| | | } |
| | | if (this.tabIndex === '0') { |
| | | this.tableLoading = true |
| | | pageMethodSearchNew({...params.oldPage,...params.entity}).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 200){ |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | } |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | | this.tableLoading = false |
| | | }) |
| | | } else { |
| | | this.oldTableLoading = true |
| | | pageSearchNewArchived({ |
| | | ...params.page,...params.entity |
| | | }).then(res => { |
| | | this.oldTableLoading = false |
| | | if (res.code === 200){ |
| | | console.log('res>>>>>>>>>>>>',res) |
| | | this.oldTableData = res.data.records |
| | | this.oldPage.total = res.data.total |
| | | } |
| | | |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | | this.oldTableLoading = false |
| | | }) |
| | | } |
| | | }, |
| | | // æå¼å岿¡£æ¡è¯¦æ
å¼¹æ¡ |
| | | openViewDia (row) { |
| | | this.archivedId = row.archivedId |
| | | this.viewRocordDia = true |
| | | this.pageSearchNewBackups() |
| | | }, |
| | | pageSearchNewBackups () { |
| | | const entity = { |
| | | archivedId: this.archivedId, |
| | | } |
| | | this.tableLoading1 = true |
| | | pageSearchNewBackups({...this.page1,...entity}).then(res => { |
| | | this.tableLoading1 = false |
| | | if (res.code === 200){ |
| | | this.tableData1 = res.data.records |
| | | this.page1.total = res.data.total |
| | | } |
| | | |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | | this.tableLoading1 = false |
| | | }) |
| | | }, |
| | | // æå¼æ¹åå¼¹æ¡ |
| | | openApprovalDialog (row) { |
| | | this.approvalDialog = true |
| | | this.archivedId = row.archivedId |
| | | }, |
| | | // æå¼æ¹åå¼¹æ¡ |
| | | openApprovalDialog1 (row) { |
| | | this.approvalDialog1 = true |
| | | this.archivedId = row.archivedId |
| | | }, |
| | | // æäº¤æ¹å |
| | | handleApproval (status) { |
| | | this.approvalLoading = true |
| | | let internalReport = { |
| | | archivedId: this.archivedId, |
| | | ratifyStatus: status, |
| | | ratifyRemark: this.ratifyRemark |
| | | } |
| | | ratifySearchNewArchivedr(internalReport).then(res => { |
| | | if (res.code === 200) { |
| | | this.$message.success('æäº¤æåï¼'); |
| | | this.approvalDialog = false |
| | | this.searchList() |
| | | } |
| | | this.approvalLoading = false |
| | | }).catch(() => { |
| | | this.approvalLoading = false |
| | | }) |
| | | }, |
| | | // æäº¤æ¹å |
| | | handleApproval1 (status) { |
| | | this.approvalLoading = true |
| | | let internalReport = { |
| | | archivedName: this.archivedName, |
| | | } |
| | | addSearchNewArchived(internalReport).then(res => { |
| | | if (res.code === 200) { |
| | | this.$message.success('æäº¤æåï¼'); |
| | | this.approvalDialog1 = false |
| | | this.searchList() |
| | | } |
| | | this.approvalLoading = false |
| | | }).catch(() => { |
| | | this.approvalLoading = false |
| | | }) |
| | | }, |
| | | // éç½®æ¥è¯¢æ¡ä»¶ |
| | | resetSearchForm () { |
| | | this.searchForm.standardNo = ''; |
| | | this.searchList() |
| | | }, |
| | | // æä½æ°å¢æ¡ |
| | | openFormDia (row) { |
| | | this.formDialog = true |
| | | this.$nextTick(() => { |
| | | this.$refs.formDialog.openDia(row) |
| | | }) |
| | | }, |
| | | // å
³éæ°å¢å¼¹æ¡ |
| | | closeDia () { |
| | | this.formDialog = false |
| | | this.searchList() |
| | | }, |
| | | // æå¼ä¿®æ¹å¼¹æ¡ |
| | | openEditFormDia (row) { |
| | | this.editFormDialog = true |
| | | this.$nextTick(() => { |
| | | this.$refs.editFormDialog.openDia(row) |
| | | }) |
| | | }, |
| | | // |
| | | closeEditDia () { |
| | | this.editFormDialog = false |
| | | this.searchList() |
| | | }, |
| | | // å¯¼åº |
| | | handleOut (row) { |
| | | this.outLoading = true |
| | | exportMethodSearchNew({archivedId:row.archivedId}).then(res => { |
| | | const blob = new Blob([res],{ type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, 'æ 忥æ°å¯¼åº.xlsx') |
| | | this.$message.success('å¯¼åºæå') |
| | | }) |
| | | }, |
| | | // 导å
¥ |
| | | beforeUpload(file) { |
| | | if (file.size > 1024 * 1024 * 10) { |
| | | this.$message.error('ä¸ä¼ æä»¶ä¸è¶
è¿10M'); |
| | | this.$refs.upload.clearFiles() |
| | | return false; |
| | | } else { |
| | | this.upLoading = true; |
| | | return true; |
| | | } |
| | | }, |
| | | onError(err, file, fileList) { |
| | | this.$message.error('ä¸ä¼ 失败') |
| | | this.$refs.upload.clearFiles() |
| | | }, |
| | | handleSuccessUp(response) { |
| | | this.upLoading = false; |
| | | if (response.code == 200) { |
| | | this.$message.success('ä¸ä¼ æå'); |
| | | this.searchList() |
| | | } |
| | | }, |
| | | // å页 |
| | | pagination(page){ |
| | | this.page.size = page.limit |
| | | this.searchList(); |
| | | }, |
| | | pagination1(page){ |
| | | this.page1.size = page.limit |
| | | this.pageSearchNewBackups(); |
| | | }, |
| | | oldPagination(page){ |
| | | this.oldPage.size = page.limit |
| | | this.searchList(); |
| | | }, |
| | | // |
| | | getUserList(){ |
| | | this.$axios.post(this.$api.user.selectUserList, { |
| | | page: {current: -1, size: -1,}, |
| | | entity: {name: null} |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.userList = res.data.body.records |
| | | }) |
| | | }, |
| | | }, |
| | | // ç¨äºä¸ä¼ æä»¶çä¿¡æ¯ |
| | | computed: { |
| | | headers() { |
| | | return { |
| | | 'token': sessionStorage.getItem('token') |
| | | } |
| | | }, |
| | | action() { |
| | | return this.javaApi + '/processMethodSearchNew/importMethodSearchNew' |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .search { |
| | | height: 46px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | .table-tab { |
| | | margin-bottom: 10px; |
| | | } |
| | | </style> |