//他运收货反馈
<template>
  <div class="container">
    <el-row>
      <el-col :span="12">
        <h2 class="bg-left title">他运收货反馈</h2>
      </el-col>
      <el-col :span="12" class="bg-right">
        <el-button
          class="bg-bottom"
          type="primary"
          size="small"
          @click="returnsales()"
          ><img
            width="6"
            height="10"
            style="vertical-align: bottom; margin-right: 3px"
            src="../../../public/img/lujing.png"
            alt=""
          />返回</el-button
        >
      </el-col>
    </el-row>
    <ws-form
      class="position"
      ref="deptBudgetList"
      :rules="rules"
      :model="deptBudgetList"
    >
      <div class="small-title" style="font-size: 16px">任务详情</div>
      <ws-info-table>
        <!--合同编号-->
        <ws-form-item label="合同编号" span="1" prop="contractNo">
          {{ deptBudgetList.contractNo }}
        </ws-form-item>
        <!--货名-->
        <ws-form-item label="货名" span="1" prop="goodsName">
          {{ deptBudgetList.goodsName }}
        </ws-form-item>
        <!--重量（吨）-->
        <ws-form-item label="重量（吨）" span="1" prop="weight">
          {{ deptBudgetList.weight }}
        </ws-form-item>
        <!--发货地址-->
        <ws-form-item label="发货地址" span="1" prop="sendDetailedAddress">
          {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
          }}{{ deptBudgetList.sendArea }}
        </ws-form-item>
        <!--收货地址-->
        <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
          {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
          }}{{ deptBudgetList.receiveArea }}
        </ws-form-item>
      </ws-info-table>
      <div  v-show='status' class='flex' style="font-size: 16px;justify-content: space-between;align-items:center;margin-top:10px;">
        汽运反馈
      </div>
      <div  v-show='status' class="liaison">
        <div
          style="width: 100% justify-content: space-between;align-items:center;"
          class="flex"
          v-for="(item, index) in this.freightspace"
          :key="index"
        >
          <ws-info-table>
            <!-- <el-form-item label="派车编号" prop="caseNo">{{ item.carNumber }}</el-form-item> -->
            <el-form-item label="车牌号" prop="carNo">
              <ws-input disabled v-model="item.carNo" placeholder="请输入车牌号" maxlength="20" size="small" />
            </el-form-item>
            <el-form-item label="箱号-1" prop="caseNo" >
              <ws-input disabled v-model="item.caseNo" placeholder="请输入箱号" maxlength="20" size="small" />
            </el-form-item>
            <el-form-item label="箱号-2" prop="caseNoOther">
              <ws-input disabled v-model="item.caseNoOther" placeholder="请输入箱号" maxlength="20" size="small" />
            </el-form-item>
            <el-form-item label="封号-1" prop="titleNo">
              <ws-input disabled v-model="item.titleNo" placeholder="请输入封号" maxlength="20" size="small" />
            </el-form-item>
            <el-form-item label="封号-2" prop="titleNoOther" >
              <ws-input disabled v-model="item.titleNoOther" placeholder="请输入封号" maxlength="20" size="small" />
            </el-form-item>
            <ws-form-item label="装车净重（吨）" span="1" prop="loadNetWeight">
              <ws-input
                disabled
                v-model="item.loadNetWeight"
                placeholder="请输入装车净重"
                maxlength="20"
                size="small"
              /></ws-form-item>
               <ws-form-item label="卸车净重（吨）" span="1" prop="unloadNetWeight">
              <ws-input
                :disabled="item.disabled"
                v-model="item.unloadNetWeight"
                placeholder="请输入卸车净重"
                maxlength="20"
                size="small"
              /></ws-form-item>
          </ws-info-table>
        </div>
      </div>
      <div v-show='status1' class='flex' style="font-size: 16px;justify-content: space-between;align-items:center;margin-top:10px;">
        火运反馈
      </div>
      <div v-show='status1' class="liaison">
        <div
          style="width: 100% justify-content: space-between;align-items:center;"
          class="flex "
          v-for="(item, index) in this.freightspace1"
          :key="index"
        >
          <ws-info-table>
            <el-form-item label="车号" prop="carNo" >
              <ws-input disabled v-model="item.carNo" placeholder="请输入车号" maxlength="20" size="small" />
            </el-form-item>
            <el-form-item label="车厢号-1" prop="caseNo">
              <ws-input disabled v-model="item.boxNo1" placeholder="请输入车厢号" maxlength="20" size="small" />
            </el-form-item>
            <el-form-item label="车厢号-2" prop="caseNo">
              <ws-input disabled v-model="item.boxNo2" placeholder="请输入车厢号" maxlength="20" size="small" />
            </el-form-item>
            <ws-form-item label="装车净重（吨）" span="1" prop="loadNetWeight">
               <ws-input
                disabled
                v-model="item.loadNetWeight"
                placeholder="请输入装车净重"
                maxlength="20"
                size="small"
              /></ws-form-item>
              <ws-form-item label="卸车净重（吨）" span="1" prop="unloadNetWeight">
              <ws-input
                :disabled="item.disabled"
                v-model="item.unloadNetWeight"
                placeholder="请输入卸车净重"
                maxlength="20"
                size="small"
              /></ws-form-item>
          </ws-info-table>
        </div>
      </div>
      <div  v-show='status2'  class='flex' style="font-size: 16px;justify-content: space-between;align-items:center;margin-top:10px;">
        散船反馈
      </div>
      <div v-show='status2' class="liaison">
        <div
          style="width: 100% justify-content: space-between;align-items:center;"
          class="flex"
          v-for="(item, index) in this.freightspace2"
          :key="index"
        >
          <ws-info-table>
            <el-form-item label="船名" prop="caseNo" >{{ item.carNumber }}
              <ws-input disabled v-model="item.shipName" placeholder="请输入船名" maxlength="20" size="small" />
            </el-form-item>
            <el-form-item label="航次" prop="caseNo">
              <ws-input disabled v-model="item.shipNo" placeholder="请输入航次" maxlength="20" size="small" />
            </el-form-item>
            <ws-form-item label="装船净重（吨）" span="1" prop="loadNetWeight">
               <ws-input disabled v-model="item.loadNetWeight" placeholder="请输入装船净重" maxlength="20" size="small" />
            </ws-form-item>
            <ws-form-item label="卸船净重（吨）" span="1" prop="unloadNetWeight">
              <ws-input
                :disabled="item.disabled"
                v-model="item.unloadNetWeight"
                placeholder="请输入卸船净重"
                maxlength="20"
                size="small"
              /></ws-form-item>
          </ws-info-table>
        </div>
      </div>
      <div v-show='status3' class='flex' style="font-size: 16px;justify-content: space-between;align-items:center;margin-top:10px;">
        集装箱船反馈
      </div>
      <div v-show='status3' class="liaison">
        <div
          style="width: 100% justify-content: space-between;align-items:center;"
          class="flex"
          v-for="(item, index) in this.freightspace3"
          :key="index"
        >
         <ws-info-table>
            <el-form-item label="箱号" prop="caseNo" >
              {{ item.carNumber }}
              <ws-input disabled v-model="item.caseNo" placeholder="请输入箱号" maxlength="20" size="small" />
            </el-form-item>
            <el-form-item label="封号" prop="titleNo">
              <ws-input disabled v-model="item.titleNo" placeholder="请输入封号" maxlength="20" size="small" />
            </el-form-item>
            <ws-form-item label="装船净重（吨）" span="1" prop="loadNetWeight">
               <ws-input disabled v-model="item.loadNetWeight" placeholder="请输入装船净重" maxlength="20" size="small" />
            </ws-form-item>
            <ws-form-item label="卸船净重（吨）" span="1" prop="unloadNetWeight">
              <ws-input
                :disabled="item.disabled"
                v-model="item.unloadNetWeight"
                placeholder="请输入卸船净重"
                maxlength="20"
                size="small"
              /></ws-form-item>
          </ws-info-table>
        </div>
      </div>
    </ws-form>
    <!-- 完货 -->
    <div style="text-align: right; padding: 10px" class="center">
      <el-button
                class="bg-bottom"
                type="primary"
                size="small"
                @click="submit(deptBudgetList)"
                >提交</el-button
              >
      <el-button
        class="bg-bottom"
        type="primary"
        size="small"
        @click="finished(deptBudgetList)"
        >完货</el-button
      >
    </div>
  </div>
