luobang 6 months ago
parent
commit
410a6974b1

+ 12 - 12
cors.js

@@ -114,22 +114,22 @@ module.exports = {
         '^/icore.icp.web/pass/mqtt/v1': '/'
       }
     },
-    // '/icore.icp.web/pass/baseManagement/v1': {
-    //   target: 'http://127.0.0.1:9002/v1', // 正式
-    //   // target: 'http://192.168.3.165:9002/v1', // 加https
-    //   // target: 'https://jclims.steerinfo.com/v1',
-    //   changeOrigin: true,
-    //   pathRewrite: {
-    //     '^/icore.icp.web/pass/baseManagement/v1': '/' // 这里理解成用‘/api’代替target里面的地址,组件中我们调接口时直接用/api代替
-    //     // 比如我要调用'https://0.0:300/user/add',直接写‘/api/user/add’即可 代理后地址栏显示/
-    //   }
-    // },
     '/icore.icp.web/pass/baseManagement/v1': {
-      target: 'http://172.16.4.162', // 正式
+      target: 'http://localhost:9002/v1', // 正式
       // target: 'http://192.168.3.165:9002/v1', // 加https
       // target: 'https://jclims.steerinfo.com/v1',
-      changeOrigin: true
+      changeOrigin: true,
+      pathRewrite: {
+        '^/icore.icp.web/pass/baseManagement/v1': '/' // 这里理解成用‘/api’代替target里面的地址,组件中我们调接口时直接用/api代替
+        // 比如我要调用'https://0.0:300/user/add',直接写‘/api/user/add’即可 代理后地址栏显示/
+      }
     },
+    // '/icore.icp.web/pass/baseManagement/v1': {
+    //   target: 'http://172.16.4.162', // 正式
+    //   // target: 'http://192.168.3.165:9002/v1', // 加https
+    //   // target: 'https://jclims.steerinfo.com/v1',
+    //   changeOrigin: true
+    // },
     '/icore.icp.web/pass/systemBase/v1': {
       // target: 'http://168.168.45.55:9002/v1',
       // target: 'http://192.168.3.38:9004/v1',

+ 2 - 4
package.json

@@ -12,9 +12,7 @@
     "test": "npm run unit && npm run e2e",
     "lint": "eslint --ext .js,.vue src node_modules/icore-icp/test/unit node_modules/icore-icp/test/e2e/specs",
     "build": "node node_modules/icore-icp/build/build.js",
-    "testc": "cross-env NODE_ENV=test nyc mocha-webpack --webpack-config node_modules/icore-icp/build/webpack.test.conf.js --require node_modules/icore-icp/test/setup.js node_modules/icore-icp/test/**/*.spec.js",
-    "fix-memory-limit": "cross-env LIMIT=5012 increase-memory-limit"
-  },
+    "testc": "cross-env NODE_ENV=test nyc mocha-webpack --webpack-config node_modules/icore-icp/build/webpack.test.conf.js --require node_modules/icore-icp/test/setup.js node_modules/icore-icp/test/**/*.spec.js"  },
   "dependencies": {
     "codemirror": "5.65.5",
     "docx-preview": "^0.1.11",
@@ -122,4 +120,4 @@
     "instrument": false,
     "sourceMap": false
   }
-}
+}

+ 21 - 3
src/views/resourceManager/components/goodsMangement/batchApproveOutbound.vue

@@ -79,11 +79,18 @@ export default {
       table: {
         list: [],
       },
+      page4: {
+        pageSize: 50,
+        pageNum: 1,
+        totalPage: 0
+      },
+      dataLoading4: false
     }
   },
   created() {
   },
   mounted() {
+    this.getDataList();
   },
   methods: {
     getDataList(stuffNo) {
@@ -98,20 +105,31 @@ export default {
         endTime = this.search.time[1] + ' 23:59:59'
       }
       if (stuffNo === null || stuffNo === '') {
-        this.table.list4 = [];
+        this.table.list = [];
         this.dataLoading4 = false;
         return 0
       } else {
         this.axios.get('pass/baseManagement/v1/limslrcstuffos/' + '?pageNum=' + this.page4.pageNum + '&pageSize=' + this.page4.pageSize + '&stuffNo=' + stuffNo + '&startTime=' + startTime + '&endTime=' + endTime)
           .then(res => {
             this.dataLoading4 = false;
-            this.table.list4 = res.data.list;
+            this.table.list = res.data.list;
             this.page4.totalPage = res.data.total;
           }).catch(e => {
             this.dataLoading4 = false;
           });
       }
-    }
+    },
+    pageSizeChange4(size) {
+      this.page4.pageSize = size;
+      this.getDataList4();
+    },
+    pageCurrentChange4(index) {
+      this.page4.pageNum = index;
+      this.getDataList4();
+    },
+    handleSelectionChange4(val) {
+      this.multipleSelection6 = val;
+    },
   }
 }
 </script>

File diff suppressed because it is too large
+ 529 - 520
src/views/resourceManager/components/goodsMangement/goodsMangement.vue


+ 6 - 5
src/views/resourceManager/router/index.js

