获取重量api接口测试1.3

This commit is contained in:
ptt 2025-11-04 17:48:27 +08:00
parent cfc2451fd2
commit 93c014db92
4 changed files with 23 additions and 11 deletions

View File

@ -905,12 +905,13 @@ export default {
// //
if (!this.checkPoundSelected())return; if (!this.checkPoundSelected())return;
// 100 10000 1.00 100.00 // 100 10000 1.00 100.00
const randomInt = Math.floor(Math.random() * 9900 + 100); //const randomInt = Math.floor(Math.random() * 9900 + 100);
getWeight(this.queryParams.poundid).then(response => {
this.queryParams.weight = response;
})
// //
//this.queryParams.weight = new Decimal(randomInt / 100); //this.queryParams.weight = new Decimal(randomInt / 100);
getWeight(this.queryParams.poundid).then(response => {
this.queryParams.weight = response;
console.log("返参"+response);
})
}, },
// //
// //

View File

@ -834,10 +834,13 @@ export default {
// //
handleGetweight() { handleGetweight() {
// 100 10000 1.00 100.00 // 100 10000 1.00 100.00
const randomInt = Math.floor(Math.random() * 9900 + 100); //const randomInt = Math.floor(Math.random() * 9900 + 100);
getWeight(this.queryParams.poundid).then(response => {
this.queryParams.weight = response;
console.log("返参"+response);
})
// //
this.queryParams.weight = new Decimal(randomInt / 100); //this.queryParams.weight = new Decimal(randomInt / 100);
}, },
// //
handleStopTimer() { handleStopTimer() {

View File

@ -1024,10 +1024,14 @@ watch: {
// //
if (!this.checkPoundSelected())return; if (!this.checkPoundSelected())return;
// 100 10000 1.00 100.00 // 100 10000 1.00 100.00
const randomInt = Math.floor(Math.random() * 9900 + 100); //const randomInt = Math.floor(Math.random() * 9900 + 100);
// //
this.queryParams.weight = new Decimal(randomInt / 100); //this.queryParams.weight = new Decimal(randomInt / 100);
getWeight(this.queryParams.poundid).then(response => {
this.queryParams.weight = response;
console.log("返参"+response);
})
}, },
// //
getEmpPoundData(){ getEmpPoundData(){

View File

@ -712,10 +712,14 @@ export default {
// //
if (!this.checkPoundSelected())return; if (!this.checkPoundSelected())return;
// 100 10000 1.00 100.00 // 100 10000 1.00 100.00
const randomInt = Math.floor(Math.random() * 9900 + 100); //const randomInt = Math.floor(Math.random() * 9900 + 100);
// //
this.queryParams.weight = new Decimal(randomInt / 100); //this.queryParams.weight = new Decimal(randomInt / 100);
getWeight(this.queryParams.poundid).then(response => {
this.queryParams.weight = response;
console.log("返参"+response);
})
}, },
// //