计划模块(车数)

yangwl
wws 1 year ago
parent b368b72d00
commit 759d183547

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

Loading…
Cancel
Save