白坯订单 单位可选 默认PC

yangwl
A0010407 1 year ago
parent 3708df000d
commit 88064b6489

@ -323,7 +323,14 @@
<el-col :offset="1" :span="9">
<el-form-item label-width="100px" label="单位" prop="unit">
<el-input v-model="form.unit" placeholder="请输入单位"/>
<el-select v-model="form.unit" placeholder="请输入单位" style="width:220px">
<el-option
v-for="dict in dict.type.bp"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item v-if="false" label-width="100px" label="订单车数" prop="carNum">
@ -608,7 +615,7 @@ import {getProEquipment, selectMaterielList, subSplitOrder} from "@/api/plan/ord
export default {
name: "WhiteOrder",
dicts: ['product_type', 'order_status'],
dicts: ['product_type', 'order_status','bp'],
components: {
Treeselect
},
@ -1280,6 +1287,7 @@ export default {
this.reset();
//
this.form.prodType = 'white'
this.form.unit = 'PC';
//
this.form.planProDate = moment(new Date()).format('YYYY-MM-DD')
//
@ -1333,6 +1341,7 @@ export default {
// })
// return
// }
this.form.unit = 'PC';
if (this.form.unit == null) {
this.$message({
message: '请输入单位!',
@ -1345,7 +1354,7 @@ export default {
addWhiteOrder(this.form).then(response => {
this.$modal.msgSuccess('新增成功')
this.dialogVisible = false
this.reset()
this.reset();
this.getList()
});
},

Loading…
Cancel
Save