@@ -832,7 +854,7 @@ export default {
clickRowKey: '',
activeTabs: '元数据属性',
tabItem: ['元数据属性', '固定值'],
- arithmeticArr: ['+', '-', '*', '/', '->', '==', '(', ')', '<', '>', '<=', '>=', 'substr(,,)'],
+ arithmeticArr: ['+', '-', '*', '/', '->', '==', '(', ')', '<', '>', '<=', '>=', 'substr(,,)','if(*?:)'],
//公式text
textarea: '',
textareaEn: '',
@@ -1176,6 +1198,11 @@ export default {
prop: 'pkCashflow',
width: 150
},
+ {
+ label: '是否计算科目余额',
+ prop: 'def1',
+ width: 150
+ },
{
label: '备注',
prop: 'remark',
diff --git a/src/views/businessVoucher/index.vue b/src/views/businessVoucher/index.vue
index a419693..9bd62e4 100644
--- a/src/views/businessVoucher/index.vue
+++ b/src/views/businessVoucher/index.vue
@@ -25,7 +25,7 @@
- 查询
+ 查询
生成凭证
@@ -67,7 +67,7 @@
分录信息
-
@@ -80,12 +80,13 @@
+
@@ -144,7 +145,12 @@ import {
tempupdateAPI, typeDeleteAPI, typeSaveAPI, typeUpdateAPI
} from '@/api/apis/ItemEntryTemplate'
import { subjectClassificationqueryAllAPI } from '@/api/apis/classifyDefinition'
-import { logqueryBillAPI, coreGenerateAPI, queryDetailsByBillCodeAPI } from '@/api/apis/businessVoucher'
+import {
+ logqueryBillAPI,
+ coreGenerateAPI,
+ queryDetailsByBillCodeAPI,
+ queryBillFiledsAPI, queryBillPageddsAPI, queryBillPagedAPI, queryDetailsByBillCodeAndMdmIdAPI
+} from '@/api/apis/businessVoucher'
import customFormDialog from './compoments/customFormDialog'
import assistTableDialog from './compoments/assistTableDialog'
@@ -218,7 +224,7 @@ export default {
clickRowKey: '',
activeTabs: '元数据属性',
tabItem: ['元数据属性', '固定值'],
- arithmeticArr: ['+', '-', '*', '/', '->', '==', '(', ')', '<', '>', '<=', '>=', 'substr(,,)'],
+ arithmeticArr: ['+', '-', '*', '/', '->', '==', '(', ')', '<', '>', '<=', '>=', 'substr(,,)','if(*?:)'],
//公式text
textarea: '',
textareaEn: '',
@@ -245,26 +251,42 @@ export default {
prop: 'voucherNo',
width: 100
},
+ {
+ label: '会计科目',
+ prop: 'subjdispname',
+ width: 100
+ },
+ {
+ label: '辅助核算',
+ prop: 'assist',
+ width: 100
+ },
{
label: '摘要',
prop: 'abstractStr',
- width: 160
+ width: 100
},
{
- label: '借方',
- prop: 'jYbSum',
- width: 120
+ label: '借方本币金额',
+ prop: 'jbbSum',
+ width: 100
},
{
- label: '贷方',
- prop: 'dYbSum',
- width: 120
+ label: '借方原币金额',
+ prop: 'jybSum',
+ width: 100
},
{
- label: '操作',
- prop: 'operate',
- width: 160
- }
+ label: '贷方本币金额',
+ prop: 'dbbSum',
+ width: 100
+ },
+ {
+ label: '贷方原币金额',
+ prop: 'dybSum',
+ width: 100
+ },
+
],
billTypeClickCode: '',
masterTableData: [],
@@ -520,17 +542,14 @@ export default {
pageModel: {
page: 1, //当前页码
limit: 20, //每页显示多少
- prop7: '',
- propValue7: '',
- prop8: '',
- propValue8: ''
+ total: 0
},
selected: [],
treeSelect: [],
tableColumn: [
{
label: '单据号',
- prop: 'billCode'
+ prop: 'bill_code'
},
{
label: '单据日期',
@@ -631,11 +650,11 @@ export default {
async coreData(date) {
let arr = []
this.checkBoxList.forEach(item => {
- arr.push(item.billCode)
+ arr.push(item.bill_code)
})
let params = {
mdmId: this.billTypeClickID,
- billCode: arr.join(','),
+ bill_code: arr.join(','),
targetDate: date
}
this.openLoading()
@@ -645,43 +664,6 @@ export default {
this.resetTable()
}
},
- async ixedValueFormelDialogClick(row) {
- if (row.label === '参照') {
- this.fixedValuelDialogClick(false)
- } else {
- if (!this.fixedValueClickRow.namefieldname) {
- this.$vmNews('请选择参照值')
- return
- }
-
- this.addTableColumn2 = [
- {
- label: '名称',
- prop: this.fixedValueClickRow.namefieldname
- },
- {
- label: '编码',
- prop: this.fixedValueClickRow.codefieldname
- }
-
- ]
- this.addDialog = true
- this.addTiTle = this.fixedValueClickRow.dbName
- this.pageModel.propValue7 = ''
- this.pageModel.propValue8 = ''
- this.pageModel.prop7 = ''
- this.pageModel.prop8 = ''
- this.getAddTableData()
- }
- },
- getTableAddList(val) {
- // console.log(val, 'val', this.fixedValueClickRow)
- this.pageModel.propValue7 = val
- this.pageModel.propValue8 = val
- this.pageModel.prop7 = this.fixedValueClickRow.codefieldname
- this.pageModel.prop8 = this.fixedValueClickRow.namefieldname
- this.getAddTableData()
- },
addPickDialog() {
if (!this.$refs.baseChoice2.optionData[this.fixedValueClickRow.namefieldname]) {
this.$vmNews('请选择一条数据')
@@ -696,21 +678,6 @@ export default {
// console.log(this.clickRow, 'this.clickRow')
this.addDialog = false
},
- async getAddTableData() {
- const res = await queryDataPagedByMapAPI({
- ...this.pageModel,
- pageNum: this.pageModel.page,
- pageSize: this.pageModel.limit,
- tablename: this.fixedValueClickRow.tablename,
- pkentityorg: this.pkglbookClickObj.pkentityorg
- })
- this.$refs.baseChoice2.pageModel.total = res.attribute.total
- this.addTableData2 = res.attribute.list
- },
- addonQuery(res, pageModel) {
- this.pageModel = pageModel
- this.getAddTableData()
- },
//超级转换器!
transitionRowHandle(item) {
let obj = item
@@ -1420,25 +1387,43 @@ export default {
},
pageChange(model) {
- this.pageModel.page = model.page
- this.pageModel.limit = model.limit
+ console.log(model, 'model')
+ // this.pageModel.page = model.page
+ // this.pageModel.limit = model.limit
this.getTableData()
},
async getTableData() {
this.assistTableData = []
if (!this.billTypeClickID) return
- const res = await logqueryBillAPI({
- ...this.searchObjTable,
+ const res2 = await queryBillFiledsAPI({
mdmId: this.billTypeClickID
})
- this.tableData = res.attribute
+ this.tableColumn = []
+ res2.attribute.listList.forEach(item => {
+ item.label = item.chName
+ item['prop'] = item.enName
+ item.ruleList.forEach(ele => {
+ item[ele.ruleCode] = ele.ruleValue
+ })
+ })
+ this.tableColumn = res2.attribute.listList
+ console.log(this.tableColumn, 'this.tableColumn')
+ const res = await queryBillPagedAPI({
+ ...this.searchObjTable,
+ mdmId: this.billTypeClickID,
+ pageNum: this.pageModel.page,
+ pageSize: this.pageModel.limit
+ })
+ console.log(res, '?')
+ this.tableData = res.attribute.list
+ this.pageModel.total = res.attribute.total
this.$nextTick(() => {
this.$refs.customtable.clearRadioIndex()
- this.$refs.customtable.clearSelection()
this.$refs.customtable.clearSelect()
this.selected = []
this.checkBoxList = []
})
+
},
resetTable() {
this.tableData = []
@@ -1447,10 +1432,20 @@ export default {
this.getTableData()
},
// 点击某条数据
- radioChange(val) {
+ async radioChange(val) {
+ console.log(val, '?')
+ this.openLoading()
+ const res = await queryDetailsByBillCodeAndMdmIdAPI({
+ mdmId: this.billTypeClickID,
+ bill_code: val.bill_code
+ })
+ this.$set(val, 'logList', res.attribute)
+ // console.log(res, '?')
this.selected = []
this.selected.push(val)
+
console.log(val.logList, '?val.assistEntityList')
+
let row = {
props: {
children: 'sublistMdmModuleDbFileds',
@@ -1835,6 +1830,10 @@ export default {
diff --git a/src/views/relevance/index.vue b/src/views/relevance/index.vue
index 52e08ab..882da6c 100644
--- a/src/views/relevance/index.vue
+++ b/src/views/relevance/index.vue
@@ -421,7 +421,7 @@ export default {
clickRowKey: '',
activeTabs: '元数据属性',
tabItem: ['元数据属性', '固定值'],
- arithmeticArr: ['+', '-', '*', '/', '->', '==', '(', ')', '<', '>', '<=', '>=', 'substr(,,)'],
+ arithmeticArr: ['+', '-', '*', '/', '->', '==', '(', ')', '<', '>', '<=', '>=', 'substr(,,)','if(*?:)'],
fixedValueForm: [
{
elCol: [
diff --git a/vue.config.js b/vue.config.js
index 1e7fe72..a604ff7 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -41,9 +41,9 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: {
// target: `http://hzya.ufyct.com:9067/`,
// target: `http://127.0.0.1:9081/`,
- // target: `http://192.168.2.189:10086`,//一凡
+ target: `http://192.168.2.189:10086`,//一凡
// target: `http://192.168.2.78:8080`,
- target: `http://b8bc6e8e.natappfree.cc`,
+ // target: `http://b8bc6e8e.natappfree.cc`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''