|
|
|
@ -335,8 +335,8 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- 第二列 -->
|
|
|
|
|
<el-col :offset="1" :span="9">
|
|
|
|
|
<el-form-item label-width="100px" label="单位" prop="unit">
|
|
|
|
|
<el-input v-model="form.unit" placeholder="请输入单位"/>
|
|
|
|
|
<el-form-item label-width="100px" label="订单车数" prop="carNum">
|
|
|
|
|
<el-input @change="changeCarNum" type="number" v-model="form.carNum" placeholder="请输入车数"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -354,6 +354,12 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- 第二列 -->
|
|
|
|
|
<el-col :offset="1" :span="9">
|
|
|
|
|
<el-form-item label-width="100px" label="单位" prop="unit">
|
|
|
|
|
<el-input v-model="form.unit" placeholder="请输入单位"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
@ -642,12 +648,21 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 校验车数
|
|
|
|
|
changeCarNum(num) {
|
|
|
|
|
if (num<=0){
|
|
|
|
|
this.form.carNum = 1;
|
|
|
|
|
this.$message({
|
|
|
|
|
message:"车数不能小于1",
|
|
|
|
|
type:"warning"
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 新增按钮操作
|
|
|
|
|
setUp() {
|
|
|
|
|
this.dialogVisible = true;
|
|
|
|
|
// 清空缓存
|
|
|
|
|
this.form.prodCode = null;
|
|
|
|
|
this.form.prodDesc = null;
|
|
|
|
|
this.form = {}
|
|
|
|
|
},
|
|
|
|
|
// 确认选择物料
|
|
|
|
|
subMateriel() {
|
|
|
|
|