自动化立体仓库 - WMS系统
#
zjj
2024-06-08 54f1d5ed531f609cb3fdbba47cd3a88c0a50d4e2
src/main/webapp/views/deviceOperate/jarOperate.html
@@ -39,6 +39,25 @@
               <div slot="header" class="clearfix">
                  <span>硫化库位</span>
               </div>
               <div v-if="currentIndex == null">
                  <el-empty description="请选择设备"></el-empty>
               </div>
               <div v-else>
                  <el-table border :data="item" highlight-current-row max-height="350" style="width: 100%">
                     <el-table-column property="jarId" label="硫化罐">
                     </el-table-column>
                     <el-table-column property="wrkNo" label="工作号">
                     </el-table-column>
                     <el-table-column property="jarMode" label="模式">
                     </el-table-column>
                     <el-table-column property="region" label="区域">
                     </el-table-column>
                     <el-table-column property="jarCode" label="代号">
                     </el-table-column>
                     <el-table-column property="jarErr" label="异常代码">
                     </el-table-column>
                  </el-table>
               </div>
            </el-card>
         </div>
@@ -53,25 +72,15 @@
                  </div>
                  <div v-else>
                     <el-descriptions :title="currentTitle" direction="vertical" :column="4" border>
                        <el-descriptions-item label="RGV">{{ tableData[currentIndex].rgvNo }}
                        </el-descriptions-item>
                        <el-descriptions-item label="工作号">
                           {{ tableData[currentIndex].workNo1 }}
                        <el-descriptions-item label="硫化罐">{{ tableData[currentIndex].jarNo }}
                        </el-descriptions-item>
                        <el-descriptions-item label="模式">
                           <el-tag>{{ tableData[currentIndex].statusType }}</el-tag>
                        </el-descriptions-item>
                        <el-descriptions-item label="任务状态">
                              <el-tag>{{ tableData[currentIndex].status}}</el-tag>
                           <el-tag>{{ tableData[currentIndex].jarMode }}</el-tag>
                        </el-descriptions-item>
                        <el-descriptions-item label="设备状态">
                           <el-tag>{{ tableData[currentIndex].walkPos }}</el-tag>
                           <el-tag>{{ tableData[currentIndex].jarStatus }}</el-tag>
                        </el-descriptions-item>
                        <el-descriptions-item label="故障代码">{{ tableData[currentIndex].warnCode }}
                        </el-descriptions-item>
                        <el-descriptions-item label="故障描述">{{ tableData[currentIndex].alarm }}
                        <el-descriptions-item label="故障代码">{{ tableData[currentIndex].jarErr }}
                        </el-descriptions-item>
<!--                        <el-descriptions-item label="源站">{{ tableData[currentIndex].staNo }}-->
<!--                        </el-descriptions-item>-->
@@ -134,7 +143,8 @@
               }
            ],
            demo: 'X',
            rgvMode: 0
            rgvMode: 0,
            item: []
         },
         created() {
            this.init()
@@ -182,17 +192,32 @@
               setInterval(() => {
                  this.getTableData()
                  this.demoStatus()
                  // this.demoStatus()
               }, 1000)
            },
            handleRowClick(row, col, event) {
               const index = this.tableData.indexOf(row)
               this.currentRow = row;
               this.currentIndex = index
               this.currentTitle = row.jarNo + "号硫化罐"
               this.formParam.rgvNo = row.rgvNo
               this.enableIn = row.inEnable == "Y" ? true : false
               this.enableOut = row.outEnable == "Y" ? true : false
               var that = this
               const index = that.tableData.indexOf(row)
               that.currentRow = row;
               that.currentIndex = index
               that.currentTitle = row.jarNo + "号硫化罐"
               that.formParam.rgvNo = row.rgvNo
               that.enableIn = row.inEnable == "Y" ? true : false
               that.enableOut = row.outEnable == "Y" ? true : false
               $.ajax({
                  url: baseUrl + "/basJarMast/JatId/auth",
                  headers: {
                     'token': localStorage.getItem('token')
                  },
                  data: {
                     id: row.jarNo
                  },
                  success: function (res) {
                     that.item = res.data
                     console.log(that.item)
                  }
               });
            },
            getTableData() {
               let that = this;