clll
2023-12-15 68e28b5e14ba2de103921aa1ab10f6df7b445ae9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<script lang="ts" setup>
import { ref } from 'vue'
import { ElTable } from 'element-plus'
import {ArrowLeftBold} from "@element-plus/icons-vue";
import request from "@/utils/request";
import deepClone from "@/utils/deepClone";
import {ElMessage} from "element-plus";
import {useRouter} from "vue-router";
import  GlassType from '@/components/basic/product/GlassType.vue'
 
interface User {
  //销售单号
  selection:string
  //产品编号
  productID: string
  //产品名称
  productName: string
  //总数量
  total: string
  //总面积
  totalArea:string
  //周长
  perimeter:string
}
 
const multipleTableRef = ref<InstanceType<typeof ElTable>>()
const multipleSelection = ref<User[]>([])
 
const handleSelectionChange = (val: User[]) => {
  multipleSelection.value = val
}
const router = useRouter()
let flag = $ref(true)
function intoCreateProduct(){
  if(flag){
    router.push('/main/workOrder/SelectAddWorkOrder')
  }else {
    router.push('/main/workOrder/SelectAddWorkOrder')
  }
  flag=!flag
}
 
const tableData: User[] = [
  {
    selection: 'NG231201',
    productID: '9001010208000021',
    productName: '6mm超白UD60平钢(外)+12A(结)+6mm超白平钢(内)',
    total:"123",
    totalArea:"1233.12",
    perimeter:"133"
  },
  {
    selection: 'NG231201',
    productID: '9001010203000008',
    productName: '6mm超白LYDE-80平钢(外)+12Ar(结)+6mm超白平钢(内)',
    total:"123",
    totalArea:"1233.12",
    perimeter:"133"
  },
]
</script>
 
<template>
<div >
  <div id="headerButton">
 
    <el-button type="primary">保存</el-button>
  </div>
  <el-table
      ref="multipleTableRef"
      :data="tableData"
      style="width: 100%"
      @selection-change="handleSelectionChange"
  >
    <el-table-column type="selection" width="55" />
    <el-table-column label="销售单号" width="120">
      <template #default="scope">{{ scope.row.selection }}</template>
    </el-table-column>
    <el-table-column property="productID" label="产品编号"  :show-overflow-tooltip='true'/>
    <el-table-column property="productName" label="产品名称" width="280" show-overflow-tooltip :show-overflow-tooltip='true'/>
    <el-table-column property="total" label="总数量"  />
    <el-table-column property="totalArea" label="总面积" />
    <el-table-column property="perimeter" label="周长"  />
  </el-table>
</div>
</template>
 
<style scoped>
#headerButton{
  width: 200px;
 float: right;
}
</style>