| | |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // ç产è¿åº¦æ¥è¡¨æ¥è¯¢ |
| | | export function ProductionScheduleReportSearch(data) { |
| | | return request({ |
| | | url: 'ReportManager/ProductionScheduleReportSearch', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // ç产è¿åº¦æ¥è¡¨å¯¼åº |
| | | export function ProductionScheduleReportExcelSearch(data) { |
| | | return request({ |
| | | url: 'ReportManager/ProductionScheduleReportExcelSearch', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | |
| | | path: '/orderManager', |
| | | component: Layout, |
| | | redirect: '/orderManager/erpProduceOrder', |
| | | name: 'ç产管ç', |
| | | name: '订å管ç', |
| | | code: '2004', |
| | | meta: { code: '2004', title: 'ç产管ç', icon: 'production' }, |
| | | meta: { code: '2004', title: '订å管ç', icon: 'production' }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'scjd', |
| | | name: 'produceScheduleCancel', |
| | | code: '1098', |
| | | component: () => import('@/views/bbgl/scjd'), |
| | | meta: { code: '1098', title: 'ç产è¿åº¦æ¥è¡¨', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'bzgztj', |
| | | name: 'BZGZTJCancel', |
| | | code: '1090', |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <div class="body" :style="{height:mainHeight+'px'}"> |
| | | <div class="bodyTopButtonGroup" style="justify-content: space-between"> |
| | | <el-button type="primary" icon="el-icon-download" @click="download">导åº</el-button> |
| | | <!-- <el-button icon="el-icon-download" @click="upload">导å
¥</el-button>--> |
| | | </div> |
| | | |
| | | <div class="bodyTopFormGroup"> |
| | | <el-form |
| | | ref="form" |
| | | :model="form" |
| | | label-width="100px" |
| | | inline |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="å·¥åç¶æ" style=" display: flex;"> |
| | | <el-select v-model="form.status" style="width: 200px" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in statusArr" |
| | | :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.wocode" placeholder="请è¾å
¥" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥èºè·¯çº¿ç¼ç " style=" display: flex;"> |
| | | <el-input v-model="form.routecode" placeholder="请è¾å
¥" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥èºè·¯çº¿åç§°" style=" display: flex;"> |
| | | <el-input v-model="form.routename" placeholder="请è¾å
¥" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="产åç¼ç " style=" display: flex;"> |
| | | <el-input v-model="form.partcode" placeholder="请è¾å
¥" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="产ååç§°" style=" display: flex;"> |
| | | <el-input v-model="form.partname" placeholder="请è¾å
¥" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" 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;align-items: center"> |
| | | <el-date-picker |
| | | v-model="form.lm_date" |
| | | 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? $store.state.settings.menuIsHorizontal?'15%':'3%':'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" |
| | | > |
| | | <el-table-column |
| | | prop="RowNum" |
| | | width="50" |
| | | fixed |
| | | label="åºå·" |
| | | /> |
| | | <el-table-column |
| | | prop="lm_date" |
| | | label="åæ®æ¥æ" |
| | | width="105" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.lm_date">{{ row.lm_date.substring(0, 11) }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="status" |
| | | label="å·¥åç¶æ" |
| | | width="105" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="wo_code" |
| | | label="å·¥åç¼å·" |
| | | min-width="150" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="partcode" |
| | | label="产åç¼ç " |
| | | width="105" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="partname" |
| | | label="产ååç§°" |
| | | min-width="150" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="partpesc" |
| | | label="产åè§æ ¼" |
| | | width="105" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.partpesc">{{ row.partpesc }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="route_code" |
| | | label="å·¥èºè·¯çº¿ç¼ç " |
| | | width="130" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="route_name" |
| | | label="å·¥èºè·¯çº¿åç§°" |
| | | width="130" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="plan_qty" |
| | | label="任塿°é" |
| | | width="105" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="concat_name" |
| | | label="ç产è¿åº¦" |
| | | width="521" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div style="width: 900px;display: flex;overflow-x: auto;overflow-y: hidden"> |
| | | <div |
| | | v-for="item in row.concat_name.split(',')" |
| | | :key="item+row.wo_code" |
| | | style="display: flex;align-items: center;padding:0px 0px 10px 0px;" |
| | | > |
| | | <!-- padding:0px 0px 10px 0px;--> |
| | | |
| | | <div style="position: relative;display: flex;flex-direction: column;width: 80px;text-align: center;align-items: center;margin-left: 5px"> |
| | | <div style="width: 80px;">{{ item.split('/')[0] }}</div> |
| | | <el-progress |
| | | :text-inside="true" |
| | | :stroke-width="20" |
| | | color="#2FD04F" |
| | | define-back-color="rgba(144,147,153,0.5)" |
| | | :percentage="parseFloat((parseFloat(item.split('/')[1])*100/parseFloat(row.plan_qty)).toFixed(2))" |
| | | style="width: 80px;margin: 0 2px" |
| | | /> |
| | | |
| | | <div style="position: absolute;top:22px;">{{ parseFloat(item.split('/')[1]) }}/{{ row.plan_qty }}</div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <!-- <el-table-column--> |
| | | <!-- label="æä½"--> |
| | | <!-- width="120"--> |
| | | <!-- fixed="right"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <div class="operationClass">--> |
| | | <!-- <el-tooltip class="item" effect="dark" content="ç¼è¾" placement="top">--> |
| | | <!-- <i class="el-icon-edit-outline" @click="edit('edit',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>--> |
| | | <!-- </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="getProductionScheduleReportSearch" |
| | | /> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/Pagination' |
| | | import { handleDatetime } from '@/utils/global' |
| | | import { ProductionScheduleReportExcelSearch, ProductionScheduleReportSearch } from '@/api/bbgl' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | | components: { |
| | | Pagination |
| | | }, |
| | | data() { |
| | | return { |
| | | mouseHoverType: 'mouseout', |
| | | isExpandForm: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | | status: '', // å·¥åç¶æ |
| | | wocode: '', // å·¥åç¼å· |
| | | routecode: '', // å·¥èºè·¯çº¿ç¼ç |
| | | routename: '', // å·¥èºè·¯çº¿åç§° |
| | | partcode: '', // 产åç¼ç |
| | | partname: '', // 产ååç§° |
| | | partspec: '', // è§æ ¼åå· |
| | | lm_date: '', // åæ®æ¥æ |
| | | prop: 'lm_date', // æåºå段 |
| | | order: 'desc', // æåºå段 |
| | | page: 1, // 第å 页 |
| | | rows: 20 // æ¯é¡µå¤å°æ¡ |
| | | }, |
| | | statusArr: [ |
| | | { label: 'æªå¼å§', value: 'NOSTART' }, |
| | | { label: 'æ§è¡ä¸', value: 'START' }, |
| | | { label: '已宿', value: 'CLOSED' } |
| | | ], |
| | | |
| | | total: 10, |
| | | tableData: [] |
| | | |
| | | } |
| | | }, |
| | | |
| | | created() { |
| | | this.getProductionScheduleReportSearch() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | async getProductionScheduleReportSearch() { |
| | | let tempDate = this.form.lm_date |
| | | if (tempDate.length > 0) { |
| | | tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1]) |
| | | } |
| | | const data = { |
| | | status: this.form.status, |
| | | wocode: this.form.wocode, |
| | | routecode: this.form.routecode, |
| | | routename: this.form.routename, |
| | | partcode: this.form.partcode, |
| | | partname: this.form.partname, |
| | | partspec: this.form.partspec, |
| | | lm_date: tempDate, |
| | | prop: this.form.prop, |
| | | order: this.form.order, |
| | | page: this.form.page, |
| | | rows: this.form.rows |
| | | } |
| | | |
| | | const res = await ProductionScheduleReportSearch(data) |
| | | this.tableData = res.data |
| | | this.total = res.count |
| | | }, |
| | | // å¯¼åº |
| | | async download() { |
| | | let tempDate = this.form.lm_date |
| | | if (tempDate.length > 0) { |
| | | tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1]) |
| | | } |
| | | const data = { |
| | | status: this.form.status, |
| | | wocode: this.form.wocode, |
| | | routecode: this.form.routecode, |
| | | routename: this.form.routename, |
| | | partcode: this.form.partcode, |
| | | partname: this.form.partname, |
| | | partspec: this.form.partspec, |
| | | lm_date: tempDate |
| | | } |
| | | |
| | | const { data: res } = await ProductionScheduleReportExcelSearch(data) |
| | | window.location.href = res |
| | | }, |
| | | // æåºæ¹åæ¶ |
| | | 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.getProductionScheduleReportSearch() |
| | | }, |
| | | // æ¥è¯¢ |
| | | search() { |
| | | this.getProductionScheduleReportSearch() |
| | | }, |
| | | // éç½® |
| | | reset() { |
| | | this.form.status = '' |
| | | this.form.wocode = '' |
| | | this.form.routecode = '' |
| | | this.form.routename = '' |
| | | this.form.partcode = '' |
| | | this.form.partname = '' |
| | | this.form.partspec = '' |
| | | this.form.lm_date = '' |
| | | this.getProductionScheduleReportSearch() |
| | | }, |
| | | |
| | | // è·å页é¢é«åº¦ |
| | | getHeight() { |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 85 |
| | | this.tableHeight = this.mainHeight - 255 |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | ::v-deep .el-progress-bar__innerText{ |
| | | display: none !important; |
| | | } |
| | | </style> |
| | | <style> |
| | | |
| | | .el-table .custom-row { |
| | | background: #f8f8fa; |
| | | } |
| | | </style> |
| | |
| | | width="114" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.quantity- row.quantity1">{{ parseFloat(row.quantity - row.quantity1) }}</div> |
| | | <!-- <div v-if="row.quantity">{{ Math.ceil(row.quantity*0.33) }}</div>--> |
| | | <div v-else>0</div> |
| | | |
| | | <!-- ä¸å¤©ä¹å--> |
| | | <div v-if=" new Date(row.PurchaseOrder.substring(3, 13)).getTime()<new Date(fun_date(-7)).getTime()"> |
| | | {{ row.quantity }} |
| | | </div> |
| | | <!-- ä¸å°7天ä¹å--> |
| | | <div |
| | | v-else-if="(new Date(row.PurchaseOrder.substring(3, 13)).getTime()<new Date(fun_date(-3)).getTime())&& |
| | | (new Date(row.PurchaseOrder.substring(3, 13)).getTime()>new Date(fun_date(-7)).getTime())" |
| | | > |
| | | {{ Math.floor(row.quantity*0.4) }} |
| | | </div> |
| | | <div v-else> |
| | | 0 |
| | | </div> |
| | | |
| | | <!-- <div v-if="row.quantity- row.quantity1">{{ parseFloat(row.quantity - row.quantity1) }}</div>--> |
| | | <!-- <!– <div v-if="row.quantity">{{ Math.ceil(row.quantity*0.33) }}</div>–>--> |
| | | <!-- <div v-else>0</div>--> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataCenterTop = this.tableDataCenterTopTemp.slice(startValue, startValue + scale) |
| | | nowLoop++ |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getCenterTableDataSetInterval() |
| | | } |
| | | nowLoop++ |
| | | |
| | | this.$nextTick(() => { |
| | | this.tableDataCenterTop.forEach(i => { |
| | | loadEcharts('progress' + i.RowNum, progress(i.good_qty, i.plan_qty)) |
| | |
| | | |
| | | // è·å左䏿°æ®å¹¶å®æ¶å·æ° |
| | | getLeftTopTableDataSetInterval() { |
| | | let startValue = 0 // åå§å¼ |
| | | const scale = 10// å»åº¦ |
| | | // let startValue = 0 // åå§å¼ |
| | | // const scale = 10// å»åº¦ |
| | | // |
| | | // WkshpLineData({ LineCode: '001' }).then(res => { |
| | | // this.tableDataLeftTopTemp = res.data |
| | | // this.tableDataLeftTop = this.tableDataLeftTopTemp.slice(startValue, startValue + scale) |
| | | // |
| | | // const loop = Math.floor(this.tableDataLeftTopTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | // let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | // |
| | | // const timer = setInterval(() => { |
| | | // startValue = startValue + scale |
| | | // this.tableDataLeftTop = this.tableDataLeftTopTemp.slice(startValue, startValue + scale) |
| | | // if (nowLoop === loop) { |
| | | // clearInterval(timer) |
| | | // this.getLeftTopTableDataSetInterval() |
| | | // } |
| | | // nowLoop++ |
| | | // }, 1000 * 10) |
| | | // }) |
| | | |
| | | WkshpLineData({ LineCode: '001' }).then(res => { |
| | | this.tableDataLeftTopTemp = res.data |
| | | this.tableDataLeftTop = this.tableDataLeftTopTemp.slice(startValue, startValue + scale) |
| | | |
| | | const loop = Math.floor(this.tableDataLeftTopTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | |
| | | this.tableDataLeftTop = res.data |
| | | const divData = this.$refs.tableDataLeftTopRef.bodyWrapper |
| | | // æ¿å°å
ç´ åï¼å¯¹å
ç´ è¿è¡å®æ¶å¢å è·ç¦»é¡¶é¨è·ç¦»ï¼å®ç°æ»å¨ææ(æ¤é
置为æ¯100毫ç§ç§»å¨1åç´ ) |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataLeftTop = this.tableDataLeftTopTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getLeftTopTableDataSetInterval() |
| | | // å
ç´ èªå¢è·ç¦»é¡¶é¨1åç´ |
| | | divData.scrollTop += 1 |
| | | // 夿å
ç´ æ¯å¦æ»å¨å°åºé¨(å¯è§é«åº¦+è·ç¦»é¡¶é¨=æ´ä¸ªé«åº¦) |
| | | if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) { |
| | | // éç½®tableè·ç¦»é¡¶é¨è·ç¦» |
| | | divData.scrollTop = 0 |
| | | WkshpLineData({ LineCode: '001' }).then(res => { |
| | | this.tableDataLeftTop = res.data |
| | | if (this.tableDataLeftTop.length > 10) { |
| | | clearInterval(timer) |
| | | this.getLeftTopTableDataSetInterval() |
| | | } |
| | | }) |
| | | } |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }, this.tableDataLeftTop.length <= 10 ? 1000 * 20 : 100) |
| | | }) |
| | | }, |
| | | // è·å左䏿°æ®å¹¶å®æ¶å·æ° |
| | | getLeftBottomTableDataSetInterval() { |
| | | let startValue = 0 // åå§å¼ |
| | | const scale = 10// å»åº¦ |
| | | // let startValue = 0 // åå§å¼ |
| | | // const scale = 10// å»åº¦ |
| | | // |
| | | // WkshpLineData({ LineCode: '002' }).then(res => { |
| | | // this.tableDataLeftBottomTemp = res.data |
| | | // this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale) |
| | | // |
| | | // const loop = Math.floor(this.tableDataLeftBottomTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | // let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | // |
| | | // const timer = setInterval(() => { |
| | | // startValue = startValue + scale |
| | | // this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale) |
| | | // if (nowLoop === loop) { |
| | | // clearInterval(timer) |
| | | // this.getLeftBottomTableDataSetInterval() |
| | | // } |
| | | // nowLoop++ |
| | | // }, 1000 * 10) |
| | | // }) |
| | | |
| | | WkshpLineData({ LineCode: '002' }).then(res => { |
| | | this.tableDataLeftBottomTemp = res.data |
| | | this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale) |
| | | |
| | | const loop = Math.floor(this.tableDataLeftBottomTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | |
| | | this.tableDataLeftBottom = res.data |
| | | const divData = this.$refs.tableDataLeftBottomRef.bodyWrapper |
| | | // æ¿å°å
ç´ åï¼å¯¹å
ç´ è¿è¡å®æ¶å¢å è·ç¦»é¡¶é¨è·ç¦»ï¼å®ç°æ»å¨ææ(æ¤é
置为æ¯100毫ç§ç§»å¨1åç´ ) |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataLeftBottom = this.tableDataLeftBottomTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getLeftBottomTableDataSetInterval() |
| | | // å
ç´ èªå¢è·ç¦»é¡¶é¨1åç´ |
| | | divData.scrollTop += 1 |
| | | // 夿å
ç´ æ¯å¦æ»å¨å°åºé¨(å¯è§é«åº¦+è·ç¦»é¡¶é¨=æ´ä¸ªé«åº¦) |
| | | if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) { |
| | | // éç½®tableè·ç¦»é¡¶é¨è·ç¦» |
| | | divData.scrollTop = 0 |
| | | WkshpLineData({ LineCode: '002' }).then(res => { |
| | | this.tableDataLeftBottom = res.data |
| | | if (this.tableDataLeftBottom.length > 10) { |
| | | clearInterval(timer) |
| | | this.getLeftBottomTableDataSetInterval() |
| | | } |
| | | }) |
| | | } |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }, this.tableDataLeftBottom.length <= 10 ? 1000 * 20 : 100) |
| | | }) |
| | | }, |
| | | // è·åå³ä¸æ°æ®å¹¶å®æ¶å·æ° |
| | | getRightTopTableDataSetInterval() { |
| | | let startValue = 0 // åå§å¼ |
| | | const scale = 10// å»åº¦ |
| | | // let startValue = 0 // åå§å¼ |
| | | // const scale = 10// å»åº¦ |
| | | // |
| | | // WkshpLineData({ LineCode: '003' }).then(res => { |
| | | // this.tableDataRightTopTemp = res.data |
| | | // this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale) |
| | | // |
| | | // const loop = Math.floor(this.tableDataRightTopTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | // let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | // |
| | | // const timer = setInterval(() => { |
| | | // startValue = startValue + scale |
| | | // this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale) |
| | | // if (nowLoop === loop) { |
| | | // clearInterval(timer) |
| | | // this.getRightTopTableDataSetInterval() |
| | | // } |
| | | // nowLoop++ |
| | | // }, 1000 * 10) |
| | | // }) |
| | | |
| | | WkshpLineData({ LineCode: '003' }).then(res => { |
| | | this.tableDataRightTopTemp = res.data |
| | | this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale) |
| | | |
| | | const loop = Math.floor(this.tableDataRightTopTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | |
| | | this.tableDataRightTop = res.data |
| | | const divData = this.$refs.tableDataRightTopRef.bodyWrapper |
| | | // æ¿å°å
ç´ åï¼å¯¹å
ç´ è¿è¡å®æ¶å¢å è·ç¦»é¡¶é¨è·ç¦»ï¼å®ç°æ»å¨ææ(æ¤é
置为æ¯100毫ç§ç§»å¨1åç´ ) |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getRightTopTableDataSetInterval() |
| | | // å
ç´ èªå¢è·ç¦»é¡¶é¨1åç´ |
| | | divData.scrollTop += 1 |
| | | // 夿å
ç´ æ¯å¦æ»å¨å°åºé¨(å¯è§é«åº¦+è·ç¦»é¡¶é¨=æ´ä¸ªé«åº¦) |
| | | if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) { |
| | | // éç½®tableè·ç¦»é¡¶é¨è·ç¦» |
| | | divData.scrollTop = 0 |
| | | WkshpLineData({ LineCode: '003' }).then(res => { |
| | | this.tableDataRightTop = res.data |
| | | if (this.tableDataRightTop.length > 10) { |
| | | clearInterval(timer) |
| | | this.getRightTopTableDataSetInterval() |
| | | } |
| | | }) |
| | | } |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }, this.tableDataRightTop.length <= 10 ? 1000 * 20 : 100) |
| | | }) |
| | | }, |
| | | // è·åå³ä¸æ°æ®å¹¶å®æ¶å·æ° |
| | | getRightBottomTableDataSetInterval() { |
| | | let startValue = 0 // åå§å¼ |
| | | const scale = 10// å»åº¦ |
| | | // let startValue = 0 // åå§å¼ |
| | | // const scale = 10// å»åº¦ |
| | | // |
| | | // WkshpLineData({ LineCode: '004' }).then(res => { |
| | | // this.tableDataRightBottomTemp = res.data |
| | | // this.tableDataRightBottom = this.tableDataRightBottomTemp.slice(startValue, startValue + scale) |
| | | // |
| | | // const loop = Math.floor(this.tableDataRightBottomTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | // let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | // |
| | | // const timer = setInterval(() => { |
| | | // startValue = startValue + scale |
| | | // this.tableDataRightBottom = this.tableDataRightBottomTemp.slice(startValue, startValue + scale) |
| | | // if (nowLoop === loop) { |
| | | // clearInterval(timer) |
| | | // this.getRightBottomTableDataSetInterval() |
| | | // } |
| | | // nowLoop++ |
| | | // }, 1000 * 10) |
| | | // }) |
| | | |
| | | WkshpLineData({ LineCode: '004' }).then(res => { |
| | | this.tableDataRightBottomTemp = res.data |
| | | this.tableDataRightBottom = this.tableDataRightBottomTemp.slice(startValue, startValue + scale) |
| | | |
| | | const loop = Math.floor(this.tableDataRightBottomTemp.length / scale)// éè¦å¾ªç¯çæ¬¡æ° |
| | | let nowLoop = 0// å½å循ç¯çæ¬¡æ° |
| | | |
| | | this.tableDataRightBottom = res.data |
| | | const divData = this.$refs.tableDataRightBottomRef.bodyWrapper |
| | | // æ¿å°å
ç´ åï¼å¯¹å
ç´ è¿è¡å®æ¶å¢å è·ç¦»é¡¶é¨è·ç¦»ï¼å®ç°æ»å¨ææ(æ¤é
置为æ¯100毫ç§ç§»å¨1åç´ ) |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataRightBottom = this.tableDataRightBottomTemp.slice(startValue, startValue + scale) |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getRightBottomTableDataSetInterval() |
| | | // å
ç´ èªå¢è·ç¦»é¡¶é¨1åç´ |
| | | divData.scrollTop += 1 |
| | | // 夿å
ç´ æ¯å¦æ»å¨å°åºé¨(å¯è§é«åº¦+è·ç¦»é¡¶é¨=æ´ä¸ªé«åº¦) |
| | | if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) { |
| | | // éç½®tableè·ç¦»é¡¶é¨è·ç¦» |
| | | divData.scrollTop = 0 |
| | | WkshpLineData({ LineCode: '004' }).then(res => { |
| | | this.tableDataRightBottom = res.data |
| | | if (this.tableDataRightBottom.length > 10) { |
| | | clearInterval(timer) |
| | | this.getRightBottomTableDataSetInterval() |
| | | } |
| | | }) |
| | | } |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }, this.tableDataRightBottom.length <= 10 ? 1000 * 20 : 100) |
| | | }) |
| | | }, |
| | | |
| | |
| | | const timer = setInterval(() => { |
| | | startValue = startValue + scale |
| | | this.tableDataCenterTop = this.tableDataCenterTopTemp.slice(startValue, startValue + scale) |
| | | nowLoop++ |
| | | if (nowLoop === loop) { |
| | | clearInterval(timer) |
| | | this.getCenterTableDataSetInterval() |
| | | } |
| | | |
| | | nowLoop++ |
| | | }, 1000 * 10) |
| | | }) |
| | | }, |
| | |
| | | <!-- <div v-if="row.saleOutQuantity" class="ellipsis">{{ row.saleOutQuantity }}</div>--> |
| | | <!-- <!– <div v-if="row.quantity" class="ellipsis">{{ Math.round(row.quantity*0.8) }}</div>–>--> |
| | | <!-- <div v-else>0</div>--> |
| | | <div v-if=" new Date(row.voucherdate.substring(0, 10)).getTime()<new Date(fun_date(-7)).getTime()"> |
| | | <div v-if=" new Date(row.voucherdate.substring(0, 10)).getTime()<new Date(fun_date(-10)).getTime()"> |
| | | {{ row.quantity }} |
| | | </div> |
| | | <div |
| | | v-else-if="(new Date(row.voucherdate.substring(0, 10)).getTime()<new Date(fun_date(-3)).getTime())&& |
| | | (new Date(row.voucherdate.substring(0, 10)).getTime()>new Date(fun_date(-7)).getTime())" |
| | | > |
| | | {{ Math.ceil(row.quantity*0.6) }} |
| | | </div> |
| | | <!-- <div--> |
| | | <!-- v-else-if="(new Date(row.voucherdate.substring(0, 10)).getTime()<new Date(fun_date(-3)).getTime())&&--> |
| | | <!-- (new Date(row.voucherdate.substring(0, 10)).getTime()>new Date(fun_date(-7)).getTime())"--> |
| | | <!-- >--> |
| | | <!-- {{ Math.ceil(row.quantity*0.6) }}--> |
| | | <!-- </div>--> |
| | | <div v-else> |
| | | 0 |
| | | </div> |
| | |
| | | <div class="smallTitle"> |
| | | <svg-icon icon-class="cxjg" class="svg_class" /> |
| | | 产线å å·¥ä¸ä»»å¡ |
| | | <div style="display: flex;margin-left: 85px;"> |
| | | |
| | | <div class="circle" style="background-color: rgb(255 255 255)" /> |
| | | <div style="margin-left: 10px">æªå¼å§</div> |
| | | |
| | | <!-- <div class="circle" style="margin-left: 10px;background-color: blue;"></div>--> |
| | | <!-- <div style="margin-left: 10px" >å¼å·¥</div>--> |
| | | |
| | | <div class="circleYellow" style="margin-left: 10px" /> |
| | | <div style="margin-left: 10px">æ§è¡ä¸</div> |
| | | |
| | | <div class="circle" style="margin-left: 10px" /> |
| | | <div style="margin-left: 10px">å®å·¥</div> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="lineContent horn" style="height: 434px;"> |
| | | <div v-for="item in lineContent3" :key="item.workcode" class="kb_left_top_block"> |
| | |
| | | class="kb_block03_02_content flex_c_c" |
| | | > |
| | | <div class="flex_c_c content01"> |
| | | <!-- <div--> |
| | | <!-- v-if="it.status==='START'&&(parseFloat(it.ngqty)===0||it.ngqty==='')&&(parseFloat(it.goodqty)===0||it.goodqty==='')"--> |
| | | <!-- class="circle"--> |
| | | <!-- style="background-color: blue;"--> |
| | | <!-- />--> |
| | | <div |
| | | v-if="it.status==='START'&&(parseFloat(it.ngqty)===0||it.ngqty==='')&&(parseFloat(it.goodqty)===0||it.goodqty==='')" |
| | | class="circle" |
| | | style="background-color: blue;" |
| | | /> |
| | | <div |
| | | v-else-if="it.status==='ALLO'&&(parseFloat(it.ngqty)===0||it.ngqty==='')&&(parseFloat(it.goodqty)===0||it.goodqty==='')" |
| | | v-if="it.status==='ALLO'&&(parseFloat(it.ngqty)===0||it.ngqty==='')&&(parseFloat(it.goodqty)===0||it.goodqty==='')" |
| | | class="circle" |
| | | style="background-color: rgb(255 255 255)" |
| | | /> |
| | |
| | | ::v-deep .el-table__body-wrapper{ |
| | | overflow: hidden !important; |
| | | } |
| | | .circle { |
| | | width: 26px; |
| | | height: 26px; |
| | | background-color: #00ff8b; |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | </style> |
| | | |
| | |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="å·¥åç¶æ" label-width="70px" style=" display: flex;"> |
| | | <el-input v-model="form.mesorderstus" placeholder="请è¾å
¥" style="width: 200px" /> |
| | | <el-select |
| | | v-model="form.mesorderstus" |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | placeholder="è¯·éæ©" |
| | | filterable |
| | | @change="erporderstusChange" |
| | | > |
| | | <el-option |
| | | v-for="item in erporderstusArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥åç¼å·" style=" display: flex;"> |
| | | <el-input v-model="form.mesordercode" placeholder="请è¾å
¥" style="width: 200px" /> |
| | |
| | | ], |
| | | total: 10, |
| | | tableData: [], |
| | | |
| | | erporderstusArr: [ |
| | | { code: 'NEW', name: 'æ°å·¥å' }, |
| | | // { code: 'CREATING', name: 'æ§è¡ä¸' }, |
| | | // { code: 'CREATED', name: 'å·²å
³é' } |
| | | { code: 'ALLO', name: '已派å' }, |
| | | { code: 'START', name: 'å¼å·¥' }, |
| | | { code: 'CLOSED', name: 'å®å·¥' } |
| | | // { code: 'NOSCHED', name: 'å¾
æç¨' }, |
| | | // { code: 'SCHED', name: 'å·²æç¨' } |
| | | ], |
| | | multipleSelection: [], |
| | | |
| | | title_value: 'æ°æ®å¯¼å
¥ / ç¹æ£é¨ä½', |
| | |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | // 订åç¶ææ¹åæ¶ |
| | | erporderstusChange(val) { |
| | | this.form.mesorderstus = val |
| | | }, |
| | | async getMesOrderBitchClosedSearch() { |
| | | const res = await MesOrderBitchClosedSearch(this.form) |
| | | this.tableData = res.data |
| | |
| | | <div class="top_card_content_flex"> |
| | | <div class="content" style="width: 84%"> |
| | | <div class="content_title1">仿¥ç»å½</div> |
| | | <div class="content_end1" :style="{color:`rgb(${barTopColor01[0]})`}">1/409</div> |
| | | <div class="content_end1" :style="{color:`rgb(${barTopColor01[0]})`}">5/18 |
| | | <countTo :start-val="0" :end-val="18" :duration="3000" /> |
| | | </div> |
| | | </div> |
| | | <div id="barTop01" class="barTop" style="width: 100%;" /> |
| | | <div id="barTop01" class="barTop" style="width: 87%;" /> |
| | | <div class="content" style="width: 84%"> |
| | | <div class="content_title1">æ¨æ¥ç»å½</div> |
| | | <div class="content_end1">0/409</div> |
| | | <div class="content_end1">6/18 |
| | | <countTo :start-val="0" :end-val="18" :duration="3000" /> |
| | | </div> |
| | | </div> |
| | | <div id="barTop02" class="barTop" /> |
| | | <div id="barTop02" class="barTop" style="width: 100%;" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="top_card_content_flex"> |
| | | <div class="content" style="width: 84%"> |
| | | <div class="content_title1">仿¥æ´»è·</div> |
| | | <div class="content_end1" :style="{color:`rgb(${barTopColor02[0]})`}">0/409</div> |
| | | <div class="content_end1" :style="{color:`rgb(${barTopColor02[0]})`}">5/18 |
| | | <countTo :start-val="0" :end-val="18" :duration="3000" /> |
| | | </div> |
| | | </div> |
| | | <div id="barTop03" class="barTop" /> |
| | | <div id="barTop03" class="barTop" style="width: 87%;" /> |
| | | <div class="content" style="width: 84%"> |
| | | <div class="content_title1">æ¨æ¥æ´»è·</div> |
| | | <div class="content_end1">0/409</div> |
| | | <div class="content_end1">6/18 |
| | | <countTo :start-val="0" :end-val="18" :duration="3000" /> |
| | | </div> |
| | | </div> |
| | | <div id="barTop04" class="barTop" /> |
| | | <div id="barTop04" class="barTop" style="width: 100%;" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="top_card_content_flex"> |
| | | <div class="content" style="width: 84%"> |
| | | <div class="content_title1">仿¥æ´»è·</div> |
| | | <div class="content_end1" :style="{color:`rgb(${barTopColor03[0]})`}">0/409</div> |
| | | <div class="content_end1" :style="{color:`rgb(${barTopColor03[0]})`}">5/18 |
| | | <countTo :start-val="0" :end-val="18" :duration="3000" /> |
| | | </div> |
| | | </div> |
| | | <div id="barTop05" class="barTop" /> |
| | | <div id="barTop05" class="barTop" style="width: 87%;" /> |
| | | <div class="content" style="width: 84%"> |
| | | <div class="content_title1">æ¨æ¥æ´»è·</div> |
| | | <div class="content_end1">0/409</div> |
| | | <div class="content_end1">6/18 |
| | | <countTo :start-val="0" :end-val="18" :duration="3000" /> |
| | | </div> |
| | | </div> |
| | | <div id="barTop06" class="barTop" /> |
| | | <div id="barTop06" class="barTop" style="width: 100%;" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="top_card_content_flex"> |
| | | <div class="content" style="width: 84%"> |
| | | <div class="content_title1">仿¥æ´»è·</div> |
| | | <div class="content_end1" :style="{color:`rgb(${barTopColor04[0]})`}">0/409</div> |
| | | <div class="content_end1" :style="{color:`rgb(${barTopColor04[0]})`}">0/18 |
| | | <countTo :start-val="0" :end-val="18" :duration="3000" /> |
| | | </div> |
| | | </div> |
| | | <div id="barTop07" class="barTop" /> |
| | | <div class="content" style="width: 84%"> |
| | | <div class="content_title1">æ¨æ¥æ´»è·</div> |
| | | <div class="content_end1">0/409</div> |
| | | <div class="content_end1">0/18 |
| | | <countTo :start-val="0" :end-val="18" :duration="3000" /> |
| | | </div> |
| | | </div> |
| | | <div id="barTop08" class="barTop" /> |
| | | </div> |
| | |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | barTopColor01: ['42,197,137', '187,236,218'], |
| | | barTopColor02: ['248,216,76', '255,250,238'], |
| | | barTopColor02: ['248,216,76', '255,250,188'], |
| | | barTopColor03: ['42,197,137', '187,236,218'], |
| | | barTopColor04: ['232,103,103', '253,240,240'] |
| | | } |
| | |
| | | this.getLine01() |
| | | }, |
| | | getTopData() { |
| | | loadEcharts('barTop01', barTop(1, this.barTopColor01)) |
| | | loadEcharts('barTop02', barTop(0, this.barTopColor01)) |
| | | loadEcharts('barTop03', barTop(0, this.barTopColor02)) |
| | | loadEcharts('barTop04', barTop(0, this.barTopColor02)) |
| | | loadEcharts('barTop05', barTop(0, this.barTopColor03)) |
| | | loadEcharts('barTop06', barTop(0, this.barTopColor03)) |
| | | loadEcharts('barTop01', barTop(5, this.barTopColor01)) |
| | | loadEcharts('barTop02', barTop(6, this.barTopColor01)) |
| | | loadEcharts('barTop03', barTop(5, this.barTopColor02)) |
| | | loadEcharts('barTop04', barTop(6, this.barTopColor02)) |
| | | loadEcharts('barTop05', barTop(5, this.barTopColor03)) |
| | | loadEcharts('barTop06', barTop(6, this.barTopColor03)) |
| | | loadEcharts('barTop07', barTop(0, this.barTopColor04)) |
| | | loadEcharts('barTop08', barTop(0, this.barTopColor04)) |
| | | }, |
| | | async getBar01() { |
| | | // const res=await xxx() |
| | | let data = [ |
| | | { key: 'ç产ç»ç', value: 300 }, |
| | | { key: 'çäº§å¯æ»', value: 310 }, |
| | | { key: 'ä¸çº¿çº¿é¿', value: 180 }, |
| | | { key: 'äºçº¿çº¿é¿', value: 190 }, |
| | | { key: 'ä¸çº¿çº¿é¿', value: 120 }, |
| | | { key: 'å线线é¿', value: 230 }, |
| | | { key: 'äºçº¿çº¿é¿', value: 270 }, |
| | | { key: 'ä¸çº¿å
è£
å·¥', value: 250 }, |
| | | { key: 'äºçº¿å
è£
å·¥', value: 260 }, |
| | | { key: 'ä¸çº¿å
è£
å·¥', value: 180 } |
| | | { key: 'ç产ç»ç', value: 553 }, |
| | | { key: 'çäº§å¯æ»', value: 530 }, |
| | | { key: 'ä¸çº¿çº¿é¿', value: 341 }, |
| | | { key: 'äºçº¿çº¿é¿', value: 196 }, |
| | | { key: 'ä¸çº¿çº¿é¿', value: 521 }, |
| | | { key: 'å线线é¿', value: 431 }, |
| | | { key: 'äºçº¿çº¿é¿', value: 370 }, |
| | | { key: 'ä¸çº¿å
è£
å·¥', value: 258 }, |
| | | { key: 'äºçº¿å
è£
å·¥', value: 269 }, |
| | | { key: 'ä¸çº¿å
è£
å·¥', value: 289 } |
| | | ] |
| | | data = data.sort((a, b) => b.value - a.value) |
| | | loadEcharts('bar01', bar01(data)) |
| | |
| | | proxy: { |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: 'http://121.196.36.24:8007', // 请æ±ç第ä¸â½
æ¥â¼å°å æ¬å°æå¡å¨(å¯å°è¾¾) |
| | | // target: 'http://192.168.16.246:8001', // 请æ±ç第ä¸â½
æ¥â¼å°å å®¢æ·æå¡å¨(å¯å°è¾¾) (æªä¸äº) |
| | | target: 'http://rz5qwd.natappfree.cc', // 请æ±ç第ä¸â½
æ¥â¼å°å å®¢æ·æå¡å¨(å¯å°è¾¾) (ä¸äº) |
| | | target: 'http://192.168.16.246:8001', // 请æ±ç第ä¸â½
æ¥â¼å°å å®¢æ·æå¡å¨(å¯å°è¾¾) (æªä¸äº) |
| | | // target: 'http://pn3963.natappfree.cc', // 请æ±ç第ä¸â½
æ¥â¼å°å å®¢æ·æå¡å¨(å¯å°è¾¾) (ä¸äº) |
| | | |
| | | changeOrigin: true, // 请æ±è·¨åæ¶ï¼é é
ç½®æ¤é¡¹ |
| | | pathRewrite: { // è·¯å¾éå,æ¿æ¢targetä¸ç请æ±å°å |