@@ -70,12 +70,13 @@ const constantRouterMap = [{
       path: 'standardFluidManagement',
       name: 'standardFluidManagement',
       component: resolve => require(['../components/standardFluidManagement/standardFluidManagement.vue'], resolve)
-    },
-    {
-      path: 'batchApproveOutbound',
-      name: 'batchApproveOutbound',
-      component: resolve => require(['../components/goodsMangement/batchApproveOutbound.vue'], resolve)
     }
+    // ,
+    // {
+    //   path: 'batchApproveOutbound',
+    //   name: 'batchApproveOutbound',
+    //   component: resolve => require(['../components/goodsMangement/batchApproveOutbound.vue'], resolve)
+    // }
   ]
 }];
 const router = new Router({

+ 1229 - 1405
src/views/standardManagement/components/internalAuditManagement/internalAuditManagement.vue

@@ -1,560 +1,384 @@
 <template>
-    <div class="examination">
-        <div class="common-head-search">
-            <el-form :inline='true'>
-                <el-form-item label="体系名称">
-                    <el-input v-model="searchForm.matName" @keyup.enter.native="searchAllData()" size="small" placeholder="请输入体系名称" style="width:150px"></el-input>
-                </el-form-item>
-                <el-form-item label="体系说明">
-                    <el-input v-model="searchForm.isoDesc" @keyup.enter.native="searchAllData()" size="small" placeholder="请输入体系说明" style="width:150px"></el-input>
-                </el-form-item>
-                <el-form-item label="创建时间">
-                    <el-date-picker
-                    v-model="searchForm.entrTime"
-                    type="daterange"
-                    range-separator="至"
-                    start-placeholder="开始日期"
-                    end-placeholder="结束日期"
-                    size="small"
-                    style="width:400px"
-                    format="yyyy-MM-dd HH:mm:ss"
-                    value-format="yyyy-MM-dd HH:mm:ss"
-                    :default-time="['00:00:00','23:59:59']">
-                    </el-date-picker>
-                </el-form-item>
-                <el-form-item>
-                    <el-button icon="el-icon-search" type="goon" size="mini" v-loading="tableLoading" @click="searchAllData">查询</el-button>
-                    <el-button icon="el-icon-refresh" type="info" plain size="mini" @click="resetData">重置</el-button>
-                    <el-button icon="el-icon-back" type="goon" size="mini" @click="toBack">返回消息通知</el-button>
-                </el-form-item>
-            </el-form>
+  <div class="examination">
+    <div class="common-head-search">
+      <el-form :inline='true'>
+        <el-form-item label="体系名称">
+          <el-input v-model="searchForm.matName" @keyup.enter.native="searchAllData()" size="small"
+            placeholder="请输入体系名称" style="width:150px"></el-input>
+        </el-form-item>
+        <el-form-item label="体系说明">
+          <el-input v-model="searchForm.isoDesc" @keyup.enter.native="searchAllData()" size="small"
+            placeholder="请输入体系说明" style="width:150px"></el-input>
+        </el-form-item>
+        <el-form-item label="创建时间">
+          <el-date-picker v-model="searchForm.entrTime" type="daterange" range-separator="至" start-placeholder="开始日期"
+            end-placeholder="结束日期" size="small" style="width:400px" format="yyyy-MM-dd HH:mm:ss"
+            value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item>
+          <el-button icon="el-icon-search" type="goon" size="mini" v-loading="tableLoading"
+            @click="searchAllData">查询</el-button>
+          <el-button icon="el-icon-refresh" type="info" plain size="mini" @click="resetData">重置</el-button>
+          <el-button icon="el-icon-back" type="goon" size="mini" @click="toBack">返回消息通知</el-button>
+        </el-form-item>
+      </el-form>
+    </div>
+    <el-row>
+      <el-col :span='10'>
+        <el-tabs type="border-card" v-model="activeName" class="testManagement_left">
+          <el-tab-pane label="待审核" name="first">
+            <div class="common-title-div">
+              <div class="common-title-name" style="margin-right: 10px">
+                <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
+                <span v-if="cIsoTypeCode == '485304'">待内审信息</span>
+                <span v-else-if="cIsoTypeCode == '485305'">待管理评审</span>
+                <span v-else-if="cIsoTypeCode == '485306'">待计划管理</span>
+                <span v-else-if="cIsoTypeCode == '485303'">待供应商管理</span>
+                <span v-else-if="cIsoTypeCode == '485308'">待质检计划管理</span>
+                <span v-else>待表格信息</span>
+              </div>
+              <div>
+                <el-button icon="el-icon-circle-plus-outline" type="goon" size="mini" @click="addData">新增信息</el-button>
+                <el-button icon="el-icon-circle-plus-outline" type="goon" size="mini"
+                  @click="TooaddData">新增文件</el-button>
+                <el-button icon="el-icon-remove-outline" type="danger" size="mini" v-loading="disableDataLoading"
+                  @click="disableData">停用</el-button>
+              </div>
+            </div>
+            <div class="common-table-div" style="margin-bottom:0;margin-top:0">
+              <el-table v-loading="tableLoading" ref="dataTable" border :height="mainHeight" highlight-current-row
+                @selection-change="handleSelectionChange" :data="tableData" :icore-filter-flag="icoreFilterFlag"
+                :header-cell-style="tableHeaderCellStyle" @current-change="table1RowChange"
+                @row-click="searchFollowDate" :cell-class-name="tableRowClassName" :summary-method="getSummaries2"
+                show-summary>
+                <el-table-column type="index" label="NO" align="center"></el-table-column>
+                <!-- <el-table-column type="selection" width="50" align="center"></el-table-column> -->
+                <el-table-column show-overflow-tooltip sortable width="60" align="center" prop="stateFlagName"
+                  label="状态"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoName"
+                  label="体系名称"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoDesc"
+                  label="体系说明"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoTypeName"
+                  label="类型"></el-table-column>
+                <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="filePath" label="下载/预览"
+                  align="center">
+                  <template slot-scope="scope">
+                    <el-tooltip content="下载" placement="bottom" effect="light">
+                      <el-button :disabled="!scope.row.filePath" type="goon" size="mini" icon="el-icon-download" circle
+                        @click="
+                          imgPreView(
+                            scope.row,
+                            scope.row.filePath
+                          )
+                          ">
+                      </el-button>
+                    </el-tooltip>
+                    <el-tooltip content="预览" placement="bottom" effect="light">
+                      <el-button :disabled="!scope.row.filePath" type="warning" size="mini" icon="el-icon-view" circle
+                        @click="
+                          imgPreViewY(
+                            scope.row,
+                            scope.row.filePath
+                          )
+                          ">
+                      </el-button>
+                    </el-tooltip>
+                  </template>
+                </el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="createMan"
+                  label="创建人"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="120" align="center" prop="createTime"
+                  label="创建时间"></el-table-column>
+              </el-table>
+            </div>
+            <div class="common-foot-style">
+              <el-pagination @size-change="handleSizeChangeMain" @current-change="handleCurrentChangeMain"
+                :current-page="pageIndex" :page-sizes="[10, 20, 30, 50, 100, 200]" :page-size="pageSize" size="mini"
+                layout="total, sizes, prev, pager, next, jumper" :total="total_main" background></el-pagination>
+            </div>
+          </el-tab-pane>
+          <el-tab-pane label="已审核完成" name="wancheng">
+            <div class="common-title-div">
+              <div class="common-title-name" style="margin-right: 10px">
+                <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
+                <span v-if="cIsoTypeCode == '485304'">已内审信息</span>
+                <span v-else-if="cIsoTypeCode == '485305'">已管理评审</span>
+                <span v-else-if="cIsoTypeCode == '485306'">已计划管理</span>
+                <span v-else-if="cIsoTypeCode == '485303'">已供应商管理</span>
+                <span v-else-if="cIsoTypeCode == '485308'">已质检计划管理</span>
+                <span v-else>已表格信息</span>
+              </div>
+              <div>
+                <el-button icon="el-icon-remove-outline" type="danger" size="mini" v-loading="disableDataLoading"
+                  @click="disableData1">停用</el-button>
+              </div>
+            </div>
+            <div class="common-table-div" style="margin-bottom:0;margin-top:0">
+              <el-table v-loading="tableLoading" ref="dataTable" border :height="mainHeight" highlight-current-row
+                @selection-change="handleSelectionChange3" :data="tableData3" :icore-filter-flag="icoreFilterFlag"
+                :header-cell-style="tableHeaderCellStyle" @current-change="table1RowChange"
+                @row-click="searchFollowDate3" :cell-class-name="tableRowClassName" :summary-method="getSummaries2"
+                show-summary>
+                <el-table-column type="index" label="NO" align="center"></el-table-column>
+                <!-- <el-table-column type="selection" width="50" align="center"></el-table-column> -->
+                <el-table-column show-overflow-tooltip sortable width="60" align="center" prop="stateFlagName"
+                  label="状态"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoName"
+                  label="体系名称"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoDesc"
+                  label="体系说明"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoTypeName"
+                  label="类型"></el-table-column>
+                <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="filePath" label="下载/预览"
+                  align="center">
+                  <template slot-scope="scope">
+                    <el-tooltip content="下载" placement="bottom" effect="light">
+                      <el-button :disabled="!scope.row.filePath" type="goon" size="mini" icon="el-icon-download" circle
+                        @click="
+                          imgPreView(
+                            scope.row,
+                            scope.row.filePath
+                          )
+                          ">
+                      </el-button>
+                    </el-tooltip>
+                    <el-tooltip content="预览" placement="bottom" effect="light">
+                      <el-button :disabled="!scope.row.filePath" type="warning" size="mini" icon="el-icon-view" circle
+                        @click="
+                          imgPreViewY(
+                            scope.row,
+                            scope.row.filePath
+                          )
+                          ">
+                      </el-button>
+                    </el-tooltip>
+                  </template>
+                </el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="createMan"
+                  label="创建人"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="120" align="center" prop="createTime"
+                  label="创建时间"></el-table-column>
+              </el-table>
+            </div>
+            <div class="common-foot-style">
+              <el-pagination @size-change="handleSizeChangeMain3" @current-change="handleCurrentChangeMain3"
+                :current-page="page3.pageIndex" :page-sizes="[10, 20, 30, 50, 100, 200]" :page-size="page3.pageSize"
+                size="mini" layout="total, sizes, prev, pager, next, jumper" :total="page3.total_main"
+                background></el-pagination>
+            </div>
+          </el-tab-pane>
+          <el-tab-pane label="已停用" name="tiyong">
+            <div class="common-title-div">
+              <div class="common-title-name" style="margin-right: 10px">
+                <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
+                <span v-if="cIsoTypeCode == '485304'">已停用信息</span>
+                <span v-else-if="cIsoTypeCode == '485305'">已停用评审</span>
+                <span v-else-if="cIsoTypeCode == '485306'">已停用计划</span>
+                <span v-else-if="cIsoTypeCode == '485303'">已停用供应商</span>
+                <span v-else-if="cIsoTypeCode == '485308'">已停用计划管理</span>
+                <span v-else>表格信息</span>
+              </div>
+              <div>
+                <el-button icon="el-icon-check" type="goon" size="mini" v-loading="enableDataLoading"
+                  style="border:3px;" @click="enableData">启用</el-button>
+                <el-button icon="el-icon-remove-outline" type="danger" size="mini" v-loading="deleteDataLoading"
+                  @click="deleteData">删除</el-button>
+              </div>
+            </div>
+            <div class="common-table-div" style="margin-bottom:0;margin-top:0">
+              <el-table v-loading="tableLoading" ref="dataTable" border :height="mainHeight" highlight-current-row
+                @selection-change="handleSelectionChange4" :data="tableData4" :icore-filter-flag="icoreFilterFlag"
+                :header-cell-style="tableHeaderCellStyle" @current-change="table1RowChange"
+                @row-click="searchFollowDate4" :cell-class-name="tableRowClassName" :summary-method="getSummaries2"
+                show-summary>
+                <el-table-column type="index" label="NO" align="center"></el-table-column>
+                <!-- <el-table-column type="selection" width="50" align="center"></el-table-column> -->
+                <el-table-column show-overflow-tooltip sortable width="60" align="center" prop="stateFlagName"
+                  label="状态"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoName"
+                  label="体系名称"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoDesc"
+                  label="体系说明"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoTypeName"
+                  label="类型"></el-table-column>
+                <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="filePath" label="下载/预览"
+                  align="center">
+                  <template slot-scope="scope">
+                    <el-tooltip content="下载" placement="bottom" effect="light">
+                      <el-button :disabled="!scope.row.filePath" type="goon" size="mini" icon="el-icon-download" circle
+                        @click="
+                          imgPreView(
+                            scope.row,
+                            scope.row.filePath
+                          )
+                          ">
+                      </el-button>
+                    </el-tooltip>
+                    <el-tooltip content="预览" placement="bottom" effect="light">
+                      <el-button :disabled="!scope.row.filePath" type="warning" size="mini" icon="el-icon-view" circle
+                        @click="
+                          imgPreViewY(
+                            scope.row,
+                            scope.row.filePath
+                          )
+                          ">
+                      </el-button>
+                    </el-tooltip>
+                  </template>
+                </el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="createMan"
+                  label="创建人"></el-table-column>
+                <el-table-column show-overflow-tooltip sortable width="120" align="center" prop="createTime"
+                  label="创建时间"></el-table-column>
+              </el-table>
+            </div>
+            <div class="common-foot-style">
+              <el-pagination @size-change="handleSizeChangeMain4" @current-change="handleCurrentChangeMain4"
+                :current-page="page4.pageIndex" :page-sizes="[10, 20, 30, 50, 100, 200]" :page-size="page4.pageSize"
+                size="mini" layout="total, sizes, prev, pager, next, jumper" :total="page4.total_main"
+                background></el-pagination>
+            </div>
+          </el-tab-pane>
+        </el-tabs>
+      </el-col>
+      <el-col :span='14'>
+        <div class="common-title-div">
+          <div class="common-title-name" style="margin-right: 10px">
+            <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
+            表格内容
+          </div>
+          <div>
+            <el-button icon="el-icon-check" type="goon" size="mini" v-loading="savetDataLoading" style="border:3px;"
+              @click="savetData">保存</el-button>
+            <el-button icon="el-icon-search" type="goon" size="mini" v-loading="loading"
+              @click="previewData">预览</el-button>
+            <el-button icon="el-icon-check" type="goon" size="mini" v-loading="submitLoading" style="border:3px;"
+              @click="submit">提交</el-button>
+            <el-button icon="el-icon-remove-outline" type="danger" size="mini" v-loading="ofSubmitLoading"
+              @click="ofSubmit">取消提交</el-button>
+          </div>
+        </div>
+        <div class="common-table-div" style="margin-bottom:0;margin-top:0">
+          <el-table v-loading="tableLoading2" ref="dataTable2" border :height="theight" highlight-current-row
+            :data="tableData2" @selection-change="table2SelectionChange" :icore-filter-flag="icoreFilterFlag"
+            :header-cell-style="tableHeaderCellStyle" @current-change="tableRowChange"
+            :cell-class-name="tableRowClassName1" :summary-method="getSummaries2" show-summary>
+            <el-table-column type="index" label="NO" align="center"></el-table-column>
+            <el-table-column type="selection" width="45" align="center"></el-table-column>
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="isoItemName" label="执行项目"
+              min-width="100"></el-table-column>
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="itemSit" label="项目填入位置"
+              min-width="80"></el-table-column>
+            <el-table-column sortable :show-overflow-tooltip="true" min-width="120" prop="valueSit" label="项目填入值"
+              align="center">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.valueSit" :disabled="scope.row.itemSit == null || scope.row.stateFlag == 1"
+                  :id="scope.column.id + '--' + scope.$index" @keydown.native="keyDown($event, scope.row, scope.$index)"
+                  size="small" style="width: 100%">
+                </el-input>
+              </template>
+            </el-table-column>
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="optName" label="执行岗位"
+              min-width="100"></el-table-column>
+            <!-- <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="createTime" label="执行时间" min-width="100"></el-table-column> -->
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="doOrder" label="执行顺序"
+              min-width="100"></el-table-column>
+            <!-- <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="memo3" label="意见" min-width="100"></el-table-column> -->
+          </el-table>
         </div>
+      </el-col>
+    </el-row>
+    <el-dialog @close="closeDialog" :visible.sync="recordShowFlag" width="50%" :close-on-click-modal="false">
+      <el-form ref="baseData" label-width="80px" :model="baseData">
         <el-row>
-            <el-col :span='10'>
-                <el-tabs
-                type="border-card"
-                v-model="activeName"
-                class="testManagement_left"
-                >
-                    <el-tab-pane label="待审核" name="first">
-                        <div class="common-title-div" >
-                            <div class="common-title-name" style="margin-right: 10px">
-                                <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
-                                <span v-if="cIsoTypeCode == '485304'">待内审信息</span>
-                                <span v-else-if="cIsoTypeCode == '485305'">待管理评审</span>
-                                <span v-else-if="cIsoTypeCode == '485306'">待计划管理</span>
-                                <span v-else-if="cIsoTypeCode == '485303'">待供应商管理</span>
-                                <span v-else-if="cIsoTypeCode == '485308'">待质检计划管理</span>
-                                <span v-else>待表格信息</span>
-                            </div>
-                            <div>
-                                <el-button icon="el-icon-circle-plus-outline" type="goon" size="mini" @click="addData">新增信息</el-button>
-                                <el-button icon="el-icon-circle-plus-outline" type="goon" size="mini" @click="TooaddData">新增文件</el-button>
-                                <el-button icon="el-icon-remove-outline" type="danger" size="mini" v-loading="disableDataLoading" @click="disableData">停用</el-button>
-                            </div>
-                        </div>
-                        <div class="common-table-div" style="margin-bottom:0;margin-top:0">
-                            <el-table v-loading="tableLoading" ref="dataTable" border :height="mainHeight" highlight-current-row  @selection-change="handleSelectionChange" :data="tableData" :icore-filter-flag="icoreFilterFlag"
-                            :header-cell-style="tableHeaderCellStyle" @current-change="table1RowChange"  @row-click="searchFollowDate" :cell-class-name="tableRowClassName"  :summary-method="getSummaries2" show-summary>
-                                <el-table-column type="index" label="NO" align="center"></el-table-column>
-                                <!-- <el-table-column type="selection" width="50" align="center"></el-table-column> -->
-                                <el-table-column show-overflow-tooltip sortable width="60" align="center" prop="stateFlagName" label="状态"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoName" label="体系名称"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoDesc" label="体系说明"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoTypeName" label="类型"></el-table-column>
-                                <el-table-column
-                                    sortable
-                                    :show-overflow-tooltip="true"
-                                    min-width="80px"
-                                    prop="filePath"
-                                    label="下载/预览"
-                                    align="center"
-                                    >
-                                    <template slot-scope="scope">
-                                        <el-tooltip
-                                            content="下载"
-                                            placement="bottom"
-                                            effect="light"
-                                        >
-                                            <el-button
-                                            :disabled="!scope.row.filePath"
-                                            type="goon"
-                                            size="mini"
-                                            icon="el-icon-download"
-                                            circle
-                                            @click="
-                                                imgPreView(
-                                                    scope.row,
-                                                    scope.row.filePath
-                                                )
-                                                "
-                                            >
-                                            </el-button>
-                                        </el-tooltip>
-                                        <el-tooltip
-                                            content="预览"
-                                            placement="bottom"
-                                            effect="light"
-                                        >
-                                            <el-button
-                                            :disabled="!scope.row.filePath"
-                                            type="warning"
-                                            size="mini"
-                                            icon="el-icon-view"
-                                            circle
-                                            @click="
-                                                imgPreViewY(
-                                                    scope.row,
-                                                    scope.row.filePath
-                                                )
-                                                "
-                                            >
-                                            </el-button>
-                                        </el-tooltip>
-                                    </template>
-                                </el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="createMan" label="创建人"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="120" align="center" prop="createTime" label="创建时间"></el-table-column>
-                            </el-table>
-                        </div>
-                        <div class="common-foot-style">
-                            <el-pagination
-                                @size-change="handleSizeChangeMain"
-                                @current-change="handleCurrentChangeMain"
-                                :current-page="pageIndex"
-                                :page-sizes="[10, 20, 30, 50, 100 , 200]"
-                                :page-size="pageSize"
-                                size="mini"
-                                layout="total, sizes, prev, pager, next, jumper"
-                                :total="total_main"
-                                background
-                            ></el-pagination>
-                        </div>
-                    </el-tab-pane>
-                    <el-tab-pane label="已审核完成" name="wancheng">
-                        <div class="common-title-div" >
-                            <div class="common-title-name" style="margin-right: 10px">
-                                <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
-                                <span v-if="cIsoTypeCode == '485304'">已内审信息</span>
-                                <span v-else-if="cIsoTypeCode == '485305'">已管理评审</span>
-                                <span v-else-if="cIsoTypeCode == '485306'">已计划管理</span>
-                                <span v-else-if="cIsoTypeCode == '485303'">已供应商管理</span>
-                                <span v-else-if="cIsoTypeCode == '485308'">已质检计划管理</span>
-                                <span v-else>已表格信息</span>
-                            </div>
-                            <div>
-                                <el-button icon="el-icon-remove-outline" type="danger" size="mini" v-loading="disableDataLoading" @click="disableData1">停用</el-button>
-                            </div>
-                        </div>
-                        <div class="common-table-div" style="margin-bottom:0;margin-top:0">
-                            <el-table v-loading="tableLoading" ref="dataTable" border :height="mainHeight" highlight-current-row  @selection-change="handleSelectionChange3" :data="tableData3" :icore-filter-flag="icoreFilterFlag"
-                            :header-cell-style="tableHeaderCellStyle" @current-change="table1RowChange"  @row-click="searchFollowDate3" :cell-class-name="tableRowClassName"  :summary-method="getSummaries2" show-summary>
-                                <el-table-column type="index" label="NO" align="center"></el-table-column>
-                                <!-- <el-table-column type="selection" width="50" align="center"></el-table-column> -->
-                                <el-table-column show-overflow-tooltip sortable width="60" align="center" prop="stateFlagName" label="状态"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoName" label="体系名称"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoDesc" label="体系说明"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoTypeName" label="类型"></el-table-column>
-                                <el-table-column
-                                    sortable
-                                    :show-overflow-tooltip="true"
-                                    min-width="80px"
-                                    prop="filePath"
-                                    label="下载/预览"
-                                    align="center"
-                                    >
-                                    <template slot-scope="scope">
-                                        <el-tooltip
-                                            content="下载"
-                                            placement="bottom"
-                                            effect="light"
-                                        >
-                                            <el-button
-                                            :disabled="!scope.row.filePath"
-                                            type="goon"
-                                            size="mini"
-                                            icon="el-icon-download"
-                                            circle
-                                            @click="
-                                                imgPreView(
-                                                    scope.row,
-                                                    scope.row.filePath
-                                                )
-                                                "
-                                            >
-                                            </el-button>
-                                        </el-tooltip>
-                                        <el-tooltip
-                                            content="预览"
-                                            placement="bottom"
-                                            effect="light"
-                                        >
-                                            <el-button
-                                            :disabled="!scope.row.filePath"
-                                            type="warning"
-                                            size="mini"
-                                            icon="el-icon-view"
-                                            circle
-                                            @click="
-                                                imgPreViewY(
-                                                    scope.row,
-                                                    scope.row.filePath
-                                                )
-                                                "
-                                            >
-                                            </el-button>
-                                        </el-tooltip>
-                                    </template>
-                                </el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="createMan" label="创建人"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="120" align="center" prop="createTime" label="创建时间"></el-table-column>
-                            </el-table>
-                        </div>
-                        <div class="common-foot-style">
-                            <el-pagination
-                                @size-change="handleSizeChangeMain3"
-                                @current-change="handleCurrentChangeMain3"
-                                :current-page="page3.pageIndex"
-                                :page-sizes="[10, 20, 30, 50, 100 , 200]"
-                                :page-size="page3.pageSize"
-                                size="mini"
-                                layout="total, sizes, prev, pager, next, jumper"
-                                :total="page3.total_main"
-                                background
-                            ></el-pagination>
-                        </div>
-                    </el-tab-pane>
-                    <el-tab-pane label="已停用" name="tiyong">
-                        <div class="common-title-div" >
-                            <div class="common-title-name" style="margin-right: 10px">
-                                <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
-                                <span v-if="cIsoTypeCode == '485304'">已停用信息</span>
-                                <span v-else-if="cIsoTypeCode == '485305'">已停用评审</span>
-                                <span v-else-if="cIsoTypeCode == '485306'">已停用计划</span>
-                                <span v-else-if="cIsoTypeCode == '485303'">已停用供应商</span>
-                                <span v-else-if="cIsoTypeCode == '485308'">已停用计划管理</span>
-                                <span v-else>表格信息</span>
-                            </div>
-                            <div>
-                                <el-button icon="el-icon-check" type="goon" size="mini" v-loading="enableDataLoading" style="border:3px;" @click="enableData">启用</el-button>
-                                <el-button icon="el-icon-remove-outline" type="danger" size="mini" v-loading="deleteDataLoading" @click="deleteData">删除</el-button>
-                            </div>
-                        </div>
-                        <div class="common-table-div" style="margin-bottom:0;margin-top:0">
-                            <el-table v-loading="tableLoading" ref="dataTable" border :height="mainHeight" highlight-current-row  @selection-change="handleSelectionChange4" :data="tableData4" :icore-filter-flag="icoreFilterFlag"
-                            :header-cell-style="tableHeaderCellStyle" @current-change="table1RowChange"  @row-click="searchFollowDate4" :cell-class-name="tableRowClassName"  :summary-method="getSummaries2" show-summary>
-                                <el-table-column type="index" label="NO" align="center"></el-table-column>
-                                <!-- <el-table-column type="selection" width="50" align="center"></el-table-column> -->
-                                <el-table-column show-overflow-tooltip sortable width="60" align="center" prop="stateFlagName" label="状态"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoName" label="体系名称"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoDesc" label="体系说明"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoTypeName" label="类型"></el-table-column>
-                                <el-table-column
-                                    sortable
-                                    :show-overflow-tooltip="true"
-                                    min-width="80px"
-                                    prop="filePath"
-                                    label="下载/预览"
-                                    align="center"
-                                    >
-                                    <template slot-scope="scope">
-                                        <el-tooltip
-                                            content="下载"
-                                            placement="bottom"
-                                            effect="light"
-                                        >
-                                            <el-button
-                                            :disabled="!scope.row.filePath"
-                                            type="goon"
-                                            size="mini"
-                                            icon="el-icon-download"
-                                            circle
-                                            @click="
-                                                imgPreView(
-                                                    scope.row,
-                                                    scope.row.filePath
-                                                )
-                                                "
-                                            >
-                                            </el-button>
-                                        </el-tooltip>
-                                        <el-tooltip
-                                            content="预览"
-                                            placement="bottom"
-                                            effect="light"
-                                        >
-                                            <el-button
-                                            :disabled="!scope.row.filePath"
-                                            type="warning"
-                                            size="mini"
-                                            icon="el-icon-view"
-                                            circle
-                                            @click="
-                                                imgPreViewY(
-                                                    scope.row,
-                                                    scope.row.filePath
-                                                )
-                                                "
-                                            >
-                                            </el-button>
-                                        </el-tooltip>
-                                    </template>
-                                </el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="createMan" label="创建人"></el-table-column>
-                                <el-table-column show-overflow-tooltip sortable width="120" align="center" prop="createTime" label="创建时间"></el-table-column>
-                            </el-table>
-                        </div>
-                        <div class="common-foot-style">
-                            <el-pagination
-                                @size-change="handleSizeChangeMain4"
-                                @current-change="handleCurrentChangeMain4"
-                                :current-page="page4.pageIndex"
-                                :page-sizes="[10, 20, 30, 50, 100 , 200]"
-                                :page-size="page4.pageSize"
-                                size="mini"
-                                layout="total, sizes, prev, pager, next, jumper"
-                                :total="page4.total_main"
-                                background
-                            ></el-pagination>
-                        </div>
-                    </el-tab-pane>
-                </el-tabs>
-            </el-col>
-            <el-col :span='14'>
-                <div class="common-title-div">
-                    <div class="common-title-name" style="margin-right: 10px">
-                        <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
-                        表格内容
-                    </div>
-                    <div>
-                        <el-button icon="el-icon-check" type="goon" size="mini" v-loading="savetDataLoading" style="border:3px;" @click="savetData">保存</el-button>
-                        <el-button icon="el-icon-search" type="goon" size="mini" v-loading="loading" @click="previewData">预览</el-button>
-                        <el-button icon="el-icon-check" type="goon" size="mini" v-loading="submitLoading" style="border:3px;" @click="submit">提交</el-button>
-                        <el-button icon="el-icon-remove-outline" type="danger" size="mini" v-loading="ofSubmitLoading" @click="ofSubmit">取消提交</el-button>
-                    </div>
-                </div>
-                <div class="common-table-div" style="margin-bottom:0;margin-top:0">
-                    <el-table v-loading="tableLoading2" ref="dataTable2"  border :height="theight" highlight-current-row  :data="tableData2" @selection-change="table2SelectionChange" :icore-filter-flag="icoreFilterFlag"
-                    :header-cell-style="tableHeaderCellStyle" @current-change="tableRowChange" :cell-class-name="tableRowClassName1" :summary-method="getSummaries2" show-summary>
-                        <el-table-column type="index" label="NO"  align="center"></el-table-column>
-                        <el-table-column type="selection" width="45" align="center"></el-table-column>
-                        <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="isoItemName" label="执行项目" min-width="100"></el-table-column>
-                        <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="itemSit" label="项目填入位置" min-width="80"></el-table-column>
-                        <el-table-column sortable :show-overflow-tooltip="true" min-width="120" prop="valueSit" label="项目填入值" align="center">
-                            <template slot-scope="scope">
-                                <el-input
-                                    v-model="scope.row.valueSit"
-                                    :disabled="scope.row.itemSit == null || scope.row.stateFlag == 1"
-                                    :id="scope.column.id + '--' + scope.$index"
-                                    @keydown.native="keyDown($event, scope.row, scope.$index)"
-                                    size="small"
-                                    style="width: 100%"
-                                >
-                                </el-input>
-                            </template>
-                        </el-table-column>
-                        <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="optName" label="执行岗位" min-width="100"></el-table-column>
-                        <!-- <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="createTime" label="执行时间" min-width="100"></el-table-column> -->
-                        <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="doOrder" label="执行顺序" min-width="100"></el-table-column>
-                        <!-- <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="memo3" label="意见" min-width="100"></el-table-column> -->
-                    </el-table>
-                </div>
-            </el-col>
+          <el-col>
+            <el-form-item prop="isoTypeName" label="体系类型">
+              <el-input v-model="baseData.isoTypeName" size="small"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col>
+            <el-form-item prop="isoName" label="体系名称">
+              <el-select v-model="baseData.isoNo" clearable filterable style="width: 100%" collapse-tags size="small">
+                <el-option v-for="(item, index) in isoTypeCodeType" :key="index" :label="item.isoName"
+                  :value="item.isoNo">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col>
+            <el-form-item prop="isoName" label="体系说明">
+              <el-input v-model="baseData.isoDesc" size="small"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col>
+            <el-form-item prop="entrTypeCode" label="备注">
+              <el-input v-model="baseData.memo" size="small"></el-input>
+            </el-form-item>
+          </el-col>
         </el-row>
-        <el-dialog
-            @close="closeDialog"
-            :visible.sync="recordShowFlag"
-            width="50%"
-            :close-on-click-modal="false"
-        >
-            <el-form
-                ref="baseData"
-                label-width="80px"
-                :model="baseData"
-            >
-                <el-row>
-                    <el-col>
-                        <el-form-item prop="isoTypeName" label="体系类型">
-                            <el-input
-                                v-model="baseData.isoTypeName"
-                                size="small"
-                            ></el-input>
-                        </el-form-item>
-                    </el-col>
-                    <el-col>
-                        <el-form-item prop="isoName" label="体系名称">
-                            <el-select
-                                v-model="baseData.isoNo"
-                                clearable
-                                filterable
-                                style="width: 100%"
-                                collapse-tags
-                                size="small"
-                            >
-                                <el-option
-                                v-for="(item, index) in isoTypeCodeType"
-                                :key="index"
-                                :label="item.isoName"
-                                :value="item.isoNo"
-                                >
-                                </el-option>
-                            </el-select>
-                        </el-form-item>
-                    </el-col>
-                    <el-col>
-                        <el-form-item prop="isoName" label="体系说明">
-                            <el-input
-                                v-model="baseData.isoDesc"
-                                size="small"
-                            ></el-input>
-                        </el-form-item>
-                    </el-col>
-                    <el-col>
-                        <el-form-item prop="entrTypeCode" label="备注">
-                            <el-input
-                                v-model="baseData.memo"
-                                size="small"
-                            ></el-input>
-                        </el-form-item>
-                    </el-col>
-                </el-row>
-            </el-form>
-            <span slot="footer" class="dialog-footer">
-                <el-button
-                    type="goon"
-                    size="mini"
-                    icon="el-icon-check"
-                    v-loading="confirmLoading"
-                    @click="addDateList"
-                    >确定</el-button
-                >
-                <el-button
-                    size="mini"
-                    type="goon"
-                    icon="el-icon-remove-outline"
-                    @click="cancel"
-                    >取消</el-button
-                >
-            </span>
-        </el-dialog>
-        <el-dialog
-            @close="ToocloseDialog"
-            :visible.sync="ToorecordShowFlag"
-            width="50%"
-            :close-on-click-modal="false"
-        >
-            <el-form
-                ref="TooData"
-                label-width="80px"
-                :model="TooData"
-                :rules="formRules"
-            >
-                <el-row>
-                    <el-col>
-                        <el-form-item prop="isoTypeName" label="体系类型">
-                            <el-input
-                                v-model="TooData.isoTypeName"
-                                size="small"
-                            ></el-input>
-                        </el-form-item>
-                    </el-col>
-                    <el-col>
-                        <el-form-item prop="isoName" label="体系名称">
-                            <el-select
-                                v-model="TooData.isoNo"
-                                clearable
-                                filterable
-                                style="width: 100%"
-                                collapse-tags
-                                size="small"
-                            >
-                                <el-option
-                                v-for="(item, index) in isoTypeCodeType"
-                                :key="index"
-                                :label="item.isoName"
-                                :value="item.isoNo"
-                                >
-                                </el-option>
-                            </el-select>
-                        </el-form-item>
-                    </el-col>
-                    <el-col>
-                        <el-form-item prop="isoName" label="体系说明">
-                            <el-input
-                                v-model="TooData.isoDesc"
-                                size="small"
-                            ></el-input>
-                        </el-form-item>
-                    </el-col>
-                    <el-col>
-                        <el-form-item prop="entrTypeCode" label="备注">
-                            <el-input
-                                v-model="TooData.memo"
-                                size="small"
-                            ></el-input>
-                        </el-form-item>
-                    </el-col>
-                    <el-col>
-                        <el-form-item label="文件上传" prop="filePath">
-                            <el-input
-                                v-model="TooData.filePath"
-                                size="small"
-                                readonly
-                                disabled
-                                style="width: 392px; display: inline-block"
-                            ></el-input>
-                            <el-upload
-                                class="upload"
-                                action=""
-                                v-if="TooData.filePath - 0 === 0"
-                                style="width: 40px; display: inline-block"
-                                :multiple="false"
-                                :show-file-list="false"
-                                accept=""
-                                :http-request="httpRequest"
-                            >
-                                <el-button
-                                type="goon"
-                                size="mini"
-                                icon="el-icon-upload2"
-                                ></el-button>
-                            </el-upload>
-                            <el-button
-                                v-else
-                                type="primary"
-                                size="mini"
-                                class="el-icon-circle-close"
-                                @click="dropFile"
-                            ></el-button>
-                        </el-form-item>
-                    </el-col>
-                </el-row>
-            </el-form>
-            <span slot="footer" class="dialog-footer">
-                <el-button
-                    type="goon"
-                    size="mini"
-                    icon="el-icon-check"
-                    v-loading="TooconfirmLoading"
-                    @click="TooaddDateList"
-                    >确定</el-button
-                >
-                <el-button
-                    size="mini"
-                    type="goon"
-                    icon="el-icon-remove-outline"
-                    @click="Toocancel"
-                    >取消</el-button
-                >
-            </span>
-        </el-dialog>
-        <div>
-            <div ref="file"></div>
-        </div>
+      </el-form>
+      <span slot="footer" class="dialog-footer">
+        <el-button type="goon" size="mini" icon="el-icon-check" v-loading="confirmLoading"
+          @click="addDateList">确定</el-button>
+        <el-button size="mini" type="goon" icon="el-icon-remove-outline" @click="cancel">取消</el-button>
+      </span>
+    </el-dialog>
+    <el-dialog @close="ToocloseDialog" :visible.sync="ToorecordShowFlag" width="50%" :close-on-click-modal="false">
+      <el-form ref="TooData" label-width="80px" :model="TooData" :rules="formRules">
+        <el-row>
+          <el-col>
+            <el-form-item prop="isoTypeName" label="体系类型">
+              <el-input v-model="TooData.isoTypeName" size="small"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col>
+            <el-form-item prop="isoName" label="体系名称">
+              <el-select v-model="TooData.isoNo" clearable filterable style="width: 100%" collapse-tags size="small">
+                <el-option v-for="(item, index) in isoTypeCodeType" :key="index" :label="item.isoName"
+                  :value="item.isoNo">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col>
+            <el-form-item prop="isoName" label="体系说明">
+              <el-input v-model="TooData.isoDesc" size="small"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col>
+            <el-form-item prop="entrTypeCode" label="备注">
+              <el-input v-model="TooData.memo" size="small"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col>
+            <el-form-item label="文件上传" prop="filePath">
+              <el-input v-model="TooData.filePath" size="small" readonly disabled
+                style="width: 392px; display: inline-block"></el-input>
+              <el-upload class="upload" action="" v-if="TooData.filePath - 0 === 0"
+                style="width: 40px; display: inline-block" :multiple="false" :show-file-list="false" accept=""
+                :http-request="httpRequest">
+                <el-button type="goon" size="mini" icon="el-icon-upload2"></el-button>
+              </el-upload>
+              <el-button v-else type="primary" size="mini" class="el-icon-circle-close" @click="dropFile"></el-button>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </el-form>
+      <span slot="footer" class="dialog-footer">
+        <el-button type="goon" size="mini" icon="el-icon-check" v-loading="TooconfirmLoading"
+          @click="TooaddDateList">确定</el-button>
+        <el-button size="mini" type="goon" icon="el-icon-remove-outline" @click="Toocancel">取消</el-button>
+      </span>
+    </el-dialog>
+    <div>
+      <div ref="file"></div>
     </div>
+  </div>
 </template>
 <script>
-import {getCookie,formatDate} from '@/utils/util.js';
+import { getCookie, formatDate } from '@/utils/util.js';
 import {
   cookieUserId,
   cookieUserName
@@ -564,864 +388,864 @@ let userId = getCookie(cookieUserId);
 let docx = require("docx-preview");
 import pdf from 'vue-pdf'
 export default {
-    data () {
-        return{
-            formRules: {
-                filePath: [{required: true, message: '该项不能为空', trigger: 'input'}]
-            },
-            searchForm: {
-                matName:'',
-                isoDesc:'',
-                entrTime:[]
-            },
-            baseData: {
-                isoTypeCode: this.cIsoTypeCode,
-                isoTypeName: this.cIsoTypeName,
-                isoNo: '',
-                isoName: '',
-                isoDesc: new Date().getFullYear(),
-                memo: ''
-            },
-            TooData: {
-                isoTypeCode: this.cIsoTypeCode,
-                isoTypeName: this.cIsoTypeName,
-                isoNo: '',
-                isoName: '',
-                isoDesc: new Date().getFullYear(),
-                memo: '',
-                filePath: '',
-            },
-            cIsoTypeCode: '',
-            cIsoTypeName: '',
-            srcUrl: '',
-            activeName: 'first',
-            confirmLoading: false,
-            TooconfirmLoading: false,
-            isoTypeCodeType: [],
-            cIsoTypeCodeType: [],
-            loading:false,
-            savetDataLoading: false,
-            submitLoading: false,
-            auitdLoading: false,
-            tableLoading: false,
-            tableLoading2: false,
-            auditDataLoading: false,
-            deleteDataLoading: false,
-            ofSubmitLoading: false,
-            enableDataLoading: false,
-            disableDataLoading: false,
-            tableData:[],
-            tableData3:[],
-            tableData4:[],
-            tableData2: [],
-            table1RowChange1: [],//表格2选中的数据
-            tableRowChange1: [],//表格2选中的数据
-            tableClick: {},//表格1点击的数据
-            tableClick3: {},
-            tableClick4: {},
-            testPostNameType:[],//岗位信息
-            mainHeight: 0,
-            theight:0,
-            multipleSelection:[],
-            multipleSelection3:[],
-            multipleSelection4:[],
-            multipleSelection1:[],
-            icoreFilterFlag: true,
-            page3:{
-                pageIndex: 1,
-                pageSize: 50,
-                total_main: 0
-            },
-            page4:{
-                pageIndex: 1,
-                pageSize: 50,
-                total_main: 0
-            },
-            pageIndex: 1,
-            pageSize: 50,
-            total_main:0,
-            recordShowFlag:false,//审核页面显示:
-            ToorecordShowFlag: false,
-            optNoParameter:'', //登录人岗位
-            typeToop: 0,
+  data() {
+    return {
+      formRules: {
+        filePath: [{ required: true, message: '该项不能为空', trigger: 'input' }]
+      },
+      searchForm: {
+        matName: '',
+        isoDesc: '',
+        entrTime: []
+      },
+      baseData: {
+        isoTypeCode: this.cIsoTypeCode,
+        isoTypeName: this.cIsoTypeName,
+        isoNo: '',
+        isoName: '',
+        isoDesc: new Date().getFullYear(),
+        memo: ''
+      },
+      TooData: {
+        isoTypeCode: this.cIsoTypeCode,
+        isoTypeName: this.cIsoTypeName,
+        isoNo: '',
+        isoName: '',
+        isoDesc: new Date().getFullYear(),
+        memo: '',
+        filePath: '',
+      },
+      cIsoTypeCode: '',
+      cIsoTypeName: '',
+      srcUrl: '',
+      activeName: 'first',
+      confirmLoading: false,
+      TooconfirmLoading: false,
+      isoTypeCodeType: [],
+      cIsoTypeCodeType: [],
+      loading: false,
+      savetDataLoading: false,
+      submitLoading: false,
+      auitdLoading: false,
+      tableLoading: false,
+      tableLoading2: false,
+      auditDataLoading: false,
+      deleteDataLoading: false,
+      ofSubmitLoading: false,
+      enableDataLoading: false,
+      disableDataLoading: false,
+      tableData: [],
+      tableData3: [],
+      tableData4: [],
+      tableData2: [],
+      table1RowChange1: [],//表格2选中的数据
+      tableRowChange1: [],//表格2选中的数据
+      tableClick: {},//表格1点击的数据
+      tableClick3: {},
+      tableClick4: {},
+      testPostNameType: [],//岗位信息
+      mainHeight: 0,
+      theight: 0,
+      multipleSelection: [],
+      multipleSelection3: [],
+      multipleSelection4: [],
+      multipleSelection1: [],
+      icoreFilterFlag: true,
+      page3: {
+        pageIndex: 1,
+        pageSize: 50,
+        total_main: 0
+      },
+      page4: {
+        pageIndex: 1,
+        pageSize: 50,
+        total_main: 0
+      },
+      pageIndex: 1,
+      pageSize: 50,
+      total_main: 0,
+      recordShowFlag: false,//审核页面显示:
+      ToorecordShowFlag: false,
+      optNoParameter: '', //登录人岗位
+      typeToop: 0,
+    }
+  },
+  async created() {
+    this.mainHeight = window.innerHeight - 120
+    this.theight = window.innerHeight - 120
+    let aaa = new Date()
+    let bbb = new Date().getTime() - 60000 * 60 * 24 * 365;
+    aaa.setTime(bbb);
+    this.searchForm.entrTime = [this.getYNM(aaa) + ' 00:00:00', this.getYNM(new Date()) + ' 23:59:59']
+
+    const cfs = await this.axios.get("pass/baseManagement/v1/limsbaseinfos/like/?pageNum=1&pageSize=50&baseCode=4853", { individualType: "json" });
+    if (cfs.data && cfs.data.list.length > 0) {
+      this.cIsoTypeCodeType = cfs.data.list;
+    }
+    this.cIsoTypeCode = this.$route.query.isoTypeCode
+    this.axios.post("pass/baseManagement/v1/limsisotmps/queryListByIsoTypeCode", { isoTypeCode: this.cIsoTypeCode }, { individualType: 'json' }).then(res => {
+      this.isoTypeCodeType = res.data;
+    });
+    this.gettestPostNameTypeList();
+    this.getCompany();
+    this.cIsoTypeName = this.getCode(this.cIsoTypeCode, this.cIsoTypeCodeType, 'baseCode', 'baseName')
+    this.baseData.isoTypeCode = this.cIsoTypeCode;
+    this.baseData.isoTypeName = this.cIsoTypeName;
+    this.TooData.isoTypeCode = this.cIsoTypeCode;
+    this.TooData.isoTypeName = this.cIsoTypeName;
+    this.searchAllData();
+  },
+  async mounted() {
+  },
+  methods: {
+    // 关闭弹窗
+    closeDialog() {
+      this.baseData = {
+        isoTypeCode: this.cIsoTypeCode,
+        isoTypeName: this.cIsoTypeName,
+        isoNo: '',
+        isoName: '',
+        isoDesc: new Date().getFullYear(),
+        memo: ''
+      }
+    },
+    ToocloseDialog() {
+      this.TooData = {
+        isoTypeCode: this.cIsoTypeCode,
+        isoTypeName: this.cIsoTypeName,
+        isoNo: '',
+        isoName: '',
+        isoDesc: new Date().getFullYear(),
+        memo: '',
+        filePath: ''
+      }
+    },
+    toBack() {
+      this.$router.push({ path: '/messagePushConfiguration' })
+    },
+    gettestPostNameTypeList() {
+      let obj = {
+        'object': { validFlag: 1 },
+        'pageIndex': 1,
+        'pageSize': 99999
+      }
+      this.axios.post('pass/baseManagement/v1/limsbaseposts/queryLimsBasePostPage/', obj, { individualType: 'json' }).then(res => {
+        this.testPostNameType = res.data.list;
+      })
+    },
+    getYNM(date) {
+      let year = date.getFullYear().toString();
+      let month = date.getMonth() + 1;
+      let day = date.getDate();
+      month = month < 10 ? "0" + month : month;
+      day = day < 10 ? "0" + day : day;
+      return `${year}-${month}-${day}`;
+    },
+    getCode(code, arr, codeKey, nameKey) {
+      if (!code) {
+        return '';
+      }
+      let targetRow = arr.find(item => {
+        return item[codeKey] === code;
+      });
+      // console.log(targetRow, 'targetRow');
+      return targetRow ? targetRow[nameKey] : '';
+    },
+    addData() {
+      this.recordShowFlag = true;
+    },
+    TooaddData() {
+      this.ToorecordShowFlag = true;
+    },
+    cancel() {
+      this.baseData = {
+        isoTypeCode: this.cIsoTypeCode,
+        isoTypeName: this.cIsoTypeName,
+        isoNo: '',
+        isoName: '',
+        isoDesc: new Date().getFullYear(),
+        memo: ''
+      }
+      this.recordShowFlag = false;
+    },
+    Toocancel() {
+      this.TooData = {
+        isoTypeCode: this.cIsoTypeCode,
+        isoTypeName: this.cIsoTypeName,
+        isoNo: '',
+        isoName: '',
+        isoDesc: new Date().getFullYear(),
+        memo: '',
+        filePath: '',
+      }
+      this.ToorecordShowFlag = false;
+    },
+    // 文件上传
+    async httpRequest(e) {
+      let _this = this;
+      if (!e.file) {
+        // 没有文件
+        return false
+      }
+      let file = new FormData()
+      file.append('file', e.file)
+      let config = {
+        headers: {
+          'Content-Type': 'multipart/form-data'
+        }
+      }
+      this.axios.post('pass/baseManagement/v1/file/upload', file, config).then(res => {
+        if (res.code === '0' || res.code === '200') {
+          this.$message.success('上传成功')
+          this.TooData.filePath = res.data[0].fileName
+        } else {
+          this.$message.error(res.message)
         }
+      }).catch(e => {
+        return this.$message.error(e.message)
+      })
     },
-    async created(){
-        this.mainHeight = window.innerHeight - 120
-        this.theight = window.innerHeight - 120
-        let aaa = new Date()
-        let bbb =  new Date().getTime() -60000*60*24*365;
-        aaa.setTime(bbb);
-        this.searchForm.entrTime = [this.getYNM(aaa) + ' 00:00:00', this.getYNM(new Date())+ ' 23:59:59']
-
-        const cfs = await this.axios.get("pass/baseManagement/v1/limsbaseinfos/like/?pageNum=1&pageSize=50&baseCode=4853",{ individualType: "json" });
-        if(cfs.data && cfs.data.list.length > 0){
-            this.cIsoTypeCodeType = cfs.data.list;
+    // 删除已有文件
+    async dropFile() {
+      let result = await this.MessageBox.confirm('确认删除该文件重新上传吗?').catch(() => 'cancel')
+      if (result == 'cancel') return
+      try {
+        const data = await this.axios.get('pass/baseManagement/v1/file/delFile/' + this.TooData.filePath, { individualType: 'json' })
+        if (data === '1') {
+          this.TooData.filePath = ''
+          this.$message.success('文件删除成功')
+        } else {
+          this.$message.error(data.message)
         }
-        this.cIsoTypeCode = this.$route.query.isoTypeCode
-        this.axios.post("pass/baseManagement/v1/limsisotmps/queryListByIsoTypeCode", { isoTypeCode: this.cIsoTypeCode }, { individualType: 'json' }).then(res => {
-            this.isoTypeCodeType = res.data;
-        });
-        this.gettestPostNameTypeList();
-        this.getCompany();
-        this.cIsoTypeName = this.getCode(this.cIsoTypeCode,this.cIsoTypeCodeType,'baseCode','baseName')
-        this.baseData.isoTypeCode = this.cIsoTypeCode;
-        this.baseData.isoTypeName = this.cIsoTypeName;
-        this.TooData.isoTypeCode = this.cIsoTypeCode;
-        this.TooData.isoTypeName = this.cIsoTypeName;
-        this.searchAllData();
+      } catch (e) {
+        this.$message.error('文件删除失败,请重试')
+      }
     },
-    async mounted(){
+    deleteData() {
+      if (this.tableClick4 == {} || this.tableClick4 == null) {
+        this.$message.error("请点击一条表格信息!");
+        return;
+      }
+      this.deleteDataLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatas/deleteData", this.tableClick4, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.axios.get('pass/baseManagement/v1/file/delFile/' + this.tableClick4.filePath, { individualType: 'json' })
+          this.$message.success("删除成功");
+          this.searchData4();
+        } else {
+          this.$message.error(res.message)
+        }
+        this.deleteDataLoading = false;
+      }).catch(err => {
+        this.deleteDataLoading = false;
+        this.$message.error(err.message)
+      })
     },
-    methods:{
-        // 关闭弹窗
-        closeDialog () {
-            this.baseData = {
-                isoTypeCode: this.cIsoTypeCode,
-                isoTypeName: this.cIsoTypeName,
-                isoNo: '',
-                isoName: '',
-                isoDesc: new Date().getFullYear(),
-                memo: ''
-            }
-        },
-        ToocloseDialog(){
-            this.TooData = {
-                isoTypeCode: this.cIsoTypeCode,
-                isoTypeName: this.cIsoTypeName,
-                isoNo: '',
-                isoName: '',
-                isoDesc: new Date().getFullYear(),
-                memo: '',
-                filePath: ''
-            }
-        },
-        toBack(){
-            this.$router.push({path:'/messagePushConfiguration'})
-        },
-        gettestPostNameTypeList () {
-            let obj ={
-                'object':{validFlag:1},
-                'pageIndex':1,
-                'pageSize':99999
-            }
-            this.axios.post('pass/baseManagement/v1/limsbaseposts/queryLimsBasePostPage/',obj, {individualType: 'json'}).then(res => {
-                this.testPostNameType = res.data.list;
-            })
-        },
-        getYNM(date) {
-            let year = date.getFullYear().toString();
-            let month = date.getMonth() + 1;
-            let day = date.getDate();
-            month = month < 10 ? "0" + month : month;
-            day = day < 10 ? "0" + day : day;
-            return `${year}-${month}-${day}`;
-        },
-        getCode (code, arr, codeKey, nameKey) {
-            if (!code) {
-                return '';
-            }
-            let targetRow = arr.find(item => {
-                return item[codeKey] === code;
-            });
-            // console.log(targetRow, 'targetRow');
-            return targetRow ? targetRow[nameKey] : '';
-        },
-        addData(){
-            this.recordShowFlag = true;
-        },
-        TooaddData(){
-            this.ToorecordShowFlag = true;
-        },
-        cancel(){
-            this.baseData = {
-                isoTypeCode: this.cIsoTypeCode,
-                isoTypeName: this.cIsoTypeName,
-                isoNo: '',
-                isoName: '',
-                isoDesc: new Date().getFullYear(),
-                memo: ''
-            }
-            this.recordShowFlag = false;
-        },
-        Toocancel(){
-            this.TooData = {
-                isoTypeCode: this.cIsoTypeCode,
-                isoTypeName: this.cIsoTypeName,
-                isoNo: '',
-                isoName: '',
-                isoDesc: new Date().getFullYear(),
-                memo: '',
-                filePath: '',
-            }
-            this.ToorecordShowFlag = false;
-        },
-        // 文件上传
-        async httpRequest (e) {
-            let _this = this;
-            if (!e.file) {
-                // 没有文件
-                return false
-            }
-            let file = new FormData()
-            file.append('file', e.file)
-            let config = {
-                headers: {
-                'Content-Type': 'multipart/form-data'
-                }
-            }
-            this.axios.post('pass/baseManagement/v1/file/upload', file, config).then(res =>{
-                if (res.code === '0' || res.code === '200') {
-                this.$message.success('上传成功')
-                this.TooData.filePath = res.data[0].fileName
-                } else {
-                this.$message.error(res.message)
-                }
-            }).catch(e => {
-                return this.$message.error(e.message)
-            })
-        },
-         // 删除已有文件
-        async dropFile () {
-            let result = await this.MessageBox.confirm('确认删除该文件重新上传吗?').catch(() => 'cancel')
-            if (result == 'cancel') return
-            try {
-                const data = await this.axios.get('pass/baseManagement/v1/file/delFile/'+ this.TooData.filePath, { individualType: 'json' })
-                if (data === '1') {
-                    this.TooData.filePath = ''
-                    this.$message.success('文件删除成功')
-                } else {
-                    this.$message.error(data.message)
-                }
-            } catch (e) {
-                this.$message.error('文件删除失败,请重试')
-            }
-        },
-        deleteData(){
-            if(this.tableClick4 == {} || this.tableClick4 == null){
-                this.$message.error("请点击一条表格信息!");
-                return;
-            }
-            this.deleteDataLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatas/deleteData", this.tableClick4, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.axios.get('pass/baseManagement/v1/file/delFile/'+ this.tableClick4.filePath, { individualType: 'json' })
-                    this.$message.success("删除成功");
-                    this.searchData4();
-                }else{
-                    this.$message.error(res.message)
-                }
-                this.deleteDataLoading = false;
-            }).catch(err =>{
-                this.deleteDataLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        //停用
-        disableData(){
-            if(this.tableClick == {} || this.tableClick == null){
-                this.$message.error("请点击一条表格信息!");
-                return;
-            }
-            this.disableDataLoading = true;
-            let str = {
-                id: this.tableClick.sdId,
-                validFlag: '0'
-            }
-            this.axios.post("pass/baseManagement/v1/limsisodatas/updateValidFlag", str, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success("停用成功");
-                    this.searchAllData();
-                }else{
-                    this.$message.error(res.message)
-                }
-                this.disableDataLoading = false;
-            }).catch(err =>{
-                this.disableDataLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        disableData1(){
-            if(this.tableClick3 == {} || this.tableClick3 == null){
-                this.$message.error("请点击一条表格信息!");
-                return;
-            }
-            this.disableDataLoading = true;
-            let str = {
-                id: this.tableClick3.sdId,
-                validFlag: '0'
-            }
-            this.axios.post("pass/baseManagement/v1/limsisodatas/updateValidFlag", str, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success("停用成功");
-                    this.searchAllData();
-                }else{
-                    this.$message.error(res.message)
-                }
-                this.disableDataLoading = false;
-            }).catch(err =>{
-                this.disableDataLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        //启用
-        enableData(){
-            if(this.tableClick4 == {} || this.tableClick4 == null){
-                this.$message.error("请点击一条表格信息!");
-                return;
-            }
-            this.enableDataLoading = true;
-            let str = {
-                id: this.tableClick4.sdId,
-                validFlag: '1'
-            }
-            this.axios.post("pass/baseManagement/v1/limsisodatas/updateValidFlag", str, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success("停用成功");
-                    this.searchAllData();
-                }else{
-                    this.$message.error(res.message)
-                }
-                this.enableDataLoading = false;
-            }).catch(err =>{
-                this.enableDataLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        addDateList(){
-            if(this.baseData.isoNo == ""){
-                this.$message.error("请选择体系名称!");
-                return;
-            }
-            this.confirmLoading = true;
-            this.baseData.isoName = this.getCode(this.baseData.isoNo,this.isoTypeCodeType,"isoNo","isoName")
-            this.axios.post("pass/baseManagement/v1/limsisodatas/saveLimsIsoDataByAudit", this.baseData, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success("添加成功");
-                    this.searchData();
-                }else{
-                    this.$message.error(res.message)
-                }
-                this.confirmLoading = false;
-            }).catch(err =>{
-                this.confirmLoading = false;
-                this.$message.error(err.message)
-            })
-            this.recordShowFlag = false;
-        },
-        TooaddDateList(){
-            if(this.TooData.isoNo == ""){
-                this.$message.error("请选择体系名称!");
-                return;
-            }
-            if(this.TooData.filePath == ""){
-                this.$message.error("请上传文件!");
-                return;
-            }
-            this.TooconfirmLoading = true;
-            this.TooData.isoName = this.getCode(this.TooData.isoNo,this.isoTypeCodeType,"isoNo","isoName")
-            this.axios.post("pass/baseManagement/v1/limsisodatas/saveLimsIsoDataByAuditToo", this.TooData, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success("添加成功");
-                    this.searchData();
-                }else{
-                    this.$message.error(res.message)
-                }
-                this.TooconfirmLoading = false;
-            }).catch(err =>{
-                this.TooconfirmLoading = false;
-                this.$message.error(err.message)
-            })
-            this.ToorecordShowFlag = false;
-        },
-        auitd(){
-            if(this.multipleSelection.length < 1){
-                this.$message.error("请选择要审核的内容!")
-                return
-            }
-            for (let i = 0; i < this.multipleSelection.length; i++) {
-                if(this.multipleSelection[i].stateFlag == '1'){
-                    this.$message.error("请选择编辑状态的数据!")
-                    return
-                }
-            }
-            this.auitdLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatas/auitdList", this.multipleSelection, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success("审核成功!");
-                }else{
-                    this.$message.error(res.message)
-                }
-                this.auitdLoading = false;
-            }).catch(err =>{
-                this.auitdLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        previewData(){
-            if(this.tableData2.length < 1){
-                this.$message.error("表格内容中没有数据!")
-                return
-            }
-            let str = this.tableData2[0].sdId
-            this.loading = true;
-            this.axios.get('pass/baseManagement/v1/limsisodatads/previewData/' + str,{responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
-                docx.renderAsync(res,this.$refs.file)
-                this.loading = false;
-            }).catch(e => {
-                this.loading = false;
-                return this.$message.error(e.message)
-            })
-        },
-        imgPreView(row,fileName){
-            this.axios.get('pass/baseManagement/v1/file/download/' + fileName,{responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
-                let blob = new Blob([res]);
-                let elink = document.createElement('a');
-                elink.download = fileName;
-                elink.style.display = 'none';
-                elink.target = "_blank";
-                elink.href = URL.createObjectURL(blob);
-                document.body.appendChild(elink);
-                elink.click();
-                URL.revokeObjectURL(elink.href); // 释放URL对象
-                document.body.removeChild(elink);
-            }).catch(e => {
-                return this.$message.error(e.message)
-            })
-        },
-        imgPreViewY(row,fileName){
-            let aaa = fileName.substr(fileName.indexOf(".")+1);
-            if(aaa == "docx"){
-                this.axios.get('pass/baseManagement/v1/file/download/' + fileName,{responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
-                    docx.renderAsync(res,this.$refs.file)
-                }).catch(e => {
-                    return this.$message.error(e.message)
-                })
-            }else if(aaa == "pdf"){
-                this.axios.get('pass/baseManagement/v1/file/download/' + fileName,{responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
-                    const binaryData = [];
-                    binaryData.push(res);
-                    this.srcUrl = window.URL.createObjectURL(new Blob(binaryData,{ type: 'application/pdf' }))
-                    window.open(this.srcUrl);
-                }).catch(e => {
-                    return this.$message.error(e.message)
-                })
-            }else{
-                docx.renderAsync(new Blob(),this.$refs.file)
-                return this.$message.error("不支持这个类型的文件展示!")
-            }
-        },
-        ofSubmit(){
-            if(this.multipleSelection1.length < 1){
-                this.$message.error("请选择要取消提交的表格数据!")
-                return
-            }
-            let bg = false;
-            let bg1 = false;
-            this.multipleSelection1.forEach(s =>{
-                if(s.stateFlag == 0){
-                    bg = true;
-                }
-                if(s.optNo != this.optNoParameter){
-                    bg1 = true; 
-                }
-            })
-            if(bg){
-                this.$message.error("未提交的数据不能取消提交!")
-                return
-            }
-            // if(bg1){
-            //     this.$message.error("您不是这个岗位的,不可取消提交!")
-            //     return
-            // }
-            this.ofSubmitLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatads/ofSubmitLimsIsoDataD", this.multipleSelection1, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success("取消提交成功!");
-                    this.searchFollow(this.tableClick);
-                }else{
-                    this.$message.error(res.data)
-                }
-                this.ofSubmitLoading = false;
-            }).catch(err =>{
-                this.ofSubmitLoading = false;
-                this.$message.error(err.data)
-            })
-        },
-        submit(){
-            if(this.multipleSelection1.length < 1){
-                this.$message.error("请选择要提交的表格数据!")
-                return
-            }
-            let bg = false;
-            let bg1 = false;
-            this.multipleSelection1.forEach(s =>{
-                if(s.stateFlag == 1){
-                    bg = true;
-                }
-                if(s.optNo != this.optNoParameter){
-                    bg1 = true; 
-                }
-            })
-            if(bg){
-                this.$message.error("已提交的数据不能在次提交!")
-                return
-            }
-            if(bg1){
-                this.$message.error("您不是这个岗位的,不可提交数据!")
-                return
-            }
-            this.submitLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatads/submitLimsIsoDataD", this.multipleSelection1, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success("提交成功!");
-                    this.searchFollow(this.tableClick);
-                }else{
-                    this.$message.error(res.data)
-                }
-                this.submitLoading = false;
-            }).catch(err =>{
-                this.submitLoading = false;
-                this.$message.error(err.data)
-            })
-        },
-        savetData(){
-            if(this.tableData2.length < 1){
-                this.$message.error("表格内容中没有数据!")
-                return
-            }
-            this.savetDataLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatads/updateDataList", this.tableData2, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success("保存成功!");
-                    this.searchFollow(this.tableClick);
-                }else{
-                    this.$message.error(res.message)
-                }
-                this.savetDataLoading = false;
-            }).catch(err =>{
-                this.savetDataLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        //获取个人所属哪个岗位
-        getCompany(){
-            this.axios.get('pass/baseManagement/v1/limslrcemps/'+userId).then(res =>{
-                if (res.code == 0 || res.code == 200) {
-                    this.optNoParameter = res.data ? res.data.postNo: ''
-                }else{
-                    this.$message.error(e.message)
-                }
-            }).catch(e =>{
-                this.$message.error(e.message)
-            })
-        },
-        searchAllData(){
-            this.searchData();
-            this.searchData3();
-            this.searchData4();
-        },
-        searchData(){
-            let startTime = ''
-            let endTime = ''
-            if (!this.searchForm.entrTime) {
-                startTime = ''
-                endTime = ''
-            }else{
-                startTime = this.searchForm.entrTime[0]
-                endTime = this.searchForm.entrTime[1]
-            }
-            let obj = {
-                pageNum: this.pageIndex,
-                pageSize: this.pageSize,
-                startTime: startTime,
-                endTime: endTime ,
-                stateFlag: '0',
-                validFlag: '1',
-                isoDesc: this.searchForm.isoDesc,
-                isoName: this.searchForm.matName,
-                isoTypeCode: this.cIsoTypeCode
-            }
-            this.tableLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatas/queryLimsIsoDataAuitd", obj, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.tableData = res.data.list
-                    this.total_main = res.data.total
-                    this.tableData.forEach(item =>{
-                        item.stateFlagName = item.stateFlag === '0' ? '编辑' : item.stateFlag === '1' ? '提交' : ''
-                    })
-                    if(this.tableData.length > 0){
-                        this.$refs.dataTable.setCurrentRow(this.tableData[0]);
-                        this.searchFollow(this.tableData[0])
-                    }
-                    this.tableLoading = false;
-                }else{
-                    this.$message.error(res.message)
-                    this.tableLoading = false;
-                }
-            }).catch(err =>{
-                this.tableLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        searchData3(){
-            let startTime = ''
-            let endTime = ''
-            if (!this.searchForm.entrTime) {
-                startTime = ''
-                endTime = ''
-            }else{
-                startTime = this.searchForm.entrTime[0]
-                endTime = this.searchForm.entrTime[1]
-            }
-            let obj = {
-                pageNum: this.page3.pageIndex,
-                pageSize: this.page3.pageSize,
-                startTime: startTime,
-                endTime: endTime ,
-                stateFlag: '1',
-                validFlag: '1',
-                isoDesc: this.searchForm.isoDesc,
-                isoName: this.searchForm.matName,
-                isoTypeCode: this.cIsoTypeCode
-            }
-            this.tableLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatas/queryLimsIsoDataAuitd", obj, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.tableData3 = res.data.list
-                    this.page3.total_main = res.data.total
-                    this.tableData3.forEach(item =>{
-                        item.stateFlagName = item.stateFlag === '0' ? '编辑' : item.stateFlag === '1' ? '提交' : ''
-                    })
-                    this.tableLoading = false;
-                }else{
-                    this.$message.error(res.message)
-                    this.tableLoading = false;
-                }
-            }).catch(err =>{
-                this.tableLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        searchData4(){
-            let startTime = ''
-            let endTime = ''
-            if (!this.searchForm.entrTime) {
-                startTime = ''
-                endTime = ''
-            }else{
-                startTime = this.searchForm.entrTime[0]
-                endTime = this.searchForm.entrTime[1]
-            }
-            let obj = {
-                pageNum: this.page4.pageIndex,
-                pageSize: this.page4.pageSize,
-                startTime: startTime,
-                endTime: endTime ,
-                validFlag: '0',
-                isoDesc: this.searchForm.isoDesc,
-                isoName: this.searchForm.matName,
-                isoTypeCode: this.cIsoTypeCode
-            }
-            this.tableLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatas/queryLimsIsoDataAuitd", obj, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.tableData4 = res.data.list
-                    this.page4.total_main = res.data.total
-                    this.tableData4.forEach(item =>{
-                        item.stateFlagName = item.stateFlag === '0' ? '编辑' : item.stateFlag === '1' ? '提交' : ''
-                    })
-                    this.tableLoading = false;
-                }else{
-                    this.$message.error(res.message)
-                    this.tableLoading = false;
-                }
-            }).catch(err =>{
-                this.tableLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        searchFollowDate(row){
-            this.tableClick = row;
-            this.searchFollow(row);
-        },
-        searchFollowDate3(row){
-            this.tableClick3 = row;
-            this.searchFollow(row);
-        },
-        searchFollowDate4(row){
-            this.tableClick4 = row;
-            this.searchFollow(row);
-        },
-        searchFollow(row){
-            this.tableLoading2 = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatads/queryLimsIsoDataDsByIsoNo", row, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.tableData2 = res.data;
-                    this.tableData2.forEach(item =>{
-                        item.optName = this.getCode(item.optNo,this.testPostNameType,'postNo','postName')
-                    })
-                    this.tableLoading2 = false;
-                }else{
-                    this.$message.error(res.message)
-                    this.tableLoading2 = false;
-                }
-            }).catch(err =>{
-                this.tableLoading2 = false;
-                this.$message.error(err.message)
-            })
-        },
-        tableRowChange(row){
-            this.tableRowChange1 = row;
-        },
-        table1RowChange(row){
-            this.table1RowChange1 = row;
-        },
-        resetData(){
-            this.searchForm.matName = ''
-            this.searchForm.entrTime = [this.getYNM(new Date()) + ' 00:00:00', this.getYNM(new Date())+ ' 23:59:59']
-            this.searchAllData()
-        },
-        handleSelectionChange (val) {
-            this.multipleSelection = val;
-        },
-        handleSelectionChange3 (val) {
-            this.multipleSelection3 = val;
-        },
-        handleSelectionChange4 (val) {
-            this.multipleSelection4 = val;
-        },
-        table2SelectionChange(val){
-            this.multipleSelection1 = val;
-        },
-        handleSizeChangeMain(pageSize) {
-            this.pageIndex = 1;
-            this.pageSize = pageSize;
-            this.searchData();
-        },
-        handleCurrentChangeMain(pageIndex) {
-            this.pageIndex = pageIndex;
-            this.searchData();
-        },
-        handleSizeChangeMain3(pageSize) {
-            this.page3.pageIndex = 1;
-            this.page3.pageSize = pageSize;
-            this.searchData3();
-        },
-        handleCurrentChangeMain3(pageIndex) {
-            this.page3.pageIndex = pageIndex;
-            this.searchData3();
-        },
-        handleSizeChangeMain4(pageSize) {
-            this.page4.pageIndex = 1;
-            this.page4.pageSize = pageSize;
-            this.searchData4();
-        },
-        handleCurrentChangeMain4(pageIndex) {
-            this.page4.pageIndex = pageIndex;
-            this.searchData4();
-        },
-        keyDown(event, row, rindex){
-            let tdTarget = event.target;
-            let pid = tdTarget.id;
-            if (!pid) {
-                return true;
-            }
-            let ids = pid.split("--");
-            if (ids.length != 2) {
-                return true;
-            }
-            let columnId = ids[0];
-            let index = ids[1];
-            let that = this;
-            while (tdTarget.tagName !== 'TD') {
-                tdTarget = tdTarget.parentElement;
-            }
-            // 如果按下键盘下键或者回车键
-            if (event.keyCode === 40 || event.keyCode === 13) {
-                let ind = Number(rindex) + 1;
-                let id = '#' + columnId + '--' + ind;
-                let input = $(id);
-                if (input) {
-                this.$refs.dataTable2.setCurrentRow(this.tableData2[ind]);
-                input.focus();
-                input.blur();
-                input.select(); // 选中内容
-                event.stopPropagation();
-                event.stopImmediatePropagation();
-                event.preventDefault();
-                return false;
-                }
-            } else if (event.keyCode === 38) { // 键盘上键
-                let ind = Number(index) - 1;
-                let id = '#' + columnId + '--' + ind;
-                let input = $(id);
-                if (input) {
-                this.$refs.dataTable2.setCurrentRow(this.tableData2[ind]);
-                input.focus();
-                input.select(); // 选中内容
-                event.stopPropagation();
-                event.stopImmediatePropagation();
-                event.preventDefault();
-                return false;
-                }
-            }
-        },
-        getSummaries2(param) {
-            const { columns, data } = param;
-            const sums = [];
-            columns.forEach((column, index) => {
-                if (index === 0) {
-                sums[index] = "总计";
-                }
-                if (index === 1) {
-                sums[index] = data.length;
-                } else if (column.property === "quantity") {
-                let val = 0;
-                for (let i in data) {
-                    val = this.floatComputed(
-                    data[i].quantity ? data[i].quantity : 0,
-                    val,
-                    "+"
-                    );
-                }
-                sums[index] = val;
-                } else if (column.property === "factweight") {
-                let val = 0;
-                for (let i in data) {
-                    val = this.floatComputed(
-                    data[i].factweight ? data[i].factweight : 0,
-                    val,
-                    "+"
-                    );
-                }
-                sums[index] = val;
-                }
-            });
-            return sums;
-        },
-        tableHeaderCellStyle () {
-            return 'color: rgb(255,255,255);border-bottom: 1px solid #DCDFE7;'
-        },
-        //停用变色
-        tableRowClassName ({row, column, rowIndex, columnIndex}) {
-            if (columnIndex === 1) {
-                if (row.stateFlag == '1') {
-                    return 'error-green';
-                }
-            }
-        },
-        //停用变色
-        tableRowClassName1 ({row, column, rowIndex, columnIndex}) {
-            if (columnIndex === 1) {
-                if (row.stateFlag == '1') {
-                    return 'error-green';
-                }
-                if (row.stateFlag == '2') {
-                    return 'error-row';
-                }
-            }
-        },
-    }
+    //停用
+    disableData() {
+      if (this.tableClick == {} || this.tableClick == null) {
+        this.$message.error("请点击一条表格信息!");
+        return;
+      }
+      this.disableDataLoading = true;
+      let str = {
+        id: this.tableClick.sdId,
+        validFlag: '0'
+      }
+      this.axios.post("pass/baseManagement/v1/limsisodatas/updateValidFlag", str, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("停用成功");
+          this.searchAllData();
+        } else {
+          this.$message.error(res.message)
+        }
+        this.disableDataLoading = false;
+      }).catch(err => {
+        this.disableDataLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    disableData1() {
+      if (this.tableClick3 == {} || this.tableClick3 == null) {
+        this.$message.error("请点击一条表格信息!");
+        return;
+      }
+      this.disableDataLoading = true;
+      let str = {
+        id: this.tableClick3.sdId,
+        validFlag: '0'
+      }
+      this.axios.post("pass/baseManagement/v1/limsisodatas/updateValidFlag", str, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("停用成功");
+          this.searchAllData();
+        } else {
+          this.$message.error(res.message)
+        }
+        this.disableDataLoading = false;
+      }).catch(err => {
+        this.disableDataLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    //启用
+    enableData() {
+      if (this.tableClick4 == {} || this.tableClick4 == null) {
+        this.$message.error("请点击一条表格信息!");
+        return;
+      }
+      this.enableDataLoading = true;
+      let str = {
+        id: this.tableClick4.sdId,
+        validFlag: '1'
+      }
+      this.axios.post("pass/baseManagement/v1/limsisodatas/updateValidFlag", str, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("停用成功");
+          this.searchAllData();
+        } else {
+          this.$message.error(res.message)
+        }
+        this.enableDataLoading = false;
+      }).catch(err => {
+        this.enableDataLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    addDateList() {
+      if (this.baseData.isoNo == "") {
+        this.$message.error("请选择体系名称!");
+        return;
+      }
+      this.confirmLoading = true;
+      this.baseData.isoName = this.getCode(this.baseData.isoNo, this.isoTypeCodeType, "isoNo", "isoName")
+      this.axios.post("pass/baseManagement/v1/limsisodatas/saveLimsIsoDataByAudit", this.baseData, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("添加成功");
+          this.searchData();
+        } else {
+          this.$message.error(res.message)
+        }
+        this.confirmLoading = false;
+      }).catch(err => {
+        this.confirmLoading = false;
+        this.$message.error(err.message)
+      })
+      this.recordShowFlag = false;
+    },
+    TooaddDateList() {
+      if (this.TooData.isoNo == "") {
+        this.$message.error("请选择体系名称!");
+        return;
+      }
+      if (this.TooData.filePath == "") {
+        this.$message.error("请上传文件!");
+        return;
+      }
+      this.TooconfirmLoading = true;
+      this.TooData.isoName = this.getCode(this.TooData.isoNo, this.isoTypeCodeType, "isoNo", "isoName")
+      this.axios.post("pass/baseManagement/v1/limsisodatas/saveLimsIsoDataByAuditToo", this.TooData, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("添加成功");
+          this.searchData();
+        } else {
+          this.$message.error(res.message)
+        }
+        this.TooconfirmLoading = false;
+      }).catch(err => {
+        this.TooconfirmLoading = false;
+        this.$message.error(err.message)
+      })
+      this.ToorecordShowFlag = false;
+    },
+    auitd() {
+      if (this.multipleSelection.length < 1) {
+        this.$message.error("请选择要审核的内容!")
+        return
+      }
+      for (let i = 0; i < this.multipleSelection.length; i++) {
+        if (this.multipleSelection[i].stateFlag == '1') {
+          this.$message.error("请选择编辑状态的数据!")
+          return
+        }
+      }
+      this.auitdLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatas/auitdList", this.multipleSelection, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("审核成功!");
+        } else {
+          this.$message.error(res.message)
+        }
+        this.auitdLoading = false;
+      }).catch(err => {
+        this.auitdLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    previewData() {
+      if (this.tableData2.length < 1) {
+        this.$message.error("表格内容中没有数据!")
+        return
+      }
+      let str = this.tableData2[0].sdId
+      this.loading = true;
+      this.axios.get('pass/baseManagement/v1/limsisodatads/previewData/' + str, { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
+        docx.renderAsync(res, this.$refs.file)
+        this.loading = false;
+      }).catch(e => {
+        this.loading = false;
+        return this.$message.error(e.message)
+      })
+    },
+    imgPreView(row, fileName) {
+      this.axios.get('pass/baseManagement/v1/file/download/' + fileName, { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
+        let blob = new Blob([res]);
+        let elink = document.createElement('a');
+        elink.download = fileName;
+        elink.style.display = 'none';
+        elink.target = "_blank";
+        elink.href = URL.createObjectURL(blob);
+        document.body.appendChild(elink);
+        elink.click();
+        URL.revokeObjectURL(elink.href); // 释放URL对象
+        document.body.removeChild(elink);
+      }).catch(e => {
+        return this.$message.error(e.message)
+      })
+    },
+    imgPreViewY(row, fileName) {
+      let aaa = fileName.substr(fileName.indexOf(".") + 1);
+      if (aaa == "docx") {
+        this.axios.get('pass/baseManagement/v1/file/download/' + fileName, { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
+          docx.renderAsync(res, this.$refs.file)
+        }).catch(e => {
+          return this.$message.error(e.message)
+        })
+      } else if (aaa == "pdf") {
+        this.axios.get('pass/baseManagement/v1/file/download/' + fileName, { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
+          const binaryData = [];
+          binaryData.push(res);
+          this.srcUrl = window.URL.createObjectURL(new Blob(binaryData, { type: 'application/pdf' }))
+          window.open(this.srcUrl);
+        }).catch(e => {
+          return this.$message.error(e.message)
+        })
+      } else {
+        docx.renderAsync(new Blob(), this.$refs.file)
+        return this.$message.error("不支持这个类型的文件展示!")
+      }
+    },
+    ofSubmit() {
+      if (this.multipleSelection1.length < 1) {
+        this.$message.error("请选择要取消提交的表格数据!")
+        return
+      }
+      let bg = false;
+      let bg1 = false;
+      this.multipleSelection1.forEach(s => {
+        if (s.stateFlag == 0) {
+          bg = true;
+        }
+        if (s.optNo != this.optNoParameter) {
+          bg1 = true;
+        }
+      })
+      if (bg) {
+        this.$message.error("未提交的数据不能取消提交!")
+        return
+      }
+      // if(bg1){
+      //     this.$message.error("您不是这个岗位的,不可取消提交!")
+      //     return
+      // }
+      this.ofSubmitLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatads/ofSubmitLimsIsoDataD", this.multipleSelection1, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("取消提交成功!");
+          this.searchFollow(this.tableClick);
+        } else {
+          this.$message.error(res.data)
+        }
+        this.ofSubmitLoading = false;
+      }).catch(err => {
+        this.ofSubmitLoading = false;
+        this.$message.error(err.data)
+      })
+    },
+    submit() {
+      if (this.multipleSelection1.length < 1) {
+        this.$message.error("请选择要提交的表格数据!")
+        return
+      }
+      let bg = false;
+      let bg1 = false;
+      this.multipleSelection1.forEach(s => {
+        if (s.stateFlag == 1) {
+          bg = true;
+        }
+        if (s.optNo != this.optNoParameter) {
+          bg1 = true;
+        }
+      })
+      if (bg) {
+        this.$message.error("已提交的数据不能在次提交!")
+        return
+      }
+      // if(bg1){
+      //     this.$message.error("您不是这个岗位的,不可提交数据!")
+      //     return
+      // }
+      this.submitLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatads/submitLimsIsoDataD", this.multipleSelection1, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("提交成功!");
+          this.searchFollow(this.tableClick);
+        } else {
+          this.$message.error(res.data)
+        }
+        this.submitLoading = false;
+      }).catch(err => {
+        this.submitLoading = false;
+        this.$message.error(err.data)
+      })
+    },
+    savetData() {
+      if (this.tableData2.length < 1) {
+        this.$message.error("表格内容中没有数据!")
+        return
+      }
+      this.savetDataLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatads/updateDataList", this.tableData2, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("保存成功!");
+          this.searchFollow(this.tableClick);
+        } else {
+          this.$message.error(res.message)
+        }
+        this.savetDataLoading = false;
+      }).catch(err => {
+        this.savetDataLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    //获取个人所属哪个岗位
+    getCompany() {
+      this.axios.get('pass/baseManagement/v1/limslrcemps/' + userId).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.optNoParameter = res.data ? res.data.postNo : ''
+        } else {
+          this.$message.error(e.message)
+        }
+      }).catch(e => {
+        this.$message.error(e.message)
+      })
+    },
+    searchAllData() {
+      this.searchData();
+      this.searchData3();
+      this.searchData4();
+    },
+    searchData() {
+      let startTime = ''
+      let endTime = ''
+      if (!this.searchForm.entrTime) {
+        startTime = ''
+        endTime = ''
+      } else {
+        startTime = this.searchForm.entrTime[0]
+        endTime = this.searchForm.entrTime[1]
+      }
+      let obj = {
+        pageNum: this.pageIndex,
+        pageSize: this.pageSize,
+        startTime: startTime,
+        endTime: endTime,
+        stateFlag: '0',
+        validFlag: '1',
+        isoDesc: this.searchForm.isoDesc,
+        isoName: this.searchForm.matName,
+        isoTypeCode: this.cIsoTypeCode
+      }
+      this.tableLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatas/queryLimsIsoDataAuitd", obj, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.tableData = res.data.list
+          this.total_main = res.data.total
+          this.tableData.forEach(item => {
+            item.stateFlagName = item.stateFlag === '0' ? '编辑' : item.stateFlag === '1' ? '提交' : ''
+          })
+          if (this.tableData.length > 0) {
+            this.$refs.dataTable.setCurrentRow(this.tableData[0]);
+            this.searchFollow(this.tableData[0])
+          }
+          this.tableLoading = false;
+        } else {
+          this.$message.error(res.message)
+          this.tableLoading = false;
+        }
+      }).catch(err => {
+        this.tableLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    searchData3() {
+      let startTime = ''
+      let endTime = ''
+      if (!this.searchForm.entrTime) {
+        startTime = ''
+        endTime = ''
+      } else {
+        startTime = this.searchForm.entrTime[0]
+        endTime = this.searchForm.entrTime[1]
+      }
+      let obj = {
+        pageNum: this.page3.pageIndex,
+        pageSize: this.page3.pageSize,
+        startTime: startTime,
+        endTime: endTime,
+        stateFlag: '1',
+        validFlag: '1',
+        isoDesc: this.searchForm.isoDesc,
+        isoName: this.searchForm.matName,
+        isoTypeCode: this.cIsoTypeCode
+      }
+      this.tableLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatas/queryLimsIsoDataAuitd", obj, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.tableData3 = res.data.list
+          this.page3.total_main = res.data.total
+          this.tableData3.forEach(item => {
+            item.stateFlagName = item.stateFlag === '0' ? '编辑' : item.stateFlag === '1' ? '提交' : ''
+          })
+          this.tableLoading = false;
+        } else {
+          this.$message.error(res.message)
+          this.tableLoading = false;
+        }
+      }).catch(err => {
+        this.tableLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    searchData4() {
+      let startTime = ''
+      let endTime = ''
+      if (!this.searchForm.entrTime) {
+        startTime = ''
+        endTime = ''
+      } else {
+        startTime = this.searchForm.entrTime[0]
+        endTime = this.searchForm.entrTime[1]
+      }
+      let obj = {
+        pageNum: this.page4.pageIndex,
+        pageSize: this.page4.pageSize,
+        startTime: startTime,
+        endTime: endTime,
+        validFlag: '0',
+        isoDesc: this.searchForm.isoDesc,
+        isoName: this.searchForm.matName,
+        isoTypeCode: this.cIsoTypeCode
+      }
+      this.tableLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatas/queryLimsIsoDataAuitd", obj, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.tableData4 = res.data.list
+          this.page4.total_main = res.data.total
+          this.tableData4.forEach(item => {
+            item.stateFlagName = item.stateFlag === '0' ? '编辑' : item.stateFlag === '1' ? '提交' : ''
+          })
+          this.tableLoading = false;
+        } else {
+          this.$message.error(res.message)
+          this.tableLoading = false;
+        }
+      }).catch(err => {
+        this.tableLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    searchFollowDate(row) {
+      this.tableClick = row;
+      this.searchFollow(row);
+    },
+    searchFollowDate3(row) {
+      this.tableClick3 = row;
+      this.searchFollow(row);
+    },
+    searchFollowDate4(row) {
+      this.tableClick4 = row;
+      this.searchFollow(row);
+    },
+    searchFollow(row) {
+      this.tableLoading2 = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatads/queryLimsIsoDataDsByIsoNo", row, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.tableData2 = res.data;
+          this.tableData2.forEach(item => {
+            item.optName = this.getCode(item.optNo, this.testPostNameType, 'postNo', 'postName')
+          })
+          this.tableLoading2 = false;
+        } else {
+          this.$message.error(res.message)
+          this.tableLoading2 = false;
+        }
+      }).catch(err => {
+        this.tableLoading2 = false;
+        this.$message.error(err.message)
+      })
+    },
+    tableRowChange(row) {
+      this.tableRowChange1 = row;
+    },
+    table1RowChange(row) {
+      this.table1RowChange1 = row;
+    },
+    resetData() {
+      this.searchForm.matName = ''
+      this.searchForm.entrTime = [this.getYNM(new Date()) + ' 00:00:00', this.getYNM(new Date()) + ' 23:59:59']
+      this.searchAllData()
+    },
+    handleSelectionChange(val) {
+      this.multipleSelection = val;
+    },
+    handleSelectionChange3(val) {
+      this.multipleSelection3 = val;
+    },
+    handleSelectionChange4(val) {
+      this.multipleSelection4 = val;
+    },
+    table2SelectionChange(val) {
+      this.multipleSelection1 = val;
+    },
+    handleSizeChangeMain(pageSize) {
+      this.pageIndex = 1;
+      this.pageSize = pageSize;
+      this.searchData();
+    },
+    handleCurrentChangeMain(pageIndex) {
+      this.pageIndex = pageIndex;
+      this.searchData();
+    },
+    handleSizeChangeMain3(pageSize) {
+      this.page3.pageIndex = 1;
+      this.page3.pageSize = pageSize;
+      this.searchData3();
+    },
+    handleCurrentChangeMain3(pageIndex) {
+      this.page3.pageIndex = pageIndex;
+      this.searchData3();
+    },
+    handleSizeChangeMain4(pageSize) {
+      this.page4.pageIndex = 1;
+      this.page4.pageSize = pageSize;
+      this.searchData4();
+    },
+    handleCurrentChangeMain4(pageIndex) {
+      this.page4.pageIndex = pageIndex;
+      this.searchData4();
+    },
+    keyDown(event, row, rindex) {
+      let tdTarget = event.target;
+      let pid = tdTarget.id;
+      if (!pid) {
+        return true;
+      }
+      let ids = pid.split("--");
+      if (ids.length != 2) {
+        return true;
+      }
+      let columnId = ids[0];
+      let index = ids[1];
+      let that = this;
+      while (tdTarget.tagName !== 'TD') {
+        tdTarget = tdTarget.parentElement;
+      }
+      // 如果按下键盘下键或者回车键
+      if (event.keyCode === 40 || event.keyCode === 13) {
+        let ind = Number(rindex) + 1;
+        let id = '#' + columnId + '--' + ind;
+        let input = $(id);
+        if (input) {
+          this.$refs.dataTable2.setCurrentRow(this.tableData2[ind]);
+          input.focus();
+          input.blur();
+          input.select(); // 选中内容
+          event.stopPropagation();
+          event.stopImmediatePropagation();
+          event.preventDefault();
+          return false;
+        }
+      } else if (event.keyCode === 38) { // 键盘上键
+        let ind = Number(index) - 1;
+        let id = '#' + columnId + '--' + ind;
+        let input = $(id);
+        if (input) {
+          this.$refs.dataTable2.setCurrentRow(this.tableData2[ind]);
+          input.focus();
+          input.select(); // 选中内容
+          event.stopPropagation();
+          event.stopImmediatePropagation();
+          event.preventDefault();
+          return false;
+        }
+      }
+    },
+    getSummaries2(param) {
+      const { columns, data } = param;
+      const sums = [];
+      columns.forEach((column, index) => {
+        if (index === 0) {
+          sums[index] = "总计";
+        }
+        if (index === 1) {
+          sums[index] = data.length;
+        } else if (column.property === "quantity") {
+          let val = 0;
+          for (let i in data) {
+            val = this.floatComputed(
+              data[i].quantity ? data[i].quantity : 0,
+              val,
+              "+"
+            );
+          }
+          sums[index] = val;
+        } else if (column.property === "factweight") {
+          let val = 0;
+          for (let i in data) {
+            val = this.floatComputed(
+              data[i].factweight ? data[i].factweight : 0,
+              val,
+              "+"
+            );
+          }
+          sums[index] = val;
+        }
+      });
+      return sums;
+    },
+    tableHeaderCellStyle() {
+      return 'color: rgb(255,255,255);border-bottom: 1px solid #DCDFE7;'
+    },
+    //停用变色
+    tableRowClassName({ row, column, rowIndex, columnIndex }) {
+      if (columnIndex === 1) {
+        if (row.stateFlag == '1') {
+          return 'error-green';
+        }
+      }
+    },
+    //停用变色
+    tableRowClassName1({ row, column, rowIndex, columnIndex }) {
+      if (columnIndex === 1) {
+        if (row.stateFlag == '1') {
+          return 'error-green';
+        }
+        if (row.stateFlag == '2') {
+          return 'error-row';
+        }
+      }
+    },
+  }
 }
