 <template>
  <div>
    <el-breadcrumb separator="/" class="bread_crumb1 bread_left">
      <el-breadcrumb-item :to="{ path: '/shop' }">服务超市</el-breadcrumb-item>
      <el-breadcrumb-item>{{ name }}</el-breadcrumb-item>
    </el-breadcrumb>
    <block-radius>
      <el-form ref="form" :inline="true" :model="form" class="form_block">
        <el-row>
          <el-col :span="11">
            <el-form-item class="form_item">
              <div class="form_item_title">申请部门：</div>
              <el-input v-model="form.department" placeholder="请输入申请部门"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="11" :offset="1">
            <el-form-item class="form_item">
              <div class="form_item_title">部门联系人：</div>
              <el-input v-model="form.name" placeholder="请输入联系人姓名"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="11">
            <el-form-item class="form_item">
              <div class="form_item_title">联系电话：</div>
              <el-input v-model="form.tel" placeholder="请输入联系人电话"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </block-radius>
    <block-radius>
      <el-tabs v-model="activeName" class="cloud_form" @tab-click="tabClick">
        <el-tab-pane label="申请新的工作区域" name="0">
          <el-row>
            <el-col :span="12">
              <el-form ref="formNew" :model="formNew">
                <el-row>
                  <el-col :span="24">
                    <div class="form_title">基本信息</div>
                  </el-col>
                  <el-col :span="22">
                    <el-form-item class="form_item">
                      <div class="form_item_title">工作区域名称：</div>
                      <el-input v-model="formNew.workAreaName" placeholder="请输入工作区域英文名称"></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="22">
                    <el-form-item class="form_item">
                      <div class="form_item_title">中文名称：</div>
                      <el-input v-model="formNew.cnName" placeholder="请输入工作区域中文名称"></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="22">
                    <el-form-item class="form_item">
                      <div class="form_item_title">描述信息：</div>
                      <el-input
                        type="textarea"
                        v-model="formNew.description"
                        placeholder="请输入工作区域描述信息"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="24">
                    <div class="form_title">工作区域申请规格</div>
                  </el-col>
                  <el-col :span="22">
                    <el-form-item class="form_item input_has_right">
                      <div class="form_item_title">CPU：</div>
                      <el-select v-model="formNew.CPUs" placeholder="请选择CPU使用量">
                        <el-option
                          v-for="item in optionsCPU"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        ></el-option>
                      </el-select>
                      <div class="input_right">核</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="22">
                    <el-form-item class="form_item input_has_right">
                      <div class="form_item_title">内存：</div>
                      <el-select v-model="formNew.RAMs" placeholder="请选择内存使用量">
                        <el-option
                          v-for="item in optionsRAM"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        ></el-option>
                      </el-select>
                      <div class="input_right">GB</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="22">
                    <el-form-item class="form_item input_has_right">
                      <div class="form_item_title">容器组：</div>
                      <el-input-number
                        v-model="formNew.containerGroup"
                        controls-position="right"
                        :min="0"
                        :max="10"
                        placeholder="取值范围[0，24]"
                      ></el-input-number>
                      <div class="input_right">个</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="11">
                    <el-form-item class="form_item input_has_right">
                      <div class="form_item_title">数据盘（可选）：</div>
                      <el-input-number
                        v-model="formNew.dataDisk"
                        controls-position="right"
                        :min="0"
                        :max="10"
                        placeholder="请选择数量"
                      ></el-input-number>
                      <div class="input_right">块</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="11">
                    <el-form-item class="form_item input_has_right">
                      <div class="form_item_title">每块数据盘容量：</div>
                      <el-input-number
                        v-model="formNew.perDataDisk"
                        controls-position="right"
                        :min="0"
                        :max="10"
                        placeholder="请选择容量"
                      ></el-input-number>
                      <div class="input_right">GB</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="24">
                    <div class="form_title">单个容器组规格</div>
                  </el-col>
                  <el-col :span="24">
                    <div class="form_item_title">CPU：</div>
                  </el-col>
                  <el-col :span="11">
                    <el-form-item class="form_item input_has_left_right">
                      <div class="input_left">最高</div>
                      <el-input-number
                        v-model="formNew.perCPUs"
                        controls-position="right"
                        :min="0"
                        :max="10"
                        placeholder="请选择CPU最高使用量"
                      ></el-input-number>
                      <div class="input_right">核</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="11">
                    <el-form-item class="form_item input_has_left_right">
                      <div class="input_left">默认</div>
                      <el-input-number
                        v-model="formNew.perCPU"
                        controls-position="right"
                        :min="0"
                        :max="10"
                        placeholder="请选择CPU默认使用量"
                      ></el-input-number>
                      <div class="input_right">核</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="24">
                    <div class="form_item_title">内存：</div>
                  </el-col>
                  <el-col :span="11">
                    <el-form-item class="form_item input_has_left_right">
                      <div class="input_left">最高</div>
                      <el-input-number
                        v-model="formNew.perRAMs"
                        controls-position="right"
                        :min="0"
                        :max="10"
                        placeholder="请选择内存最高使用量"
                      ></el-input-number>
                      <div class="input_right">核</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="11">
                    <el-form-item class="form_item input_has_left_right">
                      <div class="input_left">默认</div>
                      <el-input-number
                        v-model="formNew.perRAM"
                        controls-position="right"
                        :min="0"
                        :max="10"
                        placeholder="请选择内存默认使用量"
                      ></el-input-number>
                      <div class="input_right">核</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="24">
                    <div class="form_title">其他信息</div>
                  </el-col>
                  <el-col :span="22">
                    <el-form-item class="form_item input_has_right_select">
                      <div class="form_item_title">申请时长：</div>
                      <el-input-number
                        v-model="formNew.appDuration"
                        controls-position="right"
                        :min="0"
                        :max="10"
                      ></el-input-number>
                      <el-select
                        v-model="formNew.durType"
                        class="input_right_select"
                        placeholder="请选择申请时长"
                      >
                        <el-option
                          v-for="item in durationOptions"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        ></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="22">
                    <el-form-item class="form_item">
                      <div class="form_item_title">申请文件：</div>
                      <upload-file
                        :multiple="false"
                        :max="1"
                        type="zip"
                        :readOnly="false"
                        :drag="true"
                        @getNewList="getNewList"
                      ></upload-file>
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
            </el-col>
          </el-row>
        </el-tab-pane>
        <el-tab-pane label="升级现有工作区域" name="1">
          <el-row>
            <el-col :span="11">
              <div class="select_title">选择要进行升级的工作区域：</div>
              <div class="form_item">
                <el-select v-model="workSpace" @change="getForm" placeholder="请选择">
                  <el-option
                    v-for="item in workSpaceOptions"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
              </div>
            </el-col>
          </el-row>
          <div v-if="formShow">
            <el-row>
              <el-col :span="12">
                <el-form ref="formNew" :model="formOld">
                  <el-row>
                    <el-col :span="24">
                      <div class="form_title">工作区域升级规格</div>
                    </el-col>
                    <el-col :span="24">
                      <div class="now_spec">当前规格：</div>
                      <div class="now_spec_cards">
                        <div
                          class="now_spec_card"
                          v-for="(item, index) in specArr"
                          :key="index + 'spec'"
                        >
                          <img
                            class="now_spec_card_img"
                            :src="require('@/assets/imgs/' + item.src + '.png')"
                          />
                          <span class="now_spec_card_title">{{ item.title }}</span>
                          <span
                            class="now_spec_card_val"
                          >{{ item.val + " " + (item.title == "CPU" ? "核" : item.title == "内存" ? "GB" : "个") }}</span>
                        </div>
                      </div>
                    </el-col>
                    <el-col :span="22">
                      <el-form-item class="form_item input_has_right">
                        <div class="form_item_title">申请CPU升级至：</div>
                        <el-select v-model="formOld.CPUs" placeholder="请选择CPU使用量">
                          <el-option
                            v-for="item in optionsCPU"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                          ></el-option>
                        </el-select>
                        <div class="input_right">核</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="22">
                      <el-form-item class="form_item input_has_right">
                        <div class="form_item_title">申请内存升级至：</div>
                        <el-select v-model="formOld.RAMs" placeholder="请选择内存使用量">
                          <el-option
                            v-for="item in optionsRAM"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                          ></el-option>
                        </el-select>
                        <div class="input_right">GB</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="22">
                      <el-form-item class="form_item input_has_right">
                        <div class="form_item_title">申请容器组升级至：</div>
                        <el-input-number
                          v-model="formOld.containerGroup"
                          controls-position="right"
                          :min="0"
                          :max="10"
                          placeholder="取值范围[0，24]"
                        ></el-input-number>
                        <div class="input_right">个</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="11">
                      <el-form-item class="form_item input_has_right">
                        <div class="form_item_title">增加数据盘：</div>
                        <el-input-number
                          v-model="formOld.dataDisk"
                          controls-position="right"
                          :min="0"
                          :max="10"
                        ></el-input-number>
                        <div class="input_right">块</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="11">
                      <el-form-item class="form_item input_has_right">
                        <div class="form_item_title">每块数据盘容量：</div>
                        <el-input-number
                          v-model="formOld.perDataDisk"
                          controls-position="right"
                          :min="0"
                          :max="10"
                        ></el-input-number>
                        <div class="input_right">GB</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="24">
                      <div class="form_title">单个容器组规格设定</div>
                    </el-col>
                    <el-col :span="24">
                      <div class="now_spec">当前规格：</div>
                      <div class="now_spec_cards">
                        <div
                          class="now_rqz_card"
                          v-for="(item, index) in rqzArr"
                          :key="index + 'rqz'"
                        >
                          <img
                            class="now_rqz_card_img"
                            :src="require('@/assets/imgs/' + item.src + '.png')"
                          />
                          <span class="now_rqz_card_title">{{ item.title }}</span>
                          <div class="now_rqz_card_val_div">
                            <span
                              class="now_rqz_card_val"
                            >最高&nbsp;{{ item.max }}&nbsp;{{ item.title == "CPU" ? "核" : "GB" }}</span>
                            <br />
                            <span
                              class="now_rqz_card_val"
                            >默认&nbsp;{{ item.default }}&nbsp;{{ item.title == "CPU" ? "核" : "GB" }}</span>
                          </div>
                        </div>
                      </div>
                    </el-col>
                    <el-col :span="24">
                      <div class="form_item_title">CPU：</div>
                    </el-col>
                    <el-col :span="11">
                      <el-form-item class="form_item input_has_left_right">
                        <div class="input_left">最高</div>
                        <el-input-number
                          v-model="formOld.perCPUs"
                          controls-position="right"
                          :min="0"
                          :max="10"
                          placeholder="请设置CPU最高使用量"
                        ></el-input-number>
                        <div class="input_right">核</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="11">
                      <el-form-item class="form_item input_has_left_right">
                        <div class="input_left">默认</div>
                        <el-input-number
                          v-model="formOld.perCPU"
                          controls-position="right"
                          :min="0"
                          :max="10"
                          placeholder="请设置CPU默认使用量"
                        ></el-input-number>
                        <div class="input_right">核</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="24">
                      <div class="form_item_title">内存：</div>
                    </el-col>
                    <el-col :span="11">
                      <el-form-item class="form_item input_has_left_right">
                        <div class="input_left">最高</div>
                        <el-input-number
                          v-model="formOld.perRAMs"
                          controls-position="right"
                          :min="0"
                          :max="10"
                          placeholder="请设置内存最高使用量"
                        ></el-input-number>
                        <div class="input_right">核</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="11">
                      <el-form-item class="form_item input_has_left_right">
                        <div class="input_left">默认</div>
                        <el-input-number
                          v-model="formOld.perRAM"
                          controls-position="right"
                          :min="0"
                          :max="10"
                          placeholder="请设置内存默认使用量"
                        ></el-input-number>
                        <div class="input_right">核</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="24">
                      <div class="form_title">其他信息</div>
                      <el-col :span="24">
                        <div class="now_spec">当前规格：</div>
                        <div class="now_spec_card_time">
                          <div>
                            <img
                              class="now_spec_card_time_img"
                              :src="require('@/assets/imgs/ic_shijian.png')"
                            />
                            <span class="now_spec_card_time_title">当前工作区域到期时间</span>
                            <span class="now_spec_card_time_val">2020-05-05 08:00:00</span>
                          </div>
                        </div>
                      </el-col>
                    </el-col>
                    <el-col :span="22">
                      <el-form-item class="form_item input_has_right_select">
                        <div class="form_item_title">申请续期：</div>
                        <el-input-number
                          v-model="formOld.appDuration"
                          controls-position="right"
                          :min="0"
                          :max="10"
                        ></el-input-number>
                        <el-select
                          v-model="formOld.durType"
                          class="input_right_select"
                          placeholder="请选择续期时长"
                        >
                          <el-option
                            v-for="item in durationOptions"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                          ></el-option>
                        </el-select>
                      </el-form-item>
                    </el-col>
                    <el-col :span="22">
                      <el-form-item class="form_item">
                        <div class="form_item_title">申请文件：</div>
                        <upload-file
                          :multiple="false"
                          :max="1"
                          type="zip"
                          :readOnly="false"
                          :drag="true"
                          @getNewList="getNewListOld"
                        ></upload-file>
                      </el-form-item>
                    </el-col>
                  </el-row>
                </el-form>
              </el-col>
            </el-row>
          </div>
        </el-tab-pane>
      </el-tabs>
      <div class="btn_footer">
        <el-button class="submit" @click="submitApp">提交申请</el-button>
      </div>
    </block-radius>
    <el-dialog title="申请信息确认" :visible.sync="dialogVisible" width="580px" class="cloud_dia">
      <el-row>
        <el-col :span="24">
          <span class="dia_item_title">申请组织：</span>
          <span class="dia_item_val">贵州省交通运输厅运输厅贵州省交通运输厅运输厅</span>
        </el-col>
        <el-col :span="10">
          <span class="dia_item_title">组织联系人：</span>
          <span class="dia_item_val">张三</span>
        </el-col>
        <el-col :span="10">
          <span class="dia_item_title">联系电话：</span>
          <span class="dia_item_val">13523232333</span>
        </el-col>
        <el-col :span="10">
          <span class="dia_item_title">申请类型：</span>
          <span class="dia_item_val">新资源申请</span>
        </el-col>
        <el-col :span="10" v-if="activeName == '1'">
          <span class="dia_item_title">工作区域名称：</span>
          <span class="dia_item_val">BD-aPaaSaPaaSaSaPV4.0.html</span>
        </el-col>
        <el-col :span="14" v-if="activeName == '0'">
          <span class="dia_item_title">上传申请文件：</span>
          <span class="dia_item_val">云资源申请修改意见V2.0审批审批函.pdf</span>
        </el-col>
        <el-col :span="24" v-else-if="activeName == '1'">
          <span class="dia_item_title">上传申请文件：</span>
          <span class="dia_item_val">云资源申请修改意见V2.0审批审批函.pdf</span>
        </el-col>
        <el-col :span="24">
          <!-- <span class="dia_item_title">原规格：</span> -->
          <div class="dia_block">
            <span class="dia_item_all_title">基本信息：</span>
            <div class="dia_block_item">
              <div class="dia_block_item_in">
                <span class="dia_block_item_title">工作区域名称：</span>
                <span class="dia_block_item_val">BD-aPaaSaPaaSaSaPV4.0.html</span>
              </div>
              <div class="dia_block_item_in">
                <span class="dia_block_item_title">中文名称：</span>
                <span class="dia_block_item_val">aPaaS平台V3.0</span>
              </div>
              <div class="dia_block_item_in">
                <span class="dia_block_item_title">描述信息：</span>
                <span class="dia_block_item_val">
                  用于部署运行aPaaS平台V3.0用于部署运行aPaaS平台V3.0用于
                  部署运行aPaaS平台V3.0
                </span>
              </div>
            </div>
            <span class="dia_item_all_title">工作区域申请规格：</span>
            <div class="dia_block_item">
              <div class="dia_block_item_in">
                <span class="dia_block_item_title">CPU：</span>
                <span class="dia_block_item_val">aPaaS-V3.0</span>
              </div>
              <div class="dia_block_item_in">
                <span class="dia_block_item_title">内存：</span>
                <span class="dia_block_item_val">aPaaS平台V3.0</span>
              </div>
              <div class="dia_block_item_in">
                <span class="dia_block_item_title">容器组：</span>
                <span class="dia_block_item_val">
                  用于部署运行aPaaS平台V3.0用于部署运行aPaaS平台V3.0用于
                  部署运行aPaaS平台V3.0
                </span>
              </div>
              <div class="dia_block_item_in">
                <span class="dia_block_item_title">数据盘：</span>
                <span class="dia_block_item_val">
                  用于部署运行aPaaS平台V3.0用于部署运行aPaaS平台V3.0用于
                  部署运行aPaaS平台V3.0
                </span>
              </div>
            </div>
            <span class="dia_item_all_title">单个容器组规格：</span>
            <div class="dia_block_item">
              <div class="dia_block_item_in">
                <span class="dia_block_item_title">CPU：</span>
                <p class="dia_block_item_val">
                  <span class="val_has_2">最高&nbsp;2核</span>
                  <span class="val_has_2">默认&nbsp;2核</span>
                </p>
              </div>
              <div class="dia_block_item_in">
                <span class="dia_block_item_title">内存：</span>
                <p class="dia_block_item_val">
                  <span class="val_has_2">最高&nbsp;2核</span>
                  <span class="val_has_2">默认&nbsp;2核</span>
                </p>
              </div>
            </div>
            <span class="dia_item_all_title">申请时长：</span>
            <div class="dia_block_item">
              <div class="dia_block_item_in">
                <span class="dia_block_item_title">申请时长</span>
                <span class="dia_block_item_val">6个月</span>
              </div>
            </div>
          </div>
        </el-col>
      </el-row>
      <div class="btn_footer">
        <el-button class="cancel" @click="cancel">取消</el-button>
        <el-button class="submit" @click="determineSubmit">确定提交</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import BlockRadius from "@/components/block-radius";
