|
|
@@ -93,7 +93,7 @@
|
|
|
</template>
|
|
|
<template #electronicDocumentUrl="scope">
|
|
|
<el-button
|
|
|
- v-if="!isView"
|
|
|
+ v-if="!isView && !getDocumenType(scope.row).includes('通知书')"
|
|
|
type="text"
|
|
|
size="mini"
|
|
|
@click="handleEditDocument(scope.row)"
|
|
|
@@ -806,15 +806,44 @@
|
|
|
this.document.documentName = data.documentName
|
|
|
this.document.documentNumber = ''
|
|
|
this.document.documentWhId = ''
|
|
|
- this.getDocumentData()
|
|
|
},
|
|
|
getDocumentData() {
|
|
|
if (this.document.id === null || this.document.id === '') {
|
|
|
queryByDocumentIdandWhereValue({
|
|
|
documentId: this.document.documentId,
|
|
|
whereValue: this.project.projectId,
|
|
|
+ unitId: this.document.enterpriseId,
|
|
|
}).then((res) => {
|
|
|
this.costDocumentTemplateFiles = res.value || []
|
|
|
+ let unit = this.allUnits.find(
|
|
|
+ (item) => item.unitId === this.document.enterpriseId
|
|
|
+ )
|
|
|
+ this.costDocumentTemplateFiles.forEach((item) => {
|
|
|
+ if (item.pinyin.includes('BeiJianShenDanWei')) {
|
|
|
+ item.dataValue = unit.unitName
|
|
|
+ }
|
|
|
+ if (item.pinyin.includes('ShouSongDaRen')) {
|
|
|
+ item.dataValue = unit.contactName
|
|
|
+ }
|
|
|
+ if (item.pinyin.includes('BeiJianShenDanWeiBanGongDiDian')) {
|
|
|
+ item.dataValue = unit.address
|
|
|
+ }
|
|
|
+ if (item.pinyin.includes('BeiJianShenDanWeiLianXiRenDianHua')) {
|
|
|
+ item.dataValue = unit.contactMobile
|
|
|
+ }
|
|
|
+ // 回显文号
|
|
|
+ // 获取选中的文号信息
|
|
|
+ const selectedDocument = this.selectDocumentWhSelection[0]
|
|
|
+ if (
|
|
|
+ item.pinyin.includes('WenHao') ||
|
|
|
+ item.pinyin.includes('WenJianHao')
|
|
|
+ ) {
|
|
|
+ item.dataValue = selectedDocument.whNo
|
|
|
+ }
|
|
|
+ if (item.pinyin.includes('SongDaWenShuMingCheng')) {
|
|
|
+ item.dataValue = selectedDocument.whName
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
} else {
|
|
|
getCostProjectDocumentFile({
|
|
|
@@ -866,23 +895,7 @@
|
|
|
handleEnterpriseChange(val) {
|
|
|
if (this.document.enterpriseId) {
|
|
|
// BeiJianShenDanWei
|
|
|
- let unit = this.allUnits.find(
|
|
|
- (item) => item.unitId === this.document.enterpriseId
|
|
|
- )
|
|
|
- this.costDocumentTemplateFiles.forEach((item) => {
|
|
|
- if (item.pinyin.includes('BeiJianShenDanWei')) {
|
|
|
- item.dataValue = unit.unitName
|
|
|
- }
|
|
|
- if (item.pinyin.includes('ShouSongDaRen')) {
|
|
|
- item.dataValue = unit.contactName
|
|
|
- }
|
|
|
- if (item.pinyin.includes('BeiJianShenDanWeiBanGongDiDian')) {
|
|
|
- item.dataValue = unit.address
|
|
|
- }
|
|
|
- if (item.pinyin.includes('BeiJianShenDanWeiLianXiRenDianHua')) {
|
|
|
- item.dataValue = unit.contactMobile
|
|
|
- }
|
|
|
- })
|
|
|
+ this.getDocumentData()
|
|
|
}
|
|
|
},
|
|
|
// 保存文档
|