Blame view

antis-ncc-admin/src/views/lqMdMdgs/index.vue 18.2 KB
96009bc9   hexiaodong   hxd
1
2
3
  <template>
  	<div class="NCC-common-layout">
  		<div class="NCC-common-layout-center">
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
4
  			<!-- 搜索区域 -->
96009bc9   hexiaodong   hxd
5
6
  			<el-row class="NCC-common-search-box" :gutter="16">
  				<el-form @submit.native.prevent>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
7
  					<el-col :span="5">
96009bc9   hexiaodong   hxd
8
  						<el-form-item label="门店编码">
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
9
10
11
12
13
14
15
  							<el-input 
  								v-model="query.mdbm" 
  								placeholder="请输入门店编码" 
  								clearable 
  								prefix-icon="el-icon-search"
  								style="border-radius: 6px;" 
  							/>	
96009bc9   hexiaodong   hxd
16
17
  						</el-form-item>
  					</el-col>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
18
19
20
21
22
23
24
25
26
  					<el-col :span="5">
  						<el-form-item label="门店名称">
  							<el-input 
  								v-model="query.dm" 
  								placeholder="请输入门店名称" 
  								clearable 
  								prefix-icon="el-icon-search"
  								style="border-radius: 6px;" 
  							/>	
96009bc9   hexiaodong   hxd
27
28
  						</el-form-item>
  					</el-col>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
29
  					<el-col :span="5">
96009bc9   hexiaodong   hxd
30
  						<el-form-item label="单据门店">
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
31
32
33
34
35
36
37
  							<el-input 
  								v-model="query.djmd" 
  								placeholder="请输入单据门店" 
  								clearable 
  								prefix-icon="el-icon-search"
  								style="border-radius: 6px;" 
  							/>	
96009bc9   hexiaodong   hxd
38
39
  						</el-form-item>
  					</el-col>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
40
41
42
43
44
45
46
47
48
49
  					<el-col :span="5">
  						<el-form-item label="新店状态">
  							<el-select 
  								v-model="query.isNewStore" 
  								placeholder="请选择新店状态" 
  								clearable 
  								style="width: 100%; border-radius: 6px;"
  							>
  								<el-option label="新店" :value="true" />
  								<el-option label="老店" :value="false" />
96009bc9   hexiaodong   hxd
50
51
52
  							</el-select>
  						</el-form-item>
  					</el-col>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
53
  					<el-col :span="4">
96009bc9   hexiaodong   hxd
54
  						<el-form-item>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
55
56
57
58
  							<div class="search-buttons" style="height: 32px;">
  								<el-button type="primary" icon="el-icon-search" @click="search()">查询</el-button>
  								<el-button icon="el-icon-refresh-right" @click="reset()">重置</el-button>
  							</div>
96009bc9   hexiaodong   hxd
59
60
61
62
63
64
  						</el-form-item>
  					</el-col>
  				</el-form>
  			</el-row>
  			<div class="NCC-common-layout-main NCC-flex-main">
  				<div class="NCC-common-head">
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
65
66
67
68
69
  					<div class="NCC-common-head-left">
  						<h3 class="NCC-common-head-title">
  							<i class="el-icon-office-building"></i>
  							门店归属管理
  						</h3>
96009bc9   hexiaodong   hxd
70
71
  					</div>
  					<div class="NCC-common-head-right">
96009bc9   hexiaodong   hxd
72
73
74
75
76
77
  						<el-tooltip effect="dark" content="刷新" placement="top">
  							<el-link icon="icon-ym icon-ym-Refresh NCC-common-head-icon" :underline="false" @click="reset()" />
  						</el-tooltip>
  						<screenfull isContainer />
  					</div>
  				</div>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
78
79
80
                  <NCC-table 
  					v-loading="listLoading" 
  					:data="list"
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
81
  				>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
