计划模块(车数)

master
wws 1 year ago
parent b368b72d00
commit 759d183547

@ -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() {

Loading…
Cancel
Save