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