licp
2024-04-19 74c58b88f878c4beafcedf4f75712bbdef4f7a6a
优化任务检验页面
已修改3个文件
36 ■■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/Inspection.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/tool/value-table.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/a5-laboratory-qualifications.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -31,18 +31,22 @@
    background-color: #fff;
    border-radius: 3px;
    padding: 20px;
    overflow: auto;
  }
  .center-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    /* overflow-x: hidden; */
    overflow-x: scroll;
  }
  .tables {
    margin-bottom: 16px;
    table-layout:fixed;
    margin: 5px 5px 16px;
  }
  .tables td {
@@ -54,7 +58,7 @@
  .content {
    display: flex;
    width: 100%;
    width: 100px;
    height: 100%;
    align-items: center;
    justify-content: left;
@@ -172,12 +176,12 @@
    <div class="center">
      <div class="center-box">
        <table border="1" class="tables" cellpadding="10" v-for="(item,index) in tableList" :key="index">
          <tbody>
            <tr v-for="(m,i) in item.arr" :key="i">
          <tbody style="overflow: auto;">
            <tr v-for="(m,i) in item.arr" :key="i" style="overflow: auto;">
              <!-- v-if="n.v.mc==undefined || n.v.mc.rs!=undefined" :colspan="n.v.mc&&n.v.mc.cs?n.v.mc.cs:1" :rowspan="n.v.mc&&n.v.mc.rs?n.v.mc.rs:1" -->
              <td :id='item.templateId+"-"+n.i+"-"+n.r+"-"+n.c' v-for="(n,j) in m" :key="j"
                :style="`background:${n.v.bg};color:${n.v.fc};font-size:${n.v.fs}px;width:${item.style.columnlen[n.c]}px;height:${item.style.rowlen[n.r]}px;font-wight:${n.v.bl?'bold':''};`">
                <div class="content" :class="`content-h-${n.v.ht} content-v-${n.v.vt}`">
                :style="`background:${n.v.bg};color:${n.v.fc};font-size:${n.v.fs}px;width:${item.style.columnlen[n.c]}px !important;height:${item.style.rowlen[n.r]}px;font-wight:${n.v.bl?'bold':''};`">
                <div class="content" :class="`content-h-${n.v.ht} content-v-${n.v.vt}`" :style="`width:${item.style.columnlen[n.c]}px !important;`">
                  <template v-if="n.v.ps!=undefined && n.v.ps.value==='检验值'">
                    <el-input v-if="getInspectionValueType(n.i) == 1" class="table_input" v-model="n.v.v"
                      :disabled="getInspectionItemType(n.i) == 1 || (n.u != userId && n.u != undefined && n.u != '')||state>1"
src/components/tool/value-table.vue
@@ -1067,14 +1067,13 @@
      // 批量删除
      batchDelete(){
        if(this.multipleSelection&&this.multipleSelection.length>0){
          // this.delUrl
          this.$confirm('是否删除选中的数据?', "警告", {
                            confirmButtonText: "确定",
                            cancelButtonText: "取消",
                            type: "warning"
                        }).then(() => {
                            this.$axios.post(this.delUrl, {
                                id: this.multipleSelection.map(item => item.id).join(',')
                                ids: JSON.stringify(this.multipleSelection.map(item => item.id))
                            }).then(res => {
                                if (res.code === 201) {
                                    return
src/components/view/a5-laboratory-qualifications.vue
@@ -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>
@@ -278,10 +279,10 @@
                itemParameterData: {
                    entity: {
                        name: null,
                        orderBy: {
                            field: 'id',
                            order: 'asc'
                        }
                        // orderBy: {
                        //     field: 'id',
                        //     order: 'asc'
                        // }
                    },
                    isIndex: false,
                    showSelect: true,
@@ -331,7 +332,7 @@
        finishLoding: false, // 加载完成,显示已经没有更多了
        entity:{
          name: null,
          orderBy: {field: "id", order: "asc"}
          // orderBy: {field: "id", order: "asc"}
        },
        currentPage: 1, // 当前页
        pageSize: 16, // 一页16条