|
@@ -81,7 +81,7 @@
|
|
|
icon="el-icon-plus"
|
|
|
size="mini"
|
|
|
@click="handleAdd"
|
|
|
- v-hasPermi="['finance:charge:add']"
|
|
|
+ v-hasPermi="['financial:invoiceApplyFor:add']"
|
|
|
>新增
|
|
|
</el-button>
|
|
|
</el-col>
|
|
@@ -92,7 +92,7 @@
|
|
|
size="mini"
|
|
|
:disabled="single"
|
|
|
@click="handleUpdate"
|
|
|
- v-hasPermi="['finance:charge:edit']"
|
|
|
+ v-hasPermi="['financial:invoiceApplyFor:edit']"
|
|
|
>修改
|
|
|
</el-button>
|
|
|
</el-col>
|
|
@@ -244,7 +244,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-view"
|
|
|
@click="check(scope.row, 0)"
|
|
|
- v-hasPermi="['finance:contrast:edit']"
|
|
|
+ v-hasPermi="['financial:invoiceApplyFor:edit']"
|
|
|
>查看</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -252,7 +252,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-view"
|
|
|
@click="check(scope.row, 1)"
|
|
|
- v-hasPermi="['finance:contrast:edit']"
|
|
|
+ v-hasPermi="['financial:invoiceApplyFor:edit']"
|
|
|
v-if="
|
|
|
scope.row.fBillstatus == '提交审核' ||
|
|
|
scope.row.fBillstatus == '审核中'
|
|
@@ -264,7 +264,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['finance:charge:edit']"
|
|
|
+ v-hasPermi="['financial:invoiceApplyFor:edit']"
|
|
|
v-if="
|
|
|
scope.row.fBillstatus == '保存' ||
|
|
|
scope.row.fBillstatus == '暂存' ||
|
|
@@ -277,7 +277,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['finance:charge:remove']"
|
|
|
+ v-hasPermi="['financial:invoiceApplyFor:remove']"
|
|
|
v-if="
|
|
|
scope.row.fBillstatus == '保存' ||
|
|
|
scope.row.fBillstatus == '暂存' ||
|
|
@@ -312,14 +312,14 @@
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div v-show="mainTable == true">
|
|
|
+ <div v-if="mainTable == true">
|
|
|
<el-form
|
|
|
:model="queryParams"
|
|
|
:rules="ruless"
|
|
|
ref="ruless"
|
|
|
:inline="true"
|
|
|
v-show="showSearch"
|
|
|
- label-width="68px"
|
|
|
+ label-width="78px"
|
|
|
>
|
|
|
<el-form-item label="货权方" prop="fCtrlcorpid">
|
|
|
<el-input
|
|
@@ -332,7 +332,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="结算单位" label-width="78px" prop="fCorpid">
|
|
|
+ <el-form-item label="结算单位" prop="fCorpid">
|
|
|
<el-select
|
|
|
v-model="queryParams.fCorpid"
|
|
|
filterable
|
|
@@ -353,7 +353,7 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="收费日期" label-width="78px" prop="fAccbilldate">
|
|
|
+ <el-form-item label="收费日期" prop="fAccbilldate">
|
|
|
<el-date-picker
|
|
|
clearable
|
|
|
size="small"
|
|
@@ -455,6 +455,12 @@
|
|
|
</el-form>
|
|
|
<div style="width: 100%; display: flex; justify-content: space-between">
|
|
|
<div style="display: flex">
|
|
|
+ <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === true" size="mini" @click="cancel"
|
|
|
+ >返回列表</el-button
|
|
|
+ >
|
|
|
+ <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === false" size="mini" @click="homePage"
|
|
|
+ >返回首页</el-button
|
|
|
+ >
|
|
|
<el-button
|
|
|
type="warning"
|
|
|
size="mini"
|
|
@@ -505,12 +511,6 @@
|
|
|
<el-button type="primary" @click="submitForm" size="mini" :disabled="notChange"
|
|
|
>保 存</el-button
|
|
|
>
|
|
|
- <el-button v-if="cancelButton === true" size="mini" @click="cancel"
|
|
|
- >返 回</el-button
|
|
|
- >
|
|
|
- <el-button v-if="cancelButton === false" size="mini" @click="homePage"
|
|
|
- >返 回</el-button
|
|
|
- >
|
|
|
<el-button @click="addPage" size="mini">新 增</el-button>
|
|
|
</div>
|
|
|
<div style="margin: 0 12px">
|
|
@@ -527,6 +527,7 @@
|
|
|
:visible.sync="feeInfo ? showSetting2 : showSetting3"
|
|
|
width="700px"
|
|
|
v-dialogDrag
|
|
|
+ :before-close="handleClose"
|
|
|
append-to-body
|
|
|
>
|
|
|
<template slot="title">
|
|
@@ -555,7 +556,44 @@
|
|
|
</div>
|
|
|
<div style="padding: 4px; display: flex; justify-content: center">
|
|
|
<draggable
|
|
|
- v-model="feeInfo ? setRowList2 : setRowList3"
|
|
|
+ v-show="feeInfo == true"
|
|
|
+ v-model="setRowList2"
|
|
|
+ group="site"
|
|
|
+ animation="300"
|
|
|
+ @start="onStart"
|
|
|
+ @end="onEnd"
|
|
|
+ handle=".indraggable"
|
|
|
+ >
|
|
|
+ <transition-group>
|
|
|
+ <div
|
|
|
+ v-for="item in setRowList2"
|
|
|
+ :key="item.surface"
|
|
|
+ class="listStyle"
|
|
|
+ >
|
|
|
+ <div style="width: 500px" class="indraggable">
|
|
|
+ <div class="progress" :style="{ width: item.width + 'px' }">
|
|
|
+ <el-checkbox
|
|
|
+ :label="item.name"
|
|
|
+ v-model="item.checked"
|
|
|
+ :true-label="0"
|
|
|
+ :false-label="1"
|
|
|
+ >{{ item.name }}
|
|
|
+ </el-checkbox>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-input-number
|
|
|
+ v-model.number="item.width"
|
|
|
+ controls-position="right"
|
|
|
+ :min="1"
|
|
|
+ :max="500"
|
|
|
+ size="mini"
|
|
|
+ ></el-input-number>
|
|
|
+ </div>
|
|
|
+ </transition-group>
|
|
|
+ </draggable>
|
|
|
+ <draggable
|
|
|
+ v-show="feeInfo == false"
|
|
|
+ v-model="setRowList3"
|
|
|
group="site"
|
|
|
animation="300"
|
|
|
@start="onStart"
|
|
@@ -564,7 +602,7 @@
|
|
|
>
|
|
|
<transition-group>
|
|
|
<div
|
|
|
- v-for="item in feeInfo ? setRowList2 : setRowList3"
|
|
|
+ v-for="item in setRowList3"
|
|
|
:key="item.surface"
|
|
|
class="listStyle"
|
|
|
>
|
|
@@ -605,8 +643,8 @@
|
|
|
active-text-color="#ffd04b"
|
|
|
style="display: flex;float: left"
|
|
|
>
|
|
|
- <el-menu-item index="1">费用信息</el-menu-item>
|
|
|
- <el-menu-item index="2">发票信息</el-menu-item>
|
|
|
+ <el-menu-item index='1'>费用信息</el-menu-item>
|
|
|
+ <el-menu-item index='2'>发票信息</el-menu-item>
|
|
|
</el-menu>
|
|
|
<el-button
|
|
|
type="success"
|
|
@@ -614,9 +652,9 @@
|
|
|
@click="addList"
|
|
|
:disabled="notChange"
|
|
|
style="float: right;margin-top: 10px"
|
|
|
- v-if="invoiceInfo == true">新 行</el-button>
|
|
|
+ v-if="feeInfo == false">新 行</el-button>
|
|
|
<el-table
|
|
|
- v-if="feeInfo"
|
|
|
+ v-if="feeInfo == true"
|
|
|
v-loading="loading"
|
|
|
:data="increase_s"
|
|
|
@selection-change="handleSelectionChange_s"
|
|
@@ -679,7 +717,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<el-table
|
|
|
- v-if="invoiceInfo"
|
|
|
+ v-if="feeInfo == false"
|
|
|
v-loading="loading"
|
|
|
:data="invoiceList"
|
|
|
@selection-change="handleSelectionChange_s"
|
|
@@ -1162,9 +1200,8 @@ export default {
|
|
|
unitOptions:[],
|
|
|
fDNameOptions: [],
|
|
|
invoiceList:[],
|
|
|
- invoiceInfo:false,
|
|
|
feeInfo:true,
|
|
|
- activeIndex:"1",
|
|
|
+ activeIndex:'1',
|
|
|
vesselOptions:[],
|
|
|
mainTable:false,
|
|
|
//全屏放大
|
|
@@ -1648,7 +1685,6 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
this.getRow();
|
|
|
this.getRow2();
|
|
|
this.getRow3();
|
|
@@ -1667,6 +1703,10 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleClose(done) {
|
|
|
+ this.showSetting2 = false
|
|
|
+ this.showSetting3 = false
|
|
|
+ },
|
|
|
//发票信息新行
|
|
|
addList(){
|
|
|
this.invoiceList.push({
|
|
@@ -1719,12 +1759,11 @@ export default {
|
|
|
},
|
|
|
//sheet切换
|
|
|
handleSelect(key, keyPath) {
|
|
|
+ console.log(typeof(key))
|
|
|
if(key === '1') {
|
|
|
this.feeInfo = true
|
|
|
- this.invoiceInfo = false
|
|
|
}else{
|
|
|
this.feeInfo = false
|
|
|
- this.invoiceInfo = true
|
|
|
}
|
|
|
},
|
|
|
portRemthod(){
|
|
@@ -2019,6 +2058,7 @@ export default {
|
|
|
revocation(data).then((data) => {
|
|
|
if (data.code === 200) {
|
|
|
this.$message.success("撤销成功");
|
|
|
+ this.mainTable = false
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
}
|
|
@@ -2150,10 +2190,17 @@ export default {
|
|
|
immediateApproval() {
|
|
|
this.addOrUpdateVisib = true;
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.ApprovalComments.init(
|
|
|
- this.approval.billId,
|
|
|
- this.approval.actId
|
|
|
- );
|
|
|
+ if(Cookies.get("sysType") == 3){
|
|
|
+ this.$refs.ApprovalComments.init(
|
|
|
+ this.approval.billId,
|
|
|
+ 470
|
|
|
+ );
|
|
|
+ }else{
|
|
|
+ this.$refs.ApprovalComments.init(
|
|
|
+ this.approval.billId,
|
|
|
+ this.approval.actId
|
|
|
+ );
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
// 查看审批流
|
|
@@ -2175,6 +2222,7 @@ export default {
|
|
|
formDate.append("tFeeDo", JSON.stringify(this.increase_s));
|
|
|
backCharge(formDate).then((response) => {
|
|
|
this.open = false;
|
|
|
+ this.mainTable = false
|
|
|
this.msgSuccess("操作成功");
|
|
|
this.getList();
|
|
|
});
|
|
@@ -2783,7 +2831,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- MessageBox.confirm("第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
|
|
|
+ MessageBox.confirm("选中的第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
@@ -2846,6 +2894,8 @@ export default {
|
|
|
type: 'warning'
|
|
|
}
|
|
|
).then(() => {
|
|
|
+ this.activeIndex = '1'
|
|
|
+ console.log('1')
|
|
|
this.mainTable = false
|
|
|
this.approve = false;
|
|
|
this.getList();
|
|
@@ -3036,20 +3086,21 @@ export default {
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
+ console.log(this.activeIndex)
|
|
|
this.notChange = false;
|
|
|
this.doNot = false
|
|
|
this.hide = true;
|
|
|
this.reset();
|
|
|
- (this.pass = {
|
|
|
+ this.pass = {
|
|
|
fAmtdr: 0, //应收合计
|
|
|
fAmtcr: 0, //应付合计
|
|
|
fMblno: "", //提单号
|
|
|
fName: "", //货权方
|
|
|
fFeesName: "", //结算单位
|
|
|
fCorpid: "", //结算单位ID
|
|
|
- }),
|
|
|
- // this.queryParams = []
|
|
|
- (this.increase_s = []);
|
|
|
+ },
|
|
|
+ this.increase_s = [];
|
|
|
+ this.invoiceList = []
|
|
|
this.queryParams = {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
@@ -3309,6 +3360,28 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+ }else if(Cookies.get("sysType") == 3){
|
|
|
+ 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("未知错误,无状态");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
delete_S(fIds, tips) {
|
|
@@ -3322,6 +3395,8 @@ export default {
|
|
|
return delCharge(fIds);
|
|
|
} else if (Cookies.get("sysType") == 2) {
|
|
|
return delCharges(fIds);
|
|
|
+ }else if(Cookies.get("sysType") == 3){
|
|
|
+ return delCharge(fIds);
|
|
|
}
|
|
|
})
|
|
|
.then(() => {
|