作者 朱兆平

入库业务录入部分完善

@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 </el-form-item> 13 </el-form-item>
14 </el-col> 14 </el-col>
15 <el-col :span="6"> 15 <el-col :span="6">
16 - <el-form-item label=" " :label-width="formLabelWidth" prop="waybill"> 16 + <el-form-item label=" " :label-width="formLabelWidth" prop="waybillmaster">
17 <el-input v-model="addForm.waybillmaster" autocomplete="off" suffix-icon="el-icon-document" clearable> 17 <el-input v-model="addForm.waybillmaster" autocomplete="off" suffix-icon="el-icon-document" clearable>
18 <template slot="prepend">主&emsp;&emsp;单</template> 18 <template slot="prepend">主&emsp;&emsp;单</template>
19 </el-input> 19 </el-input>
@@ -265,7 +265,7 @@ @@ -265,7 +265,7 @@
265 查询 265 查询
266 </el-button> 266 </el-button>
267 <el-button type="success" icon="el-icon-edit" @click="applyAdd()">直接入库</el-button> 267 <el-button type="success" icon="el-icon-edit" @click="applyAdd()">直接入库</el-button>
268 - <el-button type="success" icon="el-icon-edit" @click="applyAdd()">批量入库</el-button> 268 + <el-button type="success" icon="el-icon-edit" @click="batchAdd()">批量入库</el-button>
269 </el-col> 269 </el-col>
270 </el-row> 270 </el-row>
271 <!-- 列表区域--> 271 <!-- 列表区域-->
@@ -472,7 +472,8 @@ @@ -472,7 +472,8 @@
472 transcar: '', 472 transcar: '',
473 transtype:'销售入库', 473 transtype:'销售入库',
474 vol:'', 474 vol:'',
475 - waybill:'', 475 + waybillmaster:'',
  476 + waybillsub:'',
476 weight:'', 477 weight:'',
477 remark:'', 478 remark:'',
478 remark1:'', 479 remark1:'',
@@ -592,6 +593,13 @@ @@ -592,6 +593,13 @@
592 this.dialogApply= 'create'; 593 this.dialogApply= 'create';
593 this.apply_dialog.addDialog = true; 594 this.apply_dialog.addDialog = true;
594 }, 595 },
  596 + batchAdd(){
  597 + this.$refs.addForm.validate(valid => {
  598 + // 未通过,表单预校验
  599 + if (!valid) return;
  600 + this.tableData.push(this.addForm);
  601 + })
  602 + },
595 // 添加功能 603 // 添加功能
596 add() { 604 add() {
597 this.$refs.addForm.validate(valid => { 605 this.$refs.addForm.validate(valid => {