| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <div class="body" :style="{height:mainHeight+'px'}"> |
| | | <!-- <div class="bodyTopButtonGroup" style="justify-content: space-between">--> |
| | | <!-- <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">æ°å¢</el-button>--> |
| | | <!-- <el-button icon="el-icon-download" @click="upload">导å
¥</el-button>--> |
| | | <!-- </div>--> |
| | | |
| | | <div class="bodyTopFormGroup" style="margin-top: 10px;"> |
| | | <el-form |
| | | ref="form" |
| | | :model="form" |
| | | label-width="100px" |
| | | inline |
| | | style="display: flex;justify-content: space-between" |
| | | > |
| | | <div class="elForm" style="justify-content: flex-start"> |
| | | <el-form-item label-width="70px" label="å®¡æ ¸ç¶æ" style=" display: flex;"> |
| | | <!-- <el-input v-model="form.verify" placeholder="请è¾å
¥" style="width: 200px" />--> |
| | | <el-select |
| | | v-model="form.verify" |
| | | style="width: 200px" |
| | | placeholder="è¯·éæ©" |
| | | filterable |
| | | > |
| | | <el-option |
| | | v-for="item in verifySelectArr" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥åç¼å·" style="display: flex;"> |
| | | <el-input v-model="form.wo_code" placeholder="请è¾å
¥" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="产åç¼ç " style=" display: flex;"> |
| | | <el-input v-model="form.partnumber" placeholder="请è¾å
¥" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="产ååç§°" style=" display: flex;"> |
| | | <el-input v-model="form.partname" placeholder="请è¾å
¥" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label-width="70px" label="产åè§æ ¼" style=" display: flex;"> |
| | | <el-input v-model="form.partspec" placeholder="请è¾å
¥" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="æ¥å·¥äººå" style=" display: flex;"> |
| | | <el-input v-model="form.reportuser" style="width: 200px" placeholder="请è¾å
¥" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="æ¥å·¥æ¶é´" style="display: flex;font-size: 14px;align-items: center"> |
| | | <el-date-picker |
| | | v-model="form.reportdate" |
| | | type="daterange" |
| | | range-separator="~" |
| | | class="timeMini" |
| | | size="mini" |
| | | style="width: 200px;display: flex;line-height: 34px;height: 34px;" |
| | | :clearable="false" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ" |
| | | /> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened?'5%':'10%'}"> |
| | | <el-button type="primary" icon="el-icon-search" @click="search">æ¥è¯¢</el-button> |
| | | <el-button type="info" icon="el-icon-refresh" @click="reset">éç½®</el-button> |
| | | </div> |
| | | </el-form> |
| | | <div |
| | | class="bodyTopFormExpand" |
| | | > |
| | | <svg-icon |
| | | v-show="mouseHoverType==='mouseout'" |
| | | style="cursor: pointer" |
| | | :icon-class="!isExpandForm?'doubleDown3':'doubleUp3'" |
| | | @mouseenter="mouseHoverType=$event.type" |
| | | /> |
| | | <svg-icon |
| | | v-show="mouseHoverType==='mouseenter'" |
| | | style="cursor: pointer" |
| | | :icon-class="!isExpandForm?'doubleDown':'doubleUp'" |
| | | @click="isExpandForm=!isExpandForm" |
| | | @mouseout="mouseHoverType=$event.type" |
| | | /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="elTableDiv"> |
| | | <el-table |
| | | ref="tableDataRef" |
| | | class="tableFixed" |
| | | :data="tableData" |
| | | :height="isExpandForm?tableHeight:(tableHeight+40)+'px'" |
| | | border |
| | | :row-class-name="tableRowClassName" |
| | | :style="{width: 100+'%',height:isExpandForm?tableHeight:(tableHeight+40)+'px',}" |
| | | highlight-current-row |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | | @sort-change="sortChange" |
| | | > |
| | | <!-- @cell-dblclick="cellDblclick"--> |
| | | <el-table-column |
| | | prop="RowNum" |
| | | width="50" |
| | | fixed |
| | | label="åºå·" |
| | | /> |
| | | <el-table-column |
| | | prop="verify" |
| | | label="ç¶æ" |
| | | width="90" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div>{{ row.verify==='Y'?'å·²å®¡æ ¸':'æªå®¡æ ¸' }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="wo_code" |
| | | label="å·¥åç¼å·" |
| | | width="160" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="partnumber" |
| | | label="产åç¼ç " |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="partname" |
| | | label="产ååç§°" |
| | | width="160" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="partspec" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | label="产åè§æ ¼" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.partspec">{{ row.partspec }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="task_qty" |
| | | label="工忰é" |
| | | width="110" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="ç产车é´" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="eqp_name" |
| | | label="设å¤åç§°" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="route_name" |
| | | label="å·¥èºè·¯çº¿" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="stepname" |
| | | label="å·¥åºåç§°" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="flwtype" |
| | | label="å·¥åºå±æ§" |
| | | width="110" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.flwtype==='Z'">èªå¶</div> |
| | | <div v-if="row.flwtype==='W'">å¤å</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="unprice" |
| | | label="åä»·" |
| | | width="110" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.unprice">{{ row.unprice }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="usergroup_name"--> |
| | | <!-- label="æå±çç»"--> |
| | | <!-- width="110"--> |
| | | <!-- sortable="custom"--> |
| | | <!-- />--> |
| | | <el-table-column |
| | | prop="username" |
| | | label="æ¥å·¥äººå" |
| | | width="110" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="report_date" |
| | | label="æ¥å·¥æ¶é´" |
| | | width="160" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="report_qty" |
| | | label="æ¥å·¥æ°é" |
| | | width="110" |
| | | fixed="right" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-input |
| | | v-if="row.isVisible===1" |
| | | v-model="row.report_qty" |
| | | placeholder="请è¾å
¥" |
| | | /> |
| | | <div v-else>{{ row.report_qty }}</div> |
| | | </template> |
| | | |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <el-input--> |
| | | <!-- v-if="row.RowNum === tabClickIndex && tabClickLabel === 'æ¥å·¥æ°é'"--> |
| | | <!-- v-model="row.report_qty"--> |
| | | <!-- placeholder="请è¾å
¥"--> |
| | | <!-- />--> |
| | | <!-- <!– @keyup.enter.native="val=>keyUpEnterNative(val,row)"–>--> |
| | | <!-- <div v-else>{{ row.report_qty }}</div>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="ng_qty" |
| | | label="ä¸è¯æ°é" |
| | | width="110" |
| | | sortable="custom" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-input |
| | | v-if="row.isVisible===1" |
| | | v-model="row.ng_qty" |
| | | placeholder="请è¾å
¥" |
| | | /> |
| | | <div v-else>{{ row.ng_qty }}</div> |
| | | </template> |
| | | |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <el-input--> |
| | | <!-- v-if="row.RowNum === tabClickIndex && tabClickLabel === 'ä¸è¯æ°é'"--> |
| | | <!-- v-model="row.ng_qty"--> |
| | | <!-- placeholder="请è¾å
¥"--> |
| | | <!-- />--> |
| | | <!-- <div v-else>{{ row.ng_qty }}</div>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="bad_qty" |
| | | label="æ¥åºæ°é" |
| | | fixed="right" |
| | | width="110" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-input |
| | | v-if="row.isVisible===1" |
| | | v-model="row.bad_qty" |
| | | placeholder="请è¾å
¥" |
| | | /> |
| | | <div v-else>{{ row.bad_qty }}</div> |
| | | </template> |
| | | |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <el-input--> |
| | | <!-- v-if="row.RowNum === tabClickIndex && tabClickLabel === 'æ¥åºæ°é'"--> |
| | | <!-- v-model="row.bad_qty"--> |
| | | <!-- placeholder="请è¾å
¥"--> |
| | | <!-- />--> |
| | | <!-- <div v-else>{{ row.bad_qty }}</div>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="bad_money" |
| | | label="æ¥åºéé¢" |
| | | width="110" |
| | | fixed="right" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-input |
| | | v-if="row.isVisible===1" |
| | | v-model="row.bad_money" |
| | | placeholder="请è¾å
¥" |
| | | /> |
| | | <div v-else>{{ row.bad_money }}</div> |
| | | </template> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <el-input--> |
| | | <!-- v-if="row.RowNum === tabClickIndex && tabClickLabel === 'æ¥åºéé¢'"--> |
| | | <!-- v-model="row.bad_money"--> |
| | | <!-- placeholder="请è¾å
¥"--> |
| | | <!-- />--> |
| | | <!-- <div v-else>{{ row.bad_money }}</div>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="æä½" |
| | | width="120" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <div v-if=" row.verify==='Y'"> |
| | | <el-tooltip class="item" effect="dark" content="æ¥å·¥åæ ¸" placement="top"> |
| | | <i class="el-icon-document" style="color:#42b983;cursor:pointer;margin-right: 15px" @click="noVerify(row)" /> |
| | | </el-tooltip> |
| | | </div> |
| | | <div v-if=" row.verify==='N'"> |
| | | |
| | | <el-tooltip v-if="row.isVisible>0" class="item" effect="dark" content="æ¥å·¥ä¿å" placement="top"> |
| | | <i style="color:#42b983;cursor:pointer;margin-right: 15px" class="el-icon-circle-check" @click="save(row)" /> |
| | | </el-tooltip> |
| | | <el-tooltip v-if="row.isVisible===0" class="item" effect="dark" content="æ¥å·¥ä¿®æ¹" placement="top"> |
| | | <i class="el-icon-edit-outline" @click="edit(row)" /> |
| | | </el-tooltip> |
| | | |
| | | <el-tooltip class="item" effect="dark" content="æ¥å·¥å®¡æ ¸" placement="top"> |
| | | <i class="el-icon-document-checked" style="color:#42b983;cursor:pointer;margin-right: 15px" @click="verify(row)" /> |
| | | </el-tooltip> |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="æ¥å·¥å é¤" placement="top"> |
| | | <i class="el-icon-delete" @click="del(row)" /> |
| | | </el-tooltip> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <!--å页--> |
| | | <pagination |
| | | :total="total" |
| | | :page.sync="form.page" |
| | | :limit.sync="form.rows" |
| | | align="right" |
| | | layout="total,prev, pager, next,sizes" |
| | | popper-class="select_bottom" |
| | | @pagination="getMesOrderStepVerifySearch" |
| | | /> |
| | | </div> |
| | | |
| | | <!-- 导å
¥ç»ä»¶--> |
| | | <import-picker |
| | | ref="importPickerFunc" |
| | | class="importPickerClass" |
| | | :shows.sync="shows" |
| | | :title="title_value" |
| | | :colos="colos" |
| | | :code="code" |
| | | /> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/Pagination' |
| | | import { AddUpdateOrganization, DeleteOrganization, OrganizationSearch, PrentOrganization } from '@/api/jcsz' |
| | | import { getCookie } from '@/utils/auth' |
| | | import ImportPicker from '@/components/ImportPicker' |
| | | import { handleDatetime, validateCode } from '@/utils/global' |
| | | import { |
| | | MesOrderStepDeleteSeave, |
| | | MesOrderStepNoVerifySeave, |
| | | MesOrderStepVerifySearch, |
| | | MesOrderStepVerifySeave |
| | | } from '@/api/scgl' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | | components: { |
| | | Pagination, ImportPicker |
| | | }, |
| | | data() { |
| | | return { |
| | | mouseHoverType: 'mouseout', |
| | | isExpandForm: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | | verify: '', // å®¡æ ¸ç¶æ |
| | | wo_code: '', // å·¥åç¼å· |
| | | partnumber: '', // 产åç¼ç |
| | | partname: '', // 产ååç§° |
| | | partspec: '', // 产åè§æ ¼ |
| | | reportuser: '', // æ¥å·¥äººå |
| | | reportdate: '', // æ¥å·¥æ¶é´ |
| | | prop: 'lm_date', // æåºå段 |
| | | order: 'desc', // æåºå段 |
| | | page: 1, // 第å 页 |
| | | rows: 20 // æ¯é¡µå¤å°æ¡ |
| | | }, |
| | | verifySelectArr: [ |
| | | { label: 'å·²å®¡æ ¸', value: 'Y' }, |
| | | { label: 'æªå®¡æ ¸', value: 'N' } |
| | | ], |
| | | |
| | | total: 10, |
| | | tableData: [], |
| | | |
| | | tabClickIndex: null, // ç¹å»çåå
æ ¼ |
| | | tabClickLabel: '', // å½åç¹å»çåå |
| | | |
| | | title_value: 'æ°æ®å¯¼å
¥ / ç¹æ£é¨ä½', |
| | | code: '4', |
| | | shows: false |
| | | |
| | | } |
| | | }, |
| | | watch: { |
| | | shows() { |
| | | if (!this.shows) { |
| | | this.getMesOrderStepVerifySearch() |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.getMesOrderStepVerifySearch() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | async getMesOrderStepVerifySearch() { |
| | | let tempDate = this.form.reportdate |
| | | if (tempDate.length > 0) { |
| | | tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1]) |
| | | } |
| | | |
| | | const data = { |
| | | verify: this.form.verify, // å®¡æ ¸ç¶æ |
| | | wo_code: this.form.wo_code, // å·¥åç¼å· |
| | | partnumber: this.form.partnumber, // 产åç¼ç |
| | | partname: this.form.partname, // 产ååç§° |
| | | partspec: this.form.partspec, // 产åè§æ ¼ |
| | | reportuser: this.form.reportuser, // æ¥å·¥äººå |
| | | reportdate: tempDate, // æ¥å·¥æ¶é´ |
| | | prop: 'eqp_code', // æåºå段 |
| | | order: 'desc', // æåºå段 |
| | | page: 1, // 第å 页 |
| | | rows: 20 // æ¯é¡µå¤å°æ¡ |
| | | } |
| | | |
| | | const res = await MesOrderStepVerifySearch(data) |
| | | this.tableData = res.data |
| | | this.total = res.count |
| | | |
| | | this.tableData.forEach(item => { |
| | | let number = Math.random() * Math.random()// ä½ä¸ºå 餿¶çæ è¯ç¬¦ |
| | | number = number === 0 ? (10 + Math.random()) : number |
| | | |
| | | item.isVisible = 0 |
| | | item.number = number |
| | | }) |
| | | }, |
| | | // æåºæ¹åæ¶ |
| | | sortChange({ column, prop, order }) { |
| | | if (order === 'descending') { |
| | | order = 'desc' |
| | | } else if (order === 'ascending') { |
| | | order = 'asc' |
| | | } else { |
| | | order = 'desc' |
| | | } |
| | | this.form.order = order |
| | | this.form.prop = prop |
| | | this.getMesOrderStepVerifySearch() |
| | | }, |
| | | // æ¥è¯¢ |
| | | search() { |
| | | this.getMesOrderStepVerifySearch() |
| | | }, |
| | | // 导å
¥æé® |
| | | upload() { |
| | | this.shows = true |
| | | this.$refs.importPickerFunc.newDataFunc() |
| | | }, |
| | | colos() { |
| | | this.shows = false |
| | | }, |
| | | // éç½® |
| | | reset() { |
| | | this.form.verify = '' |
| | | this.form.wo_code = '' |
| | | this.form.partnumber = '' |
| | | this.form.partname = '' |
| | | this.form.partspec = '' |
| | | this.form.reportuser = '' |
| | | this.form.reportdate = '' |
| | | this.getMesOrderStepVerifySearch() |
| | | }, |
| | | // æ¥å·¥å®¡æ ¸ |
| | | verify(row) { |
| | | const data = { |
| | | // report_dvalue: '+1', |
| | | // ng_dvalue: '+1', |
| | | // bad_dvalue: '+1', |
| | | // badmoney_dvalue: '+1' |
| | | |
| | | 'id': row.id, |
| | | 'sbid': row.sbid, |
| | | 'wo_code': row.wo_code, |
| | | 'partnumber': row.partnumber, |
| | | 'task_qty': row.task_qty, |
| | | 'wkshp_code': row.wkshp_code, |
| | | 'eqp_code': row.eqp_code, |
| | | 'route_code': row.route_code, |
| | | 'step_seq': row.step_seq, |
| | | 'step_code': row.step_code, |
| | | 'flw_type': row.flw_type, |
| | | 'first_choke': row.first_choke, |
| | | 'last_choke': row.last_choke, |
| | | 'unprice': row.unprice, |
| | | 'usercode': row.usercode, |
| | | 'report_date': row.report_date, |
| | | 'report_qty': row.report_qty, |
| | | 'report_dvalue': '+1', |
| | | 'ng_qty': row.ng_qty, |
| | | 'ng_dvalue': '+1', |
| | | 'bad_qty': row.bad_qty, |
| | | 'bad_dvalue': '+1', |
| | | 'bad_money': row.bad_money, |
| | | 'badmoney_dvalue': '+1' |
| | | |
| | | } |
| | | // const objData = { ...row, ...data } |
| | | |
| | | console.log(data, 1) |
| | | |
| | | MesOrderStepVerifySeave([data]).then(r => { |
| | | if (r.code === '200') { |
| | | this.$message.success('å®¡æ ¸æåï¼') |
| | | } |
| | | }) |
| | | }, |
| | | // æ¥å·¥å审 |
| | | noVerify(row) { |
| | | MesOrderStepNoVerifySeave([row]).then(r => { |
| | | if (r.code === '200') { |
| | | this.$message.success('å®¡æ ¸æåï¼') |
| | | } |
| | | }) |
| | | }, |
| | | // ä¿®æ¹æé® |
| | | edit(row) { |
| | | console.log(row, 1) |
| | | console.log(row.number, 1) |
| | | console.log(row.isVisible, 1) |
| | | |
| | | if (this.tableData.find(i => i.isVisible === 1)) { |
| | | return this.$message.info('请å
ä¿åå½åæ°æ®ï¼') |
| | | } |
| | | |
| | | row.isVisible = 1 |
| | | }, |
| | | // å é¤æé® |
| | | async del(row) { |
| | | this.$confirm('æ¯å¦ç¡®è®¤å é¤?', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | MesOrderStepDeleteSeave([row]).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('å 餿å!') |
| | | if (this.form.page > 1 && this.tableData.length === 1) { |
| | | this.form.page-- |
| | | } |
| | | this.getMesOrderStepVerifySearch() |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message.info('已忶å é¤') |
| | | }) |
| | | }, |
| | | save(row) { |
| | | row.isVisible = 0 |
| | | }, |
| | | // è¡¨æ ¼åå»ç¹å» |
| | | cellDblclick(row, column, cell, event) { |
| | | console.log(row, column, cell, event) |
| | | console.log(column.label) |
| | | console.log(row.RowNum) |
| | | switch (column.label) { |
| | | case 'æ¥å·¥æ°é': |
| | | this.tabClickIndex = row.RowNum |
| | | this.tabClickLabel = column.label |
| | | break |
| | | case 'ä¸è¯æ°é': |
| | | this.tabClickIndex = row.RowNum |
| | | this.tabClickLabel = column.label |
| | | break |
| | | case 'æ¥åºæ°é': |
| | | this.tabClickIndex = row.RowNum |
| | | this.tabClickLabel = column.label |
| | | break |
| | | case 'æ¥åºéé¢': |
| | | this.tabClickIndex = row.RowNum |
| | | this.tabClickLabel = column.label |
| | | break |
| | | default: |
| | | return |
| | | } |
| | | }, |
| | | // å车äºä»¶ |
| | | // keyUpEnterNative(val, row) { |
| | | // console.log(val, row, 9) |
| | | // }, |
| | | |
| | | // è·å页é¢é«åº¦ |
| | | getHeight() { |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 85 |
| | | this.tableHeight = this.mainHeight - 210 |
| | | this.$refs.tableDataRef.doLayout() |
| | | }) |
| | | }, |
| | | tableRowClassName({ row, rowIndex }) { |
| | | return 'custom-row' |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <!--å
Œ
±é¡µé¢æ ·å¼--> |
| | | <style lang="scss" scoped> |
| | | $main_color: #42b983; |
| | | |
| | | ::v-deep .el-range__icon{ |
| | | line-height: 28px !important; |
| | | } |
| | | ::v-deep .el-range-separator{ |
| | | line-height: 28px !important; |
| | | } |
| | | ::v-deep .el-range-input{ |
| | | font-size: 14px; |
| | | } |
| | | ::v-deep .el-range-separator{ |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | ::v-deep .el-button--text { |
| | | font-size: 14px; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .el-icon-share, .el-icon-delete, .el-icon-edit-outline { |
| | | color: $main_color; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .el-icon-edit-outline { |
| | | margin-right: 15px; |
| | | } |
| | | |
| | | ::v-deep .el-button--primary, .el-button--default, .el-button--info { |
| | | height: 34px; |
| | | display: flex; |
| | | align-items: center; |
| | | padding: 0 15px; |
| | | } |
| | | |
| | | ::v-deep .el-button--primary { |
| | | //background-color: $main_color !important; |
| | | } |
| | | |
| | | ::v-deep .el-button--default { |
| | | background-color: #f8f8fa; |
| | | border: none; |
| | | } |
| | | |
| | | ::v-deep .el-input__inner { |
| | | height: 34px; |
| | | line-height: 34px; |
| | | //color: #a7a7a7; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__body { |
| | | padding: 20px 100px !important; |
| | | } |
| | | |
| | | ::v-deep .dialogVisibleRoles .el-dialog__body { |
| | | padding: 20px 20px !important; |
| | | } |
| | | |
| | | ::v-deep .importPickerClass .el-dialog__body { |
| | | padding: 20px 20px !important; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__footer { |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | |
| | | ::v-deep .el-table .caret-wrapper { |
| | | transform: scale(0.8); |
| | | } |
| | | |
| | | ::v-deep .cell { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | ::v-deep .el-table::before { |
| | | height: 0; |
| | | } |
| | | |
| | | ::v-deep .el-table__body-wrapper { |
| | | background-color: #f8f8fa; |
| | | } |
| | | |
| | | ::v-deep .el-table__body .el-table__row.hover-row td { |
| | | background-color: #eaecef; |
| | | } |
| | | |
| | | ::v-deep .el-form--inline .el-form-item__label { |
| | | color: #a7a7a7; |
| | | } |
| | | |
| | | .body ::v-deep .el-divider { |
| | | border: 1px solid #eee; |
| | | width: 99%; |
| | | margin: 10px auto; |
| | | } |
| | | |
| | | .body ::v-deep .el-form-item { |
| | | margin-bottom: 0; |
| | | } |
| | | |
| | | .userDialogVisible ::v-deep .el-form-item { |
| | | margin-bottom: 0; |
| | | } |
| | | |
| | | ::v-deep .el-select__caret { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .tableFixed { |
| | | ::v-deep .el-table__fixed-right { |
| | | height: 100% !important; |
| | | } |
| | | |
| | | ::v-deep .el-table__fixed { |
| | | height: 100% !important; |
| | | } |
| | | } |
| | | </style> |
| | | <style> |
| | | |
| | | .el-table .custom-row { |
| | | background: #f8f8fa; |
| | | } |
| | | </style> |