|
@@ -64,6 +64,7 @@
|
|
|
import {mapGetters} from "vuex";
|
|
|
import finvouchersitems from "@/views/iosBasicData/finvouchers/finvouchersitems.vue";
|
|
|
import finstlbillsDetails from "@/views/iosBasicData/finstlbills/finstlbillsDetails.vue";
|
|
|
+ import {getWorkDicts} from "@/api/system/dictbiz";
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -178,6 +179,7 @@
|
|
|
prop: "isForeign",
|
|
|
search: true,
|
|
|
type:'select',
|
|
|
+ dicData:[],
|
|
|
dicUrl: "/api/blade-system/dict-biz/dictionary?code=ifInvoice",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
@@ -190,6 +192,7 @@
|
|
|
prop: "isQuantity",
|
|
|
search: true,
|
|
|
type:'select',
|
|
|
+ dicData:[],
|
|
|
dicUrl: "/api/blade-system/dict-biz/dictionary?code=ifInvoice",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
@@ -222,6 +225,7 @@
|
|
|
prop: "voucherStatus",
|
|
|
search: true,
|
|
|
type:'select',
|
|
|
+ dicData:[],
|
|
|
dicUrl: "/api/blade-system/dict-biz/dictionary?code=voucher_status_los",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
@@ -260,8 +264,21 @@
|
|
|
},
|
|
|
async created() {
|
|
|
this.option = await this.getColumnData(this.getColumnName(321), this.optionBack);
|
|
|
+ this.voucherStatusWorkDictsfun()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取字典数据
|
|
|
+ voucherStatusWorkDictsfun(){
|
|
|
+ getWorkDicts("voucher_status_los").then(res => {
|
|
|
+ this.findObject(this.option.column, "voucherStatus").dicData = res.data.data;
|
|
|
+ })
|
|
|
+ // 是否字典
|
|
|
+ getWorkDicts("ifInvoice").then(res => {
|
|
|
+ this.findObject(this.option.column, "isForeign").dicData = res.data.data;
|
|
|
+ this.findObject(this.option.column, "isQuantity").dicData = res.data.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
// 凭证记账
|
|
|
voucherAccountingfun(){
|
|
|
if (this.selectionList.length === 0) {
|
|
@@ -398,7 +415,12 @@
|
|
|
finvouchersList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
|
|
const data = res.data.data;
|
|
|
this.page.total = data.total;
|
|
|
- this.data = data.records;
|
|
|
+ this.data = data.records.map(item=>{
|
|
|
+ item.isForeign = item.isForeign + ''
|
|
|
+ item.isQuantity = item.isQuantity + ''
|
|
|
+ item.voucherStatus = item.voucherStatus + ''
|
|
|
+ return item
|
|
|
+ })
|
|
|
this.loading = false;
|
|
|
this.selectionClear();
|
|
|
});
|