-</script>
+</script>

+ 622 - 534
src/views/standardManagement/components/systemAudit/systemAudit.vue

@@ -1,179 +1,188 @@
 <template>
-    <div class="examination">
-        <div class="common-head-search">
-            <el-form :inline='true'>
-                <el-form-item label="文件名称">
-                    <el-input v-model="searchForm.matName" @keyup.enter.native="searchData()" size="small" placeholder="请输入物料名称" style="width:150px"></el-input>
-                </el-form-item>
-                <el-form-item label="创建时间">
-                    <el-date-picker
-                    v-model="searchForm.entrTime"
-                    type="daterange"
-                    range-separator="至"
-                    start-placeholder="开始日期"
-                    end-placeholder="结束日期"
-                    size="small"
-                    style="width:400px"
-                    format="yyyy-MM-dd HH:mm:ss"
-                    value-format="yyyy-MM-dd HH:mm:ss"
-                    :default-time="['00:00:00','23:59:59']">
-                    </el-date-picker>
-                </el-form-item>
-                <el-form-item>
-                    <el-button icon="el-icon-search" type="goon" size="mini" v-loading="tableLoading" @click="searchData">查询</el-button>
-                    <el-button icon="el-icon-refresh" type="info" plain size="mini" @click="resetData">重置</el-button>
-                </el-form-item>
-            </el-form>
+  <div class="examination">
+    <div class="common-head-search">
+      <el-form :inline='true'>
+        <el-form-item label="文件名称">
+          <el-input v-model="searchForm.matName" @keyup.enter.native="searchData()" size="small" placeholder="请输入物料名称"
+            style="width:150px"></el-input>
+        </el-form-item>
+        <el-form-item label="创建时间">
+          <el-date-picker v-model="searchForm.entrTime" type="daterange" range-separator="至" start-placeholder="开始日期"
+            end-placeholder="结束日期" size="small" style="width:400px" format="yyyy-MM-dd HH:mm:ss"
+            value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item>
+          <el-button icon="el-icon-search" type="goon" size="mini" v-loading="tableLoading"
+            @click="searchData">查询</el-button>
+          <el-button icon="el-icon-refresh" type="info" plain size="mini" @click="resetData">重置</el-button>
+        </el-form-item>
+      </el-form>
+    </div>
+    <el-row>
+      <el-col :span='12'>
+        <div class="common-title-div">
+          <div class="common-title-name">
+            <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
+            审核信息
+          </div>
+          <div>
+            <!-- <el-button icon="el-icon-back" type="danger" :loading='backDataLoading' size="mini" @click="backData222">回退</el-button> -->
+          </div>
         </div>
