会计事项平台更新
This commit is contained in:
parent
b614d7555d
commit
83c1a7788e
|
@ -152,12 +152,24 @@
|
|||
<!-- 币种 -->
|
||||
<template #currencyFieldName="{row}">
|
||||
<div v-if="editFlag">
|
||||
<el-cascader class="w-100" v-model="row.row.currencyFieArr" :options="treeSelect"
|
||||
:props="treePropsproperty"
|
||||
@change="currencyFieArrChangeHandle(row.row.currencyFieArr,row.row)"
|
||||
>
|
||||
<!-- <el-cascader class="w-100" v-model="row.row.currencyFieArr" :options="treeSelect"-->
|
||||
<!-- :props="treePropsproperty"-->
|
||||
<!-- @change="currencyFieArrChangeHandle(row.row.currencyFieArr,row.row)"-->
|
||||
<!-- >-->
|
||||
|
||||
</el-cascader>
|
||||
<!-- </el-cascader>-->
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.currencyFieldName,'currencyFieldName')"
|
||||
style="height: 50px;"
|
||||
>
|
||||
<p :style="{ color: row.row.currencyFieldName ? '#000' : '#c0c4cc' }" class="showText"
|
||||
>{{
|
||||
row.row.currencyFieldName ? row.row.currencyFieldName :
|
||||
'请点击选择'
|
||||
}}
|
||||
</p>
|
||||
<i class="el-icon-more "
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ row.row.currencyFieldName }}
|
||||
|
@ -166,7 +178,19 @@
|
|||
<!-- 汇率-->
|
||||
<template #exchangeRate="{row}">
|
||||
<div v-if="editFlag">
|
||||
<el-input v-model="row.row.exchangeRate"></el-input>
|
||||
<!-- <el-input v-model="row.row.exchangeRate"></el-input>-->
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.exchangeRate,'exchangeRate')"
|
||||
style="height: 50px;"
|
||||
>
|
||||
<p :style="{ color: row.row.exchangeRate ? '#000' : '#c0c4cc' }" class="showText"
|
||||
>{{
|
||||
row.row.exchangeRate ? row.row.exchangeRate :
|
||||
'请点击选择'
|
||||
}}
|
||||
</p>
|
||||
<i class="el-icon-more "
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ row.row.exchangeRate }}
|
||||
|
@ -175,12 +199,24 @@
|
|||
<!-- 借方数量 -->
|
||||
<template #jNumFieldName="{row}">
|
||||
<div v-if="editFlag">
|
||||
<el-cascader class="w-100" v-model="row.row.jNumFieArr" :options="treeSelect"
|
||||
:props="treePropsproperty"
|
||||
@change="jNumFieArrChangeHandle(row.row.jNumFieArr,row.row)"
|
||||
>
|
||||
<!-- <el-cascader class="w-100" v-model="row.row.jNumFieArr" :options="treeSelect"-->
|
||||
<!-- :props="treePropsproperty"-->
|
||||
<!-- @change="jNumFieArrChangeHandle(row.row.jNumFieArr,row.row)"-->
|
||||
<!-- >-->
|
||||
|
||||
</el-cascader>
|
||||
<!-- </el-cascader>-->
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.jNumFieldName,'jNumFieldName')"
|
||||
style="height: 50px;"
|
||||
>
|
||||
<p :style="{ color: row.row.jNumFieldName ? '#000' : '#c0c4cc' }" class="showText"
|
||||
>{{
|
||||
row.row.jNumFieldName ? row.row.jNumFieldName :
|
||||
'请点击选择'
|
||||
}}
|
||||
</p>
|
||||
<i class="el-icon-more "
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ row.row.jNumFieldName }}
|
||||
|
@ -189,12 +225,24 @@
|
|||
<!-- 原币借方发生额-->
|
||||
<template #jYbSumFieldName="{row}">
|
||||
<div v-if="editFlag">
|
||||
<el-cascader class="w-100" v-model="row.row.jYbSumFieArr" :options="treeSelect"
|
||||
:props="treePropsproperty"
|
||||
@change="jYbSumFieArrChangHandle(row.row.jYbSumFieArr,row.row)"
|
||||
>
|
||||
<!-- <el-cascader class="w-100" v-model="row.row.jYbSumFieArr" :options="treeSelect"-->
|
||||
<!-- :props="treePropsproperty"-->
|
||||
<!-- @change="jYbSumFieArrChangHandle(row.row.jYbSumFieArr,row.row)"-->
|
||||
<!-- >-->
|
||||
|
||||
</el-cascader>
|
||||
<!-- </el-cascader>-->
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.jYbSumFieldName,'jYbSumFieldName')"
|
||||
style="height: 50px;"
|
||||
>
|
||||
<p :style="{ color: row.row.jYbSumFieldName ? '#000' : '#c0c4cc' }" class="showText"
|
||||
>{{
|
||||
row.row.jYbSumFieldName ? row.row.jYbSumFieldName :
|
||||
'请点击选择'
|
||||
}}
|
||||
</p>
|
||||
<i class="el-icon-more "
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ row.row.jYbSumFieldName }}
|
||||
|
@ -203,11 +251,23 @@
|
|||
<!-- 本币借方发生额-->
|
||||
<template #jBbSumFieldName="{row}">
|
||||
<div v-if="editFlag">
|
||||
<el-cascader class="w-100" v-model="row.row.jBbSumFieArr" :options="treeSelect"
|
||||
:props="treePropsproperty"
|
||||
@change="jBbSumFieArrChangeHandle(row.row.jBbSumFieArr,row.row)"
|
||||
<!-- <el-cascader class="w-100" v-model="row.row.jBbSumFieArr" :options="treeSelect"-->
|
||||
<!-- :props="treePropsproperty"-->
|
||||
<!-- @change="jBbSumFieArrChangeHandle(row.row.jBbSumFieArr,row.row)"-->
|
||||
<!-- >-->
|
||||
<!-- </el-cascader>-->
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.jBbSumFieldName,'jBbSumFieldName')"
|
||||
style="height: 50px;"
|
||||
>
|
||||
</el-cascader>
|
||||
<p :style="{ color: row.row.jBbSumFieldName ? '#000' : '#c0c4cc' }" class="showText"
|
||||
>{{
|
||||
row.row.jBbSumFieldName ? row.row.jBbSumFieldName :
|
||||
'请点击选择'
|
||||
}}
|
||||
</p>
|
||||
<i class="el-icon-more "
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ row.row.jBbSumFieldName }}
|
||||
|
@ -216,11 +276,23 @@
|
|||
<!-- 货方数量-->
|
||||
<template #dNumFieldName="{row}">
|
||||
<div v-if="editFlag">
|
||||
<el-cascader class="w-100" v-model="row.row.dNumFieArr" :options="treeSelect"
|
||||
:props="treePropsproperty"
|
||||
@change="dNumFieArrChangeHandle(row.row.dNumFieArr,row.row)"
|
||||
<!-- <el-cascader class="w-100" v-model="row.row.dNumFieArr" :options="treeSelect"-->
|
||||
<!-- :props="treePropsproperty"-->
|
||||
<!-- @change="dNumFieArrChangeHandle(row.row.dNumFieArr,row.row)"-->
|
||||
<!-- >-->
|
||||
<!-- </el-cascader>-->
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.dNumFieldName,'dNumFieldName')"
|
||||
style="height: 50px;"
|
||||
>
|
||||
</el-cascader>
|
||||
<p :style="{ color: row.row.dNumFieldName ? '#000' : '#c0c4cc' }" class="showText"
|
||||
>{{
|
||||
row.row.dNumFieldName ? row.row.dNumFieldName :
|
||||
'请点击选择'
|
||||
}}
|
||||
</p>
|
||||
<i class="el-icon-more "
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ row.row.dNumFieldName }}
|
||||
|
@ -229,11 +301,23 @@
|
|||
<!-- 原币贷方发生额-->
|
||||
<template #dYbSumFieldName="{row}">
|
||||
<div v-if="editFlag">
|
||||
<el-cascader class="w-100" v-model="row.row.dYbSumFieArr" :options="treeSelect"
|
||||
:props="treePropsproperty"
|
||||
@change="dYbSumFieArrChangeHandle(row.row.dYbSumFieArr,row.row)"
|
||||
<!-- <el-cascader class="w-100" v-model="row.row.dYbSumFieArr" :options="treeSelect"-->
|
||||
<!-- :props="treePropsproperty"-->
|
||||
<!-- @change="dYbSumFieArrChangeHandle(row.row.dYbSumFieArr,row.row)"-->
|
||||
<!-- >-->
|
||||
<!-- </el-cascader>-->
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.dYbSumFieldName,'dYbSumFieldName')"
|
||||
style="height: 50px;"
|
||||
>
|
||||
</el-cascader>
|
||||
<p :style="{ color: row.row.dYbSumFieldName ? '#000' : '#c0c4cc' }" class="showText"
|
||||
>{{
|
||||
row.row.dYbSumFieldName ? row.row.dYbSumFieldName :
|
||||
'请点击选择'
|
||||
}}
|
||||
</p>
|
||||
<i class="el-icon-more "
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ row.row.dYbSumFieldName }}
|
||||
|
@ -242,11 +326,23 @@
|
|||
<!-- 本币贷方发生额-->
|
||||
<template #dBbSumFieldName="{row}">
|
||||
<div v-if="editFlag">
|
||||
<el-cascader class="w-100" v-model="row.row.dBbSumFieArr" :options="treeSelect"
|
||||
:props="treePropsproperty"
|
||||
@change="dBbSumFieArrChangeHandle(row.row.dBbSumFieArr,row.row)"
|
||||
<!-- <el-cascader class="w-100" v-model="row.row.dBbSumFieArr" :options="treeSelect"-->
|
||||
<!-- :props="treePropsproperty"-->
|
||||
<!-- @change="dBbSumFieArrChangeHandle(row.row.dBbSumFieArr,row.row)"-->
|
||||
<!-- >-->
|
||||
<!-- </el-cascader>-->
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.dBbSumFieldName,'dBbSumFieldName')"
|
||||
style="height: 50px;"
|
||||
>
|
||||
</el-cascader>
|
||||
<p :style="{ color: row.row.dBbSumFieldName ? '#000' : '#c0c4cc' }" class="showText"
|
||||
>{{
|
||||
row.row.dBbSumFieldName ? row.row.dBbSumFieldName :
|
||||
'请点击选择'
|
||||
}}
|
||||
</p>
|
||||
<i class="el-icon-more "
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ row.row.dBbSumFieldName }}
|
||||
|
@ -257,7 +353,9 @@
|
|||
<!-- 摘要-->
|
||||
<template #abstractRes="{row}">
|
||||
<div v-if="editFlag">
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.abstractRes)" style="height: 50px;">
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.abstractRes,'abstractRes')"
|
||||
style="height: 50px;"
|
||||
>
|
||||
<p :style="{ color: row.row.abstractRes ? '#000' : '#c0c4cc' }" class="showText"
|
||||
>{{
|
||||
row.row.abstractRes ? row.row.abstractRes :
|
||||
|
@ -275,21 +373,33 @@
|
|||
<!-- 现金项目-->
|
||||
<template #pkCashflow="{row}">
|
||||
<div v-if="editFlag">
|
||||
<el-select
|
||||
class="w-100"
|
||||
v-model="row.row.pkCashflow"
|
||||
filterable
|
||||
:clearable="true"
|
||||
placeholder="请选择"
|
||||
<!-- <el-select-->
|
||||
<!-- class="w-100"-->
|
||||
<!-- v-model="row.row.pkCashflow"-->
|
||||
<!-- filterable-->
|
||||
<!-- :clearable="true"-->
|
||||
<!-- placeholder="请选择"-->
|
||||
<!-- >-->
|
||||
<!-- <el-option-->
|
||||
<!-- v-for="(el, index) in queryCashOptions"-->
|
||||
<!-- :key="el.value"-->
|
||||
<!-- :label="el.label"-->
|
||||
<!-- :value="el.value"-->
|
||||
<!-- >-->
|
||||
<!-- </el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<div class="elDialog" @click="rightAddHandle(row.row,row.row.pkCashflow,'pkCashflow')"
|
||||
style="height: 50px;"
|
||||
>
|
||||
<el-option
|
||||
v-for="(el, index) in queryCashOptions"
|
||||
:key="el.value"
|
||||
:label="el.label"
|
||||
:value="el.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<p :style="{ color: row.row.pkCashflow ? '#000' : '#c0c4cc' }" class="showText"
|
||||
>{{
|
||||
row.row.pkCashflow ? row.row.pkCashflow :
|
||||
'请点击选择'
|
||||
}}
|
||||
</p>
|
||||
<i class="el-icon-more "
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ row.row.pkCashflow }}
|
||||
|
@ -511,7 +621,7 @@
|
|||
:spanWidth="'70px'"
|
||||
justifyContent="flex-end"
|
||||
@onSelect="fixedValueOnSelect"
|
||||
@elDialogClick="fixedValuelDialogClick(false)"
|
||||
@elDialogClick="ixedValueFormelDialogClick"
|
||||
@cascaderChange="cascaderChange"
|
||||
>
|
||||
</base-form>
|
||||
|
@ -561,6 +671,24 @@
|
|||
|
||||
</div>
|
||||
</base-dialog>
|
||||
|
||||
<!-- 固定值弹窗-->
|
||||
<base-dialog
|
||||
:dialogVisible.sync="addDialog"
|
||||
:closeModal="false"
|
||||
:footerShow="true"
|
||||
:title="'选择'+ addTiTle"
|
||||
width="80%"
|
||||
top="10vh"
|
||||
@handleConfirmClick="addPickDialog"
|
||||
>
|
||||
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="addDialog">
|
||||
<baseChoice ref="baseChoice2" :tableData="addTableData2" :tableColumn="addTableColumn2" @onQuery="addonQuery"
|
||||
@getTableList="getTableAddList"
|
||||
:showSearch="true" :placeholder="addTiTle+'搜索'"
|
||||
></baseChoice>
|
||||
</div>
|
||||
</base-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -592,7 +720,7 @@ import {
|
|||
} from '@/api/apis/operationalModule'
|
||||
import { GetLoginUserButtonsAPI } from '@/api/apis/buttonList'
|
||||
import { queryModuleIncludeMdmListAPI } from '@/api/apis/relevance'
|
||||
import { queryOrgBookVOAPI } from '@/api/apis/accountingSubject'
|
||||
import { queryDataPagedByMapAPI, queryOrgBookVOAPI } from '@/api/apis/accountingSubject'
|
||||
import {
|
||||
confTempSaveAPI,
|
||||
queryVoucherTypeAPI, tempcheckAbstractAPI,
|
||||
|
@ -607,6 +735,10 @@ export default {
|
|||
components: { baseDialog, baseChoice, basePage, baseTable, baseRightDialog, baseForm, baseTree },
|
||||
data() {
|
||||
return {
|
||||
addTableColumn2: [],
|
||||
addTableData2: [],
|
||||
addTiTle: '',
|
||||
addDialog: false,
|
||||
//凭证相关
|
||||
voucherClickId: '',
|
||||
voucherClickName: '',
|
||||
|
@ -652,9 +784,10 @@ export default {
|
|||
//公式相关是用字段
|
||||
propertyTree: [],
|
||||
clickRow: {},
|
||||
clickRowKey: '',
|
||||
activeTabs: '元数据属性',
|
||||
tabItem: ['元数据属性', '固定值'],
|
||||
arithmeticArr: ['+', '-', '*', '/', '->', '==', '(', ')', '<', '>', '<=', '>='],
|
||||
arithmeticArr: ['+', '-', '*', '/', '->', '==', '(', ')', '<', '>', '<=', '>=', 'substr(,,)'],
|
||||
//公式text
|
||||
textarea: '',
|
||||
textareaEn: '',
|
||||
|
@ -893,7 +1026,7 @@ export default {
|
|||
{
|
||||
label: '档案值',
|
||||
prop: 'recordData',
|
||||
tag: 'elCascader',
|
||||
tag: 'elDialog',
|
||||
span: 24,
|
||||
disabled: false,
|
||||
options: [],
|
||||
|
@ -933,7 +1066,11 @@ export default {
|
|||
searchObj: {},
|
||||
pageModel: {
|
||||
page: 1, //当前页码
|
||||
limit: 20 //每页显示多少
|
||||
limit: 20, //每页显示多少
|
||||
prop7: '',
|
||||
propValue7: '',
|
||||
prop8: '',
|
||||
propValue8: ''
|
||||
},
|
||||
selected: [],
|
||||
treeSelect: [],
|
||||
|
@ -1036,6 +1173,72 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
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('请选择一条数据')
|
||||
return
|
||||
}
|
||||
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.$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'])
|
||||
// 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
|
||||
|
@ -1315,6 +1518,7 @@ export default {
|
|||
console.log(val, options, row, '看看内部')
|
||||
let valPath = ''
|
||||
let obj = null
|
||||
|
||||
function getValuePath(el, data, path = []) {
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
const item = data[i]
|
||||
|
@ -1334,6 +1538,7 @@ export default {
|
|||
}
|
||||
return null
|
||||
}
|
||||
|
||||
const targetValue = Array.isArray(val) ? val[val.length - 1] : val
|
||||
const valuePath = getValuePath(targetValue, options)
|
||||
valPath = valuePath ? valuePath : []
|
||||
|
@ -1468,7 +1673,6 @@ export default {
|
|||
this.pkglbookOptions.find(item => {
|
||||
if (item.value == val) {
|
||||
this.pkglbookClickObj = item
|
||||
console.log(this.pkglbookClickObj, 'pkglbookClickObj')
|
||||
}
|
||||
})
|
||||
this.resetTable()
|
||||
|
@ -1499,7 +1703,6 @@ export default {
|
|||
},
|
||||
async fixedValuelDialogClick(row = false, index) {
|
||||
this.fixedValueClickRow = row
|
||||
console.log(this.fixedValueClickRow, 'this.fixedValueClickRow ')
|
||||
this.masterDialog = true
|
||||
this.openLoading()
|
||||
const res = await queryBdinfoListAPI({})
|
||||
|
@ -1548,12 +1751,21 @@ export default {
|
|||
this.$set(this.fixedValueClickRow, 'mdmName', row.mdmName)
|
||||
|
||||
} else {
|
||||
this.fixedValueClickRow = row
|
||||
const res = await queryMdmAndFiledssByMdmIdAPI({
|
||||
mdmId: row.mdmId
|
||||
})
|
||||
const res2 = await queryBdinfoListAPI({
|
||||
pkBdinfo: row.pkBdinfo
|
||||
})
|
||||
res.attribute.forEach(item => {
|
||||
item.chName = item.remark
|
||||
})
|
||||
console.log(res2, '2')
|
||||
this.$set(this.fixedValueClickRow, 'tablepkname', res2.attribute[0].tablepkname)
|
||||
this.$set(this.fixedValueClickRow, 'codefieldname', res2.attribute[0].codefieldname)
|
||||
this.$set(this.fixedValueClickRow, 'namefieldname', res2.attribute[0].namefieldname)
|
||||
this.$set(this.fixedValueClickRow, 'tablename', res2.attribute[0].tablename)
|
||||
this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'factorName', row.bdname)
|
||||
this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'recordData', '')
|
||||
this.fixedValueForm[0].elCol[1].options = res.attribute
|
||||
|
@ -1588,15 +1800,22 @@ export default {
|
|||
})
|
||||
},
|
||||
//摘要公式编辑方法
|
||||
async rightAddHandle(row = false, str = '') {
|
||||
async rightAddHandle(row = false, str = '', key) {
|
||||
this.verifyFlag = false
|
||||
this.passwordDialogShow = true
|
||||
this.fixedValueClickRow = {}
|
||||
if (str || str === 0) {
|
||||
this.textarea = str
|
||||
} else {
|
||||
this.textarea = ''
|
||||
}
|
||||
|
||||
this.textareaEn = ''
|
||||
this.propertyTree = []
|
||||
this.activeTabs = '元数据属性'
|
||||
if (row) {
|
||||
this.clickRow = row
|
||||
this.clickRowKey = key
|
||||
} else {
|
||||
this.clickRow = false
|
||||
}
|
||||
|
@ -1620,7 +1839,7 @@ export default {
|
|||
return
|
||||
}
|
||||
if (this.clickRow) {
|
||||
this.$set(this.clickRow, 'abstractRes', this.textarea)
|
||||
this.$set(this.clickRow, this.clickRowKey, this.textarea)
|
||||
this.passwordDialogShow = false
|
||||
} else {
|
||||
this.$set(this.$refs.basicFormRefsName.ruleForm, 'abstractRes', this.textarea)
|
||||
|
|
|
@ -724,13 +724,16 @@ export default {
|
|||
if (row.prop === 'sourceIdsArr') {
|
||||
let sourceIds = []
|
||||
let sourceNames = []
|
||||
val.forEach(item=>{
|
||||
options.forEach(el => {
|
||||
if (val.includes(el.value)) {
|
||||
if (item === el.value) {
|
||||
sourceIds.push(el.value)
|
||||
sourceNames.push(el.label)
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
})
|
||||
this.$set(this.$refs.basicFormRefsName.ruleForm, 'sourceIds', sourceIds.join(','))
|
||||
this.$set(this.$refs.basicFormRefsName.ruleForm, 'sourceNames', sourceNames.join(','))
|
||||
}
|
||||
|
|
|
@ -766,7 +766,6 @@ export default {
|
|||
},
|
||||
// 点击某条数据
|
||||
async radioChange(row) {
|
||||
console.log(123, '123123')
|
||||
this.selected = []
|
||||
this.selected.push(row)
|
||||
this.masterTableData2 = row.contrastBEntityList
|
||||
|
@ -777,7 +776,6 @@ export default {
|
|||
}
|
||||
]
|
||||
|
||||
console.log(row.sourceIds)
|
||||
for (let i = 0; i < row.factorids.split(',').length; i++) {
|
||||
let item = row.factornames.split(',')[i]
|
||||
let id = row.factorids.split(',')[i]
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
:size="'40%'"
|
||||
@handleConfirmClick="sonTableSaveHandle"
|
||||
>
|
||||
<div class="mainTable">
|
||||
<div class="mainTable" v-if="sonTableDialogShow">
|
||||
<sonTable ref="sonTable" :activedTableData="activedTableData" :mainTempClick="mainTempClick"
|
||||
@sonSaveHandle="sonSaveHandle"
|
||||
></sonTable>
|
||||
|
@ -286,12 +286,25 @@ export default {
|
|||
//数据表编辑
|
||||
mainTableEditHandle(row) {
|
||||
this.mainTableDialogShow = true
|
||||
this.$nextTick(() => {
|
||||
this.$nextTick(async() => {
|
||||
//重置表单
|
||||
this.$refs.mainTable.$refs.mainOptionForm.resetFields()
|
||||
this.$refs.mainTable.mainOptionForm = JSON.parse(JSON.stringify(row))
|
||||
let tempRow = JSON.parse(JSON.stringify(row))
|
||||
if (tempRow.mergeRules) {
|
||||
tempRow.mergeRules = tempRow.mergeRules.split(',')
|
||||
}
|
||||
this.$refs.mainTable.mainOptionForm = tempRow
|
||||
//将英文名改为可编辑状态
|
||||
this.$refs.mainTable.mainOptionRow[0].elCol.disabled = true
|
||||
const res = await authApi('mdmModuleService', '', 'queryMdmDbField', '', {
|
||||
mdmId: this.$route.query.id,
|
||||
dbId: row.id
|
||||
})
|
||||
res.attribute.forEach(item => {
|
||||
item.label = item.chName
|
||||
|
||||
})
|
||||
this.$refs.mainTable.mainOptionRow[2].elCol[0].options = res.attribute
|
||||
})
|
||||
},
|
||||
//表字段单击事件
|
||||
|
@ -435,7 +448,8 @@ export default {
|
|||
this.openLoading('submit')
|
||||
const res = await authApi('mdmModuleService', '', 'updateMdmDb', '', {
|
||||
mdmId: this.$route.query.id,
|
||||
...form
|
||||
...form,
|
||||
mergeRules: form.mergeRules ? form.mergeRules.join(',') : ''
|
||||
})
|
||||
if (res.status == 200) {
|
||||
this.$vmNews('保存成功', 'success')
|
||||
|
@ -655,9 +669,11 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .el-table {
|
||||
max-height: calc(100vh - 230px) !important;
|
||||
}
|
||||
|
||||
::v-deep .el-table__body-wrapper {
|
||||
max-height: calc(100vh - 230px) !important;
|
||||
}
|
||||
|
|
|
@ -52,7 +52,23 @@ export default {
|
|||
fontSize: 16
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
elCol: [
|
||||
{
|
||||
type: 'select',
|
||||
title: '合并规则',
|
||||
id: 'mergeRules',
|
||||
row: 24,
|
||||
disabled: false,
|
||||
required: false,
|
||||
fontSize: 16,
|
||||
multiple:true,
|
||||
options:[],
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
],
|
||||
mainOptionForm: {},
|
||||
rules: {
|
||||
|
|
|
@ -396,6 +396,25 @@ export default {
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
elCol: [
|
||||
{
|
||||
type: 'onecheck',
|
||||
title: '系统数据日期',
|
||||
id: 'isSysDate',
|
||||
row: 24,
|
||||
disabled: false,
|
||||
required: false,
|
||||
fontSize: 16,
|
||||
options: [
|
||||
{
|
||||
label: '是',
|
||||
id: 'Y'
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
optionRuleForm: {},//表字段options数据
|
||||
//type选中后的表
|
||||
|
@ -826,6 +845,7 @@ export default {
|
|||
this.$set(params, 'filedLength', this.optionRuleForm.filedLength)
|
||||
this.$set(params, 'isSysPk', this.optionRuleForm.isSysPk)
|
||||
this.$set(params, 'isSysCode', this.optionRuleForm.isSysCode)
|
||||
this.$set(params, 'isSysDate', this.optionRuleForm.isSysDate)
|
||||
this.$set(params, 'isSysName', this.optionRuleForm.isSysName)
|
||||
this.optionFormRow.forEach(item => {
|
||||
if (tempDist[item.elCol[0].id]) {
|
||||
|
|
|
@ -109,12 +109,118 @@
|
|||
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="billDialog">
|
||||
<div class="showList" style="height: 60vh;overflow: auto">
|
||||
<base-tree ref="baseTree" :isCenter="false" :isSaveBtn="false" :Allshow="false" :showCheckbox="false"
|
||||
:expandAll="false" :menuData="billTableData" @handleNodeClick="billTreeClick" :treeProps="billTreeProps"
|
||||
:expandAll="false" :menuData="billTableData" @handleNodeClick="billTreeClick"
|
||||
:treeProps="billTreeProps"
|
||||
></base-tree>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</base-dialog>
|
||||
|
||||
<!-- 公式编辑器-->
|
||||
<base-dialog
|
||||
:dialogVisible.sync="formulaDialogShow"
|
||||
:closeModal="false"
|
||||
:footerShow="true"
|
||||
title="公式编辑器"
|
||||
width="700px"
|
||||
top="20vh"
|
||||
@handleConfirmClick="formulaDialogChangHandle"
|
||||
>
|
||||
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="formulaDialogShow">
|
||||
<div class="addDialog2">
|
||||
<div class="left">
|
||||
<el-input
|
||||
type="textarea"
|
||||
:rows="23"
|
||||
placeholder="请输入内容"
|
||||
resize="none"
|
||||
v-model="textarea"
|
||||
>
|
||||
</el-input>
|
||||
<div class="btn" style="margin-top: 5px;display: flex;justify-content: flex-end">
|
||||
<el-button :type="verifyFlag?'success':'primary'" size="mini" @click="verifyFlagHandle">
|
||||
{{ verifyFlag ? '验证成功' : '点击验证' }}
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="arithmeticList">
|
||||
<div class="arithmeticItem" v-for="(item,index) in arithmeticArr" @click="arithmeticItemPush(item)">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="document">
|
||||
<div class="tabs">
|
||||
<div class="tabItem" v-for="(item,index) in tabItem" @click="switchTabs(item)"
|
||||
:class="{'acivte':activeTabs===item}"
|
||||
>{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<template v-if="activeTabs === '元数据属性'">
|
||||
<div style="height: 300px;overflow:auto;">
|
||||
<base-tree ref="baseTree" :isCenter="false" :isSaveBtn="false" :Allshow="false"
|
||||
:showCheckbox="false"
|
||||
:menuData="propertyTree" @handleNodeClick="propertyClick" :treeProps="treePropsproperty"
|
||||
></base-tree>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
<template v-else>
|
||||
<div style="margin-top: 10px">
|
||||
<base-form
|
||||
ref="fixedValueFormRefsName"
|
||||
:formRow="fixedValueForm"
|
||||
:isFunBtn="false"
|
||||
:spanWidth="'70px'"
|
||||
justifyContent="flex-end"
|
||||
@elDialogClick="ixedValueFormelDialogClick"
|
||||
>
|
||||
</base-form>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</base-dialog>
|
||||
<!-- 固定值弹窗-->
|
||||
<base-dialog
|
||||
:dialogVisible.sync="addDialog"
|
||||
:closeModal="false"
|
||||
:footerShow="true"
|
||||
:title="'选择'+ addTiTle"
|
||||
width="80%"
|
||||
top="10vh"
|
||||
@handleConfirmClick="addPickDialog"
|
||||
>
|
||||
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="addDialog">
|
||||
<baseChoice ref="baseChoice2" :tableData="addTableData2" :tableColumn="addTableColumn2" @onQuery="addonQuery"
|
||||
@getTableList="getTableAddList"
|
||||
:showSearch="true" :placeholder="addTiTle+'搜索'"
|
||||
></baseChoice>
|
||||
</div>
|
||||
</base-dialog>
|
||||
<!-- 选择映射档案-->
|
||||
<base-dialog
|
||||
:dialogVisible.sync="masterDialog2"
|
||||
:closeModal="false"
|
||||
:footerShow="true"
|
||||
title="选择映射档案"
|
||||
width="80%"
|
||||
top="10vh"
|
||||
@handleConfirmClick="masterPickDialog2"
|
||||
>
|
||||
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="masterDialog2">
|
||||
<baseChoice ref="baseChoice" @getTableList="getTableList" placeholder="基础数据名称"
|
||||
:tableData="masterTableData2" :showSearch="true" :tableColumn="masterTableColumn2" :pageShow="false"
|
||||
></baseChoice>
|
||||
|
||||
</div>
|
||||
</base-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -138,20 +244,27 @@ import {
|
|||
influenceFactorCorrelationsaveListAPI,
|
||||
influenceFactorCorrelationupdateListAPI,
|
||||
influenceFactorqueryAllAPI,
|
||||
queryAllAPI,
|
||||
queryAllAPI, queryBdinfoListAPI,
|
||||
queryByIdAPI,
|
||||
queryByMdmIdAPI,
|
||||
queryMdmAndFiledsByMdmIdAPI,
|
||||
queryMdmAndFiledsByMdmIdAPI, queryMdmAndFiledssByMdmIdAPI,
|
||||
queryMdmsByModuleIdAPI
|
||||
} from '@/api/apis/operationalModule'
|
||||
import { GetLoginUserButtonsAPI } from '@/api/apis/buttonList'
|
||||
import { queryModuleIncludeMdmListAPI } from '@/api/apis/relevance'
|
||||
import { queryDataPagedByMapAPI } from '@/api/apis/accountingSubject'
|
||||
import { tempcheckAbstractAPI } from '@/api/apis/ItemEntryTemplate'
|
||||
|
||||
export default {
|
||||
name: 'recordContrast',
|
||||
components: { baseDialog, baseChoice, basePage, baseTable, baseRightDialog, baseForm, baseTree },
|
||||
data() {
|
||||
return {
|
||||
treePropsproperty: {
|
||||
children: 'sublistMdmModuleDbFileds',
|
||||
label: 'chName',
|
||||
value: 'id'
|
||||
},
|
||||
billTypeClickCode: '',
|
||||
masterTableData: [],
|
||||
masterTableColumn: [
|
||||
|
@ -249,7 +362,11 @@ export default {
|
|||
searchObj: {},
|
||||
pageModel: {
|
||||
page: 1, //当前页码
|
||||
limit: 20 //每页显示多少
|
||||
limit: 20, //每页显示多少
|
||||
prop7: '',
|
||||
propValue7: '',
|
||||
prop8: '',
|
||||
propValue8: ''
|
||||
},
|
||||
selected: [],
|
||||
|
||||
|
@ -297,11 +414,208 @@ export default {
|
|||
billTreeProps: {
|
||||
children: 'sublistMdmModuleDbFileds',
|
||||
label: 'name'
|
||||
},
|
||||
formulaDialogShow: false,
|
||||
propertyTree: [],
|
||||
clickRow: {},
|
||||
clickRowKey: '',
|
||||
activeTabs: '元数据属性',
|
||||
tabItem: ['元数据属性', '固定值'],
|
||||
arithmeticArr: ['+', '-', '*', '/', '->', '==', '(', ')', '<', '>', '<=', '>=', 'substr(,,)'],
|
||||
fixedValueForm: [
|
||||
{
|
||||
elCol: [
|
||||
{
|
||||
label: '参照',
|
||||
prop: 'factorName',
|
||||
tag: 'elDialog',
|
||||
span: 24,
|
||||
disabled: false,
|
||||
options: []
|
||||
},
|
||||
{
|
||||
label: '档案值',
|
||||
prop: 'recordData',
|
||||
tag: 'elDialog',
|
||||
span: 24,
|
||||
disabled: false,
|
||||
options: [],
|
||||
optionValue: 'id',
|
||||
optionLabel: 'remark',
|
||||
props: {
|
||||
children: 'sublistMdmModuleDbFileds',
|
||||
label: 'chName',
|
||||
value: 'id'
|
||||
}
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
addTableColumn2: [],
|
||||
addTableData2: [],
|
||||
addTiTle: '',
|
||||
addDialog: false,
|
||||
fixedValueClickRow: {},
|
||||
textarea: '',
|
||||
verifyFlag: false,
|
||||
masterTableData2: [],
|
||||
masterDialog2: false,
|
||||
masterTableColumn2: [
|
||||
{
|
||||
label: '基础数据编码',
|
||||
prop: 'bdcode'
|
||||
},
|
||||
{
|
||||
label: '基础数据名称',
|
||||
prop: 'bdname'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async masterPickDialog2() {
|
||||
if (!this.$refs.baseChoice.optionData.bdname) {
|
||||
this.$vmNews('请选择映射档案')
|
||||
return
|
||||
}
|
||||
let row = this.$refs.baseChoice.optionData
|
||||
|
||||
if (false) {
|
||||
this.$set(this.fixedValueClickRow, 'mdmId', row.mdmId)
|
||||
this.$set(this.fixedValueClickRow, 'mdmCode', row.mdmCode)
|
||||
this.$set(this.fixedValueClickRow, 'mdmName', row.mdmName)
|
||||
|
||||
} else {
|
||||
this.fixedValueClickRow = row
|
||||
const res = await queryMdmAndFiledssByMdmIdAPI({
|
||||
mdmId: row.mdmId
|
||||
})
|
||||
const res2 = await queryBdinfoListAPI({
|
||||
pkBdinfo: row.pkBdinfo
|
||||
})
|
||||
res.attribute.forEach(item => {
|
||||
item.chName = item.remark
|
||||
})
|
||||
console.log(res2, '2')
|
||||
this.$set(this.fixedValueClickRow, 'tablepkname', res2.attribute[0].tablepkname)
|
||||
this.$set(this.fixedValueClickRow, 'codefieldname', res2.attribute[0].codefieldname)
|
||||
this.$set(this.fixedValueClickRow, 'namefieldname', res2.attribute[0].namefieldname)
|
||||
this.$set(this.fixedValueClickRow, 'tablename', res2.attribute[0].tablename)
|
||||
this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'factorName', row.bdname)
|
||||
this.$set(this.$refs.fixedValueFormRefsName.ruleForm, 'recordData', '')
|
||||
this.fixedValueForm[0].elCol[1].options = res.attribute
|
||||
}
|
||||
|
||||
// this.$set(this.$refs.basicFormRefsName.ruleForm, 'factorCode', row.factorCode)
|
||||
this.masterDialog2 = false
|
||||
},
|
||||
propertyClick(a, b, c) {
|
||||
console.log(a, b, c)
|
||||
let val = []
|
||||
this.getStr(val, b)
|
||||
this.textarea += `@@$${val.reverse().join('.')}`
|
||||
},
|
||||
getStr(arr, node) {
|
||||
arr.push(node.data.chName)
|
||||
if (node.parent && node.parent.data.chName) {
|
||||
this.getStr(arr, node.parent)
|
||||
}
|
||||
},
|
||||
async getTableList(val) {
|
||||
this.openLoading()
|
||||
const res = await queryBdinfoListAPI({
|
||||
bdname: val
|
||||
})
|
||||
this.masterTableData2 = res.attribute
|
||||
this.$nextTick(() => {
|
||||
this.$refs.baseChoice.optionData = ''
|
||||
this.$refs.baseChoice.$refs.customtable.clearRadioIndex()
|
||||
})
|
||||
|
||||
},
|
||||
async ixedValueFormelDialogClick(row) {
|
||||
if (row.label === '参照') {
|
||||
this.masterDialog2 = true
|
||||
this.openLoading()
|
||||
const res = await queryBdinfoListAPI({})
|
||||
this.masterTableData2 = res.attribute
|
||||
} 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) {
|
||||
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('请选择一条数据')
|
||||
return
|
||||
}
|
||||
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.$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'])
|
||||
// console.log(this.clickRow, 'this.clickRow')
|
||||
this.addDialog = false
|
||||
},
|
||||
formulaDialogChangHandle() {
|
||||
if (!this.verifyFlag) {
|
||||
this.$vmNews('请通过验证')
|
||||
return
|
||||
}
|
||||
if (!this.textarea) {
|
||||
this.$vmNews('请输入公式')
|
||||
return
|
||||
}
|
||||
this.$set(this.$refs.basicFormRefsName.ruleForm, 'mappingFieldName', this.textarea)
|
||||
this.formulaDialogShow = false
|
||||
},
|
||||
async getAddTableData() {
|
||||
const res = await queryDataPagedByMapAPI({
|
||||
...this.pageModel,
|
||||
pageNum: this.pageModel.page,
|
||||
pageSize: this.pageModel.limit,
|
||||
tablename: this.fixedValueClickRow.tablename
|
||||
})
|
||||
this.$refs.baseChoice2.pageModel.total = res.attribute.total
|
||||
this.addTableData2 = res.attribute.list
|
||||
},
|
||||
addonQuery(res, pageModel) {
|
||||
this.pageModel = pageModel
|
||||
this.getAddTableData()
|
||||
},
|
||||
switchTabs(item) {
|
||||
if (item === this.activeTabs) return
|
||||
this.activeTabs = item
|
||||
},
|
||||
clickBillTree(row, item) {
|
||||
console.log(item, '??')
|
||||
this.billTreeActive = row
|
||||
|
@ -328,6 +642,23 @@ export default {
|
|||
this.$set(this.$refs.basicFormRefsName.ruleForm, 'factorCode', row.factorCode)
|
||||
this.masterDialog = false
|
||||
},
|
||||
//摘要公式编辑方法
|
||||
async openformulaHandle(str = '') {
|
||||
this.verifyFlag = false
|
||||
this.formulaDialogShow = true
|
||||
this.fixedValueClickRow = {}
|
||||
this.textarea = this.$refs.basicFormRefsName.ruleForm.mappingFieldName ? this.$refs.basicFormRefsName.ruleForm.mappingFieldName : ''
|
||||
this.propertyTree = []
|
||||
this.activeTabs = '元数据属性'
|
||||
|
||||
const res = await queryMdmAndFiledssByMdmIdAPI({
|
||||
mdmId: this.billTypeClickID
|
||||
})
|
||||
res.attribute.forEach(item => {
|
||||
item.chName = item.remark
|
||||
})
|
||||
this.propertyTree = res.attribute
|
||||
},
|
||||
async elDialogClick(row, index) {
|
||||
if (row.label === '影响因素') {
|
||||
this.masterDialog = true
|
||||
|
@ -336,6 +667,8 @@ export default {
|
|||
})
|
||||
this.masterTableData = res.attribute
|
||||
} else {
|
||||
this.openformulaHandle()
|
||||
return
|
||||
this.billDialog = true
|
||||
const res = await queryMdmAndFiledsByMdmIdAPI({
|
||||
mdmId: this.billTypeClickID
|
||||
|
@ -689,6 +1022,18 @@ export default {
|
|||
//头部按钮统一调用方法
|
||||
clickSave(item) {
|
||||
this[item.btnFunction]()
|
||||
},
|
||||
async verifyFlagHandle() {
|
||||
const res = await tempcheckAbstractAPI({
|
||||
abstractRes: this.textarea
|
||||
})
|
||||
if (res.flag === true) {
|
||||
this.$vmNews('验证通过', 'success')
|
||||
this.verifyFlag = true
|
||||
}
|
||||
},
|
||||
arithmeticItemPush(item) {
|
||||
this.textarea += item
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -696,12 +1041,50 @@ export default {
|
|||
this.getLeftList()
|
||||
// this.getTableData()
|
||||
// this.getSelect()
|
||||
},
|
||||
watch: {
|
||||
textarea() {
|
||||
this.verifyFlag = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped lang="scss">
|
||||
.addDialog2 {
|
||||
display: flex;
|
||||
|
||||
.nameTitle {
|
||||
padding: 10px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
margin-right: 10px;
|
||||
width: 180px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.left {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.right {
|
||||
margin-left: 10px;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
|
||||
.document {
|
||||
margin-top: 10px;
|
||||
height: 300px;
|
||||
width: 100%;
|
||||
//background-color: pink;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.addDialog {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
@ -829,4 +1212,48 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.arithmeticList {
|
||||
display: flex;
|
||||
align-content: center;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.arithmeticItem {
|
||||
border-radius: 4px;
|
||||
width: 78px;
|
||||
margin-bottom: 5px;
|
||||
margin-right: 5px;
|
||||
height: 50px;
|
||||
background-color: #f5f5f5;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.tabs {
|
||||
width: 200px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #f5f5f5;
|
||||
padding: 2px 5px;
|
||||
|
||||
.tabItem {
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
padding: 5px 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.acivte {
|
||||
background: #fff;
|
||||
color: #3876ee;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue