From 3cda314ad41d580889c3efac8fb89cc77b85277b Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 20 Aug 2024 14:46:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=88=90=E5=93=81=E6=A3=80=E9=AA=8Ccoding#?= =?UTF-8?q?465?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qm/productCheck.vue | 5 +++++ src/views/qm/product_form.vue | 36 +++++++++++++++++++++++++++++++++-- 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/src/views/qm/productCheck.vue b/src/views/qm/productCheck.vue index 1888a5ce..e1c4a13b 100644 --- a/src/views/qm/productCheck.vue +++ b/src/views/qm/productCheck.vue @@ -31,6 +31,11 @@ {{ workObj.count_sampling }} + +
+ {{item.batch}}、 +
+
编辑 diff --git a/src/views/qm/product_form.vue b/src/views/qm/product_form.vue index b988d466..183dae18 100644 --- a/src/views/qm/product_form.vue +++ b/src/views/qm/product_form.vue @@ -81,7 +81,24 @@ > - + + + + + + + @@ -100,7 +117,10 @@ export default { data() { return { loading: false, - form: {}, + form: { + type:'prod', + type2:10 + }, rules: { test_date: [ { @@ -120,11 +140,13 @@ export default { visible: false, isSaveing: false, options: [], + userList:[], selectionFilters: [], setFiltersVisible: false, }; }, mounted() { + this.getUsers(); this.getMaterialBatch(); }, methods: { @@ -141,6 +163,15 @@ export default { this.form.count_ok = this.form.count - this.form.count_notok } }, + getUsers(){ + let that = this; + let userList = []; + that.$API.system.user.list + .req({ page: 0, posts__code__contains: "check" }) + .then((res) => { + that.userList = res; + }); + }, //获取物料批次 getMaterialBatch() { let that = this; @@ -158,6 +189,7 @@ export default { that.form.count = item.count; that.form.batch = item.batch; that.form.material = item.material; + that.form.mb = item.id; } }); },