fix:bx日志新增时工艺路线必选,日志提交可以没有结束时间
This commit is contained in:
parent
54e4732483
commit
96d0202421
|
@ -933,21 +933,6 @@ export default {
|
||||||
mlogSubmit() {
|
mlogSubmit() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.isSaveing = true;
|
that.isSaveing = true;
|
||||||
if(that.mlogItem.work_end_time==''||that.mlogItem.work_end_time==null){
|
|
||||||
that.$API.bi.servertime.req().then((res) => {
|
|
||||||
let obj = {};
|
|
||||||
obj.work_end_time = res.server_time;
|
|
||||||
obj.handle_date = this.$TOOL.dateFormat2(new Date());
|
|
||||||
that.$API.wpm.mlog.change.req(that.mlogItem.id, obj).then((res) => {
|
|
||||||
that.submitMlog();
|
|
||||||
});
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
that.submitMlog();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
submitMlog(){
|
|
||||||
let that = this;
|
|
||||||
that.$API.wpm.mlog.submit.req(that.mlogItem.id).then((res) => {
|
that.$API.wpm.mlog.submit.req(that.mlogItem.id).then((res) => {
|
||||||
that.isSaveing = false;
|
that.isSaveing = false;
|
||||||
that.visible = false;
|
that.visible = false;
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-if="mlogtype!=='rework'">
|
<el-col v-if="mlogtype!=='rework'">
|
||||||
<el-form-item label="工艺路线">
|
<el-form-item label="工艺路线" prop="route">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.route"
|
v-model="form.route"
|
||||||
placeholder="工艺路线"
|
placeholder="工艺路线"
|
||||||
|
|
|
@ -137,7 +137,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="12" :sm="12" :xs="24">
|
<el-col :md="12" :sm="12" :xs="24">
|
||||||
<el-form-item label="工艺路线:">
|
<el-form-item label="工艺路线:" prop="route">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.route"
|
v-model="form.route"
|
||||||
placeholder="工艺路线"
|
placeholder="工艺路线"
|
||||||
|
@ -224,6 +224,13 @@ export default {
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
route: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请选择工艺路线",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
wm_in: "",
|
wm_in: "",
|
||||||
route_code:"",
|
route_code:"",
|
||||||
|
|
Loading…
Reference in New Issue