Browse Source

工单超节损统计参数添加

WizDax 1 year ago
parent
commit
21d20c8bc7

+ 8 - 1
src/view/performance/12-orderAccounting/componets/gdcjstj.vue

@@ -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)

+ 1 - 2
src/view/performance/12-orderAccounting/index.vue

@@ -158,7 +158,7 @@
               title="工单超节损统计"
               destroy-on-close
             >
-              <Gdcjstj :gdbh="gdbh" />
+              <Gdcjstj :gdbh="gdbh" :yjno ="yjno" />
             </el-dialog>
 
             <!-- 修正工单印件质量考核设置 -->
@@ -666,7 +666,6 @@ const exportExcel = () => {
 }
 //关闭窗口
 const exitXzgdtl = (data) => {
-  console.log(data);
   dialogXzgdtl.value = data;
 };
 </script>