82
83
84
85
  					<el-table-column prop="mdbm" label="门店编码" align="left" width="120" show-overflow-tooltip>
  						<template slot-scope="scope">
  							<el-tag size="small" type="primary">{{ scope.row.mdbm }}</el-tag>
  						</template>
96009bc9   hexiaodong   hxd
86
  					</el-table-column>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
87
88
89
90
  					<el-table-column prop="dm" label="门店名称" align="left" min-width="150" show-overflow-tooltip>
  						<template slot-scope="scope">
  							<span class="store-name">{{ scope.row.dm }}</span>
  						</template>
96009bc9   hexiaodong   hxd
91
  					</el-table-column>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
  					<el-table-column prop="djmd" label="单据门店" align="left" width="150" show-overflow-tooltip />
  					<el-table-column label="事业部" prop="syb" align="left" width="120">
  						<template slot-scope="scope">
  							<el-tag v-if="scope.row.syb" size="small" type="success">
  								{{ getDepartmentName(scope.row.syb, sybOptions) }}
  							</el-tag>
  							<span v-else class="empty-text">无</span>
  						</template>
  					</el-table-column>
  					<el-table-column label="教育部" prop="jyb" align="left" width="120">
  						<template slot-scope="scope">
  							<el-tag v-if="scope.row.jyb" size="small" type="warning">
  								{{ getDepartmentName(scope.row.jyb, jybOptions) }}
  							</el-tag>
  							<span v-else class="empty-text">无</span>
  						</template>
96009bc9   hexiaodong   hxd
108
  					</el-table-column>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
109
110
111
112
113
114
115
  					<el-table-column label="科技部" prop="kjb" align="left" width="120">
  						<template slot-scope="scope">
  							<el-tag v-if="scope.row.kjb" size="small" type="info">
  								{{ getDepartmentName(scope.row.kjb, kjbOptions) }}
  							</el-tag>
  							<span v-else class="empty-text">无</span>
  						</template>
96009bc9   hexiaodong   hxd
116
  					</el-table-column>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
117
118
119
120
121
122
123
  					<el-table-column label="大项目部" prop="dxmb" align="left" width="120">
  						<template slot-scope="scope">
  							<el-tag v-if="scope.row.dxmb" size="small" type="danger">
  								{{ getDepartmentName(scope.row.dxmb, dxmbOptions) }}
  							</el-tag>
  							<span v-else class="empty-text">无</span>
  						</template>
96009bc9   hexiaodong   hxd
124
  					</el-table-column>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
125
126
127
128
129
130
131
132
133
134
  					<el-table-column label="新店状态" align="center" width="100">
  						<template slot-scope="scope">
  							<el-tag v-if="scope.row.isNewStore" type="success" size="small">
  								<i class="el-icon-star-on"></i> 新店
  							</el-tag>
  							<el-tag v-else type="info" size="small">
  								<i class="el-icon-star-off"></i> 老店
  							</el-tag>
  						</template>
  					</el-table-column>
b12fd501   “wangming”   移除批量编辑功能及相关代码,调整表...
135
  					<el-table-column label="操作" fixed="right" width="200" align="center">
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
  						<template slot-scope="scope">
  							<el-button 
  								type="text" 
  								icon="el-icon-edit" 
  								@click="editHandle(scope.row)"
  								class="action-btn"
  							>
  								编辑
  							</el-button>
  							<el-button 
  								type="text" 
  								icon="el-icon-view" 
  								@click="viewHandle(scope.row)"
  								class="action-btn"
  							>
  								查看
  							</el-button>
