new file: src/api/experiment/checkTheReport.js
new file: src/api/experiment/reportAuditing.js
modified: src/views/experiment/checkTheReport/index.vue
modified: src/views/experiment/reportAuditing/index.vue
| | |
| | | ENV = 'development' |
| | | |
| | | # base api |
| | | VUE_APP_BASE_API = 'http://192.168.110.167:1234/' |
| | | # VUE_APP_BASE_API = 'http://192.168.110.167:1234/' |
| | | VUE_APP_BASE_API = 'http://localhost:1234/' |
| | |
| | | |
| | | # base api |
| | | # VUE_APP_BASE_API = '/prod-api' |
| | | VUE_APP_BASE_API = 'http://192.168.110.167:1234/' |
| | | VUE_APP_BASE_API = 'http://localhost:1234/' |
| | | |
| | |
| | | |
| | | # base api |
| | | # VUE_APP_BASE_API = '/stage-api' |
| | | VUE_APP_BASE_API = 'http://192.168.110.167:1234/' |
| | | VUE_APP_BASE_API = 'http://localhost:1234/' |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | export function selectAllReport(params) { |
| | | return request({ |
| | | url: '/report/selectAllReport', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | export function selectAllReportCheck(params) { |
| | | return request({ |
| | | url: '/reportAuditing/selectAllReportAuditing', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | |
| | | <template> |
| | | <div>æ£æµæ¥å</div> |
| | | <div class="content-main"> |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true"> |
| | | <el-form-item class="sermargin"> |
| | | <el-input |
| | | v-model="input" |
| | | class="input-form" |
| | | placeholder="è¯·ç´æ¥è¾å
¥æ ·å¼ç¼å·/æ¥ååå·/æ ·åç¼å·/è¿è¡æç´¢æä¸æéæ©è¿è¡ç»åæ¥è¯¢" |
| | | @keyup.enter.native="getData" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="getData()">æ¥è¯¢</el-button> |
| | | <el-button type="primary" plain @click="resetData()">éç½®</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form> |
| | | <el-button class="rightBtn" type="primary" icon="el-icon-document" @click="exportData">å¯¼åºæ¥å</el-button> |
| | | </el-form> |
| | | </div> |
| | | <div class="library-table"> |
| | | <div class="table-header"> |
| | | <div class="search-bar"> |
| | | <el-radio-group v-model="checkStatus" @change="handleRadioChange"> |
| | | <el-radio-button>å
¨é¨</el-radio-button> |
| | | <el-radio-button label="0">å¾
æäº¤</el-radio-button> |
| | | <el-radio-button label="1">å¾
å®¡æ ¸</el-radio-button> |
| | | <el-radio-button label="2">å·²å®¡æ ¸</el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | </div> |
| | | <div class="table-box"> |
| | | <el-table |
| | | ref="reportTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="reportTable" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | label="" |
| | | min-width="5%" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="materialCode" |
| | | label="æ ·åç¼å·" |
| | | sortable |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="reportCode" |
| | | label="æ¥ååå·" |
| | | sortable |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="inspectionCode" |
| | | label="ç³è¯·åå·" |
| | | sortable |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="approver" |
| | | label="审æ¹äºº" |
| | | min-width="5%" |
| | | /> |
| | | <el-table-column |
| | | prop="status" |
| | | label="审æ¹ç¶æ" |
| | | min-width="8%" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span> |
| | | <el-tag type="info">{{ scope.row.status == 0 ? 'å¾
æäº¤' : |
| | | scope.row.status == 1 ? 'å¾
å®¡æ ¸' : |
| | | scope.row.status == 2 ? '代ç¾å' :'已宿' }}</el-tag> |
| | | </span> |
| | | </template></el-table-column> |
| | | <el-table-column |
| | | prop="conclusion" |
| | | label="æ£éªç»è®º" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="ç¼å¶äºº" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="8%" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="handleClick(scope.row)">é¢è§</el-button> |
| | | <el-button type="text" size="small">æå°</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- åé¡µå¨ --> |
| | | <div> |
| | | <el-pagination |
| | | :current-page="page" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total" |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { selectAllReport } from '@/api/experiment/checkTheReport' |
| | | export default { |
| | | |
| | | data() { |
| | | return { |
| | | input: '', |
| | | checkStatus: undefined, |
| | | reportTable: [], |
| | | page: 1, |
| | | total: 0, |
| | | pageSize: 10 |
| | | } |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | | // ç¶ææé® |
| | | handleRadioChange() { |
| | | this.getData() |
| | | }, |
| | | // æ¯é¡µæ¡æ°æ¹åæ¶è§¦å éæ©ä¸é¡µæ¾ç¤ºå¤å°è¡ |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`) |
| | | this.pageSize = val |
| | | this.getData() |
| | | }, |
| | | // å½å页æ¹åæ¶è§¦å 跳转å
¶ä»é¡µ |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`) |
| | | this.page = val |
| | | this.getData() |
| | | }, |
| | | // éç½®æé® |
| | | resetData() { |
| | | this.input = undefined |
| | | this.page = 1 |
| | | this.pageSize = 10 |
| | | this.checkStatus = undefined |
| | | this.getData() |
| | | }, |
| | | // æ¥è¯¢å表 |
| | | async getData() { |
| | | const params = { |
| | | page: this.page, |
| | | pageSize: this.pageSize, |
| | | name: this.input ? this.input : undefined, |
| | | status: this.checkStatus ? this.checkStatus : undefined |
| | | } |
| | | const { data } = await selectAllReport(params) |
| | | this.reportTable = data.row |
| | | this.total = data.total |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | .top-bar{ |
| | | margin: -25px -15px; |
| | | background: #fff; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 5px 24px 0px 24px; |
| | | .input-form { |
| | | width: 800px; |
| | | } |
| | | } |
| | | .library-table{ |
| | | background-color: #fff; |
| | | flex: 1; |
| | | margin: 0px -15px; |
| | | margin-top: 40px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .table-header{ |
| | | padding: 20px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .el-form-item{ |
| | | margin-bottom: 30px !important; |
| | | } |
| | | } |
| | | .table-box{ |
| | | padding: 0px 20px; |
| | | margin-top: 0px; |
| | | flex: 1; |
| | | background: #fff; |
| | | display: flex; |
| | | flex-direction: column; |
| | | >div:nth-child(2){ |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div>æ¥åå®¡æ ¸</div> |
| | | <div class="content-main"> |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true"> |
| | | <el-form-item class="sermargin"> |
| | | <el-input |
| | | v-model="input" |
| | | class="input-form" |
| | | placeholder="è¯·ç´æ¥è¾å
¥æ ·å¼ç¼å·/æ¥åç¼å·/æ ·ååç§°/è¿è¡æç´¢æä¸æéæ©è¿è¡ç»åæ¥è¯¢" |
| | | @keyup.enter.native="getData" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="getData()">æ¥è¯¢</el-button> |
| | | <el-button type="primary" plain @click="resetData()">éç½®</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form> |
| | | <el-button class="rightBtn" type="primary" @click="exportData">å®¡æ ¸</el-button> |
| | | </el-form> |
| | | </div> |
| | | <div class="library-table"> |
| | | <div class="table-header"> |
| | | <div class="search-bar"> |
| | | <el-radio-group v-model="checkStatus" @change="handleRadioChange"> |
| | | <el-radio-button>å
¨é¨</el-radio-button> |
| | | <el-radio-button label="0">å¾
æäº¤</el-radio-button> |
| | | <el-radio-button label="2">å¾
éè¿</el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | </div> |
| | | <div class="table-box"> |
| | | <el-table |
| | | ref="reportTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="reportTable" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | label="" |
| | | min-width="5%" |
| | | /> |
| | | <el-table-column |
| | | prop="materialCode" |
| | | label="æ ·åç¼å·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="reportCode" |
| | | label="æ¥ååå·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="materialName" |
| | | label="æ ·ååç§°" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="status" |
| | | label="审æ¹ç¶æ" |
| | | min-width="8%" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span> |
| | | <el-tag type="warning">{{ scope.row.status == 0 ? 'å¾
æäº¤' : 'å·²å®¡æ ¸' }}</el-tag> |
| | | </span> |
| | | </template></el-table-column> |
| | | <el-table-column |
| | | prop="approver" |
| | | label="审æ¹äºº" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="submitTime" |
| | | label="æäº¤æ¥æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="checkTime" |
| | | label="å®¡æ ¸æ¥æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="8%" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="handleClick(scope.row)">æ¥ç详ç»</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- åé¡µå¨ --> |
| | | <div> |
| | | <el-pagination |
| | | :current-page="page" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total" |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { selectAllReportCheck } from '@/api/experiment/reportAuditing' |
| | | export default { |
| | | |
| | | data() { |
| | | return { |
| | | input: '', |
| | | checkStatus: undefined, |
| | | reportTable: [], |
| | | page: 1, |
| | | total: 0, |
| | | pageSize: 10 |
| | | } |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | | // ç¶ææé® |
| | | handleRadioChange() { |
| | | this.getData() |
| | | }, |
| | | // æ¯é¡µæ¡æ°æ¹åæ¶è§¦å éæ©ä¸é¡µæ¾ç¤ºå¤å°è¡ |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`) |
| | | this.pageSize = val |
| | | this.getData() |
| | | }, |
| | | // å½å页æ¹åæ¶è§¦å 跳转å
¶ä»é¡µ |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`) |
| | | this.page = val |
| | | this.getData() |
| | | }, |
| | | // éç½®æé® |
| | | resetData() { |
| | | this.input = undefined |
| | | this.page = 1 |
| | | this.pageSize = 10 |
| | | this.checkStatus = undefined |
| | | this.getData() |
| | | }, |
| | | // æ¥è¯¢å表 |
| | | async getData() { |
| | | const params = { |
| | | page: this.page, |
| | | pageSize: this.pageSize, |
| | | name: this.input ? this.input : undefined, |
| | | status: this.checkStatus ? this.checkStatus : undefined |
| | | } |
| | | const { data } = await selectAllReportCheck(params) |
| | | this.reportTable = data.row |
| | | this.total = data.total |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | .top-bar{ |
| | | margin: -25px -15px; |
| | | background: #fff; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 5px 24px 0px 24px; |
| | | .input-form { |
| | | width: 800px; |
| | | } |
| | | } |
| | | .library-table{ |
| | | background-color: #fff; |
| | | flex: 1; |
| | | margin: 0px -15px; |
| | | margin-top: 40px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .table-header{ |
| | | padding: 20px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .el-form-item{ |
| | | margin-bottom: 30px !important; |
| | | } |
| | | } |
| | | .table-box{ |
| | | padding: 0px 20px; |
| | | margin-top: 0px; |
| | | flex: 1; |
| | | background: #fff; |
| | | display: flex; |
| | | flex-direction: column; |
| | | >div:nth-child(2){ |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | </style> |