</template>
<script>
import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
import { seeCat, packList, feedback, stateRec,state,gettranprocessinfo,posttranprocessinfo } from '@/model/transport/index'
import { getstaff } from '@/model/warehouse/index'
import WsUpload from '@/components/WsUpload'
import mapDrag from '@/components/mapdrag/mapdrag'
export default {
  name: 'viewSpareMoney',
  components: {
    WsUpload,
    mapDrag,
  },
  watch: {
    vesselId(val) {
      this.getVesselData()
    },
    isShow(val) {
      this.showType = val
    },
  },
  data() {
    return {
      pictureTotal: 0,
      readonly:false,
      deptBudgetList: {
        totalStorage: 0,
      },
      heightData: '600px',
      checkList:[],
      compId: localStorage.getItem('ws-pf_compId'),
      rules: {
        warehouseName: [
          {
            required: true,
            message: '请输入仓库名称',
            trigger: 'blur',
          },
          {
            min: 2,
            max: 20,
            message: '仓库名长度不符合要求，请输入2-20字符之内',
            trigger: 'blur',
          },
        ],
      },
      freightspace1: [
        {
          accountTypeFlag: '1',
          payeeName: '',
          payeeNumberCard: '',
          compName: '',
          bankDeposit: '',
          addressUrlArray: [],
          bankCard: '',
        },
      ],
      freightspace: [
        {
          carNumber:'',
          caseNo:'',
          titleNo:'',
          carNo: '',
          loadNetWeight: '',
          unloadPoundImg: '',
        },
      ],
      freightspace2: [
        {
          carNumber:'',
          driver: '',
          driverPhone: '',
          carNo: '',
          loadNetWeight: '',
          unloadPoundImg: '',
        },
      ],
      freightspace3: [
        {
          carNumber:'',
          driver: '',
          driverPhone: '',
          carNo: '',
          loadNetWeight: '',
          unloadPoundImg: '',
        },
      ],
      status:false,
      status1:false,
      status2:false,
      status3:false,
      disabled:false,
      disabled1:false,
      disabled2:false,
      disabled3:false,
      name: '',
      staffList: [],
    }
  },
  mounted(){
    this.deptBudgetList.id = this.$route.query.id
    this.getList()
  },
  computed: {
  },
  methods: {
    checkchange(e){
      if(e.indexOf('汽运')!=-1){
        this.status=true
      }else{
        this.status=false
      }
      if(e.indexOf('火运')!=-1){
        this.status1=true
      }else{
        this.status1=false
      }
      if(e.indexOf('散船')!=-1){
        this.status2=true
      }else{
        this.status2=false
      }
      if(e.indexOf('集装箱船')!=-1){
        this.status3=true
      }else{
        this.status3=false
      }
    },
    selectstaff(e) {
      for (var i = 0; i < this.staffList.length; i++) {
        if (this.staffList[i].staffName == e) {
          this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
          this.freightspace[i].driverPhone = this.staffList[i].staffMobilePhone
          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
        }
      }
    },
    // 关闭 dialog时 处理文件url 初始化upload组件
    handleClose() {
      this.dialogViewSpareMoney = false
    },
    add(status) {
      if(status==1){
        this.freightspace.push({
          caseNo: '',
          caseNoOther: '',
          carNo: '',
          titleNo:'',
          titleNoOther:'',
          loadNetWeight: '',
          loadingDate:''
        })
      }else if(status==2){
        this.freightspace1.push({
          boxNo1: '',
          boxNo2: '',
          carNo: '',
          loadNetWeight: '',
          loadingDate:''
        })
      }else if(status==3){
        this.freightspace2.push({
          shipName: '',
          shipNo: '',
          loadNetWeight: '',
          loadingDate:''
        })
      }else if(status==4){
        this.freightspace3.push({
          caseNo: '',
          titleNo: '',
          loadNetWeight: '',
          loadingDate:''
        })
      }
    },
    del(index,status) {
      if(status==1){
        this.freightspace.splice(index,1)
      }else if(status==2){
        this.freightspace1.splice(index,1)
      }else if(status==3){
        this.freightspace2.splice(index,1)
      }else if(status==4){
        this.freightspace3.splice(index,1)
      }
    },
    //下拉司机姓名改变事件
    selectdriver() {},
    // handleChange(value) {
    //   this.selectedOptions = value
    // },
    returnsales() {
      this.deptBudgetList = {}
      this.freightspace = {}
      this.selectedOptions = ''
      this.deptBudgetList.tranCarInfoList = []
      this.$router.push({ path: 'tranManagementReceivingFeedback' })
    },
    // 上传附件
    uploadSuccess(data, files, url) {
      console.log(data, files, url)
    },
    handleClose() {
      this.accessoryTFs = false
    },
    //完货
    finished() {
      this.$confirm(`完货操作后，反馈信息不可修改，是否确定完货？`, {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      })
        .then(() => {
          this.$refs.deptBudgetList.validate((valid) => {
            if (valid) {
              var tranProcessInfo = {}
              tranProcessInfo.id = this.deptBudgetList.id
              stateRec(tranProcessInfo)
                .toPromise()
                .then((response) => {
                  this.$message.success('完货成功')
                  this.deptBudgetList = {}
                  this.freightspace = {}
                  this.selectedOptions = ''
                  this.$router.push({
                    path: 'tranManagementReceivingFeedback',
                  })
                })
            } else {
              return false
            }
          })
        })
        .catch(() => {
          return false
        })
    },
    submit() {
      var tranCarInfoList1=[],tranCarInfoList2=[],tranCarInfoList3=[],tranCarInfoList4=[]
      if(this.deptBudgetList.threeTranType.indexOf('汽运')!=-1){
        for(let i = 0 ; i < this.freightspace.length ; i++){
          if (!String(this.freightspace[i].unloadNetWeight)) {
            this.$message({
              message: '卸车净重不能为空！',
              type: 'warning',
            })
            return
          }
          if (
            this.freightspace[i].unloadNetWeight > 200 ||
            this.freightspace[i].unloadNetWeight < 0
          ) {
            this.$message({
              message: '装车净重输入错误',
              type: 'warning',
            })
            return
          }
        }
        tranCarInfoList1=this.freightspace
      }
      if(this.deptBudgetList.threeTranType.indexOf('火运')!=-1){
        for(let i = 0 ; i < this.freightspace1.length ; i++){
          if (!String(this.freightspace1[i].unloadNetWeight)) {
            this.$message({
              message: '卸车净重不能为空！',
              type: 'warning',
            })
            return
          }
          if (
            this.freightspace1[i].unloadNetWeight > 200 ||
            this.freightspace1[i].unloadNetWeight < 0
          ) {
            this.$message({
              message: '卸车净重输入错误',
              type: 'warning',
            })
            return
          }
        }
        tranCarInfoList2=this.freightspace1
      }
      if(this.deptBudgetList.threeTranType.indexOf('散船')!=-1){
        for(let i = 0 ; i < this.freightspace2.length ; i++){
          if (!String(this.freightspace2[i].unloadNetWeight)) {
            this.$message({
              message: '卸船净重不能为空！',
              type: 'warning',
            })
            return
          }
          if (
            this.freightspace2[i].unloadNetWeight > 200 ||
            this.freightspace2[i].unloadNetWeight < 0
          ) {
            this.$message({
              message: '卸船净重输入错误',
              type: 'warning',
            })
            return
          }
        }
        tranCarInfoList3=this.freightspace2
      }
      if(this.deptBudgetList.threeTranType.indexOf('集装箱船')!=-1){
        for(let i = 0 ; i < this.freightspace3.length ; i++){
          if (!String(this.freightspace3[i].unloadNetWeight)) {
            this.$message({
              message: '卸船净重不能为空！',
              type: 'warning',
            })
            return
          }
          if (
            this.freightspace3[i].unloadNetWeight > 200 ||
            this.freightspace3[i].unloadNetWeight < 0
          ) {
            this.$message({
              message: '卸船净重输入错误',
              type: 'warning',
            })
            return
          }
        }
        tranCarInfoList4=this.freightspace3
      }
      
      this.$confirm(`提交成功后反馈信息不可修改，是否确定提交？`, {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      })
        .then(() => {
          this.$refs.deptBudgetList.validate((valid) => {
            if (valid) {
              posttranprocessinfo({id:this.deptBudgetList.id,contractNo:this.deptBudgetList.contractNo,tranCarInfoList1,tranCarInfoList2,tranCarInfoList3,tranCarInfoList4})
                .toPromise()
                .then((response) => {
                  this.$message.success('提交成功')
                  this.deptBudgetList = {}
                  this.freightspace = {}
                  this.selectedOptions = ''
                  this.$router.push({
                    path: 'tranManagementReceivingFeedback',
                  })
                })
            } else {
              // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
              return false
            }
          })
        })
        .catch(() => {
          return false
        })
    },
    resetForm(deptBudgetList) {
      this.$refs[deptBudgetList].resetFields()
    },
    getList() {
      gettranprocessinfo({ id: this.deptBudgetList.id })
        .toPromise()
        .then((response) => {
          this.deptBudgetList = response
          if(response.threeTranType){
            if(response.threeTranType.indexOf('汽运')!=-1){
              this.status=true
              for (let i = 0; i < response.tranCarInfoList1.length; i++) {
                if(response.tranCarInfoList1[i].unloadNetWeight){
                  response.tranCarInfoList1[i].disabled=true
                }else{
                  response.tranCarInfoList1[i].disabled=false
                }
                
              }
              this.freightspace=response.tranCarInfoList1
            }else{
              this.status=false
            }
            if(response.threeTranType.indexOf('火运')!=-1){
              this.status1=true
              for (let i = 0; i < response.tranCarInfoList2.length; i++) {
                if(response.tranCarInfoList2[i].unloadNetWeight){
                  response.tranCarInfoList2[i].disabled=true
                }else{
                  response.tranCarInfoList2[i].disabled=false
                }
                if(response.tranCarInfoList2[i].boxNo&&response.tranCarInfoList2[i].boxNo.indexOf(',')!=-1){
                  response.tranCarInfoList2[i].boxNo1=response.tranCarInfoList2[i].boxNo.split(',')[0]
                  response.tranCarInfoList2[i].boxNo2=response.tranCarInfoList2[i].boxNo.split(',')[1]
                }else{
                  response.tranCarInfoList2[i].boxNo1=response.tranCarInfoList2[i].boxNo
                }
              }
              this.freightspace1=response.tranCarInfoList2
            }else{
              this.status1=false
            }
            if(response.threeTranType.indexOf('散船')!=-1){
              this.status2=true
              for (let i = 0; i < response.tranCarInfoList3.length; i++) {
                if(response.tranCarInfoList3[i].unloadNetWeight){
                  response.tranCarInfoList3[i].disabled=true
                }else{
                  response.tranCarInfoList3[i].disabled=false
                }
                
              }
              if(response.tranCarInfoList3.length>0){
                this.disabled2=true
              }else{
                this.disabled2=false
              }
              this.freightspace2=response.tranCarInfoList3
            }else{
              this.status2=false
            }
            if(response.threeTranType.indexOf('集装箱船')!=-1){
              this.status3=true
              for (let i = 0; i < response.tranCarInfoList4.length; i++) {
                if(response.tranCarInfoList4[i].unloadNetWeight){
                  response.tranCarInfoList4[i].disabled=true
                }else{
                  response.tranCarInfoList4[i].disabled=false
                }
                
              }
              this.freightspace3=response.tranCarInfoList4
            }else{
              this.status3=false
            }
          }
         
        })
      //司机姓名下拉
      getstaff({ compId: localStorage.getItem('ws-pf_compId') })
        .toPromise()
        .then((response) => {
          this.options = response
          this.staffList = response
        }),
        //车型
        packList({ constId: 'TRAN5' })
          .toPromise()
          .then((response) => {
            this.carModel = response
          })
    },
    handleExamine() {},
    approve() {},
    selectChapterTwo(e) {
      for (var i = 0; i < this.ChapterTwoList.length; i++) {
        if (this.ChapterTwoList[i].constValue == e) {
          this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
        }
      }
    },
    selectunitList(e) {
      for (var i = 0; i < this.unitList.length; i++) {
        if (this.unitList[i].constValue == e) {
          this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
        }
      }
    },
    selectgrade(e) {
      for (var i = 0; i < this.gradeList.length; i++) {
        if (this.gradeList[i].constValue == e) {
          this.deptBudgetList.gradeKey = this.gradeList[i].constKey
        }
      }
    },
    selectgoodsName(e) {
      for (var i = 0; i < this.goodnameList.length; i++) {
        if (this.goodnameList[i].constValue == e) {
          this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
        }
      }
    },
    selectpackingMethod(e) {
      for (var i = 0; i < this.packtypeList.length; i++) {
        if (this.packtypeList[i].constValue == e) {
          this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
        }
      }
    },
    uploadSuccessHandle1(e, index) {
      this.pictureTotal++
      if (this.deptBudgetList.tranCarInfoList[0].unloadPoundImg) {
        this.deptBudgetList.tranCarInfoList[0].unloadPoundImg += ',' + e.url
      } else {
        this.deptBudgetList.tranCarInfoList[0].unloadPoundImg = e.url
      }
      feedback(this.deptBudgetList)
        .toPromise()
        .then((response) => {})
    },
  },
}
</script>

