Jelajahi Sumber

班组维护新增修复1207

zck 1 tahun lalu
induk
melakukan
15f764333b
1 mengubah file dengan 16 tambahan dan 5 penghapusan
  1. 16 5
      src/view/yunyin/shengchanguanli/shebeiyunxing.vue

+ 16 - 5
src/view/yunyin/shengchanguanli/shebeiyunxing.vue

@@ -2337,7 +2337,7 @@ import Shebeizhuangtai from '@/view/performance/09-workOrderVerification/compone
 import { getDictFunc, formatDate, formatBoolean, filterDict, ReturnArrImg, onDownloadFile } from '@/utils/format'
 import { Layout, LayoutContent, LayoutHeader, LayoutSider } from '@arco-design/web-vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
-import { ref, reactive,watch } from 'vue'
+import { ref, reactive,watch, registerRuntimeCompiler } from 'vue'
 import { useUserStore } from '@/pinia/modules/user'
 import PrintPage from './components/print.vue'
 
@@ -4753,12 +4753,16 @@ function updateTotal() {
 }
 
 const addBz = async() => {
-  // selectedOption.value='YS-JY06-002||印品质量检测机(JP1020-18)'
-  // console.log(selectedOption.value)
-  // console.log(BZMC.value)
-  // console.log(selectedOption.value.split('|')[0])
+	//数据初始化
 	initfordata3()
 	updateTotal()
+	if(!selectedOption.value || !BZMC.value){
+		ElMessage({
+		  type: 'warning',
+		  message: '机台或者班组不能为空'
+		})
+		return;
+	}
 	const jt = selectedOption.value.split('|')[0]//获取车间数据
 	//判断车间分配比例【SY、PM】	
 	const shouldCheckLessThanOne = !jt.includes('SY') && !jt.includes('PM');
@@ -4845,6 +4849,13 @@ const currentBz ={}
 const selectBz = async() => {
 	initfordata3()
 	updateTotal()
+	if(!selectedOption.value || !BZMC.value){
+	ElMessage({
+		type: 'warning',
+		message: '机台或者班组不能为空'
+	})
+	return;
+}
 	const jt = selectedOption.value.split('|')[0]//获取车间数据
 	//判断车间分配比例【SY、PM、WY】	
 	const shouldCheckLessThanOne = !jt.includes('SY') && !jt.includes('PM');