¶Ô±ÈÐÂÎļþ |
| | |
| | | <style scoped> |
| | | .raw_ins {} |
| | | |
| | | .raw_ins .title .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | |
| | | .raw_ins .title { |
| | | margin-bottom: 10px; |
| | | padding: 0 20px; |
| | | } |
| | | |
| | | .choose { |
| | | padding: 21px 24px; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #fff; |
| | | border-bottom: 3px solid rgb(245, 247, 251); |
| | | } |
| | | |
| | | .choose * { |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .choose .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | |
| | | .thing { |
| | | width: calc(100% - 44px); |
| | | height: calc(100% - 42px - 82px - 66px); |
| | | background-color: #fff; |
| | | overflow: auto; |
| | | padding: 33px 22px; |
| | | } |
| | | |
| | | .table_do { |
| | | color: #004ea0; |
| | | cursor: pointer; |
| | | } |
| | | </style> |
| | | <style> |
| | | .raw_ins .thing * { |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .raw_ins .has-gutter .el-table__cell { |
| | | background-color: #F0F1F5 !important; |
| | | color: #333; |
| | | } |
| | | |
| | | .raw_ins .has-gutter .el-table__cell .cell { |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | .raw_ins .cell { |
| | | color: #333; |
| | | padding-left: 17px !important; |
| | | } |
| | | |
| | | .raw_ins .el-table__body-wrapper { |
| | | height: 100%; |
| | | } |
| | | |
| | | .raw_ins .el-table__body { |
| | | height: 100%; |
| | | } |
| | | </style> |
| | | |
| | | <template> |
| | | <div class="raw_ins"> |
| | | <div class="title"> |
| | | <el-row> |
| | | <el-col :span="12" style="line-height: 32px;">åæææ£éª</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;">æ°å¢</el-button> |
| | | <el-button icon="el-icon-download">å é¤</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="choose"> |
| | | <span>æ¥ææ¥æï¼</span> |
| | | <el-date-picker v-model="search.formTime" size="small" placeholder="请è¾å
¥" style="width: 224px;margin-right: 30px;" |
| | | clearable value-format="yyyy-MM-dd"></el-date-picker> |
| | | <span>æ¥æ£æ¥æï¼</span> |
| | | <el-date-picker v-model="search.createTime" size="small" placeholder="请è¾å
¥" |
| | | style="width: 224px;margin-right: 30px;" clearable value-format="yyyy-MM-dd"></el-date-picker> |
| | | <span>æ£æµç¶æï¼</span> |
| | | <el-select v-model="search.insState" size="small" placeholder="è¯·éæ©" style="width: 224px;margin-right: 30px;"> |
| | | <el-option label="å
¨é¨" :value="2"></el-option> |
| | | <el-option label="æªæ£æµ" :value="0"></el-option> |
| | | <el-option label="å·²æ£æµ" :value="1"></el-option> |
| | | </el-select> |
| | | <span>åæ ¼ç¶æï¼</span> |
| | | <el-select v-model="search.judgeState" size="small" placeholder="è¯·éæ©" style="width: 224px;margin-right: 30px;"> |
| | | <el-option label="å
¨é¨" :value="2"></el-option> |
| | | <el-option label="ä¸åæ ¼" :value="0"></el-option> |
| | | <el-option label="åæ ¼" :value="1"></el-option> |
| | | </el-select> |
| | | <el-button size="mini" @click="clean()"><span>é ç½®</span></el-button> |
| | | <el-button size="mini" type="primary" style="background: #004EA2;" @click="selectRawInspectsList()"><span>æ¥ |
| | | 询</span></el-button> |
| | | </div> |
| | | <div class="thing"> |
| | | <el-table :data="tableData" border style="width: 100%;overflow-y: auto;min-height: calc(100% - 50px)" |
| | | max-height="calc(100% - 50px)" @selection-change="handleSelectionChange" border default-expand-all |
| | | :tree-props="{children: 'children', hasChildren: 'hasChildren'}" row-key="id"> |
| | | <el-table-column type="selection" width="50"> |
| | | </el-table-column> |
| | | <el-table-column type="index" label="åºå·" width="70"> |
| | | </el-table-column> |
| | | <el-table-column prop="formTime" label="æ¥ææ¥æ"> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="åææç¼ç "> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="åææåç§°"> |
| | | </el-table-column> |
| | | <el-table-column prop="specifications" label="è§æ ¼åå·"> |
| | | </el-table-column> |
| | | <el-table-column prop="unit" label="åä½"> |
| | | </el-table-column> |
| | | <el-table-column prop="number" label="æ°é"> |
| | | </el-table-column> |
| | | <el-table-column prop="createTime" label="æ¥æ£æ¥æ"> |
| | | </el-table-column> |
| | | <el-table-column prop="userName" label="æ¥æ£äºº"> |
| | | </el-table-column> |
| | | <el-table-column prop="judgeState" label="åæ ¼ç¶æ" width="100"> |
| | | <template slot-scope="scope"> |
| | | <span style="color: #34BD66;" v-if="scope.row.judgeState==1">åæ ¼</span> |
| | | <span style="color: #E84738;" v-else-if="scope.row.judgeState==0">ä¸åæ ¼</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="insState" label="æ£æµç¶æ" width="100"> |
| | | <template slot-scope="scope"> |
| | | <span style="color: #34BD66;" v-if="scope.row.insState==1">å·²æ£æµ</span> |
| | | <span style="color: #E84738;" v-else-if="scope.row.insState==0">æªæ£æµ</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æä½" width="100"> |
| | | <template slot-scope="scope"> |
| | | <span class="table_do">æ¥ç</span> |
| | | <span class="table_do">æå°</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-col style="height: 50px;display: flex;align-items: center;justify-content: right;"> |
| | | <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" |
| | | :page-sizes="[1,10, 20, 30, 50]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" |
| | | :total="countSize"> |
| | | </el-pagination> |
| | | </el-col> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | search: { |
| | | formTime: null, |
| | | createTime: null, |
| | | insState: 2, |
| | | judgeState: 2 |
| | | }, |
| | | tableData: [], |
| | | selects: [], |
| | | currentPage: 1, |
| | | countSize: 0, |
| | | pageSize: 10 |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.selectRawInspectsList() |
| | | }, |
| | | methods: { |
| | | handleSelectionChange(val) { |
| | | this.selects = val; |
| | | }, |
| | | handleSizeChange(val) { |
| | | this.pageSize = val |
| | | this.selectRawInspectsList() |
| | | }, |
| | | handleCurrentChange(val) { |
| | | this.currentPage = val |
| | | this.selectRawInspectsList() |
| | | }, |
| | | selectRawInspectsList() { |
| | | this.axios.post(this.$api.url.selectRawInspectsList, { |
| | | pageSize: this.currentPage, |
| | | countSize: this.pageSize, |
| | | formTime: this.search.formTime, |
| | | createTime: this.search.createTime, |
| | | insState: this.search.insState, |
| | | judgeState: this.search.judgeState |
| | | }).then(res => { |
| | | this.tableData = res.data.data |
| | | this.countSize = res.data.count |
| | | }) |
| | | }, |
| | | clean() { |
| | | this.selects = [] |
| | | this.currentPage = 1 |
| | | this.countSize = 0 |
| | | this.pageSize = 10 |
| | | this.search = { |
| | | formTime: null, |
| | | createTime: null, |
| | | insState: 2, |
| | | judgeState: 2 |
| | | }, |
| | | this.selectRawInspectsList() |
| | | } |
| | | } |
| | | } |
| | | </script> |