zss
2024-01-22 36c83e777e50977590a07b641e5bf2cf8dedf1e0
src/views/quality/rawMaterial/index.vue
@@ -17,7 +17,7 @@
<template>
    <div class="mod-config">
        <basic-container>
            <ttable
            <ttable
            :table="table"
            :resultData="resultData"
            @handleSelectionChange="handleSelectionChange"
@@ -60,7 +60,7 @@
import { mapGetters } from 'vuex'
import PrintJS from 'print-js'
import { transformZip } from '@/util/fileTransform'
import printTemplate from './rawMaterial-print.vue'
import printTemplate from './rawMaterial-print'
  export default {
    data() {
        return {
@@ -232,7 +232,7 @@
        RawMaterialForm,
        printTemplate,
    },
    created() {
    created() {
        if(this.permissions.quality_rawMaterial_add){
            this.table.toolbar.push({
                text: '新增',
@@ -374,7 +374,7 @@
            }
            this.$router.push({
                name: 'rawMaterialForm',
                query: {
                query: {
                    id: row == null ? null : row.id,
                    resultVal: row == null ? null : row.judgeState
                 }
@@ -389,8 +389,9 @@
            }
        },
        formatJudgeState(row, column, cellValue){
            if(cellValue != undefined || cellValue != null){
            if(cellValue != undefined && cellValue != null && cellValue != ''){
                if(cellValue == 0){
                    console.log(cellValue);
                    return "<span style='color:#E84738;'>不合格</span>"
                }
                return "<span style='color:#34BD66;'>合格</span>"
@@ -435,4 +436,3 @@
    }
  }
  </script>