-        <el-row>
-            <el-col :span='12'>
-                <div class="common-title-div" >
-                    <div class="common-title-name">
-                        <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
-                        审核信息
-                    </div>
-                    <div>
-                        <!-- <el-button icon="el-icon-back" type="danger" :loading='backDataLoading' size="mini" @click="backData222">回退</el-button> -->
-                    </div>
-                </div>
-                <div class="common-table-div" style="margin-bottom:0;margin-top:0">
-                    <el-table v-loading="tableLoading" ref="dataTable" border :height="mainHeight" highlight-current-row  @selection-change="handleSelectionChange" :data="tableData" :icore-filter-flag="icoreFilterFlag"
-                    :header-cell-style="tableHeaderCellStyle" @current-change="table1RowChange"  @row-click="searchFollow" :cell-class-name="tableRowClassName"  :summary-method="getSummaries2" show-summary>
-                        <el-table-column type="index" label="NO" align="center"></el-table-column>
-                        <el-table-column type="selection" width="50" align="center"></el-table-column>
-                        <el-table-column show-overflow-tooltip sortable width="60" align="center" prop="stateFlagName" label="状态"></el-table-column>
-                        <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoName" label="文件名称"></el-table-column>
-                        <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoTypeName" label="文件分类"></el-table-column>
-                        <el-table-column
-                            sortable
-                            :show-overflow-tooltip="true"
-                            min-width="80px"
-                            prop="filePath"
-                            label="下载/预览"
-                            align="center"
-                            ><template slot-scope="scope">
-                            <el-tooltip
-                                content="下载"
-                                placement="bottom"
-                                effect="light"
-                            >
-                                <el-button
-                                :disabled="!scope.row.filePath"
-                                type="goon"
-                                size="mini"
-                                icon="el-icon-download"
-                                circle
-                                @click="
-                                    imgPreView(
-                                        scope.row,
-                                        scope.row.filePath
-                                    )
-                                    "
-                                >
-                                </el-button>
-                            </el-tooltip>
-                            <el-tooltip
-                                content="预览"
-                                placement="bottom"
-                                effect="light"
-                                >
-                                <el-button
-                                    :disabled='!scope.row.filePath'
-                                    type="warning"
-                                    size="mini"
-                                    icon="el-icon-view"
-                                    circle
-                                    @click="imgPreViewY(scope.row,scope.row.filePath)"
-                                >
-                                </el-button>
-                            </el-tooltip>
-                            </template>
-                        </el-table-column>
-                            <!-- <el-upload class="upload-demo" :auto-upload="true" action :on-change="handleImg"> 
+        <div class="common-table-div" style="margin-bottom:0;margin-top:0">
+          <el-table v-loading="tableLoading" ref="dataTable" border :height="mainHeight" highlight-current-row
+            @selection-change="handleSelectionChange" :data="tableData" :icore-filter-flag="icoreFilterFlag"
+            :header-cell-style="tableHeaderCellStyle" @current-change="table1RowChange" @row-click="searchFollow"
+            :cell-class-name="tableRowClassName" :summary-method="getSummaries2" show-summary>
+            <el-table-column type="index" width="40" label="NO" align="center"></el-table-column>
+            <el-table-column type="selection" width="40" align="center"></el-table-column>
+            <el-table-column show-overflow-tooltip sortable width="60" align="center" prop="stateFlagName"
+              label="状态"></el-table-column>
+            <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoName"
+              label="文件名称"></el-table-column>
+            <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="isoTypeName"
+              label="文件分类"></el-table-column>
+            <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="filePath" label="模板文件"
+              align="center"><template slot-scope="scope">
+                <el-tooltip content="下载" placement="bottom" effect="light">
+                  <el-button :disabled="!scope.row.memo3" type="goon" size="mini" icon="el-icon-download" circle @click="
+                    imgPreView(
+                      scope.row,
+                      scope.row.memo3
+                    )
+                    ">
+                  </el-button>
+                </el-tooltip>
+                <el-tooltip content="预览" placement="bottom" effect="light">
+                  <el-button :disabled='!scope.row.memo3' type="warning" size="mini" icon="el-icon-view" circle
+                    @click="imgPreViewY(scope.row, scope.row.memo3)">
+                  </el-button>
+                </el-tooltip>
+              </template>
+            </el-table-column>
+            <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="filePath" label="内容文件"
+              align="center"><template slot-scope="scope">
+                <el-tooltip content="下载" placement="bottom" effect="light">
+                  <el-button :disabled="!scope.row.filePath" type="goon" size="mini" icon="el-icon-download" circle
+                    @click="
+                      imgPreView(
+                        scope.row,
+                        scope.row.filePath
+                      )
+                      ">
+                  </el-button>
+                </el-tooltip>
+                <el-tooltip content="预览" placement="bottom" effect="light">
+                  <el-button :disabled='!scope.row.filePath' type="warning" size="mini" icon="el-icon-view" circle
+                    @click="imgPreViewY(scope.row, scope.row.filePath)">
+                  </el-button>
+                </el-tooltip>
+              </template>
+            </el-table-column>
+            <!-- <el-upload class="upload-demo" :auto-upload="true" action :on-change="handleImg">
                                 <el-button size="small" type="primary">点击上传图片或者文件预览</el-button>
                             </el-upload> -->
