|
|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<div style="width: 30vw; height: 50vh">
|
|
|
<el-input v-model="input" />
|
|
|
+ <el-input v-model="yjno" />
|
|
|
<br>
|
|
|
<br>
|
|
|
<el-button
|
|
|
@@ -42,10 +43,14 @@ const props = defineProps({
|
|
|
gdbh: {
|
|
|
type: String,
|
|
|
default: '',
|
|
|
+ },
|
|
|
+ yjno:{
|
|
|
+ type:String,
|
|
|
+ default: '',
|
|
|
}
|
|
|
})
|
|
|
const input = ref(props['gdbh'])
|
|
|
-
|
|
|
+const yjno = ref(props['yjno'])
|
|
|
// 按工序打印
|
|
|
const handlePrint1 = async() => {
|
|
|
// 引入后初始化
|
|
|
@@ -54,6 +59,7 @@ const handlePrint1 = async() => {
|
|
|
const hiprintTemplate = new hiprint.PrintTemplate({ template })
|
|
|
const params = {
|
|
|
order: input.value,
|
|
|
+ yjno:yjno.value,
|
|
|
type: '1',
|
|
|
}
|
|
|
const res = await getOrderSuperLossCount(params)
|
|
|
@@ -122,6 +128,7 @@ const handlePrint2 = async() => {
|
|
|
const hiprintTemplate = new hiprint.PrintTemplate({ template })
|
|
|
const params = {
|
|
|
order: input.value,
|
|
|
+ yjno:yjno.value,
|
|
|
type: '2',
|
|
|
}
|
|
|
const res = await getOrderSuperLossCount(params)
|