<template>
  <div class="main-content abnormal">
    <!-- <DetailHead result="列入违法失信企业名录勘误流程" /> -->
    <div class="content-body">
      <el-form ref="form" :model="form" label-width="200px" label-position="right" :rules="formRules">
        <div class="form">
          <div class="tab">
            <div class="tab-title"><label>主体信息</label></div>
          </div>
          <div class="form-body flex-row">
            <el-row class="zt">
              <el-col :span="4" class="zt_label">统一社会信用代码/注册号</el-col>
              <el-col :span="8" class="zt_value">
                {{ eBaseInfo.uniscid || eBaseInfo.regno }}
              </el-col>
              <el-col :span="4" class="zt_label">主体名称</el-col>
              <el-col :span="8" class="zt_value">
                <router-link target="_blank" :to="{path:'/comprehensive/details',query:{pripid:eBaseInfo.pripid,shrink:true}}" style="color: #1F65FF">
                  {{ eBaseInfo.entname }}
                </router-link>
              </el-col>
            </el-row>
            <el-row class="zt">
              <el-col :span="4" class="zt_label">企业状态</el-col>
              <el-col :span="8" class="zt_value">{{ eBaseInfo.regstateCn }}</el-col>
              <el-col :span="4" class="zt_label">登记机关	</el-col>
              <el-col :span="8" class="zt_value">{{ eBaseInfo.regorgCn }}</el-col>
            </el-row>
            <el-row class="zt">
              <el-col :span="4" class="zt_label">商事主体类型</el-col>
              <el-col :span="8" class="zt_value">{{ eBaseInfo.enttypeCn }}</el-col>
              <el-col :span="4" class="zt_label">法定代表人</el-col>
              <el-col :span="8" class="zt_value">{{ eBaseInfo.name }}</el-col>
            </el-row>
            <el-row class="zt">
              <el-col :span="4" class="zt_label">成立日期</el-col>
              <el-col :span="8" class="zt_value">{{ $moment(eBaseInfo.estdate).format('YYYY-MM-DD') }}</el-col>
              <el-col :span="4" class="zt_label">经营期限</el-col>
              <el-col :span="8" class="zt_value">
                {{ (eBaseInfo.opto || '长期') }}
              </el-col>
            </el-row>
            <el-row class="zt">
              <el-col :span="4" class="zt_label">经营地址</el-col>
              <el-col :span="20" class="zt_value">{{ eBaseInfo.dom || eBaseInfo.address }}</el-col>
            </el-row>
            <el-row class="zt">
              <el-col :span="4" class="zt_label">经营范围	</el-col>
              <el-col :span="20" class="zt_value">{{ eBaseInfo.opscope }}</el-col>
            </el-row>
          </div>
        </div>
        <div class="form">
          <div class="tab">
            <div class="tab-title"><label>严重违法信息</label></div>
          </div>
          <div class="form-body">
            <!-- <el-row class="p0">
              <el-form-item label="列入严重违法企业信息">
                <span>主体名称：{{ form.entname }}</span><br>
                <span>统一社会信用代码/注册号：{{ form.regno }}</span>
              </el-form-item>
            </el-row> -->
            <el-row class="el-row--flex" style="border-top:0">
              <el-col :span="12">
                <el-form-item label="原列入原因" style="height: 100%;" prop="preasonStr" class="bt0">
                  <!-- <el-row :span="10" style="border:0">
                    <el-select v-model="preason" placeholder="请选择列入原因" class="custom" disabled style="width:100%">
                      <el-option
                        v-for="item in reasonOptions"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
                  </el-row> -->
                  <el-row :span="10" style="border:0">
                    <el-input v-model="form.preasonStr" type="textarea" :rows="5" placeholder="请输入列入原因" disabled style="width:100%" />
                  </el-row>
                </el-form-item>
              </el-col>

              <el-col :span="12">
                <el-form-item label="当前列入原因" prop="reason" class="redItem bt0">
                  <el-row :span="10" style="border:0">
                    <el-select v-model="reason" placeholder="请选择列入原因" class="custom" :disabled="curNodeID != 'feedbackEnter'" style="width:100%">
                      <el-option
                        v-for="item in reasonList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
                  </el-row>
                  <el-row :span="10" style="border:0">
                    <el-input v-model="reasonStr" type="textarea" :rows="4" disabled style="width:100%" />
                  </el-row>
                </el-form-item>
              </el-col>
              <!--              <el-form-item label="原列入原因" prop="reasonStr">-->
              <!--                <el-col :span="24">-->
              <!--                  <el-select v-model="preason" style="width:100%" placeholder="请选择列入原因" class="custom" :disabled="curNodeID != 'feedbackEnter'">-->
              <!--                    <el-option-->
              <!--                      v-for="item in reasonOptions"-->
              <!--                      :key="item.value"-->
              <!--                      :label="item.label"-->
              <!--                      :value="item.value"-->
              <!--                    />-->
              <!--                  </el-select>-->
              <!--                </el-col>-->
              <!--                <el-col :span="24">-->
              <!--                  <el-input v-model="form.reasonStr" type="textarea" placeholder="请输入列入原因" disabled style="width:100%" />-->
              <!--                </el-col>-->
              <!--              </el-form-item>-->
            </el-row>

            <el-row>
              <el-col :span="12">
                <el-form-item label="原事实理由" prop="pfactDesc">
                  <el-col :span="24">
                    <el-input
                      v-model="form.pFactDesc"
                      style="width:100%"
                      disabled
                      type="textarea"
                      placeholder="请输入事实理由"
                      :autosize="{ minRows: 5, maxRows: 5 }"
                      maxlength="500"
                      show-word-limit
                    />
                  </el-col>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="当前事实理由" prop="factDesc" class="redItem">
                  <el-col :span="24">
                    <el-input
                      v-model="form.factDesc"
                      style="width:100%"
                      :disabled="curNodeID != 'feedbackEnter'"
                      type="textarea"
                      placeholder="请输入事实理由"
                      :autosize="{ minRows: 5, maxRows: 5 }"
                      maxlength="500"
                      show-word-limit
                    />
                  </el-col>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row class="el-row--flex">
              <el-col :span="12">
                <el-form-item label="原材料列表" style="height: 100%;" class="bt0">
                  <ul style="list-style:none;padding:0;margin:5px;">
                    <li v-for="item in oldFileList" :key="item.id" style="line-height: 30px">
                      <el-link style="font-size:16px" @click="handlePreview(item)">{{ item.name }}</el-link>
                    </li>
                  </ul>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item v-if="curNodeID === 'feedbackEnter' && searchNameP ==='' && !onlyShow" label="材料上传" class="upload">
                  <el-upload
                    :action="uploadPath"
                    :data="{bizseq:bizseq,attachtype: '1'}"
                    :on-remove="removeFile"
                    :on-success="uploadCallback"
                    :on-preview="previewFile"
                    :before-upload="beforeFileUpload"
                    :before-remove="beforeRemove"
                    accept=".doc,.docx,.xlsx,.xls,.pdf,.jpg,.zip,.rar,.7z"
                    multiple
                    :file-list="fileList"
                    style="max-width:800px;display: inline-block"
                    class="uploadFileList"
                  >
                    <div style="display: inline-block;">
                      <el-button style="display: inline-block;" size="mini" type="primary">点击上传</el-button>
                      <div slot="tip" style="display: inline-block;" class="el-upload__tip">只能上传jpg/png/pdf/doc/docx/xls/xlsx/rar/zip/7z文件，且单个文件不能超过20M</div>
                    </div>
                  </el-upload>
                </el-form-item>
                <el-form-item v-else label="材料列表" style="height: 100%;" class="bt0">
                  <ul style="list-style:none;padding:0;margin:5px;">
                    <li v-for="item in fileList" :key="item.id" style="line-height: 30px">
                      <el-link style="font-size:16px" @click="handlePreview(item)">{{ item.name }}</el-link>
                    </li>
                  </ul>
                </el-form-item>
              </el-col>
            </el-row>

          </div>
        </div>
        <div class="form">
          <div class="tab">
            <div class="tab-title"><label>处理意见</label></div>
          </div>
          <div class="form-body history">
            <div v-if="historyLog.length == 0" class="none">暂无历史意见</div>
            <el-steps direction="vertical" class="correct">
              <el-step v-for="(each,index) in historyLog" :key="'historyLog'+index" :title="each.step + '人：' + each.handler + ' ' + each.step +'日期：' + each.handledate " :description=" each.opinioncontent " status="finish" />
            </el-steps>
          </div>
        </div>
        <div v-if="searchNameP === '' && !onlyShow">
          <div v-if="curNodeID != '' && curNodeID != 'endFeedback'" class="form">
            <div class="tab">
              <div class="tab-title"><label>{{ opinionTypeName }}</label></div>
            </div>
            <div class="form-body">
              <el-form-item v-if="curNodeID != 'feedbackEnter'" label="是否通过" prop="nextNodeID">
                <div style="display:inline-block;">
                  <el-radio-group v-model="form.nextNodeId">
                    <el-radio :label="nextNodeID">通过</el-radio>
                    <el-radio :label="'overFeedback'">不通过</el-radio>
                    <el-radio :label="returnNode">回退</el-radio>
                  </el-radio-group>
                </div>
              </el-form-item>
              <el-row>
                <el-form-item :label="opinionTypeName" prop="opinion">
                  <el-col :span="24">
                    <el-input v-model="form.opinion" type="textarea" placeholder="请输入经办意见" style="width:100%" />
                  </el-col>
                  <el-col :span="12">
                    <label>常用语</label>
                    <el-select v-model="opinion" placeholder="请选择" class="custom" style="width:100%">
                      <el-option
                        v-for="item in opinionOptions"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
                  </el-col>
                </el-form-item>
              </el-row>

              <el-row>
                <el-form-item v-if="curNodeID != 'approvelist' && form.nextNodeId != 'overFeedback'&& form.nextNodeId != 'feedbackEnter'" :label="nextOne" prop="reviewerId">
                  <el-col :span="12">
                    <el-select v-model="form.reviewerId" placeholder="请选择下一操作人" class="custom" style="width:100%">
                      <el-option
                        v-for="item in reviewer"
                        :key="'reviewer'+item.primaryKey"
                        :label="item.name"
                        :value="item.primaryKey"
                      />
                    </el-select>
                  </el-col>
                </el-form-item>
              </el-row>
            </div>
          </div>
        </div>
      </el-form>
      <div v-if="nodes.length > 0 && nodes[0].curruserid == user.primaryKey && (curNodeID != 'endFeedback' || curNodeID != 'overFeedback')" class="submit-box">
        <el-button v-if="searchNameP === ''" v-loading="submitLoading" type="primary" @click="submitForm">提交</el-button>
        <el-button v-if="searchNameP === '' && curNodeID === 'feedbackEnter'" v-loading="submitLoading" type="primary" @click="endSubmit">结束流程</el-button>
        <el-button @click="$router.back()">返回</el-button>
      </div>
      <div v-if="onlyShow">
        <el-button @click="$router.back()">返回</el-button>
      </div>
    </div>
  </div>