-                            <!-- <img :src="imgUrl" alt="" width="100px" height="100px" />
+            <!-- <img :src="imgUrl" alt="" width="100px" height="100px" />
                             <iframe width="200px" height="500px" :src="fileUrl"> </iframe>
                             <video :src="videoUrl"></video> -->
-                            <!-- <span @click='preView'>预览</span>
+            <!-- <span @click='preView'>预览</span>
                             <iframe width="200px" height="500px" :src="this.fileUrl"> </iframe> -->
-                        <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="deptName" label="管理车间"></el-table-column>
-                        <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="createMan" label="创建人"></el-table-column>
-                        <el-table-column show-overflow-tooltip sortable width="120" align="center" prop="createTime" label="创建时间"></el-table-column>
-                    </el-table>
-                </div>
-                <div class="common-foot-style">
-                    <el-pagination
-                        @size-change="handleSizeChangeMain"
-                        @current-change="handleCurrentChangeMain"
-                        :current-page="pageIndex"
-                        :page-sizes="[10, 20, 30, 50, 100 , 200]"
-                        :page-size="pageSize"
-                        size="mini"
-                        layout="total, sizes, prev, pager, next, jumper"
-                        :total="total_main"
-                        background
-                    ></el-pagination>
-                </div>
-            </el-col>
-            <el-col :span='12'>
-                <div class="common-title-div">
-                    <div class="common-title-name">
-                        <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
-                        审核流程
-                    </div>
-                    <div>
-                        <el-button icon="el-icon-circle-check" type="primary" :loading='auditDataLoading' size="mini" @click="auditData11">审核</el-button>
-                        <el-button icon="el-icon-back" type="danger" :loading='auditDataLoading' size="mini" @click="backData11">回退</el-button>
-                    </div>
-                </div>
-                <div class="common-table-div" style="margin-bottom:0;margin-top:0">
-                    <el-table v-loading="tableLoading2" ref="dataTable2"  border :height="theight" highlight-current-row  :data="tableData2" :icore-filter-flag="icoreFilterFlag"
-                    :header-cell-style="tableHeaderCellStyle" @current-change="tableRowChange" :cell-class-name="tableRowClassName1" :summary-method="getSummaries2" show-summary>
-                        <el-table-column type="index" label="NO"  align="center"></el-table-column>
-                        <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="stateFlagName1" label="状态" min-width="100"></el-table-column>
-                        <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="isoItemName" label="执行项目" min-width="100"></el-table-column>
-                        <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="optNo" label="执行岗位" min-width="100"></el-table-column>
-                        <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="createTime" label="执行时间" min-width="100"></el-table-column>
-                        <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="doOrder" label="执行顺序" min-width="100"></el-table-column>
-                        <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="memo3" label="意见" min-width="100"></el-table-column>
-                    </el-table>
-                </div>
-            </el-col>
-        </el-row>
-        <el-dialog
-            @close="closeDialog"
-            :visible.sync="recordShowFlag"
-            :close-on-click-modal="false"
-        >
-            <div slot="title" class="titleBox">
-                <i class='el-icon-document' style="font-size: 20px"></i>
-                <span style="margin-left:10px;font-size:18px">{{save}}</span>
-            </div>
-            <el-form :inline='true'>
-                <el-form-item label= "意见">
-                    <el-input type="textarea" v-model="form.desc" style="width: 560px;height: 36px;"></el-input>
-                </el-form-item>
-            </el-form>
-            <div slot="footer" class="dialog-footer">
-                <el-button type="primary" :loading='auditDataLoading' size="mini" @click="tableType === 0 ? auditData():backData()">确定</el-button>
-                <el-button size="mini" type="default" @click="closeDialog">取消</el-button>
-            </div>
-        </el-dialog>
-        <div id="docx">
-            <div ref="file"></div>
+            <el-table-column show-overflow-tooltip sortable width="100" align="center" prop="deptName"
+              label="管理车间"></el-table-column>
+            <el-table-column show-overflow-tooltip sortable width="90" align="center" prop="createMan"
+              label="创建人"></el-table-column>
+            <el-table-column show-overflow-tooltip sortable width="120" align="center" prop="createTime"
+              label="创建时间"></el-table-column>
+          </el-table>
+        </div>
+        <div class="common-foot-style">
+          <el-pagination @size-change="handleSizeChangeMain" @current-change="handleCurrentChangeMain"
+            :current-page="pageIndex" :page-sizes="[10, 20, 30, 50, 100, 200]" :page-size="pageSize" size="mini"
+            layout="total, sizes, prev, pager, next, jumper" :total="total_main" background></el-pagination>
         </div>