96009bc9   hexiaodong   hxd
153
154
155
156
157
158
  						</template>
  					</el-table-column>
  				</NCC-table>
                  <pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize" @pagination="initData" />
              </div>
          </div>
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
  		<!-- 编辑弹窗 -->
  		<el-dialog 
  			:title="dialogTitle" 
  			:visible.sync="dialogVisible" 
  			width="700px" 
  			:close-on-click-modal="false"
  			:before-close="handleClose"
  			class="store-dialog"
  		>
  			<div class="dialog-header">
  				<div class="store-info">
  					<i class="el-icon-office-building"></i>
  					<span class="store-name">{{ editForm.dm }}</span>
  					<el-tag size="small" type="primary">{{ editForm.mdbm }}</el-tag>
  				</div>
  			</div>
  			<el-form :model="editForm" :rules="editRules" ref="editForm" label-width="120px" class="edit-form">
  				<el-row :gutter="20">
  					<el-col :span="12">
  						<el-form-item label="事业部" prop="syb">
  							<el-select 
  								v-model="editForm.syb" 
  								placeholder="请选择事业部" 
  								clearable 
  								style="width: 100%;"
  								filterable
  							>
  								<el-option 
  									v-for="item in sybOptions" 
  									:key="item.Id" 
  									:label="item.FullName" 
  									:value="item.Id"
  								>
  									<span style="float: left">{{ item.FullName }}</span>
  									<span style="float: right; color: #8492a6; font-size: 13px">{{ item.EnCode }}</span>
  								</el-option>
  							</el-select>
  						</el-form-item>
  					</el-col>
  					<el-col :span="12">
  						<el-form-item label="教育部" prop="jyb">
  							<el-select 
  								v-model="editForm.jyb" 
  								placeholder="请选择教育部" 
  								clearable 
  								style="width: 100%;"
  								filterable
  							>
  								<el-option 
  									v-for="item in jybOptions" 
  									:key="item.Id" 
  									:label="item.FullName" 
  									:value="item.Id"
  								>
  									<span style="float: left">{{ item.FullName }}</span>
  									<span style="float: right; color: #8492a6; font-size: 13px">{{ item.EnCode }}</span>
  								</el-option>
  							</el-select>
  						</el-form-item>
  					</el-col>
  				</el-row>
  				<el-row :gutter="20">
  					<el-col :span="12">
  						<el-form-item label="科技部" prop="kjb">
  							<el-select 
  								v-model="editForm.kjb" 
  								placeholder="请选择科技部" 
  								clearable 
  								style="width: 100%;"
  								filterable
  							>
  								<el-option 
  									v-for="item in kjbOptions" 
  									:key="item.Id" 
  									:label="item.FullName" 
  									:value="item.Id"
  								>
  									<span style="float: left">{{ item.FullName }}</span>
  									<span style="float: right; color: #8492a6; font-size: 13px">{{ item.EnCode }}</span>
  								</el-option>
  							</el-select>
  						</el-form-item>
  					</el-col>
  					<el-col :span="12">
  						<el-form-item label="大项目部" prop="dxmb">
  							<el-select 
  								v-model="editForm.dxmb" 
  								placeholder="请选择大项目部" 
  								clearable 
  								style="width: 100%;"
  								filterable
  							>
  								<el-option 
  									v-for="item in dxmbOptions" 
  									:key="item.Id" 
  									:label="item.FullName" 
  									:value="item.Id"
  								>
  									<span style="float: left">{{ item.FullName }}</span>
  									<span style="float: right; color: #8492a6; font-size: 13px">{{ item.EnCode }}</span>
  								</el-option>
  							</el-select>
  						</el-form-item>
  					</el-col>
  				</el-row>
  			</el-form>
  			<div slot="footer" class="dialog-footer">
  				<el-button @click="handleClose" :disabled="saveLoading">取消</el-button>
  				<el-button type="primary" @click="saveEdit" :loading="saveLoading">
  					<i class="el-icon-check"></i> 保存
  				</el-button>
  			</div>
  		</el-dialog>
  
96009bc9   hexiaodong   hxd
273
274
275
276
  	</div>
  </template>
  <script>
      import request from '@/utils/request'
