gqx hace 2 años
padre
commit
db6efea445
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      src/views/pos/modules/Payment.vue

+ 5 - 2
src/views/pos/modules/Payment.vue

@@ -34,10 +34,12 @@
                 </a-radio-group>
                 <template v-if="model.preferentialType === 3"
                   >打<a-input-number
-                    style="width: 50px"
+                    style="width: 80px"
                     v-model="model.discount"
                     :min="1"
                     :max="9"
+                    decimalSeparator="."
+                    :precision="1"
                   ></a-input-number
                   >折
                 </template>
@@ -332,8 +334,9 @@ export default {
       });
     },
     puls() {
+      var m = this.realityAmount - this.sumAmount;
       this.payList.push({
-        money: 0,
+        money: parseFloat(m.toFixed(2)),
         payType: this.payTypeList[0].id,
         isVipMemmber: false,
       });