Commit 100391c8 authored by 黄奎's avatar 黄奎
parents ee04dc45 6bd1734b
...@@ -997,7 +997,7 @@ export default { ...@@ -997,7 +997,7 @@ export default {
downMuban() { downMuban() {
let msg=this.msg; let msg=this.msg;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
msg.UId=userInfo.EmployeeId; msg.UId=userInfo.Id;
this.GetLocalFile( this.GetLocalFile(
"BankAccount_post_OutToExcelPlatform", "BankAccount_post_OutToExcelPlatform",
msg, msg,
......
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
SingleList: [], SingleList: [],
schoolMsg: { schoolMsg: {
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 999,
rowsPerPage: 12, rowsPerPage: 12,
SName: "", SName: "",
Status: '-1' Status: '-1'
......
...@@ -282,8 +282,8 @@ ...@@ -282,8 +282,8 @@
created(){ created(){
this.getList() this.getList()
let userInfo = this.getLocalStorage(); // 读取缓存数据 let userInfo = this.getLocalStorage(); // 读取缓存数据
this.getCompanyMsg.RB_Group_Id = this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo.RB_Group_id; // 集团ID this.getCompanyMsg.RB_Group_Id = this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo.Group_Id; // 集团ID
this.EmId=userInfo.EmployeeId; this.EmId=userInfo.Id;
let ActionMenuCode=userInfo.ActionMenuCode; let ActionMenuCode=userInfo.ActionMenuCode;
// if(ActionMenuCode.indexOf('F_CreateBranchMoneyAllot')!=-1){ // if(ActionMenuCode.indexOf('F_CreateBranchMoneyAllot')!=-1){
// this.btnShow=true; // this.btnShow=true;
...@@ -324,6 +324,7 @@ ...@@ -324,6 +324,7 @@
if(!this.msg.Status)this.msg.Status=0; if(!this.msg.Status)this.msg.Status=0;
if(!this.msg.FrID)this.msg.FrID=0; if(!this.msg.FrID)this.msg.FrID=0;
this.msg.EmployeeId=this.EmId; this.msg.EmployeeId=this.EmId;
this.GetLocalFile("Financial_get_OutToFundTransfer", this.msg,this.$t('fnc.zjdbbiao')+".xls");} , this.GetLocalFile("Financial_get_OutToFundTransfer", this.msg,this.$t('fnc.zjdbbiao')+".xls");} ,
getCompanyList: function () { //获取公司列表 getCompanyList: function () { //获取公司列表
getSchoolPage(this.schoolMsg).then(res => { getSchoolPage(this.schoolMsg).then(res => {
......
...@@ -123,56 +123,49 @@ ...@@ -123,56 +123,49 @@
if(this.active==1){ if(this.active==1){
// 手配费 收款单参数Handmsg // 手配费 收款单参数Handmsg
if(this.$route.query.Handmsg){ if(this.$route.query.Handmsg){
let tempStr = '/financial/financalDocument/addReceivablesDocuments' + '?Handmsg=' + this.Handmsg + '&tradeWay=' +this.tradeWay +'&platformAccount='+this.platformAccount+'&id='+id+'&Name='+Name+'&Type='+Type+"&orderObj="+this.orderObj+'&path='+this.$route.query.path+'&IsUploadPic='+IsUploadPic+'&Cmd='+this.$route.query.Cmd+'&companyID='+this.$route.query.companyID;
// this.$router.push({ name: "addReceivablesDocuments",query:{"Handmsg":this.Handmsg,"tradeWay":this.tradeWay,"platformAccount":this.platformAccount,"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增收款单'}})
this.$router.push({ this.$router.push({
path: tempStr path: '/financial/financalDocument/addReceivablesDocuments',
query:{"Handmsg":this.Handmsg,"tradeWay":this.tradeWay,"platformAccount":this.platformAccount,"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增收款单'}
}); });
} }
// 财务收据 // 财务收据
else if(this.$route.query.czmsg){ else if(this.$route.query.czmsg){
let Handmsg=this.$route.query.czmsg; let Handmsg=this.$route.query.czmsg;
let tempStr = '/financial/financalDocument/addReceivablesDocuments' + '?Handmsg=' + this.Handmsg + '&tradeWay=' +this.tradeWay +'&platformAccount='+this.platformAccount+'&id='+id+'&Name='+Name+'&Type='+Type+"&orderObj="+this.orderObj+'&path='+this.$route.query.path+'&IsUploadPic='+IsUploadPic+'&Cmd='+this.$route.query.Cmd+'&companyID='+this.$route.query.companyID;
// this.$router.push({ name: "addReceivablesDocuments",query:{"Handmsg":Handmsg,"tradeWay":this.tradeWay,"platformAccount":this.platformAccount,"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增收款单'}})
this.$router.push({ this.$router.push({
path: tempStr path: '/financial/financalDocument/addReceivablesDocuments',
query:{"Handmsg":Handmsg,"tradeWay":this.tradeWay,"platformAccount":this.platformAccount,"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增收款单'}
}); });
} }
else{ else{
let tempStr = '/financial/financalDocument/addReceivablesDocuments'+ '?tradeWay=' +this.tradeWay +'&platformAccount='+this.platformAccount+'&id='+id+'&Name='+Name+'&Type='+Type+"&orderObj="+this.orderObj+'&path='+this.$route.query.path+'&IsUploadPic='+IsUploadPic+'&Cmd='+this.$route.query.Cmd+'&companyID='+this.$route.query.companyID;
this.$router.push({ this.$router.push({
path: tempStr path: '/financial/financalDocument/addReceivablesDocuments',
query:{"tradeWay":this.tradeWay,"platformAccount":this.platformAccount,"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增收款单'}
}); });
// this.$router.push({ name: "addReceivablesDocuments",query:{"tradeWay":this.tradeWay,"platformAccount":this.platformAccount,"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增收款单'}})
} }
}else if(this.active==2){ }else if(this.active==2){
// 付款单参数czmsg // 付款单参数czmsg
// 领队报账 预付款冲抵 返款制单 // 领队报账 预付款冲抵 返款制单
if(this.$route.query.czmsg){ if(this.$route.query.czmsg){
let tempStr = '/financial/financalDocument/' + path + '?czmsg=' +this.czmsg +'&id='+id+'&Name='+Name+'&Type='+Type+"&orderObj="+this.orderObj+'&path='+this.$route.query.path+'&IsUploadPic='+IsUploadPic+'&Cmd='+this.$route.query.Cmd+'&companyID='+this.$route.query.companyID;
this.$router.push({ this.$router.push({
path: tempStr path: '/financial/financalDocument/' + path,
query:{"czmsg":this.czmsg,"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增付款单'}
}); });
// this.$router.push({ name: path,query:{"czmsg":this.czmsg,"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增付款单'}})
}else{ }else{
let tempStr = '/financial/financalDocument/' + path + '?id='+id+'&Name='+Name+'&Type='+Type+"&orderObj="+this.orderObj+'&path='+this.$route.query.path+'&IsUploadPic='+IsUploadPic+'&Cmd='+this.$route.query.Cmd+'&companyID='+this.$route.query.companyID;
this.$router.push({ this.$router.push({
path: tempStr path: '/financial/financalDocument/' + path,
query:{"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增付款单'}
}); });
// this.$router.push({ name: path,query:{"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增付款单'}})
} }
}else if(this.active==4){ }else if(this.active==4){
let tempStr = '/financial/financalDocument/' + path + '?id='+id+'&Name='+Name+'&Type='+2+"&orderObj="+this.orderObj+'&path='+this.$route.query.path+'&IsUploadPic='+IsUploadPic+'&Cmd='+this.$route.query.Cmd+'&companyID='+this.$route.query.companyID;
this.$router.push({ this.$router.push({
path: tempStr path: '/financial/financalDocument/' + path,
query:{"id":id,"Name":Name,"Type":2,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增付款单'}
}); });
// this.$router.push({ name: path,query:{"id":id,"Name":Name,"Type":2,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增付款单'}})
}else { }else {
let tempStr = '/financial/financalDocument/addFinancialGZDocuments' + '?id='+id+'&Name='+Name+'&Type='+Type+"&orderObj="+this.orderObj+'&path='+this.$route.query.path+'&IsUploadPic='+IsUploadPic+'&Cmd='+this.$route.query.Cmd+'&companyID='+this.$route.query.companyID;
this.$router.push({ this.$router.push({
path: tempStr path: '/financial/financalDocument/addFinancialGZDocuments',
query:{"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增挂账单'}
}); });
// this.$router.push({ name: "addFinancialGZDocuments",query:{"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增挂账单'}})
} }
}, },
getFlowChart(id){ //获取流程图 getFlowChart(id){ //获取流程图
...@@ -288,8 +281,8 @@ ...@@ -288,8 +281,8 @@
} }
,mounted(){ ,mounted(){
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.DepartID = userInfo.RB_Department_Id; this.DepartID = userInfo.DeptId;
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.Id;
this.templateID = this.$route.query.templateID ? JSON.parse(this.$route.query.templateID) : null this.templateID = this.$route.query.templateID ? JSON.parse(this.$route.query.templateID) : null
this.OrderSource = this.$route.query.OrderSource ? this.$route.query.OrderSource : null this.OrderSource = this.$route.query.OrderSource ? this.$route.query.OrderSource : null
this.showTab = this.$route.query.Type?this.$route.query.Type:0; this.showTab = this.$route.query.Type?this.$route.query.Type:0;
...@@ -315,7 +308,6 @@ ...@@ -315,7 +308,6 @@
this.active = parseInt(this.$route.query.Type)?parseInt(this.$route.query.Type):1; this.active = parseInt(this.$route.query.Type)?parseInt(this.$route.query.Type):1;
this.orderObj = this.$route.query.orderObj; this.orderObj = this.$route.query.orderObj;
console.log(this.orderObj ,'this.orderObj ')
this.Handmsg = this.$route.query.Handmsg?this.$route.query.Handmsg:this.Handmsg; this.Handmsg = this.$route.query.Handmsg?this.$route.query.Handmsg:this.Handmsg;
this.czmsg = this.$route.query.czmsg?this.$route.query.czmsg:this.czmsg; this.czmsg = this.$route.query.czmsg?this.$route.query.czmsg:this.czmsg;
......
This diff is collapsed.
...@@ -367,7 +367,7 @@ ...@@ -367,7 +367,7 @@
<p class="rb_tit">{{BillName}} <p class="rb_tit">{{BillName}}
(<el-select filterable v-model='msg.RB_Branch_Id' @change="admin_get_DepartmentGetList(msg.RB_Branch_Id)" (<el-select filterable v-model='msg.RB_Branch_Id' @change="admin_get_DepartmentGetList(msg.RB_Branch_Id)"
class="w120 _border_b_1"> class="w120 _border_b_1">
<el-option v-for='item in companyList' :label='item.BName' :value='item.Id' :key='item.Id' <el-option v-for='item in companyList' :label='item.SName' :value='item.SId' :key='item.SId'
:disabled="item.disabled"> :disabled="item.disabled">
</el-option> </el-option>
</el-select>) </el-select>)
...@@ -580,8 +580,8 @@ ...@@ -580,8 +580,8 @@
<div> <div>
<p>{{$t('fnc.fygsbumen')}}:<span> <p>{{$t('fnc.fygsbumen')}}:<span>
<el-select filterable v-model='msg.RB_Depart_Id' class="w135 _border_b_1"> <el-select filterable v-model='msg.RB_Depart_Id' class="w135 _border_b_1">
<el-option v-for='item in departmentList' :label='item.DepartmentName' :value='item.DepartmentID' <el-option v-for='item in departmentList' :label='item.DeptName' :value='item.DeptId'
:key='item.DepartmentID'> :key='item.DeptId'>
</el-option> </el-option>
</el-select> </el-select>
</span></p> </span></p>
...@@ -668,6 +668,11 @@ ...@@ -668,6 +668,11 @@
<script> <script>
import myFlowChartModule from "../components/FlowChartModule.vue"; import myFlowChartModule from "../components/FlowChartModule.vue";
import TicketingModule from "../components/TicketingModule.vue"; import TicketingModule from "../components/TicketingModule.vue";
import {getSchoolPage} from '../../../api/school/index'
import {getDeptList} from '../../../api/system/dept'
import {
UploadSelfFile
} from '../../../api/common/common'
export default { export default {
data() { data() {
return { return {
...@@ -805,6 +810,13 @@ ...@@ -805,6 +810,13 @@
tradeWay: '', tradeWay: '',
platformAccount: '', platformAccount: '',
Handmsg: {}, Handmsg: {},
schoolMsg:{
pageIndex: 1,
pageSize: 99999,
rowsPerPage: 12,
SName: "",
Status: '-1'
}
} }
}, },
methods: { methods: {
...@@ -972,13 +984,14 @@ ...@@ -972,13 +984,14 @@
newArr.push(file.file) newArr.push(file.file)
let path = "/Upload/Temporary/" let path = "/Upload/Temporary/"
this.$message.info(this.$t('tips.shangchuanzhong')) this.$message.info(this.$t('tips.shangchuanzhong'))
this.UploadSelfFileT(path, newArr, x => { UploadSelfFile('Temporary', file.file, x => {
console.log(x)
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0); let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
this.saveMsg.push({ this.saveMsg.push({
Content: x.data.FilePath, Content: x.FileUrl,
ID: 0, ID: 0,
Type: fileTypeNumber, Type: fileTypeNumber,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath, Url: x.FileUrl,
}) })
this.Success(this.$t('tips.scchenggong')) this.Success(this.$t('tips.scchenggong'))
if (this.bankType == 13 && x.data.Ocr.length > 0) { if (this.bankType == 13 && x.data.Ocr.length > 0) {
...@@ -1291,6 +1304,7 @@ ...@@ -1291,6 +1304,7 @@
this.msg.OrderTradeWay = this.tradeWay; this.msg.OrderTradeWay = this.tradeWay;
this.msg.PlatformAccountId = this.platformAccount; this.msg.PlatformAccountId = this.platformAccount;
this.loading = true; this.loading = true;
this.apipost('Financial_post_Set', this.msg, res => { this.apipost('Financial_post_Set', this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$confirm(this.$t('tips.czcgsfjxzhidan'), this.$t('tips.tips'), { this.$confirm(this.$t('tips.czcgsfjxzhidan'), this.$t('tips.tips'), {
...@@ -1299,7 +1313,7 @@ ...@@ -1299,7 +1313,7 @@
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$router.push({ this.$router.push({
name: 'addReceivablesDocuments', path: '/financial/financalDocument/addReceivablesDocuments',
query: { query: {
"id": this.$route.query.id, "id": this.$route.query.id,
"Name": this.$route.query.Name, "Name": this.$route.query.Name,
...@@ -1312,12 +1326,13 @@ ...@@ -1312,12 +1326,13 @@
}); });
}).catch(() => { }).catch(() => {
this.$router.push({ this.$router.push({
name: 'FinancialDocuments', path: '/financial/financalDocument/ChoiceAddFinancialDocuments',
query: { query: {
'Type': this.$route.query.Type, 'Type': this.$route.query.Type,
'InPay': this.$route.query.InPay 'InPay': this.$route.query.InPay
} }
}); });
}); });
} else { } else {
...@@ -1575,14 +1590,20 @@ ...@@ -1575,14 +1590,20 @@
let ParentCompanyId = userInfo.ParentCompanyId; let ParentCompanyId = userInfo.ParentCompanyId;
this.msg.RB_Branch_Id = this.msg.RB_Branch_Id == 0 || this.msg.RB_Branch_Id == ParentCompanyId ? this this.msg.RB_Branch_Id = this.msg.RB_Branch_Id == 0 || this.msg.RB_Branch_Id == ParentCompanyId ? this
.getLocalStorage().RB_Branch_id : this.msg.RB_Branch_Id; .getLocalStorage().School_Id : this.msg.RB_Branch_Id;
if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length > 0) { if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length > 0) {
this.msg.RB_Branch_Id = this.orderObj.companyIDList[0]; this.msg.RB_Branch_Id = this.orderObj.companyIDList[0];
} else if (this.$route.query.companyID) { } else if (this.$route.query.companyID) {
if(this.$route.query.companyID!=='undefined'){
this.msg.RB_Branch_Id = parseInt(this.$route.query.companyID); this.msg.RB_Branch_Id = parseInt(this.$route.query.companyID);
}else {
this.msg.RB_Branch_Id = this.getLocalStorage().School_Id;
}
} }
this.admin_get_DepartmentGetList(this.msg.RB_Branch_Id); this.admin_get_DepartmentGetList(this.msg.RB_Branch_Id);
this.msg.RB_Depart_Id = this.msg.RB_Depart_Id ? this.getLocalStorage().RB_Department_Id : this.msg this.msg.RB_Depart_Id = this.msg.RB_Depart_Id ? this.getLocalStorage().DeptId : this.msg
.RB_Depart_Id; .RB_Depart_Id;
this.FinancialFlowTemplate_post_GetProcessList(data.TemplateId); this.FinancialFlowTemplate_post_GetProcessList(data.TemplateId);
this.Financial_post_GetCostTypeList(data.TemplateId, 2); this.Financial_post_GetCostTypeList(data.TemplateId, 2);
...@@ -1681,25 +1702,27 @@ ...@@ -1681,25 +1702,27 @@
}, err => {}) }, err => {})
}, },
admin_get_DepartmentGetList(Bid, T) { // 获取部门 admin_get_DepartmentGetList(Bid, T) { // 获取部门
// this.departmentMsg.RB_Branch_Id = this.msg.RB_Branch_Id
this.departmentMsg.RB_Branch_Id = -1; this.departmentMsg.RB_Branch_Id = -1;
this.msg.RB_Depart_Id = ''; this.msg.RB_Depart_Id = '';
this.apipost('admin_get_DepartmentGetList', this.departmentMsg, res => { getDeptList(this.departmentMsg).then(res => {
if (res.data.resultCode == 1) { if (res.Code == 1) {
this.departmentList = res.data.data; this.departmentList = res.Data;
if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length > 0) { if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length > 0) {
} else { } else {
this.msg.RB_Depart_Id = this.msg.RB_Depart_Id ? this.msg.RB_Depart_Id : this.getLocalStorage() this.msg.RB_Depart_Id = this.msg.RB_Depart_Id ? this.msg.RB_Depart_Id : this.getLocalStorage().DeptId;
.RB_Department_Id;
} }
} }
}, err => {}) }).catch(() => {
})
}, },
getCompany() { // 获取公司 getCompany() { // 获取公司
this.apipost('admin_get_BranchGetList', this.companyMsg, res => { getSchoolPage(this.schoolMsg).then(res => {
let data = res.data.data; let data = res.Data.PageData;
let Status = false; let Status = false;
if (this.$route.query.companyID !== '-1' && this.$route.query.companyID !== undefined) { if (this.$route.query.companyID !== '-1' && this.$route.query.companyID !== undefined&& this.$route.query.companyID !== 'undefined') {
Status = true; Status = true;
data.forEach(x => { data.forEach(x => {
x.disabled = true; x.disabled = true;
...@@ -1712,13 +1735,14 @@ ...@@ -1712,13 +1735,14 @@
if (y.disabled === false) { if (y.disabled === false) {
y.disabled = false y.disabled = false
} else { } else {
y.disabled = x !== y.Id; y.disabled = x !== y.SId;
} }
}) })
}); });
} }
this.companyList = data; this.companyList = data;
if (!Status) { if (!Status) {
let id = this.$route.query.id; let id = this.$route.query.id;
this.apipost('FinancialFlowTemplate_post_GetTemplateBranch', { this.apipost('FinancialFlowTemplate_post_GetTemplateBranch', {
ID: id ID: id
...@@ -1730,7 +1754,7 @@ ...@@ -1730,7 +1754,7 @@
data.forEach(x => { data.forEach(x => {
x.disabled = true; x.disabled = true;
BranchList.forEach(y => { BranchList.forEach(y => {
if (x.Id == y) { if (x.SId == y) {
x.disabled = false; x.disabled = false;
} }
}) })
...@@ -1740,15 +1764,19 @@ ...@@ -1740,15 +1764,19 @@
} }
}, err => {}) }, err => {})
} }
}, err => {})
}).catch(() => {
})
}, },
}, },
created() { created() {
let that = this; let that = this;
this.tradeWay = this.$route.query.tradeWay ? this.$route.query.tradeWay : 0; this.tradeWay = this.$route.query.tradeWay ? this.$route.query.tradeWay : 0;
this.platformAccount = this.$route.query.platformAccount ? this.$route.query.platformAccount : 0; this.platformAccount = this.$route.query.platformAccount ? this.$route.query.platformAccount : 0;
this.orderObj = this.$route.query.orderObj ? JSON.parse(this.$route.query.orderObj) : null; this.orderObj = this.$route.query.orderObj&& this.$route.query.orderObj!='undefined' ? JSON.parse(this.$route.query.orderObj) : null;
this.Handmsg = this.$route.query.Handmsg ? JSON.parse(this.$route.query.Handmsg) : null; this.Handmsg = this.$route.query.Handmsg && this.$route.query.Handmsg!='undefined' ? JSON.parse(this.$route.query.Handmsg) : null;
if (this.orderObj != null && this.orderObj.OrderSource === 8 && this.orderObj.tipObj == 1) { if (this.orderObj != null && this.orderObj.OrderSource === 8 && this.orderObj.tipObj == 1) {
that.Description = "旅客名单:"; that.Description = "旅客名单:";
...@@ -1763,11 +1791,11 @@ ...@@ -1763,11 +1791,11 @@
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.department = userInfo.DepartName; this.department = userInfo.DepartName;
this.emplyeeName = userInfo.emName; this.emplyeeName = userInfo.GroupName;
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.Id;
this.DepartIDs = this.msg.RB_Depart_Id = userInfo.RB_Department_Id; this.DepartIDs = this.msg.RB_Depart_Id = userInfo.DeptId;
this.RB_Branch_Id = this.departmentMsg.RB_Branch_Id = this.msg.RB_Branch_Id = userInfo.RB_Branch_id; this.RB_Branch_Id = this.departmentMsg.RB_Branch_Id = this.msg.RB_Branch_Id = userInfo.School_Id;
this.companyMsg.RB_Group_Id = this.departmentMsg.RB_Group_Id = userInfo.RB_Group_id; this.companyMsg.RB_Group_Id = this.departmentMsg.RB_Group_Id = userInfo.Group_Id;
const myDate = new Date(); const myDate = new Date();
this.yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????) this.yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
this.month = myDate.getMonth() + 1; //获取当前月份(0-11,0代表1月) this.month = myDate.getMonth() + 1; //获取当前月份(0-11,0代表1月)
...@@ -1780,6 +1808,8 @@ ...@@ -1780,6 +1808,8 @@
this.msg.Cmd = this.$route.query.Cmd ? this.$route.query.Cmd : ''; this.msg.Cmd = this.$route.query.Cmd ? this.$route.query.Cmd : '';
this.getCompany(); this.getCompany();
if (this.$route.query.edit) { if (this.$route.query.edit) {
console.log(this.$route.query.edit,'this.$route.query.edit')
this.edit = this.$route.query.edit; this.edit = this.$route.query.edit;
this.msg.FrID = this.$route.query.FrID; this.msg.FrID = this.$route.query.FrID;
this.Financial_post_Get(parseInt(this.$route.query.FrID), 0); this.Financial_post_Get(parseInt(this.$route.query.FrID), 0);
......
...@@ -276,6 +276,11 @@ const routes = [{ ...@@ -276,6 +276,11 @@ const routes = [{
component: () => component: () =>
import("pages/financial/financalDocument/CapitalAllocationDetail.vue") import("pages/financial/financalDocument/CapitalAllocationDetail.vue")
}, },
{
path: "/financial/financalDocument/addFinancialDocuments", //新增财务单据
component: () =>
import("pages/financial/financalDocument/addFinancialDocuments.vue")
},
{ {
path: "/test", //API测试 path: "/test", //API测试
component: () => component: () =>
......
...@@ -151,7 +151,9 @@ export default{ ...@@ -151,7 +151,9 @@ export default{
"cmd": cmd, "cmd": cmd,
"timestamp": timestamp, "timestamp": timestamp,
"token": token, "token": token,
"sign": md5Str "sign": md5Str,
"groupId":tokenData.data.Group_Id,
"requestFrom":6
} }
this.$http.post(apiurl, postData, { this.$http.post(apiurl, postData, {
responseType: 'arraybuffer' responseType: 'arraybuffer'
...@@ -271,6 +273,35 @@ export default{ ...@@ -271,6 +273,35 @@ export default{
x1 = x1.replace(rgx, '$1' + ',' + '$2'); x1 = x1.replace(rgx, '$1' + ',' + '$2');
} }
return x1 + x2; return x1 + x2;
},
//验证只能输入整数【负数:isMinus传true】
Vue.prototype.checkInteger = function (item, filed, isMinus) {
var value = "" + item[filed]; //转字符串
var t = value.charAt(0);
value = value.replace(this.$commonUtils.Regex.isInteger, "");
//是否允许负数
if (isMinus && t == '-') {
value = '-' + value;
}
item[filed] = value;
},
//验证只能输入2位小数【负数:isMinus传true】
Vue.prototype.checkPrice = function (item, filed, isMinus) {
var value = "" + item[filed]; //转字符串
var t = value.charAt(0);
value = value.replace(/[^\d.]/g, ""); //清除“数字”和“.”以外的字符
value = value.replace(/\.{2,}/g, "."); //只保留第一个. 清除多余的
value = value
.replace(".", "$#$")
.replace(/\./g, "")
.replace("$#$", ".");
value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
//如果第一位是负号,则允许添加 如果不允许添加负号 可以把这块注释掉
//是否允许负数
if (isMinus && t == '-') {
value = '-' + value;
}
item[filed] = value;
} }
} }
......
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