凭证选择修改

main
mo 1 year ago
parent 7c99ff82ca
commit e0d6d2ce15

@ -161,16 +161,19 @@
> >
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<!-- <el-form-item label="凭证号" prop="voucherNum"> <el-form-item label="会计凭证" prop="voucherNum">
<el-input v-model="form.voucherNum" placeholder="请输入凭证号" /> <el-select
</el-form-item> --> v-model="form.voucherNum"
<el-form-item label="会计凭证" prop="voucherId"> filterable
<el-select v-model="form.voucherId" placeholder="请选择会计凭证"> placeholder="请选择会计凭证"
value-key="id"
@change="handleSelectVoucher"
>
<el-option <el-option
v-for="item in kjpzOptions" v-for="item in kjpzOptions"
:key="item.id" :key="item.id"
:label="item.voucherNum" :label="item.voucherNum"
:value="item.id" :value="item"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -372,6 +375,11 @@ export default {
this.form.fileName = res.data.name; this.form.fileName = res.data.name;
this.form.fileSize = res.data.size; this.form.fileSize = res.data.size;
}, },
//
handleSelectVoucher(val) {
this.form.voucherId = val.id;
this.form.voucherNum = val.voucherNum;
},
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {

Loading…
Cancel
Save