Commit c3edd993 by 前端

Merge branch 'SAAS+V5.2.0-1030' into 'develop'

上线合并

See merge request !507
2 parents e68b0aec 64dd7f65
...@@ -603,3 +603,18 @@ export function getPermissionsByPhone(data) { ...@@ -603,3 +603,18 @@ export function getPermissionsByPhone(data) {
data.method = `dj.api.smartcarlife.qdhc.staff.permissions` data.method = `dj.api.smartcarlife.qdhc.staff.permissions`
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
...@@ -42,6 +42,11 @@ export function AccountLogin(data) { ...@@ -42,6 +42,11 @@ export function AccountLogin(data) {
// }) // })
} }
// 登录
export function AccountLoginOut(data) {
data.method = `dj.api.user.loginOut`
return request(data)
}
// 选择账号 // 选择账号
export function selectAccount(data) { export function selectAccount(data) {
data.method = `${USER_PATH}user.login.select` data.method = `${USER_PATH}user.login.select`
......
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
<div class="d2-mr personal-wrap"> <div class="d2-mr personal-wrap">
<span class="log" @click="clickHandler" :class="{ 'new': v.isNew }">更新日志</span> <span class="log" @click="clickHandler" :class="{ 'new': v.isNew }">更新日志</span>
<i class="el-icon-s-tools" style="marginRight:20px;cursor:pointer" v-if="userInfo.beSuper" @click="setTitle" /> <i class="el-icon-s-tools" style="marginRight:20px;cursor:pointer" v-if="userInfo.beSuper" @click="setTitle" />
<el-popover ref="popover1" placement="top-start" width="400" @show="redPotShow = false" popper-class="popper" <el-popover ref="popover1" placement="top-start" width="400" @show="redPotShow = false" popper-class="popper" v-model="visible" trigger="hover">
v-model="visible" trigger="hover">
<p class="title"> <p class="title">
导出和导入任务 导出和导入任务
</p> </p>
...@@ -48,6 +47,7 @@ import { Version } from 'glsx-common-sdk' ...@@ -48,6 +47,7 @@ import { Version } from 'glsx-common-sdk'
// import PersonalPanel from '../personal-panel' // import PersonalPanel from '../personal-panel'
import { getImportResult } from '@api/order' import { getImportResult } from '@api/order'
import { exportExcel, asyncExportExcel } from '@api/sys.base' import { exportExcel, asyncExportExcel } from '@api/sys.base'
import { AccountLoginOut } from "@api/sys.account"
import { downLoadFile } from '@/common/util' import { downLoadFile } from '@/common/util'
import privacyAgreementDialog from './privacyAgreementDialog' import privacyAgreementDialog from './privacyAgreementDialog'
var dowloadTimer = 0 var dowloadTimer = 0
...@@ -428,7 +428,10 @@ export default { ...@@ -428,7 +428,10 @@ export default {
await this.logout() await this.logout()
window.location.reload() window.location.reload()
} }
reload() // 开始请求退出接口
AccountLoginOut({}).then(async (res) => {
reload()
})
// if (this.$router.currentRoute.name === 'index') { // if (this.$router.currentRoute.name === 'index') {
// reload() // reload()
// } else { // } else {
......
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
methods: { methods: {
getTrackData (e) { getTrackData (e) {
setTimeout(() => { setTimeout(() => {
if (e.id == 'app') return if (!e || e.id == 'app') return
let target = e.target || e let target = e.target || e
if (target.dataset && Object.keys(target.dataset).length && target.dataset.eventCode) { if (target.dataset && Object.keys(target.dataset).length && target.dataset.eventCode) {
this.setReportTrackData(0, target.dataset.eventCode, JSON.parse(target.dataset?.track || '{}')) this.setReportTrackData(0, target.dataset.eventCode, JSON.parse(target.dataset?.track || '{}'))
......
...@@ -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 {
......
...@@ -32,10 +32,17 @@ ...@@ -32,10 +32,17 @@
style="width: 45%;margin-right: 10px;"> style="width: 45%;margin-right: 10px;">
<el-option label="全部" <el-option label="全部"
value=""></el-option> value=""></el-option>
<el-option label="流水明细" <el-option v-for="(item, index) in baseData.jdSyncStatusOpt"
:key="index"
:label="item.confValue"
:value="item.confId">
</el-option>
<!-- <el-option label="流水明细"
value="1"></el-option> value="1"></el-option>
<el-option label="回单" <el-option label="回单"
value="2"></el-option> value="2"></el-option>
<el-option label="快照"
value="3"></el-option> -->
</el-select> </el-select>
<el-select v-model="searchForm.jdSyncStatus" <el-select v-model="searchForm.jdSyncStatus"
placeholder="请选择" placeholder="请选择"
...@@ -92,6 +99,19 @@ ...@@ -92,6 +99,19 @@
</el-tooltip> </el-tooltip>
</span> </span>
</div> </div>
<div slot="usesHtml"
slot-scope="scope">
<span>
<el-tooltip class="item"
effect="dark"
:content="scope.scope.uses"
placement="right">
<span>
{{ scope.scope.uses ? (scope.scope.uses.length > 15 ? (scope.scope.uses.slice(0, 15) + '...') : scope.scope.uses) : '' }}
</span>
</el-tooltip>
</span>
</div>
<auth-button slot="auth-button" <auth-button slot="auth-button"
slot-scope="scope" slot-scope="scope"
:data="scope.scope" /> :data="scope.scope" />
...@@ -181,7 +201,8 @@ export default { ...@@ -181,7 +201,8 @@ export default {
receiptJdSync: '', receiptJdSync: '',
jdSyncType: '', jdSyncType: '',
jdSyncStatus: '', jdSyncStatus: '',
dataSource: '' dataSource: '',
uses: ''
}, },
printForm: { printForm: {
pageType: 1, pageType: 1,
...@@ -306,6 +327,12 @@ export default { ...@@ -306,6 +327,12 @@ export default {
label: '交易金额', label: '交易金额',
name: 'transactionMoney', name: 'transactionMoney',
addHtml: "transactionMoneyHtml" addHtml: "transactionMoneyHtml"
}, {
label: '用途',
name: 'uses',
type: 'input',
maxlength: '50',
isClear: true
}], }],
getListApi: nbcbAccDetailPage, getListApi: nbcbAccDetailPage,
tableParams: { tableParams: {
...@@ -376,6 +403,11 @@ export default { ...@@ -376,6 +403,11 @@ export default {
width: '200px', width: '200px',
addHtml: "postScriptHtml" addHtml: "postScriptHtml"
}, { }, {
label: '用途',
prop: 'uses',
width: '200px',
addHtml: "usesHtml"
}, {
label: '回单状态', label: '回单状态',
prop: 'receiptStatus', prop: 'receiptStatus',
width: '100px', width: '100px',
...@@ -409,6 +441,19 @@ export default { ...@@ -409,6 +441,19 @@ export default {
}[cellValue.receiptJdSync] }[cellValue.receiptJdSync]
} }
}, { }, {
label: '同步状态(快照)',
prop: 'h5JdSync',
width: '150px',
formatter: (cellValue) => {
return this.baseData.jdSyncOpt.find(item => item.confId === cellValue.h5JdSync)?.confValue
},
className: (cellValue) => {
return {
0: 'redSpot',
1: 'greenSpot'
}[cellValue.h5JdSync]
}
}, {
label: '数据来源', label: '数据来源',
prop: 'dataSource', prop: 'dataSource',
width: '100px', width: '100px',
...@@ -427,7 +472,17 @@ export default { ...@@ -427,7 +472,17 @@ export default {
cdSignOpt: deepClone(cdSignOpt), cdSignOpt: deepClone(cdSignOpt),
jdSyncOpt: deepClone(jdSyncOpt), jdSyncOpt: deepClone(jdSyncOpt),
receiptStatusOpt: deepClone(receiptStatusOpt), receiptStatusOpt: deepClone(receiptStatusOpt),
dataSourceOpt: deepClone(dataSourceOpt) dataSourceOpt: deepClone(dataSourceOpt),
jdSyncStatusOpt: [{
confId: '1',
confValue: '流水明细'
}, {
confId: '2',
confValue: '回单'
}, {
confId: '3',
confValue: '快照'
}]
}, },
recordInfo: null, recordInfo: null,
...@@ -535,13 +590,17 @@ export default { ...@@ -535,13 +590,17 @@ export default {
this.searchFormSearch.jdSync = this.searchFormSearch.jdSyncStatus this.searchFormSearch.jdSync = this.searchFormSearch.jdSyncStatus
} else if (this.searchFormSearch.jdSyncType == '2') { } else if (this.searchFormSearch.jdSyncType == '2') {
this.searchFormSearch.receiptJdSync = this.searchFormSearch.jdSyncStatus this.searchFormSearch.receiptJdSync = this.searchFormSearch.jdSyncStatus
} else if (this.searchFormSearch.jdSyncType == '3') {
this.searchFormSearch.h5JdSync = this.searchFormSearch.jdSyncStatus
} else { } else {
if (this.searchFormSearch.jdSyncStatus == 0 || this.searchFormSearch.jdSyncStatus == 1) { if (this.searchFormSearch.jdSyncStatus == 0 || this.searchFormSearch.jdSyncStatus == 1) {
this.searchFormSearch.jdSync = this.searchFormSearch.jdSyncStatus this.searchFormSearch.jdSync = this.searchFormSearch.jdSyncStatus
this.searchFormSearch.receiptJdSync = this.searchFormSearch.jdSyncStatus this.searchFormSearch.receiptJdSync = this.searchFormSearch.jdSyncStatus
this.searchFormSearch.h5JdSync = this.searchFormSearch.jdSyncStatus
} else { } else {
delete this.searchFormSearch.jdSync delete this.searchFormSearch.jdSync
delete this.searchFormSearch.receiptJdSync delete this.searchFormSearch.receiptJdSync
delete this.searchFormSearch.h5JdSync
} }
} }
delete this.searchFormSearch.jdSyncType delete this.searchFormSearch.jdSyncType
...@@ -599,7 +658,8 @@ export default { ...@@ -599,7 +658,8 @@ export default {
receiptJdSync: '', receiptJdSync: '',
jdSyncType: '', jdSyncType: '',
jdSyncStatus: '', jdSyncStatus: '',
dataSource: '' dataSource: '',
uses: ''
} }
this.$refs.recordTable.refreshTable(false, true) this.$refs.recordTable.refreshTable(false, true)
}, },
......
...@@ -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
history.pushState(null, null, document.URL) } else {
} else this.$router.go(-1) const qualityIndexRef = this.$refs.qualityindex
if (qualityIndexRef.viewType == 2) {
if (qualityIndexRef.isQualityVisible || qualityIndexRef.isNewQualityVisible) {
qualityIndexRef.closeDialog()
history.pushState(null, null, document.URL)
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!