测试问题修改

This commit is contained in:
zzyuan 2025-08-14 16:17:47 +08:00
parent 6a821436bd
commit bc8a230f04
5 changed files with 25 additions and 14 deletions

View File

@ -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"
@ -640,6 +641,14 @@ export default {
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)
let sum = 0 let sum = 0

View File

@ -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">

View File

@ -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>

View File

@ -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">