Commit 79f2b274 authored by 沈良进's avatar 沈良进

save

parent 835f34bc
...@@ -1854,11 +1854,11 @@ ...@@ -1854,11 +1854,11 @@
}, err => {}) }, err => {})
}, },
getCustomerIdList() {this.apipost( getCustomerIdList() {this.apipost(
"customer_post_GetSigningCustomerPage", "app_today_visit_GetMySigningCustomerList",
{pageIndex: 1,pageSize: 1000,CustomerStatus: 0}, {pageIndex: 1,pageSize: 1000,CustomerStatus: 0},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.CustomerIdList = res.data.data.pageData; this.CustomerIdList = res.data.data;
} else { } else {
this.loading = false; this.loading = false;
this.$message.error(res.data.message); this.$message.error(res.data.message);
...@@ -1955,7 +1955,7 @@ ...@@ -1955,7 +1955,7 @@
} }
}, },
mounted() { mounted() {
this.getCustomerIdList(); // this.getCustomerIdList();
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.department = userInfo.DepartName; this.department = userInfo.DepartName;
this.emplyeeName = userInfo.emName; this.emplyeeName = userInfo.emName;
......
...@@ -483,14 +483,6 @@ ...@@ -483,14 +483,6 @@
<template> <template>
<div class="productQueryList" v-loading="loading"> <div class="productQueryList" v-loading="loading">
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
<el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox>
<el-button
style="margin-left: 10px"
type="primary"
size="small"
@click="eidtItems"
>批量操作</el-button
>
</div> </div>
<table <table
...@@ -511,22 +503,6 @@ ...@@ -511,22 +503,6 @@
<tr v-for="(item, i) in list" :key="i"> <tr v-for="(item, i) in list" :key="i">
<td> <td>
<span>{{ item.contact }}</span> <span>{{ item.contact }}</span>
<el-popover width="280" popper-class="pd20" trigger="click">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="_color_666">
<th>异常名称</th>
<th>创建人</th>
<th>创建时间</th>
</tr>
</table>
<span
v-show="item.exceptionCount > 0"
slot="reference"
class="yichangde"
@click="yichangde(item)"
></span
>
</el-popover>
</td> </td>
<td>{{ item.contactNumber }}</td> <td>{{ item.contactNumber }}</td>
<td>{{ item.customerName }}</td> <td>{{ item.customerName }}</td>
...@@ -540,97 +516,6 @@ ...@@ -540,97 +516,6 @@
<td colspan="12" style="text-align: center">暂无数据</td> <td colspan="12" style="text-align: center">暂无数据</td>
</tr> </tr>
</table> </table>
<el-dialog
title="编辑"
:visible.sync="showDialog"
width="600px"
height="40%"
>
<div v-if="!isVisa">
<span style="width: 15%; display: inline-block">团OP</span>
<el-select
style="width: 80%"
v-model="queryData.OPId"
filterable
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in EmployeeList"
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
>
</el-option>
</el-select>
</div>
<div v-if="!isVisa" style="margin-top: 10px">
<span style="width: 15%; display: inline-block">助手</span>
<el-select
style="width: 80%"
v-model="queryData.AssistantId"
multiple
filterable
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in EmployeeList"
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
>
</el-option>
</el-select>
</div>
<div style="margin-top: 10px">
<span style="width: 15%; display: inline-block">签证OP</span>
<el-select
filterable
style="width: 80%"
v-model="queryData.VisaOPId"
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in EmployeeList"
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
>
</el-option>
</el-select>
</div>
<div style="margin-top: 10px">
<span style="width: 15%; display: inline-block">签证助手</span>
<el-select
style="width: 80%"
v-model="queryData.VisaAssistantId"
multiple
filterable
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in EmployeeList"
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
>
</el-option>
</el-select>
</div>
<div style="margin-top: 10px" v-if="editNum">
<span style="width: 15%; display: inline-block">签证人数</span>
<el-input
type="number"
style="width: 80%; margin-left: 4px"
v-model="queryData.VisaNum"
/>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="showDialog = false">取 消</el-button>
<el-button style="margin-right: 24px" type="primary" @click="submitOP"
>确 定</el-button
>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -709,107 +594,6 @@ export default { ...@@ -709,107 +594,6 @@ export default {
}, },
}, },
methods: { methods: {
changeSelect() {
console.log("changeSelect");
this.list.forEach((element) => {
element.check = this.allCheck;
});
},
changeSelectItem() {
const listTmp = JSON.parse(JSON.stringify(this.list));
this.list = [];
this.$nextTick(() => {
this.list = listTmp;
});
},
submitOP() {
let params = { TCIDs: this.TCIDs, Type: this.isVisa ? 1 : 0 };
if (!this.isVisa) {
params.OPId = this.queryData.OPId;
if (!this.queryData.AssistantId || !this.queryData.AssistantId.length) {
params.AssistantId = "";
} else {
params.AssistantId = this.queryData.AssistantId.join(",");
}
}
params.VisaOPId = this.queryData.VisaOPId;
if (
!this.queryData.VisaAssistantId ||
!this.queryData.VisaAssistantId.length
) {
params.VisaAssistantId = "";
} else {
params.VisaAssistantId = this.queryData.VisaAssistantId.join(",");
}
if (this.editNum) {
if (this.queryData.VisaNum > this.editObj.NeedVisaNum) {
this.$message.error("签证人数最多" + this.editObj.NeedVisaNum + "人");
return;
} else {
params.VisaNum = this.queryData.VisaNum;
}
}
this.apipost(
"travel_post_BatchSetOpInfo",
params,
(res) => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message || "操作成功");
this.showDialog = false;
this.$emit("success");
}
},
(err) => {}
);
},
editItem(item) {
this.TCIDs = item.TCID;
this.editObj = item;
this.queryData = {
OPId: item.OPId || "",
AssistantId:
!item.AssistantId || item.AssistantId == "0"
? []
: item.AssistantId.split(",").map((item) => Number(item)),
VisaOPId: item.VisaOPId || "",
VisaAssistantId:
!item.VisaAssistantId || item.VisaAssistantId == "0"
? []
: item.VisaAssistantId.split(",").map((item) => Number(item)),
VisaNum: item.VisaNum == -1 ? item.NeedVisaNum : item.VisaNum,
};
this.editNum = true;
this.showDialog = true;
},
eidtItems() {
this.TCIDs = this.getSelcetedIds();
if (!this.TCIDs) {
this.$message.error("请选择要编辑的内容");
return;
}
this.editNum = false;
this.queryData = {};
this.showDialog = true;
},
getSelcetedIds() {
return this.list
.filter((item) => item.check)
.map((item) => item.TCID)
.join(",");
},
//根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() {
this.apipost(
"admin_get_GetEmpByDepPostNameList",
{},
(res) => {
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
}
},
(err) => {}
);
},
//刷新页面 //刷新页面
reSearchPage() { reSearchPage() {
this.isShowTeamOrder = false; this.isShowTeamOrder = false;
...@@ -821,50 +605,6 @@ export default { ...@@ -821,50 +605,6 @@ export default {
this.isShowTeamOrder = false; this.isShowTeamOrder = false;
this.teamInfo = {}; this.teamInfo = {};
}, },
// 分享权限
GetSupperOrderEditAuth() {
var actionCode = this.$AuthCode.S_Travel_Share;
this.CheckUserAuth(actionCode, (res) => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.S_Travel_Share = true;
}
});
},
downloadFile(item) {
let reg = /^http(s)?:\/\/(.*?)\//;
this.downloadFileRename(item.FullUrl.replace(reg, ""), item.Name);
},
// 获取微信二维码
getWxCode(key) {
this.wxLoading = false;
if (this.list[key].wxImage === "") {
this.wxLoading = true;
this.apipost(
"TaskManagemnet_get_GetWeiXinShare",
{
ConfigId: this.list[key].ConfigID,
TCID: this.list[key].TCID,
},
(res) => {
if (res.data.resultCode == 1) {
let url = res.data.data;
this.list[key].wxImage = url;
this.wxLoading = false;
} else {
this.$message.error("二维码获取失败");
}
},
(err) => {}
);
}
},
toTrip(obj) {
this.tripObj.tcid = obj.TCID;
this.tripObj.configId = obj.ConfigID;
this.tripObj.cityId = obj.StartCityID;
this.tripObj.orderId = 0;
this.travelControlTripLayerShow = true;
},
hideTripDown() { hideTripDown() {
this.travelControlTripLayerShow = false; this.travelControlTripLayerShow = false;
}, },
...@@ -886,112 +626,8 @@ export default { ...@@ -886,112 +626,8 @@ export default {
} }
}) })
}, },
goUrl(id, tcmun) {
let path;
if (this.pagesTitle == "跟团游产品") {
path = "groupTourOrderByTuan";
}
if (this.pagesTitle == "当地游产品") {
path = "groupTourOrderByTuanOne";
}
this.$router.push({
name: path,
query: {
id: id,
tcmun: tcmun,
blank: "y",
tab: "团报名清单",
},
});
},
goUrlX(item) {
this.$router.push({
name: "GroupAdvertising",
query: {
LineID: item.LineID,
TCID: item.TCID,
blank: "y",
tab: "团期广告",
},
});
},
//获取航班详情
getDetails(index) {
this.tripDetails = this.list[index].flightList;
},
goBuy(obj) {
this.teamInfo = obj;
this.isShowTeamOrder = true;
},
// 产品详情
getTitledetail(item) {
if (this.pagesTitle == "跟团游产品") {
this.getJourney(item.ConfigID, item.TCID, item.LineName);
}
if (this.pagesTitle == "当地游产品") {
this.goB2Bdetail(item.ConfigID, item.TCID);
}
},
goB2Bdetail(ConfigId, tcid) {
var B2BDomain = this.CurrentUserInfo.B2BDomain; //'www.oytour.com';
this.$tripUtils.GotoB2BPage(
B2BDomain,
encodeURIComponent(ConfigId),
tcid
);
},
getJourney(id, TCID, title) {
var that = this;
this.tripTitle = title;
this.$nextTick(() => {
that.$refs.comTeam.GetTrip(id, TCID);
});
that.outerVisible = true;
},
clickHotel(TCID, LineId, LineteamId) {
var msg = {
TCID: TCID,
LineId: LineId,
LineteamId: LineteamId,
};
this.apipost(
"b2b_post_SetHotelClickService",
msg,
(res) => {
if (res.data.resultCode == 1) {
}
},
(err) => {}
);
},
//直客版行程
goB2B(item) {
var B2BDomain = this.CurrentUserInfo.B2BDomain;
this.$tripUtils.GotoB2CPage(B2BDomain, item.ConfigID, item.TCID);
},
goUrlT(path, obj, outItem, title) {
console.log("goUrlTO", path, obj, outItem, title);
this.$router.push({
name: path,
query: {
id: obj,
NewCombinationNum: outItem.NewCombinationNum,
blank: "y",
tab: title,
},
});
},
}, },
mounted() { mounted() {
this.getEmployeeList();
this.userInfo = this.getLocalStorage();
this.GetSupperOrderEditAuth(); //分享权限
this.qjGroupId = this.QjGroupId();
this.CurrentUserInfo = this.userInfo;
this.userId = this.userInfo.EmployeeId;
if (this.$route.query.TCIDList) {
this.TCIDList = this.$route.query.TCIDList;
}
}, },
}; };
</script> </script>
...@@ -234,86 +234,6 @@ ...@@ -234,86 +234,6 @@
</style> </style>
<template> <template>
<div class="flexOne"> <div class="flexOne">
<div class="productQuerySearch" v-if="!TCIDList">
<ul>
<li>
<span><em>{{ $t("scen.sc_cp") }}</em>
<el-select class="w150" v-model="msg.BranchId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in companyList" :label="item.BName" :value="item.Id" :key="item.Id">
</el-option>
</el-select>
</span>
</li>
<li>
<span><em>{{ $t("advmanager.v_line") }}</em>
<el-select class="w150" v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')" @change="
getLineTeamList(msg.LineId), getAimPlaceList(msg.LineId, '')
">
<el-option :label="$t('pub.unlimitedSel')" value="-1"></el-option>
<el-option v-for="(item,index) in LineList" :label="item.LineName" :value="item.LineID" :key="index">
</el-option>
</el-select>
</span>
</li>
<li>
<span><em>{{ $t("advmanager.v_xilie") }}</em>
<el-select class="w150" v-model="msg.LineTeamId" filterable :placeholder="$t('pub.pleaseSel')"
@change="getAimPlaceList('', msg.LineTeamId)">
<el-option :label="$t('pub.unlimitedSel')" value="-1"></el-option>
<el-option v-for="item in LineTeamList" :label="item.LtName" :value="item.LtID" :key="item.LtID">
</el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{ $t("visa.v_tuanhao") }}</em>
<el-input v-model="msg.TCID" class="w150"></el-input>
</span>
</li>
<li>
<span>
<em>团名</em>
<el-input v-model="msg.Title" class="w150" clearable></el-input>
</span>
</li>
<li>
<span><em>{{ $t("hotel.hotel_StarDate") }}</em>
<el-date-picker v-model="msg.StartTime" @change="dataDui()" class="w135" value-format="yyyy-MM-dd"
type="date"></el-date-picker>
-
<el-date-picker v-model="msg.EndTime" @change="dataDui()" class="w135" value-format="yyyy-MM-dd"
type="date"></el-date-picker>
</span>
</li>
<li>
<span style="margin: 0 0 0 24px"><em>未维护OP</em>
<el-select class="w150" v-model="msg.SelectOP" filterable placeholder="未维护OP">
<el-option label="不限" :value="0"></el-option>
<el-option v-if="!isVisa" label="主团" :value="1"></el-option>
<el-option label="签证" :value="2"></el-option>
</el-select>
</span>
</li>
<li>
<div style="margin: 8px 0 0 24px">
<span><em>只查询有签证的团</em>
<el-switch v-model="msg.visaNum" :active-value="1" :inactive-value="0"></el-switch>
</span></div>
</li>
<li>
<input style="margin-top: 10px"
type="button"
class="hollowFixedBtn"
:value="$t('pub.searchBtn')"
@click="
getList();
resetPageIndex();
"
/>
</li>
</ul>
</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination> </el-pagination>
...@@ -341,27 +261,10 @@ ...@@ -341,27 +261,10 @@
currentPage: 1, currentPage: 1,
total: 0, total: 0,
msg: { msg: {
SelectOP: 0,
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
LineId: "-1",
LineTeamId: "-1",
tCID: "",
TCIDList: "",
StartTime: "",
EndTime: "",
BranchId: "-1",
Title: "", //团名
visaNum: 0,
}, },
list: [], list: [],
LineList: [],
LineTeamList: [],
AimPlaceList: [],
airlineList: [],
companyList: [],
startCityList: [],
startCityList1: [],
TCIDList: null, TCIDList: null,
userInfo: {}, userInfo: {},
crmOrderObj: null, crmOrderObj: null,
...@@ -406,114 +309,6 @@ ...@@ -406,114 +309,6 @@
(err) => {} (err) => {}
); );
}, },
// 线路
getLineList() {
this.apipost("line_post_GetAllList_V2", {
LineDirection: 0
}, (res) => {
if (res.data.resultCode == 1) {
this.LineList = res.data.data;
}
});
},
//获取系列列表
getLineTeamList(lineId) {
this.LineTeamList = [];
this.apipost(
"team_post_GetList", {
lineID: lineId,
isTOOP: 1,
},
(res) => {
if (res.data.resultCode == 1) {
this.msg.LineTeamId = "-1";
this.LineTeamList = res.data.data;
}
}
);
},
//获取目的地列表
getAimPlaceList(lineId, lineTeamId) {
let myLineId = lineId === "" ? this.msg.LineId : lineId;
let myLineTeamId = lineTeamId === "" ? this.msg.LineTeamId : lineTeamId;
this.AimPlaceList = [];
this.apipost(
"team_post_GetListForCascading", {
LineID: myLineId,
LtID: myLineTeamId,
},
(res) => {
if (res.data.resultCode == 1) {
this.AimPlaceList = res.data.data;
}
}
);
},
// 出发城市、目的地
getStartList() {
this.apipost("sellorder_get_GetAllStartCity", {}, (res) => {
if (res.data.resultCode == 1) {
this.startCityList = res.data.data;
} else {}
});
},
getStartList1() {
this.apipost(
"city_post_GetList", {
isDefault: -1,
priceType: -1,
},
(res) => {
if (res.data.resultCode == 1) {
this.startCityList1 = res.data.data;
} else {}
}
);
},
// 公司
getCompanyList() {
let RB_Group_id = this.CurrentUserInfo.RB_Group_id;
let msg = {
Status: 0,
is_show: 0,
RB_Group_Id: RB_Group_id,
};
this.apipost(
"admin_get_BranchGetList",
msg,
(res) => {
if (res.data.resultCode == 1) {
this.companyList = [{
Id: "-1",
BName: "不限",
}, ];
res.data.data.forEach((x) => {
var obj = {
Id: "",
BName: "",
};
obj.Id = x.Id.toString();
obj.BName = x.BName;
this.companyList.push(obj);
});
}
},
(err) => {}
);
},
getAirlineList() {
//获取航空公司*
let msg = {};
this.apipost(
"airline_post_GetList",
msg,
(res) => {
this.airlineList = res.data.data;
},
(err) => {}
);
},
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
...@@ -525,33 +320,7 @@ ...@@ -525,33 +320,7 @@
}, },
}, },
mounted() { mounted() {
if(this.$route.path === '/productOrderList') {
this.isVisa = false
} else {
this.isVisa = true
this.msg.visaNum = 1
}
this.userInfo = this.getLocalStorage();
this.CurrentUserInfo = this.userInfo ;
this.userId = this.userInfo.EmployeeId;
this.msg.BranchId = this.userInfo.RB_Branch_id.toString();
if (this.$route.query.id) {
this.msg.BranchId = "-1";
this.msg.TCID = this.$route.query.id;
}
if (this.$route.query.TCIDList) {
this.msg.TCIDList = this.TCIDList = this.$route.query.TCIDList;
}
if (this.msg.StartTime === "") {
let nowDay = this.FormartDate(new Date());
this.msg.StartTime = nowDay;
}
this.getCompanyList();//公司
this.getList();//产品列表 this.getList();//产品列表
this.getLineList();//线路
this.getAirlineList();//获取航空公司
this.getStartList();//出发城市
this.getStartList1();//目的地
}, },
}; };
......
...@@ -400,12 +400,7 @@ ...@@ -400,12 +400,7 @@
</el-tooltip> </el-tooltip>
</td> </td>
<td> <td>
<!-- <el-tooltip class="item" effect="dark" content="预付款退款" placement="top-start"> <el-button @click="checkFinance(item)">结算</el-button>
<button class="normalBtn" @click="goUrlZD(item)">
<i class="el-icon-right"></i>
</button>
</el-tooltip> -->
<el-button @click="checkFinance(item)">审核</el-button>
</td> </td>
</tr> </tr>
<tr v-if="czList.length==0"> <tr v-if="czList.length==0">
...@@ -415,13 +410,13 @@ ...@@ -415,13 +410,13 @@
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total">
</el-pagination> </el-pagination>
<el-dialog custom-class='addCompany' :title="$t('fnc.xzzjiaoren')" width="400px" :visible.sync="showCheck" center> <el-dialog custom-class='addCompany' title="结算" width="400px" :visible.sync="showCheck" center>
<el-form label-width="100px"> <el-form label-width="100px">
<el-form-item label="签约资料" prop="SigningFile"> <el-form-item label="凭证" prop="SigningFile">
<el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" <!-- <el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn" style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn"
:show-file-list="false" action=""> :show-file-list="false" action="">
<el-button size="small" type="primary">签约材料</el-button> <el-button size="small" type="primary">凭证</el-button>
</el-upload> </el-upload>
<template v-if="saveMsg&& saveMsg.length>0"> <template v-if="saveMsg&& saveMsg.length>0">
<template v-for="(subItem,subIndex) in saveMsg"> <template v-for="(subItem,subIndex) in saveMsg">
...@@ -431,7 +426,12 @@ ...@@ -431,7 +426,12 @@
<a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;" <a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;"
@click="DeleteFile(subIndex)">删除</a> @click="DeleteFile(subIndex)">删除</a>
</template> </template>
</template> </template> -->
<el-upload class="avatar-uploader" action="" :http-request="uploadImg"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false">
<img v-if="BusinessCardPhotos" :src="BusinessCardPhotos" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_remark')"> <el-form-item :label="$t('hotel.hotel_remark')">
<el-input type="textarea" v-model="addMsg.Notes" class="w216"></el-input> <el-input type="textarea" v-model="addMsg.Notes" class="w216"></el-input>
...@@ -502,22 +502,30 @@ ...@@ -502,22 +502,30 @@
}, },
methods: { methods: {
checkSubmit() { checkSubmit() {
if(!this.saveMsg || !this.saveMsg.length) { if(!this.BusinessCardPhotos) {
this.$message.error('请上传凭证') this.$message.error('请上传凭证')
return return
} }
this.addMsg.Voucher = this.saveMsg[0].Path; this.addMsg.Voucher = this.BusinessCardPhotos;
this.addMsg.FinanceIds = this.checkObj.FrID;
this.addMsg.SigningCustomerId = this.$route.query.id;
this.apipost('customer_post_GetSigningFinance', this.addMsg, res => { this.apipost('customer_post_GetSigningFinance', this.addMsg, res => {
if (res.data.resultCode == 0) { if (res.data.resultCode == 1) {
this.loading = false; this.showCheck = false
this.czList = []
} else { } else {
this.czList = res.data.data.pageData; this.$message.error(res.data.message || '发生异常,请重试')
this.total = res.data.data.count;
this.loading = false;
} }
}, err => {}) }, err => {})
}, },
uploadImg(file) {
//上传
let newArr = [];
newArr.push(file.file);
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
this.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath
});
},
uploadFileBtn(file) { //上传 uploadFileBtn(file) { //上传
if (file.file.size > 1024 * 1024 * 100) { if (file.file.size > 1024 * 1024 * 100) {
this.$message.warning('文件大小不能超过100M!') this.$message.warning('文件大小不能超过100M!')
......
...@@ -479,38 +479,83 @@ input::-webkit-inner-spin-button { ...@@ -479,38 +479,83 @@ input::-webkit-inner-spin-button {
input[type="number"] { input[type="number"] {
-moz-appearance: textfield; -moz-appearance: textfield;
} }
.page_MyCustomer .avatar-uploader .el-upload {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
}
.page_MyCustomer .avatar-uploader .el-upload:hover {
border-color: #409EFF;
}
.page_MyCustomer .avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 148px;
height: 148px;
line-height: 148px;
text-align: center;
}
.page_MyCustomer .avatar {
width: 148px;
height: 148px;
display: block;
}
</style> </style>
<template > <template >
<div class="page_fnDm" @keyup.enter="resetPageIndex(),getPageList()"> <div class="page_fnDm" @keyup.enter="resetPageIndex(), getPageList()">
<ul class="_nav clearfix"> <ul class="_nav clearfix">
<!-- <li :class="active==5?'_active':''" @click="active=5,msg.Conditon=5,getPageList()">全部</li> --> <!-- <li :class="active==5?'_active':''" @click="active=5,msg.Conditon=5,getPageList()">全部</li> -->
<li :class="active==1?'_active':''" <li :class="active == 1 ? '_active' : ''" @click="getActive(1, 0, -1)">
@click="getActive(1,0,-1)">所有客户</li> 所有客户
<li :class="active==3?'_active':''" </li>
@click="getActive(3,1)">待结算</li> <li :class="active == 3 ? '_active' : ''" @click="getActive(3, 1)">
<li :class="active==2?'_active':''" 待结算
@click="getActive(2,2,-1)">未结算</li> </li>
<li :class="active == 2 ? '_active' : ''" @click="getActive(2, 2, -1)">
<li class="hight_query" style="float:right;"> 未结算
<button class="hollowFixedBtn" @click="resetPageIndex(),getPageList()">{{$t('pub.searchBtn')}}</button>
</li> </li>
<li class="hight_query" style="float: right">
<button class="hollowFixedBtn" @click="resetPageIndex(), getPageList()">
{{ $t("pub.searchBtn") }}
</button>
</li>
</ul> </ul>
<div class="Myquery-box"> <div class="Myquery-box">
<ul class="clearfix"> <ul class="clearfix">
<li> <li>
<span> <span>
<em>客户名称</em> <em>客户名称</em>
<el-input placeholder="" class="w150" v-model="msg.CustomerName" maxlength="8"></el-input> <el-input
placeholder=""
class="w150"
v-model="msg.CustomerName"
maxlength="8"
></el-input>
</span> </span>
</li> </li>
</ul> </ul>
</div> </div>
<!-- <input type="text" v-model="mathNumber" @blur="mathMoney(mathNumber)"> <!-- <input type="text" v-model="mathNumber" @blur="mathMoney(mathNumber)">
<input type="text" v-model="ChineseStr"> --> <input type="text" v-model="ChineseStr"> -->
<div class="_fnDm_content" v-loading='loading' :style="{minHeight:minHeight+'px'}"> <div
<table border="0" cellspacing="0" cellpadding="0" class="singeRowTable" style="margin-bottom:30px;"> class="_fnDm_content"
v-loading="loading"
:style="{ minHeight: minHeight + 'px' }"
>
<table
border="0"
cellspacing="0"
cellpadding="0"
class="singeRowTable"
style="margin-bottom: 30px"
>
<tr class="_t_head"> <tr class="_t_head">
<th>门店名称</th> <th>门店名称</th>
<th>姓名</th> <th>姓名</th>
...@@ -524,24 +569,24 @@ input[type="number"] { ...@@ -524,24 +569,24 @@ input[type="number"] {
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="(item, index) in DataList" :key="index"> <tr v-for="(item, index) in DataList" :key="index">
<td>{{item.customerName}}</td> <td>{{ item.customerName }}</td>
<td>{{item.contact}}</td> <td>{{ item.contact }}</td>
<td>{{item.contactNumber}}</td> <td>{{ item.contactNumber }}</td>
<td>{{item.tradeTotal}}</td> <td>{{ item.tradeTotal }}</td>
<td>{{item.signingPrice}}</td> <td>{{ item.signingPrice }}</td>
<td>{{item.signingUnsettledPrice}}</td> <td>{{ item.signingUnsettledPrice }}</td>
<td>{{item.WaringAudit}}</td> <td>{{ item.WaringAudit }}</td>
<td>{{item.totalGuestNum}}</td> <td>{{ item.totalGuestNum }}</td>
<td>{{item.signingEndTime}}</td> <td>{{ item.signingEndTime }}</td>
<td><el-button @click="BOSSBtnClick">审核</el-button></td> <td><el-button @click="financeCheck(item)">审核</el-button></td>
</tr> </tr>
<tr v-if="DataList.length==0"> <tr v-if="DataList.length == 0">
<td colspan="12" style="text-align:center">暂无数据</td> <td colspan="12" style="text-align: center">暂无数据</td>
</tr> </tr>
</table> </table>
</div> </div>
<div class="noData" v-show="noData"> <div class="noData" v-show="noData">
{{$t('system.content_noData')}} {{ $t("system.content_noData") }}
</div> </div>
<div v-if="!BOSSBtn && !BOSSBtn2"> <div v-if="!BOSSBtn && !BOSSBtn2">
<el-pagination <el-pagination
...@@ -549,310 +594,71 @@ input[type="number"] { ...@@ -549,310 +594,71 @@ input[type="number"] {
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="currentPage" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" layout="total,prev, pager, next, jumper"
:page-size='msg.pageSize' :page-size="msg.pageSize"
:total='total'> :total="total"
>
</el-pagination> </el-pagination>
</div> </div>
<el-dialog custom-class='addCompany' :title="$t('fnc.xzzjiaoren')" width="400px" :visible.sync="zhuanBox" center :before-close="closeChangeMachie"> <el-dialog
<template v-if="!BOSSDialogText"> custom-class="addCompany page_MyCustomer"
title="结算"
width="400px"
:visible.sync="showCheck"
center
>
<el-form label-width="100px"> <el-form label-width="100px">
<el-form-item :label="$t('fnc.zhuanjiaoren')"> <el-form-item label="凭证" prop="SigningFile">
<el-select <!-- <el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo"
v-model="zhuanMsg.AuditEmId" style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn"
filterable :show-file-list="false" action="">
remote <el-button size="small" type="primary">凭证</el-button>
reserve-keyword </el-upload>
:placeholder="$t('pub.pleaseImport')" <template v-if="saveMsg&& saveMsg.length>0">
:remote-method="remoteMethod" <template v-for="(subItem,subIndex) in saveMsg">
@change="$forceUpdate()" <a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex"
:loading="loading2"> @click="downloadFile(subItem.Path,subItem.FileName)">{{subItem.FileName}}</a>
<el-option
v-for="item in searchList"
:key="item.empId"
:label="item.name"
:value="item.empId">
<span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.postName }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_remark')">
<el-input type="textarea" v-model="zhuanMsg.Description" class="w216"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="bossLen = 1, zhuanBtn()">{{$t('pub.saveBtn')}}</button>
<button class="hollowFixedBtn" @click="zhuanBox=false">{{$t('pub.cancelBtn')}}</button>
</div>
</template>
<template v-else>
<p class="boss_btn">{{$t('ios.gongji')}} {{checkList.length}} {{$t('ios.tdqdi')}} <span>{{bossLen}}</span> {{$t('ios.tiao')}}</p>
<p class="boss_btn_tips">{{$t('ios.yjzjzqbyjxqtcz')}}</p>
</template>
</el-dialog>
<el-dialog :title=" $t('fnc.danhao') + ':' + updateMsg.FrID + $t('fnc.tzjyriqi')" width="400px" :visible.sync="dialogFormVisible" center :before-close="closeChangeMachie" >
<el-form label-width="110px">
<el-form-item :label="$t('fnc.yjyriqi')">
<el-date-picker
v-model="updateMsg.OTradeDate"
type="date"
:disabled='true'>
</el-date-picker>
</el-form-item>
<el-form-item :label="$t('fnc.jiaoyiriqi')">
<el-date-picker
v-model="updateMsg.TradeDate"
type="date"
value-format="yyyy-MM-dd"
:placeholder="$t('admin.admin_choDate')">
</el-date-picker>
</el-form-item>
<el-form-item :label="$t('fnc.shuoming')">
<el-input type="textarea" v-model="updateMsg.Description" class="w216"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="dialogFormVisible=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="UpdateTradeDate()">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
<!-- 修改交易方式 -->
<el-dialog title="修改交易方式" width="600px"
:visible.sync="transactionmode" center :before-close="closeChangeMachie">
<el-form label-width="110px">
<div class="rb_top_row _r_mb5" v-for='(x,y) in trabeList' :key='y'>
<p>收款账户:
<el-select filterable v-model='x.AccountTypeId' placeholder="" @change="getAccountList2(x.AccountTypeId,y)"
class="w150 _border_b_1">
<el-option v-for='item in AccList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
<el-select filterable v-model='x.AccountId' placeholder="" @change="getAccountList3(x,y)" <a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;"
class="w250 _border_b_1" > @click="DeleteFile(subIndex)">删除</a>
<el-option v-for='item in x.list' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</p>
</div>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="transactionmode=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="preservetransaction()">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
<el-dialog title="一键审批" width="400px" :visible.sync="BOSSDialog" center :close-on-press-escape="false" :close-on-click-modal="false" >
<template v-if="!BOSSDialogText">
<el-form label-width="110px">
<el-form-item :label="$t('fnc.shuoming')">
<el-input type="textarea" v-model="AuditOrRefundMsg.Description" class="w216"></el-input>
</el-form-item>
</el-form>
<el-form>
<div style=" text-align: center;">
<el-radio v-model="AuditOrRefundMsg.Status" label="5">{{$t('ios.tonggei')}}</el-radio>
<el-radio v-model="AuditOrRefundMsg.Status" label="3">{{$t('ios.bohui')}}</el-radio>
</div>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="BOSSDialog=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="bossLen = 1, subBOSSBtnClick()">{{$t('pub.sureBtn')}}</el-button>
</div>
</template> </template>
<template v-else> </template> -->
<p class="boss_btn">{{$t('ios.gongji')}} {{checkList.length}} {{$t('ios.tdqdi')}} <span>{{bossLen}}</span> {{$t('ios.tiao')}}</p> <el-upload
<p class="boss_btn_tips">{{$t('ios.yjshzqbyjxqtcz')}}</p> class="avatar-uploader"
</template> action=""
</el-dialog> :http-request="uploadImg"
accept="image/jpeg,image/gif,image/png,image/bmp"
<el-dialog custom-class='w400' title="制单人转交" :visible.sync="zhuanjiaoBox" center> :show-file-list="false"
<template>
<el-form label-width="100px">
<el-form-item label="制单人转交:">
<el-select
v-model="zhuanjiaoMsg.CreateBy"
filterable
remote
reserve-keyword
:placeholder="$t('pub.pleaseImport')"
:remote-method="remoteMethodEx"
@change="$forceUpdate()"
> >
<el-option <img
v-for="item in searchList" v-if="BusinessCardPhotos"
:key="item.empId" :src="BusinessCardPhotos"
:label="item.name" class="avatar"
:value="item.empId"> />
<span style="float: left">{{ item.name }}</span> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.postName }}</span> </el-upload>
</el-option>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="zhuanjiaoBox=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="setExchange()">{{$t('pub.sureBtn')}}</button>
</div>
</template>
</el-dialog>
<el-dialog custom-class='w400' title="手配费" :visible.sync="HandState" center>
<template>
<el-form label-width="100px">
<el-form-item label="团号">
<el-input v-model="HandMsg.TCNUM" class="w200"></el-input>
</el-form-item>
<el-form-item label="相关单据">
<el-input v-model="HandMsg.ReFinanceId" class="w200"></el-input>
</el-form-item> </el-form-item>
</el-form> <el-form-item :label="$t('hotel.hotel_remark')">
<div slot="footer" class="dialog-footer"> <el-input
<button class="hollowFixedBtn" @click="HandState=false">{{$t('pub.cancelBtn')}}</button> type="textarea"
<button class="normalBtn" type="primary" @click="setHand">{{$t('pub.sureBtn')}}</button> v-model="addMsg.ExamineReason"
</div> class="w216"
</template> ></el-input>
</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="300px"
:visible.sync="PaymentSync" center :before-close="closeChangeMachie">
<el-form class="cdForm" label-width="90px">
<el-form-item label="客户类型" prop="ClientType">
<el-select filterable v-model='transTax.ClientType' :placeholder="$t('fnc.khleixing')"
@change="GetClientAccountList(transTax.ClientType)" class="w135 _border_b_1">
<el-option v-for='item in ClientTypeList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户名称" prop="ClientID"> <el-form-item label="审核意见">
<template> <el-radio-group v-model="addMsg.Status">
<el-select filterable v-model='transTax.ClientID' :placeholder="$t('fnc.khmingcheng')" <el-radio :label="1">已审批</el-radio>
class="w135 _border_b_1"> <el-radio :label="2">已拒绝</el-radio>
<el-option v-for='item in ClientAccountList' :label='item.Name' :value='item.ID' :key='item.ID'> </el-radio-group>
</el-option>
</el-select>
</template>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="PaymentSync=false">{{$t('pub.cancelBtn')}}</el-button> <button class="normalBtn" type="primary" @click="checkSubmit">
<el-button class="normalBtn" type="primary" @click="handlingSurePayment" :loading="transTax.loading">{{$t('pub.sureBtn')}}</el-button> {{ $t("pub.saveBtn") }}
</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">
<el-input class="w220" @keyup.native="checkInteger(czMsg,'FrID')" v-model="czMsg.FrID"></el-input>
</el-form-item>
<el-form-item label="费用类型">
<el-select filterable v-model='czMsg.CostTypeID' class="">
<el-option label="不限" value=''></el-option>
<el-option v-for="(item,index) in costList" :key="index" :label="item.Name" :value='item.ID'></el-option>
</el-select>
</el-form-item>
<el-form-item>
<input type="button" value="查询" class="hollowFixedBtn" @click="czgetList">
</el-form-item>
<el-form-item label="交易日期">
<el-date-picker
v-model="czdateList"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</el-form-item>
</el-form>
<p style="color: red;text-align: right;padding: 5px;">注:冲抵请勾选单据后点击下方确认冲抵</p>
<table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0">
<tr>
<th></th>
<th>门店名称</th>
<th>公司</th>
<th>费用类型</th>
<th>币种</th>
<th>汇率</th>
<th>金额</th>
<th>冲抵金额</th>
<th>状态</th>
<th>付款对象</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in czList" :key="index">
<td><input type="checkbox" :value="item" v-model="yfcheckList" @change="ckeckOne"></td>
<td>{{item.customerName}}</td>
<td>{{item.BranchName}}</td>
<td>{{item.CostTypeName}}</td>
<td>{{item.CurrencyName}}</td>
<td>{{item.Rate}}</td>
<td>{{item.Money}}</td>
<td>{{item.MatchMoney}}</td>
<td>{{item.StatusStr}}</td>
<td>
<el-tooltip class="item" effect="dark" :content="item.ClientTypeName+':'+item.RemitterName+'('+item.AccountNumber+')'" placement="top-start">
<div style="width:250px;overflow:hidden">{{item.ClientTypeName}}:{{item.RemitterName}}</div>
</el-tooltip>
</td>
<td>
<el-tooltip class="item" effect="dark" content="预付款退款" placement="top-start">
<button class="normalBtn" @click="goUrlZD(item)">
<i class="el-icon-right"></i>
</button> </button>
</el-tooltip> <button class="hollowFixedBtn" @click="showCheck = false">
</td> {{ $t("pub.cancelBtn") }}
</tr>
<tr v-if="czList.length==0">
<td colspan="13">暂无数据</td>
</tr>
</table>
<el-pagination background @current-change="handleCurrentChange2"
layout="total,prev, pager, next, jumper" :page-size="czMsg.pageSize" :total='total2'>
</el-pagination>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="yfcdState=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="goUrlZD('')">
<!-- {{$t('pub.sureBtn')}} -->
确认冲抵
</button> </button>
</div> </div>
</el-dialog>
<!-- 修改汇率 -->
<el-dialog title="修改汇率" width="400px"
:visible.sync="costmodeHL" center >
<template v-for='(x,y) in trabeListHL'>
<el-form label-width="110px" style="padding: 5px 0;">
费用:{{x.CostTypeName}}
</el-form>
<el-form label-width="110px" style="padding: 5px 0;">
币种:{{x.CurrencyName}}
</el-form>
<el-form label-width="110px" style="padding: 5px 0;">
原币:{{x.OriginalMoney}}
</el-form>
<el-form label-width="110px" style="padding: 5px 0;">
本位币:{{x.Money}}
</el-form>
<el-form label-width="110px" style="padding: 5px 0;">
汇率:
<!-- <span v-if="!bianjiShow">{{x.Rate}}</span> -->
<el-input-number v-model="x.Rate" :min="0" style="width: 240px;" @change="getRate"></el-input-number>
<!-- <span class="iconfont" :class="{'icon-bianji':!bianjiShow,'icon-quxiao1':bianjiShow}" @click="bianjiShow=!bianjiShow"
style="cursor: pointer;color: red;margin-left: 10px;font-size: 13px;"></span> -->
</el-form>
</template>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="costmodeHL=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="preservetransactionHL()">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -864,10 +670,15 @@ input[type="number"] { ...@@ -864,10 +670,15 @@ input[type="number"] {
export default { export default {
data() { data() {
return { return {
isTerminate:-1, addMsg: {
Status: 1,
},
showCheck: false,
BusinessCardPhotos: "",
isTerminate: -1,
hbMsg: { hbMsg: {
FrIDList: [], FrIDList: [],
Type: 1 Type: 1,
}, },
hbBtn: false, hbBtn: false,
hbState: false, hbState: false,
...@@ -875,7 +686,7 @@ export default { ...@@ -875,7 +686,7 @@ export default {
HandMsg: { HandMsg: {
TCNUM: "", TCNUM: "",
ReFinanceId: "", ReFinanceId: "",
OtherType: 6 OtherType: 6,
}, },
HandState: false, HandState: false,
widthSon: "700px", widthSon: "700px",
...@@ -889,7 +700,7 @@ export default { ...@@ -889,7 +700,7 @@ export default {
//转交信息 //转交信息
zhuanjiaoMsg: { zhuanjiaoMsg: {
CreateBy: "", CreateBy: "",
FrIDList: [] FrIDList: [],
}, },
msg: { msg: {
pageIndex: 1, pageIndex: 1,
...@@ -898,7 +709,7 @@ export default { ...@@ -898,7 +709,7 @@ export default {
getCompanyMsg: { getCompanyMsg: {
// 公司 // 公司
RB_Group_Id: "0", RB_Group_Id: "0",
Status: "0" Status: "0",
}, },
getDepartmentMsg: { getDepartmentMsg: {
// 部门 // 部门
...@@ -906,7 +717,7 @@ export default { ...@@ -906,7 +717,7 @@ export default {
RB_Branch_Id: "", RB_Branch_Id: "",
Status: 0, Status: 0,
ParentId: -1, ParentId: -1,
Tier: 0 Tier: 0,
}, },
employeeMsg: { employeeMsg: {
// 员工 // 员工
...@@ -914,18 +725,18 @@ export default { ...@@ -914,18 +725,18 @@ export default {
BranchId: -1, BranchId: -1,
DepartmentId: 0, DepartmentId: 0,
PostId: 0, PostId: 0,
IsLeave: 0 IsLeave: 0,
}, },
zhuanMsg: { zhuanMsg: {
AuditEmId: null, AuditEmId: null,
WorkFlowId: 0, WorkFlowId: 0,
Description: "" Description: "",
}, },
updateMsg: { updateMsg: {
FrID: 0, FrID: 0,
OTradeDate: "", OTradeDate: "",
TradeDate: "", TradeDate: "",
Description: "" Description: "",
}, },
DataList: [], DataList: [],
GetFinancLogList: [], GetFinancLogList: [],
...@@ -980,7 +791,7 @@ export default { ...@@ -980,7 +791,7 @@ export default {
Image: "", Image: "",
TradeDate: new Date().Format("yyyy-MM-dd"), TradeDate: new Date().Format("yyyy-MM-dd"),
tradeWays: [], tradeWays: [],
emList: [] emList: [],
}, },
bossLen: null, bossLen: null,
BOSSDialog: false, BOSSDialog: false,
...@@ -996,7 +807,7 @@ export default { ...@@ -996,7 +807,7 @@ export default {
OtherType: 7, OtherType: 7,
ReFinanceId: 0, ReFinanceId: 0,
Rate: 0, Rate: 0,
czState: true czState: true,
}, },
czList: [], czList: [],
total2: 0, total2: 0,
...@@ -1008,7 +819,7 @@ export default { ...@@ -1008,7 +819,7 @@ export default {
CostTypeID: "", CostTypeID: "",
sTradeDate: "", sTradeDate: "",
eTradeDate: "", eTradeDate: "",
IsAdvanceFinance: 1 IsAdvanceFinance: 1,
}, },
costList: [], costList: [],
transactionmode: false, transactionmode: false,
...@@ -1021,34 +832,19 @@ export default { ...@@ -1021,34 +832,19 @@ export default {
FrId: 0, FrId: 0,
Fee: "0.0", Fee: "0.0",
loading: false, loading: false,
ClientType:'', ClientType: "",
ClientID:'' ClientID: "",
}, },
PaymentSync: false, PaymentSync: false,
F_Update_CurrencyRate: false, costmodeHL: false,
costmodeHL:false, trabeListHL: [], //修改费率下拉数据
trabeListHL:[],//修改费率下拉数据
}; };
}, },
created() { created() {
this.isTerminate = -1 this.isTerminate = -1;
let userinfo = this.getLocalStorage(); let userinfo = this.getLocalStorage();
let ActionMenuCode = userinfo.ActionMenuCode; let allH, cH;
if (ActionMenuCode.indexOf("F_AccountantFinanceMerge") != -1) {
this.hbShow = true;
}
if (ActionMenuCode.indexOf("F_HandWithFee") != -1) {
this.HandShow = true;
}
if (ActionMenuCode.indexOf("F_Trademodify") != -1) {
this.istransaction = true;
}
if(ActionMenuCode.indexOf('F_Update_CurrencyRate')!=-1){
this.F_Update_CurrencyRate=true;
}
let allH, allW, cH;
allH = document.documentElement.clientHeight; 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; this.minHeight = cH;
}, },
...@@ -1066,7 +862,9 @@ export default { ...@@ -1066,7 +862,9 @@ export default {
let userMenuCode = "," + userInfo.ActionMenuCode + ","; let userMenuCode = "," + userInfo.ActionMenuCode + ",";
this.userMenuCode = this.userMenuCode =
userMenuCode.indexOf(",C_Batch_AuditFinance,") != -1 ? true : false; userMenuCode.indexOf(",C_Batch_AuditFinance,") != -1 ? true : false;
this.getCompanyMsg.RB_Group_Id = this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = this.getCompanyMsg.RB_Group_Id =
this.employeeMsg.GroupId =
this.getDepartmentMsg.RB_Group_Id =
userInfo.RB_Group_id; //集团ID userInfo.RB_Group_id; //集团ID
this.ActionMenuCode = userInfo.ActionMenuCode; this.ActionMenuCode = userInfo.ActionMenuCode;
this.DepartIDs = userInfo.RB_Department_Id; this.DepartIDs = userInfo.RB_Department_Id;
...@@ -1087,39 +885,85 @@ export default { ...@@ -1087,39 +885,85 @@ export default {
// this.czgetList(); // this.czgetList();
}, },
methods: { methods: {
getRate(value){ financeCheck(item) {
return this.moneyFormatB(value) this.checkObj = item;
}, console.log("financeCheck", item);
preservetransactionHL(){//保存费率的修改 this.showCheck = true
let msg = [] },
this.trabeListHL.forEach(x=>{ checkSubmit() {
let obj ={ if (!this.BusinessCardPhotos) {
FrId:x.FinanceId, this.$message.error("请上传凭证");
Rate:this.moneyFormatB(x.Rate), return;
} }
msg = obj this.addMsg.ExamineVoucher = this.BusinessCardPhotos;
}) this.addMsg.Id = this.checkObj.customerId;
this.apipost('Financial_post_UpdateFinanceCurrencyRate', msg, res => { this.apipost(
"customer_post_UpdateSigningSettlement",
this.addMsg,
(res) => {
if (res.data.resultCode == 1) {
this.showCheck = false;
} else {
this.$message.error(res.data.message || "发生异常,请重试");
}
},
(err) => {}
);
},
uploadImg(file) {
//上传
let newArr = [];
newArr.push(file.file);
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, (x) => {
this.BusinessCardPhotos =
this.domainManager().ViittoFileUrl + x.data.FilePath;
});
},
getRate(value) {
return this.moneyFormatB(value);
},
preservetransactionHL() {
//保存费率的修改
let msg = [];
this.trabeListHL.forEach((x) => {
let obj = {
FrId: x.FinanceId,
Rate: this.moneyFormatB(x.Rate),
};
msg = obj;
});
this.apipost(
"Financial_post_UpdateFinanceCurrencyRate",
msg,
(res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.costmodeHL = false this.costmodeHL = false;
this.getPageList() this.getPageList();
}else{ } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {})
}, },
showhuilv(row){ (err) => {}
this.apipost('Financial_get_GetFinanceRate', {FinanceId:row.FrID}, res => { );
},
showhuilv(row) {
this.apipost(
"Financial_get_GetFinanceRate",
{ FinanceId: row.FrID },
(res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.trabeListHL = res.data.data this.trabeListHL = res.data.data;
this.costmodeHL = true this.costmodeHL = true;
} }
}, err => {}) },
(err) => {}
);
}, },
GetAuth() { GetAuth() {
var actionCode = this.$AuthCode.F_Advance_Match; var actionCode = this.$AuthCode.F_Advance_Match;
this.CheckUserAuth(actionCode, res => { this.CheckUserAuth(actionCode, (res) => {
if (res.data.resultCode == 1 && res.data.data == 1) { if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_Advance_Match = true; this.F_Advance_Match = true;
} }
...@@ -1131,13 +975,13 @@ export default { ...@@ -1131,13 +975,13 @@ export default {
}, },
goUrlZD(item) { goUrlZD(item) {
let that = this; let that = this;
let yfcheckList let yfcheckList;
if(item){ if (item) {
this.yfcheckList = [] this.yfcheckList = [];
this.yfcheckList.push(item) this.yfcheckList.push(item);
that.yfHandmsg.OtherType = 65 that.yfHandmsg.OtherType = 65;
}else{ } else {
that.yfHandmsg.OtherType = 7 that.yfHandmsg.OtherType = 7;
} }
yfcheckList = JSON.parse(JSON.stringify(this.yfcheckList)); yfcheckList = JSON.parse(JSON.stringify(this.yfcheckList));
if (this.yfcheckList.length > 1) { if (this.yfcheckList.length > 1) {
...@@ -1154,25 +998,25 @@ export default { ...@@ -1154,25 +998,25 @@ export default {
let orderObj = { let orderObj = {
OrderID: 0, OrderID: 0,
OrderSource: 8, OrderSource: 8,
Obj: {} Obj: {},
// TCIDList: TCArr // TCIDList: TCArr
}; };
that.yfHandmsg.ReFinanceId = this.yfcheckList[0].FrID; that.yfHandmsg.ReFinanceId = this.yfcheckList[0].FrID;
that.yfHandmsg.Rate = this.yfcheckList[0].Rate; that.yfHandmsg.Rate = this.yfcheckList[0].Rate;
var msg = {} var msg = {};
// msg = JSON.stringify(that.yfHandmsg); // msg = JSON.stringify(that.yfHandmsg);
if(item){ if (item) {
msg = { msg = {
OtherType: 65, OtherType: 65,
ReFinanceId: that.yfHandmsg.ReFinanceId, ReFinanceId: that.yfHandmsg.ReFinanceId,
czState: that.yfHandmsg.czState czState: that.yfHandmsg.czState,
} };
}else{ } else {
msg = { msg = {
OtherType: 7, OtherType: 7,
ReFinanceId: that.yfHandmsg.ReFinanceId, ReFinanceId: that.yfHandmsg.ReFinanceId,
czState: that.yfHandmsg.czState czState: that.yfHandmsg.czState,
} };
} }
let routeData = this.$router.resolve({ let routeData = this.$router.resolve({
...@@ -1182,8 +1026,8 @@ export default { ...@@ -1182,8 +1026,8 @@ export default {
orderObj: JSON.stringify(orderObj), orderObj: JSON.stringify(orderObj),
companyID: this.OutBranchId, companyID: this.OutBranchId,
Type: 2, Type: 2,
searchTitle: "分摊" searchTitle: "分摊",
} },
}); });
window.open(routeData.href, "_blank"); window.open(routeData.href, "_blank");
}, },
...@@ -1203,7 +1047,7 @@ export default { ...@@ -1203,7 +1047,7 @@ export default {
this.apipost( this.apipost(
"Financial_get_GetAdvanceCostTypeList", "Financial_get_GetAdvanceCostTypeList",
{}, {},
res => { (res) => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.costList = res.data.data; this.costList = res.data.data;
} else { } else {
...@@ -1228,7 +1072,7 @@ export default { ...@@ -1228,7 +1072,7 @@ export default {
this.apipost( this.apipost(
"Financial_get_GetAdvanceFinancePageList", "Financial_get_GetAdvanceFinancePageList",
msg, msg,
res => { (res) => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.czList = res.data.data.pageData; this.czList = res.data.data.pageData;
this.total2 = res.data.data.count; this.total2 = res.data.data.count;
...@@ -1246,7 +1090,7 @@ export default { ...@@ -1246,7 +1090,7 @@ export default {
this.$confirm("是否合并审批?合并审批后不可取消合并", "提示", { this.$confirm("是否合并审批?合并审批后不可取消合并", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning",
}) })
.then(() => { .then(() => {
this.hbBtn = true; this.hbBtn = true;
...@@ -1254,7 +1098,7 @@ export default { ...@@ -1254,7 +1098,7 @@ export default {
this.apipost( this.apipost(
"Financial_post_SetAccountantFinanceMerge", "Financial_post_SetAccountantFinanceMerge",
this.hbMsg, this.hbMsg,
res => { (res) => {
this.hbBtn = false; this.hbBtn = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.getPageList(); this.getPageList();
...@@ -1262,7 +1106,7 @@ export default { ...@@ -1262,7 +1106,7 @@ export default {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
err => {} (err) => {}
); );
}) })
.catch(() => {}); .catch(() => {});
...@@ -1289,7 +1133,7 @@ export default { ...@@ -1289,7 +1133,7 @@ export default {
this.HandState = false; this.HandState = false;
this.$router.push({ this.$router.push({
name: "ChoiceAddFinancialDocuments", name: "ChoiceAddFinancialDocuments",
query: { Handmsg: msg, blank: "y", tab: "新增财务单据" } query: { Handmsg: msg, blank: "y", tab: "新增财务单据" },
}); });
}, },
// 手配费 // 手配费
...@@ -1297,23 +1141,23 @@ export default { ...@@ -1297,23 +1141,23 @@ export default {
this.HandMsg = { this.HandMsg = {
TCNUM: "", TCNUM: "",
ReFinanceId: "", ReFinanceId: "",
OtherType: 6 OtherType: 6,
}; };
this.HandState = true; this.HandState = true;
}, },
// 催审 // 催审
cuishen: function(cmd, id) { cuishen: function (cmd, id) {
this.$confirm("确定催审?", this.$t("tips.tips"), { this.$confirm("确定催审?", this.$t("tips.tips"), {
confirmButtonText: this.$t("pub.sureBtn"), confirmButtonText: this.$t("pub.sureBtn"),
cancelButtonText: this.$t("pub.cancelBtn"), cancelButtonText: this.$t("pub.cancelBtn"),
type: "warning" type: "warning",
}) })
.then(() => { .then(() => {
this.loading = true; this.loading = true;
this.apipost( this.apipost(
cmd, cmd,
{ FrId: id }, { FrId: id },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getPageList(); this.getPageList();
...@@ -1321,13 +1165,13 @@ export default { ...@@ -1321,13 +1165,13 @@ export default {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
err => {} (err) => {}
); );
}) })
.catch(() => { .catch(() => {
this.$message({ this.$message({
type: "info", type: "info",
message: this.$t("ios.yi") + this.$t("pub.cancelBtn") message: this.$t("ios.yi") + this.$t("pub.cancelBtn"),
}); });
}); });
}, },
...@@ -1347,7 +1191,7 @@ export default { ...@@ -1347,7 +1191,7 @@ export default {
this.apipost( this.apipost(
"Financial_post_SetFinanceCreateByCareOf", "Financial_post_SetFinanceCreateByCareOf",
this.zhuanjiaoMsg, this.zhuanjiaoMsg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.zhuanjiaoBox = false; this.zhuanjiaoBox = false;
...@@ -1356,7 +1200,7 @@ export default { ...@@ -1356,7 +1200,7 @@ export default {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
err => {} (err) => {}
); );
}, },
remoteMethodEx(query) { remoteMethodEx(query) {
...@@ -1365,18 +1209,18 @@ export default { ...@@ -1365,18 +1209,18 @@ export default {
this.apipost( this.apipost(
"admin_Get_Chat_All_SelectEmpName", "admin_Get_Chat_All_SelectEmpName",
{ EmName: query }, { EmName: query },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.searchList = res.data.data; this.searchList = res.data.data;
} }
}, },
err => {} (err) => {}
); );
} else { } else {
this.searchList = []; this.searchList = [];
} }
}, },
subBOSSBtnClick: function() { subBOSSBtnClick: function () {
this.loading = true; this.loading = true;
if (this.bossLen && this.bossLen <= this.checkList.length) { if (this.bossLen && this.bossLen <= this.checkList.length) {
this.BOSSDialogText = true; this.BOSSDialogText = true;
...@@ -1384,7 +1228,7 @@ export default { ...@@ -1384,7 +1228,7 @@ export default {
this.apipost( this.apipost(
"Financial_post_AuditOrRefund", "Financial_post_AuditOrRefund",
this.AuditOrRefundMsg, this.AuditOrRefundMsg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.bossLen += 1; this.bossLen += 1;
this.subBOSSBtnClick(); this.subBOSSBtnClick();
...@@ -1396,7 +1240,7 @@ export default { ...@@ -1396,7 +1240,7 @@ export default {
this.BOSSDialogText = false; this.BOSSDialogText = false;
} }
}, },
err => {} (err) => {}
); );
} else { } else {
this.BOSSDialogText = false; this.BOSSDialogText = false;
...@@ -1407,7 +1251,7 @@ export default { ...@@ -1407,7 +1251,7 @@ export default {
this.getPageList(1); this.getPageList(1);
} }
}, },
BOSSBtnClick: function(t) { BOSSBtnClick: function (t) {
if (this.checkList.length < 1) { if (this.checkList.length < 1) {
this.$message.error(this.$t("rule.qxzygxytjddanju")); this.$message.error(this.$t("rule.qxzygxytjddanju"));
} else { } else {
...@@ -1422,7 +1266,7 @@ export default { ...@@ -1422,7 +1266,7 @@ export default {
// 跳转机票 // 跳转机票
this.$router.push({ this.$router.push({
name: "TicketManager", name: "TicketManager",
query: { id: data.SourceID, blank: "y", tab: "票务管理" } query: { id: data.SourceID, blank: "y", tab: "票务管理" },
}); });
}, },
zhuanBtn() { zhuanBtn() {
...@@ -1440,7 +1284,7 @@ export default { ...@@ -1440,7 +1284,7 @@ export default {
this.apipost( this.apipost(
"Financial_post_Transfer", "Financial_post_Transfer",
msg, msg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.bossLen += 1; this.bossLen += 1;
this.zhuanBtn(); this.zhuanBtn();
...@@ -1451,7 +1295,7 @@ export default { ...@@ -1451,7 +1295,7 @@ export default {
this.getPageList(1); this.getPageList(1);
} }
}, },
err => {} (err) => {}
); );
} else { } else {
this.BOSSDialogText = false; this.BOSSDialogText = false;
...@@ -1465,7 +1309,7 @@ export default { ...@@ -1465,7 +1309,7 @@ export default {
this.apipost( this.apipost(
"Financial_post_Transfer", "Financial_post_Transfer",
msg, msg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.zhuanBox = false; this.zhuanBox = false;
...@@ -1475,7 +1319,7 @@ export default { ...@@ -1475,7 +1319,7 @@ export default {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
err => {} (err) => {}
); );
} }
}, },
...@@ -1490,7 +1334,7 @@ export default { ...@@ -1490,7 +1334,7 @@ export default {
this.apipost( this.apipost(
"Financial_get_SetTradeDate", "Financial_get_SetTradeDate",
this.updateMsg, this.updateMsg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.dialogFormVisible = false; this.dialogFormVisible = false;
...@@ -1500,7 +1344,7 @@ export default { ...@@ -1500,7 +1344,7 @@ export default {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
err => {} (err) => {}
); );
}, },
remoteMethod(query) { remoteMethod(query) {
...@@ -1510,13 +1354,13 @@ export default { ...@@ -1510,13 +1354,13 @@ export default {
this.apipost( this.apipost(
"admin_Get_Chat_All_SelectEmpName", "admin_Get_Chat_All_SelectEmpName",
{ EmName: query }, { EmName: query },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.searchList = res.data.data; this.searchList = res.data.data;
this.loading2 = false; this.loading2 = false;
} }
}, },
err => {} (err) => {}
); );
} else { } else {
this.searchList = []; this.searchList = [];
...@@ -1534,13 +1378,13 @@ export default { ...@@ -1534,13 +1378,13 @@ export default {
if (!FrID.length) if (!FrID.length)
return this.$message.error(this.$t("rule.qxzygxytjddanju")); return this.$message.error(this.$t("rule.qxzygxytjddanju"));
let list = []; let list = [];
this.checkList.forEach(x => { this.checkList.forEach((x) => {
list.push({ FrID: x }); list.push({ FrID: x });
}); });
this.apipost( this.apipost(
"Financial_post_SetBatch", "Financial_post_SetBatch",
list, list,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.getPageList(); this.getPageList();
this.$message.success(res.data.message); this.$message.success(res.data.message);
...@@ -1548,7 +1392,7 @@ export default { ...@@ -1548,7 +1392,7 @@ export default {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
err => {} (err) => {}
); );
}, },
ckeckedOne() { ckeckedOne() {
...@@ -1564,7 +1408,7 @@ export default { ...@@ -1564,7 +1408,7 @@ export default {
if (this.isCkedAll == true) { if (this.isCkedAll == true) {
this.checkList = []; this.checkList = [];
} else { } else {
this.checkAllList.forEach(item => { this.checkAllList.forEach((item) => {
this.checkList.push(item); this.checkList.push(item);
}); });
} }
...@@ -1574,31 +1418,31 @@ export default { ...@@ -1574,31 +1418,31 @@ export default {
this.apipost( this.apipost(
"AccountType_post_GetList", "AccountType_post_GetList",
this.queryAccMsg, this.queryAccMsg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.AccList = res.data.data; this.AccList = res.data.data;
let alltransaction = []; let alltransaction = [];
this.AccList.forEach(x => { this.AccList.forEach((x) => {
let obj = { let obj = {
Id: x.ID, Id: x.ID,
list: [] list: [],
}; };
this.apipost( this.apipost(
"FinancialInstitutions_post_GetALLAccountList", "FinancialInstitutions_post_GetALLAccountList",
{ {
TypeId: x.ID TypeId: x.ID,
}, },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
data.forEach(x => { data.forEach((x) => {
x.allName = x.BackNo + "(" + x.Alias + ")"; x.allName = x.BackNo + "(" + x.Alias + ")";
x.Name = x.Alias; x.Name = x.Alias;
}); });
obj.list = data; obj.list = data;
} }
}, },
err => {} (err) => {}
); );
this.alltransaction.push(obj); this.alltransaction.push(obj);
...@@ -1607,37 +1451,37 @@ export default { ...@@ -1607,37 +1451,37 @@ export default {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
err => {} (err) => {}
); );
}, },
getMyRejectFinanceCount() { getMyRejectFinanceCount() {
this.apipost( this.apipost(
"Financial_post_GetMyRejectFinanceCount", "Financial_post_GetMyRejectFinanceCount",
{ EmployeeId: this.userId }, { EmployeeId: this.userId },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.rejectNum = res.data.data; this.rejectNum = res.data.data;
} }
}, },
err => {} (err) => {}
); );
}, },
// 切换table栏 // 切换table栏
getActive(active,Conditon,BOSSBtn){ getActive(active, Conditon, BOSSBtn) {
this.active = active this.active = active;
this.msg.CustomerStatus = Conditon this.msg.CustomerStatus = Conditon;
if(BOSSBtn){ if (BOSSBtn) {
this.BOSSBtn = false this.BOSSBtn = false;
} }
this.msg.pageIndex==1 this.msg.pageIndex == 1;
this.getPageList(0,1) this.getPageList(0, 1);
}, },
getPageList(t,active) { getPageList(t, active) {
if(active){ if (active) {
this.total = 0 this.total = 0;
this.DataList = []; this.DataList = [];
this.msg.pageIndex = 1 this.msg.pageIndex = 1;
this.isTerminate++ this.isTerminate++;
} }
// 获取列表数据 // 获取列表数据
this.loading = true; this.loading = true;
...@@ -1646,13 +1490,13 @@ export default { ...@@ -1646,13 +1490,13 @@ export default {
this.apipost( this.apipost(
"customer_post_GetSigningCustomerPage", "customer_post_GetSigningCustomerPage",
this.msg, this.msg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = []; 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 dataList = res.data.data.pageData;
let newData = []; let newData = [];
dataList.forEach(x => { dataList.forEach((x) => {
if (x.IsBatchAudit == 0 || x.Type == 1) { if (x.IsBatchAudit == 0 || x.Type == 1) {
newData.push(x); newData.push(x);
} }
...@@ -1666,7 +1510,7 @@ export default { ...@@ -1666,7 +1510,7 @@ export default {
this.DataList = []; this.DataList = [];
this.noData = true; this.noData = true;
} else { } else {
data.forEach(x => { data.forEach((x) => {
x.modelShow = false; x.modelShow = false;
this.checkAllList.push(x.FrID); this.checkAllList.push(x.FrID);
}); });
...@@ -1679,18 +1523,17 @@ export default { ...@@ -1679,18 +1523,17 @@ export default {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
err => {}, (err) => {},
'', "",
this.isTerminate, this.isTerminate
); );
}, },
financeRemove(id) { financeRemove(id) {
//作废 //作废
this.$confirm(this.$t("tips.zuofeicaiwudan"), this.$t("tips.tips"), { this.$confirm(this.$t("tips.zuofeicaiwudan"), this.$t("tips.tips"), {
confirmButtonText: this.$t("pub.sureBtn"), confirmButtonText: this.$t("pub.sureBtn"),
cancelButtonText: this.$t("pub.cancelBtn"), cancelButtonText: this.$t("pub.cancelBtn"),
type: "warning" type: "warning",
}) })
.then(() => { .then(() => {
this.deletFinance(id); this.deletFinance(id);
...@@ -1698,7 +1541,7 @@ export default { ...@@ -1698,7 +1541,7 @@ export default {
.catch(() => { .catch(() => {
this.$message({ this.$message({
type: "info", type: "info",
message: this.$t("ios.yi") + this.$t("pub.cancelBtn") message: this.$t("ios.yi") + this.$t("pub.cancelBtn"),
}); });
}); });
}, },
...@@ -1706,7 +1549,7 @@ export default { ...@@ -1706,7 +1549,7 @@ export default {
this.apipost( this.apipost(
"Financial_post_Cancel", "Financial_post_Cancel",
{ ID: id }, { ID: id },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
} else { } else {
...@@ -1714,7 +1557,7 @@ export default { ...@@ -1714,7 +1557,7 @@ export default {
} }
this.getPageList(); this.getPageList();
}, },
err => {} (err) => {}
); );
}, },
Financial_post_GetFinancLogList(id) { Financial_post_GetFinancLogList(id) {
...@@ -1724,17 +1567,17 @@ export default { ...@@ -1724,17 +1567,17 @@ export default {
this.apipost( this.apipost(
"Financial_post_GetFinancLogList", "Financial_post_GetFinancLogList",
{ ID: id, Type: 2 }, { ID: id, Type: 2 },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
data.forEach(x => { data.forEach((x) => {
x.UpdateDate = this.$commonUtils.formatMsgTime(x.UpdateDate); x.UpdateDate = this.$commonUtils.formatMsgTime(x.UpdateDate);
}); });
this.LogLoading = false; this.LogLoading = false;
this.GetFinancLogList = data; this.GetFinancLogList = data;
} }
}, },
err => {} (err) => {}
); );
}, },
mathMoney(n) { mathMoney(n) {
...@@ -1746,12 +1589,12 @@ export default { ...@@ -1746,12 +1589,12 @@ export default {
this.apipost( this.apipost(
"FinancialFlowTemplate_post_GetStatusList", "FinancialFlowTemplate_post_GetStatusList",
{}, {},
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.StatusList = res.data.data; this.StatusList = res.data.data;
} }
}, },
err => {} (err) => {}
); );
}, },
financeinfo_post_GetClientTypeList() { financeinfo_post_GetClientTypeList() {
...@@ -1759,50 +1602,51 @@ export default { ...@@ -1759,50 +1602,51 @@ export default {
this.apipost( this.apipost(
"financeinfo_post_GetClientTypeList", "financeinfo_post_GetClientTypeList",
{}, {},
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.ClientTypeList = res.data.data; this.ClientTypeList = res.data.data;
} }
}, },
err => {} (err) => {}
); );
}, },
GetClientAccountList(i) { //获取客户名称并且根据费用类型和付款对象获取客户账号 GetClientAccountList(i) {
this.msg.AccountNumber = ''; //获取客户名称并且根据费用类型和付款对象获取客户账号
this.transTax.ClientID = '' this.msg.AccountNumber = "";
this.ClientTypeList.forEach(x => { this.transTax.ClientID = "";
this.ClientTypeList.forEach((x) => {
if (x.ID == i) { if (x.ID == i) {
// this.msg.RemitterName = x.Name; // this.msg.RemitterName = x.Name;
this.financeinfo_post_GetClientAccountList(this.transTax.ClientType); this.financeinfo_post_GetClientAccountList(this.transTax.ClientType);
} }
}) });
}, },
financeinfo_post_GetClientAccountList(t) { financeinfo_post_GetClientAccountList(t) {
// 获取对象类型 // 获取对象类型
let msg = { let msg = {
Type: t, Type: t,
ObjID: 0, ObjID: 0,
CardNum: "" CardNum: "",
}; };
this.apipost( this.apipost(
"financeinfo_post_GetClientAccountList", "financeinfo_post_GetClientAccountList",
msg, msg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
let ClientAccountList = []; let ClientAccountList = [];
data.forEach(x => { data.forEach((x) => {
let obj = { let obj = {
ID: x.ID, ID: x.ID,
Name: x.AccountAlias, Name: x.AccountAlias,
Nom: x.CardNum Nom: x.CardNum,
}; };
ClientAccountList.push(obj); ClientAccountList.push(obj);
}); });
this.ClientAccountList = ClientAccountList; this.ClientAccountList = ClientAccountList;
} }
}, },
err => {} (err) => {}
); );
}, },
getAccountList(i, t) { getAccountList(i, t) {
...@@ -1813,21 +1657,21 @@ export default { ...@@ -1813,21 +1657,21 @@ export default {
this.apipost( this.apipost(
"bankaccount_post_GetList", "bankaccount_post_GetList",
{ TypeId: i }, { TypeId: i },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
data.forEach(x => { data.forEach((x) => {
let obj = { let obj = {
ID: x.ID, ID: x.ID,
Name: x.Alias, Name: x.Alias,
Nom: 0 Nom: 0,
}; };
accountList.push(obj); accountList.push(obj);
}); });
this.accountList = accountList; this.accountList = accountList;
} }
}, },
err => {} (err) => {}
); );
} }
if (t == 2) { if (t == 2) {
...@@ -1836,26 +1680,26 @@ export default { ...@@ -1836,26 +1680,26 @@ export default {
BackId: 0, BackId: 0,
TypeId: i, TypeId: i,
BranchId: -1, BranchId: -1,
Alias: "" Alias: "",
}; };
this.apipost( this.apipost(
"BankAccount_post_GetPlatformList", "BankAccount_post_GetPlatformList",
msg, msg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
data.forEach(x => { data.forEach((x) => {
let obj = { let obj = {
ID: x.ID, ID: x.ID,
Name: x.Alias, Name: x.Alias,
Nom: x.PlatformNo Nom: x.PlatformNo,
}; };
accountList.push(obj); accountList.push(obj);
}); });
this.accountList = accountList; this.accountList = accountList;
} }
}, },
err => {} (err) => {}
); );
} }
if (t == 3) { if (t == 3) {
...@@ -1863,26 +1707,26 @@ export default { ...@@ -1863,26 +1707,26 @@ export default {
let msg = { let msg = {
TypeId: i, TypeId: i,
BranchId: -1, BranchId: -1,
Alias: "" Alias: "",
}; };
this.apipost( this.apipost(
"BankAccount_post_GetCashAccountList", "BankAccount_post_GetCashAccountList",
msg, msg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
data.forEach(x => { data.forEach((x) => {
let obj = { let obj = {
ID: x.ID, ID: x.ID,
Name: x.Alias, Name: x.Alias,
Nom: 0 Nom: 0,
}; };
accountList.push(obj); accountList.push(obj);
}); });
this.accountList = accountList; this.accountList = accountList;
} }
}, },
err => {} (err) => {}
); );
} }
if (t == 4) { if (t == 4) {
...@@ -1890,26 +1734,26 @@ export default { ...@@ -1890,26 +1734,26 @@ export default {
let msg = { let msg = {
TypeId: i, TypeId: i,
BranchId: -1, BranchId: -1,
Alias: "" Alias: "",
}; };
this.apipost( this.apipost(
"BankAccount_post_GetCashPoolList", "BankAccount_post_GetCashPoolList",
msg, msg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
data.forEach(x => { data.forEach((x) => {
let obj = { let obj = {
ID: x.ID, ID: x.ID,
Name: x.Alias, Name: x.Alias,
Nom: 0 Nom: 0,
}; };
accountList.push(obj); accountList.push(obj);
}); });
this.accountList = accountList; this.accountList = accountList;
} }
}, },
err => {} (err) => {}
); );
} }
}, },
...@@ -1918,12 +1762,12 @@ export default { ...@@ -1918,12 +1762,12 @@ export default {
this.apipost( this.apipost(
"Financial_post_GetBranchAccountList", "Financial_post_GetBranchAccountList",
{}, {},
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.BranchAccountList = res.data.data; this.BranchAccountList = res.data.data;
} }
}, },
err => {} (err) => {}
); );
}, },
getDepartment() { getDepartment() {
...@@ -1931,12 +1775,12 @@ export default { ...@@ -1931,12 +1775,12 @@ export default {
this.apipost( this.apipost(
"admin_get_DepartmentGetList", "admin_get_DepartmentGetList",
this.getDepartmentMsg, this.getDepartmentMsg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DepartmentList = res.data.data; this.DepartmentList = res.data.data;
} }
}, },
err => {} (err) => {}
); );
}, },
getEmployee() { getEmployee() {
...@@ -1944,12 +1788,12 @@ export default { ...@@ -1944,12 +1788,12 @@ export default {
this.apipost( this.apipost(
"admin_get_EmployeeGetList", "admin_get_EmployeeGetList",
this.employeeMsg, this.employeeMsg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data; this.EmployeeList = res.data.data;
} }
}, },
err => {} (err) => {}
); );
}, },
getCompanyList() { getCompanyList() {
...@@ -1957,13 +1801,13 @@ export default { ...@@ -1957,13 +1801,13 @@ export default {
this.apipost( this.apipost(
"admin_get_BranchGetList", "admin_get_BranchGetList",
this.getCompanyMsg, this.getCompanyMsg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.CompanyList = res.data.data; this.CompanyList = res.data.data;
} else { } else {
} }
}, },
err => {} (err) => {}
); );
}, },
Financial_post_GetConditionList() { Financial_post_GetConditionList() {
...@@ -1971,13 +1815,13 @@ export default { ...@@ -1971,13 +1815,13 @@ export default {
this.apipost( this.apipost(
"Financial_post_GetConditionList", "Financial_post_GetConditionList",
{}, {},
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.ConditionList = res.data.data; this.ConditionList = res.data.data;
} else { } else {
} }
}, },
err => {} (err) => {}
); );
}, },
financeinfo_post_GetList() { financeinfo_post_GetList() {
...@@ -1985,13 +1829,13 @@ export default { ...@@ -1985,13 +1829,13 @@ export default {
this.apipost( this.apipost(
"financeinfo_post_GetList", "financeinfo_post_GetList",
{ Name: "" }, { Name: "" },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.currencyTypeList = res.data.data; this.currencyTypeList = res.data.data;
} else { } else {
} }
}, },
err => {} (err) => {}
); );
}, },
financeinfo_post_GetCostTypeList() { financeinfo_post_GetCostTypeList() {
...@@ -1999,13 +1843,13 @@ export default { ...@@ -1999,13 +1843,13 @@ export default {
this.apipost( this.apipost(
"financeinfo_post_GetCostTypeList", "financeinfo_post_GetCostTypeList",
{ Name: "", type: 0, DepartIDs: this.DepartIDs }, { Name: "", type: 0, DepartIDs: this.DepartIDs },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.GetCostTypeList = res.data.data; this.GetCostTypeList = res.data.data;
} else { } else {
} }
}, },
err => {} (err) => {}
); );
}, },
FinancialFlowTemplate_post_GetList() { FinancialFlowTemplate_post_GetList() {
...@@ -2013,13 +1857,13 @@ export default { ...@@ -2013,13 +1857,13 @@ export default {
this.apipost( this.apipost(
"Financial_post_GetList", "Financial_post_GetList",
{}, {},
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.TemplateGetList = res.data.data; this.TemplateGetList = res.data.data;
} else { } else {
} }
}, },
err => {} (err) => {}
); );
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
...@@ -2040,14 +1884,14 @@ export default { ...@@ -2040,14 +1884,14 @@ export default {
Conditon: Conditon, Conditon: Conditon,
pageIndex: pageIndex, pageIndex: pageIndex,
blank: "y", blank: "y",
tab: "单据详情" tab: "单据详情",
} },
}); });
}, },
goUrlAdd(path) { goUrlAdd(path) {
this.$router.push({ this.$router.push({
name: path, name: path,
query: { blank: "y", tab: "选择财务单据类型" } query: { blank: "y", tab: "选择财务单据类型" },
}); });
}, },
goEit(type, id, edit, Conditon, pageIndex, item) { goEit(type, id, edit, Conditon, pageIndex, item) {
...@@ -2063,8 +1907,8 @@ export default { ...@@ -2063,8 +1907,8 @@ export default {
Conditon: Conditon, Conditon: Conditon,
pageIndex: pageIndex, pageIndex: pageIndex,
blank: "y", blank: "y",
tab: "修改财务单据" tab: "修改财务单据",
} },
}); });
} else if (type === 2) { } else if (type === 2) {
if (item.Status == 3 && item.DMCUsePriceCount > 0) { if (item.Status == 3 && item.DMCUsePriceCount > 0) {
...@@ -2082,21 +1926,21 @@ export default { ...@@ -2082,21 +1926,21 @@ export default {
Conditon: Conditon, Conditon: Conditon,
pageIndex: pageIndex, pageIndex: pageIndex,
blank: "y", blank: "y",
tab: "修改财务单据" tab: "修改财务单据",
} },
}); });
} }
} else if (type === 4) { } else if (type === 4) {
path = "addCapitalAllocation"; path = "addCapitalAllocation";
this.$router.push({ this.$router.push({
name: path, name: path,
query: { id: id, edit: 1, blank: "y", tab: "修改财务单据" } query: { id: id, edit: 1, blank: "y", tab: "修改财务单据" },
}); });
} else if (type === 7) { } else if (type === 7) {
path = "addFinancialGZDocuments"; path = "addFinancialGZDocuments";
this.$router.push({ this.$router.push({
name: path, name: path,
query: { FrID: id, edit: 1, blank: "y", tab: "修改财务单据" } query: { FrID: id, edit: 1, blank: "y", tab: "修改财务单据" },
}); });
} }
}, },
...@@ -2105,11 +1949,11 @@ export default { ...@@ -2105,11 +1949,11 @@ export default {
this.apipost( this.apipost(
"Financial_get_GetFinanceTrabeList", "Financial_get_GetFinanceTrabeList",
{ FrId: FrId }, { FrId: FrId },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.trabeList = res.data.data; this.trabeList = res.data.data;
this.trabeList.forEach(x => { this.trabeList.forEach((x) => {
this.alltransaction.map(j => { this.alltransaction.map((j) => {
if (x.AccountTypeId == j.Id) { if (x.AccountTypeId == j.Id) {
x.list = j.list; x.list = j.list;
return; return;
...@@ -2119,29 +1963,38 @@ export default { ...@@ -2119,29 +1963,38 @@ export default {
this.transactionmode = true; this.transactionmode = true;
} }
}, },
err => {} (err) => {}
); );
}, },
// 确定付款对象 // 确定付款对象
handlingSurePayment(){ handlingSurePayment() {
if (this.transTax.loading) return; if (this.transTax.loading) return;
this.transTax.loading = true; this.transTax.loading = true;
if (this.transTax.ClientType && this.transTax.ClientType != "" && this.transTax.ClientID && this.transTax.ClientID != "") { if (
this.transTax.ClientType &&
this.transTax.ClientType != "" &&
this.transTax.ClientID &&
this.transTax.ClientID != ""
) {
this.apipost( this.apipost(
"Financial_post_UpdateFinancePayClient", "Financial_post_UpdateFinancePayClient",
{ FrId: this.transTax.FrId, ClientType: this.transTax.ClientType, ClientID: this.transTax.ClientID}, {
res => { FrId: this.transTax.FrId,
ClientType: this.transTax.ClientType,
ClientID: this.transTax.ClientID,
},
(res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success("修改成功"); this.Success("修改成功");
this.getPageList(); this.getPageList();
this.PaymentSync = false; this.PaymentSync = false;
this.transTax.FrId = '' this.transTax.FrId = "";
this.transTax.ClientType = '' this.transTax.ClientType = "";
this.transTax.ClientID = '' this.transTax.ClientID = "";
} }
this.transTax.loading = false; this.transTax.loading = false;
}, },
err => { (err) => {
this.transTax.loading = false; this.transTax.loading = false;
} }
); );
...@@ -2150,17 +2003,17 @@ export default { ...@@ -2150,17 +2003,17 @@ export default {
this.Error("请选择付款对象"); this.Error("请选择付款对象");
} }
}, },
showTranTax(fid,type) { showTranTax(fid, type) {
this.transTax.FrId = fid; this.transTax.FrId = fid;
this.transTax.loading = false; this.transTax.loading = false;
if(type==1){ if (type == 1) {
this.transTax.Fee = "0.00"; this.transTax.Fee = "0.00";
this.transactionTax = true; this.transactionTax = true;
}else{ } else {
this.transTax.ClientType = '' this.transTax.ClientType = "";
this.transTax.ClientID = '' this.transTax.ClientID = "";
this.PaymentSync = true this.PaymentSync = true;
} }
}, },
saveTransTaxMoney() { saveTransTaxMoney() {
...@@ -2170,7 +2023,7 @@ export default { ...@@ -2170,7 +2023,7 @@ export default {
this.apipost( this.apipost(
"Financial_post_UpdateFinanceFee", "Financial_post_UpdateFinanceFee",
{ FrId: this.transTax.FrId, Fee: this.transTax.Fee }, { FrId: this.transTax.FrId, Fee: this.transTax.Fee },
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.getPageList(); this.getPageList();
...@@ -2178,7 +2031,7 @@ export default { ...@@ -2178,7 +2031,7 @@ export default {
} }
this.transTax.loading = false; this.transTax.loading = false;
}, },
err => { (err) => {
this.transTax.loading = false; this.transTax.loading = false;
} }
); );
...@@ -2189,7 +2042,7 @@ export default { ...@@ -2189,7 +2042,7 @@ export default {
}, },
getAccountList2(AccountTypeId, y) { getAccountList2(AccountTypeId, y) {
//获取账户类型对应下的账户列表 //获取账户类型对应下的账户列表
this.alltransaction.map(x => { this.alltransaction.map((x) => {
if (x.Id == AccountTypeId) { if (x.Id == AccountTypeId) {
this.trabeList[y].list = x.list; this.trabeList[y].list = x.list;
return; return;
...@@ -2197,7 +2050,7 @@ export default { ...@@ -2197,7 +2050,7 @@ export default {
}); });
}, },
getAccountList3(x, y) { getAccountList3(x, y) {
x.list.map(item => { x.list.map((item) => {
if (x.AccountId == item.ID) { if (x.AccountId == item.ID) {
this.trabeList[y].Type = item.BankType; this.trabeList[y].Type = item.BankType;
return; return;
...@@ -2205,7 +2058,7 @@ export default { ...@@ -2205,7 +2058,7 @@ export default {
}); });
}, },
getAccountListtype(AccountId) { getAccountListtype(AccountId) {
this.accountList2.map(x => { this.accountList2.map((x) => {
if (x.ID == AccountId) { if (x.ID == AccountId) {
this.FinanceTrabeMsg.Type = x.BankType; this.FinanceTrabeMsg.Type = x.BankType;
return; return;
...@@ -2215,18 +2068,18 @@ export default { ...@@ -2215,18 +2068,18 @@ export default {
preservetransaction() { preservetransaction() {
//保存交易方式 //保存交易方式
let msg = []; let msg = [];
this.trabeList.forEach(x => { this.trabeList.forEach((x) => {
let obj = { let obj = {
ID: x.ID, ID: x.ID,
Type: x.Type, Type: x.Type,
AccountId: x.AccountId AccountId: x.AccountId,
}; };
msg.push(obj); msg.push(obj);
}); });
this.apipost( this.apipost(
"Financial_get_SetFinanceTrabeInfo", "Financial_get_SetFinanceTrabeInfo",
msg, msg,
res => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.transactionmode = false; this.transactionmode = false;
...@@ -2235,10 +2088,10 @@ export default { ...@@ -2235,10 +2088,10 @@ export default {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
err => {} (err) => {}
); );
}
}, },
watch: {} },
watch: {},
}; };
</script> </script>
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