会计事项平台更新
This commit is contained in:
parent
dfd7440144
commit
b614d7555d
|
@ -30,24 +30,24 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right" v-loading="tableLoading">
|
||||||
<div class="topBox" style="margin-bottom: 10px">
|
<div class="topBox" style="margin-bottom: 10px">
|
||||||
<div class="searchBox">
|
<div class="searchBox">
|
||||||
<div style="margin-left: 10px;display: flex;align-items: center">
|
<div style="margin-left: 10px;display: flex;align-items: center">
|
||||||
账簿:
|
账簿:
|
||||||
<el-select
|
<el-select
|
||||||
class="w-100"
|
class="w-100"
|
||||||
v-model="pkglbook"
|
v-model="pkglbook"
|
||||||
filterable
|
filterable
|
||||||
:clearable="true"
|
:clearable="true"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@change="changepkglbookHandle"
|
@change="changepkglbookHandle"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(el, index) in pkglbookOptions"
|
v-for="(el, index) in pkglbookOptions"
|
||||||
:key="el.value"
|
:key="el.value"
|
||||||
:label="el.label"
|
:label="el.label"
|
||||||
:value="el.value"
|
:value="el.value"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -55,18 +55,18 @@
|
||||||
<div style="margin-left: 10px;display: flex;align-items: center">
|
<div style="margin-left: 10px;display: flex;align-items: center">
|
||||||
凭证类别:
|
凭证类别:
|
||||||
<el-select
|
<el-select
|
||||||
class="w-100"
|
class="w-100"
|
||||||
v-model="voucher"
|
v-model="voucher"
|
||||||
filterable
|
filterable
|
||||||
:clearable="true"
|
:clearable="true"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@change="voucherChangeHandle"
|
@change="voucherChangeHandle"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(el, index) in voucherOptions"
|
v-for="(el, index) in voucherOptions"
|
||||||
:key="el.value"
|
:key="el.value"
|
||||||
:label="el.label"
|
:label="el.label"
|
||||||
:value="el.value"
|
:value="el.value"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -76,41 +76,41 @@
|
||||||
<!-- 查看状态 -->
|
<!-- 查看状态 -->
|
||||||
<template v-if="!editFlag">
|
<template v-if="!editFlag">
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="editOperate"
|
@click="editOperate"
|
||||||
type="primary"
|
type="primary"
|
||||||
>编辑
|
>编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<!-- 编辑状态 -->
|
<!-- 编辑状态 -->
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
@click="Operate"
|
@click="Operate"
|
||||||
type="primary"
|
type="primary"
|
||||||
>新增
|
>新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
icon="el-icon-circle-close"
|
icon="el-icon-circle-close"
|
||||||
@click="closeOperate"
|
@click="closeOperate"
|
||||||
type="primary"
|
type="primary"
|
||||||
>关闭
|
>关闭
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
icon="el-icon-check"
|
icon="el-icon-check"
|
||||||
@click="saveOperate"
|
@click="saveOperate"
|
||||||
type="primary"
|
type="primary"
|
||||||
>保存
|
>保存
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="delOperate"
|
@click="delOperate"
|
||||||
type="primary"
|
type="primary"
|
||||||
>删除
|
>删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
@ -129,18 +129,18 @@
|
||||||
<template #subjectClassificationName="{row}">
|
<template #subjectClassificationName="{row}">
|
||||||
<div v-if="editFlag">
|
<div v-if="editFlag">
|
||||||
<el-select
|
<el-select
|
||||||
class="w-100"
|
class="w-100"
|
||||||
v-model="row.row.subjectClassificationId"
|
v-model="row.row.subjectClassificationId"
|
||||||
filterable
|
filterable
|
||||||
:clearable="true"
|
:clearable="true"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@change="(val)=>{subClassOptionsChangeHandle(val,row.row)}"
|
@change="(val)=>{subClassOptionsChangeHandle(val,row.row)}"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(el, index) in subClassOptions"
|
v-for="(el, index) in subClassOptions"
|
||||||
:key="el.value"
|
:key="el.value"
|
||||||
:label="el.label"
|
:label="el.label"
|
||||||
:value="el.value"
|
:value="el.value"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -261,7 +261,7 @@
|
||||||
<p :style="{ color: row.row.abstractRes ? '#000' : '#c0c4cc' }" class="showText"
|
<p :style="{ color: row.row.abstractRes ? '#000' : '#c0c4cc' }" class="showText"
|
||||||
>{{
|
>{{
|
||||||
row.row.abstractRes ? row.row.abstractRes :
|
row.row.abstractRes ? row.row.abstractRes :
|
||||||
'请点击选择'
|
'请点击选择'
|
||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
<i class="el-icon-more "
|
<i class="el-icon-more "
|
||||||
|
@ -276,17 +276,17 @@
|
||||||
<template #pkCashflow="{row}">
|
<template #pkCashflow="{row}">
|
||||||
<div v-if="editFlag">
|
<div v-if="editFlag">
|
||||||
<el-select
|
<el-select
|
||||||
class="w-100"
|
class="w-100"
|
||||||
v-model="row.row.pkCashflow"
|
v-model="row.row.pkCashflow"
|
||||||
filterable
|
filterable
|
||||||
:clearable="true"
|
:clearable="true"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(el, index) in queryCashOptions"
|
v-for="(el, index) in queryCashOptions"
|
||||||
:key="el.value"
|
:key="el.value"
|
||||||
:label="el.label"
|
:label="el.label"
|
||||||
:value="el.value"
|
:value="el.value"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -331,7 +331,7 @@
|
||||||
@click="elDialogClick(row, index, indexRow)"
|
@click="elDialogClick(row, index, indexRow)"
|
||||||
>{{
|
>{{
|
||||||
row.mdmName ? row.mdmName :
|
row.mdmName ? row.mdmName :
|
||||||
'请点击选择'
|
'请点击选择'
|
||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
<i class="el-icon-more "
|
<i class="el-icon-more "
|
||||||
|
@ -344,12 +344,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-cascader
|
<el-cascader
|
||||||
v-model="row.fieldArr"
|
v-model="row.fieldArr"
|
||||||
:options="propertyTree"
|
:options="propertyTree"
|
||||||
:props="{ children: 'sublistMdmModuleDbFileds',
|
:props="{ children: 'sublistMdmModuleDbFileds',
|
||||||
label: 'chName',
|
label: 'chName',
|
||||||
value: 'id', }"
|
value: 'id', }"
|
||||||
@change="(val)=>{fieldIdChangeHandle(val,row)}"
|
@change="(val)=>{fieldIdChangeHandle(val,row)}"
|
||||||
></el-cascader>
|
></el-cascader>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -374,38 +374,38 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- 新增-->
|
<!-- 新增-->
|
||||||
<base-right-dialog
|
<base-right-dialog
|
||||||
@handleClose="examineOperateDialog = false"
|
@handleClose="examineOperateDialog = false"
|
||||||
@handleConfirmClick="handleConfirmClick"
|
@handleConfirmClick="handleConfirmClick"
|
||||||
:dialogVisible="examineOperateDialog"
|
:dialogVisible="examineOperateDialog"
|
||||||
size="900px"
|
size="900px"
|
||||||
:appendBody="true"
|
:appendBody="true"
|
||||||
:loading="true"
|
:loading="true"
|
||||||
:footerShow="true"
|
:footerShow="true"
|
||||||
:submitShow="true"
|
:submitShow="true"
|
||||||
:title="dialogTitle +'事项分录模版'"
|
:title="dialogTitle +'事项分录模版'"
|
||||||
submitTitle="保存"
|
submitTitle="保存"
|
||||||
>
|
>
|
||||||
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="examineOperateDialog">
|
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="examineOperateDialog">
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<base-form
|
<base-form
|
||||||
ref="basicFormRefsName"
|
ref="basicFormRefsName"
|
||||||
:formRow="basicFormForm"
|
:formRow="basicFormForm"
|
||||||
:isFunBtn="false"
|
:isFunBtn="false"
|
||||||
:spanWidth="'100px'"
|
:spanWidth="'100px'"
|
||||||
justifyContent="flex-end"
|
justifyContent="flex-end"
|
||||||
:rules="basicFormRulers"
|
:rules="basicFormRulers"
|
||||||
@onSelect="onSelect"
|
@onSelect="onSelect"
|
||||||
:view-status="statusView"
|
:view-status="statusView"
|
||||||
@elDialogClick="elDialogClick"
|
@elDialogClick="elDialogClick"
|
||||||
@cascaderChange="AddCascaderChange"
|
@cascaderChange="AddCascaderChange"
|
||||||
|
|
||||||
>
|
>
|
||||||
</base-form>
|
</base-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="table">
|
<div class="table">
|
||||||
<div
|
<div
|
||||||
style="display: flex;justify-content: flex-end;cursor:pointer;margin: 10px 0;font-size: 14px;color: #4876ed; "
|
style="display: flex;justify-content: flex-end;cursor:pointer;margin: 10px 0;font-size: 14px;color: #4876ed; "
|
||||||
@click="addData"
|
@click="addData"
|
||||||
>添加
|
>添加
|
||||||
</div>
|
</div>
|
||||||
<base-table ref="customtable" :showIndex="false" :slotrow="false"
|
<base-table ref="customtable" :showIndex="false" :slotrow="false"
|
||||||
|
@ -417,7 +417,7 @@
|
||||||
@click="elDialogClick(row, index, indexRow)"
|
@click="elDialogClick(row, index, indexRow)"
|
||||||
>{{
|
>{{
|
||||||
row.mdmName ? row.mdmName :
|
row.mdmName ? row.mdmName :
|
||||||
'请点击选择'
|
'请点击选择'
|
||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
<i class="el-icon-more "
|
<i class="el-icon-more "
|
||||||
|
@ -427,12 +427,12 @@
|
||||||
<template #fieldId="{row}">
|
<template #fieldId="{row}">
|
||||||
<div>
|
<div>
|
||||||
<el-cascader
|
<el-cascader
|
||||||
v-model="row.fieldArr"
|
v-model="row.fieldArr"
|
||||||
:options="propertyTree"
|
:options="propertyTree"
|
||||||
:props="{ children: 'sublistMdmModuleDbFileds',
|
:props="{ children: 'sublistMdmModuleDbFileds',
|
||||||
label: 'chName',
|
label: 'chName',
|
||||||
value: 'id', }"
|
value: 'id', }"
|
||||||
@change="(val)=>{fieldIdChangeHandle(val,row)}"
|
@change="(val)=>{fieldIdChangeHandle(val,row)}"
|
||||||
></el-cascader>
|
></el-cascader>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -454,23 +454,23 @@
|
||||||
</base-right-dialog>
|
</base-right-dialog>
|
||||||
<!-- 公式编辑器-->
|
<!-- 公式编辑器-->
|
||||||
<base-dialog
|
<base-dialog
|
||||||
:dialogVisible.sync="passwordDialogShow"
|
:dialogVisible.sync="passwordDialogShow"
|
||||||
:closeModal="false"
|
:closeModal="false"
|
||||||
:footerShow="true"
|
:footerShow="true"
|
||||||
title="公式编辑器"
|
title="公式编辑器"
|
||||||
width="700px"
|
width="700px"
|
||||||
top="20vh"
|
top="20vh"
|
||||||
@handleConfirmClick="passwordChangeHandle"
|
@handleConfirmClick="passwordChangeHandle"
|
||||||
>
|
>
|
||||||
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="passwordDialogShow">
|
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="passwordDialogShow">
|
||||||
<div class="addDialog">
|
<div class="addDialog">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<el-input
|
<el-input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rows="23"
|
:rows="23"
|
||||||
placeholder="请输入内容"
|
placeholder="请输入内容"
|
||||||
resize="none"
|
resize="none"
|
||||||
v-model="textarea"
|
v-model="textarea"
|
||||||
>
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
<div class="btn" style="margin-top: 5px;display: flex;justify-content: flex-end">
|
<div class="btn" style="margin-top: 5px;display: flex;justify-content: flex-end">
|
||||||
|
@ -505,14 +505,14 @@
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div style="margin-top: 10px">
|
<div style="margin-top: 10px">
|
||||||
<base-form
|
<base-form
|
||||||
ref="fixedValueFormRefsName"
|
ref="fixedValueFormRefsName"
|
||||||
:formRow="fixedValueForm"
|
:formRow="fixedValueForm"
|
||||||
:isFunBtn="false"
|
:isFunBtn="false"
|
||||||
:spanWidth="'70px'"
|
:spanWidth="'70px'"
|
||||||
justifyContent="flex-end"
|
justifyContent="flex-end"
|
||||||
@onSelect="fixedValueOnSelect"
|
@onSelect="fixedValueOnSelect"
|
||||||
@elDialogClick="fixedValuelDialogClick(false)"
|
@elDialogClick="fixedValuelDialogClick(false)"
|
||||||
@cascaderChange="cascaderChange"
|
@cascaderChange="cascaderChange"
|
||||||
>
|
>
|
||||||
</base-form>
|
</base-form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -526,13 +526,13 @@
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
<!-- 选择映射档案-->
|
<!-- 选择映射档案-->
|
||||||
<base-dialog
|
<base-dialog
|
||||||
:dialogVisible.sync="masterDialog"
|
:dialogVisible.sync="masterDialog"
|
||||||
:closeModal="false"
|
:closeModal="false"
|
||||||
:footerShow="true"
|
:footerShow="true"
|
||||||
title="选择映射档案"
|
title="选择映射档案"
|
||||||
width="80%"
|
width="80%"
|
||||||
top="10vh"
|
top="10vh"
|
||||||
@handleConfirmClick="masterPickDialog"
|
@handleConfirmClick="masterPickDialog"
|
||||||
>
|
>
|
||||||
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="masterDialog">
|
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="masterDialog">
|
||||||
<baseChoice ref="baseChoice" @getTableList="getTableList" placeholder="基础数据名称"
|
<baseChoice ref="baseChoice" @getTableList="getTableList" placeholder="基础数据名称"
|
||||||
|
@ -542,13 +542,13 @@
|
||||||
</div>
|
</div>
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog
|
<base-dialog
|
||||||
:dialogVisible.sync="billDialog"
|
:dialogVisible.sync="billDialog"
|
||||||
:closeModal="false"
|
:closeModal="false"
|
||||||
:footerShow="true"
|
:footerShow="true"
|
||||||
title="选择单据项目"
|
title="选择单据项目"
|
||||||
width="400px"
|
width="400px"
|
||||||
top="10vh"
|
top="10vh"
|
||||||
@handleConfirmClick="billClickHandle"
|
@handleConfirmClick="billClickHandle"
|
||||||
>
|
>
|
||||||
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="billDialog">
|
<div class="rightDialogClass_main" style="background-color: #fff;" v-if="billDialog">
|
||||||
<div class="showList" style="height: 60vh;overflow: auto">
|
<div class="showList" style="height: 60vh;overflow: auto">
|
||||||
|
@ -1001,6 +1001,7 @@ export default {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
tableLoading:false,
|
||||||
dialogTitle: '新增',
|
dialogTitle: '新增',
|
||||||
examineOperateDialog: false,
|
examineOperateDialog: false,
|
||||||
statusView: false,
|
statusView: false,
|
||||||
|
@ -1055,7 +1056,7 @@ export default {
|
||||||
obj.dBbSumFieArr = item.dBbSumField ? this.searchIDHandle(item.dBbSumField, this.propertyTree, row) : []
|
obj.dBbSumFieArr = item.dBbSumField ? this.searchIDHandle(item.dBbSumField, this.propertyTree, row) : []
|
||||||
if (obj.assistEntityList) {
|
if (obj.assistEntityList) {
|
||||||
obj.assistEntityList.forEach(ele => {
|
obj.assistEntityList.forEach(ele => {
|
||||||
ele.fieldId = this.searchIDHandle(ele.fieldId, this.propertyTree, row)
|
ele.fieldArr = this.searchIDHandle(ele.fieldId, this.propertyTree, row)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1139,8 +1140,8 @@ export default {
|
||||||
})
|
})
|
||||||
console.log(this.tableData, 'this.tableData')
|
console.log(this.tableData, 'this.tableData')
|
||||||
const res = await confTempSaveAPI(this.tableData)
|
const res = await confTempSaveAPI(this.tableData)
|
||||||
this.$vmNews("保存成功",'success')
|
this.$vmNews('保存成功', 'success')
|
||||||
this.editFlag=false
|
this.editFlag = false
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
//关闭方法
|
//关闭方法
|
||||||
|
@ -1311,9 +1312,9 @@ export default {
|
||||||
},
|
},
|
||||||
//找id
|
//找id
|
||||||
searchIDHandle(val, options, row = {}) {
|
searchIDHandle(val, options, row = {}) {
|
||||||
|
console.log(val,options,row,'看看内部')
|
||||||
let valPath = ''
|
let valPath = ''
|
||||||
let obj = null
|
let obj = null
|
||||||
|
|
||||||
function getValuePath(el, data, path = []) {
|
function getValuePath(el, data, path = []) {
|
||||||
for (let i = 0; i < data.length; i++) {
|
for (let i = 0; i < data.length; i++) {
|
||||||
const item = data[i]
|
const item = data[i]
|
||||||
|
@ -1333,7 +1334,6 @@ export default {
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
const targetValue = Array.isArray(val) ? val[val.length - 1] : val
|
const targetValue = Array.isArray(val) ? val[val.length - 1] : val
|
||||||
const valuePath = getValuePath(targetValue, options)
|
const valuePath = getValuePath(targetValue, options)
|
||||||
valPath = valuePath ? valuePath : []
|
valPath = valuePath ? valuePath : []
|
||||||
|
@ -1418,6 +1418,7 @@ export default {
|
||||||
},
|
},
|
||||||
//新增弹窗所有下啦获取
|
//新增弹窗所有下啦获取
|
||||||
async addGetSelectHandle() {
|
async addGetSelectHandle() {
|
||||||
|
this.tableLoading = true
|
||||||
//会计科目
|
//会计科目
|
||||||
const res = await subjectClassificationqueryAllAPI({
|
const res = await subjectClassificationqueryAllAPI({
|
||||||
aeConfModuleId: this.clickFatherObj.data.aeConfModuleId,
|
aeConfModuleId: this.clickFatherObj.data.aeConfModuleId,
|
||||||
|
@ -1450,6 +1451,7 @@ export default {
|
||||||
item.chName = item.remark
|
item.chName = item.remark
|
||||||
})
|
})
|
||||||
this.propertyTree = res4.attribute
|
this.propertyTree = res4.attribute
|
||||||
|
this.tableLoading = false
|
||||||
},
|
},
|
||||||
//凭证类别修改方法
|
//凭证类别修改方法
|
||||||
voucherChangeHandle(val) {
|
voucherChangeHandle(val) {
|
||||||
|
@ -1700,10 +1702,10 @@ export default {
|
||||||
if (this.dialogTitle === '编辑') {
|
if (this.dialogTitle === '编辑') {
|
||||||
this.openLoading()
|
this.openLoading()
|
||||||
const res = await tempupdateAPI(
|
const res = await tempupdateAPI(
|
||||||
{
|
{
|
||||||
...this.$refs.basicFormRefsName.ruleForm,
|
...this.$refs.basicFormRefsName.ruleForm,
|
||||||
assistEntityList: this.addTableData
|
assistEntityList: this.addTableData
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.$vmNews('保存成功', 'success')
|
this.$vmNews('保存成功', 'success')
|
||||||
|
@ -1713,10 +1715,10 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.openLoading()
|
this.openLoading()
|
||||||
const res = await confTempSaveAPI(
|
const res = await confTempSaveAPI(
|
||||||
{
|
{
|
||||||
...this.$refs.basicFormRefsName.ruleForm,
|
...this.$refs.basicFormRefsName.ruleForm,
|
||||||
assistEntityList: this.addTableData
|
assistEntityList: this.addTableData
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.$vmNews('保存成功', 'success')
|
this.$vmNews('保存成功', 'success')
|
||||||
|
@ -1761,7 +1763,20 @@ export default {
|
||||||
this.selected = []
|
this.selected = []
|
||||||
this.selected.push(val)
|
this.selected.push(val)
|
||||||
console.log(val.assistEntityList, '?val.assistEntityList')
|
console.log(val.assistEntityList, '?val.assistEntityList')
|
||||||
|
let row = {
|
||||||
|
props: {
|
||||||
|
children: 'sublistMdmModuleDbFileds',
|
||||||
|
label: 'chName',
|
||||||
|
value: 'id'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
val.assistEntityList.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.assistEntityList ? val.assistEntityList : []
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
delOperate() {
|
delOperate() {
|
||||||
|
@ -1774,13 +1789,16 @@ export default {
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(async() => {
|
}).then(async() => {
|
||||||
const res = await tempdeleteAPI({
|
if (this.selected[0].id) {
|
||||||
id: this.selected[0].id
|
const res = await tempdeleteAPI({
|
||||||
})
|
id: this.selected[0].id
|
||||||
if (res.status == 200) {
|
})
|
||||||
this.$vmNews('删除成功', 'success')
|
if (res.status == 200) {
|
||||||
this.resetTable()
|
this.$vmNews('删除成功', 'success')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
this.tableData.splice(this.selected[0].index, 1)
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
|
@ -1797,11 +1815,11 @@ export default {
|
||||||
this.$vmNews('请选择凭证')
|
this.$vmNews('请选择凭证')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
await this.addGetSelectHandle()
|
||||||
this.tableData.forEach(item => {
|
this.tableData.forEach(item => {
|
||||||
this.transitionRowHandle(item)
|
this.transitionRowHandle(item)
|
||||||
})
|
})
|
||||||
this.editFlag = true
|
this.editFlag = true
|
||||||
await this.addGetSelectHandle()
|
|
||||||
return
|
return
|
||||||
if (!this.selected.length) {
|
if (!this.selected.length) {
|
||||||
this.$vmNews('请至少选择一条数据')
|
this.$vmNews('请至少选择一条数据')
|
||||||
|
|
|
@ -838,7 +838,7 @@ export default {
|
||||||
this.getAddOptions()
|
this.getAddOptions()
|
||||||
this.$refs.basicFormRefsName.ruleForm = {
|
this.$refs.basicFormRefsName.ruleForm = {
|
||||||
...this.selected[0],
|
...this.selected[0],
|
||||||
factornamesArr: this.selected[0].factornames.split(',')
|
factornamesArr: this.selected[0].factornames ? this.selected[0].factornames.split(',') : []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
:tabLoading="mainTabLoading"
|
:tabLoading="mainTabLoading"
|
||||||
:tableColumn="mainTableColumn"
|
:tableColumn="mainTableColumn"
|
||||||
:border="false"
|
:border="false"
|
||||||
tableMaxHeight="600"
|
tableHeight="calc(100vh - 280px)"
|
||||||
:highlightCurrent="true"
|
:highlightCurrent="true"
|
||||||
@radioChange="mainOnClick"
|
@radioChange="mainOnClick"
|
||||||
>
|
>
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
:tabLoading="activedTabLoading"
|
:tabLoading="activedTabLoading"
|
||||||
:tableColumn="activedTableColumn"
|
:tableColumn="activedTableColumn"
|
||||||
:border="false"
|
:border="false"
|
||||||
tableMaxHeight="650"
|
tableHeight="calc(100vh - 200px)"
|
||||||
:highlightCurrent="true"
|
:highlightCurrent="true"
|
||||||
@radioChange="activedOnClick"
|
@radioChange="activedOnClick"
|
||||||
@onFunc="activedOnFunc"
|
@onFunc="activedOnFunc"
|
||||||
|
|
|
@ -678,12 +678,13 @@ export default {
|
||||||
this.resetTable()
|
this.resetTable()
|
||||||
},
|
},
|
||||||
billTreeClick(item, row) {
|
billTreeClick(item, row) {
|
||||||
console.log(row, '?')
|
|
||||||
|
console.log(row, '?',item)
|
||||||
if (item.fatherRow) {
|
if (item.fatherRow) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.billTreeActive = item
|
this.billTreeActive = item
|
||||||
this.billTreeActiveFather = row
|
this.billTreeActiveFather = row.parent.data
|
||||||
},
|
},
|
||||||
//头部按钮统一调用方法
|
//头部按钮统一调用方法
|
||||||
clickSave(item) {
|
clickSave(item) {
|
||||||
|
|
Loading…
Reference in New Issue