瀏覽代碼

修改bug

cr 4 年之前
父節點
當前提交
0bd1d7958d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/pages/manage/cashier/weighModal.vue

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

@@ -127,9 +127,9 @@ export default {
127 127
                 this.fn.showToast("获取weight错误");
128 128
             }
129 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 133
             if (num) {
134 134
                 let amt = num * this.weighData.price;
135 135
                 amt = amt.toFixed(2);
@@ -144,7 +144,7 @@ export default {
144 144
             if (!ret) {
145 145
                 this.fn.showToast("获取price错误");
146 146
             }
147
-            this.weighData.price = ret.code;
147
+            this.weighData.price = ret.data;
148 148
         },
149 149
         getAmt() {
150 150
             var ret = testModule.getAmt({
@@ -154,7 +154,7 @@ export default {
154 154
             if (!ret) {
155 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