tangning hace 2 años
padre
commit
89e5df828f
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/views/work/confirmPriceModal.vue

+ 3 - 2
src/views/work/confirmPriceModal.vue

@@ -145,9 +145,10 @@
           if(ele.count==0){
             return
           }
+          let price = ele.discount == 1?ele.priceDiscount:ele.price
           valueObj[`priceList${ele.priceListId}`] = ele.count || 0
-          valueObj[`priceListText${ele.priceListId}`] = `${ele.name} ${ele.price} 元/次`
-          count = count + ele.count*ele.price
+          valueObj[`priceListText${ele.priceListId}`] = `${ele.name} ${price} 元/次`
+          count = count + ele.count*price
           priceSchema.unshift({
             field: 'priceListText' + ele.priceListId,
             component: 'InputNumber',