-        <div id = "xlsx">
-            <el-tabs v-model="activeName" v-if="DialogVisible" type="border-card">
-                <el-tab-pane v-for="(item,index) in excelSheet" :key="index" :label="item.name" :name="item.name">
-                    <div class="table" v-html="item.innerHTML"></div>
-                </el-tab-pane>
-            </el-tabs>
+      </el-col>
+      <el-col :span='12'>
+        <div class="common-title-div">
+          <div class="common-title-name">
+            <img style="width: 25px; height: 25px" src='../../../..//assets/img/imgScreen/logo.png' />
+            审核流程
+          </div>
+          <div>
+            <el-button icon="el-icon-circle-check" type="primary" :loading='auditDataLoading' size="mini"
+              @click="auditData11">审核</el-button>
+            <el-button icon="el-icon-back" type="danger" :loading='auditDataLoading' size="mini"
+              @click="backData11">回退</el-button>
+            <el-button icon="el-icon-check" type="goon" size="mini" v-loading="submitLoading" style="border:3px;"
+              @click="submit">提交</el-button>
+            <el-button icon="el-icon-remove-outline" type="danger" size="mini" v-loading="ofSubmitLoading"
+              @click="ofSubmit">取消提交</el-button>
+          </div>
         </div>
+        <div class="common-table-div" style="margin-bottom:0;margin-top:0">
+          <el-table v-loading="tableLoading2" ref="dataTable2" border :height="theight" highlight-current-row
+            :data="tableData2" :icore-filter-flag="icoreFilterFlag" :header-cell-style="tableHeaderCellStyle"
+            @current-change="tableRowChange" :cell-class-name="tableRowClassName1" :summary-method="getSummaries2"
+            @selection-change="tableSelectionChange" show-summary>
+            <el-table-column type="index" label="NO" align="center"></el-table-column>
+            <el-table-column type="selection" width="45" align="center"></el-table-column>
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="stateFlagName1" label="状态"
+              min-width="100"></el-table-column>
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="isoItemName" label="执行项目"
+              min-width="100"></el-table-column>
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="itemSit" label="项目填入位置"
+              min-width="80"></el-table-column>
+            <el-table-column sortable :show-overflow-tooltip="true" min-width="120" prop="valueSit" label="项目填入值"
+              align="center">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.valueSit" :disabled="scope.row.itemSit == null || scope.row.stateFlag == 1"
+                  :id="scope.column.id + '--' + scope.$index" @keydown.native="keyDown($event, scope.row, scope.$index)"
+                  size="small" style="width: 100%">
+                </el-input>
+              </template>
+            </el-table-column>
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="optNo" label="执行岗位"
+              min-width="100"></el-table-column>
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="createTime" label="执行时间"
+              min-width="100"></el-table-column>
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="doOrder" label="执行顺序"
+              min-width="100"></el-table-column>
+            <el-table-column :show-overflow-tooltip="true" sortable align="center" prop="memo3" label="意见"
+              min-width="100"></el-table-column>
+          </el-table>
+        </div>
+      </el-col>
+    </el-row>
+    <el-dialog @close="closeDialog" :visible.sync="recordShowFlag" :close-on-click-modal="false">
+      <div slot="title" class="titleBox">
+        <i class='el-icon-document' style="font-size: 20px"></i>
+        <span style="margin-left:10px;font-size:18px">{{ save }}</span>
+      </div>
+      <el-form :inline='true'>
+        <el-form-item label="意见">
+          <el-input type="textarea" v-model="form.desc" style="width: 560px;height: 36px;"></el-input>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" :loading='auditDataLoading' size="mini"
+          @click="tableType === 0 ? auditData() : backData()">确定</el-button>
+        <el-button size="mini" type="default" @click="closeDialog">取消</el-button>
+      </div>
+    </el-dialog>
+    <div id="docx">
+      <div ref="file"></div>
+    </div>
+    <div id="xlsx">
+      <el-tabs v-model="activeName" v-if="DialogVisible" type="border-card">
+        <el-tab-pane v-for="(item, index) in excelSheet" :key="index" :label="item.name" :name="item.name">
+          <div class="table" v-html="item.innerHTML"></div>
+        </el-tab-pane>
+      </el-tabs>
     </div>
+  </div>
 </template>
 <script>
-import {getCookie,formatDate} from '@/utils/util.js';
+import { getCookie, formatDate } from '@/utils/util.js';
 import {
   cookieUserId,
   cookieUserName
@@ -184,64 +193,69 @@ import pdf from 'vue-pdf'
 import XLSX from 'xlsx';
 let docx = require("docx-preview");
 export default {
-    data () {
-        return{
-            searchForm: {
-                matName:'',
-                entrTime:[]
-            },
-            form:{
-                desc:''
-            },
-            srcUrl: '',
-            excelSheet: [],
-            DialogVisible: false,
-            tableLoading: false,
-            tableLoading2: false,
-            auditDataLoading: false,
-            tableData:[],
-            tableData2: [],
-            table1RowChange1: [],//表格2选中的数据
-            tableRowChange1: [],//表格2选中的数据
-            mainHeight: 0,
-            theight:0,
-            multipleSelection:[],
-            icoreFilterFlag: true,
-            pageIndex: 1,
-            pageSize: 50,
-            total_main:0,
-            // fileUrl:'http://172.16.4.162/icore.icp.web/pass/baseManagement/v1/file/download/oss-volume-UY20220305134623262.png'
-            recordShowFlag:false,//审核页面显示
-            save:'',
-            tableType: 0,
-            optNoParameter:'',
-        }
+  data() {
+    return {
+      searchForm: {
+        matName: '',
+        entrTime: []
+      },
+      form: {
+        desc: ''
+      },
+      srcUrl: '',
+      excelSheet: [],
+      DialogVisible: false,
+      tableLoading: false,
+      tableLoading2: false,
+      auditDataLoading: false,
+      tableData: [],
+      tableData2: [],
+      table1RowChange1: [],//表格2选中的数据
+      tableRowChange1: [],//表格2选中的数据
+      mainHeight: 0,
+      theight: 0,
+      multipleSelection: [],
+      multipleSelectionItem: [],
+      icoreFilterFlag: true,
+      pageIndex: 1,
+      pageSize: 50,
+      total_main: 0,
+      // fileUrl:'http://172.16.4.162/icore.icp.web/pass/baseManagement/v1/file/download/oss-volume-UY20220305134623262.png'
+      recordShowFlag: false,//审核页面显示
+      save: '',
+      tableType: 0,
+      optNoParameter: '',
+      submitLoading: false
+    }
+  },
+  created() {
+    this.mainHeight = window.innerHeight - 120
+    this.theight = window.innerHeight - 120
+    this.searchForm.entrTime = [this.getYNM(new Date()) + ' 00:00:00', this.getYNM(new Date()) + ' 23:59:59']
+    this.getCompany();
+  },
+  mounted() {
+
+  },
+  methods: {
+    tableSelectionChange(val) {
+      this.multipleSelectionItem = val;
     },
-    created(){
-        this.mainHeight = window.innerHeight - 120
-        this.theight = window.innerHeight - 120
-        this.searchForm.entrTime = [this.getYNM(new Date()) + ' 00:00:00', this.getYNM(new Date())+ ' 23:59:59']
-        this.getCompany();
+    // 关闭弹窗
+    closeDialog() {
+      this.save = '';
+      this.form.desc = '';
+      this.tableType = 0;
+      this.recordShowFlag = false
     },
-    mounted(){
-
+    getYNM(date) {
+      let year = date.getFullYear().toString();
+      let month = date.getMonth() + 1;
+      let day = date.getDate();
+      month = month < 10 ? "0" + month : month;
+      day = day < 10 ? "0" + day : day;
+      return `${year}-${month}-${day}`;
     },
-    methods:{
-        // 关闭弹窗
-        closeDialog () {
-            this.save = '';
-            this.form.desc = '';
-            this.tableType = 0;
-            this.recordShowFlag = false
-        },
-        getYNM(date) {
-            let year = date.getFullYear().toString();
-            let month = date.getMonth() + 1;
-            let day = date.getDate();
-            month = month < 10 ? "0" + month : month;
-            day = day < 10 ? "0" + day : day;
-            return `${year}-${month}-${day}`;
-        },
     //     preView(){
     //         var originUrl = 'http://172.16.4.162/icore.icp.web/pass/baseManagement/v1/file/download/'; //要预览文件的访问地址
     //       var previewUrl = originUrl + 'oss-volume-UY20220305134623262.png'
@@ -283,319 +297,393 @@ export default {
     //         let BinaryString = await this.readFile(file.raw, "string");
     //         console.log(BinaryString); // 返回一个二进制的字符串
     //     },
-        showFlag(docx){
-            if(docx){
-                document.getElementById("docx").style.display = "block";
-                document.getElementById("xlsx").style.display = "none";
-            }else{
-                document.getElementById("docx").style.display = "none";
-                document.getElementById("xlsx").style.display = "block";
-            }
-        },
-        tableToHtml(workbook){
-            const sheetList = workbook.SheetNames.filter(v => v.indexOf('数据源') === -1);
-            this.activeName = sheetList[0];
-            sheetList.forEach(sheet => {
-                const worksheet = workbook.Sheets[sheet];
-                if (worksheet) {
-                    const innerHTML = XLSX.utils.sheet_to_html(worksheet);
-                    this.excelSheet.push({
-                    name: sheet,
-                    innerHTML: innerHTML
-                    });
-                } else {
-                    this.excelSheet.push({
-                    name: sheet,
-                    innerHTML: '暂无数据',
-                    });
-                }
-                });
-            this.DialogVisible = true;
-        },
-        imgPreViewY(row,fileName){
-            let aaa = fileName.substr(fileName.indexOf(".")+1);
-            this.axios.get('pass/baseManagement/v1/file/download/' + fileName,{responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
-                if(aaa == "docx"){
-                    this.showFlag(true);
-                    docx.renderAsync(res,this.$refs.file)
-                }else if(aaa == "pdf"){
-                    const binaryData = [];
-                    binaryData.push(res);
-                    this.srcUrl = window.URL.createObjectURL(new Blob(binaryData,{ type: 'application/pdf' }))
-                    window.open(this.srcUrl);
-                }else if(aaa == "xlsx"){
-                    this.excelSheet = [];
-                    this.showFlag(false);
-                    let workbook = XLSX.read(new Uint8Array(res), {type:"array"});
-                    this.tableToHtml(workbook);
-                }else{
-                    return this.$message.error("不支持这个类型的文件展示!")
-                }
-            }).catch(e => {
-                return this.$message.error(e.message)
-            })
-        },
-        imgPreView(row,fileName){
-            this.axios.get('pass/baseManagement/v1/file/download/' + fileName,{responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
-                let blob = new Blob([res]);
-                let elink = document.createElement('a');
-                elink.download = fileName;
-                elink.style.display = 'none';
-                elink.target = "_blank";
-                elink.href = URL.createObjectURL(blob);
-                document.body.appendChild(elink);
-                elink.click();
-                URL.revokeObjectURL(elink.href); // 释放URL对象
-                document.body.removeChild(elink);
-            }).catch(e => {
-                return this.$message.error(e.message)
-            })
-        },
-        backData11(){
-            if(this.tableRowChange1.length === 0 || this.tableRowChange1 == null){
-                return this.$message.warning('请先点击一条数据!')
-            }
-            if(this.tableRowChange1.stateFlag != 0){
-                return this.$message.warning('请点击一条待审核状态的数据!')
-            }
-            this.tableType = 1;
-            this.save = '退回意见';
-            this.recordShowFlag = true;
-        },
-        backData222(){
-            this.axios.get('pass/baseManagement/v1/download/path=oss-volume-Yt20220506105946526.pdf',{responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
-            let blob = new Blob([res]);
-            let fileName = oldFileName;
-            let elink = document.createElement('a');
-            elink.download = fileName;
-            elink.style.display = 'none';
-            elink.target = "_blank";
-            elink.href = URL.createObjectURL(blob);
-            document.body.appendChild(elink);
-            elink.click();
-            URL.revokeObjectURL(elink.href); // 释放URL对象
-            document.body.removeChild(elink);
-        })  
-        },
-        backData(){
-            if(this.tableRowChange1.length === 0 || this.tableRowChange1 == null){
-                return this.$message.warning('请先点击一条数据!')
-            }
-            if(this.tableRowChange1.stateFlag != 0){
-                return this.$message.warning('请点击一条待审核状态的数据!')
-            }
-            this.tableRowChange1.memo3 = this.form.desc;
-            this.auditDataLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatads/backDataD", this.tableRowChange1, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success(res.message)
-                    this.auditDataLoading = false;
-                    this.closeDialog()
-                    this.searchFollow(this.table1RowChange1);
-                }else{
-                    this.$message.error(res.message)
-                    this.auditDataLoading = false;
-                }
-            }).catch(err =>{
-                this.auditDataLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        auditData11(){
-            if(this.tableRowChange1.length === 0 || this.tableRowChange1 == null){
-                return this.$message.warning('请先点击一条数据!')
-            }
-            if(this.tableRowChange1.stateFlag != 0){
-                return this.$message.warning('请点击一条待审核状态的数据!')
-            }
-            this.tableType = 0;
-            this.save = '审核意见';
-            this.recordShowFlag = true;
-        },
-        //获取个人所属哪个岗位
-        getCompany(){
-            this.axios.get('pass/baseManagement/v1/limslrcemps/'+userId).then(res =>{
-                if (res.code == 0 || res.code == 200) {
-                    this.optNoParameter = res.data ? res.data.deptNo:''
-                    this.searchData();
-                }else{
-                    this.$message.error(e.message)
-                }
-            }).catch(e =>{
-                this.$message.error(e.message)
-            })
-        },
-        //审核
-        auditData(){
-            if(this.tableRowChange1.length === 0 || this.tableRowChange1 == null){
-                return this.$message.warning('请先点击一条数据!')
-            }
-            if(this.tableRowChange1.stateFlag != 0){
-                return this.$message.warning('请点击一条待审核状态的数据!')
-            }
-            this.tableRowChange1.memo3 = this.form.desc;
-            this.auditDataLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatads/auditDataD", this.tableRowChange1, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.$message.success(res.message)
-                    this.auditDataLoading = false;
-                    this.closeDialog()
-                    this.searchFollow(this.table1RowChange1);
-                }else{
-                    this.$message.error(res.message)
-                    this.auditDataLoading = false;
-                }
-            }).catch(err =>{
-                this.auditDataLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        searchData(){
-            let startTime = ''
-            let endTime = ''
-            if (!this.searchForm.entrTime) {
-                startTime = ''
-                endTime = ''
-            }else{
-                startTime = this.searchForm.entrTime[0]
-                endTime = this.searchForm.entrTime[1]
-            }
-            let obj = {
-                pageNum: this.pageIndex,
-                pageSize: this.pageSize,
-                startTime: startTime,
-                endTime: endTime ,
-                isoName: this.searchForm.matName,
-                optNo: this.optNoParameter,
-                tenantNo: '2'
-            }
-            this.tableLoading = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatas/queryLimsIsoDataPages", obj, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.tableData = res.data.list
-                    this.total_main = res.data.total
-                    this.tableData.forEach(item =>{
-                        item.stateFlagName = item.stateFlag === '0' ? '编辑' : item.stateFlag === '1' ? '提交' : ''
-                    })
-                    if(this.tableData.length > 0){
-                        this.$refs.dataTable.setCurrentRow(this.tableData[0]);
-                        this.searchFollow(this.tableData[0])
-                    }
-                    this.tableLoading = false;
-                }else{
-                    this.$message.error(res.message)
-                    this.tableLoading = false;
-                }
-            }).catch(err =>{
-                this.tableLoading = false;
-                this.$message.error(err.message)
-            })
-        },
-        searchFollow(row){
-            this.tableLoading2 = true;
-            this.axios.post("pass/baseManagement/v1/limsisodatads/queryLimsIsoDataDsByIsoNo", row, {individualType: 'json'}).then(res =>{
-                if(res.code == 0 || res.code == 200){
-                    this.tableData2 = res.data;
-                    this.tableData2.forEach(item =>{
-                        item.stateFlagName1 = item.stateFlag === '1' ? '已审核' : item.stateFlag === '0' ? '待审核' : item.stateFlag === '2' ? '已回退' : ''
-                    })
-                    this.tableLoading2 = false;
-                }else{
-                    this.$message.error(res.message)
-                    this.tableLoading2 = false;
-                }
-            }).catch(err =>{
-                this.tableLoading2 = false;
-                this.$message.error(err.message)
-            })
-        },
-        tableRowChange(row){
-            this.tableRowChange1 = row;
-        },
-        table1RowChange(row){
-            this.table1RowChange1 = row;
-        },
-        resetData(){
-            this.searchForm.matName = ''
-            this.searchForm.entrTime = [this.getYNM(new Date()) + ' 00:00:00', this.getYNM(new Date())+ ' 23:59:59']
-            this.searchData()
-        },
-        handleSelectionChange (val) {
-            this.multipleSelection = val;
-        },
-        handleSizeChangeMain(pageSize) {
-            this.pageIndex = 1;
-            this.pageSize = pageSize;
-            this.searchData();
-        },
-        handleSizeChangeMain1(pageSize) {
-            this.pageIndex = 1;
-            this.pageSize = pageSize;
-            this.searchFollow();
-        },
-        handleCurrentChangeMain(pageIndex) {
-            this.pageIndex = pageIndex;
-            this.searchData();
-        },
-        handleCurrentChangeMain1(pageIndex) {
-            this.pageIndex = pageIndex;
-            this.searchFollow();
-        },
-        getSummaries2(param) {
-            const { columns, data } = param;
-            const sums = [];
-            columns.forEach((column, index) => {
-                if (index === 0) {
-                sums[index] = "总计";
-                }
-                if (index === 1) {
-                sums[index] = data.length;
-                } else if (column.property === "quantity") {
-                let val = 0;
-                for (let i in data) {
-                    val = this.floatComputed(
-                    data[i].quantity ? data[i].quantity : 0,
-                    val,
-                    "+"
-                    );
-                }
-                sums[index] = val;
-                } else if (column.property === "factweight") {
-                let val = 0;
-                for (let i in data) {
-                    val = this.floatComputed(
-                    data[i].factweight ? data[i].factweight : 0,
-                    val,
-                    "+"
-                    );
-                }
-                sums[index] = val;
-                }
-            });
-            return sums;
-        },
-        tableHeaderCellStyle () {
-            return 'color: rgb(255,255,255);border-bottom: 1px solid #DCDFE7;'
-        },
-        //停用变色
-        tableRowClassName ({row, column, rowIndex, columnIndex}) {
-            if (columnIndex === 1) {
-                if (row.stateFlag == '1') {
-                    return 'error-green';
-                }
-            }
-        },
-        //停用变色
-        tableRowClassName1 ({row, column, rowIndex, columnIndex}) {
-            if (columnIndex === 1) {
-                if (row.stateFlag == '1') {
-                    return 'error-green';
-                }
-                if (row.stateFlag == '2') {
-                    return 'error-row';
-                }
-            }
-        },
-    }
+    showFlag(docx) {
+      if (docx) {
+        document.getElementById("docx").style.display = "block";
+        document.getElementById("xlsx").style.display = "none";
+      } else {
+        document.getElementById("docx").style.display = "none";
+        document.getElementById("xlsx").style.display = "block";
+      }
+    },
+    tableToHtml(workbook) {
+      const sheetList = workbook.SheetNames.filter(v => v.indexOf('数据源') === -1);
+      this.activeName = sheetList[0];
+      sheetList.forEach(sheet => {
+        const worksheet = workbook.Sheets[sheet];
+        if (worksheet) {
+          const innerHTML = XLSX.utils.sheet_to_html(worksheet);
+          this.excelSheet.push({
+            name: sheet,
+            innerHTML: innerHTML
+          });
+        } else {
+          this.excelSheet.push({
+            name: sheet,
+            innerHTML: '暂无数据',
+          });
+        }
+      });
+      this.DialogVisible = true;
+    },
+    imgPreViewY(row, fileName) {
+      let aaa = fileName.substr(fileName.indexOf(".") + 1);
+      this.axios.get('pass/baseManagement/v1/file/download/' + fileName, { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
+        if (aaa == "docx") {
+          this.showFlag(true);
+          docx.renderAsync(res, this.$refs.file)
+        } else if (aaa == "pdf") {
+          const binaryData = [];
+          binaryData.push(res);
+          this.srcUrl = window.URL.createObjectURL(new Blob(binaryData, { type: 'application/pdf' }))
+          window.open(this.srcUrl);
+        } else if (aaa == "xlsx") {
+          this.excelSheet = [];
+          this.showFlag(false);
+          let workbook = XLSX.read(new Uint8Array(res), { type: "array" });
+          this.tableToHtml(workbook);
+        } else {
+          return this.$message.error("不支持这个类型的文件展示!")
+        }
+      }).catch(e => {
+        return this.$message.error(e.message)
+      })
+    },
+    imgPreView(row, fileName) {
+      this.axios.get('pass/baseManagement/v1/file/download/' + fileName, { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
+        let blob = new Blob([res]);
+        let elink = document.createElement('a');
+        elink.download = fileName;
+        elink.style.display = 'none';
+        elink.target = "_blank";
+        elink.href = URL.createObjectURL(blob);
+        document.body.appendChild(elink);
+        elink.click();
+        URL.revokeObjectURL(elink.href); // 释放URL对象
+        document.body.removeChild(elink);
+      }).catch(e => {
+        return this.$message.error(e.message)
+      })
+    },
+    backData11() {
+      if (this.tableRowChange1.length === 0 || this.tableRowChange1 == null) {
+        return this.$message.warning('请先点击一条数据!')
+      }
+      if (this.tableRowChange1.stateFlag != 0) {
+        return this.$message.warning('请点击一条待审核状态的数据!')
+      }
+      this.tableType = 1;
+      this.save = '退回意见';
+      this.recordShowFlag = true;
+    },
+    backData222() {
+      this.axios.get('pass/baseManagement/v1/download/path=oss-volume-Yt20220506105946526.pdf', { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
+        let blob = new Blob([res]);
+        let fileName = oldFileName;
+        let elink = document.createElement('a');
+        elink.download = fileName;
+        elink.style.display = 'none';
+        elink.target = "_blank";
+        elink.href = URL.createObjectURL(blob);
+        document.body.appendChild(elink);
+        elink.click();
+        URL.revokeObjectURL(elink.href); // 释放URL对象
+        document.body.removeChild(elink);
+      })
+    },
+    backData() {
+      if (this.tableRowChange1.length === 0 || this.tableRowChange1 == null) {
+        return this.$message.warning('请先点击一条数据!')
+      }
+      if (this.tableRowChange1.stateFlag != 0) {
+        return this.$message.warning('请点击一条待审核状态的数据!')
+      }
+      this.tableRowChange1.memo3 = this.form.desc;
+      this.auditDataLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatads/backDataD", this.tableRowChange1, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success(res.message)
+          this.auditDataLoading = false;
+          this.closeDialog()
+          this.searchFollow(this.table1RowChange1);
+        } else {
+          this.$message.error(res.message)
+          this.auditDataLoading = false;
+        }
+      }).catch(err => {
+        this.auditDataLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    submit() {
+      if (this.multipleSelectionItem.length < 1) {
+        this.$message.error("请选择要提交的表格数据!")
+        return
+      }
+      let bg = false;
+      let bg1 = false;
+      this.multipleSelectionItem.forEach(s => {
+        if (s.stateFlag == 1) {
+          bg = true;
+        }
+        if (s.optNo != this.optNoParameter) {
+          bg1 = true;
+        }
+      })
+      // if (bg) {
+      //   this.$message.error("已提交的数据不能在次提交!")
+      //   return
+      // }
+      // if(bg1){
+      //     this.$message.error("您不是这个岗位的,不可提交数据!")
+      //     return
+      // }
+      this.submitLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatads/submitLimsIsoDataDByLb", this.multipleSelectionItem, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("提交成功!");
+          this.searchFollow(this.table1RowChange1);
+        } else {
+          this.$message.error(res.data)
+        }
+        this.submitLoading = false;
+      }).catch(err => {
+        this.submitLoading = false;
+        this.$message.error(err.data)
+      })
+    },
+    ofSubmit() {
+      if (this.multipleSelectionItem.length < 1) {
+        this.$message.error("请选择要取消提交的表格数据!")
+        return
+      }
+      let bg = false;
+      let bg1 = false;
+      this.multipleSelectionItem.forEach(s => {
+        if (s.stateFlag == 0) {
+          bg = true;
+        }
+        if (s.optNo != this.optNoParameter) {
+          bg1 = true;
+        }
+      })
+      if (bg) {
+        this.$message.error("未提交的数据不能取消提交!")
+        return
+      }
+      // if(bg1){
+      //     this.$message.error("您不是这个岗位的,不可取消提交!")
+      //     return
+      // }
+      this.ofSubmitLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatads/ofSubmitLimsIsoDataD", this.multipleSelectionItem, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success("取消提交成功!");
+          this.searchFollow(this.table1RowChange1);
+        } else {
+          this.$message.error(res.data)
+        }
+        this.ofSubmitLoading = false;
+      }).catch(err => {
+        this.ofSubmitLoading = false;
+        this.$message.error(err.data)
+      })
+    },
+    auditData11() {
+      if (this.tableRowChange1.length === 0 || this.tableRowChange1 == null) {
+        return this.$message.warning('请先点击一条数据!')
+      }
+      if (this.tableRowChange1.stateFlag != 0) {
+        return this.$message.warning('请点击一条待审核状态的数据!')
+      }
+      this.tableType = 0;
+      this.save = '审核意见';
+      this.recordShowFlag = true;
+    },
+    //获取个人所属哪个岗位
+    getCompany() {
+      this.axios.get('pass/baseManagement/v1/limslrcemps/' + userId).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          // this.optNoParameter = res.data ? res.data.deptNo:''
+          this.searchData();
+        } else {
+          this.$message.error(e.message)
+        }
+      }).catch(e => {
+        this.$message.error(e.message)
+      })
+    },
+    //审核
+    auditData() {
+      if (this.tableRowChange1.length === 0 || this.tableRowChange1 == null) {
+        return this.$message.warning('请先点击一条数据!')
+      }
+      if (this.tableRowChange1.stateFlag != 0) {
+        return this.$message.warning('请点击一条待审核状态的数据!')
+      }
+      this.tableRowChange1.memo3 = this.form.desc;
+      this.auditDataLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatads/auditDataD", this.tableRowChange1, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.$message.success(res.message)
+          this.auditDataLoading = false;
+          this.closeDialog()
+          this.searchFollow(this.table1RowChange1);
+        } else {
+          this.$message.error(res.message)
+          this.auditDataLoading = false;
+        }
+      }).catch(err => {
+        this.auditDataLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    searchData() {
+      let startTime = ''
+      let endTime = ''
+      if (!this.searchForm.entrTime) {
+        startTime = ''
+        endTime = ''
+      } else {
+        startTime = this.searchForm.entrTime[0]
+        endTime = this.searchForm.entrTime[1]
+      }
+      let obj = {
+        pageNum: this.pageIndex,
+        pageSize: this.pageSize,
+        startTime: startTime,
+        endTime: endTime,
+        isoName: this.searchForm.matName,
+        optNo: this.optNoParameter,
+        tenantNo: '2'
+      }
+      this.tableLoading = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatas/queryLimsIsoDataPages", obj, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.tableData = res.data.list
+          this.total_main = res.data.total
+          this.tableData.forEach(item => {
+            item.stateFlagName = item.stateFlag === '0' ? '编辑' : item.stateFlag === '1' ? '提交' : ''
+          })
+          if (this.tableData.length > 0) {
+            this.$refs.dataTable.setCurrentRow(this.tableData[0]);
+            this.searchFollow(this.tableData[0])
+          }
+          this.tableLoading = false;
+        } else {
+          this.$message.error(res.message)
+          this.tableLoading = false;
+        }
+      }).catch(err => {
+        this.tableLoading = false;
+        this.$message.error(err.message)
+      })
+    },
+    searchFollow(row) {
+      this.tableLoading2 = true;
+      this.axios.post("pass/baseManagement/v1/limsisodatads/queryLimsIsoDataDsByIsoNo", row, { individualType: 'json' }).then(res => {
+        if (res.code == 0 || res.code == 200) {
+          this.tableData2 = res.data;
+          this.tableData2.forEach(item => {
+            item.stateFlagName1 = item.stateFlag === '1' ? '已审核' : item.stateFlag === '0' ? '待审核' : item.stateFlag === '2' ? '已回退' : ''
+          })
+          this.tableLoading2 = false;
+        } else {
+          this.$message.error(res.message)
+          this.tableLoading2 = false;
+        }
+      }).catch(err => {
+        this.tableLoading2 = false;
+        this.$message.error(err.message)
+      })
+    },
+    tableRowChange(row) {
+      this.tableRowChange1 = row;
+    },
+    table1RowChange(row) {
+      this.table1RowChange1 = row;
+    },
+    resetData() {
+      this.searchForm.matName = ''
+      this.searchForm.entrTime = [this.getYNM(new Date()) + ' 00:00:00', this.getYNM(new Date()) + ' 23:59:59']
+      this.searchData()
+    },
+    handleSelectionChange(val) {
+      this.multipleSelection = val;
+    },
+    handleSizeChangeMain(pageSize) {
+      this.pageIndex = 1;
+      this.pageSize = pageSize;
+      this.searchData();
+    },
+    handleSizeChangeMain1(pageSize) {
+      this.pageIndex = 1;
+      this.pageSize = pageSize;
+      this.searchFollow();
+    },
+    handleCurrentChangeMain(pageIndex) {
+      this.pageIndex = pageIndex;
+      this.searchData();
+    },
+    handleCurrentChangeMain1(pageIndex) {
+      this.pageIndex = pageIndex;
+      this.searchFollow();
+    },
+    getSummaries2(param) {
+      const { columns, data } = param;
+      const sums = [];
+      columns.forEach((column, index) => {
+        if (index === 0) {
+          sums[index] = "总计";
+        }
+        if (index === 1) {
+          sums[index] = data.length;
+        } else if (column.property === "quantity") {
+          let val = 0;
+          for (let i in data) {
+            val = this.floatComputed(
+              data[i].quantity ? data[i].quantity : 0,
+              val,
+              "+"
+            );
+          }
+          sums[index] = val;
+        } else if (column.property === "factweight") {
+          let val = 0;
+          for (let i in data) {
+            val = this.floatComputed(
+              data[i].factweight ? data[i].factweight : 0,
+              val,
+              "+"
+            );
+          }
+          sums[index] = val;
+        }
+      });
+      return sums;
+    },
+    tableHeaderCellStyle() {
+      return 'color: rgb(255,255,255);border-bottom: 1px solid #DCDFE7;'
+    },
+    //停用变色
+    tableRowClassName({ row, column, rowIndex, columnIndex }) {
+      if (columnIndex === 1) {
+        if (row.stateFlag == '1') {
+          return 'error-green';
+        }
+      }
+    },
+    //停用变色
+    tableRowClassName1({ row, column, rowIndex, columnIndex }) {
+      if (columnIndex === 1) {
+        if (row.stateFlag == '1') {
+          return 'error-green';
+        }
+        if (row.stateFlag == '2') {
+          return 'error-row';
+        }
+      }
+    },
+  }
 }
