|
|
|
@ -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()
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|