Commit 6bd1734b authored by Mac's avatar Mac

收款单

parent 46f98eac
...@@ -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 {
...@@ -1452,7 +1467,7 @@ ...@@ -1452,7 +1467,7 @@
} }
} }
}) })
} }
if (!isNaN(rate)) { if (!isNaN(rate)) {
let num = (numberC * price) * rate; let num = (numberC * price) * rate;
num = Math.round(num * 100) / 100; num = Math.round(num * 100) / 100;
...@@ -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) {
this.msg.RB_Branch_Id = parseInt(this.$route.query.companyID); if(this.$route.query.companyID!=='undefined'){
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; }
} }
} }).catch(() => {
}, err => {})
})
}, },
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);
......
...@@ -273,6 +273,35 @@ export default{ ...@@ -273,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