wang
2024-04-17 ec07571bee22583e40138a3bf665a3eb8cf850ef
UI-Project/src/views/Returns/returns.vue
@@ -16,6 +16,22 @@
import { ref, onMounted } from "vue";
// import http from "@/http/index";
const tableData = ref([])
let app = ref({
    data(){
        return {
          enableState:'',
        }
    },
  })
// const tableData = ref({
//   workstationId:'',
//   patternWidth :'',
//   patternHeigth :'',
//   filmsId :'',
//   number :'',
//   patternThickness :'',
//   enableState:'',
// })
// request.post(`/LoadGlass/list`).then((res) => {
//  if (res.code == 200) {
//   console.log(res.data);
@@ -37,7 +53,10 @@
  request
    .get("/LoadGlass/list")
    .then((res: any) => {
      if (res.code == 200) {
      tableData.value = res.data;
      // let self = this
      }
    })
    .catch((err: any) => {});
});
@@ -84,7 +103,6 @@
    }
  }
}
const options = [
  {
    value: 'Option1',
@@ -122,20 +140,20 @@
//     thick: '191',
//   }
// ]
const tableDataa = [
  {
    long: '1005',
    wide: '183.6',
    thick: '1991',
    station: '1'
  },
  {
    long: '105',
    wide: '183',
    thick: '191',
    station: '1'
  }
]
// const tableDataa = [
//   {
//     long: '1005',
//     wide: '183.6',
//     thick: '1991',
//     station: '1'
//   },
//   {
//     long: '105',
//     wide: '183',
//     thick: '191',
//     station: '1'
//   }
// ]
const open = () => {
  ElMessageBox.confirm(
    '是否删除该条信息?',
@@ -230,20 +248,6 @@
    <el-button style="margin-top: 5px;margin-left: 20px;"  id="searchButton" type="danger" >停止任务</el-button>
    <el-card style="flex: 1;margin-left: 10px;margin-top: 20px;" v-loading="loading">
      <div style="width: 98%; height: calc(100% - 35px); overflow-y: auto">
        <!-- <el-table height="100%" ref="table" :data="tableData" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
          <el-table-column prop="id" align="center" label="工程号" min-width="80" />
          <el-table-column prop="long" align="center" label="原片宽" min-width="120" />
          <el-table-column prop="wide" align="center" label="原片长" min-width="120" />
          <el-table-column prop="thick" align="center" label="膜系" min-width="120" />
          <el-table-column prop="thick" align="center" label="数量" min-width="120" />
          <el-table-column
            align="center"
            label="状态"
            min-width="80"
          >
          <el-tag type="success">就绪</el-tag>
          </el-table-column>
        </el-table> -->
    <el-table
    height="100%"
     ref="table"
@@ -263,8 +267,8 @@
            min-width="80"
            prop="enableState"
          >
          <el-tag type="success">就绪</el-tag>
          <!-- <el-tag type="danger" v-if="row.enableState==2">未就绪</el-tag> -->
          <el-tag type="success" v-if=" tableData.enableState == '1'">就绪</el-tag>
          <!-- <el-tag type="danger" v-if="this.enableState === '2'">未就绪</el-tag> -->
          </el-table-column>
    </el-table>
      </div>
@@ -283,7 +287,6 @@
    <div style="margin-left: 50px;margin-bottom: 10px;">
      <el-form-item label="工程号:" :required="true">
        <el-select
          v-model="form.workstationId"
          clearable
          placeholder="请选择工程"
          style="width: 300px"