From 7d7c5f2dcc43dac9381a38659691d169eeb9c942 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 24 Jul 2024 16:41:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E8=8A=AF-=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=A2=9E=E5=8A=A0=E5=A4=96=E5=8D=8F=E5=8D=95?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/mlog_form.vue | 197 +++++++++++++++++++++------------ 1 file changed, 125 insertions(+), 72 deletions(-) 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 { }; - +