Commit 5b7bae68 by wangzhihui

运营管理-合同管理

1 parent 049f034c
......@@ -35,6 +35,7 @@
"flex.css": "^1.1.7",
"fuse.js": "^3.4.4",
"glsk-oss-jssdk": "^1.0.6",
"glsk-toolkit": "^1.0.3",
"glsx-common-sdk": "^0.3.0",
"hash.js": "^1.0.0",
"hotkeys-js": "^3.6.2",
......
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-09-01 15:41:23
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-09-23 11:21:39
* @FilePath: \dj-car-life-system\src\api\merchant.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import request from "./request"
import RequestMethods from "./request.methods"
......
import { Request } from "glsk-toolkit"
import { baseConfig } from "@/main"
const request = new Request({
baseURL: "http://192.168.3.145:9898/gsc-vcp-web-facade",
appId: "dj_zhixin",
appSecret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
timeout: 5000,
sentry: {
enable: false,
dsn: "https://be4fb79a912b4c34a5d1c539a1618978@sentry.glsx.com.cn/1"
},
security: {
enable: false,
address:
"https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=glsx-common" // 自定义地址
},
response: {
code_key: "code", // 或者你后台实际使用的状态码字段名
code_success_value: "0",
data_key: "data",
errId: "errId",
errId_logout_value: "21"
},
events: {
response: (responseData, config) => {
console.log(
"%c📥 response事件触发",
"color: #4CAF50; font-weight: bold;",
responseData,
config
)
},
error: (error, config) => {
console.log(
"%c❌ error事件触发",
"color: #F44336; font-weight: bold;",
error,
config
)
},
request: (request, config) => {
console.log(
"%c📤 request事件触发",
"color: #2196F3; font-weight: bold;",
request,
config
)
},
logout: (config) => {
console.log(
"%c🚪 logout事件触发",
"color: #FF9800; font-weight: bold;",
config
)
},
duplicate: (url, config) => {
console.log(
"%c🚫 duplicate事件触发",
"color: #9C27B0; font-weight: bold;",
url,
config
)
}
}
})
export default request
......@@ -122,3 +122,14 @@ export function getByTaskId(data) {
data.method = `${path}contentManagerTask.getById`
return request(data, RequestMethods.POST)
}
// 长课程配置-已配置课程列表导出
export function exportStydypage(data) {
data.method = `${path}servicecenter.contentmanager.task.staff.study.page.export`
return request(data, RequestMethods.POST)
}
// 短课程配置-学习记录列表导出
export function exportSoppage(data){
data.method=`${path}servicecenter.sop.detail.page.export`
return request(data, RequestMethods.POST)
}
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-09-18 15:01:57
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-09-20 16:34:53
* @FilePath: \dj-car-life-system\src\api\usedCarManagement.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/**二手车 */
// import Request from "@/newRequest/index.esm"
// console.log("request", Request)
// const request = new Request({
// baseURL: "http://192.168.3.145:9898/gsc-vcp-web-facade",
// appId: "dj_zhixin",
// appSecret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
// sentry: {
// enable: false,
// dsn: "https://be4fb79a912b4c34a5d1c539a1618978@sentry.glsx.com.cn/1"
// },
// security: {
// enable: false,
// address:
// "https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=glsx-common" // 自定义地址
// },
// httpOptions: {
// // HTTP选项配置
// customer: {
// response: {
// code_key: "status", // 状态码字段名,支持字符串或数组
// code_success_value: "200", // 成功状态码值
// data_key: "data", // 数据字段名
// errId: "errId", // 错误ID字段名
// errId_logout_value: "" // 登出状态码值
// }
// }
// }
// })
import request from "./newRequest"
// export function getListApi(data) {
// return request.request({
// url: "/test/page/test",
// method: "POST",
// data: {
// id: 6,
// objs: ["hehe", "haah"],
// dogs: [
// { name: "haogou", age: 1 },
// { name: "拉布拉多", age: 2 }
// ],
// dog: { name: "haogou", age: 1 }
// }
// })
// }
export function getListApi(data) {
return request.post(
"/test/param/test",
// 请求体数据
{
id: 6,
objs: ["hehe", "haah"],
dogs: [
{ name: "haogou", age: 1 },
{ name: "拉布拉多", age: 2 }
],
dog: { name: "haogou", age: 1 }
},
{
duplicatePrevention: true // 简化配置:直接传入 true
}
)
}
// export function getListApi(data) {
// return new Promise(async (resolve) => {
// let result = await request.request({
......
......@@ -865,6 +865,10 @@ export const downloadReportManage_reportType = [
{
confId: "technicianConstructionOrder",
confValue: "轻改技师施工单月度汇总表"
},
{
confId: "learningCourseReviewReport",
confValue: "课程学习复盘报表"
}
]
......
......@@ -111,9 +111,9 @@ export const routerName = {
handle: "handleDetail",
addRoutePath: [
{
authId: "9200303",
authId: "9200306",
name: "详情",
parentId: "92002"
parentId: "92003"
}
]
},
......@@ -142,13 +142,13 @@ export const routerName = {
],
component: _import("usedCarManagement/operateManagement/index")
},
9200303: {
path: "/detail",
9200306: {
path: "/contractView",
name: "detail",
meta: {
title: "合同详情",
authId: "9200204",
parentId: "92002",
authId: "9200306",
parentId: "92003",
cache: false,
sideHidden: false,
activePath: "/operateManagement"
......
......@@ -20,9 +20,16 @@
<!-- </div> -->
<div class="d2-container-content">
<d2-table-header title="驻店学习记录">
<el-button size="small" type="primary" @click="handleAllocation">
短课程配课
</el-button>
<div class="flex">
<el-button size="small" type="primary" @click="handleAllocation">
短课程配课
</el-button>
<span style="margin-left: 10px">
<el-button size="small" @click="handleExport">
导出
</el-button></span
>
</div>
</d2-table-header>
<d2-table
ref="shortTable"
......@@ -198,6 +205,9 @@ import {
punishTypeOpt,
punishStatusOpt
} from "@/common/constants.js"
import dayjs from "dayjs"
const thirtyOneDaysAgo = new Date()
thirtyOneDaysAgo.setDate(thirtyOneDaysAgo.getDate() - 30)
export default {
name: "CourseList",
data() {
......@@ -212,7 +222,7 @@ export default {
mainBrand: "",
punishType: "",
taskStatus: "",
checkTime: [], //复盘时间
checkTime: [thirtyOneDaysAgo, new Date()], //复盘时间
finishTime: [] //完成时间
},
searchFormSearch: {},
......@@ -279,7 +289,7 @@ export default {
label: "复盘时间",
name: "checkTime",
type: "datePicker",
isClear: true,
isClear: false,
pickerOptions: "rangePickerOptions"
},
{
......@@ -469,8 +479,31 @@ export default {
this.handleSearch()
})
},
beforeSearchFn() {
return new Promise((resolve) => {
async handleExport() {
try {
var params = await this.beforeSearchFn(2)
params.currentPage = 1
params.method =
"dj.api.smartcarlife.servicecenter.sop.detail.page.export"
const list = [
...this.dowloadList,
{
name: "短课程配置",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime()
// uuid: JSON.parse(res).data,
// ifSuccess: false
}
]
this.actionSetDownloadList({ list, type: "dowloadList" })
} catch (err) {
console.log(err)
}
},
beforeSearchFn(type = 1) {
return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm)
if (this.searchFormSearch.checkTime.length) {
this.searchFormSearch.checkStartTime = Util.dateFormate(
......@@ -480,6 +513,18 @@ export default {
this.searchFormSearch.checkEndTime =
Util.dateFormate(this.searchFormSearch.checkTime[1], "YYYY-MM-DD") +
" 23:59:59"
const date1 = dayjs(this.searchFormSearch.checkStartTime),
date2 = dayjs(this.searchFormSearch.checkEndTime),
day = date2.diff(date1, "day") + 1
if (day > 31) {
this.$message.error(
`${
type == 1 ? "查询" : "导出"
}的时间跨度最大为31天,请重新选择日期范围`
)
reject()
}
}
if (this.searchFormSearch.finishTime.length) {
this.searchFormSearch.finishStartTime = Util.dateFormate(
......@@ -494,7 +539,7 @@ export default {
}
delete this.searchFormSearch.finishTime
delete this.searchFormSearch.checkTime
resolve()
resolve(this.searchFormSearch)
})
},
handleReset() {
......@@ -505,7 +550,7 @@ export default {
mainBrand: "",
punishType: "",
taskStatus: "",
checkTime: [], //复盘时间
checkTime: [thirtyOneDaysAgo, new Date()], //复盘时间
finishTime: [],
businessSceneTypeName: ""
}
......@@ -605,31 +650,6 @@ export default {
closeQRDetailDialog() {
this.QRdetailVisible = !this.QRdetailVisible
this.$refs.shortTable.refreshTable(false, true)
},
handleExport() {
var params = this.searchFormSearch
// 去除为null的值
for (const key in params) {
if (
params[key] === null ||
params[key] === "" ||
params[key].length == 0
) {
delete params[key]
}
}
params.method = "dj.smartcarlife.api.vpt.invoiceIssueQrcode.export.async"
const list = [
...this.dowloadList,
{
name: "开票二维码",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: "dowloadList" })
}
}
}
......
......@@ -65,6 +65,7 @@
import { timeTabOpt } from "@/common/constants.js"
import AssessTrend from "./components/assessTrend.vue"
import TurnoverTrend from "./components/turnoverTrend.vue"
import { getListApi } from "@/api/usedCarManagement.js"
export default {
components: {
AssessTrend,
......@@ -202,6 +203,11 @@ export default {
activeIndex: 0
}
},
mounted() {
getListApi().then((res) => {
console.log(res, "9999")
})
},
methods: {
handleClick(index) {
this.activeIndex = index
......
......@@ -6,6 +6,7 @@
<glsx-combi-form
class="edit-form-container"
ref="editFormRef"
isBlock="true"
label-width="150px"
:form-ref="editChildRef"
:form-obj="assessForm"
......@@ -40,7 +41,7 @@ export default {
type: "input",
maxlength: 200,
inputType: "textarea",
showLimit: true,
// showLimit: true,
rows: 4,
width: "570px"
}
......
......@@ -4,19 +4,19 @@
<div class="title">{{ item.title }}</div>
<div class="detail-content">
<div class="form_div" v-if="item.infoData && item.infoData.length">
<el-form class="edit-sub-block" label-width="150px" :inline="true">
<el-form
ref="ruleForm"
class="edit-sub-block"
label-width="150px"
:inline="true"
:model="detailInfo"
:rules="rules"
>
<el-row :gutter="20">
<template v-for="(item, key) in item.infoData">
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'">
<div
v-if="item.className"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
<template v-if="item.addHtml == 'photo'">
<el-form-item :label="item.title + ':'" :prop="item.key">
<template v-if="item.type == 'imgList'">
<div
class="photo-box"
v-if="
......@@ -34,7 +34,63 @@
</div>
<template v-else> - </template>
</template>
<template v-else-if="item.isEdit">
<template v-if="item.type == 'input'">
<el-input
v-model="detailInfo[item.key]"
:placeholder="`请输入${item.label}`"
:maxlength="item.maxLength || ''"
size="small"
class="edit-form-item"
></el-input>
</template>
<template v-else-if="item.type == 'date'">
<el-date-picker
v-model="detailInfo[item.key]"
type="date"
:placeholder="item.label"
size="small"
class="edit-form-item"
:picker-options="item.pickerOptions"
>
</el-date-picker>
</template>
<template v-else-if="item.type == 'textarea'">
<el-input
type="textarea"
:rows="3"
placeholder="请输入"
v-model="detailInfo[item.key]"
:maxlength="item.maxLength"
class="edit-form-item"
>
</el-input>
</template>
<template v-else-if="item.type == 'select'">
<el-select
v-model="detailInfo[item.key]"
:placeholder="`请选择${item.label}`"
size="small"
class="edit-form-item"
>
<el-option
v-for="item in item.options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</template>
</template>
<template v-else>
<div
v-if="item.className"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
{{
item.formatter
? item.formatter(detailInfo) || "-"
......@@ -43,6 +99,11 @@
: "-"
}}
</template>
<template v-if="item.suffixText">
<div class="unit">
{{ item.suffixText }}
</div>
</template>
</el-form-item></el-col
>
</template>
......@@ -50,6 +111,46 @@
</el-form>
</div>
</div>
<template v-if="item.subTitle">
<div v-for="signIndex in item.sign" :key="signIndex">
<div class="subtitle">{{ item.subTitle }}{{ signIndex }}</div>
<div class="detail-content">
<div class="form_div" v-if="item.subData && item.subData.length">
<el-form
class="edit-sub-block"
label-width="150px"
:inline="true"
>
<el-row :gutter="20">
<template v-for="(item, key) in item.subData">
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'">
<div
v-if="item.className"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
<template>
{{
item.formatter
? item.formatter(detailInfo) || "-"
: detailInfo[item.key]
? detailInfo[item.key]
: "-"
}}
</template>
</el-form-item></el-col
>
</template>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
</div>
</div>
</template>
......
.info-wrapper {
margin: 0 20px;
.item {
margin-bottom: 20px;
background-color: #fff;
.title {
color: #333333;
font-size: 16px;
font-weight: bold;
padding: 13.5px 20px;
border-bottom: 1px solid #e5e5e5;
line-height: 23px;
box-sizing: border-box;
}
.subtitle {
color: #333333;
font-size: 16px;
font-weight: bold;
padding: 13.5px 0;
border-bottom: 1px solid #e5e5e5;
line-height: 23px;
box-sizing: border-box;
margin: 0 20px;
}
.form_div {
color: #333333;
padding: 20px;
font-size: 14px;
.edit-sub-block {
.el-form-item {
width: 100%;
margin-bottom: 0px;
}
::v-deep .el-form-item__label {
color: #666666;
font-size: 14px;
}
.itemDiv {
display: flex;
.halfItem {
width: 50%;
}
}
.detail-txt {
display: inline-block;
width: 200px;
vertical-align: bottom;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-form-item__content {
width: calc(100% - 150px);
word-break: break-all;
}
}
::v-deep .edit-form-item {
width: 100%;
}
.unit {
margin-left: 8px;
flex-shrink: 0;
line-height: 32px;
}
.edit-sub-block-two {
.el-form-item {
margin-bottom: 0px;
}
}
.dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
.photo-box {
display: flex;
align-items: center;
::v-deep .photo-activity {
width: 100%;
height: 100%;
object-fit: contain;
position: static !important;
}
::v-deep .pic-box {
margin-right: 16px;
.video-poster {
width: 90px;
height: 90px;
}
}
}
}
}
}
......@@ -85,10 +85,10 @@
</div>
<div slot="auth-button" slot-scope="scope">
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9200201']" />
<auth-button :data="scope.scope" :show-btn-ids="['9200301']" />
</span>
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9200202']" />
<auth-button :data="scope.scope" :show-btn-ids="['9200302']" />
</span>
</div>
</d2-table>
......@@ -426,7 +426,7 @@ export default {
handleDetail(data) {
console.log("row", data)
this.$router.push({
path: "/evalOrderDetail",
path: "/contractView",
query: {
id: data.id
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!