zck 1 жил өмнө
parent
commit
f532c28f86

+ 15 - 2
src/view/performance/baozhuangbaogong.vue

@@ -80,12 +80,14 @@
 					</el-main>
 				</layout-content>
 					<div class="dialog-footer" style="text-align: left;margin-right: 60px;">
-						<el-button type="primary" @click="add_Dialog" id="add_Dialog"	:disabled="add_Dialogonclick === false"  style="width: 110px;height: 60px;font-size: 20px;">确认</el-button>
+						<el-button type="primary" @click="add_Dialog" id="add_Dialog"	:disabled="add_Dialogonclick === false"  style="width: 110px;height: 60px;font-size: 20px; margin-left: 20px;">确认</el-button>
+						<el-button type="primary" @click="gd_yulan" 	 style="width: 100px;height: 60px;font-size: 20px;">工单预览</el-button>
 					</div>
 			</div>
 		  <!-- </el-main> -->
 		</layout-content>
 	  </layout>
+	  <PrintPage ref="printPageRef" />
 	</div>
   </template>
 <script>
@@ -137,10 +139,11 @@ import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
 import {hiprint} from "vue-plugin-hiprint";
 import {ref, reactive,nextTick,watch, setBlockTracking } from 'vue'
 import {getSpotList,search,getMachineMac,getTab} from '@/api/mes/job'
+import PrintPage from '../yunyin/shengchanguanli/components/print.vue';
 import {ElMessage} from "element-plus";
 import { get } from 'scriptjs';
 defineOptions({name: 'Company'})
-  
+const printPageRef = ref()
 // =========== 全局获取当前日期 ===========
 // currentDate  年月日 时分秒
 // currentDates  年月日
@@ -309,6 +312,16 @@ const add_Dialog = async ()=>{
 
   }
 }
+
+const gd_yulan = () => {
+  if(_order.value === '' || _order.value === null){
+    ElMessage({type: 'warning',message: '请选择具体的工单后,再操作此功能'})
+    return false;
+  }else{
+    const order = _order.value.split('-')[0]
+      printPageRef.value.open(order) 
+  }
+}
 //单机
 const add_tableRowClick = async (row) => {
 roww.value = row

+ 15 - 2
src/view/performance/datangbaogong.vue

@@ -80,12 +80,14 @@
 					</el-main>
 				</layout-content>
 					<div class="dialog-footer" style="text-align: left;margin-right: 60px;">
-						<el-button type="primary" @click="add_Dialog" id="add_Dialog"	:disabled="add_Dialogonclick === false"  style="width: 110px;height: 60px;font-size: 20px;">确认</el-button>
+						<el-button type="primary" @click="add_Dialog" id="add_Dialog"	:disabled="add_Dialogonclick === false"  style="width: 110px;height: 60px;font-size: 20px;margin-left: 20px;">确认</el-button>
+						<el-button type="primary" @click="gd_yulan" 	 style="width: 100px;height: 60px;font-size: 20px;">工单预览</el-button>
 					</div>
 			</div>
 		  <!-- </el-main> -->
 		</layout-content>
 	  </layout>
+	  <PrintPage ref="printPageRef" />
 	</div>
   </template>
 <script>
@@ -137,10 +139,11 @@ import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
 import {hiprint} from "vue-plugin-hiprint";
 import {ref, reactive,nextTick,watch, setBlockTracking } from 'vue'
 import {getSpotList,search,getMachineMac,getTab} from '@/api/mes/job'
+import PrintPage from '../yunyin/shengchanguanli/components/print.vue';
 import {ElMessage} from "element-plus";
 import { get } from 'scriptjs';
 defineOptions({name: 'Company'})
-  
+const printPageRef = ref()
 // =========== 全局获取当前日期 ===========
 // currentDate  年月日 时分秒
 // currentDates  年月日
@@ -309,6 +312,16 @@ const add_Dialog = async ()=>{
 
   }
 }
