From 3a154bdb0a5aaa2c0ac3eac95a6ba747068bd454 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 13 一月 2026 10:00:37 +0800
Subject: [PATCH] 优化
---
admin/src/components/business/OperaJkCustomerWindow.vue | 80 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 80 insertions(+), 0 deletions(-)
diff --git a/admin/src/components/business/OperaJkCustomerWindow.vue b/admin/src/components/business/OperaJkCustomerWindow.vue
new file mode 100644
index 0000000..3f2f5ef
--- /dev/null
+++ b/admin/src/components/business/OperaJkCustomerWindow.vue
@@ -0,0 +1,80 @@
+<template>
+ <GlobalWindow
+ :title="title"
+ :visible.sync="visible"
+ :confirm-working="isWorking"
+ width="50%"
+ @confirm="confirm"
+ >
+ <el-form :model="form" ref="form" :rules="rules">
+ <el-form-item label="" prop="name">
+ <span style="width: 100px;text-align: right;margin-right: 30px;">瀹㈡埛绠�鐮侊細</span>
+ <span>{{form.code}}</span>
+ </el-form-item>
+ <el-form-item label="" prop="name">
+ <span style="width: 100px;text-align: right;margin-right: 30px;">瀹㈡埛鍚嶇О锛�</span>
+ <span>{{form.name}}</span>
+ </el-form-item>
+ <el-form-item label="" prop="lineName">
+ <span style="width: 100px;text-align: right;margin-right: 30px;">閫佽揣绾胯矾锛�</span>
+ <span>{{form.lineName}}</span>
+ </el-form-item>
+ <el-form-item label="" prop="categoryName">
+ <span style="width: 100px;text-align: right;margin-right: 30px;">鎵�灞炰富绾胯矾</span>
+ <span>{{form.categoryName}}</span>
+ </el-form-item>
+ <el-form-item label="" prop="location">
+ <span style="width: 100px;text-align: right;margin-right: 30px;">鍦板潃锛� </span>
+ <span>{{form.location}}</span>
+ </el-form-item>
+ <el-button style="color: blue;margin-bottom: 10px;" v-clipboard:copy="form.location" v-clipboard:success="onCopy" v-clipboard:error="onError">鐐瑰嚮澶嶅埗瀹㈡埛鍦板潃锛屽墠寰�缁忕含搴﹀湪绾挎彁鍙栧櫒</el-button>
+ <el-form-item label="缁忕含搴�:" prop="locationInfo">
+ <el-input v-model="form.locationInfo" placeholder="璇疯緭鍏ョ粡绾害" v-trim/>
+ </el-form-item>
+ </el-form>
+ </GlobalWindow>
+</template>
+
+<script>
+import BaseOpera from '@/components/base/BaseOpera'
+import GlobalWindow from '@/components/common/GlobalWindow'
+export default {
+ name: 'OperaJkCustomerWindow',
+ extends: BaseOpera,
+ components: { GlobalWindow },
+ data () {
+ return {
+ // 琛ㄥ崟鏁版嵁
+ form: {
+ id: null,
+ locationInfo: '',
+ name: '',
+ code: '',
+ location: '',
+ lineName: '',
+ categoryName: ''
+ },
+ // 楠岃瘉瑙勫垯
+ rules: {
+ locationInfo: [{ required: true, message: '璇疯緭鍏ョ粡绾害淇℃伅' }]
+ }
+ }
+ },
+ created () {
+ this.config({
+ api: '/business/jkCustomer',
+ 'field.id': 'id'
+ })
+ },
+ methods: {
+ onCopy () {
+ console.log('Text copied!');
+ window.open('https://lbs.amap.com/tools/picker')
+ },
+ onError () {
+ console.error('Failed to copy text');
+ window.open('https://lbs.amap.com/tools/picker')
+ }
+ }
+}
+</script>
--
Gitblit v1.9.3