diff --git a/src/App.vue b/src/App.vue index 36abca1..af5eb5f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ @@ -31,18 +31,6 @@ export default { -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; -} - -nav { - padding: 30px; - - a { - font-weight: bold; - color: #2c3e50; - - &.router-link-exact-active { - color: #42b983; - } - } + margin: 0; } diff --git a/src/assets/form1.png b/src/assets/form1.png new file mode 100644 index 0000000..46d0149 Binary files /dev/null and b/src/assets/form1.png differ diff --git a/src/assets/form2.png b/src/assets/form2.png new file mode 100644 index 0000000..95d1e2d Binary files /dev/null and b/src/assets/form2.png differ diff --git a/src/assets/form3.png b/src/assets/form3.png new file mode 100644 index 0000000..14cf060 Binary files /dev/null and b/src/assets/form3.png differ diff --git a/src/assets/form4.png b/src/assets/form4.png new file mode 100644 index 0000000..087c965 Binary files /dev/null and b/src/assets/form4.png differ diff --git a/src/assets/form5.png b/src/assets/form5.png new file mode 100644 index 0000000..8ee45cf Binary files /dev/null and b/src/assets/form5.png differ diff --git a/src/assets/form6.png b/src/assets/form6.png new file mode 100644 index 0000000..ccaf597 Binary files /dev/null and b/src/assets/form6.png differ diff --git a/src/assets/form7.png b/src/assets/form7.png new file mode 100644 index 0000000..94a38c4 Binary files /dev/null and b/src/assets/form7.png differ diff --git a/src/assets/sub-right.png b/src/assets/sub-right.png new file mode 100644 index 0000000..cdec287 Binary files /dev/null and b/src/assets/sub-right.png differ diff --git a/src/main.js b/src/main.js index f82c2ff..17821e4 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-12-27 16:41:40 - * @LastEditTime: 2024-01-09 17:50:38 + * @LastEditTime: 2024-03-28 10:45:26 * @LastEditors: DY * @Description: */ diff --git a/src/views/Login.vue b/src/views/Login.vue index 7e2f7ad..1af899d 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -1,7 +1,7 @@ @@ -195,6 +195,8 @@ export default { this.$router.push({ path: 'home' }) + } else { + this.$message.error(res.data.msg) } }) } diff --git a/src/views/Quality.vue b/src/views/Quality.vue index b86f9ed..aa85d18 100644 --- a/src/views/Quality.vue +++ b/src/views/Quality.vue @@ -1,7 +1,7 @@ @@ -54,6 +54,10 @@ + + @@ -89,7 +93,13 @@ export default { checkTime: formattedTime }).then(res => { if (res.data.code === 0) { - this.$set(value, 'active', true) + this.typeList.forEach(element => { + element.forEach(el => { + el.active = false + }) + }) + value.active = true + // this.$set(value, 'active', true) value.count++ this.count++ } @@ -113,8 +123,7 @@ export default { }, getLine () { authList({ userId: getUserId() }).then(res => { - console.log('res', res.data.data) - if (res && res.data.data.datas.length > 0) { + if (res && res?.data?.data?.datas?.length > 0) { this.lineArray = res.data.data.datas.map(item => { item.text = item.name item.value = item.id @@ -172,7 +181,7 @@ export default { width: 226px; line-height: 72px; box-shadow: 5px 6px 8px 0px rgba(206,212,226,0.72), inset 6px 0px 6px 0px #FFFFFF; - background-color: #276BFF; + background-color: #456DFF; } .rightDiv { border-radius: 7px; @@ -205,9 +214,10 @@ export default { } .leftDiv { border-radius: 7px 36px 36px 7px; - background-color: #276BFF; + background-color: #456DFF; height: 72px; width: 77px; + color: white; line-height: 72px; /* margin: 5px 0 5px 0; */ } @@ -251,9 +261,11 @@ export default { } .quality { background-image: url('./../assets/quality-bg.png'); - min-height: 100vh; + background-size: cover; + height: 100vh; width: 100vw; padding: 20px 20px; + overflow: auto; box-sizing: border-box; } diff --git a/src/views/Scrap.vue b/src/views/Scrap.vue index 97d266b..ffa6c15 100644 --- a/src/views/Scrap.vue +++ b/src/views/Scrap.vue @@ -1,7 +1,7 @@ @@ -26,6 +26,10 @@
+
+ + 工单选择 +
@@ -35,7 +39,11 @@
- +
+ + 报废数量 +
+
@@ -48,6 +56,10 @@ @delete="onDelete" /> +
+ + 报废原因 +

@@ -59,6 +71,10 @@
+
+ + 产线 +
@@ -68,6 +84,10 @@
+
+ + 工段 +
@@ -79,14 +99,28 @@
- +
+ + 时间 +
+
+ + +
+ +
+
- +
+ + 备注 +
+
@@ -95,7 +129,8 @@ - 提交 + + 提交 @@ -182,6 +217,7 @@ export default { scrapList: [], sectionArray: [], disabled: true, + subIconUrl: require('@/assets/sub-right.png'), rules: { // workOrderId: [ // { required: true, message: '请选择工单', trigger: 'change' } @@ -257,6 +293,9 @@ export default { } }, methods: { + refresh () { + this.ruleForm.logTime = new Date().getTime() + }, getSection (value) { const temp = this.lineArray.filter(item => { return item.id === value @@ -274,6 +313,13 @@ export default { inputFun () { this.$emit('input') }, + showNumber () { + this.show = true + this.simpleShow = false + this.simpleShow1 = false + this.simpleShow2 = false + this.simpleShow3 = false + }, focusInput (e) { this.inputEle = e.srcElement // 关闭所有keyboard @@ -288,6 +334,7 @@ export default { this.simpleShow1 = false this.simpleShow2 = false this.simpleShow3 = false + this.show = false // this.$emit('focus') }, focusInput1 (e) { @@ -296,6 +343,7 @@ export default { this.simpleShow = false this.simpleShow2 = false this.simpleShow3 = false + this.show = false }, focusInput2 (e) { this.inputEle2 = e.srcElement @@ -303,6 +351,7 @@ export default { this.simpleShow1 = false this.simpleShow = false this.simpleShow3 = false + this.show = false }, focusInput3 (e) { this.inputEle3 = e.srcElement @@ -310,6 +359,7 @@ export default { this.simpleShow2 = false this.simpleShow1 = false this.simpleShow = false + this.show = false }, onChange1 (input) { this.inputValue1 = input @@ -349,7 +399,6 @@ export default { console.log('onKeyPress', button) }, onInput (value) { - // Toast(value); console.log('value', value, this.ruleForm.num) }, onDelete () { @@ -373,8 +422,8 @@ export default { // }) // }) await authList({ userId: getUserId() }).then(res => { - console.log('res', res.data.data) - if (res && res.data.data.datas.length > 0) { + // console.log('res', res.data.data) + if (res && res?.data?.data?.datas.length > 0) { this.lineArray = res.data.data.datas this.ruleForm.lineId = this.lineArray[0].id this.getSection(this.ruleForm.lineId) @@ -403,6 +452,8 @@ export default { this.$router.push({ path: 'list' }) + } else { + this.$message.error(res.data.msg) } }) } else { @@ -419,22 +470,42 @@ export default {