优化上传题型
This commit is contained in:
parent
6baa14cc5f
commit
947dc56d6c
|
|
@ -30,7 +30,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
filePreviewUrl: process.env.VUE_APP_BASE_API + '/system/',
|
||||
filePreviewUrl: process.env.VUE_APP_BASE_API + '/system',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
|
|
@ -79,11 +79,13 @@
|
|||
placeholder="请选择到货日期"
|
||||
:picker-options="{
|
||||
// 设置当前时间为 采购日期
|
||||
disabledDate: time => {
|
||||
const currentDate = new Date(maForm.purchaseTime || new Date())
|
||||
disabledDate: (time) => {
|
||||
const currentDate = new Date(
|
||||
maForm.purchaseTime || new Date(),
|
||||
)
|
||||
currentDate.setDate(currentDate.getDate() - 1)
|
||||
return time.getTime() < currentDate.getTime()
|
||||
}
|
||||
},
|
||||
}"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
|
|
@ -607,7 +609,6 @@ export default {
|
|||
this.loading = false
|
||||
})
|
||||
} else if (!this.isEdit) {
|
||||
console.log('新增')
|
||||
this.loading = true
|
||||
addPurchaseCheckInfo(
|
||||
this.maForm,
|
||||
|
|
|
|||
|
|
@ -158,10 +158,15 @@
|
|||
</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
|
||||
>
|
||||
|
||||
<template v-else>-</template>
|
||||
|
||||
<!-- <div
|
||||
v-for="(item, index) in scope.row.imgUrlList"
|
||||
:key="index"
|
||||
|
|
@ -303,7 +308,7 @@
|
|||
<el-row class="upload-tip">
|
||||
<span class="tip-text"
|
||||
>请上传jpg、jpeg、png、.pdf
|
||||
、.doc、.docx格式的文件,单个文件大小不可超过1M,最多可上传5个文件</span
|
||||
、.doc、.docx格式的文件,单个文件大小不可超过10M,最多可上传5个文件</span
|
||||
>
|
||||
</el-row>
|
||||
</template>
|
||||
|
|
@ -371,7 +376,7 @@
|
|||
<el-row class="upload-tip">
|
||||
<span class="tip-text"
|
||||
>请上传jpg、jpeg、png、.pdf
|
||||
、.doc、.docx格式的文件,单个文件大小不可超过1M,最多可上传5个文件</span
|
||||
、.doc、.docx格式的文件,单个文件大小不可超过10M,最多可上传5个文件</span
|
||||
>
|
||||
</el-row>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue