diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue
index 18dcb787..33b831b4 100644
--- a/src/views/wpm_gx/mlog_form.vue
+++ b/src/views/wpm_gx/mlog_form.vue
@@ -13,64 +13,52 @@
:model="form"
:rules="rules"
label-position="right"
- label-width="80px"
+ label-width="100px"
style="padding: 0 10px"
>
-
-
+
+ style="width: 100%"
+ >
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ (h)
+
+
@@ -198,14 +224,21 @@ export default {
loading: false,
mode: "add",
titleMap: {
- add: "新增",
- edit: "编辑",
- show: "查看",
+ add: "新增日志",
+ edit: "编辑日志",
+ show: "查看日志",
},
//表单数据
form: defaultForm,
//验证规则
rules: {
+ supplier: [
+ {
+ required: true,
+ message: "请选择供应商",
+ trigger: "blur",
+ },
+ ],
work_start_time: [
{
required: true,
@@ -228,17 +261,23 @@ export default {
},
],
},
+ typeOptions: [
+ { id: 10, name: "自产" },
+ { id: 20, name: "外协" },
+ ],
visible: false,
isSaveing: false,
options: [],
routeOptions: [],
userOptions: [],
+ supplierOptions: [],
setFiltersVisible: false,
};
},
mounted() {
this.getRoute();
this.getUser();
+ this.getSupplier();
this.getEquipment();
},
methods: {
@@ -255,6 +294,15 @@ export default {
this.options = res;
});
},
+ getSupplier() {
+ let that = this;
+ let obj = {};
+ obj.page = 0;
+ obj.can_outsource = true;
+ that.$API.pum.supplier.list.req(obj).then((res) => {
+ that.supplierOptions = res;
+ });
+ },
getRoute(id) {
let that = this;
that.$API.mtm.route.list
@@ -319,4 +367,9 @@ export default {
};
-
+