Explorar el Código

修复多数据切换时显示问题

master
王饶冀 hace 2 años
padre
commit
bbd31f6f88

+ 1
- 1
digital-park-web/digital-park/src/views/my-related/business/Business.vue Ver fichero

@@ -272,7 +272,7 @@ export default {
// 所有税收信息
allTaxInfo: {},
// 当前公司税收信息
companyTaxInfo: {},
companyTaxInfo: [],
taxInfoLoading: false,
// 公司标签
comanyTags: [],

+ 27
- 22
digital-park-web/digital-park/src/views/my-related/business/TaxQuery/index.vue Ver fichero

@@ -34,17 +34,16 @@
</div>
</div>
</el-form>
<EmptyData :ifShowDescription="true" v-else/>
<EmptyData :ifShowDescription="true" v-else />
</div>
</template>

<script>
import "./index.scss";
import EmptyData from "@components/EmptyData.vue";
export default {
components:{
EmptyData
components: {
EmptyData,
},
props: {
// 税收信息
@@ -63,7 +62,7 @@ export default {
getTaxInfoList(newV, oldV) {
// do something
// console.log(newV, oldV);
if(newV && newV.length > 0){
if (newV) {
this.initData(newV);
}
},
@@ -87,7 +86,7 @@ export default {
],
},
{
label: "企业所得税",
label: "企业所得税信息",
field: [
{
fieldName: "企业所得税本月(元)",
@@ -140,19 +139,19 @@ export default {
fieldCode: "tudishiyongshuileiji",
},
{
fieldName: "房税本月(元)",
fieldName: "房税本月(元)",
fieldCode: "fangchanshuibenyue",
},
{
fieldName: "房税累计(元)",
fieldName: "房税累计(元)",
fieldCode: "fangchanshuileiji",
},
{
fieldName: "其他税本月(元)",
fieldName: "其他税本月(元)",
fieldCode: "qitageshuibenyue",
},
{
fieldName: "其他税累计(元)",
fieldName: "其他税累计(元)",
fieldCode: "qitageshuileiji",
},
],
@@ -168,15 +167,15 @@ export default {
fieldName: "合计累计(元)",
fieldCode: "hejileiji",
},
{
fieldName: "增幅额度(元)",
fieldCode: "zengfuedu",
},
{
fieldName: "累计同比情况上年同期累计(元)",
fieldCode:
"leijitongbiqingkuangshangniantongqileiji",
},
{
fieldName: "增幅额度(元)",
fieldCode: "zengfuedu",
},
],
},
],
@@ -191,16 +190,22 @@ export default {
// console.log(this.$cloneDeep(this.cutTaxInfo),'当前月份的税收信息')
// }
},
methods:{
initData(newV){
this.options = this.$cloneDeep(newV);
this.cutTaxInfo = this.$cloneDeep(this.options[0]);
this.value = this.cutTaxInfo.nianduyuefen;
console.log(this.value,'111');
methods: {
initData(newV) {
this.options = [];
this.cutTaxInfo = {};
this.value = "";
if (newV.length > 0) {
this.options = this.$cloneDeep(newV);
this.cutTaxInfo = this.$cloneDeep(this.options[0]);
this.value = this.cutTaxInfo.nianduyuefen;
}
},
// 时间切换
dateChage(v){
this.cutTaxInfo = this.options.filter(res => res.nianduyuefen == v)[0];
dateChage(v) {
this.cutTaxInfo = this.options.filter(
(res) => res.nianduyuefen == v
)[0];
},
},
};

Cargando…
Cancelar
Guardar