diff --git a/src/api/apis/businessVoucher.js b/src/api/apis/businessVoucher.js index 5e02760..9aa27e0 100644 --- a/src/api/apis/businessVoucher.js +++ b/src/api/apis/businessVoucher.js @@ -7,3 +7,19 @@ export function logqueryBillAPI(data) { data, }); } +// 生成 +export function coreGenerateAPI(data) { + return request({ + url: "/kangarooDataCenterV3/ae/core/generate", + method: "post", + data, + }); +} +// 凭证明细查询 +export function queryDetailsByBillCodeAPI(data) { + return request({ + url: "/kangarooDataCenterV3/ae/push/log/queryDetailsByBillCode", + method: "post", + data, + }); +} diff --git a/src/components/base/baseTable/index.vue b/src/components/base/baseTable/index.vue index 2b7d85a..c19ec20 100644 --- a/src/components/base/baseTable/index.vue +++ b/src/components/base/baseTable/index.vue @@ -110,6 +110,10 @@ color: item.color ? item.color : '#333', cursor: item.isClick ? 'pointer' : 'default', }" + :title="!item.stateOption + ? scope.row[item.prop] + : item.stateOption[scope.row[item.prop]]" + class='multipleLines_one' >{{ !item.stateOption ? scope.row[item.prop] @@ -571,6 +575,15 @@ export default { ::v-deep .el-table--border { border: none; } +.multipleLines_one { + overflow: hidden; + text-overflow: ellipsis; + -webkit-line-clamp: 1; + display: -webkit-box !important; + -webkit-box-orient: vertical; + word-break: break-all; + white-space: pre-line; +} // ::v-deep .el-table .sort-caret.ascending { // top: 1px // } diff --git a/src/views/ItemEntryTemplate/index.vue b/src/views/ItemEntryTemplate/index.vue index be0c4d8..0609f02 100644 --- a/src/views/ItemEntryTemplate/index.vue +++ b/src/views/ItemEntryTemplate/index.vue @@ -71,6 +71,19 @@ +
+ 凭证类别: +

{{typeMerge == 'Y'?'合并':typeMerge == 'N'?'拆分':''}}

