Commit e9f8befb authored by 吴春's avatar 吴春

1

parent e7ca4e9c
......@@ -77,6 +77,7 @@
</el-form>
<div class="page_EasyReport_export">
<button class="normalBtn " @click="exportExcel">导出EXCEL</button>
<button v-if="isShowTaxesShareBtn" class="normalBtn " @click="TaxesShare">营业额税金分摊</button>
<!-- <button class="normalBtn " @click="togbu">一键同步</button> -->
</div>
<button class="normalBtn page_EasyReport_search" v-if="userId==1" @click="getData(1)">保存损失</button>
......@@ -101,7 +102,86 @@
>
</v-table>
</div>
<el-dialog title="营业额税金分摊" :visible.sync="IsShowTaxesShare" center >
<div class="page_EasyReport_set clearfix">
<el-form class="clearfix " label-width="110px">
<el-row style="padding:15px 0 0 0;">
<el-col >
<el-form-item label="年份:">
<el-date-picker
v-model="year"
type="year"
@change="getTaxesShareData(2)"
value-format="yyyy"
:disabled="true"
placeholder="选择年">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4">
<button class="normalBtn page_EasyReport_search" style="left: 688px;" @click="saveData(2)">保存</button>
</el-col>
</el-row>
<el-row >
<el-col :span="5" >
<el-form-item label="一月:">
<el-input v-model="msgTaxesShare.Month1" @keyup.native="checkPrice(msgTaxesShare,'Month1')" :disabled="TaxesShareMonth<1"></el-input>
</el-form-item>
</el-col>
<el-col :span="5" >
<el-form-item label="二月:">
<el-input v-model="msgTaxesShare.Month2" @keyup.native="checkPrice(msgTaxesShare,'Month2')" :disabled="TaxesShareMonth<2"></el-input>
</el-form-item></el-col>
<el-col :span="5" >
<el-form-item label="三月:">
<el-input v-model="msgTaxesShare.Month3" @keyup.native="checkPrice(msgTaxesShare,'Month3')" :disabled="TaxesShareMonth<3"></el-input>
</el-form-item></el-col>
<el-col :span="5" >
<el-form-item label="四月:">
<el-input v-model="msgTaxesShare.Month4" @keyup.native="checkPrice(msgTaxesShare,'Month4')" :disabled="TaxesShareMonth<4"></el-input>
</el-form-item></el-col>
<el-col :span="5" >
<el-form-item label="五月:">
<el-input v-model="msgTaxesShare.Month5" @keyup.native="checkPrice(msgTaxesShare,'Month5')":disabled="TaxesShareMonth<5"></el-input>
</el-form-item></el-col>
<el-col :span="5" >
<el-form-item label="六月:">
<el-input v-model="msgTaxesShare.Month6" @keyup.native="checkPrice(msgTaxesShare,'Month6')" :disabled="TaxesShareMonth<6"></el-input>
</el-form-item></el-col>
<el-col :span="5" >
<el-form-item label="七月:">
<el-input v-model="msgTaxesShare.Month7" @keyup.native="checkPrice(msgTaxesShare,'Month7')" :disabled="TaxesShareMonth<7"></el-input>
</el-form-item></el-col>
<el-col :span="5" >
<el-form-item label="八月:">
<el-input v-model="msgTaxesShare.Month8" @keyup.native="checkPrice(msgTaxesShare,'Month8')":disabled="TaxesShareMonth<8"></el-input>
</el-form-item></el-col>
<el-col :span="5" >
<el-form-item label="九月:">
<el-input v-model="msgTaxesShare.Month9" @keyup.native="checkPrice(msgTaxesShare,'Month9')" :disabled="TaxesShareMonth<9"></el-input>
</el-form-item></el-col>
<el-col :span="5" >
<el-form-item label="十月:">
<el-input v-model="msgTaxesShare.Month10" @keyup.native="checkPrice(msgTaxesShare,'Month10')" :disabled="TaxesShareMonth<10"></el-input>
</el-form-item></el-col>
<el-col :span="5" >
<el-form-item label="十一月:">
<el-input v-model="msgTaxesShare.Month11" @keyup.native="checkPrice(msgTaxesShare,'Month11')" :disabled="TaxesShareMonth<11"></el-input>
</el-form-item></el-col>
<el-col :span="5" >
<el-form-item label="十二月:">
<el-input v-model="msgTaxesShare.Month12" @keyup.native="checkPrice(msgTaxesShare,'Month12')" :disabled="TaxesShareMonth<12"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- <div class="page_EasyReport_export">
<button class="normalBtn " @click="getData">保存</button>
</div> -->
</div>
</el-dialog>
</div>
</template>
<script>
import Vue from "vue";
......@@ -506,6 +586,7 @@ Vue.component("ShiErYueJump", {
export default {
data() {
return {
IsShowTaxesShare:false,
year: '',
monthList: [],
msg: {
......@@ -516,6 +597,22 @@ export default {
BranchId: -1,
StandardCurrencyId: -1
},
msgTaxesShare: {
Year: '',
Month1: 0,
Month2: 0,
Month3: 0,
Month4: 0,
Month5: 0,
Month6: 0,
Month7: 0,
Month8: 0,
Month9: 0,
Month10: 0,
Month11: 0,
Month12: 0,
},
TaxesShareMonth: 12,
data: [],
DataList: [],
UpdateStaus:0,
......@@ -827,13 +924,19 @@ export default {
BranchStatus:true,
coinGetList: [],
coinGetShow: false,
isShowTaxesShareBtn: false,
}
},
created(){
var nowTime=new Date();
if (this.$route.query.year) {
this.year = this.$route.query.year
} else {
this.year = new Date().getFullYear().toString()
this.year = nowTime.getFullYear().toString()
}
if(this.year==nowTime.getFullYear().toString()){
this.TaxesShareMonth=nowTime.getMonth();
}
let arr = ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]
for (let i = 0; i < 12; i++) {
......@@ -844,6 +947,10 @@ export default {
})
}
let userInfo = this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode;
if (ActionMenuCode.indexOf('TaxesShare') != -1) {
this.isShowTaxesShareBtn = true;
}
this.userId = userInfo.EmployeeId;
},
mounted(){
......@@ -852,6 +959,56 @@ export default {
this.getCompanyList()
},
methods:{
getTaxesShareData: function (type) {
this.msg.sharelist = []
this.loading = true;
this.msg.Year = parseInt(this.year)
this.apipost('financestatistics_post_GetTaxesShareList', this.msg, res=>{
if (res.data.resultCode == 1) {
let data = res.data.data
this.msgTaxesShare.Month1=data.Month1;
this.msgTaxesShare.Month2=data.Month2;
this.msgTaxesShare.Month3=data.Month3;
this.msgTaxesShare.Month4=data.Month4;
this.msgTaxesShare.Month5=data.Month5;
this.msgTaxesShare.Month6=data.Month6;
this.msgTaxesShare.Month7=data.Month7;
this.msgTaxesShare.Month8=data.Month8;
this.msgTaxesShare.Month9=data.Month9;
this.msgTaxesShare.Month10=data.Month10;
this.msgTaxesShare.Month11=data.Month11;
this.msgTaxesShare.Month12=data.Month12;
this.loading = false
this.$forceUpdate()
return
} else {
this.loading = false
this.$message.error(res.data.message)
}
}, null)
},
saveData: function () {
this.msgTaxesShare.Year = parseInt(this.year)
this.apipost('financestatistics_post_SetTaxesShareList', this.msgTaxesShare, res=>{
if (res.data.resultCode == 1) {
this.loading = false
this.$message.success("操作成功")
this.IsShowTaxesShare=false
} else {
this.loading = false
this.IsShowTaxesShare=false
this.$message.error(res.data.message)
}
}, null)
},
TaxesShare(){ // 添加出纳按钮点击事件
this.IsShowTaxesShare=true;
this.getTaxesShareData();
},
getChange(val){
if(this.msg.BranchId == -1){
this.coinGetShow = false
......@@ -1256,6 +1413,13 @@ export default {
})
}
this.msg.Year = parseInt(this.year)
var nowTime=new Date();
if(this.year==nowTime.getFullYear().toString()){
this.TaxesShareMonth=nowTime.getMonth();
}else{
this.TaxesShareMonth=12;
}
this.apipost('financestatistics_post_GetEasyReportList', this.msg, res=>{
if (res.data.resultCode == 1) {
let BranchStatus=res.data.data.IsBranchButton;
......
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