|
@@ -213,6 +213,22 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <el-dialog title="退款信息" :visible.sync="dialogVisible" width="500px">
|
|
|
+ <span style="margin-right: 5px">可退金额:</span>
|
|
|
+ <el-input v-model="ktje"></el-input>
|
|
|
+ <p>可退商品信息</p>
|
|
|
+ <el-table>
|
|
|
+ <el-table-column type="index" label="#" width="54"> </el-table-column>
|
|
|
+ <el-table-column label="商品名称"></el-table-column>
|
|
|
+ <el-table-column label="价格"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="dialogVisible = false">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="sureRefund"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -458,6 +474,9 @@ export default {
|
|
|
getToken() && JSON.parse(getToken())
|
|
|
? JSON.parse(getToken()).popedom_code_list.indexOf(40002) > -1
|
|
|
: false,
|
|
|
+ dialogVisible: false,
|
|
|
+ ktje: 0,
|
|
|
+ refundId: "",
|
|
|
};
|
|
|
},
|
|
|
//计算属性 类似于data概念
|
|
@@ -552,31 +571,40 @@ export default {
|
|
|
let datas = {
|
|
|
id: row.id,
|
|
|
};
|
|
|
- getLogin(Mnames, datas).then((res) => {});
|
|
|
- this.$prompt("请输入金额", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- })
|
|
|
- .then(({ value }) => {
|
|
|
- let Mname =
|
|
|
- "/ShopServer/Manager/FinanceManager/AuditOrderRefundApply";
|
|
|
- let updataData = JSON.parse(JSON.stringify(row));
|
|
|
- let data = {
|
|
|
- id: row.id,
|
|
|
- is_pass: "true",
|
|
|
- refund_amount: value,
|
|
|
- };
|
|
|
- getLogin(Mname, data).then((res) => {
|
|
|
- this.$message.success("操作成功");
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- // this.$message({
|
|
|
- // type: "info",
|
|
|
- // message: "取消输入",
|
|
|
- // });
|
|
|
- });
|
|
|
+ getLogin(Mnames, datas).then((res) => {
|
|
|
+ if (res.status === 1) {
|
|
|
+ this.ktje = res.ktje;
|
|
|
+ this.refundId = row.id;
|
|
|
+ this.dialogVisible = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // this.$prompt("请输入金额", "提示", {
|
|
|
+ // confirmButtonText: "确定",
|
|
|
+ // cancelButtonText: "取消",
|
|
|
+ // })
|
|
|
+ // .then(({ value }) => {
|
|
|
+ //
|
|
|
+ // })
|
|
|
+ // .catch(() => {
|
|
|
+ // // this.$message({
|
|
|
+ // // type: "info",
|
|
|
+ // // message: "取消输入",
|
|
|
+ // // });
|
|
|
+ // });
|
|
|
+ },
|
|
|
+ // 确定退款
|
|
|
+ sureRefund() {
|
|
|
+ let Mname = "/ShopServer/Manager/FinanceManager/AuditOrderRefundApply";
|
|
|
+ let data = {
|
|
|
+ id: this.refundId,
|
|
|
+ is_pass: "true",
|
|
|
+ refund_amount: this.ktje,
|
|
|
+ };
|
|
|
+ getLogin(Mname, data).then((res) => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.getList();
|
|
|
+ this.dialogVisible = false;
|
|
|
+ });
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
this.pageSize = val;
|
|
@@ -589,7 +617,7 @@ export default {
|
|
|
},
|
|
|
//计算table高度(动态设置table高度)
|
|
|
getTableHeight() {
|
|
|
- let tableH = 570; //距离页面下方的高度
|
|
|
+ let tableH = 370; //距离页面下方的高度
|
|
|
let tableHeightDetil = window.innerHeight - tableH;
|
|
|
if (tableHeightDetil <= 300) {
|
|
|
this.tableHeight = 300;
|