优化上传题型

This commit is contained in:
BianLzhaoMin 2024-07-11 09:41:49 +08:00
parent 6baa14cc5f
commit 947dc56d6c
3 changed files with 14 additions and 8 deletions

View File

@ -30,7 +30,7 @@ export default {
}, },
data() { data() {
return { return {
filePreviewUrl: process.env.VUE_APP_BASE_API + '/system/', filePreviewUrl: process.env.VUE_APP_BASE_API + '/system',
} }
}, },
computed: { computed: {

View File

@ -79,11 +79,13 @@
placeholder="请选择到货日期" placeholder="请选择到货日期"
:picker-options="{ :picker-options="{
// //
disabledDate: time => { disabledDate: (time) => {
const currentDate = new Date(maForm.purchaseTime || new Date()) const currentDate = new Date(
maForm.purchaseTime || new Date(),
)
currentDate.setDate(currentDate.getDate() - 1) currentDate.setDate(currentDate.getDate() - 1)
return time.getTime() < currentDate.getTime() return time.getTime() < currentDate.getTime()
} },
}" }"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
@ -607,7 +609,6 @@ export default {
this.loading = false this.loading = false
}) })
} else if (!this.isEdit) { } else if (!this.isEdit) {
console.log('新增')
this.loading = true this.loading = true
addPurchaseCheckInfo( addPurchaseCheckInfo(
this.maForm, this.maForm,

View File

@ -158,10 +158,15 @@
</template> </template>
<template v-else> - </template> --> <template v-else> - </template> -->
<el-button type="text" @click="handleQueryFile(row)" <el-button
v-if="row.status == 1"
type="text"
@click="handleQueryFile(row)"
>查看附件</el-button >查看附件</el-button
> >
<template v-else>-</template>
<!-- <div <!-- <div
v-for="(item, index) in scope.row.imgUrlList" v-for="(item, index) in scope.row.imgUrlList"
:key="index" :key="index"
@ -303,7 +308,7 @@
<el-row class="upload-tip"> <el-row class="upload-tip">
<span class="tip-text" <span class="tip-text"
>请上传jpgjpegpng.pdf >请上传jpgjpegpng.pdf
.doc.docx格式的文件单个文件大小不可超过1M最多可上传5个文件</span .doc.docx格式的文件单个文件大小不可超过10M最多可上传5个文件</span
> >
</el-row> </el-row>
</template> </template>
@ -371,7 +376,7 @@
<el-row class="upload-tip"> <el-row class="upload-tip">
<span class="tip-text" <span class="tip-text"
>请上传jpgjpegpng.pdf >请上传jpgjpegpng.pdf
.doc.docx格式的文件单个文件大小不可超过1M最多可上传5个文件</span .doc.docx格式的文件单个文件大小不可超过10M最多可上传5个文件</span
> >
</el-row> </el-row>
</template> </template>