diff --git a/src/api/quality.js b/src/api/quality.js
index c24d4c9..48985b6 100644
--- a/src/api/quality.js
+++ b/src/api/quality.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-11-20 11:05:00
- * @LastEditTime: 2024-01-29 16:51:45
+ * @LastEditTime: 2024-04-22 09:03:11
* @LastEditors: DY
* @Description: 质量和报废
*/
@@ -70,6 +70,15 @@ export function createInspection (data) {
})
}
+// 撤销质量检查信息
+export function deleteByCancel (query) {
+ return request({
+ url: '/base/quality-inspection-record/deleteByCancel',
+ method: 'delete',
+ params: query
+ })
+}
+
// 获得所有报废日志列表
export function scrapLogList (data) {
return request({
@@ -87,3 +96,12 @@ export function authList (data) {
params: data
})
}
+
+// 重置按钮
+export function resetBtn (data) {
+ return request({
+ url: '/base/quality-inspection-record/resetBtn',
+ method: 'get',
+ params: data
+ })
+}
diff --git a/src/assets/1.png b/src/assets/1.png
new file mode 100644
index 0000000..258dfd4
Binary files /dev/null and b/src/assets/1.png differ
diff --git a/src/assets/2.png b/src/assets/2.png
new file mode 100644
index 0000000..4d12de4
Binary files /dev/null and b/src/assets/2.png differ
diff --git a/src/assets/cancel.png b/src/assets/cancel.png
new file mode 100644
index 0000000..d889db1
Binary files /dev/null and b/src/assets/cancel.png differ
diff --git a/src/assets/cancel1.png b/src/assets/cancel1.png
new file mode 100644
index 0000000..ef2e5b2
Binary files /dev/null and b/src/assets/cancel1.png differ
diff --git a/src/assets/cancel2.png b/src/assets/cancel2.png
new file mode 100644
index 0000000..6fc7d8b
Binary files /dev/null and b/src/assets/cancel2.png differ
diff --git a/src/assets/refresh.png b/src/assets/refresh.png
new file mode 100644
index 0000000..4b74715
Binary files /dev/null and b/src/assets/refresh.png differ
diff --git a/src/assets/reset.png b/src/assets/reset.png
new file mode 100644
index 0000000..376cca3
Binary files /dev/null and b/src/assets/reset.png differ
diff --git a/src/utils/request.js b/src/utils/request.js
index ff9e679..f27a2ad 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-11-20 11:02:29
- * @LastEditTime: 2024-01-30 14:45:55
+ * @LastEditTime: 2024-04-22 09:39:49
* @LastEditors: DY
* @Description:
*/
@@ -14,7 +14,8 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
const service = axios.create({
baseURL: 'http://192.168.0.33:48082/admin-api',
- // baseURL: 'http://10.70.2.2:8080/admin-api',
+ // baseURL: 'http://192.168.1.104:48082/admin-api',
+ // baseURL: 'http://192.168.1.78:48082/admin-api',
timeout: 30000,
withCredentials: false
})
diff --git a/src/views/Login.vue b/src/views/Login.vue
index 1af899d..332a927 100644
--- a/src/views/Login.vue
+++ b/src/views/Login.vue
@@ -1,13 +1,13 @@
-
+
diff --git a/src/views/Quality.vue b/src/views/Quality.vue
index aa85d18..6adeb57 100644
--- a/src/views/Quality.vue
+++ b/src/views/Quality.vue
@@ -1,7 +1,7 @@
@@ -15,7 +15,7 @@
-
+
@@ -27,33 +27,64 @@
-
- 本班次合计数量:{{ count }}
-
-
-
-
-
-
-
- {{ item[0].typeName }}
-
-
-
-
-
-
-
-
-
-
{{ it.detContent }}
-
-
-
-
-
+
+
+
+ 本班次合计数量:{{ count }}
+
+
+
+
+
+
+
刷 新
+
+
+
+
+
+
撤 销
+
+
+
+
+
+
重 置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item[0].typeName }}
+
+
+
+
+
+
+
+
+
+
+
{{ it.detContent }}
+
+
+
+
+
+
@@ -13,6 +13,10 @@
报废管理
-->
+
报废管理
@@ -178,6 +182,7 @@
:input="inputValue3"
:maxLength="30"
/>
+
@@ -185,11 +190,15 @@
import { workOrderList, scrapDetList, createScrap, authList } from '@/api/quality'
import SimpleKeyboard from './components/simpleKeyboard.vue'
import { getUserId } from '@/utils/auth'
+// import KeysInput from './components/keyboard'
export default {
components: { SimpleKeyboard },
data () {
return {
+ // form: {
+ // data: '11'
+ // },
ruleForm: {
workOrderId: '',
num: '',
@@ -293,6 +302,28 @@ export default {
}
},
methods: {
+ onInputFocus (event, value) {
+ // 当前input获取焦点时,显示键盘
+ console.log('122', event, value)
+ this.$refs.keysInput.showKeyboard = true
+ // 传入绑定值(字符串)
+ this.$refs.keysInput.key = event
+ // 传入当前值
+ this.$refs.keysInput.setKeyboardInput(value)
+ },
+ updateInputValue (value) {
+ console.log('123232', value)
+ // 根据key 回写input值
+ const parameter = value.key.split('.')
+ console.log('122', parameter)
+ if (parameter.length === 1) {
+ value.key = value.value
+ } else {
+ // let par0 = parameter[0]
+ // let par1 = parameter[1]
+ // par0.par1 = value.value
+ }
+ },
refresh () {
this.ruleForm.logTime = new Date().getTime()
},
diff --git a/src/views/components/SKeyboard.vue b/src/views/components/SKeyboard.vue
new file mode 100644
index 0000000..8d50b53
--- /dev/null
+++ b/src/views/components/SKeyboard.vue
@@ -0,0 +1,176 @@
+
+
+
+
+
diff --git a/src/views/components/keyboard.vue b/src/views/components/keyboard.vue
new file mode 100644
index 0000000..0737771
--- /dev/null
+++ b/src/views/components/keyboard.vue
@@ -0,0 +1,74 @@
+
+
+
+
+
+