记账凭证-必填项校验

main
mo 1 year ago
parent ef42ba826b
commit 068bf7cabe

@ -204,11 +204,6 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="8">
<el-form-item label="条目顺序号" prop="lineNum">
<el-input v-model="form.lineNum" placeholder="请输入条目顺序号" />
</el-form-item>
</el-col> -->
<el-col :span="8"> <el-col :span="8">
<el-form-item label="科目编码" prop="subjectCode"> <el-form-item label="科目编码" prop="subjectCode">
<el-input <el-input
@ -227,6 +222,11 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="8">
<el-form-item label="条目顺序号" prop="lineNum">
<el-input v-model="form.lineNum" placeholder="请输入条目顺序号" />
</el-form-item>
</el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="辅助核算" prop="assistCheck"> <el-form-item label="辅助核算" prop="assistCheck">
<el-input <el-input
@ -252,8 +252,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="8">
<el-form-item label="摘要" prop="digest"> <el-form-item label="摘要" prop="digest">
<el-input <el-input
v-model="form.digest" v-model="form.digest"
@ -262,8 +260,6 @@
placeholder="请输入摘要" placeholder="请输入摘要"
/> />
</el-form-item> </el-form-item>
</el-col>
</el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm" v-if="optType != 'view'" <el-button type="primary" @click="submitForm" v-if="optType != 'view'"
@ -346,6 +342,12 @@ export default {
voucherNum: [ voucherNum: [
{ required: true, message: "凭证号不能为空", trigger: "blur" }, { required: true, message: "凭证号不能为空", trigger: "blur" },
], ],
subjectCode: [
{ required: true, message: "科目编码不能为空", trigger: "blur" },
],
subjectName: [
{ required: true, message: "科目名称不能为空", trigger: "blur" },
],
}, },
}; };
}, },

Loading…
Cancel
Save