feat: 页面修改
							parent
							
								
									e2de060da8
								
							
						
					
					
						commit
						d8b9851d91
					
				@ -0,0 +1,121 @@
 | 
				
			|||||||
 | 
					<template>
 | 
				
			||||||
 | 
					  <div>
 | 
				
			||||||
 | 
					    <div style=" display: flex;justify-content: center;">
 | 
				
			||||||
 | 
					      <h2 style="color: #0aa6e0">欢迎使用现场作业工作台</h2>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					    <el-divider/>
 | 
				
			||||||
 | 
					    <!-- 分割线 -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <el-row :gutter="8">
 | 
				
			||||||
 | 
					      <el-col v-for="(info, index)  in stationList"  :key="index" :xs="12" :sm="8" :md="8" :lg="6">
 | 
				
			||||||
 | 
					        <el-card :body-style="{margin:'20px'}"
 | 
				
			||||||
 | 
					                 style="margin:20px 20px 20px 20px;height: 200px;background-color: #e1f3fb;border-radius: 12px; position: relative;"
 | 
				
			||||||
 | 
					        >
 | 
				
			||||||
 | 
					          <template #header>
 | 
				
			||||||
 | 
					            <el-form class="query-form" size="mini" style="height: 200px;" >
 | 
				
			||||||
 | 
					              <el-form-item class="query-form-item" label-width="28%" label="工位名称:">
 | 
				
			||||||
 | 
					                <el-input
 | 
				
			||||||
 | 
					                  v-model="info.workplaceName"
 | 
				
			||||||
 | 
					                  placeholder=""
 | 
				
			||||||
 | 
					                  clearable
 | 
				
			||||||
 | 
					                  class="custom-disabled-input"
 | 
				
			||||||
 | 
					                  disabled
 | 
				
			||||||
 | 
					                  style="width: 80%;"
 | 
				
			||||||
 | 
					                >
 | 
				
			||||||
 | 
					                </el-input>
 | 
				
			||||||
 | 
					              </el-form-item>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					              <el-form-item class="query-form-item" label-width="28%" label="工位用户:">
 | 
				
			||||||
 | 
					                <el-input
 | 
				
			||||||
 | 
					                  v-model="info.employeeName"
 | 
				
			||||||
 | 
					                  placeholder=""
 | 
				
			||||||
 | 
					                  clearable
 | 
				
			||||||
 | 
					                  style="width: 80%;"
 | 
				
			||||||
 | 
					                  class="custom-disabled-input"
 | 
				
			||||||
 | 
					                  disabled
 | 
				
			||||||
 | 
					                >
 | 
				
			||||||
 | 
					                </el-input>
 | 
				
			||||||
 | 
					              </el-form-item>
 | 
				
			||||||
 | 
					              <el-form-item class="query-form-item" label-width="28%" label="工位描述:">
 | 
				
			||||||
 | 
					                <el-input
 | 
				
			||||||
 | 
					                  v-model="info.remake"
 | 
				
			||||||
 | 
					                  placeholder=""
 | 
				
			||||||
 | 
					                  clearable
 | 
				
			||||||
 | 
					                  style="width: 80%;"
 | 
				
			||||||
 | 
					                  class="custom-disabled-input"
 | 
				
			||||||
 | 
					                  disabled
 | 
				
			||||||
 | 
					                >
 | 
				
			||||||
 | 
					                </el-input>
 | 
				
			||||||
 | 
					              </el-form-item>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					              <el-form-item label-width="28%" >
 | 
				
			||||||
 | 
					                <el-button-group style=" float: right;">
 | 
				
			||||||
 | 
					                  <el-button type="primary" @click="handleClick(index)" style="margin-left: 10px ;"
 | 
				
			||||||
 | 
					                             icon="el-icon-thumb"
 | 
				
			||||||
 | 
					                  >处理单据
 | 
				
			||||||
 | 
					                  </el-button>
 | 
				
			||||||
 | 
					                </el-button-group>
 | 
				
			||||||
 | 
					              </el-form-item>
 | 
				
			||||||
 | 
					            </el-form>
 | 
				
			||||||
 | 
					          </template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        </el-card>
 | 
				
			||||||
 | 
					      </el-col>
 | 
				
			||||||
 | 
					    </el-row>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					</template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<script>
 | 
				
			||||||
 | 
					import {listPage} from "@/api/basic/sysWorkplaceManage.js";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export default {
 | 
				
			||||||
 | 
					  name: 'fieldOperation',
 | 
				
			||||||
 | 
					  data() {
 | 
				
			||||||
 | 
					    return {
 | 
				
			||||||
 | 
					      // 假设这是你的卡片数据
 | 
				
			||||||
 | 
					      stationList: []
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  created() {
 | 
				
			||||||
 | 
					    //获取工位list
 | 
				
			||||||
 | 
					    this.getStationList()
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  methods: {
 | 
				
			||||||
 | 
					    handleClick(index) {
 | 
				
			||||||
 | 
					      let url = window.location.origin + `#/tagCodeBlank?workplaceId=` + this.stationList[index].workplaceId
 | 
				
			||||||
 | 
					      // this.$router.push( workplaceId)
 | 
				
			||||||
 | 
					      window.open(url, '_blank');
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    getStationList() {
 | 
				
			||||||
 | 
					      let param = {
 | 
				
			||||||
 | 
					        status: 1,
 | 
				
			||||||
 | 
					        invCode: this.$store.getters.locInvCode,
 | 
				
			||||||
 | 
					        page: 1,
 | 
				
			||||||
 | 
					        limit: 200
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      listPage(param).then(res => {
 | 
				
			||||||
 | 
					        this.stationList = res.data?.list || []
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<style >
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.custom-disabled-input input.el-input__inner:disabled {
 | 
				
			||||||
 | 
					  color: #000000; /* 修改为需要的颜色 */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					/* 添加样式来定位左上角的删除按钮 */
 | 
				
			||||||
 | 
					.close-button {
 | 
				
			||||||
 | 
					  position: absolute;
 | 
				
			||||||
 | 
					  top: 10px; /* 你可以根据需要调整这个值 */
 | 
				
			||||||
 | 
					  right: 10px; /* 你可以根据需要调整这个值 */
 | 
				
			||||||
 | 
					  z-index: 1; /* 确保按钮在卡片内容之上 */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					</style>
 | 
				
			||||||
					Loading…
					
					
				
		Reference in New Issue