zck 5 月之前
父節點
當前提交
2ba1c281ee
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/view/performance/zongjianbaogong.vue

+ 5 - 4
src/view/performance/zongjianbaogong.vue

@@ -881,7 +881,7 @@ progressList.value = SubOrder_list.data.result.map(item => ({
 	裁剪数量: item['裁剪数量'],
 	percentage: parseFloat(item['完成率'].replace('%', ''))
 }))
-baoshulist()
+baoshulist(add_searchInfo.value)
 
 const jsOrderAttachments = await OrderAttachments({order:searchValue,desc:'技术附件'})
 const ddOrderAttachments = await OrderAttachments({order:searchValue,desc:'订单资料附件'})
@@ -956,6 +956,7 @@ if (add_searchInfo.value && add_searchInfo.value.match(/,/g)?.length >= 2) {
 		autoFilledSizeIndex.value = i;
 		// 更新合计
 		updateTotal();
+		baoshulist(arr[0]);
 		break;
 		}
 	}
@@ -965,8 +966,8 @@ if (add_searchInfo.value && add_searchInfo.value.match(/,/g)?.length >= 2) {
 
 const multipleTable = ref(null);
 const Mabaolistform = reactive([]);
-const baoshulist = async () => {
-	const orderMabaolist = await Mabaolist({ order: add_searchInfo.value, process:add_formData['工序']});
+const baoshulist = async (order) => {
+	const orderMabaolist = await Mabaolist({ order: order, process:add_formData['工序']});
 	console.log(orderMabaolist);
 	// 初始化所有包的数据,将 chefeng 转换为对象以便标记状态
 	Mabaolistform.splice(
@@ -1191,7 +1192,7 @@ const add_Dialog = async () => {
 
 
 			successres('报工成功')
-			baoshulist(add_searchInfo.value,add_formData['工序']);
+			baoshulist(add_searchInfo.value);
 			search.value = '';
 			add_searchInfo.value = ''; 
 			//清空所有输入框上报数量