更新
This commit is contained in:
@@ -30,6 +30,14 @@ const update = (params) => {
|
|||||||
const getCascaderList = () => {
|
const getCascaderList = () => {
|
||||||
return request.get("/oil-finance/internalCompany/getCascaderList");
|
return request.get("/oil-finance/internalCompany/getCascaderList");
|
||||||
};
|
};
|
||||||
|
// 审核
|
||||||
|
const audit = (params) => {
|
||||||
|
return request.postJson(
|
||||||
|
"/oil-finance/oilCompanyAccountReverse/refinery/audit",
|
||||||
|
params
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
//公司 远程搜索
|
//公司 远程搜索
|
||||||
// const getLikeByNameSuccess = (params) => {
|
// const getLikeByNameSuccess = (params) => {
|
||||||
// return request.postJson(
|
// return request.postJson(
|
||||||
@@ -45,5 +53,6 @@ export default {
|
|||||||
save,
|
save,
|
||||||
update,
|
update,
|
||||||
getCascaderList,
|
getCascaderList,
|
||||||
|
audit,
|
||||||
// getLikeByNameSuccess,
|
// getLikeByNameSuccess,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
:title="controlWindows.addInfo.title"
|
||||||
|
:visible.sync="controlWindows.examine"
|
||||||
|
width="40%"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="2"
|
||||||
|
:placeholder="controlWindows.addInfo.placeholder"
|
||||||
|
v-model="auditRemark"
|
||||||
|
>
|
||||||
|
</el-input>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="closeWindow">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="submit">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import serve from "api/financialCenter/enterpriseRecharge.js";
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
controlWindows: Object,
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
auditRemark: "",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
closeWindow() {
|
||||||
|
this.auditRemark = "";
|
||||||
|
this.controlWindows.addInfo = {};
|
||||||
|
this.$emit("closeWindow");
|
||||||
|
this.controlWindows.examine = false;
|
||||||
|
},
|
||||||
|
submit() {
|
||||||
|
serve
|
||||||
|
.audit({
|
||||||
|
auditRemark: this.auditRemark,
|
||||||
|
...this.controlWindows.addInfo,
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
this.$message.success(res.msg);
|
||||||
|
this.closeWindow();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style></style>
|
||||||
@@ -195,12 +195,20 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="交易审核标识" show-overflow-tooltip>
|
<el-table-column label="交易审核标识" show-overflow-tooltip>
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
{{
|
<el-button
|
||||||
auditMarkEnum.find((item) => item.value === row.auditMark).label
|
@click="examine(row)"
|
||||||
}}
|
:type="
|
||||||
|
auditMarkEnum.find((item) => item.value === row.auditMark).type
|
||||||
|
"
|
||||||
|
size="mini"
|
||||||
|
>{{
|
||||||
|
auditMarkEnum.find((item) => item.value === row.auditMark).label
|
||||||
|
}}</el-button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="赊账还款审核">
|
|
||||||
|
<!-- <el-table-column label="赊账还款审核">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<p v-if="row.transactionType && row.chargeSalesAuditMark">
|
<p v-if="row.transactionType && row.chargeSalesAuditMark">
|
||||||
{{
|
{{
|
||||||
@@ -214,7 +222,7 @@
|
|||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="createTime"
|
prop="createTime"
|
||||||
@@ -256,7 +264,9 @@
|
|||||||
<!-- 分页 -->
|
<!-- 分页 -->
|
||||||
<pagination :parameter="parameter" @searchAgain="getByPage" />
|
<pagination :parameter="parameter" @searchAgain="getByPage" />
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 企业充值 -->
|
||||||
<add :controlWindows="controlWindows" @closeWindow="search" />
|
<add :controlWindows="controlWindows" @closeWindow="search" />
|
||||||
|
<!-- 圈回 -->
|
||||||
<add-turn :controlWindows="controlWindows" @closeWindow="search" />
|
<add-turn :controlWindows="controlWindows" @closeWindow="search" />
|
||||||
<!-- 详情 -->
|
<!-- 详情 -->
|
||||||
<el-drawer
|
<el-drawer
|
||||||
@@ -280,8 +290,14 @@
|
|||||||
:src="oilCompanyMatch.offlineTransactionProof"
|
:src="oilCompanyMatch.offlineTransactionProof"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="controlWindows.addInfo.examineMark" #footer>
|
||||||
|
<el-button type="success" @click="examineAdopt">审核通过</el-button>
|
||||||
|
<el-button type="danger" @click="examineFail">审核不通过</el-button>
|
||||||
|
</template>
|
||||||
</general-details>
|
</general-details>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
<!-- 审核 -->
|
||||||
|
<examine :controlWindows="controlWindows" @closeWindow="search" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -291,6 +307,7 @@ import commonServe from "api/common.js";
|
|||||||
|
|
||||||
import add from "./components/add.vue";
|
import add from "./components/add.vue";
|
||||||
import addTurn from "./components/addTurn.vue";
|
import addTurn from "./components/addTurn.vue";
|
||||||
|
import examine from "./components/examine.vue";
|
||||||
|
|
||||||
import autocomplete from "components/autocomplete/index.vue";
|
import autocomplete from "components/autocomplete/index.vue";
|
||||||
import pagination from "components/pagination/index.vue";
|
import pagination from "components/pagination/index.vue";
|
||||||
@@ -306,6 +323,8 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
add,
|
add,
|
||||||
addTurn,
|
addTurn,
|
||||||
|
examine,
|
||||||
|
|
||||||
pagination,
|
pagination,
|
||||||
autocomplete,
|
autocomplete,
|
||||||
generalDetails,
|
generalDetails,
|
||||||
@@ -317,6 +336,7 @@ export default {
|
|||||||
addTurn: false,
|
addTurn: false,
|
||||||
addInfo: {},
|
addInfo: {},
|
||||||
detail: false,
|
detail: false,
|
||||||
|
examine: false,
|
||||||
},
|
},
|
||||||
rechargeTypeEnum: [
|
rechargeTypeEnum: [
|
||||||
{
|
{
|
||||||
@@ -337,14 +357,17 @@ export default {
|
|||||||
{
|
{
|
||||||
label: "待审核",
|
label: "待审核",
|
||||||
value: 0,
|
value: 0,
|
||||||
|
type: "warning",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "已审核",
|
label: "审核通过",
|
||||||
value: 1,
|
value: 1,
|
||||||
|
type: "success",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "审核失败",
|
label: "审核失败",
|
||||||
value: -1,
|
value: -1,
|
||||||
|
type: "danger",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
@@ -538,6 +561,41 @@ export default {
|
|||||||
};
|
};
|
||||||
this.controlWindows.addTurn = true;
|
this.controlWindows.addTurn = true;
|
||||||
},
|
},
|
||||||
|
// 审核
|
||||||
|
examine(row) {
|
||||||
|
Promise.all([
|
||||||
|
serve.get(row.id),
|
||||||
|
commonServe.getByCompanyId(row.companyId),
|
||||||
|
]).then(([firstRes, secondRes]) => {
|
||||||
|
this.oilCompanyMatch = { ...firstRes.data, ...secondRes.data };
|
||||||
|
// this.controlWindows.addInfo.examineMark = row.auditMark === 0;
|
||||||
|
this.controlWindows.addInfo = {
|
||||||
|
examineMark: row.auditMark === 0,
|
||||||
|
id: row.id,
|
||||||
|
};
|
||||||
|
this.controlWindows.detail = true;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 审核通过
|
||||||
|
examineAdopt() {
|
||||||
|
Object.assign(this.controlWindows.addInfo, {
|
||||||
|
title: "交易审核通过说明",
|
||||||
|
placeholder: "请输入交易审核通过说明",
|
||||||
|
auditMark: 1,
|
||||||
|
updateSource: "",
|
||||||
|
});
|
||||||
|
this.controlWindows.examine = true;
|
||||||
|
},
|
||||||
|
// 审核不通过
|
||||||
|
examineFail() {
|
||||||
|
Object.assign(this.controlWindows.addInfo, {
|
||||||
|
title: "交易审核不通过说明",
|
||||||
|
placeholder: "请输入交易审核不通过说明",
|
||||||
|
auditMark: -1,
|
||||||
|
updateSource: "",
|
||||||
|
});
|
||||||
|
this.controlWindows.examine = true;
|
||||||
|
},
|
||||||
// 更多
|
// 更多
|
||||||
commandMore(val, row) {
|
commandMore(val, row) {
|
||||||
this.controlWindows.addInfo = {
|
this.controlWindows.addInfo = {
|
||||||
@@ -558,6 +616,7 @@ export default {
|
|||||||
commonServe.getByCompanyId(row.companyId),
|
commonServe.getByCompanyId(row.companyId),
|
||||||
]).then(([firstRes, secondRes]) => {
|
]).then(([firstRes, secondRes]) => {
|
||||||
this.oilCompanyMatch = { ...firstRes.data, ...secondRes.data };
|
this.oilCompanyMatch = { ...firstRes.data, ...secondRes.data };
|
||||||
|
this.controlWindows.addInfo.examineMark = false;
|
||||||
this.controlWindows.detail = true;
|
this.controlWindows.detail = true;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user