+
取消
确定
@@ -198,7 +198,7 @@ export default {
}
// 修改的提交
if (this.dataForm.id) {
- this.urlOptions.updateURL(this.dataForm).then(response => {
+ this.urlOptions.updateURL(this.dataForm).then(res => {
this.$modal.msgSuccess("修改成功");
this.visible = false;
this.$emit("refreshDataList");
@@ -206,7 +206,7 @@ export default {
return;
}
// 添加的提交
- this.urlOptions.createURL(this.dataForm).then(response => {
+ this.urlOptions.createURL(this.dataForm).then(res => {
this.$modal.msgSuccess("新增成功");
this.idAttrShow = true;
this.dataForm.id = res.data
diff --git a/src/views/extend/processEquValueBom/add-or-updata.vue b/src/views/extend/processEquValueBom/add-or-updata.vue
index c857d400..e1bce136 100644
--- a/src/views/extend/processEquValueBom/add-or-updata.vue
+++ b/src/views/extend/processEquValueBom/add-or-updata.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2021-11-18 14:16:25
* @LastEditors: zhp
- * @LastEditTime: 2024-03-22 09:01:30
+ * @LastEditTime: 2024-03-25 14:07:31
* @Description:
-->
@@ -289,7 +289,7 @@ export default {
}
// 修改的提交
if (this.dataForm.id) {
- this.urlOptions.updateURL(this.dataForm).then(response => {
+ this.urlOptions.updateURL(this.dataForm).then(res => {
this.$modal.msgSuccess("修改成功");
this.visible = false;
this.$emit("refreshDataList");
@@ -297,7 +297,7 @@ export default {
return;
}
// 添加的提交
- this.urlOptions.createURL(this.dataForm).then(response => {
+ this.urlOptions.createURL(this.dataForm).then(res => {
this.$modal.msgSuccess("新增成功");
this.idAttrShow = true;
this.dataForm.id = res.data
diff --git a/src/views/extend/processEquValueBom/attr-add.vue b/src/views/extend/processEquValueBom/attr-add.vue
index 873cf7a3..79e0521f 100644
--- a/src/views/extend/processEquValueBom/attr-add.vue
+++ b/src/views/extend/processEquValueBom/attr-add.vue
@@ -1,7 +1,7 @@
@@ -118,7 +118,7 @@ export default {
this.$refs['dataForm'].resetFields();
if (this.dataForm.id) {
getProcessEquValueBomDet({
- id: this.dataForm.id
+ id: this.dataForm.id,
}).then((res) => {
this.dataForm = res.data;
const arr = []
diff --git a/src/views/extend/processEquValueBom/statusBtn.vue b/src/views/extend/processEquValueBom/statusBtn.vue
index 658cb3f7..d1b45563 100644
--- a/src/views/extend/processEquValueBom/statusBtn.vue
+++ b/src/views/extend/processEquValueBom/statusBtn.vue
@@ -1,7 +1,7 @@
@@ -25,24 +25,24 @@ export default {
},
data() {
return {
- state: false
+ // state: false
+ }
+ },
+ computed: {
+ state() {
+ return this.injectData.enabled === 1 ? true : false
}
},
- // computed: {
- // readonly() {
- // return !!this.injectData.readonly
- // }
- // },
mounted() {
- this.mapToState()
+ // this.mapToState()
},
methods: {
- mapToState() {
- if (this.injectData.prop === 'enabled') {
- this.state = this.injectData.enabled === 1 ? true : false
- }
- },
+ // mapToState() {
+ // if (this.injectData.prop === 'enabled') {
+ // this.state = this.injectData.enabled === 1 ? true : false
+ // }
+ // },
changeHandler() {
// let params = {}
let payload = {}
diff --git a/src/views/login.vue b/src/views/login.vue
index a184edf1..61460fa4 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -299,14 +299,14 @@ export default {
getCookie() {
// const username = getUsername();
// const password = getPassword();
- // const rememberMe = getRememberMe();
- const tenantName = getTenantName();
+ const rememberMe = getRememberMe()
+ // const tenantName = getTenantName();
this.loginForm = {
...this.loginForm,
- username: username ? username : this.loginForm.username,
- password: password ? password : this.loginForm.password,
+ username: this.loginForm.username,
+ password: this.loginForm.password,
rememberMe: rememberMe ? getRememberMe() : false,
- tenantName: tenantName ? tenantName : this.loginForm.tenantName,
+ tenantName: this.loginForm.tenantName,
};
},
handleLogin(captchaParams) {
diff --git a/src/views/quality/base/qualityHotMaterial/add-or-updata.vue b/src/views/quality/base/qualityHotMaterial/add-or-updata.vue
index c7a415cc..58c54374 100644
--- a/src/views/quality/base/qualityHotMaterial/add-or-updata.vue
+++ b/src/views/quality/base/qualityHotMaterial/add-or-updata.vue
@@ -1,7 +1,7 @@
@@ -73,12 +73,12 @@
-
+
{{ item.name }}
-
+
-
+
-
+
diff --git a/src/views/quality/base/qualityScrapLog/add-or-updata.vue b/src/views/quality/base/qualityScrapLog/add-or-updata.vue
index 4917fe93..e713de4c 100644
--- a/src/views/quality/base/qualityScrapLog/add-or-updata.vue
+++ b/src/views/quality/base/qualityScrapLog/add-or-updata.vue
@@ -1,7 +1,7 @@
@@ -10,7 +10,7 @@
-
+
@@ -58,6 +58,13 @@
+
+
+
+
+
+
+
diff --git a/src/views/quality/monitoring/materielDateFrom/index.vue b/src/views/quality/monitoring/materielDateFrom/index.vue
index a2191caf..cc52218d 100644
--- a/src/views/quality/monitoring/materielDateFrom/index.vue
+++ b/src/views/quality/monitoring/materielDateFrom/index.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
- * @LastEditTime: 2024-03-21 15:14:04
+ * @LastEditTime: 2024-03-25 16:07:07
* @Description:
-->
@@ -64,7 +64,7 @@ const tableProps = [
{
prop: 'source',
label: '数据来源',
- filter: (val) => val == 1 ? '内部' : '外部'
+ filter: (val) => val == 1 ? '手动' : '自动'
},
{
prop: 'remark',
diff --git a/src/views/report/glass/day.vue b/src/views/report/glass/day.vue
index e2d53d27..36581b9b 100644
--- a/src/views/report/glass/day.vue
+++ b/src/views/report/glass/day.vue
@@ -1,7 +1,7 @@
@@ -66,7 +66,7 @@ export default {
};
},
created() {
- this.getDict()
+ // this.getDict()
this.getTodayStartTimeAndEndTime()
this.getDataList()
},
@@ -104,6 +104,8 @@ export default {
},
async getDataList() {
+ const res = await getCorePLList()
+ this.proLineList = res.data;
this.dataListLoading = true
if (this.listQuery.reportTime.length == 0) {
this.$message({
@@ -135,9 +137,9 @@ export default {
// item.dailyOutputTrend = null
// }
item.dailyOutputTrend = item.dailyOutputTrend && item.dailyOutputTrend != 0 ? this.multipliedByHundred(item.dailyOutputTrend) + '%' : item.dailyOutputTrend == 0 ? 0 : null
- item.originalGlassStatisticsTrend = item.dailyOutputTrend && item.originalGlassStatisticsTrend != 0 ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : item.originalGlassStatisticsTrend == 0 ? 0 : null
- item.actualProductTrend = item.dailyOutputTrend && item.actualProductTrend != 0 ? this.multipliedByHundred(item.actualProductTrend) + '%' : item.actualProductTrend == 0 ? 0 : null
- item.originalGlassPassTrend = item.dailyOutputTrend && item.originalGlassPassTrend != 0 ? this.multipliedByHundred(item.originalGlassPassTrend) + '%' : item.originalGlassPassTrend == 0 ? 0 : null
+ item.originalGlassStatisticsTrend = item.originalGlassStatisticsTrend && item.originalGlassStatisticsTrend != 0 ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : item.originalGlassStatisticsTrend == 0 ? 0 : null
+ item.actualProductTrend = item.actualProductTrend && item.actualProductTrend != 0 ? this.multipliedByHundred(item.actualProductTrend) + '%' : item.actualProductTrend == 0 ? 0 : null
+ item.originalGlassPassTrend = item.originalGlassPassTrend && item.originalGlassPassTrend != 0 ? this.multipliedByHundred(item.originalGlassPassTrend) + '%' : item.originalGlassPassTrend == 0 ? 0 : null
}
})
})
diff --git a/src/views/report/glass/month.vue b/src/views/report/glass/month.vue
index 087e0796..4678920f 100644
--- a/src/views/report/glass/month.vue
+++ b/src/views/report/glass/month.vue
@@ -57,7 +57,7 @@ export default {
},
created() {
this.getCurrentMonthFirst()
- this.getDict()
+ // this.getDict()
this.getDataList()
},
methods: {
@@ -98,6 +98,8 @@ export default {
},
// 获取数据列表
async getDataList() {
+ const res = await getCorePLList()
+ this.proLineList = res.data;
this.dataListLoading = true;
if (this.listQuery.reportTime.length == 0) {
this.$message({
@@ -129,9 +131,9 @@ export default {
// item.dailyOutputTrend = null
// }
item.dailyOutputTrend = item.dailyOutputTrend && item.dailyOutputTrend != 0 ? this.multipliedByHundred(item.dailyOutputTrend) + '%' : item.dailyOutputTrend == 0 ? 0 : null
- item.originalGlassStatisticsTrend = item.dailyOutputTrend && item.originalGlassStatisticsTrend != 0 ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : item.originalGlassStatisticsTrend == 0 ? 0 : null
- item.actualProductTrend = item.dailyOutputTrend && item.actualProductTrend != 0 ? this.multipliedByHundred(item.actualProductTrend) + '%' : item.actualProductTrend == 0 ? 0 : null
- item.originalGlassPassTrend = item.dailyOutputTrend && item.originalGlassPassTrend != 0 ? this.multipliedByHundred(item.originalGlassPassTrend) + '%' : item.originalGlassPassTrend == 0 ? 0 : null
+ item.originalGlassStatisticsTrend = item.originalGlassStatisticsTrend && item.originalGlassStatisticsTrend != 0 ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : item.originalGlassStatisticsTrend == 0 ? 0 : null
+ item.actualProductTrend = item.actualProductTrend && item.actualProductTrend != 0 ? this.multipliedByHundred(item.actualProductTrend) + '%' : item.actualProductTrend == 0 ? 0 : null
+ item.originalGlassPassTrend = item.originalGlassPassTrend && item.originalGlassPassTrend != 0 ? this.multipliedByHundred(item.originalGlassPassTrend) + '%' : item.originalGlassPassTrend == 0 ? 0 : null
}
})
})
diff --git a/src/views/report/glass/weekly.vue b/src/views/report/glass/weekly.vue
index 1f5316de..5bfcec71 100644
--- a/src/views/report/glass/weekly.vue
+++ b/src/views/report/glass/weekly.vue
@@ -86,23 +86,23 @@ export default {
},
],
};
- },
+ },
+ created () {
+ // this.getDict()
+ },
mounted() {
// const day = new Date().getDay()
// console.log('周四', day)
this.getCurrentWeekStartTimeAndEndTime()
// this.changeTime(new Date(new Date().getTime() - day * 24 * 60 * 60 * 1000))
- this.getDict()
this.getDataList()
},
methods: {
- async getDict() {
- // 产线列表
- await getCorePLList().then(res => {
- this.proLineList = res.data;
- // this.getDataList()
- });
- },
+ // async getDict() {
+ // // 产线列表
+
+
+ // },
getCurrentWeekStartTimeAndEndTime() {
this.reportTime = new Date()
var weekday = new Array(7);
@@ -187,6 +187,8 @@ export default {
},
// 获取数据列表
async getDataList() {
+ const res = await getCorePLList()
+ this.proLineList = res.data;
this.dataListLoading = true;
if (this.listQuery.reportTime.length == 0) {
this.$message({
@@ -218,9 +220,9 @@ export default {
// item.dailyOutputTrend = null
// }
item.dailyOutputTrend = item.dailyOutputTrend && item.dailyOutputTrend != 0 ? this.multipliedByHundred(item.dailyOutputTrend) + '%' : item.dailyOutputTrend == 0 ? 0 : null
- item.originalGlassStatisticsTrend = item.dailyOutputTrend && item.originalGlassStatisticsTrend != 0 ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : item.originalGlassStatisticsTrend == 0 ? 0 : null
- item.actualProductTrend = item.dailyOutputTrend && item.actualProductTrend != 0 ? this.multipliedByHundred(item.actualProductTrend) + '%' : item.actualProductTrend == 0 ? 0 : null
- item.originalGlassPassTrend = item.dailyOutputTrend && item.originalGlassPassTrend != 0 ? this.multipliedByHundred(item.originalGlassPassTrend) + '%' : item.originalGlassPassTrend == 0 ? 0 : null
+ item.originalGlassStatisticsTrend = item.originalGlassStatisticsTrend && item.originalGlassStatisticsTrend != 0 ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : item.originalGlassStatisticsTrend == 0 ? 0 : null
+ item.actualProductTrend = item.actualProductTrend && item.actualProductTrend != 0 ? this.multipliedByHundred(item.actualProductTrend) + '%' : item.actualProductTrend == 0 ? 0 : null
+ item.originalGlassPassTrend = item.originalGlassPassTrend && item.originalGlassPassTrend != 0 ? this.multipliedByHundred(item.originalGlassPassTrend) + '%' : item.originalGlassPassTrend == 0 ? 0 : null
}
})
})
diff --git a/src/views/report/glass/year.vue b/src/views/report/glass/year.vue
index 63a5dc3a..3fd9aeaf 100644
--- a/src/views/report/glass/year.vue
+++ b/src/views/report/glass/year.vue
@@ -53,7 +53,7 @@ export default {
};
},
created() {
- this.getDict()
+ // this.getDict()
},
mounted () {
this.getCurrentYearFirst()
@@ -98,6 +98,8 @@ export default {
},
// 获取数据列表
async getDataList() {
+ const res = await getCorePLList()
+ this.proLineList = res.data;
this.dataListLoading = true;
if (this.listQuery.reportTime.length == 0) {
this.$message({
@@ -129,9 +131,9 @@ export default {
// item.dailyOutputTrend = null
// }
item.dailyOutputTrend = item.dailyOutputTrend && item.dailyOutputTrend != 0 ? this.multipliedByHundred(item.dailyOutputTrend) + '%' : item.dailyOutputTrend == 0 ? 0 : null
- item.originalGlassStatisticsTrend = item.dailyOutputTrend && item.originalGlassStatisticsTrend != 0 ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : item.originalGlassStatisticsTrend == 0 ? 0 : null
- item.actualProductTrend = item.dailyOutputTrend && item.actualProductTrend != 0 ? this.multipliedByHundred(item.actualProductTrend) + '%' : item.actualProductTrend == 0 ? 0 : null
- item.originalGlassPassTrend = item.dailyOutputTrend && item.originalGlassPassTrend != 0 ? this.multipliedByHundred(item.originalGlassPassTrend) + '%' : item.originalGlassPassTrend == 0 ? 0 : null
+ item.originalGlassStatisticsTrend = item.originalGlassStatisticsTrend && item.originalGlassStatisticsTrend != 0 ? this.multipliedByHundred(item.originalGlassStatisticsTrend) + '%' : item.originalGlassStatisticsTrend == 0 ? 0 : null
+ item.actualProductTrend = item.actualProductTrend && item.actualProductTrend != 0 ? this.multipliedByHundred(item.actualProductTrend) + '%' : item.actualProductTrend == 0 ? 0 : null
+ item.originalGlassPassTrend = item.originalGlassPassTrend && item.originalGlassPassTrend != 0 ? this.multipliedByHundred(item.originalGlassPassTrend) + '%' : item.originalGlassPassTrend == 0 ? 0 : null
}
})
})
diff --git a/src/views/socialLogin.vue b/src/views/socialLogin.vue
index 9364cada..53b4790e 100644
--- a/src/views/socialLogin.vue
+++ b/src/views/socialLogin.vue
@@ -83,8 +83,8 @@ export default {
captchaEnable: true,
loginForm: {
loginType: "uname",
- username: "admin",
- password: "admin123",
+ username: "",
+ password: "",
rememberMe: false,
captchaVerification: "",
},
@@ -140,12 +140,12 @@ export default {
this.$refs.verify.show()
},
getCookie() {
- const username = getUsername();
- const password = getPassword();
+ // const username = getUsername();
+ // const password = getPassword();
const rememberMe = getRememberMe();
this.loginForm = {
- username: username ? username : this.loginForm.username,
- password: password ? password : this.loginForm.password,
+ username: this.loginForm.username,
+ password: this.loginForm.password,
rememberMe: rememberMe ? getRememberMe() : false,
loginType: this.loginForm.loginType,
};