+ + +
@@ -1168,8 +1181,8 @@ export default { billTreeProps: { children: 'sublistMdmModuleDbFileds', label: 'name' - } - + }, + typeMerge:'' } }, methods: { @@ -1217,7 +1230,7 @@ export default { } let obj =this.$refs.baseChoice2.optionData this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'recordData', obj[this.fixedValueClickRow.namefieldname]) - this.textarea += `@@${this.fixedValueClickRow.dbName}:${this.fixedValueClickRow.tablepkname}=${obj[this.fixedValueClickRow.tablepkname]}` + this.textarea += `@@$${this.fixedValueClickRow.dbName}:${this.fixedValueClickRow.tablepkname}=${obj[this.fixedValueClickRow.tablepkname]}` // this.$set(this.clickRow, `factorid${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.key]) // this.$set(this.clickRow, `factorname${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.labelKey]) // this.$set(this.clickRow, `factorpk${this.clickNum}`, this.$refs.baseChoice.optionData['id']) @@ -1341,8 +1354,14 @@ export default { } }) }) + let tableData = this.tableData.map(el=>{ + return{ + ...el, + typeMerge:this.typeMerge + } + }) console.log(this.tableData, 'this.tableData') - const res = await confTempSaveAPI(this.tableData) + const res = await confTempSaveAPI(tableData) this.$vmNews('保存成功', 'success') this.editFlag = false this.getTableData() @@ -1965,6 +1984,7 @@ export default { templateTypeId: this.voucherClickId//20250704 }) this.tableData = res.attribute + this.typeMerge = this.tableData[0].typeMerge this.$nextTick(() => { this.$refs.customtable.clearRadioIndex() this.$refs.customtable.clearSelection() @@ -2098,7 +2118,8 @@ export default { glOrgbookName: this.pkglbookClickObj.glorgbookname, currencyFieArr: [], assistEntityList: [], - templateTypeId: this.voucherClickId + templateTypeId: this.voucherClickId, + typeMerge:this.typeMerge } this.tableData.push(obj) return diff --git a/src/views/accountingSubject/compoments/treePickDialog.vue b/src/views/accountingSubject/compoments/treePickDialog.vue index 55bc49a..7962e5b 100644 --- a/src/views/accountingSubject/compoments/treePickDialog.vue +++ b/src/views/accountingSubject/compoments/treePickDialog.vue @@ -10,7 +10,12 @@ @handleConfirmClick="billClickHandle" >
+
+ + 搜索 +
+ { diff --git a/src/views/accountingSubject/index.vue b/src/views/accountingSubject/index.vue index e71d658..131567e 100644 --- a/src/views/accountingSubject/index.vue +++ b/src/views/accountingSubject/index.vue @@ -267,7 +267,7 @@ @handleConfirmClick="addPickDialog" >
-
@@ -450,12 +450,23 @@ export default { passwordDialogShow: false, passwordDialogTitle: '新增', billTypeADDName: '', - billTypeADDID: '' + billTypeADDID: '', + bdInfoRow:{} } }, methods: { - getTableAddList(val){ - + async getTableAddList(val){ + let params = { + tablename:this.bdInfoRow.tablename, + prop7:this.bdInfoRow.codefieldname, + propValue7:val, + prop8:this.bdInfoRow.namefieldname, + propValue8:val, + } + let res = await queryDataByMapAPI(params) + this.addTableData = [] + this.addTableData = res.attribute.list + }, handleNodeClick(node) { console.log(node, '?') @@ -522,13 +533,23 @@ export default { this.addDialog = true this.getAddTableData() }, - async getAddTableData() { - const res = await queryDataPagedByMapAPI({ - pageNum: this.pageModel.page, - pageSize: this.pageModel.limit, - tablename: this.clickObj.factortable, - pkentityorg: this.nameClickRow.pkentityorg, - }) + async getAddTableData(val = false) { + let params = { + pageNum: this.pageModel.page, + pageSize: this.pageModel.limit, + tablename: this.clickObj.factortable, + pkentityorg: this.nameClickRow.pkentityorg, + } + if(val){ + this.pageModel.page = 1 + params.tablename=this.bdInfoRow.tablename + params.prop7=this.bdInfoRow.codefieldname + params.propValue7=val + params.prop8=this.bdInfoRow.namefieldname + params.propValue8=val + } + const res = await queryDataPagedByMapAPI(params) + console.log(res, 'res??') this.$refs.baseChoice.pageModel.total = res.attribute.total this.addTableData = res.attribute.list @@ -563,6 +584,7 @@ export default { const res = await queryBdinfoListAPI({ pkBdinfo: id }) + this.bdInfoRow = res.attribute[0] //转大写 //value 编码 let key = res.attribute[0].codefieldname diff --git a/src/views/businessVoucher/compoments/assistTableDialog.vue b/src/views/businessVoucher/compoments/assistTableDialog.vue new file mode 100644 index 0000000..708e386 --- /dev/null +++ b/src/views/businessVoucher/compoments/assistTableDialog.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/src/views/businessVoucher/compoments/customFormDialog.vue b/src/views/businessVoucher/compoments/customFormDialog.vue new file mode 100644 index 0000000..471052f --- /dev/null +++ b/src/views/businessVoucher/compoments/customFormDialog.vue @@ -0,0 +1,82 @@ + + + + + \ No newline at end of file diff --git a/src/views/businessVoucher/index.vue b/src/views/businessVoucher/index.vue index e3675f6..c66e27e 100644 --- a/src/views/businessVoucher/index.vue +++ b/src/views/businessVoucher/index.vue @@ -60,11 +60,11 @@ @radioChange="radioChange" id="printMe" > @@ -72,16 +72,23 @@
+ +
@@ -122,11 +129,12 @@ import { tempupdateAPI, typeDeleteAPI, typeSaveAPI, typeUpdateAPI } from '@/api/apis/ItemEntryTemplate' import { subjectClassificationqueryAllAPI } from '@/api/apis/classifyDefinition' -import { logqueryBillAPI } from '@/api/apis/businessVoucher' - +import { logqueryBillAPI,coreGenerateAPI,queryDetailsByBillCodeAPI } from '@/api/apis/businessVoucher' +import customFormDialog from './compoments/customFormDialog' +import assistTableDialog from './compoments/assistTableDialog' export default { name: 'recordContrast', - components: { baseDialog, baseChoice, basePage, baseTable, baseRightDialog, baseForm, baseTree }, + components: { baseDialog, baseChoice, basePage, baseTable, baseRightDialog, baseForm, baseTree,customFormDialog,assistTableDialog }, data() { return { searchObjTable: {}, @@ -192,36 +200,41 @@ export default { assistTableColumn: [ { label: '账簿', - prop: 'mdmName' + prop: 'glOrgbookName' }, { label: '单据日期', - prop: 'fieldName', - width: 150 + prop: 'billDate', + width: 120 }, { label: '凭证类别', - prop: 'remark', - width: 150 + prop: 'voucherTypeName', + width: 120 }, { label: '凭证号', - prop: 'operation', + prop: 'voucherNo', width: 100 }, { label: '摘要', - prop: 'operation', + prop: 'abstractStr', width: 160 }, { label: '借方', - prop: 'operation', - width: 160 + prop: 'jYbSum', + width: 120 }, { label: '贷方', - prop: 'operation', + prop: 'dYbSum', + width: 120 + }, + { + label: '操作', + prop: 'operate', width: 160 }, ], @@ -494,12 +507,12 @@ export default { { label: '单据日期', prop: 'billDate', - width: 251 + width: 120 }, { label: '生成状态', prop: 'billStatus', - width: 300 + width: 120 }, { label: '推送信息', @@ -549,9 +562,29 @@ export default { }, methods: { //生成方法 - generateHandle(row) { - + async generateHandle(row) { + if(row.billStatus == 'Y'){ + this.$refs.customFormDialog.openDialog(row) + }else{ + this.coreData(row) + } }, + async expandOperate(row){ + this.$refs.assistTableDialog.openDialog(row) + // let res= await queryDetailsByBillCodeAPI({id:row.id}) + // console.log(res) + }, + async coreData(row){ + let params = { + mdmId: this.billTypeClickID, + billCode:row.billCode + } + let res = await coreGenerateAPI(params) + if(res.status == '200'){ + this.$vmNews('生成成功', 'success') + this.resetTable() + } + }, async ixedValueFormelDialogClick(row) { if (row.label === '参照') { this.fixedValuelDialogClick(false) @@ -582,7 +615,7 @@ export default { } }, getTableAddList(val) { - console.log(val, 'val', this.fixedValueClickRow) + // console.log(val, 'val', this.fixedValueClickRow) this.pageModel.propValue7 = val this.pageModel.propValue8 = val this.pageModel.prop7 = this.fixedValueClickRow.codefieldname @@ -596,7 +629,7 @@ export default { } let obj = this.$refs.baseChoice2.optionData this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'recordData', obj[this.fixedValueClickRow.namefieldname]) - this.textarea += `@@${this.fixedValueClickRow.dbName}:${this.fixedValueClickRow.tablepkname}=${obj[this.fixedValueClickRow.tablepkname]}` + this.textarea += `@@$${this.fixedValueClickRow.dbName}:${this.fixedValueClickRow.tablepkname}=${obj[this.fixedValueClickRow.tablepkname]}` // this.$set(this.clickRow, `factorid${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.key]) // this.$set(this.clickRow, `factorname${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.labelKey]) // this.$set(this.clickRow, `factorpk${this.clickNum}`, this.$refs.baseChoice.optionData['id']) @@ -678,7 +711,7 @@ export default { }) this.voucherList = res.attribute - console.log(res, 'res') + // console.log(res, 'res') }, async voucherDialogClickHandle() { @@ -1341,7 +1374,7 @@ export default { this.tableData = res.attribute this.$nextTick(() => { this.$refs.customtable.clearRadioIndex() - this.$refs.customtable.clearSelection() + // this.$refs.customtable.clearSelection() this.selected = [] }) }, @@ -1355,7 +1388,7 @@ export default { radioChange(val) { this.selected = [] this.selected.push(val) - console.log(val.assistEntityList, '?val.assistEntityList') + console.log(val.logList, '?val.assistEntityList') let row = { props: { children: 'sublistMdmModuleDbFileds', @@ -1363,12 +1396,12 @@ export default { value: 'id' } } - val.assistEntityList.forEach(item => { + val.logList.forEach(item => { console.log(item.fieldId, 'item.fieldId') item.fieldArr = item.fieldId ? this.searchIDHandle(item.fieldId, this.propertyTree, row) : [] console.log(item.fieldArr, '?fieldArr', item, this.propertyTree) }) - this.assistTableData = val.assistEntityList ? val.assistEntityList : [] + this.assistTableData = val.logList ? val.logList : [] }, // 删除 diff --git a/src/views/classifyDefinition/index.vue b/src/views/classifyDefinition/index.vue index 5edb70a..2ff01c7 100644 --- a/src/views/classifyDefinition/index.vue +++ b/src/views/classifyDefinition/index.vue @@ -160,7 +160,7 @@ >
@@ -350,7 +350,8 @@ export default { passwordDialogTitle: '新增', billTypeADDName: '', billTypeADDID: '', - contrastClickObj: {} + contrastClickObj: {}, + bdInfoRow: {}, } }, methods: { @@ -428,12 +429,21 @@ export default { this.addDialog = true this.getAddTableData() }, - async getAddTableData() { - const res = await queryDataPagedByMapAPI({ - pageNum: this.pageModel.page, - pageSize: this.pageModel.limit, - tablename: this.clickObj.factortable - }) + async getAddTableData(val = false) { + let params = { + pageNum: this.pageModel.page, + pageSize: this.pageModel.limit, + tablename: this.clickObj.factortable + } + if(val){ + this.pageModel.page = 1 + params.tablename=this.bdInfoRow.tablename + params.prop7=this.bdInfoRow.codefieldname + params.propValue7=val + params.prop8=this.bdInfoRow.namefieldname + params.propValue8=val + } + const res = await queryDataPagedByMapAPI(params) console.log(res, 'res??') this.$refs.baseChoice.pageModel.total = res.attribute.total this.addTableData = res.attribute.list @@ -468,6 +478,7 @@ export default { const res = await queryBdinfoListAPI({ pkBdinfo: id }) + this.bdInfoRow = res.attribute[0] //转大写 //value 编码 let key = res.attribute[0].codefieldname @@ -768,34 +779,37 @@ export default { async radioChange(row) { this.selected = [] this.selected.push(row) - this.masterTableData2 = row.contrastBEntityList + this.masterTableData2 = row.contrastBEntityList || [] + console.log(row,213131) let arr = [ { label: '来源组织', prop: 'glorgname' } ] + if(row.factorids){ + for (let i = 0; i < row.factorids.split(',').length; i++) { + let item = row.factornames.split(',')[i] + let id = row.factorids.split(',')[i] + let num = i + 1 + // this.openLoading() + // const res = await queryBdinfoListAPI({ + // pkBdinfo: id + // }) + //转大写 + // let key = res.attribute[0].codefieldname + // let labelKey = res.attribute[0].namefieldname + let obj = { + label: item, + prop: 'factorname' + num, + tag: 'elSelect', + options: [] + } + arr.push(obj) + + } + } - for (let i = 0; i < row.factorids.split(',').length; i++) { - let item = row.factornames.split(',')[i] - let id = row.factorids.split(',')[i] - let num = i + 1 - // this.openLoading() - // const res = await queryBdinfoListAPI({ - // pkBdinfo: id - // }) - //转大写 - // let key = res.attribute[0].codefieldname - // let labelKey = res.attribute[0].namefieldname - let obj = { - label: item, - prop: 'factorname' + num, - tag: 'elSelect', - options: [] - } - arr.push(obj) - - } arr.push( { label: '会计科目', diff --git a/src/views/relevance/index.vue b/src/views/relevance/index.vue index be9c261..c4030cd 100644 --- a/src/views/relevance/index.vue +++ b/src/views/relevance/index.vue @@ -579,7 +579,7 @@ export default { } let obj = this.$refs.baseChoice2.optionData this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'recordData', obj[this.fixedValueClickRow.namefieldname]) - this.textarea += `@@${this.fixedValueClickRow.dbName}:${this.fixedValueClickRow.tablepkname}=${obj[this.fixedValueClickRow.tablepkname]}` + this.textarea += `@@$${this.fixedValueClickRow.dbName}:${this.fixedValueClickRow.tablepkname}=${obj[this.fixedValueClickRow.tablepkname]}` // this.$set(this.clickRow, `factorid${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.key]) // this.$set(this.clickRow, `factorname${this.clickNum}`, this.$refs.baseChoice.optionData[this.clickObj.labelKey]) // this.$set(this.clickRow, `factorpk${this.clickNum}`, this.$refs.baseChoice.optionData['id'])