From f783a3c10b257e37fa15148cf3cdbe3e92d74b16 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Sat, 11 May 2024 09:11:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/modules/taskmanage/CarryPoint.vue | 95 +++++++++++++-------- 1 file changed, 58 insertions(+), 37 deletions(-) diff --git a/src/pages/modules/taskmanage/CarryPoint.vue b/src/pages/modules/taskmanage/CarryPoint.vue index 9c4efe9..8a030f8 100644 --- a/src/pages/modules/taskmanage/CarryPoint.vue +++ b/src/pages/modules/taskmanage/CarryPoint.vue @@ -14,12 +14,13 @@ - + + +
+
+
+
{{ $t('carrypoint.returnsite') }}
+
+ + + + +
+
+
+
@@ -75,14 +93,16 @@ export default { statusbg: false, pkId: '', selectObj: {}, + value: '', dataList: [] // dataList: [ // { - // point_code: '1', - // code_name: '18-一线起升电机' + // point_code: '01', + // code_name: '18-一线起升电机', + // en_code_name: 'english-test' // }, // { - // point_code: '2', + // point_code: '02', // code_name: 'A-ZD102' // }, // { @@ -142,59 +162,43 @@ export default { // code_name: 'A-ZD101' // }, // { - // point_code: '10', + // point_code: '17', // code_name: 'A-ZD101' // }, // { - // point_code: '11', + // point_code: '18', // code_name: 'A-ZD101' // }, // { - // point_code: '12', + // point_code: '19', // code_name: 'A-ZD101' // }, // { - // point_code: '13', + // point_code: '20', // code_name: 'A-ZD101' // }, // { - // point_code: '14', + // point_code: '21', // code_name: 'A-ZD101' // }, // { - // point_code: '15', + // point_code: '22', // code_name: 'A-ZD101' // }, // { - // point_code: '16', + // point_code: '23', // code_name: 'A-ZD101' // }, // { - // point_code: '10', + // point_code: '24', // code_name: 'A-ZD101' // }, // { - // point_code: '11', + // point_code: '25', // code_name: 'A-ZD101' // }, // { - // point_code: '12', - // code_name: 'A-ZD101' - // }, - // { - // point_code: '13', - // code_name: 'A-ZD101' - // }, - // { - // point_code: '14', - // code_name: 'A-ZD101' - // }, - // { - // point_code: '15', - // code_name: 'A-ZD101' - // }, - // { - // point_code: '16', + // point_code: '26', // code_name: 'A-ZD101' // } // ] @@ -212,6 +216,10 @@ export default { this.pointcode = '' this.unclick = true break + case '2': + this.options = [...this.dataList] + this.unclick = true + break } }, toSureDialog (type) { @@ -219,10 +227,23 @@ export default { case '1': this.confirmPoint(this.pointcode, '1') break + case '2': + if (this.value) { + this.confirmPoint(this.pkId, '1', this.value) + this.value = '' + } + break } - this.hide() }, - toCancle () { + toCancle (type) { + switch (type) { + case '1': + break + case '2': + this.confirmPoint(this.pkId, '1', '') + this.value = '' + break + } this.hide() }, inputFocus () { @@ -245,16 +266,16 @@ export default { this.toast(res.desc) } }, - async confirmPoint (pcode, type) { - let res = await confirmPoint(pcode, type) + async confirmPoint (pcode, type, ncode) { + let res = await confirmPoint(pcode, type, ncode) if (res.code === '1') { this.toast(res.desc) this.selectObj = {} - this.$refs.child.active = false - this.$refs.child.disabled = false } else { this.toast(res.desc) } + this.$refs.child.active = false + this.$refs.child.disabled = false }, toRadio (e) { this.pkId = this.pkId === e.point_code ? '' : e.point_code