</template>

<script>
import DetailHead from '@/components/DetailHead'
import { removeAttachementById, listAttachmentByBizseq } from '@/api/attachment'
import { getCorrectionsDetail, nextIllegalCorrectionsProcess, loadOldFileList } from '@/api/corrections'
import { getUsersWithPermission } from '@/api/user'
import { validBeforeUpload } from '@/api/fileUpload'
import { getNewCD73 } from '@/api/illegal'
import { getConstant } from '@/api/system'
import { taskOpinion } from '@/api/task'
import { getEntBaseByPripid } from '@/api/entBase'
import { isMenHu } from '@/utils/utils'

export default {
  components: {
    DetailHead
  },
  data() {
    return {
      busId: '',
      oldFileList: [],
      nextOne: '',
      opinionTypeName: '',
      searchNameP: '',
      uploadPath: `${process.env.VUE_APP_BASE_API}/attachment/uploadAdvance`,
      showEntbase: false,
      bizseq: '',
      workflowId: '',
      tasklistid: '',
      form: {
        entName: '',
        regNo: '',
        spereasons: '',
        reason: '',
        preason: '',
        factDesc: '',
        pfactDesc: '',
        opinion: ''
      },
      formRules: {
        reason: [
          { required: true, message: '请选择列入原因', trigger: 'blur' }
        ],
        factDesc: [
          { required: true, message: '请输入事实理由', trigger: 'blur' }
        ],
        opinion: [
          { required: true, message: '请输入经办意见', trigger: ['blur', 'change'] }
        ],
        reviewerId: [
          { required: true, message: '请选择审核人' }
        ]
      },
      reason: '',
      preason: '',
      opinion: '',
      reasonOptions: [],
      opinionOptions: [{
        value: 0,
        label: '拟同意,呈领导审核。'
      }],
      historyLog: [],
      exmainerOptions: [],
      fileList: [],
      user: JSON.parse(sessionStorage.getItem('user')),
      reviewer: [],
      nodes: [],
      curNodeID: '',
      nextNodeID: '',
      returnNode: '',
      submitLoading: false,
      reasonList: [],
      eBaseInfo: {},
      reasonStr: '',
      onlyShow: false
    }
  },
  watch: {
    // 原因渲染
    reason() {
      this.form.reason = this.reason
      let name = ''
      this.reasonList.forEach(each => {
        if (this.reason === each.value) {
          name = each.label
        }
      })
      this.reasonStr = name
    },
    // preason() {
    //   this.form.preason = this.preason
    //   let name = ''
    //   this.reasonOptions.forEach(each => {
    //     if (this.preason === each.value) {
    //       name = each.label
    //     }
    //   })
    //   this.form.preasonStr = name
    // },
    // 意见渲染
    opinion() {
      let name = ''
      this.opinionOptions.forEach(each => {
        if (this.opinion === each.value) {
          name = each.label
        }
      })
      this.$set(this.form, 'opinion', name)
    }
  },
  mounted() {
    this.searchNameP = this.$route.query.searchName
    if (this.searchNameP === undefined) {
      this.searchNameP = ''
    }
    this.bizseq = this.$route.query.bizseq // 获取跳转携带的参数bizseq
    this.workflowId = this.$route.query.workflowId
    this.tasklistid = this.$route.query.tasklistid
    this.onlyShow = this.$route.query.onlyShow === 'true'
    // 加载常用语
    this.opinionOptions = this.$util.getCommonWordsWithModule(this.user.primaryKey, '列严勘误')
    // 加载新企业列入原因
    getNewCD73().then(res => {
      if (res.code === 0) {
        const list = []
        res.data.forEach(each => {
          list.push({
            value: each.code,
            label: each.name
          })
        })
        this.reasonList = list
      }
      return
    }).then(res => {
      // 加载主体详情
      getCorrectionsDetail(this.bizseq).then(res => {
        if (res.code === 0) {
          const detail = res.data.detail || {}
          this.form = {
            ...detail
          }
          this.preason = detail.preason
          this.nodes = res.data.nodes || []
          let name = ''
          this.reasonOptions.forEach(each => {
            if (this.preason === each.value) {
              name = each.label
            }
          })
          this.form.preasonStr = name
          this.form.pFactDesc = detail.pfactDesc
          this.randerNode()
          this.loadReviewer()
          // if (this.curNodeID !== 'feedbackEnter') {
          //   this.reason = detail.reason
          //   this.nodes = res.data.nodes || []
          //   let name1 = ''
          //   this.reasonOptions.forEach(each => {
          //     if (this.pReason === each.value) {
          //       name1 = each.label
          //     }
          //   })
          //   this.form.reasonStr = name1
          // }
          this.reason = detail.reason

          this.busId = detail.busId
          // 查询企业主体信息
          getEntBaseByPripid(res.data.detail.pripid).then(res => {
            this.eBaseInfo = res.data
          })
        }
      }).then(res => {
      // 加载旧附件清单
        if (this.$util.isNotEmpty(this.bizseq)) {
          loadOldFileList(this.bizseq).then(res => {
            res.data.forEach(each => {
              each.id = each.attachmentid
              each.name = each.filename
              each.url = `${process.env.VUE_APP_DOWNLOAD_URL}/` + each.temppath
            })
            this.oldFileList = res.data
          })
        }
      })
    })

    // 加载企业列入原因
    getConstant('Cd73').then(res => {
      if (res.code === 0) {
        const list = []
        res.data.forEach(each => {
          list.push({
            value: each.code,
            label: each.name
          })
        })
        this.reasonOptions = list
        if (this.preason !== '') {
          let name = ''
          this.reasonOptions.forEach(each => {
            if (this.preason === each.value) {
              name = each.label
            }
          })
          this.form.preasonStr = name
        }
      }
    })
    // 加载处办记录
    taskOpinion(this.workflowId).then(res => {
      if (res.code === 0) {
        res.data.forEach(each => {
          switch (each.opiniontype) {
            case '0': each.step = '经办'
              break
            case '1': each.step = '审核'
              break
            case '2': each.step = '审批'
              break
          }
          this.historyLog.push(each)
        })
      } else {
        this.$message.error('加载处办记录失败')
      }
    })
    // 加载审核人
    // this.loadReviewer()

    // 加载附件清单
    if (this.$util.isNotEmpty(this.bizseq)) {
      const list = []
      listAttachmentByBizseq(this.bizseq).then(data => {
        data.forEach(each => {
          if (each.attachtype !== '0') {
            each.id = each.attachmentid
            each.name = each.filename
            each.url = `${process.env.VUE_APP_DOWNLOAD_URL}/` + each.temppath
            list.push(each)
          }
        })
        this.fileList = list
      })
    }
  },
  methods: {
    // 点击文件列表中已上传文件进行下载
    handlePreview(file) {
      var a = document.createElement('a')
      var event = new MouseEvent('click')
      a.download = file.name
      a.href = file.url
      a.dispatchEvent(event)
    },
    // 移除文件前
    beforeRemove(file, fileList) {
      if (file && file.status === 'success') {
        return this.$confirm(`确定移除 ${file.name} ？`)
      }
    },
    // 上传文件之前校验大小
    beforeFileUpload(file) {
      var that = this
      return validBeforeUpload(file, that)
    },
    // 上传文件预览
    previewFile(file) {
      if(file.url != null){
        window.open(file.url, '_blank')
      }else {
        window.open( `${process.env.VUE_APP_DOWNLOAD_URL}/` + file.response.data.temppath)
      }
    },
    //结束流程提交
    endSubmit(){
       this.$confirm('是否结束流程？', '提示').then(() => {
          this.submitLoading = true
          this.form.bizseq = this.bizseq
          this.form.workflowId = this.workflowId
          this.form.tasklistid = this.tasklistid
          this.form.opiniontype = this.curNodeID === 'feedbackEnter' ? '0' : this.curNodeID === 'handleFeedback' ? '1' : '2'
          this.form.opinioncontent = this.form.opinion
          this.form.tasklistid = this.tasklistid
          this.form.nextUserIds = this.form.reviewerId
          this.form.curNodeId = this.curNodeID
          for (const i in this.reviewer) {
            if (this.reviewer[i].primaryKey === this.form.reviewerId) {
              this.form.nextUserNames = this.reviewer[i].name
            }
          }
          this.form.nextUserNames = this.user.nickname
          this.form.nextUserIds = this.user.primaryKey
          this.form.nextNodeId = 'overKwFinish'
          this.form.reason = this.reason
          nextIllegalCorrectionsProcess(this.form).then(res => {
            this.submitLoading = false
            if (res.code === 0) {
              this.$message.success('提交成功')
              // this.$router.go(0)
              if (isMenHu()) {
                // 信创门户环境跳转回待办
                window.location.href = '/aiccs/#/todo/list'
              } else {
                this.$router.back()
              }
            }
          })
        }).catch(() => {})
    },
    // 发送提交
    submitForm() {
      if (this.submitLoading) return
      if (this.$util.isEmpty(this.reason)) {
        return this.$message.warning('请先选择列入原因')
      }
      if (this.$util.isEmpty(this.form.factDesc)) {
        return this.$message.warning('请先输入事实理由')
      }
      if (this.$util.isEmpty(this.form.opinion)) {
        return this.$message.warning('请先输入意见')
      }
      this.$refs.form.validate(valid => {
        if (!valid) return
        this.$confirm('是否确认提交？', '提示').then(() => {
          this.submitLoading = true
          // 附件id
          // let ids = []
          // this.fileList.forEach(each => {
          //   ids.push(each.id)
          // })
          // this.form.fileIds = ids.toString()
          // 主体id
          // ids = []
          // this.entbase.forEach(each => {
          // ids.push(each.id)
          // })
          // this.form.pripids = ids.toString()
          this.form.bizseq = this.bizseq
          this.form.workflowId = this.workflowId
          this.form.tasklistid = this.tasklistid
          this.form.opiniontype = this.curNodeID === 'feedbackEnter' ? '0' : this.curNodeID === 'handleFeedback' ? '1' : '2'
          this.form.opinioncontent = this.form.opinion
          // this.form.tasklistid = this.form.tasklistids
          this.form.tasklistid = this.tasklistid
          this.form.nextUserIds = this.form.reviewerId
          this.form.curNodeId = this.curNodeID
          for (const i in this.reviewer) {
            if (this.reviewer[i].primaryKey === this.form.reviewerId) {
              this.form.nextUserNames = this.reviewer[i].name
            }
          }
          // 办结使用当前用回信息作为下一节点信息
          if (this.curNodeID === 'approvelist' || this.form.nextNodeId === 'overFeedback' || this.form.nextNodeId === 'feedbackEnter') {
            this.form.nextUserNames = this.user.nickname
            this.form.nextUserIds = this.user.primaryKey
          }
          // this.form.nextNodeId = this.nextNodeID
          this.form.reason = this.reason
          nextIllegalCorrectionsProcess(this.form).then(res => {
            this.submitLoading = false
            if (res.code === 0) {
              this.$message.success('提交成功')
              // this.$router.go(0)
              if (isMenHu()) {
                // 信创门户环境跳转回待办
                window.location.href = '/aiccs/#/todo/list'
              } else {
                this.$router.back()
              }
            }
          })
        }).catch(() => {})
      })
    },
    uploadCallback(res, file) {
      if (res.code === 0) {
        file.id = res.data.attachmentid
        this.$message.success('上传成功')
      }
    },
    // 移除文件回调
    removeFile(file) {
      if (file && file.status === 'success') {
        removeAttachementById(file.id).then(res => {
          if (res.code === 0) {
            this.$message.success('删除成功')
          } else {
            this.$message.error(res.msg)
          }
        })
      }
    },
    // 加载审核人
    loadReviewer() {
      if (this.nodes.length === 0) return
      const node = this.nodes[0]
      let perm = ''
      console.log(this.nodes)
      switch (node.currentnode) {
        case 'feedbackEnter':perm = 'illegalCorrectionsHandle'; break
        case 'handleFeedback':perm = 'illegalCorrectionsApprove'; break
      }
      getUsersWithPermission(perm, this.user.orgId).then(res => {
        if (res.code === 0) {
          this.reviewer = res.data
        }
      })
    },
    // 节点渲染
    randerNode() {
      if (this.nodes.length > 0) {
        this.curNodeID = this.nodes[0].currentnode
        switch (this.curNodeID) {
          case 'feedbackEnter' : this.nextNodeID = 'handleFeedback'; this.$set(this.form, 'nextNodeId', 'handleFeedback'); this.nextOne = '审核人'; this.opinionTypeName = '经办意见'; break
          case 'handleFeedback' : this.nextNodeID = 'approvelist'; this.$set(this.form, 'nextNodeId', 'approvelist'); this.returnNode = 'feedbackEnter'; this.nextOne = '审批人'; this.opinionTypeName = '审核意见'; break
          case 'approvelist' : this.nextNodeID = 'endFeedback'; this.$set(this.form, 'nextNodeId', 'endFeedback'); this.returnNode = 'handleFeedback'; this.opinionTypeName = '审批意见'; break
          default: this.nextNodeID = ''
        }
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.el-row--flex{
  /deep/ .el-form-item__content{
    height: 100%;
  }
}
.main-content{
  padding: 10pt;
  .back-btn{
    position:absolute;
    right:40pt;
  }
  .content-header,.content-body{
    background: white;
    padding:20PX 10PX;
    border:1PX solid #eee;
  }
  .content-header{
    height:60PX;
    .title{
      display: flex;
      align-items: center;
      font-weight: 700;
      font-size: $font-size-sub-title;
    }
  }
  .content-body{
    padding:20pt;
      .tab{
        .tab-title{
          label{
            display:inline-block;
          }
        }
      }
    .form{
      margin-bottom: 20pt;
    }
  }
}
.el-row {
  border-left: 1px solid $color-border;
}
</style>
<style lang="scss">
.main-content.abnormal{
  .bt0 {
    /deep/.el-form-item__label{
      border-top: 0!important;
    }
    /depp/.el-form-item__content{
      border-top: 0!important;
    }
  }
  font-size: $table-content-font-size;
  .el-form-item{
    margin-bottom:0;
    background: $color-form-label;
    .el-form-item__label{
      padding-left: 10px;
      font-size: $table-content-font-size;
      border-top: 1px solid $color-border;
      /* border-left: 1px solid $color-border; */
    }
    .el-form-item__content{
      background: white;
      padding: 10px;
      font-size: $table-content-font-size;
      border-top: 1px solid $color-border;
      border-right: 1px solid $color-border;
      border-left: 1px solid $color-border;
    }
  }
  .el-form-item:last-child{
    border-bottom: 1px solid $color-border;
  }
  .form-body.history{
    padding:15px;
    border:1px solid $color-border;
  }
  .el-form-item.is-error .custom .el-input__inner{
    border-color:$color-border;
  }
  .el-table-column--selection .cell {
    padding-right: 0px;
  }
  .no {
    padding-left: 0px;
  }
  .el-table_9_column_61.is-left.is-leaf{
    .cell{
      padding-left: 0px;
      padding-right: 0px;
    }
  }
  .el-pagination{
    text-align: right;
  }
  .dialog-box{
    text-align: right;
  }
  .el-textarea.is-disabled .el-textarea__inner{
    color: #1c1e23;
  }
  .el-input__inner{
    margin-bottom: 5px;
  }
  .redItem .el-form-item__label{
    color: #bd2c00;
  }
  .uploadFileList{
    .el-upload-list__item{
      display: inline-block;
      width: auto;
    }
  }
  .zt{
    border-bottom: 1px solid #8CC3FB;
    .zt_label{
      padding: 15px;
      text-align: right;
      border-right: 1px solid #8CC3FB;
      background: #eaf4fe;
    }
    .zt_value{
      padding: 15px;
      text-align: left;
      border-right: 1px solid #8CC3FB;
    }
  }
  .correct{
    .el-step__description.is-finish {
      font-size: 16px;
    }
  }
  .el-select .el-input.is-disabled .el-input__inner{
    color: unset;
  }
}
</style>