-</script>
+</script>

+ 44 - 106
src/views/standardManagement/components/systemFileManagement/recordAlertComponents.vue

@@ -1,110 +1,44 @@
 <template>
   <!-- 文件记录信息编辑弹窗 -->
   <div class="examination batch-edit-wrap">
-    <el-dialog
-      @close="closeDialog"
-      :visible.sync="recordShowFlag"
-      customClass="dialog_wrap"
-      :close-on-click-modal="false"
-    >
+    <el-dialog @close="closeDialog" :visible.sync="recordShowFlag" customClass="dialog_wrap"
+      :close-on-click-modal="false">
       <div slot="title" class="titleBox">
-        <i
-          :class="tableType === 0 ? 'el-icon-document' : 'el-icon-edit-outline'"
-          style="font-size: 20px"
-        ></i>
+        <i :class="tableType === 0 ? 'el-icon-document' : 'el-icon-edit-outline'" style="font-size: 20px"></i>
         <span style="margin-left: 10px; font-size: 18px">{{ type }}</span>
       </div>
-      <el-form
-        ref="editData"
-        label-width="65px"
-        :inline="true"
-        :rules="ruleValidate"
-        :model="editData"
-      >
+      <el-form ref="editData" label-width="65px" :inline="true" :rules="ruleValidate" :model="editData">
         <el-form-item prop="fileName" label="文件名称">
-          <el-input
-            v-model="editData.fileName"
-            clearable
-            size="small"
-            style="width: 160px"
-            placeholder="请输入"
-          ></el-input>
+          <el-input v-model="editData.fileName" clearable size="small" style="width: 160px"
+            placeholder="请输入"></el-input>
         </el-form-item>
         <el-form-item prop="fileDate" label="文件日期">
-          <el-date-picker
-            v-model="editData.fileDate"
-            size="small"
-            type="date"
-            style="width: 160px"
-            placeholder="选择日期"
-            format="yyyy-MM-dd"
-            value-format="yyyy-MM-dd"
-          ></el-date-picker>
+          <el-date-picker v-model="editData.fileDate" size="small" type="date" style="width: 160px" placeholder="选择日期"
+            format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
         </el-form-item>
         <el-form-item prop="memo" label="备注">
-          <el-input
-            v-model="editData.memo"
-            clearable
-            size="small"
-            style="width: 392px"
-            placeholder="请输入"
-          ></el-input>
+          <el-input v-model="editData.memo" clearable size="small" style="width: 392px" placeholder="请输入"></el-input>
         </el-form-item>
         <el-form-item prop="audit" label="是否审核">
-          <el-select
-                v-model="audit"
-                filterable
-                collapse-tags
-                size="small"
-                style="width: 80px"
-              >
-                <el-option
-                  v-for="(item, index) in isSmpType"
-                  :key="index"
-                  :label="item.isSmp"
-                  :value="item.id"
-                >
-                </el-option>
-              </el-select>
+          <el-select v-model="audit" filterable collapse-tags size="small" style="width: 80px">
+            <el-option v-for="(item, index) in isSmpType" :key="index" :label="item.isSmp" :value="item.id">
+            </el-option>
+          </el-select>
         </el-form-item>
         <el-form-item label="文件上传">
-          <el-input
-            v-model="editData.filePath01"
-            size="small"
-            readonly
-            disabled
-            style="width: 192px; display: inline-block"
-          ></el-input>
-          <el-upload
-            class="upload"
-            action=""
-            v-if="editData.filePath01 - 0 === 0"
-            style="width: 40px; display: inline-block"
-            :multiple="false"
-            :show-file-list="false"
-            accept=""
-            :http-request="httpRequest"
-          >
-            <el-button
-              type="goon"
-              size="mini"
-              icon="el-icon-upload2"
-            ></el-button>
+          <el-input v-model="editData.filePath01" size="small" readonly disabled
+            style="width: 192px; display: inline-block"></el-input>
+          <el-upload class="upload" action="" v-if="editData.filePath01 - 0 === 0"
+            style="width: 40px; display: inline-block" :multiple="false" :show-file-list="false" accept=""
+            :http-request="httpRequest">
+            <el-button type="goon" size="mini" icon="el-icon-upload2"></el-button>
           </el-upload>
-          <el-button
-            v-else
-            type="primary"
-            size="mini"
-            class="el-icon-circle-close"
-            @click="dropFile"
-          ></el-button>
+          <el-button v-else type="primary" size="mini" class="el-icon-circle-close" @click="dropFile"></el-button>
         </el-form-item>
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button type="primary" size="mini" @click="saveData">确定</el-button>
-        <el-button size="mini" type="default" @click="closeDialog"
-          >取消</el-button
-        >
+        <el-button size="mini" type="default" @click="closeDialog">取消</el-button>
       </span>
     </el-dialog>
   </div>
