From 3f188253e8ce35fc403dd38c666e6246e589b742 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期三, 01 十一月 2023 23:24:22 +0800
Subject: [PATCH] #
---
pages/api/addMat.js | 5 +-
pages/project/pakin/pakin.vue | 97 +-----------------------------------------------
2 files changed, 5 insertions(+), 97 deletions(-)
diff --git a/pages/api/addMat.js b/pages/api/addMat.js
index 9a82460..fc0a80e 100644
--- a/pages/api/addMat.js
+++ b/pages/api/addMat.js
@@ -4,7 +4,8 @@
let that = this,item = {};
var ress = await uni.request({
url: `${baseUrl}/mat/auth`,
- data: {matnr: '3CPPJ.B.GMB.LZ.QBY4-10/15P316LLZ'},
+ header: {'token': uni.getStorageSync('token')},
+ data: {matnr: matnr},
}).then((result)=> {
let mat = result.data.data
item['detl'] = [
@@ -12,7 +13,7 @@
{key: '鍟嗗搧鍚嶇О',value: mat.maktx},
{key: '瑙勬牸',value: mat.specs},
{key: '鎵瑰彿',value: '',type: 'input'},
- {key: '鏁伴噺',value: 0,type: 'number-box'},
+ {key: '鏁伴噺',value: 0,type: 'number-box',valText: 'val-num'},
]
},(res)=>{
console.log(res);
diff --git a/pages/project/pakin/pakin.vue b/pages/project/pakin/pakin.vue
index 5f42961..11e9659 100644
--- a/pages/project/pakin/pakin.vue
+++ b/pages/project/pakin/pakin.vue
@@ -51,99 +51,8 @@
{key: '瑙勬牸',value: '700*699*80'},
{key: '鎵瑰彿',value: '20231007204944',type: 'input'},
{key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
- {key: '搴忓彿',value: 1},
]
},
- {
- detl: [
- {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
- {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
- {key: '瑙勬牸',value: '700*699*80'},
- {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
- {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
- {key: '搴忓彿',value: 2},
- ]
- },
- {
- detl: [
- {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
- {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
- {key: '瑙勬牸',value: '700*699*80'},
- {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
- {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
- {key: '搴忓彿',value: 3},
- ]
- },
- {
- detl: [
- {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
- {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
- {key: '瑙勬牸',value: '700*699*80'},
- {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
- {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
- {key: '搴忓彿',value: 4},
- ]
- },
- {
- detl: [
- {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
- {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�'},
- {key: '瑙勬牸',value: '700*699*80'},
- {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
- {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
- {key: '搴忓彿',value: 5},
- ]
- },
- {
- detl: [
- {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
- {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
- {key: '瑙勬牸',value: '700*699*80'},
- {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
- {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
- {key: '搴忓彿',value: 1},
- ]
- },
- {
- detl: [
- {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
- {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
- {key: '瑙勬牸',value: '700*699*80'},
- {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
- {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
- {key: '搴忓彿',value: 2},
- ]
- },
- {
- detl: [
- {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
- {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
- {key: '瑙勬牸',value: '700*699*80'},
- {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
- {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
- {key: '搴忓彿',value: 3},
- ]
- },
- {
- detl: [
- {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
- {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�5.2x25'},
- {key: '瑙勬牸',value: '700*699*80'},
- {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
- {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
- {key: '搴忓彿',value: 4},
- ]
- },
- {
- detl: [
- {key: '鍟嗗搧鐮�',value: 'LSH90152025',valText: 'val-text'},
- {key: '鍟嗗搧鍚嶇О',value: '灏奸緳澶达紙鐏扮櫧锛�'},
- {key: '瑙勬牸',value: '700*699*80'},
- {key: '鎵瑰彿',value: '20231007204944',type: 'input'},
- {key: '鏁伴噺',value: 951326478,type: 'number-box',valText: 'val-num'},
- {key: '搴忓彿',value: 5},
- ]
- }
],
list: [
{}
@@ -163,10 +72,8 @@
}
},
async getMat(matnr) {
- let mat = await addMat.addMat()
- if (!addMat.isEmpty(mat)) {
- this.zDataList.push(mat)
- }
+ let mat = await addMat.addMat(matnr)
+ this.zDataList.push(mat)
},
}
}
--
Gitblit v1.9.1