licp
2024-07-23 b1b8d681adaffa6a489eb78bb60c032b55a4d29a
修改数采权限
已修改2个文件
22 ■■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/Inspection.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/b1-inspect-order-plan.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -295,8 +295,8 @@
              <span style="margin-left: 4px;">%</span>
            </el-form-item>
          </el-form>
          <el-button type="primary" size="small" v-if="dataAcquisitionEidt>0&&PROJECT=='检测中心'&&collection" @click="getDataAcquisitionDevice" :loading="dataAcquisitionLoading">数据采集</el-button>
          <el-button :type="dataAcquisitionEidtAble?'':'primary'" size="small" v-if="dataAcquisitionEidt>0&&PROJECT=='检测中心'&&collection&&collected" @click="dataAcquisitionEidtAble=!dataAcquisitionEidtAble">{{dataAcquisitionEidtAble?'关闭编辑':'编辑数采'}}</el-button>
          <el-button type="primary" size="small" v-if="dataAcquisitionEidt>0&&PROJECT=='检测中心'" @click="getDataAcquisitionDevice" :loading="dataAcquisitionLoading">数据采集</el-button>
          <el-button :type="dataAcquisitionEidtAble?'':'primary'" size="small" v-if="dataAcquisitionEidt>0&&PROJECT=='检测中心'&&collected" @click="dataAcquisitionEidtAble=!dataAcquisitionEidtAble">{{dataAcquisitionEidtAble?'关闭编辑':'编辑数采'}}</el-button>
        </div>
      </div>
      <div class="center-box" id="nav" v-loading="tableLoading" v-if="!tableLists.find(m=>m.templateId==currentTable)||tableLists.find(m=>m.templateId==currentTable).templateName!='温度循环检验原始记录'">
@@ -845,7 +845,6 @@
        dataAcquisitionEidt:0,
        dataAcquisitionEidtAble:false,
        dataAcquisitionLoading:false,
        collection:false,
        collected:false
      }
    },
@@ -1286,7 +1285,6 @@
        let power = JSON.parse(sessionStorage.getItem('power'))
        let fileDel = false
        let fileAdd = false
        let collection = false
        let collected = false
        for (var i = 0; i < power.length; i++) {
                    if (power[i].menuMethod == 'uploadFile') {
@@ -1294,9 +1292,6 @@
                    }
                    if (power[i].menuMethod == 'delfile') {
                        fileDel = true
                    }
          if (power[i].menuMethod == 'dataCollection') {
                        collection = true
                    }
          if (power[i].menuMethod == 'isItAllowedToModifyTheCollectedValues') {
                        collected = true
@@ -1306,7 +1301,6 @@
                    this.componentData0.do.splice(1, 1)
                }
        this.fileAdd = fileAdd
        this.collection = collection
        this.collected = collected
      },
      async getCurrentProduct(id,type){
src/components/view/b1-inspect-order-plan.vue
@@ -233,12 +233,12 @@
                            font: '检验',
                            type: 'text',
                            method: 'handleInspection',
                            // disabFun: (row, index) => {
                            //     return row.userId == null || row.insState == 3 || row.insState == 5||JSON.parse(localStorage.getItem("user")).name != row.userName
                            // }
              disabFun: (row, index) => {
                                return row.userId == null || row.insState == 3 || row.insState == 5
                            disabFun: (row, index) => {
                                return row.userId == null || row.insState == 3 || row.insState == 5||JSON.parse(localStorage.getItem("user")).name != row.userName
                            }
              // disabFun: (row, index) => {
                            //     return row.userId == null || row.insState == 3 || row.insState == 5
                            // }
                        }, {
                            id: '',
                            font: '交接',
@@ -254,7 +254,7 @@
                            type: 'text',
                            method: 'handleReview',
                            disabFun: (row, index) => {
                                return row.userId == null || row.insState != 3 || row.verifyUser != 1||JSON.parse(localStorage.getItem("user")).name != row.userName
                                return row.userId == null || row.insState != 3 ||JSON.parse(localStorage.getItem("user")).name != row.userName
                            }
                        }, {
                            id: '',