spring
2025-04-09 58be07dbde1f3375d86204cb215c8372b615a01b
原辅材车间文件预览调整+成品分配权限限制
已修改4个文件
31 ■■■■ 文件已修改
src/views/business/inspectionTask/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/materialOrder/customsInspection.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/productOrder/components/issuedDialog.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/inspectionTask/index.vue
@@ -56,7 +56,7 @@
              scope.row.insState == 5 ||
              scope.row.insState == 3 ||
              (scope.row.userName && !scope.row.userName.includes(nickName))
            )" @click="handleConnect(scope.row)">交接</el-button>
            )" @click="handleConnect(scope.row)" v-if="tabIndex != 0">交接</el-button>
            <el-button type="text" size="small" @click="viewInspectInfo(scope.row)">原始记录</el-button>
            <el-popover placement="bottom" trigger="hover" style="margin-left: 6px">
              <template #reference>
src/views/business/materialOrder/customsInspection.vue
@@ -172,12 +172,16 @@
                <i class="el-icon-document"></i>
                车间附件查看
              </el-button>
              <el-dialog :visible.sync="fileDialogVisible" title="附件查看" width="80%">
                <fileList :currentNo="addObj.workShopId" v-if="fileDialogVisible" />
              </el-dialog>
            </el-form-item>
          </el-form>
        </div>
        <el-button type="text" @click="handleFileDialog" v-show="active != 1">
          <i class="el-icon-document"></i>
          车间附件查看
        </el-button>
        <el-dialog :visible.sync="fileDialogVisible" title="附件查看" width="80%">
          <fileList :currentNo="addObj.workShopId" v-if="fileDialogVisible" :isLook="true" />
        </el-dialog>
        <div style="margin-bottom: 6px;margin-top: 6px">
          <el-button v-show="active == 1" :disabled="sampleList.length === 2" size="small" type="primary"
            @click="handleSplitCountNum">拆分</el-button>
src/views/business/productOrder/components/issuedDialog.vue
@@ -18,7 +18,7 @@
        <el-table-column label="分配人员" prop="checkUserId">
          <template slot-scope="scope">
            <el-select v-model="scope.row.checkUserId" clearable filterable placeholder="请选择" size="small"
              style="width: 100%;">
              style="width: 100%;" :disabled="scope.row.insResult !== null">
              <el-option v-for="(item, i) in personList" :key="i + 'gbnm.'" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue
@@ -4,7 +4,7 @@
      <el-upload ref='upload' :action="fileAction" :auto-upload="true" :before-upload="fileBeforeUpload"
        :data="{ id: currentId }" :headers="uploadHeader" :on-error="onError" :on-success="handleSuccessUp"
        :show-file-list="false" accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar'
        style="width: 80px !important;">
        style="width: 80px !important;" v-if="!isLook">
        <el-button size="small" style="height: 38px" type="primary">附件上传</el-button>
      </el-upload>
    </div>
@@ -26,7 +26,16 @@
    limsTable,
    filePreview,
  },
  props: ['currentId'],
  props: {
    currentId: {
      type: String,
      default: ''
    },
    isLook: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    fileAction() {
      return this.javaApi + '/workShop/uploadFile'
@@ -79,13 +88,15 @@
              type: 'text',
              clickFun: (row) => {
                this.delete(row);
              },
              showHide: (row) => {
                return !this.isLook
              }
            },
            {
              name: '预览',
              type: 'text',
              clickFun: (row) => {
                console.log('预览文件信息:', row)
                this.currentInfo = row
                this.lookDialogVisible = true
              }