|
|
@@ -82,6 +82,8 @@
|
|
|
:disabled="disabled || pleasereviewType" @click="allClick('发票申请', 'D')">发票申请</el-button>
|
|
|
<el-button type="primary" plain size="small" :disabled="disabled || selectionDList.length == 0"
|
|
|
@click="allClick('D费用申请')">请核费用</el-button>
|
|
|
+ <el-button type="danger" plain size="small" :disabled="disabled || selectionDList.length == 0"
|
|
|
+ @click="allClick('D撤销请核')">撤销请核</el-button>
|
|
|
</template>
|
|
|
<template slot="indexHeader" slot-scope="scope">
|
|
|
<el-button v-if="isFeeEditD" type="primary" size="small" icon="el-icon-plus" circle
|
|
|
@@ -230,6 +232,8 @@
|
|
|
@click="allClick('付费申请', 'C')">付费申请</el-button>
|
|
|
<el-button type="primary" plain size="small" :disabled="disabled || selectionCList.length == 0"
|
|
|
@click="allClick('C费用申请')">请核费用</el-button>
|
|
|
+ <el-button type="danger" plain size="small" :disabled="disabled || selectionCList.length == 0"
|
|
|
+ @click="allClick('C撤销请核')">撤销请核</el-button>
|
|
|
<!-- <el-button type="success" plain size="small" :disabled="disabled"
|
|
|
@click="allClick('提取成本')">提取成本</el-button> -->
|
|
|
</template>
|
|
|
@@ -631,7 +635,8 @@ import {
|
|
|
finaccbillsGenerateBill,
|
|
|
finaccbillsRevokeBill,
|
|
|
getFeeCenterCorpIds,
|
|
|
- pleaseVerifyCost
|
|
|
+ pleaseVerifyCost,
|
|
|
+ revokeCheckPleaseVerifyCost
|
|
|
} from "@/api/iosBasicData/feecenter";
|
|
|
import { getWorkDicts } from "@/api/system/dictbiz";
|
|
|
import {
|
|
|
@@ -1504,7 +1509,7 @@ export default {
|
|
|
value: 'packingUnit',
|
|
|
},
|
|
|
{
|
|
|
- name: '船公司',
|
|
|
+ name: '承运人',
|
|
|
value: 'carrierCnName',
|
|
|
},
|
|
|
// {
|
|
|
@@ -3109,6 +3114,52 @@ export default {
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
+ if (name == 'D撤销请核') {
|
|
|
+ // let selecList = [...this.selectionDList, ...this.selectionCList]
|
|
|
+ if (popupReminder(this.assemblyForm, this.messageData)) {
|
|
|
+ this.$confirm(popupReminder(this.assemblyForm, this.messageData), {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for (let row of this.selectionDList) {
|
|
|
+ if (!row.id) {
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
+ }
|
|
|
+ if (row.auditStatus == 0) {
|
|
|
+ return this.$message.error("未申请费用,不允许撤销");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$confirm("确定撤销请核?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ let obj = {}
|
|
|
+ obj = {
|
|
|
+ srcId: this.assemblyForm.id,
|
|
|
+ srcType: 'HYCK',
|
|
|
+ feeCenterList: this.selectionDList,
|
|
|
+ url: '/iosBasicData/SeafreightExportF/bills/index',
|
|
|
+ pageStatus: 'this.$store.getters.approvalDetails',
|
|
|
+ pageLabel: '海运出口(F)',
|
|
|
+ }
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(255,255,255,0.7)'
|
|
|
+ });
|
|
|
+ revokeCheckPleaseVerifyCost(obj).then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.$emit('billsDetailfun')
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ });
|
|
|
+ }
|
|
|
if (name == 'C费用申请') {
|
|
|
if (popupReminder(this.assemblyForm, this.messageData)) {
|
|
|
this.$confirm(popupReminder(this.assemblyForm, this.messageData), {
|
|
|
@@ -3143,6 +3194,7 @@ export default {
|
|
|
url: '/iosBasicData/SeafreightExportF/bills/index',
|
|
|
pageStatus: 'this.$store.getters.approvalDetails',
|
|
|
pageLabel: '海运出口(F)',
|
|
|
+ dc: 'C'
|
|
|
}
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
@@ -3158,6 +3210,53 @@ export default {
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
+ if (name == 'C撤销请核') {
|
|
|
+ // let selecList = [...this.selectionDList, ...this.selectionCList]
|
|
|
+ if (popupReminder(this.assemblyForm, this.messageData)) {
|
|
|
+ this.$confirm(popupReminder(this.assemblyForm, this.messageData), {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for (let row of this.selectionCList) {
|
|
|
+ if (!row.id) {
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
+ }
|
|
|
+ if (row.auditStatus == 0) {
|
|
|
+ return this.$message.error("未申请费用,不允许撤销");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$confirm("确定撤销请核?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ let obj = {}
|
|
|
+ obj = {
|
|
|
+ srcId: this.assemblyForm.id,
|
|
|
+ srcType: 'HYCK',
|
|
|
+ feeCenterList: this.selectionCList,
|
|
|
+ url: '/iosBasicData/SeafreightExportF/bills/index',
|
|
|
+ pageStatus: 'this.$store.getters.approvalDetails',
|
|
|
+ pageLabel: '海运出口(F)',
|
|
|
+ dc: 'C'
|
|
|
+ }
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(255,255,255,0.7)'
|
|
|
+ });
|
|
|
+ revokeCheckPleaseVerifyCost(obj).then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.$emit('billsDetailfun')
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ });
|
|
|
+ }
|
|
|
if (name == '提取成本') {
|
|
|
if (!this.assemblyForm.polId) {
|
|
|
return this.$message.error("请选择装货港");
|