96009bc9   hexiaodong   hxd
277
  	export default {
96009bc9   hexiaodong   hxd
278
279
          data() {
              return {
96009bc9   hexiaodong   hxd
280
  				query: {
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
281
282
283
284
                      mdbm: undefined,
                      dm: undefined,
                      djmd: undefined,
                      isNewStore: undefined
96009bc9   hexiaodong   hxd
285
286
287
  				},
                  list: [],
                  listLoading: true,
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
288
                  total: 0,
96009bc9   hexiaodong   hxd
289
290
291
292
293
294
                  listQuery: {
                      currentPage: 1,
                      pageSize: 20,
  					sort: "desc",
                      sidx: "",
                  },
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
295
                  dialogVisible: false,
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
296
                  saveLoading: false,
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
297
298
299
300
301
302
303
304
305
306
                  dialogTitle: '编辑门店归属',
                  editForm: {
                      id: '',
                      mdbm: '',
                      dm: '',
                      syb: '',
                      jyb: '',
                      kjb: '',
                      dxmb: ''
                  },
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
307
308
309
310
311
312
                  editRules: {
                      syb: [{ required: false, message: '请选择事业部', trigger: 'change' }],
                      jyb: [{ required: false, message: '请选择教育部', trigger: 'change' }],
                      kjb: [{ required: false, message: '请选择科技部', trigger: 'change' }],
                      dxmb: [{ required: false, message: '请选择大项目部', trigger: 'change' }]
                  },
96009bc9   hexiaodong   hxd
313
                  columnList: [
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
314
315
                      { prop: 'mdbm', label: '门店编码' },
                      { prop: 'dm', label: '门店名称' },
96009bc9   hexiaodong   hxd
316
317
318
319
320
                      { prop: 'djmd', label: '单据门店' },
                      { prop: 'syb', label: '事业部' },
                      { prop: 'jyb', label: '教育部' },
                      { prop: 'kjb', label: '科技部' },
                      { prop: 'dxmb', label: '大项目部' },
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
321
                      { prop: 'isNewStore', label: '是否新店' }
96009bc9   hexiaodong   hxd
322
  				],
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
323
324
325
326
  				sybOptions: [],
  				jybOptions: [],
  				kjbOptions: [],
  				dxmbOptions: [],
96009bc9   hexiaodong   hxd
327
328
329
330
331
  			}
          },
  		computed: {},
  		created() {
  			this.initData()
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
332
  			this.loadDepartmentOptions()
96009bc9   hexiaodong   hxd
333
334
  		},
  		methods: {
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
  			// 加载部门选项
  			loadDepartmentOptions() {
  				// 加载事业部
  				request({
  					url: '/api/Extend/Organize/GetByName',
  					method: 'GET',
  					data: { organizeName: '事业部' }
  				}).then(res => {
  					this.sybOptions = res.data || []
  				}).catch(() => {
  					this.sybOptions = []
  				})
  
  				// 加载教育部
  				request({
  					url: '/api/Extend/Organize/GetByName',
  					method: 'GET',
  					data: { organizeName: '教育部' }
  				}).then(res => {
  					this.jybOptions = res.data || []
  				}).catch(() => {
  					this.jybOptions = []
  				})
  
  				// 加载科技部
  				request({
  					url: '/api/Extend/Organize/GetByName',
  					method: 'GET',
  					data: { organizeName: '科技部' }
  				}).then(res => {
  					this.kjbOptions = res.data || []
  				}).catch(() => {
  					this.kjbOptions = []
  				})
  
  				// 加载大项目部
  				request({
  					url: '/api/Extend/Organize/GetByName',
  					method: 'GET',
  					data: { organizeName: '大项目部' }
  				}).then(res => {
  					this.dxmbOptions = res.data || []
  				}).catch(() => {
  					this.dxmbOptions = []
  				})
96009bc9   hexiaodong   hxd
380
  			},
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
381
382
383
384
385
  
  			// 获取部门名称
  			getDepartmentName(id, options) {
  				const option = options.find(item => item.Id === id)
  				return option ? option.FullName : '未知'
96009bc9   hexiaodong   hxd
386
  			},
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
  
  			// 加载所有门店的新店保护状态
  			async loadNewStoreStatus() {
  				if (!this.list || this.list.length === 0) return
  				
  				// 并行查询所有门店的保护状态
  				const promises = this.list.map(async (row) => {
  					if (!row.id) {
  						this.$set(row, 'isNewStore', false)
  						return
  					}
  					
  					try {
  						const res = await request({
  							url: `/api/Extend/LqMdXdbhsj/GetByStoreId/${row.id}`,
  							method: 'GET'
  						})
  						
  						this.$set(row, 'isNewStore', res.data && res.data.hasProtection === true)
  						
  					} catch (error) {
  						console.error(`查询门店 ${row.dm} 保护时间失败:`, error)
  						this.$set(row, 'isNewStore', false)
  					}
  				})
  				
  				await Promise.all(promises)
96009bc9   hexiaodong   hxd
414
  			},
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
  
  			// 判断是否为新店(通过门店新店保护时间表查询)
  			async isNewStore(row) {
  				if (!row.id) return false
  				
  				try {
  					const res = await request({
  						url: `/api/Extend/LqMdXdbhsj/GetByStoreId/${row.id}`,
  						method: 'GET'
  					})
  					
  					const isNew = res.data && res.data.hasProtection === true
  					this.$set(row, 'isNewStore', isNew)
  					return isNew
  				} catch (error) {
  					console.error(`查询门店 ${row.dm} 保护时间失败:`, error)
  					this.$set(row, 'isNewStore', false)
  					return false
  				}
96009bc9   hexiaodong   hxd
434
  			},
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
435
436
437
438
439
440
441
442
443
444
445
446
447
448
  
  			// 编辑处理
  			editHandle(row) {
  				this.dialogTitle = '编辑门店归属'
  				this.editForm = {
  					id: row.id,
  					mdbm: row.mdbm,
  					dm: row.dm,
  					syb: row.syb || '',
  					jyb: row.jyb || '',
  					kjb: row.kjb || '',
  					dxmb: row.dxmb || ''
  				}
  				this.dialogVisible = true
96009bc9   hexiaodong   hxd
449
  			},
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
  
  			// 查看处理
  			viewHandle(row) {
  				this.dialogTitle = '查看门店归属'
  				this.editForm = {
  					id: row.id,
  					mdbm: row.mdbm,
  					dm: row.dm,
  					syb: row.syb || '',
  					jyb: row.jyb || '',
  					kjb: row.kjb || '',
  					dxmb: row.dxmb || ''
  				}
  				this.dialogVisible = true
  			},
  
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
  
  			// 弹窗关闭处理
  			handleClose() {
  				if (this.saveLoading) {
  					this.$message.warning('正在保存中,请稍候...')
  					return
  				}
  				this.dialogVisible = false
  				this.$refs.editForm && this.$refs.editForm.resetFields()
  			},
  
  			// 保存编辑
  			saveEdit() {
  				this.$refs.editForm.validate((valid) => {
  					if (valid) {
  						this.saveLoading = true
  						request({
  							url: `/api/Extend/LqMdxx/${this.editForm.id}`,
  							method: 'PUT',
  							data: {
  								syb: this.editForm.syb,
  								jyb: this.editForm.jyb,
  								kjb: this.editForm.kjb,
  								dxmb: this.editForm.dxmb
  							}
  						}).then(res => {
  							this.$message.success('保存成功')
  							this.dialogVisible = false
  							this.initData()
  						}).catch(() => {
  							this.$message.error('保存失败')
  						}).finally(() => {
  							this.saveLoading = false
  						})
  					}
  				})
  			},
  
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
504
505
  
  			async initData() {
96009bc9   hexiaodong   hxd
506
507
508
509
510
511
512
513
514
515
516
517
518
                  this.listLoading = true;
                  let _query = {
                      ...this.listQuery,
                      ...this.query
                  };
                  let query = {}
                  for (let key in _query) {
                      if (Array.isArray(_query[key])) {
                          query[key] = _query[key].join()
                      } else {
                          query[key] = _query[key]
                      }
                  }
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
519
520
521
522
523
524
525
526
                  
                  try {
                      const res = await request({
                          url: `/api/Extend/LqMdxx`,
                          method: 'GET',
                          data: query
                      })
                      
96009bc9   hexiaodong   hxd
527
528
                      this.list = res.data.list
                      this.total = res.data.pagination.total
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
529
530
531
532
533
534
535
                      
                      // 为每个门店查询新店保护状态
                      await this.loadNewStoreStatus()
                      
                  } catch (error) {
                      console.error('加载门店数据失败:', error)
                  } finally {
96009bc9   hexiaodong   hxd
536
                      this.listLoading = false
96009bc9   hexiaodong   hxd
537
                  }
96009bc9   hexiaodong   hxd
538
              },
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
539
  
96009bc9   hexiaodong   hxd
540
541
542
543
544
545
546
547
548
  			search() {
                  this.listQuery = {
                      currentPage: 1,
                      pageSize: 20,
                      sort: "desc",
                      sidx: "",
                  }
                  this.initData()
              },
96009bc9   hexiaodong   hxd
549
550
551
552
553
554
555
556
557
558
559
560
561
              reset() {
                  for (let key in this.query) {
                      this.query[key] = undefined
                  }
                  this.listQuery = {
                      currentPage: 1,
                      pageSize: 20,
                      sort: "desc",
                      sidx: "",
                  }
                  this.initData()
              }
  		}
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
  	}
  </script>
  
  <style lang="scss" scoped>
  	// 页面头部样式
  	.NCC-common-head-left {
  		display: flex;
  		align-items: center;
  		gap: 12px;
  	}
  
  	.NCC-common-head-title {
  		margin: 0;
  		font-size: 18px;
  		font-weight: 600;
  		color: #303133;
  		display: flex;
  		align-items: center;
  		gap: 8px;
  
  		i {
  			color: #409EFF;
  			font-size: 20px;
  		}
  	}
  
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
  
  	// 表格样式
  	.store-name {
  		font-weight: 500;
  		color: #303133;
  	}
  
  	.empty-text {
  		color: #C0C4CC;
  		font-style: italic;
  	}
  
  	.action-btn {
  		padding: 4px 8px;
  		margin: 0 2px;
  		
  		&:hover {
  			background-color: #f5f7fa;
  		}
  	}
  
  	// 弹窗样式
  	.store-dialog {
  		.dialog-header {
  			padding: 16px 0;
  			border-bottom: 1px solid #EBEEF5;
  			margin-bottom: 20px;
  
  			.store-info {
  				display: flex;
  				align-items: center;
  				gap: 12px;
  
  				i {
  					font-size: 20px;
  					color: #409EFF;
  				}
  
  				.store-name {
  					font-size: 16px;
  					font-weight: 600;
  					color: #303133;
  				}
  			}
  		}
  
  		.edit-form {
  			.el-form-item {
  				margin-bottom: 20px;
  			}
  		}
  	}
  
a571fb02   “wangming”   更新门店归属管理功能,删除不再使用...
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
  
  	// 搜索区域样式
  	.search-buttons {
  		display: flex;
  		align-items: center;
  		gap: 8px;
  	}
  
  	// 响应式设计
  	@media (max-width: 768px) {
  		.NCC-common-head {
  			flex-direction: column;
  			align-items: flex-start;
  			gap: 12px;
  
  			.NCC-common-head-right {
  				width: 100%;
  				justify-content: flex-start;
  			}
  		}
  
  		.el-col {
  			margin-bottom: 16px;
  		}
  
  		.store-dialog {
  			.el-dialog {
  				width: 95% !important;
  				margin: 0 auto;
  			}
  		}
  	}
  
  	// 表格响应式
  	@media (max-width: 1200px) {
  		.NCC-table {
  			.el-table {
  				font-size: 12px;
  			}
  		}
  	}
  </style>