| | |
| | | <div class="info-item" > |
| | | <div class="info-item-a">积分抵扣:<span v-if="(info.integral||0)>0">-¥{{(info.integral||0).toFixed(2) +' '}}使用{{(info.useIntegral||0)}}积分抵扣¥{{(info.integral||0).toFixed(2) +' '}}元</span></div> |
| | | <div class="info-item-a">优惠券:<span v-if="(info.couponPrice||0)>0">-¥{{(info.couponPrice||0).toFixed(2) +' '}} 使用{{info.couponName}}</span></div> |
| | | <div class="info-item-a">经销商结算:<span> ¥{{(info.totalPrice||0).toFixed(2)}}</span></div> |
| | | <div class="info-item-a">经销商结算:<span style="margin-right: 10px;"> ¥{{(info.shopSettlement||0).toFixed(2)}}</span>({{info.shopName}})</div> |
| | | </div> |
| | | <div class="info-item" > |
| | | <div class="info-item-a">实付金额:<span class="red"> ¥{{(info.price||0).toFixed(2)}}</span></div> |
| | |
| | | <div class="header-b">退款内容</div> |
| | | <div class="info-item" > |
| | | <el-form :model="form" ref="form" label-width="120px" label-suffix=":" :rules="rules" inline> |
| | | <el-form-item label="退款金额" prop="price" style="display: block;"> |
| | | <el-input type="number" v-model="form.price" placeholder="请输入退款金额" v-trim> <template slot="append"> 元</template> </el-input> |
| | | <el-form-item label="退款金额" prop="money" style="display: block;"> |
| | | <el-input type="number" v-model="form.money" placeholder="请输入退款金额" v-trim> <template slot="append"> 元</template> </el-input> |
| | | <span class="tip-warn" style="margin-bottom: 30px;font-size: 14px;"> <i class="el-icon-warning"></i> |
| | | 提示:当前订单最多可退金额为<span class="red">{{(info.price||0).toFixed(2)}}</span></span> |
| | | </el-form-item> |
| | | <div style="display:flex;"> |
| | | <el-form-item label="退还" prop="refundInfo" style="display: inline;"> |
| | | <el-checkbox style="border: none;" v-model="checked1" label="退还客户优惠券" border></el-checkbox> |
| | | <el-checkbox style="border: none;" v-model="form.returnUseCouponStatus" label="退还客户优惠券" border></el-checkbox> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="refundInfo" style="display: inline;"> |
| | | <el-checkbox style="border: none" v-model="checked1" label="退还客户积分" border></el-checkbox> |
| | | <el-checkbox style="border: none" v-model="form.returnUseIntegralStatus" label="退还客户积分" border></el-checkbox> |
| | | </el-form-item> |
| | | </div> |
| | | <div style="display:flex;"> |
| | | <el-form-item label="扣除" prop="refundInfo" style="display: inline;"> |
| | | <el-checkbox style="border: none" v-model="checked1" label="扣除经销商已结算金额" border></el-checkbox> |
| | | <el-checkbox style="border: none" v-model="form.returnShopSettlementStatus" label="扣除经销商已结算金额" border></el-checkbox> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="refundInfo" style="display: inline;"> |
| | | <el-checkbox style="border: none" v-model="checked1" label="扣除已返客户积分" border></el-checkbox> |
| | | <el-checkbox style="border: none" v-model="form.returnIntegralStatus" label="扣除已返客户积分" border></el-checkbox> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="refundInfo" style="display: inline;"> |
| | | <el-checkbox style="border: none" v-model="checked1" label="扣除已返经销商积分" border></el-checkbox> |
| | | <el-checkbox style="border: none" v-model="form.returnShopIntegralStatus" label="扣除已返经销商积分" border></el-checkbox> |
| | | </el-form-item> |
| | | </div> |
| | | <el-form-item label="备注" prop="refundInfo" style="display: block;"> |
| | | <el-input type="textarea" :autosize="{ minRows: 4, maxRows:4 }" style="width: 500px;" v-model="form.cancelInfo" placeholder="请输入取消说明" v-trim/> |
| | | <el-form-item label="备注" prop="remark" style="display: block;"> |
| | | <el-input type="textarea" :autosize="{ minRows: 4, maxRows:4 }" style="width: 500px;" v-model="form.remark" placeholder="请输入取消说明" v-trim/> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | info: {}, |
| | | shopInfo: {}, |
| | | rules: { |
| | | price: [ |
| | | money: [ |
| | | { required: true, message: '请输入退款金额', tigger: 'blur' } |
| | | ] |
| | | }, |
| | | // 搜索 |
| | | form: { |
| | | id: '', |
| | | checked1:false, |
| | | price: 0, |
| | | type: null |
| | | orderId: '', |
| | | money: null, |
| | | returnShopIntegralStatus: false, |
| | | returnIntegralStatus: false, |
| | | returnShopSettlementStatus: false, |
| | | returnUseIntegralStatus: false, |
| | | returnUseCouponStatus: false, |
| | | remark: '' |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.title = title |
| | | this.visible = true |
| | | this.info = info || {} |
| | | this.form.price = '' |
| | | this.form = { |
| | | orderId: info.id, |
| | | money: null, |
| | | returnShopIntegralStatus: false, |
| | | returnIntegralStatus: false, |
| | | returnShopSettlementStatus: false, |
| | | returnUseIntegralStatus: false, |
| | | returnUseCouponStatus: false, |
| | | remark: '' |
| | | } |
| | | |
| | | if (this.info.distributionShopId != null) { |
| | | this.loadInfo() |
| | | } |
| | | }, |
| | | doSubmit () { |
| | | |
| | | }, |
| | | confirm () { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.$dialog.messageWaring(`确定进行退款该订单:${this.info.code}?`) |
| | | var msg = `确定对订单【${this.info.code}】进行退款操作吗?` |
| | | if (this.form.returnShopSettlementStatus && (this.info.shopSettlement || 0) > 0 && (this.info.shopSettlement || 0) > (this.shopInfo.amount || 0)) { |
| | | msg = '经销商余额不足,' + msg |
| | | } |
| | | this.$dialog.messageWaring(msg) |
| | | .then(() => { |
| | | this.isWorking = true |
| | | this.api.orderRefund(this.form) |
| | | this.api.orderRefund({ |
| | | orderId: this.form.id, |
| | | money: this.form.money, |
| | | returnShopIntegralStatus: this.form.returnShopIntegralStatus ? 1 : 0, |
| | | returnIntegralStatus: this.form.returnIntegralStatus ? 1 : 0, |
| | | returnShopSettlementStatus: this.form.returnShopSettlementStatus ? 1 : 0, |
| | | returnUseIntegralStatus: this.form.returnUseIntegralStatus ? 1 : 0, |
| | | returnUseCouponStatus: this.form.returnUseCouponStatus ? 1 : 0, |
| | | remark: this.form.remark |
| | | }) |
| | | .then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('退款成功') |
| | |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | |
| | | // 调用新建接口 |
| | | }) |
| | | } |