liuhj 1 vuosi sitten
vanhempi
commit
0e81ebdb18

+ 2 - 1
src/components/Finance/DailyFeeedit.vue

@@ -147,8 +147,8 @@ export default {
     methods:{
         submitForm(formName) {
             this.$refs[formName].validate((valid) => {
-                console.log(valid)
                 if (valid) {
+                    this.SumPrice=0;
                     console.log(this.itemsArr)
                     var issubmit=true;
                     for(var g=0;g<this.itemsArr.length;g++){
@@ -157,6 +157,7 @@ export default {
                                 //for(var k=0;k<this.itemsArr.length;k++){
                                     this.SumPrice+=Number(this.itemsArr[g].itemTotal)
                                 //}
+                                console.log(this.SumPrice);
                             }else{
                                 this.$message({
                                     showClose: true,

+ 1 - 2
src/components/OP/HotelReservations.vue

@@ -1243,7 +1243,7 @@ export default {
         },
         //预定成本
         BookingCost(){
-            var url = "/api/Groups/PostHotelReservationsCreateVoucher"
+            var url = "/api/Groups/PostHotelReservationsPredictedCostFileDownload"
             var that = this
             this.$axios({
                 method: 'post',
@@ -1256,7 +1256,6 @@ export default {
                     userId: that.userId ,
                     pageId: that.pageId ,
                     diId: that.OpHotelReservationsData.diId ,
-                    id: 0
                 }
             }).then(function (res) {
                 console.log(res)