测试问题修改
This commit is contained in:
parent
6a821436bd
commit
bc8a230f04
|
|
@ -97,6 +97,7 @@
|
|||
:show-file-list="true"
|
||||
:file-list="attachmentList"
|
||||
:on-remove="handleRemoveFile"
|
||||
:before-upload="checkFileSize"
|
||||
>
|
||||
<el-button
|
||||
:disabled="attachmentList.length==5"
|
||||
|
|
@ -630,16 +631,24 @@ export default {
|
|||
fileUpLoad(param){
|
||||
param.type = 'canteen'
|
||||
imgUpLoadTwo(param).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.attachmentList.push(res.data)
|
||||
this.baseInfo.contractAttachmentList.push(res.data.url)
|
||||
} else {
|
||||
this.$modal.msgError(res.msg);
|
||||
}
|
||||
}).catch((error) => {
|
||||
if (res.code == 200) {
|
||||
this.attachmentList.push(res.data)
|
||||
this.baseInfo.contractAttachmentList.push(res.data.url)
|
||||
} else {
|
||||
this.$modal.msgError(res.msg);
|
||||
}
|
||||
}).catch((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){
|
||||
console.log(this.attachmentList)
|
||||
let sum = 0
|
||||
|
|
|
|||
|
|
@ -84,12 +84,12 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="参考价(元)" align="center" prop="unitPrice" :show-overflow-tooltip="true">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购数量" align="center" prop="purchaseNum" :show-overflow-tooltip="true">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<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==3">调拨入库</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==7">期初入库</span>
|
||||
<span v-if="baseInfo.intoType==7">期初入库</span> -->
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">入库时间</template>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
</el-form-item>
|
||||
<el-form-item label="入库类型" prop="intoType">
|
||||
<el-select v-model="baseInfo.intoType" placeholder="请选择入库类型" style="width: 240px;">
|
||||
<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="4"></el-option>
|
||||
</el-select>
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@
|
|||
<el-option label="采购入库" :value="1"></el-option>
|
||||
<el-option label="退料入库" :value="2"></el-option>
|
||||
<el-option label="调拨入库" :value="3"></el-option>
|
||||
<el-option label="即入即出" :value="4"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
|
|
@ -89,6 +90,7 @@
|
|||
<span v-if="scope.row.intoType==1">采购入库</span>
|
||||
<span v-if="scope.row.intoType==2">退料入库</span>
|
||||
<span v-if="scope.row.intoType==3">调拨入库</span>
|
||||
<span v-if="scope.row.intoType==4">即入即出</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="质检报告" align="center" prop="" :show-overflow-tooltip="true" width="100">
|
||||
|
|
|
|||
Loading…
Reference in New Issue