| | |
| | | import {ElMessage} from "element-plus"; |
| | | import useUserInfoStore from "@/stores/userInfo"; |
| | | import {Bottom, Burger, Food} from "@element-plus/icons-vue"; |
| | | import ImageSizeEditor from '@/components/ImageSizeEditor.vue' |
| | | const company = companyInfo() |
| | | const userStore = useUserInfoStore() |
| | | const username = userStore.user.userName |
| | | let dialogVisible = ref(false) |
| | | |
| | | |
| | | const imgSizeMap = ref({}) |
| | | let props = defineProps({ |
| | | orderId:null, |
| | | dataList:null, |
| | | }) |
| | | let productId=ref({ |
| | | |
| | |
| | | perimeter: 0, |
| | | weight:0 |
| | | }) |
| | | const picture = ref([]) |
| | | const dataFile = ref({ |
| | | printList: [] |
| | | }) |
| | | dataFile.value.printList = JSON.parse(props.dataList) |
| | | |
| | | const getData = () => { |
| | | request.get(`/order/printOrderProductDetail/${props.orderId}/${selectedValues.value}`).then(res => { |
| | | data.value= res.data |
| | |
| | | grossNum.value.perimeter = parseFloat(grossNum.value.perimeter.toFixed(3)) |
| | | grossNum.value.weight = parseFloat(grossNum.value.weight.toFixed(2)) |
| | | |
| | | }) |
| | | |
| | | //订单序号dwg图片查询 |
| | | request.post("/orderFile/getOrderFilePicture", dataFile.value.printList).then((res) => { |
| | | picture.value = res.data |
| | | }) |
| | | } |
| | | |
| | |
| | | defineExpose({ |
| | | printSheet |
| | | }); |
| | | |
| | | // 原始图片数组 picture |
| | | const pictureMap = computed(() => { |
| | | return picture.value |
| | | }) |
| | | |
| | | |
| | | </script> |
| | | |
| | | |
| | |
| | | <td style="font-size: 20px;font-weight: bold;">{{items.quantity}}</td> |
| | | <td style="font-size: 20px;font-weight: bold;">{{items.perimeter}}</td> |
| | | <td style="font-size: 20px;font-weight: bold;">{{items.grossArea.toFixed(2)}}</td> |
| | | <td colspan="2">{{items.processingNote}} |
| | | <td colspan="2" style="text-align: left;border:none;font-weight: bold;font-size: 17px;">{{items.processingNote}} |
| | | {{items.remarks==null?'':'/'}} |
| | | {{items.remarks}}</td> |
| | | </tr> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-dialog> |
| | | |
| | | <ImageSizeEditor |
| | | :images="pictureMap" |
| | | v-model:sizeMap="imgSizeMap" |
| | | key-field="orderNumber" |
| | | src-field="imageBase64" |
| | | :default-width="300" |
| | | :default-height="300" |
| | | /> |
| | | </div> |
| | | |
| | | |