Commit 26fb29fe by Jaxon

Merge branch 'SAAS+V5.7.4' into SAAS+V5.8.0

# Conflicts:
#	.gitignore
#	.vscode/settings.json
#	package-lock.json
#	src/views/purchase/components/CheckDialog.vue
#	src/views/purchase/components/orderDetailDialog.vue
#	src/views/purchase/components/rejectDialog.vue
#	src/views/purchase/singleReview.vue
#	src/views/stockManage/components/transferDetailDialog.vue
#	src/views/stockManage/transferOperationsReview/handleReject.vue
#	src/views/stockManage/transferOperationsReview/handleReview.vue
2 parents 0a09af71 1bb78a76
...@@ -32,4 +32,4 @@ ...@@ -32,4 +32,4 @@
"javascript.suggest.autoImports": true, // 确保这个是 true "javascript.suggest.autoImports": true, // 确保这个是 true
"vue.updateImportsOnFileMove.enabled": true, "vue.updateImportsOnFileMove.enabled": true,
"i18n-ally.sourceLanguage": "zh-chs" "i18n-ally.sourceLanguage": "zh-chs"
}
\ No newline at end of file \ No newline at end of file
}
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<div class="glsk-form-dialog"> <div class="glsk-form-dialog">
<d2-dialog :append-to-body="appendToBody" <d2-dialog :append-to-body="appendToBody"
:btn-ok-label="dialogConfig.okText" :btn-ok-label="dialogConfig.okText"
:noCancel="dialogConfig.hideClose"
:is-visible="selectVisible" :is-visible="selectVisible"
:title="dialogConfig.title" :title="dialogConfig.title"
:width="dialogWidth" :width="dialogWidth"
...@@ -56,6 +57,7 @@ export default { ...@@ -56,6 +57,7 @@ export default {
return { return {
title: "提示", title: "提示",
okText: "确定", okText: "确定",
hideClose: false,
}; };
}, },
}, },
......
<template>
<div class="examine-record">
<div class="title">
审核记录
</div>
<template v-if="list && list.length">
<div v-if="list.length > 2 && useExpand"
class="up-down"
@click="handleToggleVisible">
<el-button size="mini"
type="text"
:icon="visible ? 'el-icon-arrow-up' : 'el-icon-arrow-down'" />
{{ visible ? "收起" : "展开" }}
</div>
<div style="width:100%;">
<div class="record-div">
<div v-for="(item, index) in getList"
:key="index"
class="record-div-d">
<span class="span-txt-one text-hide">
{{ item.status ? $$(statusForShow, [item.status], "text") : "" }}
</span>
<span class="span-txt-two status-wrapper">
<span :class="item.status ? examineStatusClass[item.status] : ''">
{{
item.status
? $$(statusForShow, [item.status], "status")
: ""
}}
</span>
<span v-if="item.rejectedStatus">
<span style="display: inline-block; margin: 0 8px">至</span>
<span>
{{
item.rejectedStatus
? $$(
rejectedForShow,
[item.rejectedStatus],
"rejectedStatus",
)
: ""
}}
</span>
</span>
</span>
<span class="span-txt-two reviewer item-wrapper ">
<span>审核人:</span>
<div class="value">
<el-tooltip class="item"
popper-class="remark-popper-class"
effect="dark"
:content="item.reviewedBy"
placement="bottom">
<el-button type="text" class="value-btn text-hide">
{{ item.reviewedBy }}
</el-button>
</el-tooltip>
</div>
</span>
<span class="span-txt-two ">
审核时间:{{ item.reviewedDateFormat || item.reviewedDate }}
</span>
<span v-if="item.remark" class="span-txt-two remark item-wrapper">
<span class="label">备注:</span>
<div class="value">
<el-tooltip class="item"
popper-class="remark-popper-class"
effect="dark"
:content="item.remark"
placement="bottom">
<el-button type="text" class="value-btn text-hide">
{{ item.remark }}
</el-button>
</el-tooltip>
</div>
</span>
<span v-if="[4, 6, 7, 9, 11].includes(item.status)"
class="span-txt-two reject-cause item-wrapper">
<span class="label">驳回原因:</span>
<div class="value">
<el-tooltip class="item"
popper-class="remark-popper-class"
effect="dark"
:content="item.rejectCause"
placement="bottom">
<el-button type="text" class="text-hide value-btn">
{{ item.rejectCause }}
</el-button>
</el-tooltip>
</div>
</span>
</div>
</div>
</div>
</template>
<div v-else class="emptyCom">
<img :src="emptyImg"
class="emptyImg"
alt="" />
<span class="tips">暂无数据</span>
</div>
</div>
</template>
<script>
import emptyImg from "@/assets/empty.png";
export default {
name: "",
props: {
list: {
required: true,
type: Array,
},
useExpand: {
type: Boolean,
default: true,
},
},
data() {
return {
visible: false,
emptyImg,
examineStatusClass: {
2: "greenSp",
4: "redSp",
5: "greenSp",
6: "redSp",
7: "redSp",
8: "greenSp",
9: "redSp",
10: "greenSp",
11: "redSp",
},
statusForShow: {
2: { text: "运营审核", status: "通过" },
4: { text: "运营审核", status: "驳回" },
5: { text: "商务审核", status: "通过" },
6: { text: "商务审核", status: "驳回" },
7: { text: "采购驳回", status: "驳回" },
8: { text: "总监审核", status: "通过" },
9: { text: "总监审核", status: "驳回" },
10: { text: "经理通过", status: "通过" },
11: { text: "经理驳回", status: "驳回" },
},
rejectedForShow: {
1: { rejectedStatus: "采购商户" },
2: { rejectedStatus: "运营审核" },
3: { rejectedStatus: "商务审核" },
6: { rejectedStatus: "经理审核" },
},
};
},
computed: {
getList() {
// 如果不使用展开功能, 直接返回整个list
if (!this.useExpand) {
return this.list;
}
if (this.visible) {
return this.list;
} else {
return this.list.slice(0, 2);
}
},
},
mounted() {
},
methods: {
handleToggleVisible() {
this.visible = !this.visible;
},
},
};
</script>
<style scoped lang="scss">
.examine-record {
position: relative;
width: 100%;
min-height: 60px;
border-radius: 4px;
border: 1px solid #fafafa;
background: #fafafa;
> .title {
padding: 16px 20px;
line-height: 20px;
font-weight: 600;
font-size: 16px;
color: #333333;
text-align: left;
}
.up-down {
position: absolute;
right: 20px;
top: 20px;
width: 42px;
height: 20px;
font-family: PingFangSC-Regular;
color: #2a58ad;
font-size: 12px;
cursor: pointer;
}
.record-div {
padding: 0 20px 16px;
font-size: 14px;
color: #666666;
overflow: hidden;
width: 100%;
box-sizing: border-box;
.record-div-d {
margin-top: 10px;
overflow: hidden;
width: 100%;
position: relative;
display: flex;
align-items: center;
padding: 4px 0 4px 24px;
box-sizing: border-box;
&::before {
position: absolute;
content: "";
left: 6px;
top: 50%;
transform: translateY(-50%);
width: 6px;
height: 6px;
background: #185efe;
border-radius: 6px;
}
> .span-txt-one {
max-width: 5em;
}
.span-txt-two {
margin-left: 12px;
flex-shrink: 0;
&.status-wrapper {
width: 180px;
}
&.reviewer {
width: 140px;
}
&.remark {
flex: 1;
}
&.reject-cause {
flex: 1;
}
&.item-wrapper {
overflow: hidden;
display: flex;
align-items: center;
.label {
flex-shrink: 0;
}
.value {
flex: 1;
text-align: left;
overflow: hidden;
.value-btn {
max-width: 100%;
padding: 0;
}
}
}
}
}
.greenSp {
color: #4aca74;
}
.redSp {
color: #eb4e4e;
}
}
.emptyCom {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
.emptyImg {
width: 64px;
}
.tips {
font-size: 14px;
color: #999999;
margin: 20px 0;
}
}
}
</style>
...@@ -326,7 +326,7 @@ export default { ...@@ -326,7 +326,7 @@ export default {
...this.dowloadList, ...this.dowloadList,
{ {
// name: '采购审核', // name: '采购审核',
name: '运营审核', name: '总监审核',
exportParam: JSON.stringify(params), exportParam: JSON.stringify(params),
status: 'waiting', status: 'waiting',
timeid: new Date().getTime() timeid: new Date().getTime()
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
:search-form="tableSearchForm" :search-form="tableSearchForm"
:table-params="tableParams" :table-params="tableParams"
:table-data="tableData" :table-data="tableData"
:selectable-fn="selectableFn"
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<template #auth-button="scope"> <template #auth-button="scope">
...@@ -281,6 +282,9 @@ export default { ...@@ -281,6 +282,9 @@ export default {
methods: { methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]), ...mapActions("d2admin/user", ["actionSetDownloadList"]),
selectableFn(row, index) {
return row.status == 2 && row.sendOutMerchantId != null;
},
getBaseData(res) { getBaseData(res) {
const allOpt = { const allOpt = {
id: "", id: "",
...@@ -303,18 +307,6 @@ export default { ...@@ -303,18 +307,6 @@ export default {
} }
}); });
}, },
// 根据所选场景获取类目
// handleChangeSelect(value) {
// this.searchForm.goodsType = ''
// this.baseData.productTypeList = []
// getProductTypeBySceneId({ sceneType: value }).then(res => {
// this.baseData.productTypeList = res
// this.getBaseData()
// })
// },
// selectableFn(row, index) {
// return row.status == 1 && row.sendOutMerchantId != null
// },
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise((resolve) => {
......
...@@ -136,14 +136,10 @@ ...@@ -136,14 +136,10 @@
:visible.sync="allocateVisible" :visible.sync="allocateVisible"
@editClose="allocateClose"> @editClose="allocateClose">
</AllocateDialog> </AllocateDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting" -->
<baseDialog :dialog-config="rejectConfig.config" <baseDialog :dialog-config="rejectConfig.config"
:is-show.sync="rejectVisible" :is-show.sync="rejectVisible"
@handleClick="handleRejectConfirm"> @handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
<div class="reject-dialog" style="margin: 0;"> <div class="reject-dialog" style="margin: 0;">
<div class="edit-page edit-tmpl"> <div class="edit-page edit-tmpl">
<div class="title"> <div class="title">
商品信息 商品信息
...@@ -239,81 +235,8 @@ ...@@ -239,81 +235,8 @@
<p style="margin-left: 150px; color: #999999;"> <p style="margin-left: 150px; color: #999999;">
说明:驳回后,整个采购订单进行驳回,无法再重新进行发货操作。 说明:驳回后,整个采购订单进行驳回,无法再重新进行发货操作。
</p> </p>
<div class="examine-record"> <ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
<div class="title">
审核记录
</div>
<div v-if="auditDetaiList && auditDetaiList.length"
class="up-down"
@click="handleUpDown">
<el-button :icon="isVisible ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
size="mini"
type="text" />
{{ isVisible ? "收起" : "展开" }}
</div>
<div>
<div v-if="auditDetaiList && auditDetaiList.length" class="record-div">
<div v-for="(item, index) in auditDetaiList"
:key="index"
class="record-div-d">
<span class="dot"></span>
<span class="span-txt-one">{{ item.status ? $$(statusForShow, [item.status], 'text') : '' }}</span>
<span class="span-txt-two" style="display: inline-block; width: 116px;">
<span :class="item.status ? examineStatusClass[item.status] : ''">
{{ item.status ? $$(statusForShow, [item.status], 'status') : '' }}
</span>
<span v-if="item.rejectedStatus">
<span style="display: inline-block; margin: 0 8px;">至</span>
<span>{{ item.rejectedStatus ? $$(rejectedForShow, [item.rejectedStatus], 'rejectedStatus') : '' }}</span>
</span>
</span>
<span class="span-txt-two reviewer ellipsis">
审核人:
<el-tooltip class="item"
:content="item.reviewedBy"
effect="dark"
placement="bottom"
popper-class="remark-popper-class">
<el-button type="text">
{{ item.reviewedBy }}
</el-button>
</el-tooltip>
</span>
<span class="span-txt-two">审核时间:{{ item.reviewedDateFormat }}</span>
<span v-if="item.remark" class="span-txt-two">
备注:
<el-tooltip class="item"
:content="item.remark"
effect="dark"
placement="bottom"
popper-class="remark-popper-class">
<el-button type="text">
{{ item.remark ? (item.remark.length > 5 ? (`${item.remark.slice(0, 5)}...`) : item.remark) : '' }}
</el-button>
</el-tooltip>
</span>
<span v-if="[4, 6, 7, 9].includes(item.status)" class="span-txt-two">
驳回原因:
<el-tooltip class="item"
:content="item.rejectCause"
effect="dark"
placement="bottom"
popper-class="remark-popper-class">
<el-button type="text">
{{ item.rejectCause ? (item.rejectCause.length > 5 ? (`${item.rejectCause.slice(0, 5)}...`) : item.rejectCause) : '' }}
</el-button>
</el-tooltip>
</span>
</div>
</div>
<div v-else class="emptyCom">
<img alt=""
class="emptyImg"
:src="emptyImgUrl">
<span class="tips">暂无数据</span>
</div>
</div>
</div>
</div> </div>
<!-- <div class="footer"> <!-- <div class="footer">
<el-button @click="handleRejectClose">取消</el-button> <el-button @click="handleRejectClose">取消</el-button>
...@@ -369,7 +292,8 @@ import { deepClone, Util } from "@/common/util"; ...@@ -369,7 +292,8 @@ import { deepClone, Util } from "@/common/util";
import { baseConfig } from "@/main"; import { baseConfig } from "@/main";
import AllocateDialog from "./components/AllocateDialog"; import AllocateDialog from "./components/AllocateDialog";
import EditOrderDialog from "./components/EditOrderDialog"; import EditOrderDialog from "./components/EditOrderDialog";
import orderDeatilDialog from "./components/orderDetailDialog"; import ExamineRecord from "./components/examineRecord.vue";
import OrderDeatilDialog from "./components/orderDetailDialog";
import { import {
defaultDeliveryStatusOptions, defaultDeliveryStatusOptions,
defaultPutStatusOptions, defaultPutStatusOptions,
...@@ -379,13 +303,14 @@ import { ...@@ -379,13 +303,14 @@ import {
rejectNodeOptions, rejectNodeOptions,
signStatusType, signStatusType,
} from "./constant"; } from "./constant";
// import { limitPrice } from '@/common/format'
export default { export default {
name: "PurchaseAndDelivery", name: "PurchaseAndDelivery",
components: { components: {
OrderDeatilDialog: orderDeatilDialog, OrderDeatilDialog,
EditOrderDialog, EditOrderDialog,
AllocateDialog, AllocateDialog,
ExamineRecord,
}, },
data() { data() {
return { return {
...@@ -443,8 +368,8 @@ export default { ...@@ -443,8 +368,8 @@ export default {
7: "redSp", 7: "redSp",
8: "greenSp", 8: "greenSp",
9: "redSp", 9: "redSp",
10: 'greenSp', 10: "greenSp",
11: 'redSp' 11: "redSp",
}, },
examineStatus: 1, examineStatus: 1,
statusForShow: { statusForShow: {
...@@ -455,8 +380,8 @@ export default { ...@@ -455,8 +380,8 @@ export default {
7: { text: "采购驳回", status: "驳回" }, 7: { text: "采购驳回", status: "驳回" },
8: { text: "总监审核", status: "通过" }, 8: { text: "总监审核", status: "通过" },
9: { text: "总监审核", status: "驳回" }, 9: { text: "总监审核", status: "驳回" },
10: { text: '经理通过', status: '通过' }, 10: { text: "经理通过", status: "通过" },
11: { text: '经理驳回', status: '驳回' }, 11: { text: "经理驳回", status: "驳回" },
}, },
rejectedForShow: { rejectedForShow: {
1: { rejectedStatus: "采购商户" }, 1: { rejectedStatus: "采购商户" },
...@@ -1158,10 +1083,6 @@ export default { ...@@ -1158,10 +1083,6 @@ export default {
} }
}); });
}, },
handleUpDown() {
this.auditDetaiList = this.isVisible ? deepClone(this.originalAuditDetaiList.slice(0, 2)) : deepClone(this.originalAuditDetaiList);
this.isVisible = !this.isVisible;
},
rejectRefreshTable(pageObj) { rejectRefreshTable(pageObj) {
this.getDetail(pageObj); this.getDetail(pageObj);
}, },
...@@ -1180,7 +1101,6 @@ export default { ...@@ -1180,7 +1101,6 @@ export default {
return item; return item;
}); });
} }
this.auditDetaiList = deepClone(this.originalAuditDetaiList.slice(0, 2));
}); });
}, },
// 批量分配 // 批量分配
...@@ -1427,100 +1347,6 @@ export default { ...@@ -1427,100 +1347,6 @@ export default {
vertical-align: middle; vertical-align: middle;
} }
.examine-record {
position: relative;
width: 850px;
min-height: 60px;
border-radius: 4px;
border: 1px solid #fafafa;
background: #fafafa;
margin-top: 23px;
.title {
margin: 16px 20px;
width: 64px;
height: 19px;
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 16px;
color: #333333;
text-align: center;
}
.up-down {
position: absolute;
right: 20px;
top: 20px;
width: 42px;
height: 20px;
font-family: PingFangSC-Regular;
color: #2a58ad;
font-size: 12px;
cursor: pointer;
}
.dot {
width: 6px;
height: 6px;
background: #185efe;
border-radius: 6px;
display: inline-block;
}
.record-div {
margin: 16px 20px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 14px;
color: #666666;
letter-spacing: 0;
.record-div-d {
margin-top: 10px;
}
.span-txt-one {
margin-left: 14px;
width: 203px;
height: 21px;
}
.reviewer {
display: inline-block;
width: 140px;
}
.span-txt-two {
margin-left: 20px;
}
.greenSp {
color: #4aca74;
}
.redSp {
color: #eb4e4e;
}
}
.emptyCom {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
.emptyImg {
width: 64px;
}
.tips {
font-size: 14px;
color: #999999;
margin: 20px 0;
}
}
}
.footer { .footer {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
......
...@@ -34,17 +34,27 @@ ...@@ -34,17 +34,27 @@
</div> </div>
</div> </div>
<div v-if="isBtn" class="btns"> <div v-if="isBtn" class="btns">
<el-button type="text" @click="handleWorking(item)"> <el-button v-if="isPendingTrial(item)" type="text" @click="handleEdit(item, index)">
转入职 编辑
</el-button> </el-button>
<el-button v-if="isPendingTrial(item)" type="text" @click="handleResolve(item, index)">
<el-button type="text" @click="handleEdit(item, index)"> 处理
编辑 </el-button>
</el-button> <el-button v-if="isPendingTrial(item)" type="text" @click="handleDelete(index)">
<el-button type="text" @click="handleDelete(index)"> 删除
删除 </el-button>
</el-button> <el-button v-if="isProcessedTrial(item)" type="text" @click="handleWorking(item)">
转入职
</el-button>
<el-button v-if="isProcessedTrial(item)" type="text" @click="handleViewResult(item)">
查看结果
</el-button>
</div> </div>
<div else class="btns">
<el-button v-if="isProcessedTrial(item)" type="text" @click="handleViewResult(item)">
查看结果
</el-button>
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -57,6 +67,9 @@ ...@@ -57,6 +67,9 @@
<!-- 新增试岗 --> <!-- 新增试岗 -->
<glsk-form-dialog v-if="isAddVisible" ref="addResumeDialog" :base-data="baseData" default-width="406px" :dialog-config="isAddDialogConfig" :edit-data="isAddForm" :edit-form-data="isAddFormData" :form-rules="isAddRules" label-width="150px" :select-visible="isAddVisible" :slot-arr="slotArr" @handleAddSelectTypeConfirm="handleAddSelectTypeConfirm" @handleClose="isAddDialogVisible" @handleConfirm="handleAddConfirm" @handleEditSelectTypeConfirm="handleEditSelectTypeConfirm"> <glsk-form-dialog v-if="isAddVisible" ref="addResumeDialog" :base-data="baseData" default-width="406px" :dialog-config="isAddDialogConfig" :edit-data="isAddForm" :edit-form-data="isAddFormData" :form-rules="isAddRules" label-width="150px" :select-visible="isAddVisible" :slot-arr="slotArr" @handleAddSelectTypeConfirm="handleAddSelectTypeConfirm" @handleClose="isAddDialogVisible" @handleConfirm="handleAddConfirm" @handleEditSelectTypeConfirm="handleEditSelectTypeConfirm">
</glsk-form-dialog> </glsk-form-dialog>
<!-- 试岗处理 -->
<glsk-form-dialog v-if="isResolveVisible" :base-data="baseData" default-width="406px" :dialog-config="isResolveDialogConfig" :edit-data="isResolveForm" :edit-form-data="isResolveFormData" :form-rules="isResolveRules" label-width="150px" :select-visible="isResolveVisible" @handleClose="isResolveDialogVisible" @handleConfirm="handleResolveConfirm">
</glsk-form-dialog>
</div> </div>
</template> </template>
...@@ -64,7 +77,6 @@ ...@@ -64,7 +77,6 @@
import GlOssApi from "glsk-oss-jssdk"; import GlOssApi from "glsk-oss-jssdk";
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
import { addDict, deleteDict, getDictList, updateDict } from "@/api/recruitment"; import { addDict, deleteDict, getDictList, updateDict } from "@/api/recruitment";
import { interviewResultOpt, processResultOpt } from "@/common/constants.js";
import { deepClone, Util } from "@/common/util"; import { deepClone, Util } from "@/common/util";
import { baseConfig } from "@/main"; import { baseConfig } from "@/main";
...@@ -89,6 +101,7 @@ export default { ...@@ -89,6 +101,7 @@ export default {
imgList: [], imgList: [],
detailVisible: false, detailVisible: false,
isAddVisible: false, isAddVisible: false,
isResolveVisible: false,
slotArr: [], slotArr: [],
trialOnboardingsData: [], trialOnboardingsData: [],
paramsObj: {}, paramsObj: {},
...@@ -98,6 +111,10 @@ export default { ...@@ -98,6 +111,10 @@ export default {
title: "新增简历", title: "新增简历",
okText: "确定", okText: "确定",
}, },
isResolveDialogConfig: {
title: "试岗处理",
okText: "确定",
},
isAddRules: { isAddRules: {
personName: [ personName: [
{ required: true, message: "请输入人员姓名", trigger: "blur" }, { required: true, message: "请输入人员姓名", trigger: "blur" },
...@@ -122,6 +139,11 @@ export default { ...@@ -122,6 +139,11 @@ export default {
{ required: true, message: "请选择试岗时间", trigger: "change" }, { required: true, message: "请选择试岗时间", trigger: "change" },
], ],
}, },
isResolveRules: {
processResult: [
{ required: true, message: "请选择处理结果", trigger: "change" },
],
},
isAddForm: { isAddForm: {
personName: "", personName: "",
phoneNumber: "", phoneNumber: "",
...@@ -174,9 +196,35 @@ export default { ...@@ -174,9 +196,35 @@ export default {
dateType: "date", dateType: "date",
}, },
], ],
isResolveForm: {
processResult: "",
processRemark: "",
},
isResolveFormData: [
{
label: "处理结果",
name: "processResult",
type: "radio",
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "trialProcessResultOpt",
},
{
label: "说明",
name: "processRemark",
type: "textarea",
isClear: true,
showLimit: true,
maxlength: 200,
rows: 4,
},
],
baseData: { baseData: {
interviewResultOpt, trialProcessResultOpt: [
processResultOpt, { confId: 1, confValue: "通过" },
{ confId: 0, confValue: "不通过" },
],
channelData: [], channelData: [],
}, },
}; };
...@@ -267,6 +315,13 @@ export default { ...@@ -267,6 +315,13 @@ export default {
this.uploadFileList = []; this.uploadFileList = [];
this.isAddVisible = !this.isAddVisible; this.isAddVisible = !this.isAddVisible;
}, },
isResolveDialogVisible() {
this.isResolveForm = {
processResult: "",
processRemark: "",
};
this.isResolveVisible = !this.isResolveVisible;
},
getCurrentDate() { getCurrentDate() {
const time = new Date(); const time = new Date();
const y = time.getFullYear(); const y = time.getFullYear();
...@@ -280,6 +335,7 @@ export default { ...@@ -280,6 +335,7 @@ export default {
data.trialTime data.trialTime
? (data.trialTime = Util.dateFormate(data.trialTime, "YYYY-MM-DD")) ? (data.trialTime = Util.dateFormate(data.trialTime, "YYYY-MM-DD"))
: ""; : "";
data.processResult = null;
this.$emit("handleAddConfirm", data, this.isAdd, this.index); this.$emit("handleAddConfirm", data, this.isAdd, this.index);
this.isAddDialogVisible(); this.isAddDialogVisible();
}, },
...@@ -313,6 +369,27 @@ export default { ...@@ -313,6 +369,27 @@ export default {
this.checkParams(this.isAddForm); this.checkParams(this.isAddForm);
this.updateParams(this.isAddForm); this.updateParams(this.isAddForm);
}, },
handleResolve(data, index) {
this.index = index;
this.recordInfo = deepClone(data);
this.isResolveForm = {
processResult: "",
processRemark: "",
};
this.recordInfo.frontUpdatedDate = Util.dateFormate(new Date(), "YYYY-MM-DD HH:mm:ss");
this.recordInfo.processorName = this.userInfo.detail.userName;
console.log(this.recordInfo)
this.isResolveVisible = true;
},
handleResolveConfirm(data) {
const params = {
...this.recordInfo,
processResult: data.processResult,
processRemark: data.processRemark,
};
this.$emit("handleAddConfirm", params, false, this.index);
this.isResolveDialogVisible();
},
checkParams(data) { checkParams(data) {
if (!data) if (!data)
return; return;
...@@ -429,6 +506,15 @@ export default { ...@@ -429,6 +506,15 @@ export default {
handleWorking(data) { handleWorking(data) {
this.$emit("handleWorking", data); this.$emit("handleWorking", data);
}, },
handleViewResult(data) {
this.$emit("handleViewResult", data);
},
isPendingTrial(item) {
return item?.processResult === null
},
isProcessedTrial(item) {
return !this.isPendingTrial(item)
},
handleDetailClose() { handleDetailClose() {
this.detailVisible = !this.detailVisible; this.detailVisible = !this.detailVisible;
}, },
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
:trialOnboardings="detailInfo.trialOnboardings" :trialOnboardings="detailInfo.trialOnboardings"
@handleAddConfirm="handleTrialConfirm" @handleAddConfirm="handleTrialConfirm"
@handleWorking="handleWorking" @handleWorking="handleWorking"
@handleViewResult="handleViewResult"
:isBtn="isBtn" :isBtn="isBtn"
></trialOnboard> ></trialOnboard>
<!-- 入职计划 --> <!-- 入职计划 -->
...@@ -40,6 +41,18 @@ ...@@ -40,6 +41,18 @@
>取消</el-button >取消</el-button
> >
</div> </div>
<glsk-form-dialog
v-if="trialViewResultVisible"
class="trial-view-result-dialog"
dialog-width="640px"
:dialog-config="trialViewDialogConfig"
:edit-data="trialViewResultForm"
:edit-form-data="trialViewResultFormData"
:select-visible="trialViewResultVisible"
@handleClose="handleTrialViewResultClose"
@handleConfirm="handleTrialViewResultClose"
>
</glsk-form-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -49,13 +62,73 @@ import { handleRecruitment } from "@/api/recruitment" ...@@ -49,13 +62,73 @@ import { handleRecruitment } from "@/api/recruitment"
export default { export default {
mixins: [recruitMixin], mixins: [recruitMixin],
data() { data() {
const editItemStyle = {
marginBottom: "10px",
}
const contentStyle = {
width: "406px",
display: 'inline-block',
'word-break': 'break-all',
'white-space': 'pre-wrap',
'line-height': '22px',
'margin-top': '4px'
}
return { return {
loading: false, loading: false,
btnLoding: false, btnLoding: false,
isBtn: true isBtn: true,
trialViewResultVisible: false,
trialViewDialogConfig: {
title: "查看结果",
okText: "返回",
hideClose: true
},
trialViewResultForm: {},
trialViewResultFormData: [
{
label: "处理结果",
name: "processResult",
type: "showTxt",
formatter: (row) => {
const obj = {
"1": "通过",
"0": "不通过"
}
return obj[String(row.processResult)] || "-"
},
style: editItemStyle
},
{
label: "说明",
name: "processRemark",
type: "showTxt",
formatter: (row) => row.processRemark || "-",
style: editItemStyle,
txtStyle: contentStyle,
},
{
label: "处理人",
name: "processorName",
type: "showTxt",
style: editItemStyle
},
{
label: "处理时间",
name: "frontUpdatedDate",
type: "showTxt",
formatter: (row) => {
const date = row.frontUpdatedDate || row.updatedDate
return date ? Util.dateFormate(new Date(date), "YYYY-MM-DD HH:mm") : "-"
},
style: editItemStyle
}
]
} }
}, },
methods: { methods: {
handleTrialViewResultClose() {
this.trialViewResultVisible = false
},
handleSave() { handleSave() {
this.btnLoding = true this.btnLoding = true
let params = { let params = {
...@@ -99,6 +172,11 @@ export default { ...@@ -99,6 +172,11 @@ export default {
this.$refs.entryInfo.handleEntry?.(true) this.$refs.entryInfo.handleEntry?.(true)
this.$refs.entryInfo.isEntryForm = deepClone({ ...obj, skillTagIds: [] }) this.$refs.entryInfo.isEntryForm = deepClone({ ...obj, skillTagIds: [] })
}, },
// 试岗计划 - 查看结果
handleViewResult(data) {
this.trialViewResultForm = deepClone({ ...data })
this.trialViewResultVisible = true
},
//转试岗 //转试岗
handleTrial(data) { handleTrial(data) {
let params = { let params = {
...@@ -253,4 +331,12 @@ export default { ...@@ -253,4 +331,12 @@ export default {
scrollbar-color: transparent transparent; scrollbar-color: transparent transparent;
scrollbar-width: thin; scrollbar-width: thin;
} }
::v-deep .trial-view-result-dialog .el-dialog__footer .el-button {
width: 56px !important;
padding: 8px 14px !important;
color: #666666 !important;
background: #e8e8e8 !important;
border-color: #e8e8e8 !important;
}
</style> </style>
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<trialOnboard <trialOnboard
:trialOnboardings="detailInfo.trialOnboardings" :trialOnboardings="detailInfo.trialOnboardings"
:isBtn="isBtn" :isBtn="isBtn"
@handleViewResult="handleViewResult"
></trialOnboard> ></trialOnboard>
<entryInfo <entryInfo
:onboardingPlans="detailInfo.onboardingPlans" :onboardingPlans="detailInfo.onboardingPlans"
...@@ -23,17 +24,87 @@ ...@@ -23,17 +24,87 @@
>关闭</el-button >关闭</el-button
> >
</div> </div>
<glsk-form-dialog
v-if="trialViewResultVisible"
class="trial-view-result-dialog"
dialog-width="640px"
:dialog-config="trialViewDialogConfig"
:edit-data="trialViewResultForm"
:edit-form-data="trialViewResultFormData"
:select-visible="trialViewResultVisible"
@handleClose="handleTrialViewResultClose"
@handleConfirm="handleTrialViewResultClose"
>
</glsk-form-dialog>
</div> </div>
</template> </template>
<script> <script>
import { Util, deepClone } from "@/common/util"
import { recruitMixin } from "./components/recruitMixin" import { recruitMixin } from "./components/recruitMixin"
export default { export default {
mixins: [recruitMixin], mixins: [recruitMixin],
data() { data() {
const editItemStyle = {
marginBottom: "10px",
}
const contentStyle = {
width: "406px",
display: 'inline-block',
'word-break': 'break-all',
'white-space': 'pre-wrap',
'line-height': '22px',
'margin-top': '4px'
}
return { return {
loading: false, loading: false,
detailInfo: {}, detailInfo: {},
isBtn: false isBtn: false,
trialViewResultVisible: false,
trialViewDialogConfig: {
title: "查看结果",
okText: "返回",
hideClose: true
},
trialViewResultForm: {},
trialViewResultFormData: [
{
label: "处理结果",
name: "processResult",
type: "showTxt",
formatter: (row) => {
const obj = {
"1": "通过",
"0": "不通过"
}
return obj[String(row.processResult)] || "-"
},
style: editItemStyle
},
{
label: "说明",
name: "processRemark",
type: "showTxt",
formatter: (row) => row.processRemark || "-",
style: editItemStyle,
txtStyle: contentStyle,
},
{
label: "处理人",
name: "processorName",
type: "showTxt",
style: editItemStyle
},
{
label: "处理时间",
name: "frontUpdatedDate",
type: "showTxt",
formatter: (row) => {
const date = row.frontUpdatedDate || row.updatedDate
return date ? Util.dateFormate(new Date(date), "YYYY-MM-DD HH:mm") : "-"
},
style: editItemStyle
}
]
} }
}, },
mounted() { mounted() {
...@@ -42,7 +113,15 @@ export default { ...@@ -42,7 +113,15 @@ export default {
methods: { methods: {
handleCancel() { handleCancel() {
this.$router.push("/recruitmentManagement") this.$router.push("/recruitmentManagement")
} },
// 试岗计划 - 查看结果
handleViewResult(data) {
this.trialViewResultForm = deepClone({ ...data })
this.trialViewResultVisible = true
},
handleTrialViewResultClose() {
this.trialViewResultVisible = false
},
} }
} }
</script> </script>
...@@ -131,4 +210,12 @@ export default { ...@@ -131,4 +210,12 @@ export default {
scrollbar-color: transparent transparent; scrollbar-color: transparent transparent;
scrollbar-width: thin; scrollbar-width: thin;
} }
::v-deep .trial-view-result-dialog .el-dialog__footer .el-button {
width: 56px !important;
padding: 8px 14px !important;
color: #666666 !important;
background: #e8e8e8 !important;
border-color: #e8e8e8 !important;
}
</style> </style>
<!-- 库存管理 --> <!-- 库存管理 -->
<template> <template>
<div> <div>
<d2-container> <d2-container>
<template #header> <template #header>
<div class="header" <div class="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :form-data="showFormData" :search-form="searchForm" />
style="padding: 10px 20px;"> <div class="up-btns">
<d2-search ref="showSearch" <el-button size="small" type="primary" @click="handleSearch">
class="show-search" 查询
:form-data="showFormData" </el-button>
:search-form="searchForm" /> <el-button size="small" @click="handleReset">
<div class="up-btns"> 重置
<el-button size="small" </el-button>
type="primary" </div>
@click="handleSearch"> </div>
查询 </template>
</el-button> <div class="d2-container-content">
<el-button size="small" <d2-table-header>
@click="handleReset"> <template #left>
重置 <span class="leftSpan">
</el-button> 合计:当前库存<span class="count-txt">{{ statisticsData }}</span>
</div> </span>
</div> </template>
</template> <div>
<div class="d2-container-content"> <auth-button category="Button" />
<d2-table-header> </div>
<template #left> </d2-table-header>
<span class="leftSpan"> <d2-table ref="recordTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
合计:当前库存<span class="count-txt">{{ statisticsData }}</span> :search-form="searchFormSearch" :table-params="tableParams">
</span> <template #auth-button="scope">
</template> <auth-button :data="scope.scope" />
<div> </template>
<auth-button category="Button" /> </d2-table>
</div> </div>
</d2-table-header> </d2-container>
<d2-table ref="recordTable" <!-- 查看 -->
:before-search-fn="beforeSearchFn" <StockMonthDialog v-if="stockMonthVisible" :record-info="recordInfo" :stock-month-visible="stockMonthVisible"
:get-list-api="getListApi" @dialogClose="dialogClose" />
:search-form="searchFormSearch" <StockDetailDialog v-if="stockDetailDialogVisible" :record-info="recordInfo"
:table-params="tableParams"> :visible.sync="stockDetailDialogVisible">
<template #auth-button="scope"> </StockDetailDialog>
<auth-button :data="scope.scope" /> <StatementOfAccountDialog v-if="statementOfAccountDialogVisible" :visible.sync="statementOfAccountDialogVisible"
</template> :yq-merchant-list="baseData.yqMerchantList" @handleRelateProConfirm="handleRelateProConfirm">
</d2-table> </StatementOfAccountDialog>
</div> </div>
</d2-container>
<!-- 查看 -->
<StockMonthDialog v-if="stockMonthVisible"
:record-info="recordInfo"
:stock-month-visible="stockMonthVisible"
@dialogClose="dialogClose" />
<StockDetailDialog v-if="stockDetailDialogVisible"
:record-info="recordInfo"
:visible.sync="stockDetailDialogVisible">
</StockDetailDialog>
<StatementOfAccountDialog v-if="statementOfAccountDialogVisible"
:visible.sync="statementOfAccountDialogVisible"
:yq-merchant-list="baseData.yqMerchantList"
@handleRelateProConfirm="handleRelateProConfirm">
</StatementOfAccountDialog>
</div>
</template> </template>
<script> <script>
...@@ -248,6 +232,7 @@ export default { ...@@ -248,6 +232,7 @@ export default {
// 库存记录统计 // 库存记录统计
stockMonthReportCount() { stockMonthReportCount() {
this.beforeSearchFn()
stockMonthReportCount(this.searchFormSearch).then((res) => { stockMonthReportCount(this.searchFormSearch).then((res) => {
this.statisticsData = res; this.statisticsData = res;
}); });
......
<!-- 商务审核 --> <!-- 商务审核 -->
<template> <template>
<div> <div>
<d2-container> <d2-container>
<template #header> <template #header>
<div class="header" style="padding: 10px 20px"> <div class="header" style="padding: 10px 20px">
<d2-search ref="showSearch" <d2-search ref="showSearch" class="show-search" :form-data="showFormData" :search-form="searchForm" />
class="show-search" <div class="up-btns">
:form-data="showFormData" <el-button :id="tableParams.btnId" size="small" type="primary">
:search-form="searchForm" /> 查询
<div class="up-btns"> </el-button>
<el-button :id="tableParams.btnId" <el-button size="small" @click="handleReset">
size="small" 重置
type="primary"> </el-button>
查询 </div>
</el-button> </div>
<el-button size="small" @click="handleReset"> </template>
重置 <div class="d2-container-content">
</el-button> <d2-table-header>
</div> <!-- <span slot="left"
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left"
v-if="!userInfo.beSuper && userInfo.beYQMerchant"> v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<auth-button category="Button" <auth-button category="Button"
:show-btn-ids="['9080501']" /> :show-btn-ids="['9080501']" />
</span> --> </span> -->
<auth-button category="Button" :show-btn-ids="['9081001']" /> <auth-button category="Button" :show-btn-ids="['9081001']" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :search-form="searchFormSearch" :table-params="tableParams">
:get-list-api="getListApi" <template #auth-button="scope">
:search-form="searchFormSearch" <div>
:table-params="tableParams"> <span style="margin-right: 10px">
<template #auth-button="scope"> <auth-button :data="scope.scope" :show-btn-ids="['9081002']" />
<div> </span>
<span style="margin-right: 10px"> <span v-if="scope.scope.billStatus == 2" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9081002']" /> <auth-button :data="scope.scope" :show-btn-ids="['9081003']" />
</span> </span>
<span v-if="scope.scope.billStatus == 2" style="margin-right: 10px"> <span v-if="scope.scope.billStatus == 2" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9081003']" /> <auth-button :data="scope.scope" :show-btn-ids="['9081004']" />
</span> </span>
<span v-if="scope.scope.billStatus == 2" style="margin-right: 10px"> </div>
<auth-button :data="scope.scope" :show-btn-ids="['9081004']" /> </template>
</span> </d2-table>
</div> </div>
</template> </d2-container>
</d2-table> <!-- 查看 -->
</div> <TransferDetailDialog v-if="transferDetailVisible" :hide-contact="true" :is-store="true" :params-obj="transferObj"
</d2-container> :visible.sync="transferDetailVisible" />
<!-- 查看 --> </div>
<TransferDetailDialog v-if="transferDetailVisible"
:hide-contact="true"
:params-obj="transferObj"
:visible.sync="transferDetailVisible" />
</div>
</template> </template>
<script> <script>
...@@ -338,7 +328,7 @@ export default { ...@@ -338,7 +328,7 @@ export default {
if ( if (
this.baseData[item.optionsName].length this.baseData[item.optionsName].length
&& this.baseData[item.optionsName][0][ && this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel this.showFormData[index].optionLabel
] !== "全部" ] !== "全部"
) { ) {
const temp = {}; const temp = {};
...@@ -472,6 +462,7 @@ export default { ...@@ -472,6 +462,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
<!-- 运营审核 --> <!-- 运营审核 -->
<template> <template>
<div> <div>
<d2-container> <d2-container>
<template #header> <template #header>
<div class="header" style="padding: 10px 20px"> <div class="header" style="padding: 10px 20px">
<d2-search ref="showSearch" <d2-search ref="showSearch" class="show-search" :form-data="showFormData" :search-form="searchForm" />
class="show-search" <div class="up-btns">
:form-data="showFormData" <el-button :id="tableParams.btnId" size="small" type="primary">
:search-form="searchForm" /> 查询
<div class="up-btns"> </el-button>
<el-button :id="tableParams.btnId" <el-button size="small" @click="handleReset">
size="small" 重置
type="primary"> </el-button>
查询 </div>
</el-button> </div>
<el-button size="small" @click="handleReset"> </template>
重置 <div class="d2-container-content">
</el-button> <d2-table-header>
</div> <!-- <span slot="left"
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left"
v-if="!userInfo.beSuper && userInfo.beYQMerchant"> v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<auth-button category="Button" <auth-button category="Button"
:show-btn-ids="['9080501']" /> :show-btn-ids="['9080501']" />
</span> --> </span> -->
<auth-button category="Button" :show-btn-ids="['9080901']" /> <auth-button category="Button" :show-btn-ids="['9080901']" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :search-form="searchFormSearch" :table-params="tableParams">
:get-list-api="getListApi" <template #auth-button="scope">
:search-form="searchFormSearch" <div>
:table-params="tableParams"> <span style="margin-right: 10px">
<template #auth-button="scope"> <auth-button :data="scope.scope" :show-btn-ids="['9080902']" />
<div> </span>
<span style="margin-right: 10px"> <span v-if="scope.scope.billStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9080902']" /> <auth-button :data="scope.scope" :show-btn-ids="['9080903']" />
</span> </span>
<span v-if="scope.scope.billStatus == 1" style="margin-right: 10px"> <span v-if="scope.scope.billStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9080903']" /> <auth-button :data="scope.scope" :show-btn-ids="['9080904']" />
</span> </span>
<span v-if="scope.scope.billStatus == 1" style="margin-right: 10px"> </div>
<auth-button :data="scope.scope" :show-btn-ids="['9080904']" /> </template>
</span> </d2-table>
</div> </div>
</template> </d2-container>
</d2-table> <!-- 查看 -->
</div> <TransferDetailDialog v-if="transferDetailVisible" :hide-contact="true" :is-store="false" :params-obj="transferObj"
</d2-container> :visible.sync="transferDetailVisible" />
<!-- 查看 --> </div>
<TransferDetailDialog v-if="transferDetailVisible"
:hide-contact="true"
:params-obj="transferObj"
:visible.sync="transferDetailVisible" />
</div>
</template> </template>
<script> <script>
...@@ -332,7 +322,7 @@ export default { ...@@ -332,7 +322,7 @@ export default {
if ( if (
this.baseData[item.optionsName].length this.baseData[item.optionsName].length
&& this.baseData[item.optionsName][0][ && this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel this.showFormData[index].optionLabel
] !== "全部" ] !== "全部"
) { ) {
const temp = {}; const temp = {};
...@@ -446,6 +436,7 @@ export default { ...@@ -446,6 +436,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
<auth-button :data="scope.scope" <auth-button :data="scope.scope"
:show-btn-ids="['9063002']" /> :show-btn-ids="['9063002']" />
</span> </span>
<!-- 自定义周期 --> <!-- 自定义周期:门店产值及个人成交排名 / BI数据分析表 / 无日报门店产值表 -->
<span v-if="scope.scope.report_type.includes('门店产值及个人成交排名') || scope.scope.report_type.includes('BI数据分析表')" <span v-if="isCustomPeriodReportType(scope.scope.report_type)"
style="margin-right: 10px;"> style="margin-right: 10px;">
<auth-button :data="scope.scope" <auth-button :data="scope.scope"
:show-btn-ids="['9063003']" /> :show-btn-ids="['9063003']" />
...@@ -279,6 +279,19 @@ export default { ...@@ -279,6 +279,19 @@ export default {
// }), // }),
// ...mapActions('d2admin/user', ['actionSetDownloadList']), // ...mapActions('d2admin/user', ['actionSetDownloadList']),
/**
* 是否展示「自定义周期」按钮(与 common/constants.js downloadReportManage_reportType 中报表名称一致)
*/
isCustomPeriodReportType(reportType) {
if (!reportType || typeof reportType !== "string") return false;
const keywords = [
"门店产值及个人成交排名",
"BI数据分析表",
"无日报门店产值表",
];
return keywords.some((k) => reportType.includes(k));
},
async getBaseData() { async getBaseData() {
this.getOptionsList(); this.getOptionsList();
}, },
......
...@@ -74,18 +74,18 @@ const cdn = { ...@@ -74,18 +74,18 @@ const cdn = {
`${CDN_DOMAIN}/js.cookie.min.js`, `${CDN_DOMAIN}/js.cookie.min.js`,
`${CDN_DOMAIN}/nprogress.min.js`, `${CDN_DOMAIN}/nprogress.min.js`,
`${CDN_DOMAIN}/echarts.min.js`, `${CDN_DOMAIN}/echarts.min.js`,
// `${CDN_DOMAIN}/lodash.min.js`,
`${CDN_DOMAIN}/qs.min.js`, `${CDN_DOMAIN}/qs.min.js`,
`${CDN_DOMAIN}/ua-parser.min.js`, `${CDN_DOMAIN}/ua-parser.min.js`,
`${CDN_DOMAIN}/html2canvas.min.js`, `${CDN_DOMAIN}/html2canvas.min.js`,
`${CDN_DOMAIN}/element-ui.min.js`, `${CDN_DOMAIN}/element-ui.min.js`,
`${CDN_DOMAIN}/better-scroll.min.js`, `${CDN_DOMAIN}/better-scroll.min.js`,
`${CDN_DOMAIN}/dayjs.min.js`,
`${CDN_DOMAIN}/xlsx.min.js`,
// `${CDN_DOMAIN}/lodash.min.js`,
// `${CDN_DOMAIN}/better-scroll.min.js`, // `${CDN_DOMAIN}/better-scroll.min.js`,
// `https://cdn.bootcdn.net/ajax/libs/better-scroll/2.4.2/better-scroll.min.js`, // `https://cdn.bootcdn.net/ajax/libs/better-scroll/2.4.2/better-scroll.min.js`,
// `https://img01.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/better-scroll.min.js`, // `https://img01.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/better-scroll.min.js`,
`${CDN_DOMAIN}/dayjs.min.js`,
// `${CDN_DOMAIN}/vue-qr.js`, // `${CDN_DOMAIN}/vue-qr.js`,
`${CDN_DOMAIN}/xlsx.min.js`,
// `${CDN_DOMAIN}/flex.css` // `${CDN_DOMAIN}/flex.css`
], ],
}; };
...@@ -159,8 +159,9 @@ module.exports = { ...@@ -159,8 +159,9 @@ module.exports = {
dayjs: "dayjs", dayjs: "dayjs",
// "vue-qr": "vue-qr", // "vue-qr": "vue-qr",
xlsx: "XLSX", xlsx: "XLSX",
// 模块名须与 import 路径一致:import BScroll from 'better-scroll' // 与 CDN UMD 全局名一致(非 BScroll)
"better-scroll": "BScroll", // "better-scroll": "BetterScroll",
BScroll: "better-scroll",
// lodash: "_", // lodash: "_",
}; };
} }
...@@ -226,7 +227,7 @@ module.exports = { ...@@ -226,7 +227,7 @@ module.exports = {
configFile: path.resolve(__dirname, ".sentryclirc"), configFile: path.resolve(__dirname, ".sentryclirc"),
// 与部署路径一致,便于 Sentry 将 map 与线上资源对齐 // 与部署路径一致,便于 Sentry 将 map 与线上资源对齐
urlPrefix: `~${publicPath}`, urlPrefix: `~${publicPath}`,
}), })
); );
} }
...@@ -282,12 +283,12 @@ module.exports = { ...@@ -282,12 +283,12 @@ module.exports = {
// optional. Resolve result css code as you wish. // optional. Resolve result css code as you wish.
return resultCss.replace( return resultCss.replace(
/process.env.VUE_APP_ELEMENT_COLOR/g, /process.env.VUE_APP_ELEMENT_COLOR/g,
process.env.VUE_APP_ELEMENT_COLOR, process.env.VUE_APP_ELEMENT_COLOR
); );
}, },
matchColors: [ matchColors: [
...forElementUI.getElementUISeries( ...forElementUI.getElementUISeries(
process.env.VUE_APP_ELEMENT_COLOR, process.env.VUE_APP_ELEMENT_COLOR
), // Element-ui主色系列 ), // Element-ui主色系列
], ],
externalCssFiles: [ externalCssFiles: [
...@@ -301,7 +302,7 @@ module.exports = { ...@@ -301,7 +302,7 @@ module.exports = {
.when( .when(
process.env.NODE_ENV === "development", process.env.NODE_ENV === "development",
// sourcemap不包含列信息 // sourcemap不包含列信息
(config) => config.devtool("cheap-source-map"), (config) => config.devtool("cheap-source-map")
) )
// TRAVIS 构建 vue-loader 添加 filename // TRAVIS 构建 vue-loader 添加 filename
.when( .when(
...@@ -309,7 +310,7 @@ module.exports = { ...@@ -309,7 +310,7 @@ module.exports = {
process.env.NODE_ENV === "development", process.env.NODE_ENV === "development",
VueFilenameInjector(config, { VueFilenameInjector(config, {
propName: process.env.VUE_APP_SOURCE_VIEWER_PROP_NAME, propName: process.env.VUE_APP_SOURCE_VIEWER_PROP_NAME,
}), })
); );
// svg // svg
const svgRule = config.module.rule("svg"); const svgRule = config.module.rule("svg");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!