| | |
| | | <el-form-item label="时间" prop="startTime" > |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | | style="width: 240px;" |
| | | style="width: 200px; |
| | | height: 35px; |
| | | border-radius: 16px 16px 16px 16px; |
| | | opacity: 0.5;" |
| | | value-format="yyyy-MM-dd HH-MM" |
| | | type="daterange" |
| | | range-separator="-" |
| | |
| | | <el-form-item label="总天数" prop="usePeople" > |
| | | <el-input |
| | | v-model="queryParams.usePeople" |
| | | placeholder="请输入使用人" |
| | | placeholder="请输入总天数" |
| | | clearable |
| | | style="width: 240px" |
| | | style="width: 200px; |
| | | height: 35px; |
| | | border-radius: 16px 16px 16px 16px; |
| | | opacity: 0.5;" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | |
| | | console.error("请求错误:", error); |
| | | } |
| | | } |
| | | |
| | | this.formDat2.detailList = await getData(); // 调用async函数来获取数据并赋值给detailList |
| | | |
| | | console.log(" this.formDat2.detailList"); |
| | |
| | | this.formDat.totalPrice=totalPrice; |
| | | |
| | | console.log(this.formDat2) |
| | | console.log(this.formDat); |
| | | |
| | | console.log("?"); |
| | | debugger |
| | | this.$refs["elForm"].validate(valid => { |
| | | if (valid) { |
| | | |
| | |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.centerDialogVisible = false; |
| | | this.getList(); |
| | | }); |
| | | updateTravelPrice(this.formDat2).then(response => { |
| | | this.$modal.msgSuccess("费用新增成功"); |
| | | this.centerDialogVisible = false; |
| | | }); |
| | | Object.keys(this.formDat2).forEach(key => { |
| | | this.formDat2[key] = ''; |
| | | }); |
| | | Object.keys(this.formDat).forEach(key => { |
| | | this.formDat[key] = ''; |
| | |
| | | } |
| | | }); |
| | | this.$refs["elForm1"].validate(valid => { |
| | | console.log(valid) |
| | | debugger |
| | | if (valid) { |
| | | |
| | | |
| | | updateTravelPrice(this.formDat2).then(response => { |
| | | // this.$modal.msgSuccess("费用新增成功"); |
| | | this.$modal.msgSuccess("费用新增成功"); |
| | | this.centerDialogVisible = false; |
| | | }); |
| | | Object.keys(this.formDat2).forEach(key => { |
| | |
| | | return delTravelBase(id); |
| | | }).then(() => { |
| | | updateTravelPrice(this.formDat7).then(response => { |
| | | this.$modal.msgSuccess("费用修改成功"); |
| | | this.$modal.msgSuccess("费用删除成功"); |
| | | |
| | | }); |
| | | this.getList(); |