<style lang="scss" scoped>
/deep/.totalStorage .el-input__inner {
  color: #afb5cb;
  background: #f5f7fa;
}
.small-title {
  position: relative;
  padding: 10px;
  font-weight: 600;
}
.small-title::before {
  position: absolute;
  content: '';
  display: block;
  background: #5473e8;
  width: 4px;
  height: 14px;
  left: 0px;
  top: 13px;
}
.position {
  position: relative;
}

.amap-page-container {
  width: 300px;
  height: 300px;
}
.el-form {
  padding: 0 15%;
}
/deep/.ws-info-table .el-form-item {
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.readonly {
  position: relative;
}
.readonly:after {
  content: '*';
  color: #ff2727;
  position: absolute;
  right: 8px;
  z-index: 10;
  top: 21%;
  font-size: 20px;
}
.title {
  position: relative;
}
.title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 30px;
  background: #5473e8;
  position: absolute;
  left: 0;
}
.el-button--primary {
  background-color: #5878e8;
  border-color: #5878e8;
}
.el-col {
  background: #f6f7fc;
}
/deep/.ws-info-table .el-form-item .el-form-item__content {
  padding: 0 25px;
  border-left: 1px solid transparent;
  background: #fff;
}
/deep/.ws-info-table .el-form-item .el-form-item__label {
  width: 100px;
  text-align: center;
  background: #fff;
  // border: 1px solid #cdd2dc;
}
.button-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  width: 100%;
  height: 50px;
  padding: 0 10px;
  & > div {
    margin-left: 10px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    & > span {
      line-height: 50px;
    }
  }

  /deep/.auditFlow-box {
    position: unset;
    margin-left: 10px;
    &/deep/.auditFlow-icon {
      width: auto;
      padding-right: 30px;
    }
    &/deep/.auditFlow-main {
      position: absolute;
    }
  }
}
.box-app {
  display: inline-block;
  float: left;
  margin-left: 30px;
  line-height: 50px;
}
/deep/.el-dialog {
  .el-form-item {
    margin-bottom: 0 !important;
    .el-input--medium {
      textarea {
        min-height: 100px !important;
      }
    }
  }
}
.collapse-bottom {
  margin-bottom: 20px;
}
.input-main .textarea .el-textarea__inner {
  width: 100%;
  z-index: 1;
}
.bg-left {
  padding-left: 30px;
}
.bg-right {
  padding-right: 10px;
  text-align: right;
}
.bg-bottom {
  margin: 15px 0px;
}
.wenzi {
  width: 900px;
  margin: 0 auto;
}
.wenzi h3 {
  display: inline-block;
  left: 10px;
}
.wenzi p {
  display: inline-block;
}
.center {
  width: 900px;
  margin: 0 auto;
}
.el-form-item {
  width: 50%;
}
.el-form-item__label {
  text-align: center;
}
.ce {
  width: 900px;
  margin: 0 auto;
}
/*.crt-main .textarea /deep/ .el-form-item__label {*/
/*  height: 82px;*/
/*}*/
// 控制select为只读的时候显示样式