+
+const gd_yulan = () => {
+  if(_order.value === '' || _order.value === null){
+    ElMessage({type: 'warning',message: '请选择具体的工单后,再操作此功能'})
+    return false;
+  }else{
+    const order = _order.value.split('-')[0]
+      printPageRef.value.open(order) 
+  }
+}
 //单机
 const add_tableRowClick = async (row) => {
 roww.value = row

+ 15 - 2
src/view/performance/houdaoshougong.vue

@@ -80,12 +80,14 @@
 					</el-main>
 				</layout-content>
 					<div class="dialog-footer" style="text-align: left;margin-right: 60px;">
-						<el-button type="primary" @click="add_Dialog" id="add_Dialog"	:disabled="add_Dialogonclick === false"  style="width: 110px;height: 60px;font-size: 20px;">确认</el-button>
+						<el-button type="primary" @click="add_Dialog" id="add_Dialog"	:disabled="add_Dialogonclick === false"  style="width: 110px;height: 60px;font-size: 20px;margin-left: 20px;">确认</el-button>
+						<el-button type="primary" @click="gd_yulan" 	 style="width: 100px;height: 60px;font-size: 20px;">工单预览</el-button>
 					</div>
 			</div>
 		  <!-- </el-main> -->
 		</layout-content>
 	  </layout>
+	  <PrintPage ref="printPageRef" />
 	</div>
   </template>
 <script>
@@ -137,10 +139,11 @@ import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
 import {hiprint} from "vue-plugin-hiprint";
 import {ref, reactive,nextTick,watch, setBlockTracking } from 'vue'
 import {getSpotList,search,getMachineMac,getTab} from '@/api/mes/job'
+import PrintPage from '../yunyin/shengchanguanli/components/print.vue';
 import {ElMessage} from "element-plus";
 import { get } from 'scriptjs';
 defineOptions({name: 'Company'})
-  
+const printPageRef = ref()
 // =========== 全局获取当前日期 ===========
 // currentDate  年月日 时分秒
 // currentDates  年月日
@@ -309,6 +312,16 @@ const add_Dialog = async ()=>{
 
   }
 }
+
+const gd_yulan = () => {
+  if(_order.value === '' || _order.value === null){
+    ElMessage({type: 'warning',message: '请选择具体的工单后,再操作此功能'})
+    return false;
+  }else{
+    const order = _order.value.split('-')[0]
+      printPageRef.value.open(order) 
+  }
+}
 //单机
 const add_tableRowClick = async (row) => {
 roww.value = row

+ 15 - 2
src/view/performance/zongjianbaogong.vue

@@ -80,12 +80,14 @@
 					</el-main>
 				</layout-content>
 					<div class="dialog-footer" style="text-align: left;margin-right: 60px;">
-						<el-button type="primary" @click="add_Dialog" id="add_Dialog"	:disabled="add_Dialogonclick === false"  style="width: 110px;height: 60px;font-size: 20px;">确认</el-button>
+						<el-button type="primary" @click="add_Dialog" id="add_Dialog"	:disabled="add_Dialogonclick === false"  style="width: 110px;height: 60px;font-size: 20px;margin-left: 20px;">确认</el-button>
+						<el-button type="primary" @click="gd_yulan" 	 style="width: 100px;height: 60px;font-size: 20px;">工单预览</el-button>
 					</div>
 			</div>
 		  <!-- </el-main> -->
 		</layout-content>
 	  </layout>
+	  <PrintPage ref="printPageRef" />
 	</div>
   </template>
 <script>
@@ -137,10 +139,11 @@ import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
 import {hiprint} from "vue-plugin-hiprint";
 import {ref, reactive,nextTick,watch, setBlockTracking } from 'vue'
 import {getSpotList,search,getMachineMac,getTab} from '@/api/mes/job'
+import PrintPage from '../yunyin/shengchanguanli/components/print.vue';
 import {ElMessage} from "element-plus";
 import { get } from 'scriptjs';
 defineOptions({name: 'Company'})
-  
+const printPageRef = ref()
 // =========== 全局获取当前日期 ===========
 // currentDate  年月日 时分秒
 // currentDates  年月日
@@ -309,6 +312,16 @@ const add_Dialog = async ()=>{
 
   }
 }
+
+const gd_yulan = () => {
+  if(_order.value === '' || _order.value === null){
+    ElMessage({type: 'warning',message: '请选择具体的工单后,再操作此功能'})
+    return false;
+  }else{
+    const order = _order.value.split('-')[0]
+      printPageRef.value.open(order) 
+  }
+}
 //单机
 const add_tableRowClick = async (row) => {
 roww.value = row