fix:coding#4511
This commit is contained in:
parent
ce51133d4c
commit
880c655e63
|
|
@ -66,10 +66,10 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24">
|
||||||
<el-form-item label="主要输入" prop="material_in">
|
<el-form-item label="输入物料" prop="material_in">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.material_in"
|
v-model="form.material_in"
|
||||||
placeholder="物料"
|
placeholder="输入物料"
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
:value-on-clear="null"
|
:value-on-clear="null"
|
||||||
|
|
@ -99,10 +99,10 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24">
|
||||||
<el-form-item label="主要输出" prop="material_out">
|
<el-form-item label="输出物料" prop="material_out">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.material_out"
|
v-model="form.material_out"
|
||||||
placeholder="物料"
|
placeholder="输出物料"
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
:value-on-clear="null"
|
:value-on-clear="null"
|
||||||
|
|
@ -131,10 +131,10 @@
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
|
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24">
|
||||||
<el-form-item label="工时" prop="hour_work">
|
<el-form-item label="计划时长" prop="hour_work">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="form.hour_work"
|
v-model="form.hour_work"
|
||||||
:min="1"
|
:min="0"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -171,9 +171,12 @@ const defaultForm = {
|
||||||
process: null,
|
process: null,
|
||||||
sort: 1,
|
sort: 1,
|
||||||
out_rate: 100,
|
out_rate: 100,
|
||||||
|
material_in:'',
|
||||||
|
material_out:'',
|
||||||
|
hour_work:0,
|
||||||
batch_bind: true,
|
batch_bind: true,
|
||||||
is_autotask: true,
|
// is_autotask: true,
|
||||||
is_count_utask: false,
|
// is_count_utask: false,
|
||||||
};
|
};
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -185,7 +188,7 @@ export default {
|
||||||
loading: false,
|
loading: false,
|
||||||
mode: "add",
|
mode: "add",
|
||||||
//表单数据
|
//表单数据
|
||||||
form: defaultForm,
|
form: Object.assign({}, defaultForm),
|
||||||
//验证规则
|
//验证规则
|
||||||
rules: {
|
rules: {
|
||||||
process: [
|
process: [
|
||||||
|
|
|
||||||
|
|
@ -211,11 +211,14 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const defaultForm = {
|
const defaultForm = {
|
||||||
note: "",
|
mtype: "",
|
||||||
|
supplier:'',
|
||||||
route: "",
|
route: "",
|
||||||
equipment: "",
|
equipment: "",
|
||||||
handle_user: null,
|
handle_user: null,
|
||||||
work_start_time: "",
|
work_start_time: "",
|
||||||
|
work_end_time:'',
|
||||||
|
note:'',
|
||||||
reminder_interval_list: [],
|
reminder_interval_list: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -251,7 +254,7 @@ export default {
|
||||||
show: "查看日志",
|
show: "查看日志",
|
||||||
},
|
},
|
||||||
//表单数据
|
//表单数据
|
||||||
form: defaultForm,
|
form: Object.assign({}, defaultForm),
|
||||||
//验证规则
|
//验证规则
|
||||||
rules: {
|
rules: {
|
||||||
supplier: [
|
supplier: [
|
||||||
|
|
@ -341,8 +344,6 @@ export default {
|
||||||
open(mode = "add") {
|
open(mode = "add") {
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.$refs.dialogForm.resetFields();
|
|
||||||
this.$refs.dialogForm.clearValidate();
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
//表单注入数据
|
//表单注入数据
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue