Commit c6e7814f authored by liudong1993's avatar liudong1993

1

parent 3cc40efa
......@@ -313,7 +313,7 @@
</span>
<button class="hollowFixedBtn" @click="resetPageIndex(),getPageList()">{{$t('pub.searchBtn')}}</button>
<el-button
:loading="loadingDC"class="normalBtn"
:loading="loadingDC" class="normalBtn"
@click="method5()">{{$t('visa.v_daochu')}}</el-button>
<el-button
:loading="loadingDC1"
......@@ -326,6 +326,7 @@
<el-button v-if="isBatchPrinting"
:loading="loadingDC" class="normalBtn"
@click="goPrinting()">{{$t('objFill.v101.FinancialModule.piliangday')}}</el-button>
<el-button v-if="isBatchPrinting && Finance_ExpenseType" class="normalBtn" @click="showBatchUpdateFDialog()">批量修改</el-button>
</li>
</ul>
</div>
......@@ -971,6 +972,39 @@
<el-button class="normalBtn" type="primary" @click="setAirPayDate" :loading="transTax.loading">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
<!--修改PIC预付款日-->
<el-dialog title="批量操作" width="400px" :visible.sync="showBatchUpdateF" center >
<el-form class="cdForm" label-width="110px">
<el-form-item label="操作类型" prop="ImportType">
<template>
<el-select filterable v-model='FixedAssetsMsg.ImportType' class="w135 _border_b_1">
<el-option label="佣金汇率" :value='1' :key='1'></el-option>
<el-option label="机票付款日" :value='2' :key='2'></el-option>
<el-option label="PIC付款日" :value='3' :key='3'></el-option>
</el-select>
</template>
</el-form-item>
<el-form-item label="汇率" prop="Rate1" v-if="FixedAssetsMsg.ImportType==1">
<el-input class="w135 _border_b_1" v-model="FixedAssetsMsg.Rate" placeholder="请输入汇率"></el-input>
</el-form-item>
<el-form-item label="预付款日" prop="CreateDate" v-if="FixedAssetsMsg.ImportType==2 || FixedAssetsMsg.ImportType==3">
<el-date-picker class="w135 _border_b_1"
v-model="FixedAssetsMsg.CreateDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="showBatchUpdateF=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="setBatchUpdateF()" :loading="transTax.loading">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -1153,10 +1187,13 @@
showUpdateCreate:false,
showPICPayDate:false,
showAirPayDate:false,
showBatchUpdateF:false,
FixedAssetsMsg:{
BaseFinanceId:0,
RelevanceFrId2:0,
CreateDate:''
CreateDate:'',
Rate:0,
ImportType:1
}
}
},
......@@ -1495,6 +1532,9 @@
this.FixedAssetsMsg.CreateDate= item.PICPayDate;
this.showAirPayDate=true;
},
showBatchUpdateFDialog(){
this.showBatchUpdateF=true;
},
// 确定垫付对象
setFixedAssets() {
if (this.transTax.loading) return;
......@@ -1586,6 +1626,32 @@
this.Error(this.$t('objFill.v101.FinancialModule.qingxzxzdrq')) ;
}
},
setBatchUpdateF(){
if (this.transTax.loading) return;
this.transTax.loading = true;
if (this.multipleSelection.length>0) {
var frids = this.multipleSelection.map(item => item.id).join(',');
this.apipost(
"Financial_post_BatchUpdateFinanceInfo", {FrIDs:frids,Rate:this.FixedAssetsMsg.Rate,ImportType:this.FixedAssetsMsg.ImportType,CreateDate:this.FixedAssetsMsg.CreateDate},res => {
if (res.data.resultCode == 1) {
this.Success(this.$t('objFill.v101.FinancialModule.gengxincg')) ;
this.showBatchUpdateF = false;
this.multipleSelection=[];
}else{
this.Error(res.data.message);
}
this.transTax.loading = false;
},
err => {
this.transTax.loading = false;
}
);
} else {
this.transTax.loading = false;
this.Error(this.$t('objFill.v101.FinancialModule.qingxzxzdrq')) ;
}
},
showHelpBranch(item) {
//弹出付款对象修改
this.HelpBranchMsg.FrId = item.FrID;
......
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