@@ -121,7 +55,7 @@ let userName = getCookie(cookieUserName);
 let userId = getCookie(cookieUserId);
 export default {
   props: ['type', 'recordShowFlag', 'recordObj'],
-  data () {
+  data() {
     return {
       // 编辑的数据对象
       editData: {
@@ -141,19 +75,23 @@ export default {
         { id: "0", isSmp: "否" },
         { id: "1", isSmp: "是" },
       ],
+      isController: [
+        { id: "0", label: "否" },
+        { id: "√", label: "是" },
+      ],
       tableType: 0,// 当前是编辑还是新增, 0为新增
       ruleValidate: {
         fileDate: [{ required: true, message: '该项不能为空', trigger: 'change' }]
       },
     }
   },
-  created () {
+  created() {
   },
-  mounted () {
-    
+  mounted() {
+
   },
   methods: {
-    getYNM (date) {
+    getYNM(date) {
       let year = date.getFullYear().toString();
       let month = date.getMonth() + 1;
       let day = date.getDate();
@@ -162,21 +100,21 @@ export default {
       return `${year}-${month}-${day}`;
     },
     // 关闭弹窗
-    closeDialog () {
+    closeDialog() {
       this.$emit('close')
     },
-    closeDialog1 () {
+    closeDialog1() {
       this.$emit('refresh')
     },
     // 保存数据文件名称
-    async saveData () {
+    async saveData() {
       this.$refs["editData"].validate((valid) => {
-        if(valid){
+        if (valid) {
           if (this.editData.filePath01 - 0 === 0) {
             return this.$message.warning('请上传文件')
           }
           this.editData.tenantNo = '2'
-          this.axios.post('pass/baseManagement/v1/limsisofileds/insertupdate?audit='+this.audit, { ...this.editData }, { individualType: 'json' }).then((res)=>{
+          this.axios.post('pass/baseManagement/v1/limsisofileds/insertupdate?audit=' + this.audit, { ...this.editData }, { individualType: 'json' }).then((res) => {
             if (res.status === 'succeed') {
               this.$message.success('操作成功')
               this.closeDialog1()
@@ -188,7 +126,7 @@ export default {
       })
     },
     // 文件上传
-    async httpRequest (e) {
+    async httpRequest(e) {
       let _this = this;
       if (!e.file) {
         // 没有文件
@@ -201,7 +139,7 @@ export default {
           'Content-Type': 'multipart/form-data'
         }
       }
-      this.axios.post('pass/baseManagement/v1/file/upload', file, config).then(res =>{
+      this.axios.post('pass/baseManagement/v1/file/upload', file, config).then(res => {
         if (res.code === '0' || res.code === '200') {
           this.$message.success('上传成功')
           this.editData.fileName = res.data[0].oldFileName
@@ -237,20 +175,20 @@ export default {
       // }
     },
     // 删除已有文件
-    async dropFile () {
+    async dropFile() {
       let result = await this.MessageBox.confirm('确认删除该文件重新上传吗?').catch(() => 'cancel')
       if (result == 'cancel') return
       var data
       try {
-        if(this.editData.id){
-          const data = await this.axios.post('pass/baseManagement/v1/limsisofileds/delectFile', {stId : this.editData.id}, { individualType: 'json' })
+        if (this.editData.id) {
+          const data = await this.axios.post('pass/baseManagement/v1/limsisofileds/delectFile', { stId: this.editData.id }, { individualType: 'json' })
           if (data.status === 'succeed') {
             this.editData.filePath01 = ''
             this.$message.success('文件删除成功')
           } else {
             this.$message.error(data.message)
           }
-        }else{
+        } else {
           this.editData.filePath01 = ''
           this.$message.success('文件删除成功')
         }
@@ -260,9 +198,9 @@ export default {
     }
   },
   watch: {
-    recordObj (newVal, oldVal) {
+    recordObj(newVal, oldVal) {
       this.editData = { ...this.editDataCache, ...newVal }
-      if(this.editData.fileDate == null || this.editData.fileDate == ""){
+      if (this.editData.fileDate == null || this.editData.fileDate == "") {
         this.editData.fileDate = this.getYNM(new Date())
       }
     }
@@ -289,4 +227,4 @@ export default {
 .dialog_wrap .el-dialog__footer {
   text-align: center;
 }
-</style>
+</style>

File diff suppressed because it is too large
+ 209 - 581
src/views/standardManagement/components/systemFileManagement/systemFileManagement.vue


+ 180 - 293
src/views/standardManagement/components/systemFileViewing/systemFileViewing.vue

@@ -4,71 +4,35 @@
     <header class="header_wrap">
       <el-form :model="searchForm" :inline="true">
         <el-form-item label="文件名称" label-width="65px">
-          <el-input
-            type="text"
-            size="mini"
-            v-model="searchForm.fileName"
-            clearable
-          ></el-input>
+          <el-input type="text" size="mini" v-model="searchForm.fileName" clearable></el-input>
         </el-form-item>
         <el-form-item label="文件时间">
-          <el-date-picker
-            v-model="searchForm.time"
-            type="daterange"
-            range-separator="至"
-            start-placeholder="开始日期"
-            end-placeholder="结束日期"
-            size="small"
-            style="width: 300px"
-            format="yyyy-MM-dd"
-            value-format="yyyy-MM-dd"
-          >
+          <el-date-picker v-model="searchForm.time" type="daterange" range-separator="至" start-placeholder="开始日期"
+            end-placeholder="结束日期" size="small" style="width: 300px" format="yyyy-MM-dd" value-format="yyyy-MM-dd">
           </el-date-picker>
         </el-form-item>
         <el-form-item label-width="0">
-          <el-button type="primary" size="mini" @click="fileDataSearch"
-            >查询</el-button
-          >
+          <el-button type="primary" size="mini" @click="fileDataSearch">查询</el-button>
           <el-button type="primary" size="mini">重置</el-button>
         </el-form-item>
       </el-form>
     </header>
     <el-row :gutter="24" class="main_container">
-        <el-col :span="4">
-        <aside
-          class="aside_wrap examination"
-          :style="{ height: treeHeight + 'px' }"
-        >
+      <el-col :span="4">
+        <aside class="aside_wrap examination" :style="{ height: treeHeight + 'px' }">
           <div class="common-title-name">
-            <img
-              style="width: 25px; height: 25px"
-              src="../../../../assets/img/imgScreen/logo.png"
-            />
+            <img style="width: 25px; height: 25px" src="../../../../assets/img/imgScreen/logo.png" />
             <span>文件分类</span>
           </div>
-          <el-tree
-            ref="menuTree"
-            :data="menuTree"
-            :props="defaultProps"
-            node-key="id"
-            class="tree_wrap"
-            v-loading="treeLoading"
-            :default-expanded-keys="expandedKeys"
-            @node-expand="expandNode"
-            @node-collapse="expandCollapse"
-            :expand-on-click-node="true"
-            @node-click="nodeClick"
-            :style="{ height: treeHeight + 'px' }"
-          >
+          <el-tree ref="menuTree" :data="menuTree" :props="defaultProps" node-key="id" class="tree_wrap"
+            v-loading="treeLoading" :default-expanded-keys="expandedKeys" @node-expand="expandNode"
+            @node-collapse="expandCollapse" :expand-on-click-node="true" @node-click="nodeClick"
+            :style="{ height: treeHeight + 'px' }">
             <span class="custom-tree-node" slot-scope="{ node, data }">
-              <span
-                :style="
-                  data.status === '0' || node.parent.data.status === '0'
-                    ? 'color: #a09e9e;'
-                    : ''
-                "
-                >{{ node.label }}</span
-              >
+              <span :style="data.status === '0' || node.parent.data.status === '0'
+                  ? 'color: #a09e9e;'
+                  : ''
+                ">{{ node.label }}</span>
               <!-- <span class="nodeOperate contextmenu">
                 <el-dropdown @command="handleCommand" :hide-on-click="false">
                   <span class="el-dropdown-link">
@@ -107,163 +71,86 @@
         </aside>
       </el-col>
       <el-col :span="20">
-          <div class="common-title-name section_top">
-            <img
-              style="width: 25px; height: 25px"
-              src="../../../..//assets/img/imgScreen/logo.png"
-            />
-            <span style="font-size: 18px">记录信息</span>
-          </div>
-          <el-table
-            v-loading="recordDataLoading"
-            ref="recordTable"
-            highlight-current-row
-            border
-            :icore-filter-flag="icoreFilterFlag"
-            :height="tableHeight"
-            :data="recordDataList"
-          >
-            <el-table-column
-              type="index"
-              label="NO"
-              align="center"
-            ></el-table-column>
-            <!-- <el-table-column type="selection" align="center"></el-table-column> -->
-            <el-table-column
-              sortable
-              :show-overflow-tooltip="true"
-              min-width="80px"
-              prop="fileDate"
-              label="文件日期"
-              align="center"
-            ></el-table-column>
-            <el-table-column
-              sortable
-              :show-overflow-tooltip="true"
-              min-width="80px"
-              prop="fileName"
-              label="文件名称"
-              align="center"
-            ></el-table-column>
-            <el-table-column
-              sortable
-              :show-overflow-tooltip="true"
-              min-width="80px"
-              prop="filePath01"
-              label="附件"
-              align="center"
-            ></el-table-column>
-            <el-table-column
-              sortable
-              :show-overflow-tooltip="true"
-              min-width="80px"
-              prop="filePath01"
-              label="下载/预览"
-              align="center"
-            ><template slot-scope="scope">
-              <el-tooltip
-                content="下载"
-                placement="bottom"
-                effect="light"
-              >
-                <el-button
-                  :disabled="!scope.row.filePath01"
-                  type="goon"
-                  size="mini"
-                  icon="el-icon-download"
-                  circle
+        <div class="common-title-name section_top">
+          <img style="width: 25px; height: 25px" src="../../../..//assets/img/imgScreen/logo.png" />
+          <span style="font-size: 18px">记录信息</span>
+        </div>
+        <el-table v-loading="recordDataLoading" ref="recordTable" highlight-current-row border
+          :icore-filter-flag="icoreFilterFlag" :height="tableHeight" :data="recordDataList">
+          <el-table-column type="index" label="NO" align="center"></el-table-column>
+          <!-- <el-table-column type="selection" align="center"></el-table-column> -->
+          <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="fileDate" label="文件日期"
+            align="center"></el-table-column>
+          <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="fileName" label="文件名称"
+            align="center"></el-table-column>
+          <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="filePath01" label="附件"
+            align="center"></el-table-column>
+          <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="filePath" label="模板文件"
+            align="center"><template slot-scope="scope">
+              <el-tooltip content="下载" placement="bottom" effect="light">
+                <el-button :disabled="!scope.row.memo3" type="goon" size="mini" icon="el-icon-download" circle @click="
+                  imgPreView(
+                    scope.row,
+                    scope.row.memo3
+                  )
+                  ">
+                </el-button>
+              </el-tooltip>
+              <el-tooltip content="预览" placement="bottom" effect="light">
+                <el-button :disabled='!scope.row.memo3' type="warning" size="mini" icon="el-icon-view" circle
+                  @click="imgPreViewY(scope.row, scope.row.memo3)">
+                </el-button>
+              </el-tooltip>
+            </template>
+          </el-table-column>
+          <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="filePath01" label="内容文件"
+            align="center"><template slot-scope="scope">
+              <el-tooltip content="下载" placement="bottom" effect="light">
+                <el-button :disabled="!scope.row.filePath01" type="goon" size="mini" icon="el-icon-download" circle
                   @click="
-                      imgPreView(
-                        scope.row,
-                        scope.row.filePath01
-                      )
-                    "
-                >
+                    imgPreView(
+                      scope.row,
+                      scope.row.filePath01
+                    )
+                    ">
+                </el-button>
+              </el-tooltip>
+              <el-tooltip content="预览" placement="bottom" effect="light">
+                <el-button :disabled='!scope.row.filePath01' type="warning" size="mini" icon="el-icon-view" circle
+                  @click="imgPreViewY(scope.row, scope.row.filePath01)">
                 </el-button>
               </el-tooltip>
-              <el-tooltip
-                            content="预览"
-                            placement="bottom"
-                            effect="light"
-                        >
-                            <el-button
-                                :disabled='!scope.row.filePath01'
-                                type="warning"
-                                size="mini"
-                                icon="el-icon-view"
-                                circle
-                                @click="imgPreViewY(scope.row,scope.row.filePath01)"
-                            >
-                            </el-button>
-                        </el-tooltip>
             </template>
-            </el-table-column>
-            <el-table-column
-              sortable
-              :show-overflow-tooltip="true"
-              min-width="80px"
-              prop="memo"
-              label="备注"
-              align="center"
-            ></el-table-column>
-            <el-table-column
-              sortable
-              :show-overflow-tooltip="true"
-              min-width="80px"
-              prop="createTime"
-              label="创建日期"
-              align="center"
-            ></el-table-column>
-            <el-table-column
-              sortable
-              :show-overflow-tooltip="true"
-              min-width="80px"
-              prop="createMan"
-              label="创建人"
-              align="center"
-            ></el-table-column>
-            <el-table-column
-              sortable
-              :show-overflow-tooltip="true"
-              min-width="80px"
-              prop="updateTime"
-              label="修改时间"
-              align="center"
-            ></el-table-column>
-            <el-table-column
-              sortable
-              :show-overflow-tooltip="true"
-              min-width="80px"
-              prop="updateMan"
-              label="修改人"
-              align="center"
-            ></el-table-column>
-          </el-table>
-          <div class="common-foot-style">
-            <el-pagination
-              v-loading="recordDataLoading"
-              @size-change="recordPageSizeChange"
-              @current-change="recordPageCurrentChange"
-              :current-page="recordPage.pageIndex"
-              :page-sizes="[10, 20, 50, 100, 200]"
-              :page-size="recordPage.pageSize"
-              layout="total, sizes, prev, pager, next, jumper"
-              :total="recordPage.tableTotal"
-              background
-            >
-            </el-pagination>
-          </div>
+          </el-table-column>
+          <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="memo" label="备注"
+            align="center"></el-table-column>
+          <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="createTime" label="创建日期"
+            align="center"></el-table-column>
+          <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="createMan" label="创建人"
+            align="center"></el-table-column>
+          <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="updateTime" label="修改时间"
+            align="center"></el-table-column>
+          <el-table-column sortable :show-overflow-tooltip="true" min-width="80px" prop="updateMan" label="修改人"
+            align="center"></el-table-column>
+        </el-table>
+        <div class="common-foot-style">
+          <el-pagination v-loading="recordDataLoading" @size-change="recordPageSizeChange"
+            @current-change="recordPageCurrentChange" :current-page="recordPage.pageIndex"
+            :page-sizes="[10, 20, 50, 100, 200]" :page-size="recordPage.pageSize"
+            layout="total, sizes, prev, pager, next, jumper" :total="recordPage.tableTotal" background>
+          </el-pagination>
+        </div>
       </el-col>
     </el-row>
     <div id="docx">
       <div ref="file"></div>
     </div>
-    <div id = "xlsx">
-        <el-tabs v-model="activeName" v-if="DialogVisible" type="border-card">
-            <el-tab-pane v-for="(item,index) in excelSheet" :key="index" :label="item.name" :name="item.name">
-                <div class="table" v-html="item.innerHTML"></div>
-            </el-tab-pane>
-        </el-tabs>
+    <div id="xlsx">
+      <el-tabs v-model="activeName" v-if="DialogVisible" type="border-card">
+        <el-tab-pane v-for="(item, index) in excelSheet" :key="index" :label="item.name" :name="item.name">
+          <div class="table" v-html="item.innerHTML"></div>
+        </el-tab-pane>
+      </el-tabs>
     </div>
   </div>
 </template>
@@ -275,51 +162,51 @@ import pdf from 'vue-pdf'
 import XLSX from 'xlsx';
 let docx = require("docx-preview");
 export default {
-  data () {
+  data() {
     return {
-        searchForm:{
-            fileName:'',
-            time:[]
-        },
-        defaultProps: {
-            children: 'children',
-            label: 'className'
-        },
-        srcUrl: '',
-        pdfPages: null,
-        menuTree: [], // 分类数据
-        treeLoading: false,
-        expandList: [],
-        expandedKeys: [],
-        icoreFilterFlag: true,
-        treeHeight: 500,
-        // tableau: '',
-        DialogVisible: false,
-        excelSheet: [],
-        activeName: '',
+      searchForm: {
+        fileName: '',
+        time: []
+      },
+      defaultProps: {
+        children: 'children',
+        label: 'className'
+      },
+      srcUrl: '',
+      pdfPages: null,
+      menuTree: [], // 分类数据
+      treeLoading: false,
+      expandList: [],
+      expandedKeys: [],
+      icoreFilterFlag: true,
+      treeHeight: 500,
+      // tableau: '',
+      DialogVisible: false,
+      excelSheet: [],
+      activeName: '',
 
-        recordDataLoading: false,
-        recordDataList: [],
-        recordPage: {
-            pageIndex: 1,
-            pageSize: 50,
-            tableTotal: 0
-        },
-        imgPreViews:'',
-        action_prod: window.location.protocol + '//' + window.location.host,
+      recordDataLoading: false,
+      recordDataList: [],
+      recordPage: {
+        pageIndex: 1,
+        pageSize: 50,
+        tableTotal: 0
+      },
+      imgPreViews: '',
+      action_prod: window.location.protocol + '//' + window.location.host,
     }
   },
-  created () {
-       this.treeHeight = window.innerHeight - 200
-       this.tableHeight = window.innerHeight - 110
-       this.searchForm.time = [this.getYNM(new Date()), this.getYNM(new Date())]
-       this.init()
+  created() {
+    this.treeHeight = window.innerHeight - 200
+    this.tableHeight = window.innerHeight - 110
+    this.searchForm.time = [this.getYNM(new Date()), this.getYNM(new Date())]
+    this.init()
   },
-  mounted () {
-      
+  mounted() {
+
   },
   methods: {
-    getYNM (date) {
+    getYNM(date) {
       let year = date.getFullYear().toString();
       let month = date.getMonth() + 1;
       let day = date.getDate();
@@ -328,11 +215,11 @@ export default {
       return `${year}-${month}-${day}`;
     },
     // 初始化节点
-    init () {
+    init() {
       this.searchTypeData()
     },
     // 重新查询节点数据
-    async searchTypeData () {
+    async searchTypeData() {
       let param = {
         pageNum: '1',
         pageSize: 10000,
@@ -342,13 +229,13 @@ export default {
       }
       const data = await this.axios.post(`pass/baseManagement/v1/limsisoclasss/queryLimsClassPage`, {}, { individualType: 'json' })
       const list = this.getTypeList(data.data.list, { id: 'classNo', parentId: 'parentNo' })
-      if(data.data.list.length > 0){
+      if (data.data.list.length > 0) {
         this.recordDataSearch(data.data.list[0].classNo);
       }
       this.menuTree = [...list]
     },
     // 文件记录信息查询
-    async recordDataSearch (classNo, flag = true) {
+    async recordDataSearch(classNo, flag = true) {
       if (flag) {
         this.recordPage.pageIndex = 1
       }
@@ -363,10 +250,10 @@ export default {
       }
       let param = {
         ...this.recordPage,
-        classNo:classNo,
-        startTime:startTime,
-        endTime:endTime,
-        fileName:this.searchForm.fileName,
+        classNo: classNo,
+        startTime: startTime,
+        endTime: endTime,
+        fileName: this.searchForm.fileName,
         tenantNo: '2'
       }
       this.recordDataLoading = true;
@@ -381,19 +268,19 @@ export default {
       }
     },
     // 数展开
-    expandNode (data, node, item) {
+    expandNode(data, node, item) {
       if (this.expandList.indexOf(data.id) === -1) {
         this.expandList.push(data.id)
       }
     },
-    expandCollapse (data, node, item) {
+    expandCollapse(data, node, item) {
       let index = this.expandList.indexOf(data.id)
       if (index !== -1) {
         this.expandList.splice(index, 1)
       }
     },
     //  点击树事件
-    nodeClick (item, el) {
+    nodeClick(item, el) {
       //  点击时为编辑状态
       this.operateStatus = 'edit';
       // 记录点击节点id
@@ -401,7 +288,7 @@ export default {
       // 查询该节点下方的子节点
       this.recordDataSearch(item.classNo)
     },
-    treeObj (o) {
+    treeObj(o) {
       let obj = {};
 
       for (let key in o) {
@@ -415,7 +302,7 @@ export default {
       return obj;
     },
     // 迭代将分类数据组成树形结构
-    getTypeList (list, attributes) {
+    getTypeList(list, attributes) {
       let that = this
       let paramList = [...list]
       let topList = []
@@ -426,18 +313,18 @@ export default {
           i--
         }
       }
-      for(let i = 0; i < topList.length -1;i++){
-        for(let j = 0;j < topList.length - i-1;j++){
-          if(topList[j].dspOrder > topList[j+1].dspOrder){
-            let arr = topList[j+1];
-            topList[j+1] = topList[j];
+      for (let i = 0; i < topList.length - 1; i++) {
+        for (let j = 0; j < topList.length - i - 1; j++) {
+          if (topList[j].dspOrder > topList[j + 1].dspOrder) {
+            let arr = topList[j + 1];
+            topList[j + 1] = topList[j];
             topList[j] = arr;
           }
         }
       }
       run(topList);
       //找寻子树
-      function run (chiArr) {
+      function run(chiArr) {
         if (paramList.length !== 0) {
           for (let i = 0; i < chiArr.length; i++) {
             for (let j = 0; j < paramList.length; j++) {
@@ -461,8 +348,8 @@ export default {
       })
       return topList;
     },
-    imgPreView(row,fileName){
-      this.axios.get('pass/baseManagement/v1/file/download/' + fileName,{responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
+    imgPreView(row, fileName) {
+      this.axios.get('pass/baseManagement/v1/file/download/' + fileName, { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
         let blob = new Blob([res]);
         let elink = document.createElement('a');
         elink.download = fileName;
@@ -477,64 +364,64 @@ export default {
         return this.$message.error(e.message)
       })
     },
-    imgPreViewY(row,fileName){
-      let aaa = fileName.substr(fileName.indexOf(".")+1);
-      if(aaa == "docx"){
-        this.axios.get('pass/baseManagement/v1/file/download/' + fileName,{responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
+    imgPreViewY(row, fileName) {
+      let aaa = fileName.substr(fileName.indexOf(".") + 1);
+      if (aaa == "docx") {
+        this.axios.get('pass/baseManagement/v1/file/download/' + fileName, { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
           this.showFlag(true);
-          docx.renderAsync(res,this.$refs.file)
+          docx.renderAsync(res, this.$refs.file)
         }).catch(e => {
           return this.$message.error(e.message)
         })
-      }else if(aaa == "pdf"){
-        this.axios.get('pass/baseManagement/v1/file/download/' + fileName,{responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
+      } else if (aaa == "pdf") {
+        this.axios.get('pass/baseManagement/v1/file/download/' + fileName, { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
           const binaryData = [];
           binaryData.push(res);
-          this.srcUrl = window.URL.createObjectURL(new Blob(binaryData,{ type: 'application/pdf' }))
+          this.srcUrl = window.URL.createObjectURL(new Blob(binaryData, { type: 'application/pdf' }))
           window.open(this.srcUrl);
         }).catch(e => {
           return this.$message.error(e.message)
         })
-      }else if(aaa == "xlsx"){
-        this.axios.get('pass/baseManagement/v1/file/download/' + fileName,{responseType: 'arraybuffer'},{headers: {'content-type': 'application/x-www-form-urlencoded'}}).then(res => {
+      } else if (aaa == "xlsx") {
+        this.axios.get('pass/baseManagement/v1/file/download/' + fileName, { responseType: 'arraybuffer' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
           this.excelSheet = [];
           this.showFlag(false);
-          let workbook = XLSX.read(new Uint8Array(res), {type:"array"});
+          let workbook = XLSX.read(new Uint8Array(res), { type: "array" });
           this.tableToHtml(workbook);
         }).catch(e => {
           return this.$message.error(e.message)
         })
-      }else{
-        docx.renderAsync(new Blob(),this.$refs.file)
+      } else {
+        docx.renderAsync(new Blob(), this.$refs.file)
         return this.$message.error("不支持这个类型的文件展示!")
       }
     },
-    tableToHtml(workbook){
+    tableToHtml(workbook) {
       const sheetList = workbook.SheetNames.filter(v => v.indexOf('数据源') === -1);
       this.activeName = sheetList[0];
       sheetList.forEach(sheet => {
         const worksheet = workbook.Sheets[sheet];
         if (worksheet) {
-            const innerHTML = XLSX.utils.sheet_to_html(worksheet);
-            this.excelSheet.push({
-              name: sheet,
-              innerHTML: innerHTML
-            });
-          } else {
-            this.excelSheet.push({
-              name: sheet,
-              innerHTML: '暂无数据',
-            });
-          }
-        });
-        this.DialogVisible = true;
+          const innerHTML = XLSX.utils.sheet_to_html(worksheet);
+          this.excelSheet.push({
+            name: sheet,
+            innerHTML: innerHTML
+          });
+        } else {
+          this.excelSheet.push({
+            name: sheet,
+            innerHTML: '暂无数据',
+          });
+        }
+      });
+      this.DialogVisible = true;
     },
     //查询
-    fileDataSearch(){
+    fileDataSearch() {
       this.searchTypeData();
     },
     // 上下文菜单命令选择
-    handleCommand (command) {
+    handleCommand(command) {
       let that = this,
         str = command.str,
         node = command.node,
@@ -552,20 +439,20 @@ export default {
           break;
       }
     },
-    showFlag(docx){
-      if(docx){
+    showFlag(docx) {
+      if (docx) {
         document.getElementById("docx").style.display = "block";
         document.getElementById("xlsx").style.display = "none";
-      }else{
+      } else {
         document.getElementById("docx").style.display = "none";
         document.getElementById("xlsx").style.display = "block";
       }
     },
-    recordPageSizeChange (size) {
+    recordPageSizeChange(size) {
       this.recordPage.pageSize = size;
       this.recordDataSearch(this.selectedNode.classNo);
     },
-    recordPageCurrentChange (index) {
+    recordPageCurrentChange(index) {
       this.recordPage.pageIndex = index;
       this.recordDataSearch(this.selectedNode.classNo, false);
     }
@@ -636,4 +523,4 @@ export default {
 .file_manage_wrap .el-input__inner {
   padding: 2px 7px !important;
 }
-</style>
+</style>

Some files were not shown because too many files changed in this diff