测试问题修改
This commit is contained in:
parent
6a821436bd
commit
bc8a230f04
|
|
@ -97,6 +97,7 @@
|
||||||
:show-file-list="true"
|
:show-file-list="true"
|
||||||
:file-list="attachmentList"
|
:file-list="attachmentList"
|
||||||
:on-remove="handleRemoveFile"
|
:on-remove="handleRemoveFile"
|
||||||
|
:before-upload="checkFileSize"
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="attachmentList.length==5"
|
:disabled="attachmentList.length==5"
|
||||||
|
|
@ -630,15 +631,23 @@ export default {
|
||||||
fileUpLoad(param){
|
fileUpLoad(param){
|
||||||
param.type = 'canteen'
|
param.type = 'canteen'
|
||||||
imgUpLoadTwo(param).then((res) => {
|
imgUpLoadTwo(param).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.attachmentList.push(res.data)
|
this.attachmentList.push(res.data)
|
||||||
this.baseInfo.contractAttachmentList.push(res.data.url)
|
this.baseInfo.contractAttachmentList.push(res.data.url)
|
||||||
} else {
|
} else {
|
||||||
this.$modal.msgError(res.msg);
|
this.$modal.msgError(res.msg);
|
||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$modal.msgError(error)
|
this.$modal.msgError(error)
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
checkFileSize(file) {
|
||||||
|
const isLtMax = file.size / 1024 / 1024 < 5; // 文件大小小于设置的最大值
|
||||||
|
if (!isLtMax) {
|
||||||
|
this.$message.error(`上传文件大小不能超过 5MB!`);
|
||||||
|
return false; // 阻止文件上传
|
||||||
|
}
|
||||||
|
return true; // 允许文件上传
|
||||||
},
|
},
|
||||||
handleRemoveFile(file, fileList){
|
handleRemoveFile(file, fileList){
|
||||||
console.log(this.attachmentList)
|
console.log(this.attachmentList)
|
||||||
|
|
|
||||||
|
|
@ -84,12 +84,12 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="参考价(元)" align="center" prop="unitPrice" :show-overflow-tooltip="true">
|
<el-table-column label="参考价(元)" align="center" prop="unitPrice" :show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.unitPrice" placeholder="请输入" maxlength="9" clearable @input="(v)=>(scope.row.unitPrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
|
<el-input v-model="scope.row.unitPrice" placeholder="请输入" maxlength="6" clearable @input="(v)=>(scope.row.unitPrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="采购数量" align="center" prop="purchaseNum" :show-overflow-tooltip="true">
|
<el-table-column label="采购数量" align="center" prop="purchaseNum" :show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model.number="scope.row.purchaseNum" placeholder="请输入" maxlength="7" clearable @input="(v)=>(scope.row.purchaseNum=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
|
<el-input v-model.number="scope.row.purchaseNum" placeholder="请输入" maxlength="6" clearable @input="(v)=>(scope.row.purchaseNum=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="预计采购金额(元)" align="center" prop="" :show-overflow-tooltip="true">
|
<el-table-column label="预计采购金额(元)" align="center" prop="" :show-overflow-tooltip="true">
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,9 @@
|
||||||
<span v-if="baseInfo.intoType==2">退料入库</span>
|
<span v-if="baseInfo.intoType==2">退料入库</span>
|
||||||
<span v-if="baseInfo.intoType==3">调拨入库</span>
|
<span v-if="baseInfo.intoType==3">调拨入库</span>
|
||||||
<span v-if="baseInfo.intoType==4">即入即出</span>
|
<span v-if="baseInfo.intoType==4">即入即出</span>
|
||||||
<span v-if="baseInfo.intoType==5">超市退单入库</span>
|
<!-- <span v-if="baseInfo.intoType==5">超市退单入库</span>
|
||||||
<span v-if="baseInfo.intoType==6">盘点入库</span>
|
<span v-if="baseInfo.intoType==6">盘点入库</span>
|
||||||
<span v-if="baseInfo.intoType==7">期初入库</span>
|
<span v-if="baseInfo.intoType==7">期初入库</span> -->
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">入库时间</template>
|
<template slot="label">入库时间</template>
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@
|
||||||
<el-option label="采购入库" :value="1"></el-option>
|
<el-option label="采购入库" :value="1"></el-option>
|
||||||
<el-option label="退料入库" :value="2"></el-option>
|
<el-option label="退料入库" :value="2"></el-option>
|
||||||
<el-option label="调拨入库" :value="3"></el-option>
|
<el-option label="调拨入库" :value="3"></el-option>
|
||||||
|
<el-option label="即入即出" :value="4"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
|
@ -89,6 +90,7 @@
|
||||||
<span v-if="scope.row.intoType==1">采购入库</span>
|
<span v-if="scope.row.intoType==1">采购入库</span>
|
||||||
<span v-if="scope.row.intoType==2">退料入库</span>
|
<span v-if="scope.row.intoType==2">退料入库</span>
|
||||||
<span v-if="scope.row.intoType==3">调拨入库</span>
|
<span v-if="scope.row.intoType==3">调拨入库</span>
|
||||||
|
<span v-if="scope.row.intoType==4">即入即出</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="质检报告" align="center" prop="" :show-overflow-tooltip="true" width="100">
|
<!-- <el-table-column label="质检报告" align="center" prop="" :show-overflow-tooltip="true" width="100">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue