|
@@ -711,6 +711,168 @@
|
|
|
this.document.documentNumber = ''
|
|
this.document.documentNumber = ''
|
|
|
this.document.documentWhId = ''
|
|
this.document.documentWhId = ''
|
|
|
},
|
|
},
|
|
|
|
|
+ formatDaValue(res) {
|
|
|
|
|
+ this.costDocumentTemplateFiles =
|
|
|
|
|
+ JSON.parse(JSON.stringify(res.value || [])) || []
|
|
|
|
|
+ this.resCostDocumentTemplateFiles =
|
|
|
|
|
+ JSON.parse(JSON.stringify(res.value || [])) || []
|
|
|
|
|
+ let unit = this.allUnits.find(
|
|
|
|
|
+ (item) => item.unitId === this.document.enterpriseId
|
|
|
|
|
+ )
|
|
|
|
|
+ let documenName = this.getDocumentType({
|
|
|
|
|
+ documentId: this.document.documentId,
|
|
|
|
|
+ })
|
|
|
|
|
+ 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
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.originalText.includes('需要提供材料') && item.dataValue) {
|
|
|
|
|
+ this.dataUploadUrl = item.dataValue
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
+ // 移除所有HTML标签
|
|
|
|
|
+ item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('ShiJian') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY年MM月DD日
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY年MM月DD日')
|
|
|
|
|
+ } else if (item.pinyin.includes('ShiJian') && item.dataValue) {
|
|
|
|
|
+ item.dataValue = item.dataValue.includes('年')
|
|
|
|
|
+ ? item.dataValue
|
|
|
|
|
+ : moment(item.dataValue).format('YYYY年MM月DD日')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('RiQi') && item.dataValue) {
|
|
|
|
|
+ item.dataValue = item.dataValue.includes('年')
|
|
|
|
|
+ ? item.dataValue
|
|
|
|
|
+ : moment(item.dataValue).format('YYYY年MM月DD日')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
+ // 移除所有HTML标签
|
|
|
|
|
+ item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (documenName.includes('成本监审通知书')) {
|
|
|
|
|
+ if (item.pinyin.includes('DanWeiMingCheng')) {
|
|
|
|
|
+ item.dataValue = unit.unitName
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('FaRenDaiBiao')) {
|
|
|
|
|
+ item.dataValue = unit?.corporateRepresentative || ''
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes(
|
|
|
|
|
+ 'ChengBenJianShenTongZhiShuChuangJianRiQi'
|
|
|
|
|
+ ) &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY年MM月DD日')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('ChuangJianRiQi')) {
|
|
|
|
|
+ // 获取当前时间或使用有效日期
|
|
|
|
|
+ item.dataValue =
|
|
|
|
|
+ item.dataValue && !item.dataValue.includes('年')
|
|
|
|
|
+ ? moment(item.dataValue).format('YYYY年MM月DD日')
|
|
|
|
|
+ : moment(new Date()).format('YYYY年MM月DD日')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (documenName.includes('成本监审提取资料登记表')) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('DengJiBiaoShengChengRiQi') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY年MM月DD日
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY年MM月DD日')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (documenName.includes('成本审核初步意见表')) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('YiJianBiaoShengChengRiQi') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY年MM月DD日
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY年MM月DD日')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (documenName.includes('政府定价成本监审结论报告')) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('BaoGaoRiQi') &&
|
|
|
|
|
+ (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY年MM月DD日
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY年MM月DD日')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('JieLunBaoGaoChuangJianRiQi')) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY年MM月DD日
|
|
|
|
|
+ item.dataValue = moment(new Date()).format('YYYY年MM月DD日')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('JianShenRenWuFaBuShiJian')) {
|
|
|
|
|
+ let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
+ (item2) => item2.pinyin === 'JianShenRenWuFaBuShiJian'
|
|
|
|
|
+ ).dataValue
|
|
|
|
|
+ item.dataValue = dataValue
|
|
|
|
|
+ ? moment(dataValue).format('YYYY年MM月DD日')
|
|
|
|
|
+ : ''
|
|
|
|
|
+ }
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes(
|
|
|
|
|
+ 'ChengBenJianShenTongZhiShuShengChengShiJian'
|
|
|
|
|
+ )
|
|
|
|
|
+ ) {
|
|
|
|
|
+ let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
+ (item2) =>
|
|
|
|
|
+ item2.pinyin === 'ChengBenJianShenTongZhiShuShengChengShiJian'
|
|
|
|
|
+ ).dataValue
|
|
|
|
|
+ item.dataValue = dataValue
|
|
|
|
|
+ ? moment(dataValue).format('YYYY年MM月DD日')
|
|
|
|
|
+ : ''
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('ChengBenZiLiaoShangBaoShiJian')) {
|
|
|
|
|
+ let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
+ (item2) => item2.pinyin === 'ChengBenZiLiaoShangBaoShiJian'
|
|
|
|
|
+ ).dataValue
|
|
|
|
|
+ item.dataValue = dataValue
|
|
|
|
|
+ ? moment(dataValue).format('YYYY年MM月DD日')
|
|
|
|
|
+ : ''
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (documenName.includes('成本审核初步意见告知书')) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes(
|
|
|
|
|
+ 'ChengBenJianShenTongZhiShuChuangJianShiJian'
|
|
|
|
|
+ ) &&
|
|
|
|
|
+ item.dataValue
|
|
|
|
|
+ ) {
|
|
|
|
|
+ // 获取当前时间,格式为YYYY年MM月DD日
|
|
|
|
|
+ item.dataValue = moment(item.dataValue).format('YYYY年MM月DD日')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ // 回显文号
|
|
|
|
|
+ // 获取选中的文号信息
|
|
|
|
|
+ const selectedDocument = this.selectDocumentWhSelection[0]
|
|
|
|
|
+ if (selectedDocument) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ item.pinyin.includes('WenHao') ||
|
|
|
|
|
+ item.pinyin.includes('WenJianHao')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ item.dataValue = selectedDocument.whNo
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.pinyin.includes('SongDaWenShuMingCheng')) {
|
|
|
|
|
+ item.dataValue = selectedDocument.whName
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getDocumentData() {
|
|
getDocumentData() {
|
|
|
if (this.document.id === null || this.document.id === '') {
|
|
if (this.document.id === null || this.document.id === '') {
|
|
|
queryByDocumentIdandWhereValue({
|
|
queryByDocumentIdandWhereValue({
|
|
@@ -719,144 +881,7 @@
|
|
|
unitId: this.document.enterpriseId,
|
|
unitId: this.document.enterpriseId,
|
|
|
// projectId: this.project.projectId,
|
|
// projectId: this.project.projectId,
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
- this.costDocumentTemplateFiles =
|
|
|
|
|
- JSON.parse(JSON.stringify(res.value || [])) || []
|
|
|
|
|
- this.resCostDocumentTemplateFiles =
|
|
|
|
|
- JSON.parse(JSON.stringify(res.value || [])) || []
|
|
|
|
|
- let unit = this.allUnits.find(
|
|
|
|
|
- (item) => item.unitId === this.document.enterpriseId
|
|
|
|
|
- )
|
|
|
|
|
- let documenName = this.getDocumentType({
|
|
|
|
|
- documentId: this.document.documentId,
|
|
|
|
|
- })
|
|
|
|
|
- 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
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.originalText.includes('需要提供材料') &&
|
|
|
|
|
- item.dataValue
|
|
|
|
|
- ) {
|
|
|
|
|
- this.dataUploadUrl = item.dataValue
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
- // 移除所有HTML标签
|
|
|
|
|
- item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('ShiJian') &&
|
|
|
|
|
- (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- } else if (item.pinyin.includes('ShiJian') && item.dataValue) {
|
|
|
|
|
- item.dataValue = item.dataValue.split(' ')[0]
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.originalText.includes('需要提供材料') &&
|
|
|
|
|
- item.dataValue
|
|
|
|
|
- ) {
|
|
|
|
|
- this.dataUploadUrl = item.dataValue
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
- // 移除所有HTML标签
|
|
|
|
|
- item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
- }
|
|
|
|
|
- if (documenName.includes('成本监审通知书')) {
|
|
|
|
|
- if (item.pinyin.includes('DanWeiMingCheng')) {
|
|
|
|
|
- item.dataValue = unit.unitName
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('FaRenDaiBiao')) {
|
|
|
|
|
- item.dataValue = unit?.corporateRepresentative || ''
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes(
|
|
|
|
|
- 'ChengBenJianShenTongZhiShuChuangJianRiQi'
|
|
|
|
|
- )
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (documenName.includes('成本监审提取资料登记表')) {
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('DengJiBiaoShengChengRiQi') &&
|
|
|
|
|
- (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (documenName.includes('成本审核初步意见表')) {
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('YiJianBiaoShengChengRiQi') &&
|
|
|
|
|
- (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (documenName.includes('政府定价成本监审结论报告')) {
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('BaoGaoRiQi') &&
|
|
|
|
|
- (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('JieLunBaoGaoChuangJianRiQi')) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('JianShenRenWuFaBuShiJian')) {
|
|
|
|
|
- let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
- (item2) => item2.pinyin === 'JianShenRenWuFaBuShiJian'
|
|
|
|
|
- ).dataValue
|
|
|
|
|
- item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes(
|
|
|
|
|
- 'ChengBenJianShenTongZhiShuShengChengShiJian'
|
|
|
|
|
- )
|
|
|
|
|
- ) {
|
|
|
|
|
- let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
- (item2) =>
|
|
|
|
|
- item2.pinyin ===
|
|
|
|
|
- 'ChengBenJianShenTongZhiShuShengChengShiJian'
|
|
|
|
|
- ).dataValue
|
|
|
|
|
- item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('ChengBenZiLiaoShangBaoShiJian')) {
|
|
|
|
|
- let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
- (item2) => item2.pinyin === 'ChengBenZiLiaoShangBaoShiJian'
|
|
|
|
|
- ).dataValue
|
|
|
|
|
- item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- // 回显文号
|
|
|
|
|
- // 获取选中的文号信息
|
|
|
|
|
- const selectedDocument = this.selectDocumentWhSelection[0]
|
|
|
|
|
- if (selectedDocument) {
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('WenHao') ||
|
|
|
|
|
- item.pinyin.includes('WenJianHao')
|
|
|
|
|
- ) {
|
|
|
|
|
- item.dataValue = selectedDocument.whNo
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('SongDaWenShuMingCheng')) {
|
|
|
|
|
- item.dataValue = selectedDocument.whName
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.formatDaValue(res)
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
getCostProjectDocumentFile({
|
|
getCostProjectDocumentFile({
|
|
@@ -864,144 +889,7 @@
|
|
|
// whereValue: this.project.projectId,
|
|
// whereValue: this.project.projectId,
|
|
|
id: this.document.id,
|
|
id: this.document.id,
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
- this.costDocumentTemplateFiles =
|
|
|
|
|
- JSON.parse(JSON.stringify(res.value || [])) || []
|
|
|
|
|
- this.resCostDocumentTemplateFiles =
|
|
|
|
|
- JSON.parse(JSON.stringify(res.value || [])) || []
|
|
|
|
|
- let unit = this.allUnits.find(
|
|
|
|
|
- (item) => item.unitId === this.document.enterpriseId
|
|
|
|
|
- )
|
|
|
|
|
- let documenName = this.getDocumentType({
|
|
|
|
|
- documentId: this.document.documentId,
|
|
|
|
|
- })
|
|
|
|
|
- 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
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.originalText.includes('需要提供材料') &&
|
|
|
|
|
- item.dataValue
|
|
|
|
|
- ) {
|
|
|
|
|
- this.dataUploadUrl = item.dataValue
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
- // 移除所有HTML标签
|
|
|
|
|
- item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('ShiJian') &&
|
|
|
|
|
- (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- } else if (item.pinyin.includes('ShiJian') && item.dataValue) {
|
|
|
|
|
- item.dataValue = item.dataValue.split(' ')[0]
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.originalText.includes('需要提供材料') &&
|
|
|
|
|
- item.dataValue
|
|
|
|
|
- ) {
|
|
|
|
|
- this.dataUploadUrl = item.dataValue
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('DiGaoNeiRong') && item.dataValue) {
|
|
|
|
|
- // 移除所有HTML标签
|
|
|
|
|
- item.dataValue = item.dataValue.replace(/<[^>]+>/g, '')
|
|
|
|
|
- }
|
|
|
|
|
- if (documenName.includes('成本监审通知书')) {
|
|
|
|
|
- if (item.pinyin.includes('DanWeiMingCheng')) {
|
|
|
|
|
- item.dataValue = unit.unitName
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('FaRenDaiBiao')) {
|
|
|
|
|
- item.dataValue = unit?.corporateRepresentative || ''
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes(
|
|
|
|
|
- 'ChengBenJianShenTongZhiShuChuangJianRiQi'
|
|
|
|
|
- )
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (documenName.includes('成本监审提取资料登记表')) {
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('DengJiBiaoShengChengRiQi') &&
|
|
|
|
|
- (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (documenName.includes('成本审核初步意见表')) {
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('YiJianBiaoShengChengRiQi') &&
|
|
|
|
|
- (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (documenName.includes('政府定价成本监审结论报告')) {
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('BaoGaoRiQi') &&
|
|
|
|
|
- (item.dataValue == null || item.dataValue == '')
|
|
|
|
|
- ) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('JieLunBaoGaoChuangJianRiQi')) {
|
|
|
|
|
- // 获取当前时间,格式为YYYY-MM-DD
|
|
|
|
|
- item.dataValue = moment(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('JianShenRenWuFaBuShiJian')) {
|
|
|
|
|
- let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
- (item2) => item2.pinyin === 'JianShenRenWuFaBuShiJian'
|
|
|
|
|
- ).dataValue
|
|
|
|
|
- item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
- }
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes(
|
|
|
|
|
- 'ChengBenJianShenTongZhiShuShengChengShiJian'
|
|
|
|
|
- )
|
|
|
|
|
- ) {
|
|
|
|
|
- let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
- (item2) =>
|
|
|
|
|
- item2.pinyin ===
|
|
|
|
|
- 'ChengBenJianShenTongZhiShuShengChengShiJian'
|
|
|
|
|
- ).dataValue
|
|
|
|
|
- item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('ChengBenZiLiaoShangBaoShiJian')) {
|
|
|
|
|
- let dataValue = this.resCostDocumentTemplateFiles.find(
|
|
|
|
|
- (item2) => item2.pinyin === 'ChengBenZiLiaoShangBaoShiJian'
|
|
|
|
|
- ).dataValue
|
|
|
|
|
- item.dataValue = (dataValue && dataValue.split(' ')[0]) || ''
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- // 回显文号
|
|
|
|
|
- // 获取选中的文号信息
|
|
|
|
|
- const selectedDocument = this.selectDocumentWhSelection[0]
|
|
|
|
|
- if (selectedDocument) {
|
|
|
|
|
- if (
|
|
|
|
|
- item.pinyin.includes('WenHao') ||
|
|
|
|
|
- item.pinyin.includes('WenJianHao')
|
|
|
|
|
- ) {
|
|
|
|
|
- item.dataValue = selectedDocument.whNo
|
|
|
|
|
- }
|
|
|
|
|
- if (item.pinyin.includes('SongDaWenShuMingCheng')) {
|
|
|
|
|
- item.dataValue = selectedDocument.whName
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.formatDaValue(res)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|