licp
2024-06-07 32a95699e59c5c65e18c08643266c9cbfa380ee4
src/components/view/a5-laboratory-qualifications.vue
@@ -61,7 +61,7 @@
               </el-radio-group>
            </el-col>
            <el-col :span="12" style="text-align: right;" v-if="radio==0">
               <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">新增</el-button>
               <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">资质更新</el-button>
               <el-button size="medium" icon="el-icon-delete" @click="handleDel" v-if="delPower">删除</el-button>
            </el-col>
         </el-row>
@@ -119,8 +119,9 @@
                </div>
              </el-image>
              <div class="table-item-right" style="flex: 1;font-size: 12px;color: #666666;">
                <p style="line-height: 30px;">资质名称:<span style="color: #3A7BFA;">{{ m.name }}</span></p>
                <p style="line-height: 30px;">有效时间:{{m.expireTime}}</p>
                <p style="line-height: 26px;">资质名称:<span style="color: #3A7BFA;">{{ m.name }}</span></p>
                <p style="line-height: 26px;">颁发时间:{{m.recentlyTime}}</p>
                <p style="line-height: 26px;">到期时间:{{m.expireTime}}</p>
                <p>
                  <span>状态:</span>
                  <el-tag :type="m.state==0?'danger':'success'" size="small">{{ m.state==0?'失效':'有效' }}</el-tag>
@@ -148,7 +149,7 @@
      </div>
    <el-dialog title="资质更新" :visible.sync="qualificationsConnectVisible" width="400px">
         <div class="search_thing" style="margin-bottom: 16px;">
        <div class="search_label" style="width:120px">资质名称:</div>
        <div class="search_label" style="width:120px"><span class="required-span">* </span>资质名称:</div>
        <div class="search_input">
          <el-select v-model="formData.name" placeholder="请选择" style="width: 100%;" size="small" clearable>
            <el-option
@@ -161,7 +162,7 @@
        </div>
      </div>
      <div class="search_thing" style="margin-bottom: 16px;">
        <div class="search_label" style="width:120px">资质编码:</div>
        <div class="search_label" style="width:120px"><span class="required-span">* </span>资质编码:</div>
        <div class="search_input">
          <el-input
          size="small"
@@ -171,7 +172,7 @@
        </div>
      </div>
      <div class="search_thing" style="margin-bottom: 16px;">
        <div class="search_label" style="width:120px">颁发机构:</div>
        <div class="search_label" style="width:120px"><span class="required-span">* </span>颁发机构:</div>
        <div class="search_input">
          <el-input
          size="small"
@@ -190,10 +191,12 @@
               v-model="formData.explanation"></el-input>
        </div>
      </div>
      <div class="search_thing" style="margin-bottom: 16px;">
        <div class="search_label" style="width:120px">首次颁发时间:</div>
        <div class="search_label" style="width:120px"><span class="required-span">* </span>颁发时间:</div>
        <div class="search_input">
          <el-date-picker style="width:100%" v-model="formData.firstTime"
          <el-date-picker style="width:100%" v-model="formData.dateOfIssuance"
          type="datetime"
               size="small"
          format="yyyy-MM-dd HH:mm:ss"
@@ -202,22 +205,9 @@
          placeholder="选择日期">
               </el-date-picker>
        </div>
      </div>
      </div>
      <div class="search_thing" style="margin-bottom: 16px;">
        <div class="search_label" style="width:120px">最近颁发时间:</div>
        <div class="search_input">
          <el-date-picker style="width:100%" v-model="formData.recentlyTime"
          type="datetime"
               size="small"
          format="yyyy-MM-dd HH:mm:ss"
          value-format="yyyy-MM-dd HH:mm:ss"
          clearable
          placeholder="选择日期">
               </el-date-picker>
        </div>
      </div>
      <div class="search_thing" style="margin-bottom: 16px;">
        <div class="search_label" style="width:120px">到期颁发时间:</div>
        <div class="search_label" style="width:120px"><span class="required-span">* </span>到期时间:</div>
        <div class="search_input">
          <el-date-picker style="width:100%" v-model="formData.expireTime"
          type="datetime"
@@ -278,10 +268,10 @@
            itemParameterData: {
               entity: {
                  name: null,
                  orderBy: {
                     field: 'id',
                     order: 'asc'
                  }
                  // orderBy: {
                  //    field: 'id',
                  //    order: 'asc'
                  // }
               },
               isIndex: false,
               showSelect: true,
@@ -331,7 +321,7 @@
        finishLoding: false, // 加载完成,显示已经没有更多了
        entity:{
          name: null,
          orderBy: {field: "id", order: "asc"}
          // orderBy: {field: "id", order: "asc"}
        },
        currentPage: 1, // 当前页
        pageSize: 16, // 一页16条
@@ -444,6 +434,7 @@
        const link = document.createElement('a');
        link.href = this.javaApi + '/img/'+ url;
        document.body.appendChild(link);
        link.target = '_blank';
        link.click();
      },
      handleSuccessUpImg(response,name) {