@@ -126,7 +126,7 @@ export default {
})
},
handleConditionSearch() {
- this.$emit("successSubmit", this.dataForm.key);
+ this.$emit("successSubmit", this.dataForm);
},
// dataFormSubmitHandle: debounce(
// function () {
diff --git a/src/views/modules/basic/components/planBtn.vue b/src/views/modules/basic/components/planBtn.vue
index 60fe5df..d5d3773 100644
--- a/src/views/modules/basic/components/planBtn.vue
+++ b/src/views/modules/basic/components/planBtn.vue
@@ -1,7 +1,7 @@
@@ -22,6 +22,7 @@ export default {
},
data() {
return {
+ // injectData:{},
urlOptions: {
syncURL: "/basic/qmsProduct/connectAllProduct"
},
@@ -30,21 +31,23 @@ export default {
methods: {
// 子级
emitClick() {
+ console.log(this.injectData)
const data = {
id: this.injectData.id,
finishInspection: this.injectData.finishInspection,
incomingInspection: this.injectData.incomingInspection,
outInspection: this.injectData.outInspection,
- processInspection: this.injectData.outInspection
+ processInspection: this.injectData.processInspection
}
- this.$http.put(this.urlOptions.syncURL, { data }).then(({ data }) => {
+ this.$http.put(this.urlOptions.syncURL, data ).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
- this.$message.error(data.msg);
+ this.$message.error(data.msg)
+ // this.$parent.$parent.$parent.$parent.getDataList()
},
});
} else {
diff --git a/src/views/modules/basic/components/product-add.vue b/src/views/modules/basic/components/product-add.vue
index fdece86..6a28333 100644
--- a/src/views/modules/basic/components/product-add.vue
+++ b/src/views/modules/basic/components/product-add.vue
@@ -1,7 +1,7 @@
@@ -42,8 +42,8 @@ export default {
data() {
return {
urlOptions: {
- submitURL: "/basic/qmsProductType",
- infoURL: "/basic/qmsProductType/{id}",
+ submitURL: "/basic/qmsProduct",
+ infoURL: "/basic/qmsProduct/{id}",
getCodeURL: '/basic/qmsProduct/getCode',
getTypeListURL: '/basic/qmsProductType/page'
},
@@ -111,7 +111,7 @@ export default {
.then(({ data: res }) => {
if (res.code === 0) {
console.log(res);
- this.dataForm.productTypeCode = res.data
+ this.dataForm.productCode = res.data
}
})
.catch(() => {
@@ -130,7 +130,7 @@ export default {
// 获取信息
getInfo() {
this.$http
- .get(`/basic/qmsProductType/${this.dataForm.id}`)
+ .get(`/basic/qmsProduct/${this.dataForm.id}`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg);
diff --git a/src/views/modules/basic/components/radio.vue b/src/views/modules/basic/components/radio.vue
index ffc6ea6..87db89e 100644
--- a/src/views/modules/basic/components/radio.vue
+++ b/src/views/modules/basic/components/radio.vue
@@ -1,16 +1,16 @@
{{ $t('basic.stock') }}
- {{ $t('basic.course') }}
{{ $t('basic.finishedProduct') }}
{{ $t('basic.shipment') }}
+ {{ $t('basic.course') }}
diff --git a/src/views/modules/basic/components/showProductList.vue b/src/views/modules/basic/components/showProductList.vue
index f102a2a..9d78cd9 100644
--- a/src/views/modules/basic/components/showProductList.vue
+++ b/src/views/modules/basic/components/showProductList.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-01-04 10:29:40
* @LastEditors: zhp
- * @LastEditTime: 2023-02-14 14:12:11
+ * @LastEditTime: 2023-06-30 16:39:46
* @Description:
-->
@@ -122,7 +122,7 @@ export default {
},
methods: {
init(data) {
- console.log();
+ console.log(data)
// this.dataForm.id = id || "";
this.productData = data? data: {}
this.visible = true;
@@ -130,23 +130,28 @@ export default {
this.listQuery.controllerModeId = data ? data.id : null;
// this.$refs["dataForm"].resetFields();
// if (this.dataForm.id) {
- this.getDataList();
+ this.getDataList()
// }
});
},
- handleClick() {
+ handleClick(val) {
+ console.log(val)
if (val.type === "synchronous") {
- if (!this.listQuery.controllerModeId) {
+ console.log(val)
+ console.log(this.listQuery.controllerModeId)
+ if (!this.listQuery.controllerModeId === null) {
this.$message({
message: '请先选择控制模式',
type: 'warning'
});
} else {
- const data={
- controlCodeId: this.listQuery.controlCodeId,
+ const data = {
+ id:val.data.id,
+ controlCodeId: this.listQuery.controllerModeId,
finishInspection: this.productData.finishInspection,
- incomingInspection: this.productData.finishInspection,
- processInspection: this.productData.processInspection
+ incomingInspection: this.productData.incomingInspection,
+ processInspection: this.productData.processInspection,
+ outInspection: this.productData.outInspection
}
this.$http['put']('/basic/qmsProduct',data).then(({ data: res }) => {
if (res.code !== 0) {
@@ -157,8 +162,9 @@ export default {
type: 'success',
duration: 500,
onClose: () => {
- this.visible = false
- this.$emit('refreshDataList')
+ this.$nextTick(() => {
+ this.getDataList()
+ })
}
})
}).catch(() => { })
@@ -170,10 +176,12 @@ export default {
// });
} else if (val.type === 'cancel') {
const data = {
- controlCodeId: null,
- finishInspection: null,
- incomingInspection: null,
- processInspection: null
+ id: val.data.id,
+ controlCodeId: 0,
+ finishInspection: 0,
+ incomingInspection: 0,
+ processInspection: 0,
+ outInspection:0
}
this.$http['put']('/basic/qmsProduct', data).then(({ data: res }) => {
if (res.code !== 0) {
@@ -184,8 +192,10 @@ export default {
type: 'success',
duration: 500,
onClose: () => {
- this.visible = false
- this.$emit('refreshDataList')
+ this.$nextTick(() => {
+ this.getDataList()
+ })
+ // this.$emit('refreshDataList')
}
})
}).catch(() => { })
diff --git a/src/views/modules/basic/components/teamMember-add.vue b/src/views/modules/basic/components/teamMember-add.vue
index ac36b72..2b4b93b 100644
--- a/src/views/modules/basic/components/teamMember-add.vue
+++ b/src/views/modules/basic/components/teamMember-add.vue
@@ -1,7 +1,7 @@
@@ -33,9 +33,6 @@ export default {
chooseData: [],
urlOptions: {
submitURL: "/basic/qmsCustomer",
- getCustomerPageListURL: "/basic/qmsCustomerType/page",
- infoURL: "/basic/qmsCustomer/{id}",
- getCodeURL: '/basic/qmsCustomer/getCode',
getTeamMemberURL: '/basic/qmsTeamMember/page',
getUserListURL: '/sys/user/page',
editTeamMemberListURL: '/basic/qmsTeamMember'
@@ -84,10 +81,40 @@ export default {
};
},
},
+ destroyed() {
+ this.notChooseData = []
+ this.chooseData = []
+ },
methods: {
init(id,) {
this.teamId = id || ""
+ this.notChooseData = []
+ this.chooseData = []
// this.dataForm.dictTypeId = dictTypeId || "";
+ // this.$http
+ // .get(this.urlOptions.getTeamMemberURL, {
+ // params: {
+ // teamId: id
+ // }
+ // })
+ // .then(({ data: res }) => {
+ // console.log(res)
+ // this.dataListLoading = false;
+ // if (res.code === 0) {
+ // var data = res.data.memberDTOS
+ // for (let i = 0; i < data.length; i++) {
+ // this.chooseData.push(data[i].userId)
+ // }
+ // this.notChooseData = res.data.undefinedUserDTOS.map((item) => {
+ // return {
+ // key: item.id,
+ // label: item.userName
+ // }
+ // })
+ // console.log(this.chooseData)
+ // console.log(this.notChooseData)
+ // }
+ // })
this.$http
.get(this.urlOptions.getTeamMemberURL, {
params: {
@@ -179,6 +206,8 @@ export default {
duration: 500,
onClose: () => {
this.visible = false
+ this.notChooseData = []
+ this.chooseData = []
this.$emit("refreshDataList")
},
});
diff --git a/src/views/modules/basic/qmsControlMode.vue b/src/views/modules/basic/qmsControlMode.vue
index ab8fa43..4d6ee9d 100644
--- a/src/views/modules/basic/qmsControlMode.vue
+++ b/src/views/modules/basic/qmsControlMode.vue
@@ -21,12 +21,12 @@
-
+
-
+
@@ -189,12 +189,10 @@ export default {
// },
// conditionSearchSubmit() {},
conditionSearchSubmit(key) {
- // console.log(key);
- console.log(key);
- this.listQuery.key = key;
- this.listQuery.page = 1;
- this.getDataList(key);
- this.searchOrUpdateVisible = false;
+ this.listQuery.key = key
+ this.listQuery.page = 1
+ this.getDataList(key)
+ this.searchOrUpdateVisible = false
// console.log(11111);
// this.conditionSearchSubmit();
},
@@ -247,14 +245,14 @@ export default {
this.getDataList();
break;
case "correlation":
- this.productOrEditTitle = "产品";
- this.productOrUpdateVisible = true;
+ this.productOrEditTitle = "产品"
+ this.productOrUpdateVisible = true
// this.searchOrUpdateHandle(this.productData);
// this.searchOrUpdateVisible = true;
this.$nextTick(() => {
- this.$refs.productOrUpdate.init(this.productData);
+ this.$refs.productOrUpdate.init(this.productData)
});
- console.log(this.productId);
+ // console.log(this.productId);
break;
case "add":
this.addOrEditTitle = '新增'
diff --git a/src/views/modules/basic/qmsCustomer.vue b/src/views/modules/basic/qmsCustomer.vue
index 5747d1f..329b269 100644
--- a/src/views/modules/basic/qmsCustomer.vue
+++ b/src/views/modules/basic/qmsCustomer.vue
@@ -83,7 +83,7 @@ export default {
return {
urlOptions: {
getDataListURL: "/basic/qmsCustomer/page",
- deleteURL: "/basic/qmsCustomerType",
+ deleteURL: "/basic/qmsCustomer",
exportURL: '/basic/qmsCustomer/export'
},
tableProps,
@@ -166,7 +166,7 @@ export default {
// console.log(11111);
// this.conditionSearchSubmit();
},
- handleClick() {
+ handleClick(val) {
console.log(val);
if (val.type === "delete") {
this.$confirm(`确定对[名称=${val.data.customerName}]进行删除操作?`, "提示", {
diff --git a/src/views/modules/basic/qmsCustomerType.vue b/src/views/modules/basic/qmsCustomerType.vue
index 779c264..37f705c 100644
--- a/src/views/modules/basic/qmsCustomerType.vue
+++ b/src/views/modules/basic/qmsCustomerType.vue
@@ -21,7 +21,7 @@
-
+
diff --git a/src/views/modules/basic/qmsFailureType.vue b/src/views/modules/basic/qmsFailureType.vue
index 918f03b..9ad0c8f 100644
--- a/src/views/modules/basic/qmsFailureType.vue
+++ b/src/views/modules/basic/qmsFailureType.vue
@@ -1,7 +1,7 @@
@@ -27,7 +27,7 @@
-
+
diff --git a/src/views/modules/basic/qmsProduct.vue b/src/views/modules/basic/qmsProduct.vue
index 02a74f2..bf41786 100644
--- a/src/views/modules/basic/qmsProduct.vue
+++ b/src/views/modules/basic/qmsProduct.vue
@@ -158,7 +158,7 @@ export default {
this.searchOrEditTitle = "搜索";
this.searchOrUpdateVisible = true;
this.$nextTick(() => {
- this.$refs.searchOrUpdate.init();
+ this.$refs.searchOrUpdate.init()
});
},
// handleConfirm() {
@@ -171,7 +171,7 @@ export default {
this.listQuery.productName = dataForm.productName
this.listQuery.productCode = dataForm.productCode
this.listQuery.page = 1;
- this.getDataList();
+ this.getDataList()
this.searchOrUpdateVisible = false;
// console.log(11111);
// this.conditionSearchSubmit();
@@ -219,7 +219,8 @@ export default {
switch (val.btnName) {
case "search":
// this.listQuery.paramCode = val.paramCode;
- this.listQuery.key = null;
+ this.listQuery.productName = null
+ this.listQuery.productCode = null
// console.log(i18n);
this.listQuery.page = 1;
this.getDataList();
diff --git a/src/views/modules/gage/components/gageGrs-add.vue b/src/views/modules/gage/components/gageGrs-add.vue
index 40820d3..7e56b93 100644
--- a/src/views/modules/gage/components/gageGrs-add.vue
+++ b/src/views/modules/gage/components/gageGrs-add.vue
@@ -1,7 +1,7 @@
@@ -126,13 +126,96 @@
{{ $t('gage.tabularComputations') }}
-
+
+
diff --git a/src/views/modules/gage/qmsGageGrr.vue b/src/views/modules/gage/qmsGageGrr.vue
index d22f1a4..7816876 100644
--- a/src/views/modules/gage/qmsGageGrr.vue
+++ b/src/views/modules/gage/qmsGageGrr.vue
@@ -1,7 +1,7 @@
@@ -327,34 +327,3 @@ export default {
}
};
-
--
2.45.2
From cc03b8853dd0ca3918dd9a379b4827b4c89dda0e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’>
Date: Thu, 6 Jul 2023 15:18:30 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/gage/components/gageGrs-add.vue | 42 +++++++++++--------
.../modules/gage/components/report-show.vue | 14 ++++---
2 files changed, 33 insertions(+), 23 deletions(-)
diff --git a/src/views/modules/gage/components/gageGrs-add.vue b/src/views/modules/gage/components/gageGrs-add.vue
index 7e56b93..6e99b87 100644
--- a/src/views/modules/gage/components/gageGrs-add.vue
+++ b/src/views/modules/gage/components/gageGrs-add.vue
@@ -1,7 +1,7 @@
@@ -203,15 +203,18 @@ import available from "./available";
const tableProps = [
{
prop: 'testUserName',
- label: '人员'
+ label: '人员',
+ align: 'center'
},
{
prop: 'orderNumber',
- label: '序号'
+ label: '序号',
+ align:'center'
},
{
prop: 'test',
label: '零件',
+ align: 'center',
children: [
]
}
@@ -401,28 +404,33 @@ export default {
Object.keys(result.data.qmsGageGrrTesterDTOList[i].partMapList).forEach((item) => {
this.tableProps[2].children.push({
label: String(item),
- prop: 'measuredData'+String(item),
+ prop: 'measuredData' + String(item),
+ align: 'center'
})
})
Object.keys(result.data.qmsGageGrrTesterDTOList[i].orderMapList).forEach((item) => {
- let measuredData = 'measuredData' + String(item)
+ let measuredDataProp = 'measuredData' + String(item)
this.tableData.push({
testUserName: result.data.qmsGageGrrTesterDTOList[i].testUserName,
orderNumber: item,
- [measuredData]: '',
+ [measuredDataProp]: '',
})
- result.data.qmsGageGrrTesterDTOList[i].orderMapList[item].forEach((ele, index, arr) => {
- // console.log(arr)
- // console.log(ele)
- // console.log(this.tableProps[2].children.prop);
- // console.log(this.tableProps[2].children[item - 1].prop)
- console.log(ele)
- let measuredData = 'measuredData' + item
- console.log(measuredData)
- console.log(this.tableData[item - 1])
- this.tableData[item - 1][measuredData] = ele
- // console.log(this.tableData[item - 1])
})
+ Object.keys(result.data.qmsGageGrrTesterDTOList[i].orderMapList).forEach((item) => {
+ result.data.qmsGageGrrTesterDTOList[i].orderMapList[item].forEach((ele, index, arr) => {
+ let measuredData = 'measuredData' + String(index + 1)
+ console.log(item)
+ // console.log(arr)
+ // console.log(ele)
+ // console.log(this.tableProps[2].children.prop);
+ // console.log(this.tableProps[2].children[item - 1].prop)
+ console.log(index)
+ console.log(measuredData)
+ console.log(ele)
+ // console.log(this.tableData[index + 1])
+ this.tableData[item-1][measuredData] = ele
+ // console.log(this.tableData[item - 1])
+ })
})
}
console.log(this.tableProps)
diff --git a/src/views/modules/gage/components/report-show.vue b/src/views/modules/gage/components/report-show.vue
index 36bb221..b4064af 100644
--- a/src/views/modules/gage/components/report-show.vue
+++ b/src/views/modules/gage/components/report-show.vue
@@ -1,7 +1,7 @@
@@ -119,10 +119,10 @@
{{ $t('gage.totalVariation') }} |
8 |
{{ this.grrReportData.k3[6] }} |
- {{ this.grrReportData.ndc }} |
+ {{ this.grrReportData.ndc }} |
- {{ this.grrReportData.tv }} |
+ {{ this.grrReportData.tv }} |
9 |
{{ this.grrReportData.k3[7] }} |
@@ -131,11 +131,13 @@
{{ this.grrReportData.k3[8] }} |
- {{ $t('gage.decide') }} |
+ {{ $t('gage.decide') }} |
%GRR |
- {{ this.grrReportData.isAccept }} |
+ {{ this.grrReportData.isAccept }} |
+
+
reason |
- {{ this.grrReportData.reason }} |
+ {{ this.grrReportData.reason }} |
--
2.45.2