优化上传题型
This commit is contained in:
parent
6baa14cc5f
commit
947dc56d6c
|
|
@ -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: {
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
>请上传jpg、jpeg、png、.pdf
|
>请上传jpg、jpeg、png、.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"
|
||||||
>请上传jpg、jpeg、png、.pdf
|
>请上传jpg、jpeg、png、.pdf
|
||||||
、.doc、.docx格式的文件,单个文件大小不可超过1M,最多可上传5个文件</span
|
、.doc、.docx格式的文件,单个文件大小不可超过10M,最多可上传5个文件</span
|
||||||
>
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue