Commit e39275c0 authored by 罗超's avatar 罗超

新增修改手续费

parent 0185e47a
......@@ -19,20 +19,26 @@
<script>
var sUserAgent = navigator.userAgent;
if (sUserAgent.indexOf('Android') > -1 || sUserAgent.indexOf('iPhone') > -1 || sUserAgent.indexOf('iPad') > -1 || sUserAgent.indexOf('iPod') > -1 || sUserAgent.indexOf('Symbian') > -1) {
if (
sUserAgent.indexOf("Android") > -1 ||
sUserAgent.indexOf("iPhone") > -1 ||
sUserAgent.indexOf("iPad") > -1 ||
sUserAgent.indexOf("iPod") > -1 ||
sUserAgent.indexOf("Symbian") > -1
) {
// document.body.style.minWidth = '100%'
// document.body.style.maxWidth = '100%'
// document.body.style.overflow = 'hidden'
// document.html.style.minWidth = '100%'
} else {
document.body.style.minWidth = '1366px'
} else {
document.body.style.minWidth = "1366px";
// document.html.style.minWidth = '1366px'
}
import chosenOpenMode from './components/commonPage/chosenOpenMode'
import mycareer from './components/champion/mycareer'
import { clearInterval } from 'timers';
}
import chosenOpenMode from "./components/commonPage/chosenOpenMode";
import mycareer from "./components/champion/mycareer";
import { clearInterval } from "timers";
export default {
name: 'App',
name: "App",
components: {
chosenOpenMode,
mycareer
......@@ -41,167 +47,190 @@ export default {
//注册禁止后退,并且不做卸载
// history.go(-1)
// history.forward(-1)
if(localStorage.openMode && localStorage.openMode==1){
try{
if (localStorage.openMode && localStorage.openMode == 1) {
try {
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
window.addEventListener("popstate", function() {
history.pushState(null, null, document.URL);
})
} catch(err) {
});
} catch (err) {}
}
}
},
data () {
data() {
return {
images:[],
imageOptions:{
navbar:false,
title:false
images: [],
imageOptions: {
navbar: false,
title: false
},
dataShow:false,
haveOpenMode:false,
dataShow: false,
haveOpenMode: false,
settingSys: false,
timer:null,
useTime:0,
showCareer:false,
careerId:0,
isRed:false
timer: null,
useTime: 0,
showCareer: false,
careerId: 0,
isRed: false
// sessionStorage.getItem("mazip") ? sessionStorage.getItem("mazip") : true
}
};
},
methods: {
inited (viewer){
this.$viewer = viewer
inited(viewer) {
this.$viewer = viewer;
},
closeCareer(){
this.showCareer=false
closeCareer() {
this.showCareer = false;
},
show (data) {
this.$set(this.images,data)
this.$viewer.show()
show(data) {
this.$set(this.images, data);
this.$viewer.show();
},
listeneruser(){
let that=this
window.onblur=function () {
that.plaus()
listeneruser() {
let that = this;
window.onblur = function() {
that.plaus();
if (that.useTime) {
let params={
CreateBy:that.getLocalStorage().EmployeeId,
UsedTime:that.useTime
}
that.apipost("user_set_user_usederplog",params,r=>{
if(r.data.resultCode==1){
that.UsedTime=0
}
})
}
}
window.onfocus=function () {
that.timekeeper()
}
let params = {
CreateBy: that.getLocalStorage().EmployeeId,
UsedTime: that.useTime
};
that.apipost("user_set_user_usederplog", params, r => {
if (r.data.resultCode == 1) {
that.UsedTime = 0;
}
});
}
};
window.onfocus = function() {
that.timekeeper();
};
},
timekeeper(){
if(!this.timer){
this.timer=window.setInterval(() => {
this.useTime+=0.1
}, 1000*6);
timekeeper() {
if (!this.timer) {
this.timer = window.setInterval(() => {
this.useTime += 0.1;
}, 1000 * 6);
}
},
plaus() {
if(this.timer){
if (this.timer) {
window.clearInterval(this.timer);
this.timer=null
this.timer = null;
}
}
},
mounted() {
if (!this.getLocalStorage() && document.URL.indexOf("SupplierLogin")==-1&& document.URL.indexOf("clientConfirm")==-1&& document.URL.indexOf("TravelContractConfirm")==-1&& document.URL.indexOf("ViittoContractConfirm")==-1) {
if (
!this.getLocalStorage() &&
document.URL.indexOf("SupplierLogin") == -1 &&
document.URL.indexOf("clientConfirm") == -1 &&
document.URL.indexOf("TravelContractConfirm") == -1 &&
document.URL.indexOf("ViittoContractConfirm") == -1
) {
this.$router.push({
path: '/login'
})
}else{
if(document.URL.indexOf("clientConfirm")!=-1||document.URL.indexOf("TravelContractConfirm")!=-1||document.URL.indexOf("ViittoContractConfirm")!=-1){
localStorage.openMode=0
}else{
path: "/login"
});
} else {
if (
document.URL.indexOf("clientConfirm") != -1 ||
document.URL.indexOf("TravelContractConfirm") != -1 ||
document.URL.indexOf("ViittoContractConfirm") != -1
) {
localStorage.openMode = 0;
} else {
}
this.timekeeper()
this.listeneruser()
this.timekeeper();
this.listeneruser();
}
this.haveOpenMode=!localStorage.openMode
this.MsgBus.$on('imgpreviewoverflow',content=>{
this.show(content)
})
this.MsgBus.$on('imgpreviewshow',content=>{
this.$viewer.show()
})
this.MsgBus.$on('imgpreviewshowindex',content=>{
this.$viewer.view(this.images.indexOf(content))
this.$viewer.show()
})
this.MsgBus.$on('settingOpen',content=>{
this.haveOpenMode = !localStorage.openMode;
this.MsgBus.$on("imgpreviewoverflow", content => {
this.show(content);
});
this.MsgBus.$on("imgpreviewshow", content => {
this.$viewer.show();
});
this.MsgBus.$on("imgpreviewshowindex", content => {
this.$viewer.view(this.images.indexOf(content));
this.$viewer.show();
});
this.MsgBus.$on("settingOpen", content => {
this.haveOpenMode = true;
this.settingSys = true;
})
this.MsgBus.$on('settingClose',content=>{
});
this.MsgBus.$on("settingClose", content => {
this.haveOpenMode = false;
this.settingSys = false;
})
this.MsgBus.$on('imgprevpush',content=>{
let isExsit=false
this.images.forEach(x=>{
if(x==content)
isExsit=true
})
if(!isExsit)
this.images.push(content)
})
this.MsgBus.$on('imgprevclear',content=>{
this.images=[]
})
this.MsgBus.$on('showCareer',empId=>{
this.careerId=empId
this.showCareer=true
})
this.MsgBus.$on('hideCareer',content=>{
this.careerId=0
this.showCareer=false
})
this.MsgBus.$on("changeTheme",t=>{
this.isRed=t==1;
})
}
}
});
this.MsgBus.$on("imgprevpush", content => {
let isExsit = false;
this.images.forEach(x => {
if (x == content) isExsit = true;
});
if (!isExsit) this.images.push(content);
});
this.MsgBus.$on("imgprevclear", content => {
this.images = [];
});
this.MsgBus.$on("showCareer", empId => {
this.careerId = empId;
this.showCareer = true;
});
this.MsgBus.$on("hideCareer", content => {
this.careerId = 0;
this.showCareer = false;
});
this.MsgBus.$on("changeTheme", t => {
this.isRed = t == 1;
});
}
};
</script>
<style>
@import "//at.alicdn.com/t/font_635492_63x5920i6sn.css";
@import "./assets/css/Semibold.css";
@import "./assets/css/global/config.css";
@import "./assets/css/fileIcon.css";
/* html,body{height: 100%; min-width: 1366px; } */
html,body{margin: 0; padding: 0; background:#f9f9f9 url(assets/img/img-bg.png) no-repeat bottom left/100% auto;height: 100%;}
#app{height: 100%;}
#app>div{display: flex; flex-direction: column; height: 100%;}
.BMap_cpyCtrl {display: none;}
.anchorBL {display: none;}
.viewer{display: none !important;}
.showMyCareer{
@import "//at.alicdn.com/t/font_635492_wcd7pw1105.css";
@import "./assets/css/Semibold.css";
@import "./assets/css/global/config.css";
@import "./assets/css/fileIcon.css";
/* html,body{height: 100%; min-width: 1366px; } */
html,
body {
margin: 0;
padding: 0;
background: #f9f9f9 url(assets/img/img-bg.png) no-repeat bottom left/100% auto;
height: 100%;
}
#app {
height: 100%;
}
#app > div {
display: flex;
flex-direction: column;
height: 100%;
}
.BMap_cpyCtrl {
display: none;
}
.anchorBL {
display: none;
}
.viewer {
display: none !important;
}
.showMyCareer {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
background: rgba(0,0,0,.3);
background: rgba(0, 0, 0, 0.3);
align-items: center;
justify-content: center;
z-index: 999999999999999;
}
.red-theme{
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji, MicrosoftJhengHeiBoldFix, "\5FAE\8EDF\6B63\9ED1\9AD4", Microsoft JhengHei;
}
}
.red-theme {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
Helvetica Neue, Arial, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol,
Noto Color Emoji, MicrosoftJhengHeiBoldFix, "\5FAE\8EDF\6B63\9ED1\9AD4",
Microsoft JhengHei;
}
</style>
<style scoped>
.page_fnDm{background-color: white}
.query-box{overflow: inherit}
._nav{margin: 20px 0 0 0 ;background-color: #f5f5f5;}
._nav li{float: left;font-size: 14px;color: #666666;padding: 15px 20px;cursor: pointer;position: relative;background-color: #f1f1f1;margin-right: 5px}
._nav li._active{background-color:#FFFFFF;color: #333333 }
._nav li._active::after{content: "";width: 20px;height: 3px;background-color: #E95252;display: inline-block;position: absolute;bottom: 0;left: 38%;}
.el-range-editor.el-input__inner{border-radius: 0}
.query-box{border: none}
.hight_query{position: relative;}
.hight_query span{height: 34px;line-height: 34px;color: #E95252}
.hight_query span .icon-gengduo{font-size: 12px}
.hight_query span em{text-decoration: underline;cursor: pointer;}
.hight_query_box{position: absolute;background-color: white;z-index: 2000;right: 200px;width: 800px;}
._hqb_shadow{box-shadow:3px 2px 10px rgb(204, 203, 203);border: 1px solid #ececec;}
.query-box ul {overflow: initial;}
.hqb_t{padding: 10px 20px;font-size: 16px;background-color: #E95252;border: 1px solid #E95252;color: #fff;text-align: center;margin-bottom: 15px}
.query-box li:last-child{float: left}
.query-box>ul>li:last-child{float: right;}
.query-box .hight_query ul .el-input{width: inherit }
.hight_query_box ul li{margin-top: 0;float: left;margin-right: 15px}
.hight_query_box ul li label{font-size: 14px}
.hight_query_box .el-form{padding: 0 20px}
.hight_query_box ul li._hqb_btn{float: right;margin-right: 25px;padding-top: 5px;position: inherit}
.Receipt_box{padding: 15px;color: #c94052;width: 614px;background-color: rgba(242, 242, 242, 1);border: 1px solid rgba(228, 228, 228, 1)}
.Receipt_box.color_blur{color: #106BAF;}
.Receipt_box.color_blur .rb_stit span{display: inline-block;border-bottom: 2px solid #106BAF;padding: 0 20px}
.rb_tit{font-size: 18px;text-align: center}
.rb_stit{font-size: 14px;text-align: center}
.rb_stit span{display: inline-block;border-bottom: 2px solid #C94052;padding: 0 20px}
.rb_top_row{display: flex;justify-content: space-between;font-size: 12px;}
.rb_top_row span._r_name{color: #333333}
.rb_top_row span._r_bold{font-weight: bold}
.rb_top_row ._r_time span{color: #333333}
._r_mb5{margin-bottom: 5px;}
.Receipt_table{width: 100%;font-size: 14px;text-align: center}
.Receipt_table .th{font-weight: 200 !important}
._r_mt10{margin-top: 10px;}
._bg__{display: inline-block;padding: 2px 8px;color: white;border-radius: 4px}
._bg_red{background-color: #E95252;}
.zhuiClass{
.page_fnDm {
background-color: white;
}
.query-box {
overflow: inherit;
}
._nav {
margin: 20px 0 0 0;
background-color: #f5f5f5;
}
._nav li {
float: left;
font-size: 14px;
color: #666666;
padding: 15px 20px;
cursor: pointer;
position: relative;
background-color: #f1f1f1;
margin-right: 5px;
}
._nav li._active {
background-color: #ffffff;
color: #333333;
}
._nav li._active::after {
content: "";
width: 20px;
height: 3px;
background-color: #e95252;
display: inline-block;
position: absolute;
bottom: 0;
left: 38%;
}
.el-range-editor.el-input__inner {
border-radius: 0;
}
.query-box {
border: none;
}
.hight_query {
position: relative;
}
.hight_query span {
height: 34px;
line-height: 34px;
color: #e95252;
}
.hight_query span .icon-gengduo {
font-size: 12px;
}
.hight_query span em {
text-decoration: underline;
cursor: pointer;
}
.hight_query_box {
position: absolute;
background-color: white;
z-index: 2000;
right: 200px;
width: 800px;
}
._hqb_shadow {
box-shadow: 3px 2px 10px rgb(204, 203, 203);
border: 1px solid #ececec;
}
.query-box ul {
overflow: initial;
}
.hqb_t {
padding: 10px 20px;
font-size: 16px;
background-color: #e95252;
border: 1px solid #e95252;
color: #fff;
text-align: center;
margin-bottom: 15px;
}
.query-box li:last-child {
float: left;
}
.query-box > ul > li:last-child {
float: right;
}
.query-box .hight_query ul .el-input {
width: inherit;
}
.hight_query_box ul li {
margin-top: 0;
float: left;
margin-right: 15px;
}
.hight_query_box ul li label {
font-size: 14px;
}
.hight_query_box .el-form {
padding: 0 20px;
}
.hight_query_box ul li._hqb_btn {
float: right;
margin-right: 25px;
padding-top: 5px;
position: inherit;
}
.Receipt_box {
padding: 15px;
color: #c94052;
width: 614px;
background-color: rgba(242, 242, 242, 1);
border: 1px solid rgba(228, 228, 228, 1);
}
.Receipt_box.color_blur {
color: #106baf;
}
.Receipt_box.color_blur .rb_stit span {
display: inline-block;
border-bottom: 2px solid #106baf;
padding: 0 20px;
}
.rb_tit {
font-size: 18px;
text-align: center;
}
.rb_stit {
font-size: 14px;
text-align: center;
}
.rb_stit span {
display: inline-block;
border-bottom: 2px solid #c94052;
padding: 0 20px;
}
.rb_top_row {
display: flex;
justify-content: space-between;
font-size: 12px;
}
.rb_top_row span._r_name {
color: #333333;
}
.rb_top_row span._r_bold {
font-weight: bold;
}
.rb_top_row ._r_time span {
color: #333333;
}
._r_mb5 {
margin-bottom: 5px;
}
.Receipt_table {
width: 100%;
font-size: 14px;
text-align: center;
}
.Receipt_table .th {
font-weight: 200 !important;
}
._r_mt10 {
margin-top: 10px;
}
._bg__ {
display: inline-block;
padding: 2px 8px;
color: white;
border-radius: 4px;
}
._bg_red {
background-color: #e95252;
}
.zhuiClass {
width: 20px;
height: 20px;
display: inline-block;
border-radius: 50%;
text-align: center;
line-height: 20px;
color: #E95252;
border: 1px solid #E95252;
color: #e95252;
border: 1px solid #e95252;
font-size: 12px;
}
._bg_green{background-color: #2BB87C}
.text_d{text-decoration: underline;cursor: pointer;}
.PingFangSC{font-weight: bold}
.Bill_par{position: relative;}
tr th,tr td{text-align: left;padding-left: 10px;}
tr._item_list{border-bottom: 1px solid #E5E5E5;height: 78px;}
tr._item_list td{border-bottom: 1px solid #e5e5e5; padding: 10px;}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child{border-left: 1px solid #e5e5e5;}
tr._item_list td:last-child{border-right: 1px solid #e5e5e5;}
._head_img{width: 28px;height: 28px;border-radius: 50%;vertical-align:middle;}
._btn_group{font-size: 14px;}
.icon-daiqueren{color: #4BCA81}
.icon-yiqueren{color: #4BCA81}
.icon-yiquxiao{color: #959595}
.icon-shenhebohui{color: #E95252}
.icon-icon-zancun{color: #FF9C01}
.singeRowTable tr:hover{background-color: white}
._TradeWayList{padding: 5px 10px;background-color: #EEEEEE;border-radius: 4px;margin: 10px 0;width: 190px}
._bold{font-weight: bold}
._bank_name,._bank_type{display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;}
._bank_name{margin-left: 10px;}
._bank_type{background-color: #2AAEF2}
._bank_type2{background-color: #FF9C01}
._font_init{color: #333333;font-size: 12px;vertical-align:top;}
.InfoChangeLog{height: auto;max-height: 220px;background-color: #FFFFFF;}
.changLogList{padding-left: 20px;max-height: 180px;overflow: auto;}
.changLogList_l{border-left: 1px solid #E9E9E9;position: relative;padding-bottom: 10px;padding-left: 20px;padding-top: 10px;}
._radius_green{background-color: #47BF8C;width: 7px;height: 7px;border-radius: 50%;display: inline-block;position: absolute;left: -4px;top: 19px;}
.changLog_time{color: #666666;font-size: 12px;display: inline-block;padding-right: 10px}
._icon_btn i{width: 30px;height: 30px;display: inline-block;color: white !important;border-radius: 50%;text-align: center;line-height: 30px;margin-right: 10px;cursor: pointer;outline: none;}
._icon_btn i.edit{background-color: #00C6FF;font-size: 16px;}
._icon_btn i.edit:hover{background-color: #59daff}
._icon_btn i.edit:active{background-color: #00b8ec}
._icon_btn i.icon-sousuo,.icon-zhuanhuan1{background-color: #47BF8C;}
._icon_btn i.icon-sousuo:hover{background-color: #66bb97}
._icon_btn i.icon-sousuo:active{background-color: #35ab79}
._icon_btn i.icon-ico_commodity_defaul{background-color: #F16C3C;}
._icon_btn i.icon-ico_commodity_defaul:hover{background-color: #e87c54}
._icon_btn i.icon-ico_commodity_defaul:active{background-color: #f76630}
._icon_btn i.icon-quxiao1{background-color: #E95252;}
._icon_btn i.icon-quxiao1:hover{background-color: #ea6d6d}
._icon_btn i.icon-quxiao1:active{background-color:#e42d2d}
._icon_btn i.icon-zhuanjiao1,._icon_btn i.icon-cuishou{background-color: #E6A014;font-size: 16px;}
._icon_btn i.icon-zhuanjiao1:hover,._icon_btn i.icon-cuishou:hover{background-color: rgb(235, 184, 84)}
._icon_btn i.icon-zhuanjiao1:active,._icon_btn i.icon-cuishou:active{background-color: rgb(223, 150, 6)}
._tag_span{background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #409eff;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;}
._tag_span._tag_warr{background-color: rgba(103,194,58,.1);border-color: rgba(103,194,58,.2);color: #67c23a;}
._fex_cen{display: flex;align-items: center}
._pad5{padding: 5px 10px;}
._color_gar{color: gray}
.page_fnDm .query-box li:last-child{top: 97px !important;}
._TCIDAndTCNUMList{
}
._bg_green {
background-color: #2bb87c;
}
.text_d {
text-decoration: underline;
cursor: pointer;
}
.PingFangSC {
font-weight: bold;
}
.Bill_par {
position: relative;
}
tr th,
tr td {
text-align: left;
padding-left: 10px;
}
tr._item_list {
border-bottom: 1px solid #e5e5e5;
height: 78px;
}
tr._item_list td {
border-bottom: 1px solid #e5e5e5;
padding: 10px;
}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child {
border-left: 1px solid #e5e5e5;
}
tr._item_list td:last-child {
border-right: 1px solid #e5e5e5;
}
._head_img {
width: 28px;
height: 28px;
border-radius: 50%;
vertical-align: middle;
}
._btn_group {
font-size: 14px;
}
.icon-daiqueren {
color: #4bca81;
}
.icon-yiqueren {
color: #4bca81;
}
.icon-yiquxiao {
color: #959595;
}
.icon-shenhebohui {
color: #e95252;
}
.icon-icon-zancun {
color: #ff9c01;
}
.singeRowTable tr:hover {
background-color: white;
}
._TradeWayList {
padding: 5px 10px;
background-color: #eeeeee;
border-radius: 4px;
margin: 10px 0;
width: 190px;
}
._bold {
font-weight: bold;
}
._bank_name,
._bank_type {
display: inline-block;
background-color: #333333;
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 10px;
}
._bank_name {
margin-left: 10px;
}
._bank_type {
background-color: #2aaef2;
}
._bank_type2 {
background-color: #ff9c01;
}
._font_init {
color: #333333;
font-size: 12px;
vertical-align: top;
}
.InfoChangeLog {
height: auto;
max-height: 220px;
background-color: #ffffff;
}
.changLogList {
padding-left: 20px;
max-height: 180px;
overflow: auto;
}
.changLogList_l {
border-left: 1px solid #e9e9e9;
position: relative;
padding-bottom: 10px;
padding-left: 20px;
padding-top: 10px;
}
._radius_green {
background-color: #47bf8c;
width: 7px;
height: 7px;
border-radius: 50%;
display: inline-block;
position: absolute;
left: -4px;
top: 19px;
}
.changLog_time {
color: #666666;
font-size: 12px;
display: inline-block;
padding-right: 10px;
}
._icon_btn i {
width: 28px;
height: 28px;
display: inline-block;
color: white !important;
border-radius: 50%;
text-align: center;
line-height: 28px;
margin-right: 10px;
cursor: pointer;
outline: none;
}
._icon_btn i.edit {
background-color: #00c6ff;
font-size: 16px;
}
._icon_btn i.edit:hover {
background-color: #59daff;
}
._icon_btn i.edit:active {
background-color: #00b8ec;
}
._icon_btn i.icon-sousuo,
.icon-zhuanhuan1 {
background-color: #47bf8c;
}
._icon_btn i.icon-sousuo:hover {
background-color: #66bb97;
}
._icon_btn i.icon-sousuo:active {
background-color: #35ab79;
}
._icon_btn i.icon-ico_commodity_defaul {
background-color: #f16c3c;
}
._icon_btn i.icon-ico_commodity_defaul:hover {
background-color: #e87c54;
}
._icon_btn i.icon-ico_commodity_defaul:active {
background-color: #f76630;
}
._icon_btn i.icon-quxiao1 {
background-color: #e95252;
}
._icon_btn i.icon-quxiao1:hover {
background-color: #ea6d6d;
}
._icon_btn i.icon-quxiao1:active {
background-color: #e42d2d;
}
._icon_btn i.icon-zhuanjiao1,
._icon_btn i.icon-cuishou {
background-color: #e6a014;
font-size: 16px;
}
._icon_btn i.icon-zhuanjiao1:hover,
._icon_btn i.icon-cuishou:hover {
background-color: rgb(235, 184, 84);
}
._icon_btn i.icon-zhuanjiao1:active,
._icon_btn i.icon-cuishou:active {
background-color: rgb(223, 150, 6);
}
._tag_span {
background-color: rgba(64, 158, 255, 0.1);
display: inline-block;
padding: 0 5px;
height: 22px;
line-height: 20px;
font-size: 12px;
color: #409eff;
border-radius: 4px;
box-sizing: border-box;
border: 1px solid rgba(64, 158, 255, 0.2);
white-space: nowrap;
margin-bottom: 4px;
}
._tag_span._tag_warr {
background-color: rgba(103, 194, 58, 0.1);
border-color: rgba(103, 194, 58, 0.2);
color: #67c23a;
}
._fex_cen {
display: flex;
}
.w216{
align-items: center;
}
._pad5 {
padding: 5px 10px;
}
._color_gar {
color: gray;
}
.page_fnDm .query-box li:last-child {
top: 97px !important;
}
._TCIDAndTCNUMList {
display: flex;
}
.w216 {
width: 216px;
}
._icon_btn i.icon-tiaozheng{background-color: #1296db;font-size: 16px;}
._icon_btn i.icon-zhifupeizhiguanli{background-color: #1296db;font-size: 16px;}
}
._icon_btn i.icon-tiaozheng {
background-color: #1296db;
font-size: 16px;
}
._icon_btn i.icon-zhifupeizhiguanli {
background-color: #1296db;
font-size: 16px;
}
.boss_btn_tips,.boss_btn{
.boss_btn_tips,
.boss_btn {
text-align: center;
}
.boss_btn_tips{
}
.boss_btn_tips {
padding-bottom: 25px;
}
.boss_btn span{
color: #2BB87C;
}
.cdForm .el-form-item{
}
.boss_btn span {
color: #2bb87c;
}
.cdForm .el-form-item {
display: inline-block;
}
.leaderPayTable {
}
.leaderPayTable {
width: 100%;
margin: 10px auto;
text-align: center;
......@@ -131,25 +437,25 @@
border-collapse: collapse;
background-color: #fff;
border: 1px solid #d1d1d1;
}
}
.leaderPayTable th {
.leaderPayTable th {
background: #e6e6e6;
padding: 8px 0;
color: #333;
border: 1px solid #d1d1d1;
font-weight: bold;
}
}
.leaderPayTable tr td {
.leaderPayTable tr td {
background-color: #fff;
padding: 8px 0;
height: 32px;
border: 1px solid #d1d1d1;
text-align:center;
}
text-align: center;
}
.leaderPayTable2 tr td {
.leaderPayTable2 tr td {
border: 1px solid #ccc;
line-height: 17px;
height: 25px;
......@@ -157,15 +463,22 @@
background: #fff;
text-align: center;
padding: 0;
;
margin: 0;
}
.Myquery-box li{
}
.Myquery-box li {
float: left;
font-size: 12px;
color: #666;
margin: 20px 30px 20px 0;
}
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="number"] {
-moz-appearance: textfield;
}
</style>
<template >
......@@ -648,7 +961,10 @@
<i v-if="active==2" class="iconfont icon-zhifupeizhiguanli"
@click="showjiaoyi(item.FrID)"></i>
</el-tooltip>
<el-tooltip class="item" content="手续费设置" placement="top" v-if="active==2 && istransaction == true && item.Type==1">
<i class="iconfont icon-zhifupeizhiguanli"
@click="showTranTax(item.FrID)"></i>
</el-tooltip>
</td>
</tr>
</table>
......@@ -826,7 +1142,15 @@
</div>
</template>
</el-dialog>
<el-dialog title="修改单据手续费" width="300px"
:visible.sync="transactionTax" center :before-close="closeChangeMachie">
<p style="font-size:12px;margin-bottom:10px;">交易手续费:</p>
<el-input v-model="transTax.Fee" placeholder="请输入内容"></el-input>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="transactionTax=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="saveTransTaxMoney" :loading="transTax.loading">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
<el-dialog title="预付款冲抵" width="860px" :visible.sync="yfcdState" center>
<el-form class="cdForm" label-width="90px">
<el-form-item label="单号" prop="FrID">
......@@ -902,239 +1226,246 @@ import myrbvBill from "./FinancialSubmodule/ReceivablesModule.vue";
import myhrBill from "./FinancialSubmodule/MergeBillModule.vue";
import myGZBill from "./FinancialSubmodule/GZBillModule.vue";
export default {
data(){
return{
hbMsg:{
FrIDList:[],
Type:1,
},
hbBtn:false,
hbState:false,
hbShow:false,
HandMsg:{
TCNUM:"",
ReFinanceId:'',
OtherType:6,
},
HandState:false,
widthSon:'700px',
colorSon:"#f5f5f5",
showID:false,
active:1,
userId:0,
rejectNum:'',
zhuanjiaoBox:false,
searchList:[],
data() {
return {
hbMsg: {
FrIDList: [],
Type: 1
},
hbBtn: false,
hbState: false,
hbShow: false,
HandMsg: {
TCNUM: "",
ReFinanceId: "",
OtherType: 6
},
HandState: false,
widthSon: "700px",
colorSon: "#f5f5f5",
showID: false,
active: 1,
userId: 0,
rejectNum: "",
zhuanjiaoBox: false,
searchList: [],
//转交信息
zhuanjiaoMsg:{
CreateBy:'',
FrIDList:[]
},
msg:{
pageIndex:1,
pageSize:6,
FrID:'',
sDate:'',
eDate:'',
Status:'-1',
TemplateId:'0',
RB_Branch_Id:'',
RB_Depart_Id:'',
sTradeDate:'',
eTradeDate:'',
ClientType:'',
RemitterName:'',
ClientID:'',
sMoney:'',
eMoney:'',
CurrencyId:'',
CostTypeID:'',
Conditon:'',
TCID:'',
TradeWay:'',
Type:'0',
AccountType:'',
QEndDate:'',
QStartDate:'',
UpdateBy:'',
Sort:'2',
IsSpecial:0,
Remark:''
},
getCompanyMsg:{ // 公司
RB_Group_Id:'0',
Status:'0',
},
getDepartmentMsg:{// 部门
RB_Group_Id:'',
RB_Branch_Id:'',
Status:0,
ParentId:-1,
Tier:0,
},
employeeMsg:{ // 员工
GroupId:'',
BranchId:-1,
DepartmentId:0,
PostId:0,
IsLeave:0,
},
zhuanMsg:{
AuditEmId:null,
WorkFlowId:0,
Description:''
},
updateMsg:{
FrID:0,
OTradeDate:'',
TradeDate:'',
Description:''
},
DataList:[],
GetFinancLogList:[],
StatusList:[],
ClientAccountList:[],
ClientTypeList:[],
accountList:[],
BranchAccountList:[],
DepartmentList:[],
EmployeeList:[],
ConditionList:[],
CompanyList:[],
productionDate:[],
approvalDate:[],
transactionDate:[],
missionDate:[],
currencyTypeList:[],
GetCostTypeList:[],
TemplateGetList:[],
AccList:[],
checkList:[],
checkAllList:[],
dateStart:'',
dateEnd:'',
dateArr:'',
status:'1',
type:'1',
heightQueryBox:false,
loading:false,
LogLoading:false,
noData:false,
checkboxShow:false,
zhuanjiaoMsg: {
CreateBy: "",
FrIDList: []
},
msg: {
pageIndex: 1,
pageSize: 6,
FrID: "",
sDate: "",
eDate: "",
Status: "-1",
TemplateId: "0",
RB_Branch_Id: "",
RB_Depart_Id: "",
sTradeDate: "",
eTradeDate: "",
ClientType: "",
RemitterName: "",
ClientID: "",
sMoney: "",
eMoney: "",
CurrencyId: "",
CostTypeID: "",
Conditon: "",
TCID: "",
TradeWay: "",
Type: "0",
AccountType: "",
QEndDate: "",
QStartDate: "",
UpdateBy: "",
Sort: "2",
IsSpecial: 0,
Remark: ""
},
getCompanyMsg: {
// 公司
RB_Group_Id: "0",
Status: "0"
},
getDepartmentMsg: {
// 部门
RB_Group_Id: "",
RB_Branch_Id: "",
Status: 0,
ParentId: -1,
Tier: 0
},
employeeMsg: {
// 员工
GroupId: "",
BranchId: -1,
DepartmentId: 0,
PostId: 0,
IsLeave: 0
},
zhuanMsg: {
AuditEmId: null,
WorkFlowId: 0,
Description: ""
},
updateMsg: {
FrID: 0,
OTradeDate: "",
TradeDate: "",
Description: ""
},
DataList: [],
GetFinancLogList: [],
StatusList: [],
ClientAccountList: [],
ClientTypeList: [],
accountList: [],
BranchAccountList: [],
DepartmentList: [],
EmployeeList: [],
ConditionList: [],
CompanyList: [],
productionDate: [],
approvalDate: [],
transactionDate: [],
missionDate: [],
currencyTypeList: [],
GetCostTypeList: [],
TemplateGetList: [],
AccList: [],
checkList: [],
checkAllList: [],
dateStart: "",
dateEnd: "",
dateArr: "",
status: "1",
type: "1",
heightQueryBox: false,
loading: false,
LogLoading: false,
noData: false,
checkboxShow: false,
isCkedAll: false,
currentPage:1,
total:0,
ChineseStr:'',
mathNumber:'',
DepartIDs:'',
zhuanBox:false,
loading2:false,
dialogFormVisible:false,
searchList:[],
minHeight:400,
currentPage: 1,
total: 0,
ChineseStr: "",
mathNumber: "",
DepartIDs: "",
zhuanBox: false,
loading2: false,
dialogFormVisible: false,
searchList: [],
minHeight: 400,
//当前登录用户功能权限
ActionMenuCode:'',
ActionMenuCode: "",
BOSSBtn: false,
BOSSBtn2: false,
AuditOrRefundMsg:{
WorkFlowId:'',
Description:'',
Status:'5',
Image: '',
TradeDate:new Date().Format("yyyy-MM-dd"),
tradeWays:[],
emList:[],
AuditOrRefundMsg: {
WorkFlowId: "",
Description: "",
Status: "5",
Image: "",
TradeDate: new Date().Format("yyyy-MM-dd"),
tradeWays: [],
emList: []
},
bossLen: null,
BOSSDialog: false,
userMenuCode: false,
BOSSDialogText: false,
HandShow:false,
F_Advance_Match:false,
yfcdState:false,
yfcheckList:[],
yfOutBranchId:'',
yfHandmsg:{
OtherType:7,
ReFinanceId:0,
Rate:0,
czState:true,
},
czList:[],
total2:0,
czdateList:[],
czMsg:{
pageIndex:1,
pageSize:8,
FrID:'',
CostTypeID:'',
sTradeDate:'',
eTradeDate:'',
IsAdvanceFinance:1,
},
costList:[],
transactionmode:false,
accountList2:[],
trabeList:[],//获取的交易方式列表
alltransaction:[],
istransaction:false,
HandShow: false,
}
},
created(){
F_Advance_Match: false,
yfcdState: false,
yfcheckList: [],
yfOutBranchId: "",
yfHandmsg: {
OtherType: 7,
ReFinanceId: 0,
Rate: 0,
czState: true
},
czList: [],
total2: 0,
czdateList: [],
czMsg: {
pageIndex: 1,
pageSize: 8,
FrID: "",
CostTypeID: "",
sTradeDate: "",
eTradeDate: "",
IsAdvanceFinance: 1
},
costList: [],
transactionmode: false,
transactionTax: false,
accountList2: [],
trabeList: [], //获取的交易方式列表
alltransaction: [],
istransaction: false,
transTax: {
FrId: 0,
Fee: "0.0",
loading: false
}
};
},
created() {
let userinfo = this.getLocalStorage();
let ActionMenuCode=userinfo.ActionMenuCode;
if(ActionMenuCode.indexOf('F_AccountantFinanceMerge')!=-1){
this.hbShow=true;
let ActionMenuCode = userinfo.ActionMenuCode;
if (ActionMenuCode.indexOf("F_AccountantFinanceMerge") != -1) {
this.hbShow = true;
}
if(ActionMenuCode.indexOf('F_HandWithFee')!=-1){
this.HandShow=true;
if (ActionMenuCode.indexOf("F_HandWithFee") != -1) {
this.HandShow = true;
}
if(ActionMenuCode.indexOf('F_Trademodify')!=-1){
this.istransaction=true;
if (ActionMenuCode.indexOf("F_Trademodify") != -1) {
this.istransaction = true;
}
if(this.$route.query.returnCode){
if (this.$route.query.returnCode) {
this.active = this.$route.query.returnCode;
this.msg.Conditon = this.$route.query.returnCode;
}
if(this.$route.query.pageIndex){
if (this.$route.query.pageIndex) {
this.msg.pageIndex = this.$route.query.pageIndex;
}
if(this.$route.query.Conditon){
if (this.$route.query.Conditon) {
this.msg.Conditon = this.$route.query.Conditon;
this.active = parseInt(this.$route.query.Conditon);
}
if(this.$route.query.FrID){
if (this.$route.query.FrID) {
this.msg.FrID = this.$route.query.FrID;
}
if(this.$route.query.Type){
this.msg.Type = this.$route.query.Type+'';
if (this.$route.query.Type) {
this.msg.Type = this.$route.query.Type + "";
}
let allH,allW,cH;
let allH, allW, cH;
allH = document.documentElement.clientHeight;
allW = document.documentElement.clientWidth;
cH = allH-380; //298 = 顶部导航 50 面包屑83 查询框75 table表头41 分页49
cH = allH - 380; //298 = 顶部导航 50 面包屑83 查询框75 table表头41 分页49
this.minHeight = cH;
},
components: {
"my-Bill": myBill,
"my-RVB-Bill":myrbvBill,
"my-HB-Bill":myhrBill,
"my-GZ-Bill": myGZBill,
"my-RVB-Bill": myrbvBill,
"my-HB-Bill": myhrBill,
"my-GZ-Bill": myGZBill
},
mounted(){
mounted() {
this.GetAuth();
this.getCostTypeList();
let userInfo=this.getLocalStorage();
this.yfOutBranchId=userInfo.RB_Branch_id;
let userMenuCode = ',' + userInfo.ActionMenuCode + ',';
this.userMenuCode = userMenuCode.indexOf(',C_Batch_AuditFinance,') != -1 ? true : false;
this.getCompanyMsg.RB_Group_Id= this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
this.ActionMenuCode=userInfo.ActionMenuCode;
let userInfo = this.getLocalStorage();
this.yfOutBranchId = userInfo.RB_Branch_id;
let userMenuCode = "," + userInfo.ActionMenuCode + ",";
this.userMenuCode =
userMenuCode.indexOf(",C_Batch_AuditFinance,") != -1 ? true : false;
this.getCompanyMsg.RB_Group_Id = this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id =
userInfo.RB_Group_id; //集团ID
this.ActionMenuCode = userInfo.ActionMenuCode;
this.DepartIDs = userInfo.RB_Department_Id;
this.userId = userInfo.EmployeeId;
this.getMyRejectFinanceCount();
......@@ -1152,7 +1483,7 @@ export default {
this.AccountType_post_GetList();
this.czgetList();
},
methods:{
methods: {
GetAuth() {
var actionCode = this.$AuthCode.F_Advance_Match;
this.CheckUserAuth(actionCode, res => {
......@@ -1160,47 +1491,52 @@ export default {
this.F_Advance_Match = true;
}
});
},
ZhiDanChongDi(){
this.yfcdState=true;
this.yfcheckList=[];
ZhiDanChongDi() {
this.yfcdState = true;
this.yfcheckList = [];
},
goUrlZD(){
let that=this;
let yfcheckList=JSON.parse(JSON.stringify(this.yfcheckList))
goUrlZD() {
let that = this;
let yfcheckList = JSON.parse(JSON.stringify(this.yfcheckList));
if(this.yfcheckList.length>1){
if (this.yfcheckList.length > 1) {
this.Error("只能选择一项!");
return;
}
if(this.yfcheckList.length==0){
if (this.yfcheckList.length == 0) {
this.Error("至少选择一项");
return;
}
let arr=[];
let arr = [];
// var TCArr = [this.yfHandmsg.TCNUM];
let orderObj = {
OrderID: 0,
OrderSource: 8,
Obj: {},
Obj: {}
// TCIDList: TCArr
}
that.yfHandmsg.ReFinanceId=this.yfcheckList[0].FrID;
that.yfHandmsg.Rate=this.yfcheckList[0].Rate;
var msg=JSON.stringify(that.yfHandmsg);
};
that.yfHandmsg.ReFinanceId = this.yfcheckList[0].FrID;
that.yfHandmsg.Rate = this.yfcheckList[0].Rate;
var msg = JSON.stringify(that.yfHandmsg);
let routeData = this.$router.resolve({
name: 'ChoiceAddFinancialDocuments',
query: {czmsg:msg,'orderObj': JSON.stringify(orderObj),companyID: this.OutBranchId,Type: 2,searchTitle:'分摊'}
})
window.open(routeData.href, '_blank')
name: "ChoiceAddFinancialDocuments",
query: {
czmsg: msg,
orderObj: JSON.stringify(orderObj),
companyID: this.OutBranchId,
Type: 2,
searchTitle: "分摊"
}
});
window.open(routeData.href, "_blank");
},
ckeckOne(){
if(this.yfcheckList.length==2){
this.yfcheckList.splice(0,1);
ckeckOne() {
if (this.yfcheckList.length == 2) {
this.yfcheckList.splice(0, 1);
}
if(this.yfcheckList.length>1){
if (this.yfcheckList.length > 1) {
this.Error("只能选择一项!");
}
},
......@@ -1209,36 +1545,46 @@ export default {
this.czgetList();
},
getCostTypeList() {
this.apipost("Financial_get_GetAdvanceCostTypeList", {}, res => {
this.apipost(
"Financial_get_GetAdvanceCostTypeList",
{},
res => {
if (res.data.resultCode === 1) {
this.costList = res.data.data
}else{
this.Error(res.data.message)
this.costList = res.data.data;
} else {
this.Error(res.data.message);
}
}, null)
},
czgetList(){
if(this.czdateList && this.czdateList.length>0){
this.czMsg.sTradeDate=this.czdateList[0];
this.czMsg.eTradeDate=this.czdateList[1];
}else{
this.czMsg.sTradeDate='';
this.czMsg.eTradeDate='';
null
);
},
czgetList() {
if (this.czdateList && this.czdateList.length > 0) {
this.czMsg.sTradeDate = this.czdateList[0];
this.czMsg.eTradeDate = this.czdateList[1];
} else {
this.czMsg.sTradeDate = "";
this.czMsg.eTradeDate = "";
}
let msg=Object.assign({},this.czMsg);
if(msg.FrID==''){
msg.FrID=0;
let msg = Object.assign({}, this.czMsg);
if (msg.FrID == "") {
msg.FrID = 0;
}
this.apipost("Financial_get_GetAdvanceFinancePageList", msg, res => {
this.apipost(
"Financial_get_GetAdvanceFinancePageList",
msg,
res => {
if (res.data.resultCode === 1) {
this.czList = res.data.data.pageData;
this.total2=res.data.data.count;
this.total2 = res.data.data.count;
}
}, null)
},
null
);
},
HebingSPLast(){
if(this.checkList.length==0){
HebingSPLast() {
if (this.checkList.length == 0) {
this.Error("请选择单据!");
return;
}
......@@ -1248,783 +1594,1068 @@ export default {
type: "warning"
})
.then(() => {
this.hbBtn=true;
this.hbMsg.FrIDList=this.checkList;
this.apipost("Financial_post_SetAccountantFinanceMerge",this.hbMsg,res => {
this.hbBtn=false;
this.hbBtn = true;
this.hbMsg.FrIDList = this.checkList;
this.apipost(
"Financial_post_SetAccountantFinanceMerge",
this.hbMsg,
res => {
this.hbBtn = false;
if (res.data.resultCode == 1) {
this.getPageList();
}
else{
} else {
this.Error(res.data.message);
}
},err => {});
},
err => {}
);
})
.catch(() => {});
},
HebingSP(){
if(this.msg.Type==1 || this.msg.Type==2){
this.hbState=true;
this.hbMsg.Type=this.msg.Type;
HebingSP() {
if (this.msg.Type == 1 || this.msg.Type == 2) {
this.hbState = true;
this.hbMsg.Type = this.msg.Type;
this.getPageList();
}else{
this.Error("单据类型只能为收入或支出!")
} else {
this.Error("单据类型只能为收入或支出!");
}
},
setHand(){
if(this.HandMsg.TCNUM==''){
setHand() {
if (this.HandMsg.TCNUM == "") {
this.Error("请输入团号!");
return;
}
if(this.HandMsg.ReFinanceId==''){
if (this.HandMsg.ReFinanceId == "") {
this.Error("请输入相关单据号!");
return;
}
let msg=JSON.stringify(this.HandMsg);
this.HandState=false;
this.$router.push({ name: 'ChoiceAddFinancialDocuments',query:{Handmsg:msg,blank:'y',tab:'新增财务单据'} })
let msg = JSON.stringify(this.HandMsg);
this.HandState = false;
this.$router.push({
name: "ChoiceAddFinancialDocuments",
query: { Handmsg: msg, blank: "y", tab: "新增财务单据" }
});
},
// 手配费
Handwithfee(){
this.HandMsg={
TCNUM:"",
ReFinanceId:'',
OtherType:6,
}
this.HandState=true;
Handwithfee() {
this.HandMsg = {
TCNUM: "",
ReFinanceId: "",
OtherType: 6
};
this.HandState = true;
},
// 催审
cuishen: function (cmd, id) {
this.$confirm('确定催审?', this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.loading= true
this.apipost(cmd,{FrId: id},res=>{
if(res.data.resultCode==1){
cuishen: function(cmd, id) {
this.$confirm("确定催审?", this.$t("tips.tips"), {
confirmButtonText: this.$t("pub.sureBtn"),
cancelButtonText: this.$t("pub.cancelBtn"),
type: "warning"
})
.then(() => {
this.loading = true;
this.apipost(
cmd,
{ FrId: id },
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getPageList();
}else{
} else {
this.Error(res.data.message);
}
},err=>{})
}).catch(() => {
},
err => {}
);
})
.catch(() => {
this.$message({
type: 'info',
message: this.$t('ios.yi') + this.$t('pub.cancelBtn')
type: "info",
message: this.$t("ios.yi") + this.$t("pub.cancelBtn")
});
});
},
//转交
getExchange(FrID){
this.zhuanjiaoMsg.CreateBy = '';
getExchange(FrID) {
this.zhuanjiaoMsg.CreateBy = "";
this.zhuanjiaoMsg.FrIDList = [];
this.zhuanjiaoMsg.FrIDList.push(FrID);
this.zhuanjiaoBox = true;
},
//设置转交
setExchange(){
if(this.zhuanjiaoMsg.CreateBy==''){
this.Error('请选择转交人');
setExchange() {
if (this.zhuanjiaoMsg.CreateBy == "") {
this.Error("请选择转交人");
return;
}
this.apipost('Financial_post_SetFinanceCreateByCareOf',this.zhuanjiaoMsg,res=>{
if(res.data.resultCode==1){
this.apipost(
"Financial_post_SetFinanceCreateByCareOf",
this.zhuanjiaoMsg,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.zhuanjiaoBox = false;
this.getPageList();
}else{
} else {
this.Error(res.data.message);
}
},err=>{})
},
remoteMethodEx(query) { // 转交人模糊查询
if (query !== ''||this.addShow) {
this.apipost("admin_Get_Chat_All_SelectEmpName",{ EmName:query },res => {
err => {}
);
},
remoteMethodEx(query) {
// 转交人模糊查询
if (query !== "" || this.addShow) {
this.apipost(
"admin_Get_Chat_All_SelectEmpName",
{ EmName: query },
res => {
if (res.data.resultCode == 1) {
this.searchList = res.data.data;
}
},err => {});
},
err => {}
);
} else {
this.searchList = [];
}
},
subBOSSBtnClick: function () {
subBOSSBtnClick: function() {
this.loading = true;
if (this.bossLen && this.bossLen <= this.checkList.length) {
this.BOSSDialogText = true;
this.AuditOrRefundMsg.WorkFlowId = this.checkList[this.bossLen-1]
this.apipost('Financial_post_AuditOrRefund',this.AuditOrRefundMsg,res=>{
if(res.data.resultCode==1){
this.bossLen += 1
this.subBOSSBtnClick()
}else{
this.AuditOrRefundMsg.WorkFlowId = this.checkList[this.bossLen - 1];
this.apipost(
"Financial_post_AuditOrRefund",
this.AuditOrRefundMsg,
res => {
if (res.data.resultCode == 1) {
this.bossLen += 1;
this.subBOSSBtnClick();
} else {
this.$message.error(res.data.message);
this.loading = false;
this.checkList = [];
this.getPageList(1)
this.getPageList(1);
this.BOSSDialogText = false;
}
},err=>{})
},
err => {}
);
} else {
this.BOSSDialogText = false;
this.BOSSDialog = false;
this.checkList = [];
this.$message.success(this.$t('ios.shwanbi'));
this.$message.success(this.$t("ios.shwanbi"));
this.loading = false;
this.getPageList(1)
this.getPageList(1);
}
},
BOSSBtnClick: function (t) {
if (this.checkList.length<1) {
this.$message.error(this.$t('rule.qxzygxytjddanju'));
BOSSBtnClick: function(t) {
if (this.checkList.length < 1) {
this.$message.error(this.$t("rule.qxzygxytjddanju"));
} else {
if (t === 2) {
this.zhuanBox = true
this.zhuanBox = true;
} else {
this.BOSSDialog = true;
}
}
},
goTicketPage(data) { // 跳转机票
this.$router.push({ name: 'TicketManager',query:{id:data.SourceID,blank:'y',tab:'票务管理'} })
goTicketPage(data) {
// 跳转机票
this.$router.push({
name: "TicketManager",
query: { id: data.SourceID, blank: "y", tab: "票务管理" }
});
},
zhuanBtn(){
if(!this.zhuanMsg.AuditEmId) return this.$message.error(this.$t('rule.qxzzjiaoren'));
if(!this.zhuanMsg.Description)return this.$message.error(this.$t('rule.qtxzjbeizhu'));
zhuanBtn() {
if (!this.zhuanMsg.AuditEmId)
return this.$message.error(this.$t("rule.qxzzjiaoren"));
if (!this.zhuanMsg.Description)
return this.$message.error(this.$t("rule.qtxzjbeizhu"));
let msg = [];
msg.push(this.zhuanMsg);
this.BOSSDialogText = true;
if (this.BOSSBtn2) {
this.zhuanMsg.WorkFlowId = this.checkList[this.bossLen-1]
this.zhuanMsg.WorkFlowId = this.checkList[this.bossLen - 1];
this.loading = true;
if (this.bossLen && this.bossLen <= this.checkList.length) {
this.apipost('Financial_post_Transfer', msg, res=>{
if(res.data.resultCode==1){
this.bossLen += 1
this.zhuanBtn()
}else{
this.apipost(
"Financial_post_Transfer",
msg,
res => {
if (res.data.resultCode == 1) {
this.bossLen += 1;
this.zhuanBtn();
} else {
this.$message.error(res.data.message);
this.loading = false;
this.checkList = [];
this.getPageList(1)
this.getPageList(1);
}
},err=>{})
},
err => {}
);
} else {
this.BOSSDialogText = false;
this.zhuanBox = false;
this.checkList = [];
this.$message.success('转交完成!');
this.$message.success("转交完成!");
this.loading = false;
this.getPageList(1)
this.getPageList(1);
}
} else {
this.apipost("Financial_post_Transfer",msg,res => {
if(res.data.resultCode == 1) {
this.apipost(
"Financial_post_Transfer",
msg,
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.zhuanBox = false;
this.getPageList();
this.zhuanMsg.AuditEmId = '';
}else{
this.zhuanMsg.AuditEmId = "";
} else {
this.$message.error(res.data.message);
}
},err => {});
},
err => {}
);
}
},
goUrl(){
goUrl() {
this.dialogFormVisible = true;
},
UpdateTradeDate(){
if(!this.updateMsg.TradeDate) return this.$message.error(this.$t('rule.qxztzhdjyriqi'));
if(!this.updateMsg.Description) return this.$message.error(this.$t('rule.qtxshuoming'));
this.apipost("Financial_get_SetTradeDate",this.updateMsg,res => {
if(res.data.resultCode == 1) {
UpdateTradeDate() {
if (!this.updateMsg.TradeDate)
return this.$message.error(this.$t("rule.qxztzhdjyriqi"));
if (!this.updateMsg.Description)
return this.$message.error(this.$t("rule.qtxshuoming"));
this.apipost(
"Financial_get_SetTradeDate",
this.updateMsg,
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.dialogFormVisible = false;
this.msg.Conditon=2;
this.msg.Conditon = 2;
this.getPageList();
}else{
} else {
this.$message.error(res.data.message);
}
},err => {});
},
remoteMethod(query) { // 转交人模糊查询
if (query !== ''||this.addShow) {
err => {}
);
},
remoteMethod(query) {
// 转交人模糊查询
if (query !== "" || this.addShow) {
this.loading2 = true;
this.apipost("admin_Get_Chat_All_SelectEmpName",{ EmName:query },res => {
this.apipost(
"admin_Get_Chat_All_SelectEmpName",
{ EmName: query },
res => {
if (res.data.resultCode == 1) {
this.searchList = res.data.data;
this.loading2 = false;
}
},err => {});
},
err => {}
);
} else {
this.searchList = [];
this.loading2 = false;
}
},
closeChangeMachie(done) { // 转交窗口关闭
closeChangeMachie(done) {
// 转交窗口关闭
this.BOSSDialogText = false;
done();
},
Financial_post_SetBatch(){ // 批量提交
Financial_post_SetBatch() {
// 批量提交
let FrID = this.checkList;
if(!FrID.length)return this.$message.error(this.$t('rule.qxzygxytjddanju'));
if (!FrID.length)
return this.$message.error(this.$t("rule.qxzygxytjddanju"));
let list = [];
this.checkList.forEach(x=>{
list.push({FrID:x});
})
this.apipost('Financial_post_SetBatch',list,res=>{
if(res.data.resultCode==1){
this.checkList.forEach(x => {
list.push({ FrID: x });
});
this.apipost(
"Financial_post_SetBatch",
list,
res => {
if (res.data.resultCode == 1) {
this.getPageList();
this.$message.success(res.data.message);
}else{
} else {
this.$message.error(res.data.message);
}
},err=>{})
},
ckeckedOne() { //单选
if(this.checkList.length < this.checkAllList.length) {
this.isCkedAll = false
err => {}
);
},
ckeckedOne() {
//单选
if (this.checkList.length < this.checkAllList.length) {
this.isCkedAll = false;
} else {
this.isCkedAll = true
this.isCkedAll = true;
}
},
checkedAll() { //全选
if(this.isCkedAll == true) {
checkedAll() {
//全选
if (this.isCkedAll == true) {
this.checkList = [];
} else {
this.checkAllList.forEach(item => {
this.checkList.push(item)
})
this.checkList.push(item);
});
}
},
AccountType_post_GetList(){ //获取账户类型下拉
this.apipost('AccountType_post_GetList',this.queryAccMsg,res=>{
if(res.data.resultCode==1){
AccountType_post_GetList() {
//获取账户类型下拉
this.apipost(
"AccountType_post_GetList",
this.queryAccMsg,
res => {
if (res.data.resultCode == 1) {
this.AccList = res.data.data;
let alltransaction = []
this.AccList.forEach(x=>{
let alltransaction = [];
this.AccList.forEach(x => {
let obj = {
Id:x.ID,
list:[]
}
this.apipost('FinancialInstitutions_post_GetALLAccountList', {
Id: x.ID,
list: []
};
this.apipost(
"FinancialInstitutions_post_GetALLAccountList",
{
TypeId: x.ID
}, res => {
},
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x => {
x.allName = x.BackNo + "(" + x.Alias + ")";
x.Name = x.Alias;
})
obj.list = data
});
obj.list = data;
}
}, err => {})
},
err => {}
);
this.alltransaction.push(obj)
})
}else{
this.alltransaction.push(obj);
});
} else {
this.$message.error(res.data.message);
}
},err=>{})
},
getMyRejectFinanceCount(){
this.apipost('Financial_post_GetMyRejectFinanceCount',{EmployeeId:this.userId}, res => {
if(res.data.resultCode == 1) {
err => {}
);
},
getMyRejectFinanceCount() {
this.apipost(
"Financial_post_GetMyRejectFinanceCount",
{ EmployeeId: this.userId },
res => {
if (res.data.resultCode == 1) {
this.rejectNum = res.data.data;
}
}, err => {})
},
getPageList(t){ // 获取列表数据
this.loading= true
this.checkAllList =[];
err => {}
);
},
getPageList(t) {
// 获取列表数据
this.loading = true;
this.checkAllList = [];
this.checkList = [];
if ((t&&this.BOSSBtn)||(t&&this.BOSSBtn2)) {
if ((t && this.BOSSBtn) || (t && this.BOSSBtn2)) {
this.msg.pageSize = 1000;
}
else if(this.hbState){
} else if (this.hbState) {
this.msg.pageSize = 30;
}
else {
} else {
this.msg.pageSize = 6;
}
if(this.msg.Status==0){
if (this.msg.Status == 0) {
this.checkboxShow = true;
}else{
} else {
this.checkboxShow = false;
}
if(!this.msg.ClientID)this.msg.ClientID=0;
if(!this.msg.ClientType)this.msg.ClientType=0;
if(!this.msg.CurrencyId)this.msg.CurrencyId=0;
if(!this.msg.CostTypeID)this.msg.CostTypeID=0;
if(!this.msg.TemplateId)this.msg.TemplateId=0;
if(!this.msg.RB_Branch_Id)this.msg.RB_Branch_Id=-1;
if(!this.msg.RB_Depart_Id)this.msg.RB_Depart_Id=0;
if(!this.msg.UpdateBy)this.msg.UpdateBy=0;
if(!this.msg.TCID)this.msg.TCID=0;
if(!this.msg.OrderID)this.msg.OrderID=0;
if(!this.msg.Status)this.msg.Status=0;
if(!this.msg.FrID)this.msg.FrID=0;
if(!this.msg.Conditon)this.msg.Conditon=1;
if(!this.msg.TradeWay)this.msg.TradeWay=0;
if(!this.msg.AccountType)this.msg.AccountType=0;
this.apipost('Financial_post_GetPageList',this.msg,res=>{
if(res.data.resultCode == 1) {
if (!this.msg.ClientID) this.msg.ClientID = 0;
if (!this.msg.ClientType) this.msg.ClientType = 0;
if (!this.msg.CurrencyId) this.msg.CurrencyId = 0;
if (!this.msg.CostTypeID) this.msg.CostTypeID = 0;
if (!this.msg.TemplateId) this.msg.TemplateId = 0;
if (!this.msg.RB_Branch_Id) this.msg.RB_Branch_Id = -1;
if (!this.msg.RB_Depart_Id) this.msg.RB_Depart_Id = 0;
if (!this.msg.UpdateBy) this.msg.UpdateBy = 0;
if (!this.msg.TCID) this.msg.TCID = 0;
if (!this.msg.OrderID) this.msg.OrderID = 0;
if (!this.msg.Status) this.msg.Status = 0;
if (!this.msg.FrID) this.msg.FrID = 0;
if (!this.msg.Conditon) this.msg.Conditon = 1;
if (!this.msg.TradeWay) this.msg.TradeWay = 0;
if (!this.msg.AccountType) this.msg.AccountType = 0;
this.apipost(
"Financial_post_GetPageList",
this.msg,
res => {
if (res.data.resultCode == 1) {
let data = [];
if(t==1&&this.BOSSBtn&&this.msg.Conditon==3){
if (t == 1 && this.BOSSBtn && this.msg.Conditon == 3) {
let dataList = res.data.data.pageData;
let newData = [];
dataList.forEach(x=>{
if(x.IsBatchAudit==0||x.Type==1){
dataList.forEach(x => {
if (x.IsBatchAudit == 0 || x.Type == 1) {
newData.push(x);
}
})
});
data = newData;
}else{
} else {
data = res.data.data.pageData;
}
this.total = res.data.data.count;
if(this.total==0){
this.DataList=[];
if (this.total == 0) {
this.DataList = [];
this.noData = true;
}else{
data.forEach(x=>{
} else {
data.forEach(x => {
x.modelShow = false;
this.checkAllList.push(x.FrID)
})
this.checkAllList.push(x.FrID);
});
this.DataList = data;
this.noData = false;
}
this.loading=false;
}else{
this.loading= false;
this.loading = false;
} else {
this.loading = false;
this.$message.error(res.data.message);
}
// this.queryInfoInit();
},err=>{})
if(this.msg.Conditon==7){
},
err => {}
);
if (this.msg.Conditon == 7) {
this.getMyRejectFinanceCount();
}
},
financeRemove(id){//作废
this.$confirm(this.$t('tips.zuofeicaiwudan'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.deletFinance(id)
}).catch(() => {
financeRemove(id) {
//作废
this.$confirm(this.$t("tips.zuofeicaiwudan"), this.$t("tips.tips"), {
confirmButtonText: this.$t("pub.sureBtn"),
cancelButtonText: this.$t("pub.cancelBtn"),
type: "warning"
})
.then(() => {
this.deletFinance(id);
})
.catch(() => {
this.$message({
type: 'info',
message: this.$t('ios.yi') + this.$t('pub.cancelBtn')
type: "info",
message: this.$t("ios.yi") + this.$t("pub.cancelBtn")
});
});
},
deletFinance(id){
this.apipost('Financial_post_Cancel',{ID:id},res=>{
if(res.data.resultCode == 1) {
this.$message.success(res.data.message)
}else{
this.$message.error(res.data.message)
deletFinance(id) {
this.apipost(
"Financial_post_Cancel",
{ ID: id },
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
} else {
this.$message.error(res.data.message);
}
this.getPageList();
},err=>{})
},
Financial_post_GetFinancLogList(id){ // 获取单据日志
if(this.checkboxShow) return
err => {}
);
},
Financial_post_GetFinancLogList(id) {
// 获取单据日志
if (this.checkboxShow) return;
this.LogLoading = true;
this.apipost('Financial_post_GetFinancLogList',{ID:id,Type:2}, res => {
if(res.data.resultCode == 1) {
this.apipost(
"Financial_post_GetFinancLogList",
{ ID: id, Type: 2 },
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x=>{
x.UpdateDate = this.$commonUtils.formatMsgTime(x.UpdateDate)
})
data.forEach(x => {
x.UpdateDate = this.$commonUtils.formatMsgTime(x.UpdateDate);
});
this.LogLoading = false;
this.GetFinancLogList = data;
}
}, err => {})
},
mathMoney(n){ // 数字转中文大写 1
this.ChineseStr = this.$commonUtils.changeMoneyToChinese(n)
err => {}
);
},
FinancialFlowTemplate_post_GetStatusList(){ // 获取审核状态枚举
this.apipost('FinancialFlowTemplate_post_GetStatusList',{}, res => {
if(res.data.resultCode == 1) {
mathMoney(n) {
// 数字转中文大写 1
this.ChineseStr = this.$commonUtils.changeMoneyToChinese(n);
},
FinancialFlowTemplate_post_GetStatusList() {
// 获取审核状态枚举
this.apipost(
"FinancialFlowTemplate_post_GetStatusList",
{},
res => {
if (res.data.resultCode == 1) {
this.StatusList = res.data.data;
}
}, err => {})
},
financeinfo_post_GetClientTypeList(){ // 获取对象类型
this.apipost('financeinfo_post_GetClientTypeList',{}, res => {
if(res.data.resultCode == 1) {
err => {}
);
},
financeinfo_post_GetClientTypeList() {
// 获取对象类型
this.apipost(
"financeinfo_post_GetClientTypeList",
{},
res => {
if (res.data.resultCode == 1) {
this.ClientTypeList = res.data.data;
}
}, err => {})
},
financeinfo_post_GetClientAccountList(t){ // 获取对象类型
err => {}
);
},
financeinfo_post_GetClientAccountList(t) {
// 获取对象类型
let msg = {
Type:t,
ObjID:0,
CardNum:''
}
this.apipost('financeinfo_post_GetClientAccountList',msg, res => {
if(res.data.resultCode == 1) {
Type: t,
ObjID: 0,
CardNum: ""
};
this.apipost(
"financeinfo_post_GetClientAccountList",
msg,
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
let ClientAccountList = [];
data.forEach(x=>{
data.forEach(x => {
let obj = {
ID:x.ID,
Name:x.AccountAlias,
Nom:x.CardNum
}
ClientAccountList.push(obj)
})
ID: x.ID,
Name: x.AccountAlias,
Nom: x.CardNum
};
ClientAccountList.push(obj);
});
this.ClientAccountList = ClientAccountList;
}
}, err => {})
},
getAccountList(i,t){ //收款账户
let accountList = []
if(t==1){ // 银行
this.apipost('bankaccount_post_GetList',{TypeId:i}, res => {
if(res.data.resultCode == 1) {
err => {}
);
},
getAccountList(i, t) {
//收款账户
let accountList = [];
if (t == 1) {
// 银行
this.apipost(
"bankaccount_post_GetList",
{ TypeId: i },
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x=>{
data.forEach(x => {
let obj = {
ID:x.ID,
Name:x.Alias,
Nom:0,
}
accountList.push(obj)
})
this.accountList = accountList
ID: x.ID,
Name: x.Alias,
Nom: 0
};
accountList.push(obj);
});
this.accountList = accountList;
}
}, err => {})
},
err => {}
);
}
if(t==2){ //平台账户
if (t == 2) {
//平台账户
let msg = {
BackId:0,
TypeId:i,
BranchId:-1,
Alias:''
}
this.apipost('BankAccount_post_GetPlatformList',msg, res => {
if(res.data.resultCode == 1) {
BackId: 0,
TypeId: i,
BranchId: -1,
Alias: ""
};
this.apipost(
"BankAccount_post_GetPlatformList",
msg,
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x=>{
data.forEach(x => {
let obj = {
ID:x.ID,
Name:x.Alias,
Nom:x.PlatformNo
}
accountList.push(obj)
})
this.accountList = accountList
ID: x.ID,
Name: x.Alias,
Nom: x.PlatformNo
};
accountList.push(obj);
});
this.accountList = accountList;
}
}, err => {})
},
err => {}
);
}
if(t==3){ //现金账户
if (t == 3) {
//现金账户
let msg = {
TypeId:i,
BranchId:-1,
Alias:''
}
this.apipost('BankAccount_post_GetCashAccountList',msg, res => {
if(res.data.resultCode == 1) {
TypeId: i,
BranchId: -1,
Alias: ""
};
this.apipost(
"BankAccount_post_GetCashAccountList",
msg,
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x=>{
data.forEach(x => {
let obj = {
ID:x.ID,
Name:x.Alias,
Nom:0
}
accountList.push(obj)
})
this.accountList = accountList
ID: x.ID,
Name: x.Alias,
Nom: 0
};
accountList.push(obj);
});
this.accountList = accountList;
}
}, err => {})
},
err => {}
);
}
if(t==4){ //资金池账户
if (t == 4) {
//资金池账户
let msg = {
TypeId:i,
BranchId:-1,
Alias:''
}
this.apipost('BankAccount_post_GetCashPoolList',msg, res => {
if(res.data.resultCode == 1) {
TypeId: i,
BranchId: -1,
Alias: ""
};
this.apipost(
"BankAccount_post_GetCashPoolList",
msg,
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x=>{
data.forEach(x => {
let obj = {
ID:x.ID,
Name:x.Alias,
Nom:0
}
accountList.push(obj)
})
this.accountList = accountList
ID: x.ID,
Name: x.Alias,
Nom: 0
};
accountList.push(obj);
});
this.accountList = accountList;
}
}, err => {})
},
err => {}
);
}
},
Financial_post_GetBranchAccountList(){ //获取交易方式列表
this.apipost('Financial_post_GetBranchAccountList',{}, res => {
if(res.data.resultCode == 1) {
Financial_post_GetBranchAccountList() {
//获取交易方式列表
this.apipost(
"Financial_post_GetBranchAccountList",
{},
res => {
if (res.data.resultCode == 1) {
this.BranchAccountList = res.data.data;
}
}, err => {})
},
err => {}
);
},
//导出
method5: function() {
if(!this.msg.ClientID)this.msg.ClientID=0;
if(!this.msg.ClientType)this.msg.ClientType=0;
if(!this.msg.CurrencyId)this.msg.CurrencyId=0;
if(!this.msg.CostTypeID)this.msg.CostTypeID=0;
if(!this.msg.TemplateId)this.msg.TemplateId=0;
if(!this.msg.RB_Branch_Id)this.msg.RB_Branch_Id=-1;
if(!this.msg.RB_Depart_Id)this.msg.RB_Depart_Id=0;
if(!this.msg.UpdateBy)this.msg.UpdateBy=0;
if(!this.msg.TCID)this.msg.TCID=0;
if(!this.msg.OrderID)this.msg.OrderID=0;
if(!this.msg.Status)this.msg.Status=0;
if(!this.msg.FrID)this.msg.FrID=0;
if(!this.msg.Conditon)this.msg.Conditon=1;
if(!this.msg.TradeWay)this.msg.TradeWay=0;
if(!this.msg.AccountType)this.msg.AccountType=0;
this.msg.EmployeeId=this.userId;
this.GetLocalFile("Financial_get_OutToFinanceList", this.msg, this.$t('fnc.cwbaobiao')+".xls");
} ,
getDepartment(){ //部门
this.apipost('admin_get_DepartmentGetList', this.getDepartmentMsg, res => {
if(res.data.resultCode == 1) {
if (!this.msg.ClientID) this.msg.ClientID = 0;
if (!this.msg.ClientType) this.msg.ClientType = 0;
if (!this.msg.CurrencyId) this.msg.CurrencyId = 0;
if (!this.msg.CostTypeID) this.msg.CostTypeID = 0;
if (!this.msg.TemplateId) this.msg.TemplateId = 0;
if (!this.msg.RB_Branch_Id) this.msg.RB_Branch_Id = -1;
if (!this.msg.RB_Depart_Id) this.msg.RB_Depart_Id = 0;
if (!this.msg.UpdateBy) this.msg.UpdateBy = 0;
if (!this.msg.TCID) this.msg.TCID = 0;
if (!this.msg.OrderID) this.msg.OrderID = 0;
if (!this.msg.Status) this.msg.Status = 0;
if (!this.msg.FrID) this.msg.FrID = 0;
if (!this.msg.Conditon) this.msg.Conditon = 1;
if (!this.msg.TradeWay) this.msg.TradeWay = 0;
if (!this.msg.AccountType) this.msg.AccountType = 0;
this.msg.EmployeeId = this.userId;
this.GetLocalFile(
"Financial_get_OutToFinanceList",
this.msg,
this.$t("fnc.cwbaobiao") + ".xls"
);
},
getDepartment() {
//部门
this.apipost(
"admin_get_DepartmentGetList",
this.getDepartmentMsg,
res => {
if (res.data.resultCode == 1) {
this.DepartmentList = res.data.data;
}
}, err => {})
},
getEmployee() { //员工
this.apipost('admin_get_EmployeeGetList', this.employeeMsg, res => {
if(res.data.resultCode == 1) {
err => {}
);
},
getEmployee() {
//员工
this.apipost(
"admin_get_EmployeeGetList",
this.employeeMsg,
res => {
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
}
}, err => {})
},
getCompanyList(){ //获取公司列表
this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{
if(res.data.resultCode==1){
this.CompanyList=res.data.data;
}else{}
},err=>{})
},
Financial_post_GetConditionList(){ //获取财务单据枚举列表
this.apipost('Financial_post_GetConditionList',{},res=>{
if(res.data.resultCode==1){
this.ConditionList=res.data.data;
}else{}
},err=>{})
},
financeinfo_post_GetList(){ // 币种类型
this.apipost('financeinfo_post_GetList',{Name:''},res=>{
if(res.data.resultCode==1){
},
err => {}
);
},
getCompanyList() {
//获取公司列表
this.apipost(
"admin_get_BranchGetList",
this.getCompanyMsg,
res => {
if (res.data.resultCode == 1) {
this.CompanyList = res.data.data;
} else {
}
},
err => {}
);
},
Financial_post_GetConditionList() {
//获取财务单据枚举列表
this.apipost(
"Financial_post_GetConditionList",
{},
res => {
if (res.data.resultCode == 1) {
this.ConditionList = res.data.data;
} else {
}
},
err => {}
);
},
financeinfo_post_GetList() {
// 币种类型
this.apipost(
"financeinfo_post_GetList",
{ Name: "" },
res => {
if (res.data.resultCode == 1) {
this.currencyTypeList = res.data.data;
}else{
} else {
}
},err=>{})
},
financeinfo_post_GetCostTypeList(){ // 费用类型
this.apipost('financeinfo_post_GetCostTypeList',{Name:'',type:0,DepartIDs:this.DepartIDs},res=>{
if(res.data.resultCode==1){
err => {}
);
},
financeinfo_post_GetCostTypeList() {
// 费用类型
this.apipost(
"financeinfo_post_GetCostTypeList",
{ Name: "", type: 0, DepartIDs: this.DepartIDs },
res => {
if (res.data.resultCode == 1) {
this.GetCostTypeList = res.data.data;
}else{
} else {
}
},err=>{})
},
FinancialFlowTemplate_post_GetList(){ // 单据类型
this.apipost('Financial_post_GetList',{},res=>{
if(res.data.resultCode==1){
err => {}
);
},
FinancialFlowTemplate_post_GetList() {
// 单据类型
this.apipost(
"Financial_post_GetList",
{},
res => {
if (res.data.resultCode == 1) {
this.TemplateGetList = res.data.data;
}else{
} else {
}
},err=>{})
},
timeAdd(t){ // 日期格式
if(t==1){ //制单日期
if(!this.productionDate){
this.msg.sDate = '';
this.msg.eDate = '';
return
err => {}
);
},
timeAdd(t) {
// 日期格式
if (t == 1) {
//制单日期
if (!this.productionDate) {
this.msg.sDate = "";
this.msg.eDate = "";
return;
}
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
}
if(t==2){ //审批日期
if(!this.approvalDate){
this.dateStart = '';
this.dateEnd = '';
return
if (t == 2) {
//审批日期
if (!this.approvalDate) {
this.dateStart = "";
this.dateEnd = "";
return;
}
this.dateStart = this.approvalDate[0];
this.dateEnd = this.approvalDate[1];
}if(t==3){ //交易日期
if(!this.transactionDate){
this.msg.sTradeDate = '';
this.msg.eTradeDate = '';
return
}
if (t == 3) {
//交易日期
if (!this.transactionDate) {
this.msg.sTradeDate = "";
this.msg.eTradeDate = "";
return;
}
this.msg.sTradeDate = this.transactionDate[0];
this.msg.eTradeDate = this.transactionDate[1];
}
if(t==4){ //发团日期
if(!this.missionDate){
this.dateStart = '';
this.dateEnd = '';
return
if (t == 4) {
//发团日期
if (!this.missionDate) {
this.dateStart = "";
this.dateEnd = "";
return;
}
this.msg.QStartDate = this.missionDate[0];
this.msg.QEndDate = this.missionDate[1];
}
},
queryInfoInit(){ // 初始化msg
queryInfoInit() {
// 初始化msg
let msg = {
pageIndex:this.msg.pageIndex,
pageSize:6,
FrID:this.msg.FrID==0?'':this.msg.FrID,
sDate:this.msg.sDate,
eDate:this.msg.eDate,
Status:this.msg.Status,
TemplateId:this.msg.TemplateId,
RB_Branch_Id:this.msg.RB_Branch_Id,
RB_Depart_Id:this.msg.RB_Depart_Id,
UpdateBy:this.msg.UpdateBy,
sTradeDate:this.msg.sTradeDate,
eTradeDate:this.msg.eTradeDate,
ClientType:this.msg.ClientType,
RemitterName:this.msg.RemitterName,
ClientID:this.msg.ClientID,
sMoney:this.msg.sMoney,
eMoney:this.msg.eMoney,
CurrencyId:this.msg.CurrencyId === 0 ? '' : this.msg.CurrencyId,
CostTypeID:this.msg.CostTypeID === 0 ? '' : this.msg.CostTypeID,
Conditon:this.msg.Conditon,
TCID:this.msg.TCID === 0 ? '' : this.msg.TCID,
TradeWay:this.msg.TradeWay,
Type:this.msg.Type,
AccountType:this.msg.AccountType==0?'':this.msg.AccountType,
QEndDate:this.msg.QEndDate,
QStartDate:this.msg.QStartDate,
OrderID:this.msg.OrderID==0?'':this.msg.OrderID,
Sort:this.msg.Sort,
EmployeeId:this.msg.EmployeeId,
pageIndex: this.msg.pageIndex,
pageSize: 6,
FrID: this.msg.FrID == 0 ? "" : this.msg.FrID,
sDate: this.msg.sDate,
eDate: this.msg.eDate,
Status: this.msg.Status,
TemplateId: this.msg.TemplateId,
RB_Branch_Id: this.msg.RB_Branch_Id,
RB_Depart_Id: this.msg.RB_Depart_Id,
UpdateBy: this.msg.UpdateBy,
sTradeDate: this.msg.sTradeDate,
eTradeDate: this.msg.eTradeDate,
ClientType: this.msg.ClientType,
RemitterName: this.msg.RemitterName,
ClientID: this.msg.ClientID,
sMoney: this.msg.sMoney,
eMoney: this.msg.eMoney,
CurrencyId: this.msg.CurrencyId === 0 ? "" : this.msg.CurrencyId,
CostTypeID: this.msg.CostTypeID === 0 ? "" : this.msg.CostTypeID,
Conditon: this.msg.Conditon,
TCID: this.msg.TCID === 0 ? "" : this.msg.TCID,
TradeWay: this.msg.TradeWay,
Type: this.msg.Type,
AccountType: this.msg.AccountType == 0 ? "" : this.msg.AccountType,
QEndDate: this.msg.QEndDate,
QStartDate: this.msg.QStartDate,
OrderID: this.msg.OrderID == 0 ? "" : this.msg.OrderID,
Sort: this.msg.Sort,
EmployeeId: this.msg.EmployeeId,
IsSpecial: this.msg.IsSpecial
}
};
this.msg = msg;
},
handleCurrentChange(val) { //翻页
handleCurrentChange(val) {
//翻页
this.msg.pageIndex = val;
this.getPageList();
},
resetPageIndex(){ // 重置页码
this.msg.pageIndex=1;
resetPageIndex() {
// 重置页码
this.msg.pageIndex = 1;
this.currentPage = 1;
},
goUrl(path,id,Conditon,pageIndex){
this.$router.push({ name: path,query:{"id":id,"Conditon":Conditon,"pageIndex":pageIndex,blank:'y',tab:'单据详情'} })
goUrl(path, id, Conditon, pageIndex) {
this.$router.push({
name: path,
query: {
id: id,
Conditon: Conditon,
pageIndex: pageIndex,
blank: "y",
tab: "单据详情"
}
});
},
goUrlAdd(path){
this.$router.push({ name: path,query:{blank:'y',tab:'选择财务单据类型'} })
goUrlAdd(path) {
this.$router.push({
name: path,
query: { blank: "y", tab: "选择财务单据类型" }
});
},
goEit(type,id,edit,Conditon,pageIndex, item){
let path = '';
goEit(type, id, edit, Conditon, pageIndex, item) {
let path = "";
if (type === 1) {
path = 'addReceivablesDocuments'
this.$router.push({ name: path,query:{"type":type,"FrID":id,"edit":edit,"Conditon":Conditon,"pageIndex":pageIndex,blank:'y',tab:'修改财务单据'} })
path = "addReceivablesDocuments";
this.$router.push({
name: path,
query: {
type: type,
FrID: id,
edit: edit,
Conditon: Conditon,
pageIndex: pageIndex,
blank: "y",
tab: "修改财务单据"
}
});
} else if (type === 2) {
if (item.Status == 3 && item.DMCUsePriceCount > 0) {
return this.$message.error('地接费领取被驳回单据无法修改,请到用款计划页面重新发起!')
return this.$message.error(
"地接费领取被驳回单据无法修改,请到用款计划页面重新发起!"
);
} else {
path = 'addFinancialDocuments'
this.$router.push({ name: path,query:{"type":type,"FrID":id,"edit":edit,"Conditon":Conditon,"pageIndex":pageIndex,blank:'y',tab:'修改财务单据'} })
path = "addFinancialDocuments";
this.$router.push({
name: path,
query: {
type: type,
FrID: id,
edit: edit,
Conditon: Conditon,
pageIndex: pageIndex,
blank: "y",
tab: "修改财务单据"
}
});
}
} else if (type === 4) {
path = 'addCapitalAllocation'
this.$router.push({ name: path,query:{"id":id,"edit":1,blank:'y',tab:'修改财务单据'} })
path = "addCapitalAllocation";
this.$router.push({
name: path,
query: { id: id, edit: 1, blank: "y", tab: "修改财务单据" }
});
} else if (type === 7) {
path = 'addFinancialGZDocuments'
this.$router.push({ name: path,query:{"FrID":id,"edit":1,blank:'y',tab:'修改财务单据'} })
path = "addFinancialGZDocuments";
this.$router.push({
name: path,
query: { FrID: id, edit: 1, blank: "y", tab: "修改财务单据" }
});
}
},
showjiaoyi(FrId){//弹出交易方式修改
this.apipost('Financial_get_GetFinanceTrabeList', {FrId:FrId}, res => {
showjiaoyi(FrId) {
//弹出交易方式修改
this.apipost(
"Financial_get_GetFinanceTrabeList",
{ FrId: FrId },
res => {
if (res.data.resultCode == 1) {
this.trabeList = res.data.data
this.trabeList.forEach(x=>{
this.alltransaction.map(j=>{
if(x.AccountTypeId == j.Id){
x.list = j.list
return
this.trabeList = res.data.data;
this.trabeList.forEach(x => {
this.alltransaction.map(j => {
if (x.AccountTypeId == j.Id) {
x.list = j.list;
return;
}
})
})
this.transactionmode = true
});
});
this.transactionmode = true;
}
},
err => {}
);
},
showTranTax(fid) {
console.log(fid);
this.transTax.FrId = fid;
this.transTax.Fee = "0.00";
this.transTax.loading = false;
this.transactionTax = true;
},
saveTransTaxMoney() {
if (this.transTax.loading) return;
this.transTax.loading = true;
console.log(this.transTax.Fee);
if (this.transTax.Fee && this.transTax.Fee != "") {
this.apipost(
"Financial_post_UpdateFinanceFee",
{ FrId: this.transTax.FrId, Fee: this.transTax.Fee },
res => {
if (res.data.resultCode == 1) {
this.$message.success("修改成功");
this.getPageList();
this.transactionTax = false;
}
}, err => {})
this.transTax.loading = false;
},
getAccountList2(AccountTypeId,y){//获取账户类型对应下的账户列表
this.alltransaction.map(x=>{
if(x.Id == AccountTypeId){
err => {
this.transTax.loading = false;
}
);
} else {
this.transTax.loading = false;
this.$message.error("请输入手续费");
}
},
getAccountList2(AccountTypeId, y) {
//获取账户类型对应下的账户列表
this.alltransaction.map(x => {
if (x.Id == AccountTypeId) {
this.trabeList[y].list = x.list;
return
return;
}
})
});
},
getAccountList3(x,y){
x.list.map(item=>{
if(x.AccountId == item.ID){
getAccountList3(x, y) {
x.list.map(item => {
if (x.AccountId == item.ID) {
this.trabeList[y].Type = item.BankType;
return
return;
}
})
});
},
getAccountListtype(AccountId){
this.accountList2.map(x=>{
if(x.ID == AccountId){
this.FinanceTrabeMsg.Type = x.BankType
return
getAccountListtype(AccountId) {
this.accountList2.map(x => {
if (x.ID == AccountId) {
this.FinanceTrabeMsg.Type = x.BankType;
return;
}
})
});
},
preservetransaction(){//保存交易方式
let msg = []
this.trabeList.forEach(x=>{
let obj ={
ID:x.ID,
Type:x.Type,
AccountId:x.AccountId,
}
msg.push(obj)
})
this.apipost('Financial_get_SetFinanceTrabeInfo', msg, res => {
preservetransaction() {
//保存交易方式
let msg = [];
this.trabeList.forEach(x => {
let obj = {
ID: x.ID,
Type: x.Type,
AccountId: x.AccountId
};
msg.push(obj);
});
this.apipost(
"Financial_get_SetFinanceTrabeInfo",
msg,
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.transactionmode = false
this.getPageList()
}else{
this.transactionmode = false;
this.getPageList();
} else {
this.Error(res.data.message);
}
}, err => {})
}
},
watch:{
err => {}
);
}
}
},
watch: {}
};
</script>
......@@ -117,7 +117,7 @@ export default {
let mallUrl = ""; //商城API
let lxymallUrl = '';//国内游api
let locationName = window.location.hostname;
domainUrl="http://192.168.10.2:8083";
domainUrl ="http://192.168.10.36:8083";
let javaUrldo = "";
javaUrldo = locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.215:9000";
//商城API
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment