Commit 00325267 authored by huangyuanyuan's avatar huangyuanyuan

阿米巴结算绑定财务单据,流程新增部门权限

parent ea392496
...@@ -330,6 +330,15 @@ ...@@ -330,6 +330,15 @@
<el-radio @change="RadioShow" v-model="addMsg.IsShow" :label="1">{{$t('pub.yes')}}</el-radio> <el-radio @change="RadioShow" v-model="addMsg.IsShow" :label="1">{{$t('pub.yes')}}</el-radio>
<el-radio @change="RadioShow" v-model="addMsg.IsShow" :label="2">{{$t('pub.no')}}</el-radio> <el-radio @change="RadioShow" v-model="addMsg.IsShow" :label="2">{{$t('pub.no')}}</el-radio>
</el-form-item> </el-form-item>
<el-form-item v-show="addMsg.IsShow==2" label="可显示部门">
<el-select filterable multiple v-model='addMsg.ShowDepartmentList' class="w200" style="max-height:100px;overflow:hidden" size="small">
<el-option v-for='item in DepartmentList'
:label='item.DepartmentName'
:value='item.DepartmentID'
:key='item.DepartmentID'>
</el-option>
</el-select>
</el-form-item>
<el-form-item v-show="addMsg.IsShow==2" label="可显示人"> <el-form-item v-show="addMsg.IsShow==2" label="可显示人">
<el-select filterable multiple v-model='addMsg.ShowEmployeeList' class="w200" style="max-height:100px;overflow:hidden" size="small"> <el-select filterable multiple v-model='addMsg.ShowEmployeeList' class="w200" style="max-height:100px;overflow:hidden" size="small">
<el-option v-for='item in EmployeeList' <el-option v-for='item in EmployeeList'
...@@ -534,6 +543,7 @@ export default { ...@@ -534,6 +543,7 @@ export default {
components: { Treeselect }, components: { Treeselect },
data(){ data(){
return{ return{
DepartmentList:[],
EmployeeList:[], EmployeeList:[],
Auditshow:false, Auditshow:false,
accListShow: true, accListShow: true,
...@@ -555,6 +565,7 @@ export default { ...@@ -555,6 +565,7 @@ export default {
}, },
IsShow: 1, IsShow: 1,
ShowEmployeeList:[], ShowEmployeeList:[],
ShowDepartmentList:[],
}, },
AuditUserList:{ AuditUserList:{
EmName:'', EmName:'',
...@@ -726,12 +737,33 @@ export default { ...@@ -726,12 +737,33 @@ export default {
this.getFinancialFlowTemplate_post_GetNodeList(); this.getFinancialFlowTemplate_post_GetNodeList();
this.getRole() this.getRole()
this.getEmployeeList(); this.getEmployeeList();
this.getDepartment();
}, },
methods:{ methods:{
//根据多公司获取部门
getDepartment() {
let msg= {
RB_Group_Id: '0',
RB_Branch_Id: '-1',
Status: '0',
};
this.apipost(
"department_get_GetListByBranchIds",
msg,
res => {
if (res.data.resultCode == 1) {
this.DepartmentList = res.data.data;
}
},
err => {}
);
},
RadioShow(val){ RadioShow(val){
console.log(val); console.log(val);
if(val==1){ if(val==1){
this.addMsg.ShowEmployeeList=[]; this.addMsg.ShowEmployeeList=[];
this.addMsg.ShowDepartmentList=[];
} }
}, },
getEmployeeList () { getEmployeeList () {
...@@ -802,6 +834,8 @@ export default { ...@@ -802,6 +834,8 @@ export default {
this.addMsg.IsUploadPic = data.IsUploadPic; this.addMsg.IsUploadPic = data.IsUploadPic;
this.addMsg.IsShow = data.IsShow; this.addMsg.IsShow = data.IsShow;
this.addMsg.ShowEmployeeList = data.ShowEmployeeList; this.addMsg.ShowEmployeeList = data.ShowEmployeeList;
this.addMsg.ShowDepartmentList = data.ShowDepartmentList;
if (data.list && data.list[0] !== -1) { if (data.list && data.list[0] !== -1) {
this.accListMsg = data.list; this.accListMsg = data.list;
......
...@@ -501,7 +501,6 @@ export default { ...@@ -501,7 +501,6 @@ export default {
{ {
name: 'ChoiceAddFinancialDocuments', name: 'ChoiceAddFinancialDocuments',
query:{ query:{
'Type':1,
'path':'SaleOrderModule', 'path':'SaleOrderModule',
'companyID':obj.rB_Branch_Id, 'companyID':obj.rB_Branch_Id,
'blank':'y', 'blank':'y',
......
...@@ -98,26 +98,57 @@ ...@@ -98,26 +98,57 @@
</td> </td>
</tr> </tr>
</table> </table>
<!-- -->
<el-dialog <el-dialog
custom-class="w400" width="1000px"
title="设置团队散客机票利润" title="设置团队散客机票利润"
:visible.sync="AmibaDialog" :visible.sync="AmibaDialog"
center center
:before-close="closeChangeMachie" :before-close="closeChangeMachie"
> >
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="130px"> <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="130px">
<el-form-item label="散客机票数量" prop="IndividualTicketNum"> <el-form-item style="display:inline-block" label="散客机票数量" prop="IndividualTicketNum">
<el-input v-model="addMsg.IndividualTicketNum" @keyup.native="checkInteger(addMsg,'IndividualTicketNum')" class="w180"/> <el-input v-model="addMsg.IndividualTicketNum" @keyup.native="checkInteger(addMsg,'IndividualTicketNum')" class="w180"/>
</el-form-item> </el-form-item>
<el-form-item label="散客机票利润" prop="IndividualTicketMoney"> <el-form-item style="display:inline-block" label="散客机票利润" prop="IndividualTicketMoney">
<el-input v-model="addMsg.IndividualTicketMoney" @keyup.native="checkPrice(addMsg,'IndividualTicketMoney')" class="w180"/> <el-input v-model="addMsg.IndividualTicketMoney" @keyup.native="checkPrice(addMsg,'IndividualTicketMoney')" class="w180"/>
</el-form-item> </el-form-item>
<el-form-item label="绑定财务单据"> <div>绑定财务单据</div>
<el-select multiple :placeholder="$t('pub.pleaseSel')" class='multiple_input w180' v-model="addMsg.FrIdList"> <table v-loading="checkLoad" class="singeRowTable myDocumentsTable" border="0" cellspacing="0" cellpadding="0">
<el-option v-for="item in FrList" :key="item" :label="item" :value="item"> <tr>
</el-option> <th><input v-model="isCkedAll" type="checkbox" @click='checkedAll()' /></th>
</el-select> <th>单号</th>
</el-form-item> <th>所属公司</th>
<th>单据类型</th>
<th>费用类型</th>
<th>交易方式</th>
<th>金额</th>
<th>付款对象</th>
<th>制单人员</th>
</tr>
<tr v-for="(item,index) in FrIdList" :key="index+5000">
<td>
<input type="checkbox" :value="item.FrID" v-model="checkList" @change="ckeckedOne">
</td>
<td>{{item.FrID}}</td>
<td>{{item.BranchName}}</td>
<td>{{item.TypeName}}</td>
<td>
<p v-for="(i,index) in item.CostTypeList" :key="index+1000">{{i}} </p>
</td>
<td>
<span v-for="(i,index) in item.TradeWayList" :key="index+2000">{{i.Alias}} <span v-if="item.TradeWayList[0]">{{item.TradeWayList[0].TypeName}}</span></span>
</td>
<td>
<p>{{item.Type==1?'应收':'应付'}}<span>{{item.Money}}</span></p>
<p>{{item.Type==1?'实收':'实付'}}<span>{{item.PayMoney}}</span></p>
</td>
<td>{{item.RemitterName}}</td>
<td>{{item.EmName}}</td>
</tr>
</table>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" <button class="hollowFixedBtn"
...@@ -133,6 +164,10 @@ ...@@ -133,6 +164,10 @@
export default { export default {
data() { data() {
return { return {
checkLoad:false,
checkAllList:[],
checkList:[],
isCkedAll: false,
dataList: [], dataList: [],
loading:false, loading:false,
//总成本 //总成本
...@@ -158,6 +193,7 @@ ...@@ -158,6 +193,7 @@
IndividualTicketMoney:'', IndividualTicketMoney:'',
FrIdList:[] FrIdList:[]
}, },
FrIdList:[],
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: time => { disabledDate: time => {
if (this.queryMsg.EndTime == null) { if (this.queryMsg.EndTime == null) {
...@@ -197,6 +233,22 @@ ...@@ -197,6 +233,22 @@
this.getList() this.getList()
}, },
methods: { methods: {
ckeckedOne() { //单选
if(this.checkList.length < this.checkAllList.length) {
this.isCkedAll = false
} else {
this.isCkedAll = true
}
},
checkedAll() { //全选
if(this.isCkedAll == true) {
this.checkList = [];
} else {
this.checkAllList.forEach(item => {
this.checkList.push(item)
})
}
},
getList() { //获取列表数据 getList() { //获取列表数据
this.loading = true; this.loading = true;
this.apipost("sellorder_post_GetAirTicketSettlement", this.queryMsg, res => { this.apipost("sellorder_post_GetAirTicketSettlement", this.queryMsg, res => {
...@@ -247,13 +299,17 @@ ...@@ -247,13 +299,17 @@
this.addMsg.IndividualTicketNum = item.IndividualTicketNum; this.addMsg.IndividualTicketNum = item.IndividualTicketNum;
this.addMsg.IndividualTicketMoney = item.IndividualTicketMoney; this.addMsg.IndividualTicketMoney = item.IndividualTicketMoney;
this.addMsg.FrIdList = item.FrIdList; this.addMsg.FrIdList = item.FrIdList;
this.FrList=[]; this.checkAllList=[];
this.checkLoad=true;
this.apipost("Financial_post_GetFinanceALLList", msg, res => { this.apipost("Financial_post_GetFinanceALLList", msg, res => {
this.checkLoad=false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let dataList = res.data.data; let dataList = res.data.data;
dataList.forEach(x=>{ dataList.forEach(x=>{
this.FrList.push(x.FrID); this.checkAllList.push(x.FrID);
}) })
this.FrIdList= res.data.data;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -264,6 +320,13 @@ ...@@ -264,6 +320,13 @@
//提交创建、修改表单 //提交创建、修改表单
this.$refs[addMsg].validate(valid => { this.$refs[addMsg].validate(valid => {
if (valid) { if (valid) {
this.addMsg.FrIdList=this.checkList;
if(this.addMsg.IndividualTicketNum+this.addMsg.IndividualTicketMoney>0){
if(this.addMsg.FrIdList.length==0){
this.Error("至少选择一条单据");
return;
}
}
this.addAmibaInfo(); this.addAmibaInfo();
} else { } else {
return false; return false;
......
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