|
|
@@ -243,6 +243,8 @@
|
|
|
<el-button type="danger" plain size="small" :disabled="selecPickList.length == 0"
|
|
|
@click="allClick('撤销生成')">撤销生成费用</el-button>
|
|
|
<el-button type="warning" plain size="small" @click="allClick('批量导入费用')">批量导入费用</el-button>
|
|
|
+ <el-button type="danger" plain size="small" :disabled="selecPickList.length == 0"
|
|
|
+ @click="allClick('撤销导入')">撤销导入</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</el-tab-pane>
|
|
|
@@ -282,9 +284,13 @@
|
|
|
<el-button type="info" plain size="small" @click="allClick('D费用一键编辑')">一键编辑</el-button>
|
|
|
<el-button type="danger" plain size="small" :disabled="selectionfeedList.length == 0"
|
|
|
@click="allClick('D费用批量删除')">批量删除</el-button>
|
|
|
+ <el-button type="primary" plain size="small" :disabled="selectionfeedList.length == 0"
|
|
|
+ @click="allClick('D发票申请')">发票申请</el-button>
|
|
|
<el-button type="primary" plain size="small"
|
|
|
:disabled="(selectionfeedList.length == 0 && selectionfeecList.length == 0)"
|
|
|
@click="allClick('D费用申请')">请核费用</el-button>
|
|
|
+ <el-button type="danger" plain size="small" :disabled="disabled || selectionfeecList.length == 0"
|
|
|
+ @click="allClick('D撤销请核')">撤销请核</el-button>
|
|
|
<!-- <el-button type="primary" plain size="small" :disabled="editDisabled">计算超期箱使费</el-button> -->
|
|
|
<!-- <el-button type="primary" plain size="small" @click="$refs.printC.openDialog()">打印账单</el-button> -->
|
|
|
</template>
|
|
|
@@ -375,6 +381,12 @@
|
|
|
<el-button type="info" plain size="small" @click="allClick('C费用一键编辑')">一键编辑</el-button>
|
|
|
<el-button type="danger" plain size="small" :disabled="selectionfeecList.length == 0"
|
|
|
@click="allClick('C费用批量删除')">批量删除</el-button>
|
|
|
+ <el-button type="primary" plain size="small" :disabled="selectionfeecList.length == 0"
|
|
|
+ @click="allClick('C付费申请')">付费申请</el-button>
|
|
|
+ <el-button type="primary" plain size="small" :disabled="selectionfeedList.length"
|
|
|
+ @click="allClick('C费用申请')">请核费用</el-button>
|
|
|
+ <el-button type="danger" plain size="small" :disabled="disabled || selectionfeecList.length == 0"
|
|
|
+ @click="allClick('C撤销请核')">撤销请核</el-button>
|
|
|
<!-- <el-button type="primary" plain size="small" :disabled="editDisabled || selectionfeecList.length == 0"
|
|
|
@click="allClick('C费用申请')">请核费用</el-button> -->
|
|
|
<!-- <el-button type="primary" plain size="small" @click="$refs.printC.openDialog()">打印账单</el-button> -->
|
|
|
@@ -594,9 +606,10 @@
|
|
|
</template>
|
|
|
<template slot="menu" slot-scope="{ row, index }">
|
|
|
<el-button size="small" icon="el-icon-edit" type="text" @click="rowEdit(row, index)"
|
|
|
- :disabled="editDisabled || feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">{{ row.$cellEdit
|
|
|
- ? '保存' :
|
|
|
- '编辑'
|
|
|
+ :disabled="editDisabled || feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">{{
|
|
|
+ row.$cellEdit
|
|
|
+ ? '保存' :
|
|
|
+ '编辑'
|
|
|
}}</el-button>
|
|
|
<el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
|
|
|
:disabled="editDisabled || feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">删除</el-button>
|
|
|
@@ -650,7 +663,9 @@ import {
|
|
|
feeList,
|
|
|
bfeesList,
|
|
|
mergeGenerateCost,
|
|
|
- revokeMergeGenerateCost
|
|
|
+ revokeMergeGenerateCost,
|
|
|
+ revokePickUpCost,
|
|
|
+ revokeCheckPleaseVerifyCost
|
|
|
} from "@/api/boxManagement/buyContainer";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
import containerNumber from "@/components/dicSelect/containerNumber";
|
|
|
@@ -3101,7 +3116,7 @@ export default {
|
|
|
}
|
|
|
this.activationDialog = true
|
|
|
}
|
|
|
- if (name == '撤销启用') {
|
|
|
+ if (name == '撤销启用') {
|
|
|
this.$confirm("确认撤销启用?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
@@ -3426,6 +3441,53 @@ export default {
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
+ if (name == 'D发票申请') {
|
|
|
+ if (this.selectionfeedList.length == 0) return this.$message.error("请选择费用");
|
|
|
+ if (this.selectionfeedList.length != this.selectionfeedList.filter(e => e.corpCnName == this.selectionfeedList[0].corpCnName).length) return this.$message.error("请选择相同的结算单位");
|
|
|
+ if (this.selectionfeedList.filter(e => e.auditStatus != 4).length) return this.$message.error("请选择审核通过的费用");
|
|
|
+ if (this.$store.getters.finappStatus) {
|
|
|
+ this.$alert("发票申请页面已存在,请关闭发票申请再进行操作", "温馨提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ type: 'warning',
|
|
|
+ callback: action => {
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$router.push({
|
|
|
+ path: `/iosBasicData/financialManagement/fininvoicesApplyfor/index`,
|
|
|
+ query: {
|
|
|
+ // mblno: this.form.mblno,
|
|
|
+ corpCnName: this.selectionfeedList[0].corpCnName,
|
|
|
+ corpEnName: this.selectionfeedList[0].corpEnName,
|
|
|
+ corpId: this.selectionfeedList[0].corpId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ if (name == 'C付费申请') {
|
|
|
+ if (this.selectionfeecList.length == 0) return this.$message.error("请选择费用");
|
|
|
+ if (this.selectionfeecList.filter(e => e.auditStatus != 4).length) return this.$message.error("请选择审核通过的费用");
|
|
|
+ if (this.selectionfeecList.length != this.selectionfeecList.filter(e => e.corpCnName == this.selectionfeecList[0].corpCnName).length) return this.$message.error("请选择相同的结算单位");
|
|
|
+ if (this.$store.getters.payAppStatus) {
|
|
|
+ this.$alert("付费申请页面已存在,请关闭付费申请再进行操作", "温馨提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ type: 'warning',
|
|
|
+ callback: action => {
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$router.push({
|
|
|
+ path: `/iosBasicData/financialManagement/PaymentApplication/index`,
|
|
|
+ query: {
|
|
|
+ // mblno: this.form.mblno,
|
|
|
+ corpCnName: this.selectionfeecList[0].corpCnName,
|
|
|
+ corpEnName: this.selectionfeecList[0].corpEnName,
|
|
|
+ corpId: this.selectionfeecList[0].corpId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
if (name == 'C费用申请') {
|
|
|
for (let row of this.selectionfeecList) {
|
|
|
if (!row.id) {
|
|
|
@@ -3466,6 +3528,87 @@ export default {
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
+ if (name == 'D撤销请核') {
|
|
|
+ for (let row of this.selectionfeedList) {
|
|
|
+ if (!row.id) {
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
+ }
|
|
|
+ if (row.auditStatus == 0) {
|
|
|
+ return this.$message.error("未申请费用,不允许撤销");
|
|
|
+ }
|
|
|
+ if (row.auditStatus > 2) {
|
|
|
+ return this.$message.error("费用已经审核通过,请使用申请修改和删除功能!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$confirm("确定撤销请核?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ let obj = {}
|
|
|
+ obj = {
|
|
|
+ srcId: this.form.id,
|
|
|
+ srcType: this.form.type,
|
|
|
+ feeCenterList: this.selectionfeedList,
|
|
|
+ url: '/ow/owPut/index',
|
|
|
+ pageStatus: '',
|
|
|
+ pageLabel: 'OW(放)',
|
|
|
+ }
|
|
|
+ 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.getDetail(this.form.id)
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ if (name == 'C撤销请核') {
|
|
|
+ for (let row of this.selectionfeecList) {
|
|
|
+ if (!row.id) {
|
|
|
+ return this.$message.error("请保存费用明细");
|
|
|
+ }
|
|
|
+ if (row.auditStatus == 0) {
|
|
|
+ return this.$message.error("未申请费用,不允许撤销");
|
|
|
+ }
|
|
|
+ if (row.auditStatus > 2) {
|
|
|
+ return this.$message.error("费用已经审核通过,请使用申请修改和删除功能!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$confirm("确定撤销请核?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ let obj = {}
|
|
|
+ obj = {
|
|
|
+ srcId: this.form.id,
|
|
|
+ srcType: this.form.type,
|
|
|
+ feeCenterList: this.selectionfeecList,
|
|
|
+ url: '/ow/owPut/index',
|
|
|
+ pageStatus: '',
|
|
|
+ pageLabel: 'OW(放)',
|
|
|
+ }
|
|
|
+ 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.getDetail(this.form.id)
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ });
|
|
|
+ }
|
|
|
if (name == '批量导入费用') {
|
|
|
this.checkRate(null, this.form.effectiveDate, null, 1, this.deptId)
|
|
|
this.$DialogForm.show({
|
|
|
@@ -3616,6 +3759,25 @@ export default {
|
|
|
this.getPick()
|
|
|
})
|
|
|
}
|
|
|
+ if (name == '撤销导入') {
|
|
|
+ let ids = []
|
|
|
+ for (let item of this.selecPickList) {
|
|
|
+ if (item.whetherGenerateCost == 0) {
|
|
|
+ return this.$message.error("请选择要撤销的明细");
|
|
|
+ }
|
|
|
+ ids.push(item.id)
|
|
|
+ }
|
|
|
+
|
|
|
+ let obj = {
|
|
|
+ id: this.form.id,
|
|
|
+ itemIds: ids.join(',')
|
|
|
+ }
|
|
|
+ revokePickUpCost(obj).then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.getDetail(this.form.id)
|
|
|
+ this.getPick()
|
|
|
+ })
|
|
|
+ }
|
|
|
if (name == '合并生成2') {
|
|
|
for (let item of this.selecPickList) {
|
|
|
if (item.whetherGenerateCost == 1) {
|