Commit e9907830 by 李伟康

```

feat(resident): 新增质检管理平铺视图相关接口

新增 `getReclistWithPageV2` 和 `exportReclistListV2` 接口,用于支持质检管理模块的平铺视图展示与导出功能。

fix(earlyWarningManager): 修改提示文本中的 tabs 为 tab

将提示信息 “最多同时打开20个tabs” 修改为 “最多同时打开20个tab”,使表达更准确。

feat(residentManage): 新增质检指标配置常量文件

在 `residentManage` 模块中新增 `contant.js` 文件,定义了质检相关的视图列表、表单配置、表格列配置等常量,包括:
- 质检指标展示项(接待数、成交数、转化率等)
- 表单筛选项(日期、评分、门店、员工等)
- 两种表格展示结构及列定义
- 图标标识常量
```
1 parent a45e6302
...@@ -582,3 +582,20 @@ export function receptionTagPageExport(data) { ...@@ -582,3 +582,20 @@ export function receptionTagPageExport(data) {
data.method = `dj.api.smartcarlife.reception.receptionTagPageExport` data.method = `dj.api.smartcarlife.reception.receptionTagPageExport`
return request(data, "post") return request(data, "post")
} }
/**
* 质检管理-平铺视图
*/
export function getReclistWithPageV2(data) {
data.method = 'dj.api.mindworkplate.badge.employeeBadgeReclistWithPageV2'
return request(data, "post")
}
/**
* 质检管理-平铺视图 导出
*/
export function exportReclistListV2(data) {
data.method = "dj.api.mindworkplate.badge.employeeBadgeReclistExportV2"
return request(data, "post")
}
\ No newline at end of file \ No newline at end of file
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
this.windowId = id this.windowId = id
return return
} }
if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs") if (windowList.length == 20) return this.$message.error("最多同时打开20个tab")
if (this.dropdownList.length) this.dropdownList.push(item) if (this.dropdownList.length) this.dropdownList.push(item)
else { else {
......
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
this.$refs[`page-${id}`]?.[0]?.setActiveName && this.$refs[`page-${id}`]?.[0]?.setActiveName(data) this.$refs[`page-${id}`]?.[0]?.setActiveName && this.$refs[`page-${id}`]?.[0]?.setActiveName(data)
return this.windowId = id return this.windowId = id
} }
if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs") if (windowList.length == 20) return this.$message.error("最多同时打开20个tab")
const item = { const item = {
text: title, text: title,
data, data,
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import qualityIndex from "./components/qualityIndex" import qualityIndex from "./components/qualityIndex/index"
import recepDetail from "./components/recepDetail.vue" import recepDetail from "./components/recepDetail.vue"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default { export default {
...@@ -117,20 +117,29 @@ export default { ...@@ -117,20 +117,29 @@ export default {
}, },
methods: { methods: {
preventBack () { preventBack () {
if (this.windowId !== -1) { if (this.windowId !== -1) {
const [recep] = this.$refs[`recep-${this.windowId}`] const [recep] = this.$refs[`recep-${this.windowId}`]
if (recep && recep.isQualityVisible) recep.closeDialog() if (recep && (recep.isQualityVisible || recep.isNewQualityVisible)) recep.closeDialog()
if (recep && recep.isNewQualityVisible) recep.closeDialog()
else this.windowId = -1 else this.windowId = -1
} else {
const qualityIndexRef = this.$refs.qualityindex
if (qualityIndexRef.viewType == 2) {
if (qualityIndexRef.isQualityVisible || qualityIndexRef.isNewQualityVisible) {
qualityIndexRef.closeDialog()
history.pushState(null, null, document.URL) history.pushState(null, null, document.URL)
} else this.$router.go(-1) return
}
}
this.$router.go(-1)
}
}, },
openWindow (data) { openWindow (data) {
let id = `${data.searchdate}_${data.phoneNumber}_${data.merchantNo}}`, let id = `${data.searchdate}_${data.phoneNumber}_${data.merchantNo}}`,
windowList = [...this.tab, ...this.dropdownList], windowList = [...this.tab, ...this.dropdownList],
windowItem = windowList.find((e) => e.id == id) windowItem = windowList.find((e) => e.id == id)
if (windowItem) return this.windowId = id if (windowItem) return this.windowId = id
if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs") if (windowList.length == 20) return this.$message.error("最多同时打开20个tab")
let item = { let item = {
text: data.employeeName || '-', text: data.employeeName || '-',
data, data,
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
this.$refs[`page-${id}`]?.[0]?.setActiveName && this.$refs[`page-${id}`]?.[0]?.setActiveName(data) this.$refs[`page-${id}`]?.[0]?.setActiveName && this.$refs[`page-${id}`]?.[0]?.setActiveName(data)
return this.windowId = id return this.windowId = id
} }
if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs") if (windowList.length == 20) return this.$message.error("最多同时打开20个tab")
const item = { const item = {
text: title, text: title,
data, data,
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
const windowList = [...this.tab, ...this.dropdownList] const windowList = [...this.tab, ...this.dropdownList]
const windowItem = windowList.find((e) => e.id == id) const windowItem = windowList.find((e) => e.id == id)
if (windowItem) return this.windowId = id if (windowItem) return this.windowId = id
if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs") if (windowList.length == 20) return this.$message.error("最多同时打开20个tab")
const item = { const item = {
text: data.staffName || '-', text: data.staffName || '-',
data, data,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!