| | |
| | | </el-dialog> |
| | | |
| | | <!-- 添加补录项目 --> |
| | | <el-dialog :title="title" :visible.sync="Projectopen1" width="1100px" style="height: 860px" append-to-body |
| | | <el-dialog :title="title" :visible.sync="Projectopen1" width="1100px" style="height: 880px" append-to-body |
| | | :close-on-click-modal="false"> |
| | | <div class="box"> |
| | | <div class="box1"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <div class="grid-content bg-purple"> |
| | | <div style="text-align: center; margin-bottom: 10px; margin-top: 10px"> |
| | | 项目选择 |
| | | </div> |
| | |
| | | </el-input> |
| | | <div class="tab3"> |
| | | <el-tree class="filter-tree" v-loading="loading" :data="packageList" :props="defaultProp" |
| | | show-checkbox node-key="id" @check-change="handlepackage" :default-checked-keys="checkedkeys" |
| | | :filter-node-method="filterpackage" ref="treas" :render-content="renderContents"> |
| | | show-checkbox node-key="id" @check-change="handlepackage" |
| | | :default-checked-keys="checkedkeys" :filter-node-method="filterpackage" ref="treas" |
| | | :render-content="renderContents"> |
| | | </el-tree> |
| | | </div> |
| | | </el-col> |
| | |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | |
| | | |
| | | </el-col> |
| | | <el-col :span="16"> |
| | | <div class="grid-content bg-purple"> |
| | | <div style="text-align: center; margin-bottom: 10px; margin-top: 9px"> |
| | | 已选项目列表 |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <!-- <h3 style="font-weight: 600">合计:{{ marryalls }}元</h3> --> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <el-form :model="form" inline style="display: flex; justify-content: space-between; margin-top: 20px"> |
| | |
| | | |
| | | <el-form-item label="折扣"> |
| | | <!-- {{ discount }} --> |
| | | <el-input-number ref="inputNumber" style="width: 150px" v-model="discount" :precision="1" :step="0.1" |
| | | <el-input-number ref="inputNumber" style="width: 140px" v-model="discount" :precision="1" :step="0.1" |
| | | :max="10" :min="0" @change="debounceNumberChange"></el-input-number> |
| | | </el-form-item> |
| | | |
| | |
| | | <el-input placeholder="应付金额" :value="TotalPrice1 * (discount / 10)" style="width: 90px"></el-input> |
| | | </el-form-item> --> |
| | | <el-form-item label="应付"> |
| | | <el-input placeholder="应付金额" v-model="TotalPrice" style="width: 206px" @input="changeXianjia" |
| | | <el-input placeholder="应付金额" v-model="TotalPrice" style="width: 90px" @input="changeXianjia" |
| | | @blur="numberChangeXianPrice(discount, discount)" /> |
| | | </el-form-item> |
| | | |
| | |
| | | |
| | | <!-- 结算方式 --> |
| | | <el-form-item label="结算方式" prop="jsType" style="display: flex"> |
| | | <el-select v-model="jsType" placeholder="请选择结算方式" style="width: 130px" clearable> |
| | | <el-select v-model="jsType" placeholder="请选择结算方式" style="width: 120px" clearable> |
| | | <el-option v-for="dict in dict.type.reservation_pay_type" :key="dict.value" :label="dict.label" |
| | | :value="dict.value" /> |
| | | </el-select> |
| | |
| | | import { getwater } from "@/api/hosp/customer"; |
| | | import { getInfo } from "@/api/login"; |
| | | import ViewPdf from "@/components/ViewPdf"; |
| | | import Big from "big.js"; |
| | | import { |
| | | shijianzhou, |
| | | getaddtTransition, |
| | |
| | | this.Datalists = []; |
| | | this.filterText = "", |
| | | this.filterage = "", |
| | | this.TotalPrice = 0; |
| | | this.discount = 10; |
| | | this.TotalPrice1 = 0; |
| | | this.orderId = this.ids; |
| | | this.cusId = this.cusIds; |
| | |
| | | this.TotalPrice1 = 0; |
| | | this.DataList3.forEach((item) => { |
| | | this.TotalPrice1 += item.proPrice * item.sl; |
| | | let TotalPrice = this.TotalPrice1 * (this.discount / 10) |
| | | this.TotalPrice = TotalPrice.toFixed(2); |
| | | this.lastXianPrice = this.TotalPrice; |
| | | }); |
| | | }); |
| | | } else if (checked === false) { |
| | |
| | | this.TotalPrice1 = 0; |
| | | this.DataList3.forEach((item) => { |
| | | this.TotalPrice1 += item.proPrice * item.sl; |
| | | let TotalPrice = this.TotalPrice1 * (this.discount / 10) |
| | | this.TotalPrice = TotalPrice.toFixed(2); |
| | | this.lastXianPrice = this.TotalPrice; |
| | | }); |
| | | }); |
| | | } |
| | |
| | | this.spliceData(); |
| | | this.TotalPrice1 = 0; |
| | | this.DataList.forEach((item1) => { |
| | | console.log(item1.proPrice, 3322); |
| | | console.log(this.TotalPrice1, 1122); |
| | | |
| | | this.TotalPrice1 = item1.proPrice + this.TotalPrice1; |
| | | }); |
| | | if (this.marryalls != 0) { |
| | |
| | | const discount = new Big(row.discount); |
| | | const result = ordPrice.times(discount.div(10)); // ordPrice * (discount / 10) |
| | | row.nowPrice = result.toNumber(); |
| | | this.TotalPrice = this.DataList3.reduce((sum, item) => { |
| | | let TotalPrice= this.DataList3.reduce((sum, item) => { |
| | | return sum.plus(new Big(item.nowPrice || "0")); |
| | | }, new Big(0)); |
| | | }, new Big(0)) |
| | | this.TotalPrice = TotalPrice.toFixed(2); |
| | | this.discount = |
| | | (Math.floor((this.TotalPrice / this.TotalPrice1) * 100) / 100) * 10; |
| | | } |
| | |
| | | // this.TotalPrice = this.DataList3.reduce((sum, item) => { |
| | | // return sum.plus(new Big(item.nowPrice || "0")); |
| | | // }, new Big(0)); |
| | | this.TotalPrice = new Big(this.TotalPrice1 * (this.discount / 10)).toFixed(2) |
| | | let TotalPrice = new Big(this.TotalPrice1 * (this.discount / 10)) |
| | | this.TotalPrice = TotalPrice.toFixed(2); |
| | | }); |
| | | }) |
| | | .catch(() => { |
| | |
| | | numberChangeXianPrice(currentValue, oldValue) { |
| | | // 如果现价没有变化,直接返回 |
| | | if (this.TotalPrice === this.lastXianPrice || !this.TotalPrice) { |
| | | console.log(2222333) |
| | | return; |
| | | } |
| | | this.$confirm("确定修改所有子项的折扣吗?", "提示", { |
| | |
| | | // this.discount = this.getInfodis; |
| | | // } |
| | | let totalYsprice = new Big(0); |
| | | console.log(this.DataList3, 11111) |
| | | this.DataList3.forEach((item) => { |
| | | item.discount = this.discount; |
| | | const ordPrice = new Big(item.proPrice); |
| | |
| | | } |
| | | |
| | | .box1 { |
| | | width: 50%; |
| | | width: 35%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |