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) {
data.method = `dj.api.smartcarlife.qdhc.staff.permissions`
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
......@@ -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) {
data.method = `${USER_PATH}user.login.select`
......
......@@ -3,8 +3,7 @@
<div class="d2-mr personal-wrap">
<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" />
<el-popover ref="popover1" placement="top-start" width="400" @show="redPotShow = false" popper-class="popper"
v-model="visible" trigger="hover">
<el-popover ref="popover1" placement="top-start" width="400" @show="redPotShow = false" popper-class="popper" v-model="visible" trigger="hover">
<p class="title">
导出和导入任务
</p>
......@@ -48,6 +47,7 @@ import { Version } from 'glsx-common-sdk'
// import PersonalPanel from '../personal-panel'
import { getImportResult } from '@api/order'
import { exportExcel, asyncExportExcel } from '@api/sys.base'
import { AccountLoginOut } from "@api/sys.account"
import { downLoadFile } from '@/common/util'
import privacyAgreementDialog from './privacyAgreementDialog'
var dowloadTimer = 0
......@@ -428,7 +428,10 @@ export default {
await this.logout()
window.location.reload()
}
reload()
// 开始请求退出接口
AccountLoginOut({}).then(async (res) => {
reload()
})
// if (this.$router.currentRoute.name === 'index') {
// reload()
// } else {
......
......@@ -26,7 +26,7 @@ export default {
methods: {
getTrackData (e) {
setTimeout(() => {
if (e.id == 'app') return
if (!e || e.id == 'app') return
let target = e.target || e
if (target.dataset && Object.keys(target.dataset).length && target.dataset.eventCode) {
this.setReportTrackData(0, target.dataset.eventCode, JSON.parse(target.dataset?.track || '{}'))
......
......@@ -153,7 +153,7 @@ export default {
this.windowId = id
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)
else {
......
......@@ -32,10 +32,17 @@
style="width: 45%;margin-right: 10px;">
<el-option label="全部"
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>
<el-option label="回单"
value="2"></el-option>
<el-option label="快照"
value="3"></el-option> -->
</el-select>
<el-select v-model="searchForm.jdSyncStatus"
placeholder="请选择"
......@@ -92,6 +99,19 @@
</el-tooltip>
</span>
</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"
slot-scope="scope"
:data="scope.scope" />
......@@ -181,7 +201,8 @@ export default {
receiptJdSync: '',
jdSyncType: '',
jdSyncStatus: '',
dataSource: ''
dataSource: '',
uses: ''
},
printForm: {
pageType: 1,
......@@ -306,6 +327,12 @@ export default {
label: '交易金额',
name: 'transactionMoney',
addHtml: "transactionMoneyHtml"
}, {
label: '用途',
name: 'uses',
type: 'input',
maxlength: '50',
isClear: true
}],
getListApi: nbcbAccDetailPage,
tableParams: {
......@@ -376,6 +403,11 @@ export default {
width: '200px',
addHtml: "postScriptHtml"
}, {
label: '用途',
prop: 'uses',
width: '200px',
addHtml: "usesHtml"
}, {
label: '回单状态',
prop: 'receiptStatus',
width: '100px',
......@@ -409,6 +441,19 @@ export default {
}[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: '数据来源',
prop: 'dataSource',
width: '100px',
......@@ -427,7 +472,17 @@ export default {
cdSignOpt: deepClone(cdSignOpt),
jdSyncOpt: deepClone(jdSyncOpt),
receiptStatusOpt: deepClone(receiptStatusOpt),
dataSourceOpt: deepClone(dataSourceOpt)
dataSourceOpt: deepClone(dataSourceOpt),
jdSyncStatusOpt: [{
confId: '1',
confValue: '流水明细'
}, {
confId: '2',
confValue: '回单'
}, {
confId: '3',
confValue: '快照'
}]
},
recordInfo: null,
......@@ -535,13 +590,17 @@ export default {
this.searchFormSearch.jdSync = this.searchFormSearch.jdSyncStatus
} else if (this.searchFormSearch.jdSyncType == '2') {
this.searchFormSearch.receiptJdSync = this.searchFormSearch.jdSyncStatus
} else if (this.searchFormSearch.jdSyncType == '3') {
this.searchFormSearch.h5JdSync = this.searchFormSearch.jdSyncStatus
} else {
if (this.searchFormSearch.jdSyncStatus == 0 || this.searchFormSearch.jdSyncStatus == 1) {
this.searchFormSearch.jdSync = this.searchFormSearch.jdSyncStatus
this.searchFormSearch.receiptJdSync = this.searchFormSearch.jdSyncStatus
this.searchFormSearch.h5JdSync = this.searchFormSearch.jdSyncStatus
} else {
delete this.searchFormSearch.jdSync
delete this.searchFormSearch.receiptJdSync
delete this.searchFormSearch.h5JdSync
}
}
delete this.searchFormSearch.jdSyncType
......@@ -599,7 +658,8 @@ export default {
receiptJdSync: '',
jdSyncType: '',
jdSyncStatus: '',
dataSource: ''
dataSource: '',
uses: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
......
......@@ -119,7 +119,7 @@ export default {
this.$refs[`page-${id}`]?.[0]?.setActiveName && this.$refs[`page-${id}`]?.[0]?.setActiveName(data)
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 = {
text: title,
data,
......
......@@ -81,7 +81,7 @@
</template>
<script type='text/ecmascript-6'>
import qualityIndex from "./components/qualityIndex"
import qualityIndex from "./components/qualityIndex/index"
import recepDetail from "./components/recepDetail.vue"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default {
......@@ -117,20 +117,29 @@ export default {
},
methods: {
preventBack () {
if (this.windowId !== -1) {
const [recep] = this.$refs[`recep-${this.windowId}`]
if (recep && recep.isQualityVisible) recep.closeDialog()
if (recep && recep.isNewQualityVisible) recep.closeDialog()
if (recep && (recep.isQualityVisible || recep.isNewQualityVisible)) recep.closeDialog()
else this.windowId = -1
history.pushState(null, null, document.URL)
} else this.$router.go(-1)
} else {
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) {
let id = `${data.searchdate}_${data.phoneNumber}_${data.merchantNo}}`,
windowList = [...this.tab, ...this.dropdownList],
windowItem = windowList.find((e) => e.id == 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 = {
text: data.employeeName || '-',
data,
......
......@@ -135,7 +135,7 @@ export default {
this.$refs[`page-${id}`]?.[0]?.setActiveName && this.$refs[`page-${id}`]?.[0]?.setActiveName(data)
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 = {
text: title,
data,
......
......@@ -101,7 +101,7 @@ export default {
const windowList = [...this.tab, ...this.dropdownList]
const windowItem = windowList.find((e) => e.id == 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 = {
text: data.staffName || '-',
data,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!