|
@@ -209,7 +209,7 @@
|
|
|
>
|
|
|
<el-table-column width="100" align="center" type="selection" />
|
|
|
<!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
|
|
|
- <el-table-column label="行号" align="center" type="index" />
|
|
|
+ <el-table-column label="行号" align="center" type="index" fixed="left" />
|
|
|
|
|
|
<el-table-column
|
|
|
v-for="(item, index) in getRowList"
|
|
@@ -266,7 +266,10 @@
|
|
|
icon="el-icon-view"
|
|
|
@click="check(scope.row, 1)"
|
|
|
v-hasPermi="['finance:contrast:edit']"
|
|
|
- v-if="scope.row.fBillstatus == '提交审核' || scope.row.fBillstatus == '审核中' "
|
|
|
+ v-if="
|
|
|
+ scope.row.fBillstatus == '提交审核' ||
|
|
|
+ scope.row.fBillstatus == '审核中'
|
|
|
+ "
|
|
|
>审批进度</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -277,7 +280,7 @@
|
|
|
v-hasPermi="['finance:contrast:edit']"
|
|
|
v-if="
|
|
|
scope.row.fBillstatus == '保存' ||
|
|
|
- scope.row.fBillstatus == '暂存' ||
|
|
|
+ scope.row.fBillstatus == '暂存' ||
|
|
|
scope.row.fBillstatus == '审批驳回'
|
|
|
"
|
|
|
>
|
|
@@ -292,7 +295,7 @@
|
|
|
v-hasPermi="['finance:contrast:remove']"
|
|
|
v-if="
|
|
|
scope.row.fBillstatus == '保存' ||
|
|
|
- scope.row.fBillstatus == '暂存' ||
|
|
|
+ scope.row.fBillstatus == '暂存' ||
|
|
|
scope.row.fBillstatus == '审批驳回'
|
|
|
"
|
|
|
>删除</el-button
|
|
@@ -334,7 +337,17 @@
|
|
|
></span>
|
|
|
</span>
|
|
|
<div class="avue-crud__dialog__menu enlarge" @click="full">
|
|
|
- <i style="cursor: pointer;display: block;width:12px;height:12px;border:1px solid #909399;border-top:3px solid #909399;margin-top: -3px;"></i>
|
|
|
+ <i
|
|
|
+ style="
|
|
|
+ cursor: pointer;
|
|
|
+ display: block;
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ border: 1px solid #909399;
|
|
|
+ border-top: 3px solid #909399;
|
|
|
+ margin-top: -3px;
|
|
|
+ "
|
|
|
+ ></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -408,7 +421,6 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
<el-form-item label="录入人" prop="createBy">
|
|
|
<el-input v-model="queryParams.createBy" disabled />
|
|
|
</el-form-item>
|
|
@@ -421,9 +433,9 @@
|
|
|
:disabled="notChange"
|
|
|
/>
|
|
|
</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"
|
|
|
style="width: 200px"
|
|
@@ -617,7 +629,17 @@
|
|
|
></span>
|
|
|
</span>
|
|
|
<div class="avue-crud__dialog__menu enlarge" @click="full">
|
|
|
- <i style="cursor: pointer;display: block;width:12px;height:12px;border:1px solid #909399;border-top:3px solid #909399;margin-top: -3px;"></i>
|
|
|
+ <i
|
|
|
+ style="
|
|
|
+ cursor: pointer;
|
|
|
+ display: block;
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ border: 1px solid #909399;
|
|
|
+ border-top: 3px solid #909399;
|
|
|
+ margin-top: -3px;
|
|
|
+ "
|
|
|
+ ></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -845,8 +867,12 @@
|
|
|
<span v-else-if="scope.row.fBilltype == '1030'">司机接单</span>
|
|
|
<span v-else-if="scope.row.fBilltype == '1080'">司机出车</span>
|
|
|
<span v-else-if="scope.row.fBilltype == '1040'">司机提箱</span>
|
|
|
- <span v-else-if="scope.row.fBilltype == '1050'">司机装卸柜</span>
|
|
|
- <span v-else-if="scope.row.fBilltype == '1060'">司机还卸柜</span>
|
|
|
+ <span v-else-if="scope.row.fBilltype == '1050'"
|
|
|
+ >司机装卸柜</span
|
|
|
+ >
|
|
|
+ <span v-else-if="scope.row.fBilltype == '1060'"
|
|
|
+ >司机还卸柜</span
|
|
|
+ >
|
|
|
<span v-else-if="scope.row.fBilltype == '1070'">司机回单</span>
|
|
|
<span v-else-if="scope.row.fBilltype == '1090'">费用补充</span>
|
|
|
</template>
|
|
@@ -969,7 +995,7 @@ import {
|
|
|
listFleet,
|
|
|
getFleet,
|
|
|
delFleet,
|
|
|
- detailFleet
|
|
|
+ detailFleet,
|
|
|
} from "@/api/finance/contrast";
|
|
|
import { listCorps } from "@/api/basicdata/corps";
|
|
|
import { listFees } from "@/api/basicdata/fees";
|
|
@@ -1382,14 +1408,14 @@ export default {
|
|
|
this.getRowList = res.data.filter((e) => e.checked == 0);
|
|
|
this.setRowList = res.data;
|
|
|
this.setRowList = this.setRowList.reduce((res, item) => {
|
|
|
- res.push({
|
|
|
- surface: item.surface,
|
|
|
- label: item.label,
|
|
|
- name: item.name,
|
|
|
- checked: item.checked,
|
|
|
- width: item.width,
|
|
|
- fixed: item.fixed,
|
|
|
- });
|
|
|
+ res.push({
|
|
|
+ surface: item.surface,
|
|
|
+ label: item.label,
|
|
|
+ name: item.name,
|
|
|
+ checked: item.checked,
|
|
|
+ width: item.width,
|
|
|
+ fixed: item.fixed,
|
|
|
+ });
|
|
|
return res;
|
|
|
}, []);
|
|
|
}
|
|
@@ -1613,7 +1639,6 @@ export default {
|
|
|
let formDate = new window.FormData();
|
|
|
formDate.append("tFee", JSON.stringify(this.queryParams));
|
|
|
formDate.append("tFeeDo", JSON.stringify(this.DzfeeList));
|
|
|
-
|
|
|
Cfee(formDate).then((response) => {
|
|
|
this.open = false;
|
|
|
this.msgSuccess("操作成功");
|
|
@@ -1646,7 +1671,7 @@ export default {
|
|
|
},
|
|
|
// 对账按钮功能
|
|
|
reconciliation() {
|
|
|
- if (!this.typevalue) {
|
|
|
+ if (!this.queryParams.fSystemType) {
|
|
|
return this.$message("请先选择业务类型");
|
|
|
}
|
|
|
this.queryParameter = {
|
|
@@ -1888,7 +1913,11 @@ export default {
|
|
|
for (let item in this.feeList) {
|
|
|
this.totAL += Number(this.feeList[item].fAmt);
|
|
|
this.Ttime += Number(this.feeList[item].fAmtdr);
|
|
|
- this.$set(this.feeList[item], 'fBsdate', this.feeList[item].fBsdate.substring(0, 10))
|
|
|
+ this.$set(
|
|
|
+ this.feeList[item],
|
|
|
+ "fBsdate",
|
|
|
+ this.feeList[item].fBsdate.substring(0, 10)
|
|
|
+ );
|
|
|
}
|
|
|
} else {
|
|
|
this.$message.error("暂无数据");
|
|
@@ -1904,7 +1933,11 @@ export default {
|
|
|
for (let item in this.feeList) {
|
|
|
this.totAL += Number(this.feeList[item].fAmt);
|
|
|
this.Ttime += Number(this.feeList[item].fAmtdr);
|
|
|
- this.$set(this.feeList[item], 'fBsdate', this.feeList[item].fBsdate.substring(0, 10))
|
|
|
+ this.$set(
|
|
|
+ this.feeList[item],
|
|
|
+ "fBsdate",
|
|
|
+ this.feeList[item].fBsdate.substring(0, 10)
|
|
|
+ );
|
|
|
}
|
|
|
} else {
|
|
|
this.$message.error("暂无数据");
|
|
@@ -1926,17 +1959,19 @@ export default {
|
|
|
// this.feeList = response.rows;
|
|
|
this.options = response.data;
|
|
|
});
|
|
|
-
|
|
|
- // listFee(this.tablefilter).then((response) => {
|
|
|
- // this.contrastList = response.rows;
|
|
|
- // this.total = response.total;
|
|
|
- // this.loading = false;
|
|
|
- // });
|
|
|
- listFee(this.tablefilter).then((response) => {
|
|
|
- this.contrastList = response.rows;
|
|
|
- this.total = response.total;
|
|
|
- this.loading = false;
|
|
|
- });
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
+ listFee(this.tablefilter).then((response) => {
|
|
|
+ this.contrastList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ } else if (Cookies.get("sysType") == 2) {
|
|
|
+ listFleet(this.tablefilter).then((response) => {
|
|
|
+ this.contrastList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
// 取消按钮
|
|
@@ -1945,7 +1980,7 @@ export default {
|
|
|
// this.feeList = []
|
|
|
this.reset();
|
|
|
this.getList();
|
|
|
- this.typevalue = "";
|
|
|
+ this.queryParams.fSystemType = "";
|
|
|
},
|
|
|
// 表单重置
|
|
|
reset() {
|
|
@@ -2050,7 +2085,7 @@ export default {
|
|
|
queryUserVal().then((response) => {
|
|
|
this.queryParams.createBy = response.user.userName;
|
|
|
});
|
|
|
- this.typevalue = "";
|
|
|
+ this.queryParams.fSystemType = "";
|
|
|
this.doNot = false;
|
|
|
this.notChange = false;
|
|
|
this.hide = true;
|
|
@@ -2083,84 +2118,51 @@ export default {
|
|
|
fDeptid: null,
|
|
|
createBy: null,
|
|
|
timeReconci: null,
|
|
|
+ fSystemType: Cookies.get("sysType"),
|
|
|
};
|
|
|
},
|
|
|
// 查看按钮
|
|
|
check(row, res) {
|
|
|
this.doNot = true;
|
|
|
this.notChange = true;
|
|
|
- // getFee(row.fId).then((response) => {
|
|
|
- // this.Operator = response.data.tFee.createBy;
|
|
|
- // this.DzfeeList = 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.disappear = true;
|
|
|
- // this.title = "修改财务数据主";
|
|
|
- // if (res == 1) {
|
|
|
- // this.notChange = true;
|
|
|
- // if (this.Operator == this.Lander) {
|
|
|
- // this.disappear = false;
|
|
|
- // this.reset();
|
|
|
- // this.pass = {
|
|
|
- // fAmtdr: "", //应收合计
|
|
|
- // fAmtcr: "", //应付合计
|
|
|
- // fMblno: "", //提单号
|
|
|
- // fName: "", //货权方
|
|
|
- // fFeesName: "", //结算单位
|
|
|
- // fCorpid: "", //结算单位ID
|
|
|
- // };
|
|
|
- // const fId = row.fId || this.ids;
|
|
|
- // getFee(fId).then((response) => {
|
|
|
- // this.DzfeeList = 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;
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // this.notChange = true;
|
|
|
- // this.reset();
|
|
|
- // this.pass = {
|
|
|
- // fAmtdr: "", //应收合计
|
|
|
- // fAmtcr: "", //应付合计
|
|
|
- // fMblno: "", //提单号
|
|
|
- // fName: "", //货权方
|
|
|
- // fFeesName: "", //结算单位
|
|
|
- // fCorpid: "", //结算单位ID
|
|
|
- // };
|
|
|
- // const fId = row.fId || this.ids;
|
|
|
- // getFee(fId).then((response) => {
|
|
|
- // this.DzfeeList = 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.open = true;
|
|
|
- // });
|
|
|
- // }
|
|
|
- // });
|
|
|
- getFleet(row.fId).then((response) => {
|
|
|
- this.Operator = response.data.tFee.createBy;
|
|
|
- this.DzfeeList = 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.disappear = true;
|
|
|
- this.title = "修改财务数据主";
|
|
|
- if (res == 1) {
|
|
|
- this.notChange = true;
|
|
|
- if (this.Operator == this.Lander) {
|
|
|
- this.disappear = false;
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
+ getFee(row.fId).then((response) => {
|
|
|
+ this.Operator = response.data.tFee.createBy;
|
|
|
+ this.DzfeeList = 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.disappear = true;
|
|
|
+ this.title = "修改财务数据主";
|
|
|
+ if (res == 1) {
|
|
|
+ this.notChange = true;
|
|
|
+ if (this.Operator == this.Lander) {
|
|
|
+ this.disappear = false;
|
|
|
+ this.reset();
|
|
|
+ this.pass = {
|
|
|
+ fAmtdr: "", //应收合计
|
|
|
+ fAmtcr: "", //应付合计
|
|
|
+ fMblno: "", //提单号
|
|
|
+ fName: "", //货权方
|
|
|
+ fFeesName: "", //结算单位
|
|
|
+ fCorpid: "", //结算单位ID
|
|
|
+ };
|
|
|
+ const fId = row.fId || this.ids;
|
|
|
+ getFee(fId).then((response) => {
|
|
|
+ this.DzfeeList = 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;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.notChange = true;
|
|
|
this.reset();
|
|
|
this.pass = {
|
|
|
fAmtdr: "", //应收合计
|
|
@@ -2171,40 +2173,77 @@ export default {
|
|
|
fCorpid: "", //结算单位ID
|
|
|
};
|
|
|
const fId = row.fId || this.ids;
|
|
|
- getFleet(fId).then((response) => {
|
|
|
+ getFee(fId).then((response) => {
|
|
|
this.DzfeeList = 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.open = true;
|
|
|
});
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if (Cookies.get("sysType") == 2) {
|
|
|
+ getFleet(row.fId).then((response) => {
|
|
|
+ this.Operator = response.data.tFee.createBy;
|
|
|
+ this.DzfeeList = 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.disappear = true;
|
|
|
+ this.title = "修改财务数据主";
|
|
|
+ if (res == 1) {
|
|
|
+ this.notChange = true;
|
|
|
+ if (this.Operator == this.Lander) {
|
|
|
+ this.disappear = false;
|
|
|
+ this.reset();
|
|
|
+ this.pass = {
|
|
|
+ fAmtdr: "", //应收合计
|
|
|
+ fAmtcr: "", //应付合计
|
|
|
+ fMblno: "", //提单号
|
|
|
+ fName: "", //货权方
|
|
|
+ fFeesName: "", //结算单位
|
|
|
+ fCorpid: "", //结算单位ID
|
|
|
+ };
|
|
|
+ const fId = row.fId || this.ids;
|
|
|
+ getFleet(fId).then((response) => {
|
|
|
+ this.DzfeeList = 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;
|
|
|
+ }
|
|
|
} else {
|
|
|
this.notChange = true;
|
|
|
+ this.reset();
|
|
|
+ this.pass = {
|
|
|
+ fAmtdr: "", //应收合计
|
|
|
+ fAmtcr: "", //应付合计
|
|
|
+ fMblno: "", //提单号
|
|
|
+ fName: "", //货权方
|
|
|
+ fFeesName: "", //结算单位
|
|
|
+ fCorpid: "", //结算单位ID
|
|
|
+ };
|
|
|
+ const fId = row.fId || this.ids;
|
|
|
+ getFleet(fId).then((response) => {
|
|
|
+ this.DzfeeList = 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.open = true;
|
|
|
+ });
|
|
|
}
|
|
|
- } else {
|
|
|
- this.notChange = true;
|
|
|
- this.reset();
|
|
|
- this.pass = {
|
|
|
- fAmtdr: "", //应收合计
|
|
|
- fAmtcr: "", //应付合计
|
|
|
- fMblno: "", //提单号
|
|
|
- fName: "", //货权方
|
|
|
- fFeesName: "", //结算单位
|
|
|
- fCorpid: "", //结算单位ID
|
|
|
- };
|
|
|
- const fId = row.fId || this.ids;
|
|
|
- getFleet(fId).then((response) => {
|
|
|
- this.DzfeeList = 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.open = true;
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
@@ -2220,34 +2259,37 @@ export default {
|
|
|
fCorpid: "", //结算单位ID
|
|
|
};
|
|
|
const fId = row.fId || this.ids;
|
|
|
- // getFee(fId).then((response) => {
|
|
|
- // this.Operator = response.data.tFee.createBy;
|
|
|
- // this.DzfeeList = response.data.feeDoList;
|
|
|
- // this.fWbuOptions = response.data.feesList;
|
|
|
- // this.queryParams = response.data.tFee;
|
|
|
- // this.fMblnoOptions = response.data.corps;
|
|
|
- // this.open = true;
|
|
|
- // this.title = "修改财务数据主";
|
|
|
- // if (this.DzfeeList) {
|
|
|
- // this.doNot = true;
|
|
|
- // } else {
|
|
|
- // this.doNot = false;
|
|
|
- // }
|
|
|
- // });
|
|
|
- getFleet(fId).then((response) => {
|
|
|
- this.Operator = response.data.tFee.createBy;
|
|
|
- this.DzfeeList = response.data.feeDoList;
|
|
|
- this.fWbuOptions = response.data.feesList;
|
|
|
- this.queryParams = response.data.tFee;
|
|
|
- this.fMblnoOptions = response.data.corps;
|
|
|
- this.open = true;
|
|
|
- this.title = "修改财务数据主";
|
|
|
- if (this.DzfeeList) {
|
|
|
- this.doNot = true;
|
|
|
- } else {
|
|
|
- this.doNot = false;
|
|
|
- }
|
|
|
- });
|
|
|
+ if (Cookies.get("sysType") == 1) {
|
|
|
+ getFee(fId).then((response) => {
|
|
|
+ this.Operator = response.data.tFee.createBy;
|
|
|
+ this.DzfeeList = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "修改财务数据主";
|
|
|
+ if (this.DzfeeList) {
|
|
|
+ this.doNot = true;
|
|
|
+ } else {
|
|
|
+ this.doNot = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if (Cookies.get("sysType") == 2) {
|
|
|
+ getFleet(fId).then((response) => {
|
|
|
+ this.Operator = response.data.tFee.createBy;
|
|
|
+ this.DzfeeList = response.data.feeDoList;
|
|
|
+ this.fWbuOptions = response.data.feesList;
|
|
|
+ this.queryParams = response.data.tFee;
|
|
|
+ this.fMblnoOptions = response.data.corps;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "修改财务数据主";
|
|
|
+ if (this.DzfeeList) {
|
|
|
+ this.doNot = true;
|
|
|
+ } else {
|
|
|
+ this.doNot = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
/** 远程模糊查询用户 */
|
|
|
corpsRemoteMethod(name) {
|
|
@@ -2277,7 +2319,6 @@ export default {
|
|
|
// this.DzfeeList = []
|
|
|
// this.open = false;
|
|
|
this.getList();
|
|
|
- this.typevalue = "";
|
|
|
});
|
|
|
} else {
|
|
|
addFleet(formData).then((response) => {
|
|
@@ -2287,7 +2328,6 @@ export default {
|
|
|
// this.DzfeeList = []
|
|
|
// this.open = false;
|
|
|
this.getList();
|
|
|
- this.typevalue = "";
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
@@ -2311,7 +2351,7 @@ export default {
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
- addFleet(formData).then((response) => {
|
|
|
+ addFleet(formData).then((response) => {
|
|
|
this.msgSuccess("修改成功");
|
|
|
this.getList();
|
|
|
});
|
|
@@ -2324,48 +2364,51 @@ export default {
|
|
|
handleDelete(row) {
|
|
|
const fIds = row.fId || this.ids;
|
|
|
let tips = "";
|
|
|
- detailFleet(fIds).then((res) => {
|
|
|
- switch (res.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) {
|
|
|
+ detailFee(fIds).then((res) => {
|
|
|
+ switch (res.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) {
|
|
|
+ detailFleet(fIds).then((res) => {
|
|
|
+ switch (res.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("未知错误,无状态");
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
- // detailFee(fIds).then((res) => {
|
|
|
- // switch (res.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, "警告", {
|