Merge remote-tracking branch 'origin/dev_mobile_20230630' into dev_mobile_20230630

This commit is contained in:
高嵩
2023-07-14 11:38:29 +08:00
6 changed files with 55 additions and 10 deletions
@@ -71,6 +71,13 @@
ellipsis: true, ellipsis: true,
width: 100 width: 100
}, },
{
title: this.$t('DisplayOrder'),
align: 'left',
width: 100,
ellipsis: true,
dataIndex: 'sortOrder'
},
{ {
title: this.$t('describe'), title: this.$t('describe'),
align: 'left', align: 'left',
@@ -73,6 +73,13 @@
ellipsis: true, ellipsis: true,
width: 100 width: 100
}, },
{
title: this.$t('DisplayOrder'),
align: 'left',
width: 100,
ellipsis: true,
dataIndex: 'sortOrder'
},
{ {
title: this.$t('describe'), title: this.$t('describe'),
dataIndex: 'description', dataIndex: 'description',
@@ -53,7 +53,7 @@
<!-- {{item.serialNumber}}--> <!-- {{item.serialNumber}}-->
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<div class="content-text-button"> <div class="content-text-top">
<span> {{item.title}}</span> <span> {{item.title}}</span>
</div> </div>
</div> </div>
@@ -273,7 +273,7 @@
} }
.content-text-button { .content-text-button {
font-size: 0.42rem; font-size: 0.37rem;
font-family: PingFang SC-Regular, PingFang SC; font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #595E72; color: #595E72;
+1 -1
View File
@@ -176,7 +176,7 @@
} }
.content-text-button { .content-text-button {
font-size: 0.42rem; font-size: 0.37rem;
font-family: PingFang SC-Regular, PingFang SC; font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #595E72; color: #595E72;
@@ -1,7 +1,7 @@
<template> <template>
<div class="box"> <div class="box">
<div class="header-search"> <div class="header-search">
<!-- <van-icon @click="iconClick" class="icon" name="arrow-left"/>--> <!-- <van-icon @click="iconClick" class="icon" name="arrow-left"/>-->
<span class="header-search-text"> <span class="header-search-text">
{{$route.query.projectName + ' ' + $t('preHomoFlow')}} {{$route.query.projectName + ' ' + $t('preHomoFlow')}}
</span> </span>
@@ -35,8 +35,14 @@
<span class="content-box-text">{{queryForm.dutyTerritoryName || '--'}}</span> <span class="content-box-text">{{queryForm.dutyTerritoryName || '--'}}</span>
</div> </div>
<div class="content-box-type"> <div class="content-box-type">
<span class="content-box-left">{{$t('engineeringInterfacePerson')}}</span> <span class="content-box-left">{{$t('certifiedEngineer')}}</span>
<span class="content-box-text">{{queryForm.sdtName || '--'}}</span> <span class="content-box-text" v-if="certificationEngineerName && certificationEngineerName.length > 0">
<span class="content-box-textList"
v-for="(item,index) in certificationEngineerName" :key="index">
{{item}}
</span>
</span>
<span class="content-box-text" v-else>--</span>
</div> </div>
</van-collapse-item> </van-collapse-item>
@@ -280,6 +286,7 @@
deliverablesResultFile: [], deliverablesResultFile: [],
deliveryResultList: [], deliveryResultList: [],
isDisplay: false, isDisplay: false,
certificationEngineerName: [],
url: { url: {
queryProjectCertificationInventoryById: '/phone/toDoCenter/queryProjectCertificationInventoryById', queryProjectCertificationInventoryById: '/phone/toDoCenter/queryProjectCertificationInventoryById',
saveBatch: '/project/projectCertificationInventoryEO/saveBatch' saveBatch: '/project/projectCertificationInventoryEO/saveBatch'
@@ -295,7 +302,6 @@
iconClick() { iconClick() {
this.$router.go(-1) this.$router.go(-1)
}, },
getFileInfos(item) { getFileInfos(item) {
getAction('sys/common/getFileInfos', { id: item }).then((res) => { getAction('sys/common/getFileInfos', { id: item }).then((res) => {
if (res.success) { if (res.success) {
@@ -450,11 +456,26 @@
this.getDeliveryResult(this.queryForm.deliverableTemplate) this.getDeliveryResult(this.queryForm.deliverableTemplate)
} }
this.queryForm = { ...this.queryForm } this.queryForm = { ...this.queryForm }
this.getForm()
} else { } else {
this.queryForm = {} this.queryForm = {}
} }
}) })
}, },
getForm() {
getAction('project/projectLibraryBase/queryById',
{ id: this.queryForm.projectLibraryId }).then((res) => {
if (res.success) {
this.certificationEngineerName = []
this.certificationEngineerName = res.result[0].certificationEngineerName || ''
if (this.certificationEngineerName && typeof this.certificationEngineerName == 'string') {
this.certificationEngineerName = this.certificationEngineerName.split(',')
} else {
this.certificationEngineerName = []
}
}
})
},
async upload(file) { async upload(file) {
// 这时候我们创建一个formData对象实例 // 这时候我们创建一个formData对象实例
const formData = new FormData() const formData = new FormData()
@@ -498,10 +519,10 @@
if (!this.isBrowser()) { if (!this.isBrowser()) {
Dialog.alert({ Dialog.alert({
message: '未授权用户 <br> Unauthorized User', message: '未授权用户 <br> Unauthorized User',
theme: 'round-button', theme: 'round-button'
}).then(() => { }).then(() => {
// on close // on close
}); })
return return
} }
let url = kkFileView(item.fileName, item.id) let url = kkFileView(item.fileName, item.id)
@@ -975,4 +996,14 @@
::v-deep .productionEnterpriseName .van-field__error-message { ::v-deep .productionEnterpriseName .van-field__error-message {
display: none; display: none;
} }
.content-box-textList {
display: inline-block;
width: 100%;
font-size: 0.38rem;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 500;
color: #040B29;
word-break: break-all;
}
</style> </style>
@@ -194,7 +194,7 @@
} }
.content-text-button { .content-text-button {
font-size: 0.42rem; font-size: 0.37rem;
font-family: PingFang SC-Regular, PingFang SC; font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #595E72; color: #595E72;