From 1323dbd3964244763456b52e1a890831557bbbe1 Mon Sep 17 00:00:00 2001
From: shijing
Date: Wed, 27 Aug 2025 15:35:11 +0800
Subject: [PATCH 1/9] feat
---
src/api/model/wpm.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js
index b44d81e4..6d13d792 100644
--- a/src/api/model/wpm.js
+++ b/src/api/model/wpm.js
@@ -356,6 +356,12 @@ export default {
return await http.delete(`${config.API_URL}/wpm/mlogbw/${id}/`);
},
},
+ start_test:{
+ name: "kuaisu",
+ req: async function (data) {
+ return await http.post(`${config.API_URL}/wpm/mlogbw/start_test/`,data);
+ },
+ }
},
mloguser: {
list: {
From 3ed68831bd4787b5a6d5f523035959e8cff627eb Mon Sep 17 00:00:00 2001
From: shijing
Date: Wed, 27 Aug 2025 15:36:36 +0800
Subject: [PATCH 2/9] =?UTF-8?q?fix:bx=E6=AF=9B=E5=9D=AF=E6=A3=80=E6=B5=8B?=
=?UTF-8?q?=E5=BA=95=E9=83=A8=E6=B7=BB=E5=8A=A0=E4=B8=A4=E8=A1=8C=E7=BB=9F?=
=?UTF-8?q?=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/statistics/bxerp/maopi.vue | 118 +++++++++++++++++++++++----
1 file changed, 100 insertions(+), 18 deletions(-)
diff --git a/src/views/statistics/bxerp/maopi.vue b/src/views/statistics/bxerp/maopi.vue
index 2fadfeb2..2fe8ed56 100644
--- a/src/views/statistics/bxerp/maopi.vue
+++ b/src/views/statistics/bxerp/maopi.vue
@@ -31,6 +31,8 @@
:params="params"
:query="params"
id="exportDiv"
+ :summary-method="getSummaries"
+ show-summary
stripe
>
@@ -49,7 +51,7 @@
- {{ scope.row.data['毛坯检测_缺陷项_放大率¢2mm不合格']?1-scope.row.data['毛坯检测_缺陷项_放大率¢2mm不合格']:1 }}
+ {{ scope.row.data['毛坯检测_缺陷项_放大率¢2mm不合格']?0:1 }}
@@ -78,14 +80,14 @@
- {{ scope.row.data['毛坯检测_缺陷项_剪切¢18.3mm不合格']?1-scope.row.data['毛坯检测_缺陷项_剪切¢18.3mm不合格']:1 }}
+ {{ !scope.row.data['毛坯检测_缺陷项_剪切¢18.3mm不合格']&&!scope.row.data['毛坯检测_缺陷项_剪切¢18.3mm可加工']?1:0 }}
-
+
@@ -102,7 +104,7 @@
- 1
+ 1
0
@@ -147,23 +149,14 @@
{{ scope.row.data.毛坯检测_缺陷项_角偏?scope.row.data.毛坯检测_缺陷项_角偏:0 }}
-
+
-
-
-
+ -->
{{ scope.row.data.毛坯检测_缺陷项_备注 }}
@@ -234,7 +227,96 @@ export default {
getCountQt(data,type){
let count_qt = 0,count = 0;
- }
+ },
+ getSummaries({ columns, data }) {
+ const sums = [];
+ let total = data.length;
+ columns.forEach((column, index) => {
+ if (index === 0) {
+ sums[index] = 合计
比率
+ return;
+ }
+ let propert = '';
+ if(index == 4&&column.label=='合格数'){
+ propert= '毛坯检测_缺陷项_放大率¢2mm不合格';
+ }
+ if(index == 6&&column.label=='合格数'){
+ propert= '毛坯检测_缺陷项_放大率¢16mm不合格';
+ }
+ if(index == 9&&column.label=='合格数'){
+ propert= '毛坯检测_缺陷项_剪切¢18.3mm不合格';
+ }
+ if(index == 10&&column.label=='可加工'){
+ propert= '毛坯检测_缺陷项_剪切¢18.3mm可加工';
+ }
+ if(index == 11&&column.label=='内标合格'||index == 12&&column.label=='长点不合格'||index == 13&&column.label=='可加工'){
+ propert= '毛坯检测_检测项_暗点';
+ }
+ if(index == 14&&column.label=='暗点重'){
+ propert= '毛坯检测_缺陷项_暗点重';
+ }
+ if(index == 15&&column.label=='花丝'){
+ propert= '毛坯检测_缺陷项_花丝';
+ }
+ if(index == 16&&column.label=='网格'){
+ propert= '毛坯检测_缺陷项_网格';
+ }
+ if(index == 17&&column.label=='花朵'){
+ propert= '毛坯检测_缺陷项_花朵';
+ }
+ if(index == 18&&column.label=='S畸变'){
+ propert= '毛坯检测_缺陷项_S畸变不合格';
+ }
+ if(index == 19&&column.label=='弓形畸变不合格'){
+ propert= '毛坯检测_缺陷项_弓形畸变不合格';
+ }
+ if(index == 20&&column.label=='炸废'){
+ propert= '毛坯检测_缺陷项_炸废';
+ }
+ if(index == 21&&column.label=='角偏'){
+ propert= '毛坯检测_缺陷项_角偏';
+ }
+ if (propert!=='') {
+ let values = [];
+ if(index==4||index==6){
+ values = data.map((item) =>!item.data[propert]?1:0);
+ }else if(index==9){
+ values = data.map((item) =>!item.data[propert]&&!item.data['毛坯检测_缺陷项_剪切¢18.3mm可加工']?1:0);
+ }else if(index==11){
+ values = data.map((item) =>item.data[propert]=='合格'?1:0);
+ }else if(index==12){
+ values = data.map((item) =>item.data[propert]=='不合格'?1:0);
+ }else if(index==13){
+ values = data.map((item) =>item.data[propert]!=='合格'&&item.data[propert]!=='不合格'?1:0);
+ }else{
+ values = data.map((item) =>item.data[propert]!==undefined?Number(item.data[propert]):0);
+ }
+ console.log('values',values);
+ if (!values.every((value) => Number.isNaN(value))) {
+ sums[index] = values.reduce((prev, curr) => {
+ let value = Number(curr);
+ let sum = 0;
+ sum = Number(Number(prev) + Number(curr));
+ if (!isNaN(value)) {
+ // let rate = Number(sum/total*100).toFixed(2);
+ // return {sum}
{rate}
+ return sum;
+ } else {
+ // let rate = Number(prev/total*100).toFixed(2);
+ // return {prev}
{rate}
+ return prev;
+ }
+ }, 0);
+
+ } else{
+ sums[index] = 0
0
+ }
+ sums[index] =
+ {sums[index]}
{Number(sums[index]/total*100).toFixed(2)}%
+ }
+ });
+ return sums;
+ },
},
};
From f9e820629083ddf68d395ba54bfc5fa31141a037 Mon Sep 17 00:00:00 2001
From: shijing
Date: Wed, 27 Aug 2025 15:36:59 +0800
Subject: [PATCH 3/9] =?UTF-8?q?fix:bug=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wpm_bx/inmIn.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue
index a3347201..1959abce 100644
--- a/src/views/wpm_bx/inmIn.vue
+++ b/src/views/wpm_bx/inmIn.vue
@@ -185,7 +185,7 @@
:cate = "cate_type"
:process = "process"
:mgroupId = "mgroupId"
- :deptId = " params.belong_dept"
+ :deptId = " deptId"
@success="handleinmSuccess"
>
From cf6ac5dba3cf830be09e4c2c105bbcf7e37ffa0a Mon Sep 17 00:00:00 2001
From: shijing
Date: Wed, 27 Aug 2025 15:37:48 +0800
Subject: [PATCH 4/9] =?UTF-8?q?fix:bx=E5=8F=98=E6=9B=B4=E6=A3=80=E9=AA=8C?=
=?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wpm_bx/mlogbw_check_table.vue | 75 +++++++------------------
1 file changed, 19 insertions(+), 56 deletions(-)
diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue
index fbda3b6f..d69fa142 100644
--- a/src/views/wpm_bx/mlogbw_check_table.vue
+++ b/src/views/wpm_bx/mlogbw_check_table.vue
@@ -250,7 +250,7 @@
- 确定
+ 确定
取消
@@ -824,55 +824,20 @@ export default {
that.isSaveing = true;
that.$refs.dialogForm.validate((valid) => {
if (valid) {
- Object.assign(that.setForm,that.form);
- that.mlogbwlist.forEach(item => {
- if(item.ftest!==null){
- item.ftest.ftestdefects.forEach(defect => {
- if(that.setForm.defectids.indexOf(defect.defect) > -1){
- defect.test_user = that.setForm.test_user;
- }
- })
- item.ftest.ftestitems.forEach(testitem => {
- if(that.setForm.testitemids.indexOf(testitem.testitem) > -1){
- testitem.test_user = that.setForm.test_user;
- testitem.test_equip = that.setForm.equipment;
- }
- })
- }else{
- let ftest = {};
- ftest.ftestitems = [];
- ftest.ftestdefects = [];
- ftest.qct = that.qct;
- ftest.test_date =that.handle_date!=null?that.handle_date:that.currentDate;
- ftest.test_user = that.handle_user;
- that.qct_defects.forEach((item0) => {
- let itemObj = {};
- itemObj.defect = item0.defect;
- itemObj.has = false;
- if(that.setForm.defectids.indexOf(item0.defect) > -1){
- itemObj.test_user = that.setForm.test_user;
- }else{
- itemObj.test_user = that.handle_user;
- }
- ftest.ftestdefects.push(itemObj);
- })
- that.qct_testitems.forEach((item1) => {
- let itemObj1 = {};
- itemObj1.testitem = item1.testitem;
- itemObj1.addto_wpr = item1.addto_wpr;
- itemObj1.test_val_json = "";
- if(that.setForm.testitemids.indexOf(item1.testitem) > -1){
- itemObj1.test_user = that.setForm.test_user;
- itemObj1.test_equip = that.setForm.equipment;
- }else{
- itemObj1.test_user = that.handle_user;
- }
- ftest.ftestitems.push(itemObj1);
- })
- item.ftest = ftest;
- }
- });
- that.$API.wpm.mlogbw.update.req("bulk",that.mlogbwlist).then((res) => {
+ let obj = {};
+ obj.mlogbw_ids = that.mlogbwlist.map(item => item.id);
+ obj.test_equip = that.form.equipment;
+ obj.test_user = that.form.test_user;
+ obj.test_date = that.handle_date!=null?that.handle_date:that.currentDate;
+ if(that.form.defectids.length>0){
+ obj.defects = that.form.defectids;
+ }
+ if(that.form.testitemids.length>0){
+ obj.testitems = that.form.testitemids;
+ }
+ obj.qct = that.qct;
+ that.$API.wpm.mlogbw.start_test.req(obj).then((res) => {
+ that.isSaveing = false;
that.form = {};
that.checkVisible = false;
that.multipleSet = true;
@@ -882,13 +847,11 @@ export default {
that.qct_testitems = [];
that.qct_testitems = that.testitemlists;
that.tableHeight = document.getElementById('mlogbwMain').clientHeight-80;
- that.isSaveing = false;
that.getList();
- }).catch((err) => {
- that.isSaveing = false;
- return err;
- });
- }
+ }).catch(() => {
+ that.isSaveing = false;
+ })
+ }else{ that.isSaveing = false;}
});
},
saveCancel(){
From aed96df1c9ee3d55738a2045fc37e1daebb352af Mon Sep 17 00:00:00 2001
From: caoqianming
Date: Wed, 27 Aug 2025 17:39:30 +0800
Subject: [PATCH 5/9] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0xtScanInput?=
=?UTF-8?q?=E7=BB=84=E4=BB=B62?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/xtScanInput/index.vue | 28 ++++++++++++++++++++++++----
1 file changed, 24 insertions(+), 4 deletions(-)
diff --git a/src/components/xtScanInput/index.vue b/src/components/xtScanInput/index.vue
index d411295d..9417aa91 100644
--- a/src/components/xtScanInput/index.vue
+++ b/src/components/xtScanInput/index.vue
@@ -1,9 +1,9 @@
+ @focus="handleFocus" clearable/>
From bb372c2b93522ad0db5671f05c5f435f57e9dc05 Mon Sep 17 00:00:00 2001
From: shijing
Date: Thu, 28 Aug 2025 08:47:43 +0800
Subject: [PATCH 6/9] =?UTF-8?q?fix:=E6=AF=9B=E5=9D=AF=E6=A3=80=E6=B5=8B?=
=?UTF-8?q?=E6=B1=87=E6=80=BB=E4=BC=A0=E5=8F=82=E5=8F=98=E5=8A=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/statistics/bxerp/maopiTotal.vue | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/views/statistics/bxerp/maopiTotal.vue b/src/views/statistics/bxerp/maopiTotal.vue
index 07789752..e4b03bd9 100644
--- a/src/views/statistics/bxerp/maopiTotal.vue
+++ b/src/views/statistics/bxerp/maopiTotal.vue
@@ -176,8 +176,7 @@ export default {
return {
params: {
ordering:'-data__毛坯检测_小日期',
- ordering:'data__毛坯检测_批次号',
- querys:[[{field:"wm",value:0,compare:"isnull"},{field:"data__has_key",compare:"",value:"毛坯检测_批次号"}]],
+ querys:[[{field:"data__has_key",compare:"",value:"毛坯检测_日期"}]],
},
query:{
name__contains:'',
@@ -186,7 +185,7 @@ export default {
last_time__lte:'',
},
// apiObj: this.$API.wpm.wpr.query,
- apiObj: null,
+ apiObj: this.$API.wpm.batchstquery,
options:[],
tableData:[],
};
From b188b7b977880d83814976a0dff5e800b23aaabc Mon Sep 17 00:00:00 2001
From: shijing
Date: Thu, 28 Aug 2025 09:12:02 +0800
Subject: [PATCH 7/9] =?UTF-8?q?fix:=E8=BE=93=E5=85=A5=E7=89=A9=E6=96=99?=
=?UTF-8?q?=E6=89=B9=E6=AC=A1=E9=9A=90=E8=97=8F=E8=AF=A6=E6=83=85=E6=8C=89?=
=?UTF-8?q?=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wpm_bx/mlog_detail.vue | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue
index 5bc0e380..0ed77657 100644
--- a/src/views/wpm_bx/mlog_detail.vue
+++ b/src/views/wpm_bx/mlog_detail.vue
@@ -259,6 +259,7 @@
>编辑
详情
Date: Thu, 28 Aug 2025 10:32:29 +0800
Subject: [PATCH 8/9] =?UTF-8?q?fix:=E8=B4=A6=E6=88=B7=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E4=BA=BA=E5=91=98=E4=BA=8C=E7=BB=B4?=
=?UTF-8?q?=E7=A0=81=E6=9F=A5=E7=9C=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/sys/user.vue | 44 ++++++++++++++++++++++++++++++++++++------
1 file changed, 38 insertions(+), 6 deletions(-)
diff --git a/src/views/sys/user.vue b/src/views/sys/user.vue
index 8bdde76f..4b261338 100644
--- a/src/views/sys/user.vue
+++ b/src/views/sys/user.vue
@@ -136,17 +136,22 @@
设置
-
+
+ 人员二维码
+
删除
@@ -245,6 +248,27 @@
@success="handleSaveSuccess"
@closed="settingClose"
>
+
+
+
+
+
+ {{userItem.name}}
+
+
+ {{userItem.username}}
+
+
+ {{userItem.belong_dept_name}}
+
+
+ {{userItem.post_name}}
+
+
+
+
+
+