import uploadFile from "@/components/upload_file";
export default {
  components: {
    BlockRadius,
    uploadFile
  },
  props: {
    name: { type: String, default: "" }
  },
  data: () => ({
    form: {
      department: "",
      name: "",
      tel: ""
    },
    activeName: "0",
    formNew: {
      workAreaName: "",
      cnName: "",
      description: "",
      CPUs: "",
      RAMs: "",
      containerGroup: undefined,
      dataDisk: undefined,
      perDataDisk: undefined,
      perCPUs: undefined,
      perCPU: undefined,
      perRAMs: undefined,
      perRAM: undefined,
      appDuration: undefined,
      durType: ""
    },
    durationOptions: [
      { value: "月", label: "月" },
      { value: "年", label: "年" }
    ],
    workSpace: "",
    workSpaceOptions: [
      { value: "aaaaaaaaaa工作空间", label: "aaaaaaaaaa工作空间" },
      { value: "wwwwwwwwww工作空间", label: "wwwwwwwwww工作空间" }
    ],
    optionsCPU: [
      { value: "8", label: "8" },
      { value: "16", label: "16" }
    ],
    optionsRAM: [
      { value: "8", label: "8" },
      { value: "16", label: "16" },
      { value: "32", label: "32" }
    ],
    formShow: false,
    specArr: [
      { title: "CPU", val: "4", src: "ic_CPU" },
      { title: "内存", val: "4", src: "ic_neicun" },
      { title: "容器", val: "4", src: "ic_rongqi" }
    ],
    rqzArr: [
      { title: "CPU", max: "4", default: "2", src: "ic_CPU" },
      { title: "内存", max: "4", default: "2", src: "ic_neicun" }
    ],
    formOld: {
      workAreaName: "",
      cnName: "",
      description: "",
      CPUs: "",
      RAMs: "",
      containerGroup: undefined,
      dataDisk: undefined,
      perDataDisk: undefined,
      perCPUs: undefined,
      perCPU: undefined,
      perRAMs: undefined,
      perRAM: undefined,
      appDuration: undefined,
      durType: ""
    },
    dialogVisible: false
  }),
  methods: {
    tabClick() {},
    getNewList() {},
    getNewListOld() {},
    handleChange() {},
    getForm(val) {
      if (val != "") {
        this.formShow = true;
        Object.keys(this.formOld).forEach(item => {
          this.formOld[item] = undefined;
        });
      } else {
        this.formShow = false;
      }
    },
    submitApp() {
      let formParams = {};
      if (this.activeName == 0) {
        formParams = this.formNew;
      } else if (this.activeName == 1) {
        formParams = this.formOld;
      }
      this.dialogVisible = true;
      console.log(formParams, this.form);
    },
    determineSubmit() {
      console.log(formParams, this.form);
      this.dialogVisible = false;
    },
    cancel() {
      this.dialogVisible = false;
    }
  }
};
</script>

