Browse Source

修改bug

cr 4 years ago
parent
commit
0bd1d7958d
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/pages/manage/cashier/weighModal.vue

+ 4 - 4
src/pages/manage/cashier/weighModal.vue

@@ -127,9 +127,9 @@ export default {
127
                 this.fn.showToast("获取weight错误");
127
                 this.fn.showToast("获取weight错误");
128
             }
128
             }
129
             // let ret = { code: "1.340" };
129
             // let ret = { code: "1.340" };
130
-            this.weighData.weight = ret.code;
130
+            this.weighData.weight = ret.data;
131
 
131
 
132
-            let num = Number(ret.code);
132
+            let num = Number(ret.data);
133
             if (num) {
133
             if (num) {
134
                 let amt = num * this.weighData.price;
134
                 let amt = num * this.weighData.price;
135
                 amt = amt.toFixed(2);
135
                 amt = amt.toFixed(2);
@@ -144,7 +144,7 @@ export default {
144
             if (!ret) {
144
             if (!ret) {
145
                 this.fn.showToast("获取price错误");
145
                 this.fn.showToast("获取price错误");
146
             }
146
             }
147
-            this.weighData.price = ret.code;
147
+            this.weighData.price = ret.data;
148
         },
148
         },
149
         getAmt() {
149
         getAmt() {
150
             var ret = testModule.getAmt({
150
             var ret = testModule.getAmt({
@@ -154,7 +154,7 @@ export default {
154
             if (!ret) {
154
             if (!ret) {
155
                 this.fn.showToast("获取Amt错误");
155
                 this.fn.showToast("获取Amt错误");
156
             }
156
             }
157
-            this.weighData.amt = ret.code;
157
+            this.weighData.amt = ret.data;
158
         },
158
         },
159
     },
159
     },
160
 
160