1
李喆(开发组)
2025-11-18 0a0114964007502d1a855c34e601e437be947c5e
src/views/mdc/status-record.vue
@@ -2,7 +2,7 @@
 * @Author: lzhe lzhe@example.com
 * @Date: 2024-04-26 09:36:18
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-09-09 12:00:25
 * @LastEditTime: 2024-12-18 15:21:51
 * @FilePath: /smart-web/src/views/mdc/status-record.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -12,7 +12,7 @@
            <el-container style="height: 100%;">
                <el-aside width="300px" style="height: 100%;">
                    <el-container>
                        <div class="left-title">查询条件</div>
                        <!-- <div class="left-title">查询条件</div> -->
                        <el-main style="padding: 20px;">
                            <div class="left-title-col">日期</div>
                            <el-date-picker v-model="time" type="daterange" :shortcuts="shortcuts" range-separator="-" size="small" style="width: 100%;" value-format="YYYY-MM-DD"/>
@@ -40,7 +40,7 @@
                                        <div class="status-box" v-for="item in achievements"><div class="status-color" :style="{'background-color': item.color}"></div>{{ item.name }}</div>
                                    </div>
                                    <div class="status-wrap">
                                        <el-checkbox v-model="humanFeedback" label="人工反馈状态" size="large" />
                                        <el-checkbox v-model="humanFeedback" label="人工反馈状态" size="large" @change="humanFeedbackChange" />
                                        <div class="status-con">
                                            <div class="status-box" v-for="item in collectionstatus"><div class="status-color" :style="{'background-color': item.color}"></div>{{ item.name }}</div>
                                        </div>
@@ -104,6 +104,7 @@
    },
    watch: {
        treeChecked(select) {
            console.log(select,111)
            var arr = [];
            select.forEach(item=> {
                arr.push({id: item.id,name: item.code})
@@ -174,6 +175,9 @@
        this.init();
    },
    methods: {
        humanFeedbackChange(falg) {
            this.$refs.chart01.getCharts();
        },
        addfeedbackSuccess() {
            var workstationName = "";
            this.btnGongweiList.forEach(item=> {
@@ -222,9 +226,9 @@
                startTime: this.time[0],
                workstationInfoList: this.workstationInfoList
            }
            this.$HTTP.post(`/api/blade-mdc/status-record/excel/export`,obj).then(res=> {
            this.$HTTP.post(`/api/mdc/status-record/excel/export`,obj).then(res=> {
                if(res.code == 200) {
                    window.open(res.data.link);
                    this.$TOOL.downFile(res.data.link,res.data.originalName);
                }
            })
        },
@@ -257,7 +261,7 @@
            })
        },
        getachievements() { //班次状态记录采集状态
            this.$HTTP.get(`/api/blade-cps/global_wcs/wcs-achievements`).then(res=> {
            this.$HTTP.get(`/api/smis/global_wcs/wcs-achievements`).then(res=> {
                if(res.code == 200) {
                    var achievements = [];//采集状态
                    var collectionstatus = [];  //人工反馈状态
@@ -277,7 +281,7 @@
        },
        getTime(data) {
            return new Promise(resolve=> {
                this.$HTTP.post('/api/blade-mdc/efficiency-analysis/interval', {...data}).then(res => {
                this.$HTTP.post('/api/mdc/efficiency-analysis/interval', {...data}).then(res => {
                    if (res.code === 200) {
                        var today =  moment().format('YYYY-MM-DD');
                        var yesterday = moment().subtract(1, 'days').format('YYYY-MM-DD');