|
@@ -64,12 +64,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="right" label="返利金额" prop="" min-width="160" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input class="mountclass" :disabled='isShow' type='number' v-model="scope.row.rebateAmount"></el-input>
|
|
|
+ <el-input class="mountclass" :disabled='show' type='number' v-model="scope.row.rebateAmount"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="right" label="折让金额" prop="" min-width="160" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input class="mountclass" :disabled='isShow' type="number" v-model="scope.row.allowanceAmount"></el-input>
|
|
|
+ <el-input class="mountclass" :disabled='show' type="number" v-model="scope.row.allowanceAmount"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="left" label="备注" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
|
|
@@ -77,7 +77,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<br />
|
|
|
- <div v-if="!isShow">
|
|
|
+ <div v-if="!show">
|
|
|
<el-button type="primary" size="small" @click="btnFn">确定</el-button>
|
|
|
<el-button type="primary" size="small" @click="resetFn">重置</el-button>
|
|
|
</div>
|
|
@@ -88,6 +88,7 @@
|
|
|
import {
|
|
|
getRebateOrderDetail,
|
|
|
getRebateOrderAck,
|
|
|
+ getRebateOrderAclUpdate,
|
|
|
} from "@/api/finance/rebate_list";
|
|
|
export default {
|
|
|
props: {
|
|
@@ -102,6 +103,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ state: null,
|
|
|
+ examineStatus: "",
|
|
|
searchForm: {
|
|
|
rebateOrderId: "",
|
|
|
theTime: "",
|
|
@@ -114,6 +117,22 @@ export default {
|
|
|
listLoading: false, // 列表加载loading
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ show() {
|
|
|
+ if (this.isShow && this.examineStatus == "OK_ONE") {
|
|
|
+ this.state = 1;
|
|
|
+ return false;
|
|
|
+ } else if (!this.isShow) {
|
|
|
+ this.state = 2;
|
|
|
+ return false;
|
|
|
+ } else if (
|
|
|
+ this.isShow &&
|
|
|
+ (this.examineStatus == "OK" || this.examineStatus == "FAIL")
|
|
|
+ ) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
created() {
|
|
|
this.getDataList();
|
|
|
},
|
|
@@ -177,9 +196,15 @@ export default {
|
|
|
};
|
|
|
});
|
|
|
// console.log(res, 888);
|
|
|
- await getRebateOrderAck(res);
|
|
|
+ if (this.state == 1) {
|
|
|
+ await getRebateOrderAclUpdate(res);
|
|
|
+ this.$message.success("编辑成功");
|
|
|
+ } else {
|
|
|
+ await getRebateOrderAck(res);
|
|
|
+ this.$message.success("确认成功");
|
|
|
+ }
|
|
|
+
|
|
|
this.$emit("updateList");
|
|
|
- this.$message.success("确认成功");
|
|
|
this.$parent.showPage = 1;
|
|
|
},
|
|
|
//获取详情数据
|
|
@@ -195,9 +220,9 @@ export default {
|
|
|
this.searchForm.secondExamineTime = res.data.secondExamineTime;
|
|
|
this.searchForm.examineBy = res.data.examineBy;
|
|
|
this.searchForm.examineTime = res.data.examineTime;
|
|
|
+ this.examineStatus = res.data.items[0].examineStatus;
|
|
|
this.saveDataList = this.deepCopy(res.data.items);
|
|
|
this.dataList = res.data.items;
|
|
|
- this;
|
|
|
},
|
|
|
goBack() {
|
|
|
this.$parent.showPage = 1;
|