.hide-sel {
  .el-input__inner {
    border: 0px;
  }
  .el-icon-arrow-up {
    display: none;
  }
  .el-textarea__inner {
    background-color: #fff !important;
    border: 0;
  }
  .el-date-editor {
    i {
      display: none;
    }
  }
  // .is-disabled {
  //   .el-input__inner:hover {
  //     background-color: #fff !important;
  //     border: 0;
  //   }
  //   color: #606266;
  //   .el-input__inner {
  //     background-color: #fff !important;
  //     border: 0;
  //     color: #606266;
  //   }
  //   .el-textarea__inner {
  //     background-color: #fff !important;
  //     border: 0;
  //     color: #606266;
  //   }
  // }
}

// 控制select为只读的时候显示样式
/deep/.ws-class-table-col {
  height: auto;
  padding: 0px 2px;
  /deep/.el-input__inner {
    padding: 0px 2px;
  }
}
// /deep/.is-disabled {
//   .el-input__prefix,
//   .el-input__suffix {
//     display: none;
//   }
//   .el-input__inner {
//     background-color: #fff;
//     border-color: #fff !important;
//     color: #000 !important;
//     font-size: 14px;
//     cursor: text;
//     padding: 0 !important;
//   }
// }
.winseaview-view {
  padding: 0 0 20px;
}
.container {
  overflow: scroll;
  height: 93vh;
}
.ws-info-table .el-form-item {
  width: 33.3333%;
}
.readonly:after {
  display: none;
}
.el-textarea__inner {
  display: none;
}
.el-form {
  margin-top: 50px;
}
.readonly {
  width: 16%;
}

