作者 朱兆平

入库业务录入部分完善

... ... @@ -13,7 +13,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label=" " :label-width="formLabelWidth" prop="waybill">
<el-form-item label=" " :label-width="formLabelWidth" prop="waybillmaster">
<el-input v-model="addForm.waybillmaster" autocomplete="off" suffix-icon="el-icon-document" clearable>
<template slot="prepend">主&emsp;&emsp;单</template>
</el-input>
... ... @@ -265,7 +265,7 @@
查询
</el-button>
<el-button type="success" icon="el-icon-edit" @click="applyAdd()">直接入库</el-button>
<el-button type="success" icon="el-icon-edit" @click="applyAdd()">批量入库</el-button>
<el-button type="success" icon="el-icon-edit" @click="batchAdd()">批量入库</el-button>
</el-col>
</el-row>
<!-- 列表区域-->
... ... @@ -472,7 +472,8 @@
transcar: '',
transtype:'销售入库',
vol:'',
waybill:'',
waybillmaster:'',
waybillsub:'',
weight:'',
remark:'',
remark1:'',
... ... @@ -592,6 +593,13 @@
this.dialogApply= 'create';
this.apply_dialog.addDialog = true;
},
batchAdd(){
this.$refs.addForm.validate(valid => {
// 未通过,表单预校验
if (!valid) return;
this.tableData.push(this.addForm);
})
},
// 添加功能
add() {
this.$refs.addForm.validate(valid => {
... ...