<style scoped>
.cloud_form {
}
.form_title {
  font-size: 18px;
  margin: 10px 0;
  padding: 0 0 0 15px;
  position: relative;
  color: #58617a;
}
.form_title::before {
  position: absolute;
  content: "";
  width: 4px;
  height: 18px;
  background-color: #515fe7;
  border-radius: 2px;
  left: 0;
  top: 4px;
}
.form_item {
  width: calc(100% - 20px);
}
.form_item_title {
  padding: 0 15px;
  line-height: 40px;
}
.input_has_right {
  position: relative;
}
.input_right {
  display: inline-block;
  width: 60px;
  height: 40px;
  padding: 0 0 0 15px;
  background-color: #edeef4;
  border: 1px #e3e5ef solid;
  color: #8890a7;
  border-radius: 0 8px 8px 0;
  position: absolute;
  right: 0;
}
.input_has_left_right {
  position: relative;
}
.input_left {
  display: inline-block;
  width: 60px;
  height: 40px;
  padding: 0 0 0 15px;
  background-color: #edeef4;
  border: 1px #e3e5ef solid;
  color: #8890a7;
  border-radius: 8px 0 0 8px;
  position: absolute;
  left: 0;
}
.input_has_right_select {
  position: relative;
}
.input_right_select {
  position: absolute;
  right: 0;
}
.select_title {
  padding: 20px 15px;
  font-weight: 700;
}
.now_spec {
  padding: 10px 15px;
}
.now_spec_cards {
}
.now_spec_card {
  display: inline-block;
  width: 165px;
  height: 50px;
  background-color: #f7f8f9;
  border-radius: 8px;
  line-height: 50px;
  padding: 0 20px;
  position: relative;
  margin-right: 20px;
}
.now_spec_card_title {
  color: #6573ae;
  margin-left: 10px;
}
.now_spec_card_val {
  color: #0d1847;
  position: absolute;
  right: 20px;
  top: 0;
}
.now_spec_card_img {
  position: relative;
  top: 2px;
}
.now_rqz_card {
  display: inline-block;
  width: 193px;
  height: 78px;
  background-color: #f7f8f9;
  border-radius: 8px;
  line-height: 78px;
  padding: 0 20px;
  position: relative;
  margin-right: 20px;
}
.now_rqz_card_title {
  color: #6573ae;
  margin-left: 10px;
}
.now_rqz_card_val_div {
  color: #0d1847;
  position: absolute;
  line-height: 30px;
  right: 20px;
  top: 9px;
}
.now_rqz_card_val {
}
.now_rqz_card_img {
  position: relative;
  top: 2px;
}
.now_spec_card_time {
  width: 381px;
  height: 50px;
  background-color: #f7f8f9;
  border-radius: 8px;
  line-height: 50px;
  padding: 0 20px;
  position: relative;
}
.now_spec_card_time_img {
  position: relative;
  top: 2px;
}
.now_spec_card_time_title {
  color: #6573ae;
  margin-left: 10px;
}
.now_spec_card_time_val {
  color: #0d1847;
  position: absolute;
  right: 20px;
  top: 0;
}
.btn_footer {
  display: flex;
  justify-content: flex-end;
  margin: 40px 20px 10px;
}
.btn_footer .submit {
  width: 100px;
  background-color: #0f2683;
  color: #f8f9fd;
}
.cancel {
  width: 100px;
  background-color: #c3caf8;
  color: #0f2683;
}
.dia_item_title {
  display: block;
  color: #8890a7;
  line-height: 24px;
  padding: 0 20px;
}
.dia_item_val {
  display: block;
  color: #242c43;
  line-height: 24px;
  margin-bottom: 10px;
  width: 90%;
  padding: 0 20px;
}
.dia_block {
  background-color: #f8f9fd;
  border-radius: 8px;
  margin: 10px 0;
  padding: 20px;
  font-size: 14px;
  line-height: 22px;
}
.dia_item_all_title {
  color: #242c43;
}
.dia_block_item {
  padding: 10px 0 0 20px;
}
.dia_block_item_in {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.dia_block_item_title {
  color: #8890a7;
  width: 120px;
  text-align: right;
}
.dia_block_item_val {
  color: #242c43;
  width: calc(100% - 130px);
}
.val_has_2 {
  margin-right: 20px;
}
</style>
<style>
.form_block .el-input .el-input__inner {
  background-color: #f7f8f9;
  color: #242c43;
}
.cloud_form .el-input {
  width: 100%;
}
.cloud_form .input_has_right .el-input {
  width: calc(100% - 60px);
}
.cloud_form .input_has_left_right .el-input {
  width: calc(100% - 120px);
  margin-left: 60px;
}
.cloud_form .input_has_left_right .el-input__inner {
  border-radius: 0;
  color: #242c43;
}
.cloud_form .el-select {
  width: 100%;
}
.cloud_form .el-input .el-input__inner {
  background-color: #f7f8f9;
  color: #242c43;
}
.cloud_form .el-input-number {
  width: calc(100% - 60px);
}
.cloud_form .el-input-number .el-input {
  width: 100%;
}
.cloud_form .input_has_left_right .el-input-number .el-input {
  width: calc(100% - 60px);
  margin-left: 60px;
}
.cloud_form .el-input-number .el-input__inner {
  text-align: left;
  color: #242c43;
}
.cloud_form .el-textarea {
  width: 100%;
}
.cloud_form .el-textarea .el-textarea__inner {
  background-color: #f7f8f9;
  border-radius: 8px;
  color: #242c43;
}
.form_item .el-form-item__content {
  width: 100%;
}
.form_item.el-form-item {
  margin-bottom: 12px;
}
.input_has_right .el-input__inner {
  border-radius: 8px 0 0 8px;
  color: #242c43;
}
.cloud_form .input_has_right_select .el-input-number {
  width: calc(100% - 100px);
}
.input_has_right_select .el-select {
  width: 100px;
}
.input_has_right_select .el-select .el-input.is-focus .el-input__inner {
  border-color: #0f2683;
}
.input_has_right_select .el-select .el-input__inner:focus {
  border-color: #0f2683;
}
.input_has_right_select .el-input__inner {
  border-radius: 8px 0 0 8px;
  color: #242c43;
}
.input_has_right_select .input_right_select.el-select .el-input {
  width: 100px;
  background-color: #0f2683;
  color: #ffffff;
  border-radius: 0 8px 8px 0;
}
.input_has_right_select
  .input_right_select.el-select
  .el-input
  .el-input__inner {
  border-radius: 0 8px 8px 0;
  color: #ffffff;
}
.input_right_select .el-input .el-input__inner {
  background-color: #0f2683;
  color: #242c43;
}
.cloud_form .el-input-number .el-input-number__increase,
.cloud_form .el-input-number .el-input-number__decrease {
  border-bottom: 0;
  border-left: 0;
  width: 40px;
}
.cloud_dia .el-dialog__header {
  border-bottom: 1px solid #edf0ff;
}
.cloud_dia .el-dialog__title {
  font-weight: 700;
}
.cloud_dia .el-dialog__body {
  text-align: left;
  font-size: 14px;
}
</style>