//去边框
/deep/.el-form-item {
  border-right: 0px;
  border-bottom: 0px;
}
/deep/.ws-info-table {
  border-left: 0px;
  border-top: 0px;
}
.ws-info-table .el-form-item .el-form-item__content {
  border: none;
}
/deep/.ws-info-table .el-form-item {
  border: none;
  height: 50px;
}
/deep/.ws-info-table .el-form-item .el-form-item__content {
  background: #f5f7fa;
  border-radius: 4px;
  border: 1px solid #d8dce6;
  font-family: PingFangSC-Regular, PingFang SC;
  margin-bottom: 5px;
  background-color: #fff;
  font-size: 14px;
  font-weight: 400;
  color: #8890b1;
  line-height: 16px;
}
/deep/.ws-info-table .el-form-item .el-form-item__label {
  background-color: #fff;
  font-size: 13px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #8890b1;
  line-height: 16px;
}

/deep/.ws-info-table .el-form-item .el-form-item__content {
  background: #f5f7fa;
  border-radius: 4px;
  border: 1px solid #d8dce6;
}
/deep/.flex .ws-info-table .el-form-item .el-form-item__content {
  border: 0px;
}
//联络员及车次
/deep/.liaison .ws-info-table .el-form-item {
  width: 25%;
}
/deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
  width: 50%;
  background: #f6f7fc;
}
// /deep/.liaison .flex {
//   display: contents;
// }
/deep/.liaison .ws-info-table {
  background: #f6f7fc;
  border-radius: 4px;
  border: 1px solid #d8dce6;
  margin-top: 20px;
  width:98%;
}
.catNos {
  width: 100%;
  height: 30px;
  margin-top: 10px;
  margin-left: 20px;
  font-size: 14px;
}
.catNosCor {
  color: #5473e8;
}
.add {
  width: 130px;
  height: 34px;
  background: #f6f7fb;
  border-radius: 17px;
  color: #5473e8;
  font-size: 14px;
  border: none;
}
.add img {
  display: inline-block;
  margin-top: 3px;
  margin-left: -30px;
}
.add .spans {
  display: table-caption;
  width: 56px;
  height: 20px;
  line-height: 18px;
}
.signStatus {
  height: 25px;
  border-radius: 3px;
  border: 1px solid #5473e8;
  padding: 0 3px;
  color: #ffffff;
  background: #c4cada;
  line-height: 24px;
  margin-left: 18px;
}
.signStatus1 {
  height: 25px;
  background: #e6ebff;
  border-radius: 3px;
  border: 1px solid #5473e8;
  padding: 0 3px;
  margin-left: 18px;
  color: #5473e8;
  line-height: 24px;
}
.line {
  height: 26px;
  margin-top: 6px;
  left: 2px;
}
/deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
  padding: 0px;
}
//送达/未送达
.noservice,
.service {
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #d8dce6;
  padding: 2px;
  font-size: 12px;
}
.noservice {
  background: #c4cada;
  color: #ffffff;
}
.service {
  background: #e5f1f7;
  color: #50cad4;
}
.serviced {
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #d8dce6;
  padding: 2px;
  font-size: 12px;
  background: #e5f1f7;
  color: #2c81cf;
}
.center1 {
  width: 100px;
  margin: 0 auto;
  margin-top: -2%;
}
.tupian {
  margin-left: 14%;
  margin-top: -7%;
}
</style>