|
@@ -232,6 +232,7 @@
|
|
|
align="center"
|
|
|
class-name="small-padding fixed-width"
|
|
|
min-width="180"
|
|
|
+ fixed="right"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -248,7 +249,10 @@
|
|
|
icon="el-icon-view"
|
|
|
@click="check(scope.row, 1)"
|
|
|
v-hasPermi="['finance:payment:edit']"
|
|
|
- v-if="scope.row.fBillstatus == 4 || scope.row.fBillstatus == 5"
|
|
|
+ v-if="
|
|
|
+ scope.row.fBillstatus == '提交审核' ||
|
|
|
+ scope.row.fBillstatus == '审核中'
|
|
|
+ "
|
|
|
>审批进度</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -257,7 +261,11 @@
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['finance:payment:edit']"
|
|
|
- v-if="scope.row.fBillstatus <= 3"
|
|
|
+ v-if="
|
|
|
+ scope.row.fBillstatus == '保存' ||
|
|
|
+ scope.row.fBillstatus == '暂存' ||
|
|
|
+ scope.row.fBillstatus == '审批驳回'
|
|
|
+ "
|
|
|
>修改
|
|
|
</el-button>
|
|
|
<el-button
|
|
@@ -266,7 +274,11 @@
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['finance:payment:remove']"
|
|
|
- v-if="scope.row.fBillstatus <= 3"
|
|
|
+ v-if="
|
|
|
+ scope.row.fBillstatus == '保存' ||
|
|
|
+ scope.row.fBillstatus == '暂存' ||
|
|
|
+ scope.row.fBillstatus == '审批驳回'
|
|
|
+ "
|
|
|
>删除
|
|
|
</el-button>
|
|
|
<!-- <el-button-->
|
|
@@ -461,12 +473,12 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="业务类型">
|
|
|
+ <el-form-item label="业务类型" prop="fSystemType">
|
|
|
<el-select
|
|
|
- v-model="typevalue"
|
|
|
+ v-model="queryParams.fSystemType"
|
|
|
placeholder="请选择业务类型"
|
|
|
size="small"
|
|
|
- :disabled="notChange"
|
|
|
+ disabled
|
|
|
style="width: 200px"
|
|
|
>
|
|
|
<el-option
|
|
@@ -497,7 +509,7 @@
|
|
|
>确认付费</el-button
|
|
|
>
|
|
|
<el-button type="warning" size="small" @click="handleExportItems"
|
|
|
- >导出</el-button
|
|
|
+ >导出</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="success"
|
|
@@ -989,7 +1001,7 @@ import {
|
|
|
delCharge_ss,
|
|
|
backCharge,
|
|
|
revocation,
|
|
|
- exportWarehousebillsitems
|
|
|
+ exportWarehousebillsitems,
|
|
|
} from "@/api/finance/payment";
|
|
|
import { listFees } from "@/api/basicdata/fees";
|
|
|
import print from "print-js";
|
|
@@ -997,6 +1009,7 @@ import AddOrUpdate from "@/views/viewApproval";
|
|
|
import ApprovalComments from "@/views/startApproval";
|
|
|
import { queryUserVal } from "@/api/warehouseBusiness/agreement";
|
|
|
import Global from "@/layout/components/global";
|
|
|
+import Cookies from "js-cookie";
|
|
|
import Vue from "vue";
|
|
|
Vue.directive("dialogDrag", {
|
|
|
bind(el, binding, vnode, oldVnode) {
|
|
@@ -1204,6 +1217,7 @@ export default {
|
|
|
ApprovalComments,
|
|
|
},
|
|
|
created() {
|
|
|
+ this.typevalue = Cookies.get("sysType");
|
|
|
this.getList();
|
|
|
this.register();
|
|
|
this.getDicts("st_in_type").then((response) => {
|
|
@@ -1353,28 +1367,31 @@ export default {
|
|
|
fFeesName: "", //结算单位
|
|
|
fCorpid: "", //结算单位ID
|
|
|
};
|
|
|
- //大木
|
|
|
- getCharge(this.approval.billId).then((response) => {
|
|
|
- this.Operator = response.data.tFee.createBy;
|
|
|
- this.increase_s = response.data.feeDoList;
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- this.queryParams = response.data.tFee;
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- this.fMblnoOptions = response.data.corps;
|
|
|
- this.open = true;
|
|
|
- this.title = "修改付费列表";
|
|
|
- });
|
|
|
- //车队
|
|
|
- // getCharges(this.approval.billId).then((response) => {
|
|
|
- // this.Operator = response.data.tFee.createBy;
|
|
|
- // this.increase_s = response.data.feeDoList;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.queryParams = response.data.tFee;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.fMblnoOptions = response.data.corps;
|
|
|
- // this.open = true;
|
|
|
- // this.title = "修改付费列表";
|
|
|
- // });
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
+ //大木
|
|
|
+ getCharge(this.approval.billId).then((response) => {
|
|
|
+ this.Operator = response.data.tFee.createBy;
|
|
|
+ this.increase_s = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "修改付费列表";
|
|
|
+ });
|
|
|
+ } else if (Cookies.get("sysType") == 2) {
|
|
|
+ //车队
|
|
|
+ getCharges(this.approval.billId).then((response) => {
|
|
|
+ this.Operator = response.data.tFee.createBy;
|
|
|
+ this.increase_s = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "修改付费列表";
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
homePage() {
|
|
@@ -1441,21 +1458,46 @@ export default {
|
|
|
// 查看按钮
|
|
|
check(row, res) {
|
|
|
this.notChange = true;
|
|
|
- //大木
|
|
|
- getCharge(row.fId).then((response) => {
|
|
|
- this.Operator = response.data.tFee.createBy;
|
|
|
- this.increase_s = response.data.feeDoList;
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- this.queryParams = response.data.tFee;
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- this.fMblnoOptions = response.data.corps;
|
|
|
- this.open = true;
|
|
|
- this.title = "付费列表";
|
|
|
- this.tablefilter = true;
|
|
|
- if (res == 1) {
|
|
|
- this.notChange = true;
|
|
|
- if (this.Operator == this.Lander) {
|
|
|
- this.tablefilter = false;
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
+ //大木
|
|
|
+ getCharge(row.fId).then((response) => {
|
|
|
+ this.Operator = response.data.tFee.createBy;
|
|
|
+ this.increase_s = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "付费列表";
|
|
|
+ this.tablefilter = true;
|
|
|
+ if (res == 1) {
|
|
|
+ this.notChange = true;
|
|
|
+ if (this.Operator == this.Lander) {
|
|
|
+ this.tablefilter = false;
|
|
|
+ this.reset();
|
|
|
+ this.pass = {
|
|
|
+ fAmtdr: 0, //应收合计
|
|
|
+ fAmtcr: 0, //应付合计
|
|
|
+ fMblno: "", //提单号
|
|
|
+ fName: "", //货权方
|
|
|
+ fFeesName: "", //结算单位
|
|
|
+ fCorpid: "", //结算单位ID
|
|
|
+ };
|
|
|
+ const fId = row.fId || this.ids;
|
|
|
+ getCharge(fId).then((response) => {
|
|
|
+ this.increase_s = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.notChange = true;
|
|
|
+ // this.$message.error('未知异常,请联系管理员')
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.notChange = true;
|
|
|
this.reset();
|
|
|
this.pass = {
|
|
|
fAmtdr: 0, //应收合计
|
|
@@ -1474,91 +1516,69 @@ export default {
|
|
|
this.fMblnoOptions = response.data.corps;
|
|
|
this.open = true;
|
|
|
});
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if (Cookies.get("sysType") == 2) {
|
|
|
+ //车队
|
|
|
+ getCharges(row.fId).then((response) => {
|
|
|
+ this.Operator = response.data.tFee.createBy;
|
|
|
+ this.increase_s = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "付费列表";
|
|
|
+ this.tablefilter = true;
|
|
|
+ if (res == 1) {
|
|
|
+ this.notChange = true;
|
|
|
+ if (this.Operator == this.Lander) {
|
|
|
+ this.tablefilter = false;
|
|
|
+ this.reset();
|
|
|
+ this.pass = {
|
|
|
+ fAmtdr: 0, //应收合计
|
|
|
+ fAmtcr: 0, //应付合计
|
|
|
+ fMblno: "", //提单号
|
|
|
+ fName: "", //货权方
|
|
|
+ fFeesName: "", //结算单位
|
|
|
+ fCorpid: "", //结算单位ID
|
|
|
+ };
|
|
|
+ const fId = row.fId || this.ids;
|
|
|
+ getCharges(fId).then((response) => {
|
|
|
+ this.increase_s = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.notChange = true;
|
|
|
+ // this.$message.error('未知异常,请联系管理员')
|
|
|
+ }
|
|
|
} else {
|
|
|
this.notChange = true;
|
|
|
- // this.$message.error('未知异常,请联系管理员')
|
|
|
+ this.reset();
|
|
|
+ this.pass = {
|
|
|
+ fAmtdr: 0, //应收合计
|
|
|
+ fAmtcr: 0, //应付合计
|
|
|
+ fMblno: "", //提单号
|
|
|
+ fName: "", //货权方
|
|
|
+ fFeesName: "", //结算单位
|
|
|
+ fCorpid: "", //结算单位ID
|
|
|
+ };
|
|
|
+ const fId = row.fId || this.ids;
|
|
|
+ getCharges(fId).then((response) => {
|
|
|
+ this.increase_s = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ });
|
|
|
}
|
|
|
- } else {
|
|
|
- this.notChange = true;
|
|
|
- this.reset();
|
|
|
- this.pass = {
|
|
|
- fAmtdr: 0, //应收合计
|
|
|
- fAmtcr: 0, //应付合计
|
|
|
- fMblno: "", //提单号
|
|
|
- fName: "", //货权方
|
|
|
- fFeesName: "", //结算单位
|
|
|
- fCorpid: "", //结算单位ID
|
|
|
- };
|
|
|
- const fId = row.fId || this.ids;
|
|
|
- getCharge(fId).then((response) => {
|
|
|
- this.increase_s = response.data.feeDoList;
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- this.queryParams = response.data.tFee;
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- this.fMblnoOptions = response.data.corps;
|
|
|
- this.open = true;
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- //车队
|
|
|
- // getCharges(row.fId).then((response) => {
|
|
|
- // this.Operator = response.data.tFee.createBy;
|
|
|
- // this.increase_s = response.data.feeDoList;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.queryParams = response.data.tFee;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.fMblnoOptions = response.data.corps;
|
|
|
- // this.open = true;
|
|
|
- // this.title = "付费列表";
|
|
|
- // this.tablefilter = true;
|
|
|
- // if (res == 1) {
|
|
|
- // this.notChange = true;
|
|
|
- // if (this.Operator == this.Lander) {
|
|
|
- // this.tablefilter = false;
|
|
|
- // this.reset();
|
|
|
- // this.pass = {
|
|
|
- // fAmtdr: 0, //应收合计
|
|
|
- // fAmtcr: 0, //应付合计
|
|
|
- // fMblno: "", //提单号
|
|
|
- // fName: "", //货权方
|
|
|
- // fFeesName: "", //结算单位
|
|
|
- // fCorpid: "", //结算单位ID
|
|
|
- // };
|
|
|
- // const fId = row.fId || this.ids;
|
|
|
- // getCharges(fId).then((response) => {
|
|
|
- // this.increase_s = response.data.feeDoList;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.queryParams = response.data.tFee;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.fMblnoOptions = response.data.corps;
|
|
|
- // this.open = true;
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // this.notChange = true;
|
|
|
- // // this.$message.error('未知异常,请联系管理员')
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // this.notChange = true;
|
|
|
- // this.reset();
|
|
|
- // this.pass = {
|
|
|
- // fAmtdr: 0, //应收合计
|
|
|
- // fAmtcr: 0, //应付合计
|
|
|
- // fMblno: "", //提单号
|
|
|
- // fName: "", //货权方
|
|
|
- // fFeesName: "", //结算单位
|
|
|
- // fCorpid: "", //结算单位ID
|
|
|
- // };
|
|
|
- // const fId = row.fId || this.ids;
|
|
|
- // getCharges(fId).then((response) => {
|
|
|
- // this.increase_s = response.data.feeDoList;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.queryParams = response.data.tFee;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.fMblnoOptions = response.data.corps;
|
|
|
- // this.open = true;
|
|
|
- // });
|
|
|
- // }
|
|
|
- // });
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
//打印功能
|
|
|
printing() {
|
|
@@ -1599,7 +1619,7 @@ export default {
|
|
|
let formDate = new window.FormData();
|
|
|
formDate.append("tFee", JSON.stringify(this.queryParams));
|
|
|
formDate.append("tFeeDo", JSON.stringify(this.increase_s));
|
|
|
- if (this.typevalue == 1) {
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
collectFee(formDate).then((response) => {
|
|
|
this.msgSuccess("操作成功");
|
|
|
this.open = false;
|
|
@@ -1619,7 +1639,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
charGe() {
|
|
|
- if (!this.typevalue) {
|
|
|
+ if (!Cookies.get("sysType")) {
|
|
|
return this.$message("请先选择业务类型");
|
|
|
}
|
|
|
this.queryParameter = {
|
|
@@ -1752,18 +1772,21 @@ export default {
|
|
|
this.getDicts("approval_process").then((response) => {
|
|
|
this.options = response.data;
|
|
|
});
|
|
|
- //大木
|
|
|
- listCharge(this.tableFilter).then(response => {
|
|
|
- this.chargeList = response.rows
|
|
|
- this.total = response.total
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
- //车队
|
|
|
- // listCharges(this.tableFilter).then((response) => {
|
|
|
- // this.chargeList = response.rows;
|
|
|
- // this.total = response.total;
|
|
|
- // this.loading = false;
|
|
|
- // });
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
+ //大木
|
|
|
+ listCharge(this.tableFilter).then((response) => {
|
|
|
+ this.chargeList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ } else if (Cookies.get("sysType") == 2) {
|
|
|
+ //车队
|
|
|
+ listCharges(this.tableFilter).then((response) => {
|
|
|
+ this.chargeList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
@@ -1805,7 +1828,7 @@ export default {
|
|
|
this.chargeList_s = [];
|
|
|
if (this.queryParameter.fStatementNo) {
|
|
|
this.rules = {};
|
|
|
- if (this.typevalue == 1) {
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
search(this.queryParameter).then((response) => {
|
|
|
this.chargeList_s = response.rows;
|
|
|
this.$message.success("查询成功");
|
|
@@ -1832,7 +1855,7 @@ export default {
|
|
|
if (this.rules) {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- if (this.typevalue == 1) {
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
search(this.queryParameter).then((response) => {
|
|
|
this.chargeList_s = response.rows;
|
|
|
if (this.chargeList_s.length !== 0) {
|
|
@@ -1949,6 +1972,7 @@ export default {
|
|
|
invoiceNo: null,
|
|
|
bank: null,
|
|
|
waterBillNo: null,
|
|
|
+ fSystemType: Cookies.get("sysType"),
|
|
|
};
|
|
|
this.resetForm("queryParams");
|
|
|
this.open = true;
|
|
@@ -1969,28 +1993,31 @@ export default {
|
|
|
fCorpid: "", //结算单位ID
|
|
|
};
|
|
|
const fId = row.fId || this.ids;
|
|
|
- //车队
|
|
|
- // getCharges(fId).then((response) => {
|
|
|
- // this.Operator = response.data.tFee.createBy;
|
|
|
- // this.increase_s = response.data.feeDoList;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.queryParams = response.data.tFee;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.fMblnoOptions = response.data.corps;
|
|
|
- // this.open = true;
|
|
|
- // this.title = "修改付费列表";
|
|
|
- // });
|
|
|
- //大木
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
+ //大木
|
|
|
getCharge(fId).then((response) => {
|
|
|
- this.Operator = response.data.tFee.createBy;
|
|
|
- this.increase_s = response.data.feeDoList;
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- this.queryParams = response.data.tFee;
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- this.fMblnoOptions = response.data.corps;
|
|
|
- this.open = true;
|
|
|
- this.title = "修改付费列表";
|
|
|
- });
|
|
|
+ this.Operator = response.data.tFee.createBy;
|
|
|
+ this.increase_s = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "修改付费列表";
|
|
|
+ });
|
|
|
+ } else if (Cookies.get("sysType") == 2) {
|
|
|
+ //车队
|
|
|
+ getCharges(fId).then((response) => {
|
|
|
+ this.Operator = response.data.tFee.createBy;
|
|
|
+ this.increase_s = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "修改付费列表";
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
@@ -2002,7 +2029,7 @@ export default {
|
|
|
let formData = new window.FormData();
|
|
|
formData.append("tFee", JSON.stringify(this.queryParams));
|
|
|
formData.append("tFeeDo", JSON.stringify(this.increase_s));
|
|
|
- if (this.typevalue == 1) {
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
addCharge(formData).then((response) => {
|
|
|
this.msgSuccess("新增成功");
|
|
|
// this.increase_s = []
|
|
@@ -2032,7 +2059,7 @@ export default {
|
|
|
let formData = new window.FormData();
|
|
|
formData.append("tFee", JSON.stringify(this.queryParams));
|
|
|
formData.append("tFeeDo", JSON.stringify(this.increase_s));
|
|
|
- if (this.typevalue == 1) {
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
addCharge(formData).then((response) => {
|
|
|
this.msgSuccess("修改成功");
|
|
|
// this.increase_s = []
|
|
@@ -2055,50 +2082,53 @@ export default {
|
|
|
handleDelete(row) {
|
|
|
const fIds = row.fId || this.ids;
|
|
|
let tips = "";
|
|
|
- //大木
|
|
|
- delCharge_s(fIds).then((data) => {
|
|
|
- switch (data.msg) {
|
|
|
- case "0": {
|
|
|
- this.$message.error("当前数据已被其他操作员操作请刷新页面");
|
|
|
- break;
|
|
|
- }
|
|
|
- case "1": {
|
|
|
- tips = "当前主表有数据从表无数据是否删除";
|
|
|
- this.delete_S(fIds, tips);
|
|
|
- break;
|
|
|
- }
|
|
|
- case "2": {
|
|
|
- tips = "当前主表有数据从表有数据是否删除";
|
|
|
- this.delete_S(fIds, tips);
|
|
|
- break;
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
+ //大木
|
|
|
+ delCharge_s(fIds).then((data) => {
|
|
|
+ switch (data.msg) {
|
|
|
+ case "0": {
|
|
|
+ this.$message.error("当前数据已被其他操作员操作请刷新页面");
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case "1": {
|
|
|
+ tips = "当前主表有数据从表无数据是否删除";
|
|
|
+ this.delete_S(fIds, tips);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case "2": {
|
|
|
+ tips = "当前主表有数据从表有数据是否删除";
|
|
|
+ this.delete_S(fIds, tips);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ default: {
|
|
|
+ return this.$message.error("未知错误,无状态");
|
|
|
+ }
|
|
|
}
|
|
|
- default: {
|
|
|
- return this.$message.error("未知错误,无状态");
|
|
|
+ });
|
|
|
+ } else if (Cookies.get("sysType") == 2) {
|
|
|
+ //车队
|
|
|
+ delCharge_ss(fIds).then((data) => {
|
|
|
+ switch (data.msg) {
|
|
|
+ case "0": {
|
|
|
+ this.$message.error("当前数据已被其他操作员操作请刷新页面");
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case "1": {
|
|
|
+ tips = "当前主表有数据从表无数据是否删除";
|
|
|
+ this.delete_S(fIds, tips);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case "2": {
|
|
|
+ tips = "当前主表有数据从表有数据是否删除";
|
|
|
+ this.delete_S(fIds, tips);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ default: {
|
|
|
+ return this.$message.error("未知错误,无状态");
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
- //车队
|
|
|
- // delCharge_ss(fIds).then((data) => {
|
|
|
- // switch (data.msg) {
|
|
|
- // case "0": {
|
|
|
- // this.$message.error("当前数据已被其他操作员操作请刷新页面");
|
|
|
- // break;
|
|
|
- // }
|
|
|
- // case "1": {
|
|
|
- // tips = "当前主表有数据从表无数据是否删除";
|
|
|
- // this.delete_S(fIds, tips);
|
|
|
- // break;
|
|
|
- // }
|
|
|
- // case "2": {
|
|
|
- // tips = "当前主表有数据从表有数据是否删除";
|
|
|
- // this.delete_S(fIds, tips);
|
|
|
- // break;
|
|
|
- // }
|
|
|
- // default: {
|
|
|
- // return this.$message.error("未知错误,无状态");
|
|
|
- // }
|
|
|
- // }
|
|
|
- // });
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
delete_S(fIds, tips) {
|
|
|
this.$confirm(tips, "警告", {
|
|
@@ -2107,8 +2137,11 @@ export default {
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(function () {
|
|
|
- // return delCharge(fIds);
|
|
|
- return delCharges(fIds);
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
+ return delCharge(fIds);
|
|
|
+ } else if (Cookies.get("sysType") == 2) {
|
|
|
+ return delCharges(fIds);
|
|
|
+ }
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.getList();
|