From 8003ace3fff94312edeca29c0e1607b903b807e6 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 11 四月 2024 18:54:31 +0800
Subject: [PATCH] 获取产量登记详情的接口联调+2个数组重新排版成表格所需数据
---
src/common/untils/dialog.js | 5 ++---
src/api/productManage/productRegisterForm.js | 12 ++++++++++--
src/views/productManage/productRegisterForm/components/addProductDialog.vue | 10 +++++++---
3 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/src/api/productManage/productRegisterForm.js b/src/api/productManage/productRegisterForm.js
index 1730181..2bf95cb 100644
--- a/src/api/productManage/productRegisterForm.js
+++ b/src/api/productManage/productRegisterForm.js
@@ -31,7 +31,15 @@
data
})
}
-// 鑾峰彇杞﹁締缂栧彿
+// 鍒囨崲浜у搧鐧昏琛�
+export function changeYieldRegister(data) {
+ return request({
+ url: "/api-jl/v1/fineness/changeYieldRegister",
+ method: "post",
+ data
+ })
+}
+// 鑾峰彇杞﹁締缂栧彿 鍜岀瓑绾�
export function getWorkshopManageCar(data) {
return request({
url: "/api-jl/v1/system/getCarAndLevel",
@@ -46,4 +54,4 @@
method: "get",
data
})
-}
\ No newline at end of file
+}
diff --git a/src/common/untils/dialog.js b/src/common/untils/dialog.js
index e0e29fe..ca17192 100644
--- a/src/common/untils/dialog.js
+++ b/src/common/untils/dialog.js
@@ -40,9 +40,8 @@
// 灏嗘鏃剁殑浣嶇疆浼犲嚭鍘�
// binding.value({x:e.pageX,y:e.pageY})
}
-
- document.onmouseup = function (e) {
- console.log(e)
+ // e
+ document.onmouseup = function () {
document.onmousemove = null
document.onmouseup = null
}
diff --git a/src/views/productManage/productRegisterForm/components/addProductDialog.vue b/src/views/productManage/productRegisterForm/components/addProductDialog.vue
index 12f66da..79b65f1 100644
--- a/src/views/productManage/productRegisterForm/components/addProductDialog.vue
+++ b/src/views/productManage/productRegisterForm/components/addProductDialog.vue
@@ -283,12 +283,16 @@
workshopId: this.proForm.workshopId,
}).then((res) => {
if (res.code == 200) {
- console.log(res,'res')
+ if(res.data){
+ if(Object.keys(res.data).length>0){
+ this.$emit('changeForm',this.proForm,val,res.data)
+ }
+ }
}
});
+ }else{
+ this.$emit('changeForm',this.proForm,val,{})
}
-
- this.$emit('changeForm',this.proForm,val)
},
changeTableInput(){
if(this.proForm.pieces&&this.proForm.carNumber&&this.proForm.pieceNumber){
--
Gitblit v1.8.0