Commit 4053775a by Jaxon

Merge remote-tracking branch 'origin/SAAS+V5.7.4' into feature/manager-approval

# Conflicts:
#	src/views/purchase/components/orderDetailDialog.vue
#	src/views/purchase/purchaseOrder.vue
2 parents 89fdcb2b d9b1660e
...@@ -404,7 +404,10 @@ export const warehouseStatusList = [ ...@@ -404,7 +404,10 @@ export const warehouseStatusList = [
// 获取最近n个月,默认6个月 // 获取最近n个月,默认6个月
export function getCurrentSixMonth(n = 5) { export function getCurrentSixMonth(n = 5) {
return [new Date(new Date().setMonth(new Date().getMonth() - n)), new Date()]; return [
new Date(new Date().setMonth(new Date().getMonth() - n)),
new Date(),
];
} }
// 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则 // 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则
...@@ -423,8 +426,8 @@ export function limitPrice( ...@@ -423,8 +426,8 @@ export function limitPrice(
}; };
regRule = regRule || "priceReg"; regRule = regRule || "priceReg";
if ( if (
newValue newValue &&
&& ((minValue && newValue < minValue) || (maxValue && newValue > maxValue)) ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
) { ) {
return oldValue || ""; return oldValue || "";
} }
...@@ -433,16 +436,18 @@ export function limitPrice( ...@@ -433,16 +436,18 @@ export function limitPrice(
newValue = newValue + ""; newValue = newValue + "";
let interger = newValue.split(".")[0]; let interger = newValue.split(".")[0];
let point = newValue.split(".")[1]; let point = newValue.split(".")[1];
let intergerNum let intergerNum =
= interger.length > intergerDigit ? oldValue.split(".")[0] : interger; interger.length > intergerDigit
let pointNum ? oldValue.split(".")[0]
= point.length > pointDigit ? point.slice(0, pointDigit) : point; : interger;
let pointNum =
point.length > pointDigit ? point.slice(0, pointDigit) : point;
newValue = pointDigit newValue = pointDigit
? intergerNum + "." + pointNum ? intergerNum + "." + pointNum
: newValue.split(".")[0]; : newValue.split(".")[0];
} else { } else {
newValue newValue =
= newValue.length > intergerDigit newValue.length > intergerDigit
? oldValue.slice(0, intergerDigit) ? oldValue.slice(0, intergerDigit)
: newValue; : newValue;
} }
...@@ -475,9 +480,13 @@ export const appointDays = 35; ...@@ -475,9 +480,13 @@ export const appointDays = 35;
export const afterTodayOptions = { export const afterTodayOptions = {
disabledDate(date) { disabledDate(date) {
if ( if (
date < new Date(new Date().toLocaleDateString()) date < new Date(new Date().toLocaleDateString()) ||
|| date date >
> new Date(new Date().setDate(new Date().getDate() + (appointDays - 1))) new Date(
new Date().setDate(
new Date().getDate() + (appointDays - 1),
),
)
) { ) {
return true; return true;
} }
...@@ -913,7 +922,10 @@ export const downloadReportManage_reportType = [ ...@@ -913,7 +922,10 @@ export const downloadReportManage_reportType = [
{ confId: "sellerPerformance", confValue: "零售人员业绩提成数据表" }, { confId: "sellerPerformance", confValue: "零售人员业绩提成数据表" },
{ confId: "multiCategoryOperation", confValue: "多品类运营" }, { confId: "multiCategoryOperation", confValue: "多品类运营" },
{ confId: "multiCategoryOperationMerchant", confValue: "多品类运营-门店" }, { confId: "multiCategoryOperationMerchant", confValue: "多品类运营-门店" },
{ confId: "selleruseruserdipadanalysis", confValue: "驻店人员平板使用分析" }, {
confId: "selleruseruserdipadanalysis",
confValue: "驻店人员平板使用分析",
},
{ confId: "dailybehaviorsummary", confValue: "日行为汇总表" }, { confId: "dailybehaviorsummary", confValue: "日行为汇总表" },
{ confId: "weeklybehaviorsummary", confValue: "周行为汇总表" }, { confId: "weeklybehaviorsummary", confValue: "周行为汇总表" },
{ confId: "businessDataSummary", confValue: "业务数据汇总" }, { confId: "businessDataSummary", confValue: "业务数据汇总" },
...@@ -937,6 +949,10 @@ export const downloadReportManage_reportType = [ ...@@ -937,6 +949,10 @@ export const downloadReportManage_reportType = [
confId: "BIAnalysisReport", confId: "BIAnalysisReport",
confValue: "BI数据分析表", confValue: "BI数据分析表",
}, },
{
confId: "noDailyReportMerchantOutputReport",
confValue: "无日报门店产值表",
},
]; ];
// 下载报表 业务类型 // 下载报表 业务类型
...@@ -1090,9 +1106,9 @@ export const businessOptShowText = { ...@@ -1090,9 +1106,9 @@ export const businessOptShowText = {
}; };
// 预警管理 所属业务 显示文字 // 预警管理 所属业务 显示文字
export const orderBusinessType = { export const orderBusinessType = {
"0": "轻改", 0: "轻改",
"1": "权益", 1: "权益",
"2": "延保", 2: "延保",
"-1": "其他", "-1": "其他",
}; };
...@@ -1658,14 +1674,14 @@ export const evaluationSourceOpt = [ ...@@ -1658,14 +1674,14 @@ export const evaluationSourceOpt = [
{ confId: 4, confValue: "车况生成" }, { confId: 4, confValue: "车况生成" },
]; ];
export const evaluationStatusOptMap = { export const evaluationStatusOptMap = {
"10": "#FDB757", 10: "#FDB757",
"20": "#2CCA74", 20: "#2CCA74",
"30": "#2CCA74", 30: "#2CCA74",
"31": "#2CCA74", 31: "#2CCA74",
"32": "#2CCA74", 32: "#2CCA74",
"40": "#2CCA74", 40: "#2CCA74",
"50": "#2CCA74", 50: "#2CCA74",
"100": "#8C8C8C", 100: "#8C8C8C",
"-1": "#EB4E4E", "-1": "#EB4E4E",
}; };
// 合同类型 // 合同类型
...@@ -2037,6 +2053,16 @@ export const connectionFlagOpt = [ ...@@ -2037,6 +2053,16 @@ export const connectionFlagOpt = [
confValue: "未关联", confValue: "未关联",
}, },
]; ];
export const trialStatusOpt = [
{
confId: 1,
confValue: "试岗中",
},
{
confId: 2,
confValue: "无试岗",
},
];
export const connectionFlagOptMap = { export const connectionFlagOptMap = {
true: "#2CCA74", true: "#2CCA74",
false: "#EB4E4E", false: "#EB4E4E",
......
...@@ -226,6 +226,12 @@ export default { ...@@ -226,6 +226,12 @@ export default {
} }
}, },
{ {
label: "凭证",
prop: "uploadFileUrls",
width: "138px",
addHtml: "uploadFileUrls",
},
{
label: '备注', label: '备注',
prop: 'remark', prop: 'remark',
width: 150 width: 150
......
...@@ -341,6 +341,10 @@ export default { ...@@ -341,6 +341,10 @@ export default {
if (this.searchFormSearch.shippingWarehouseName === "全部") { if (this.searchFormSearch.shippingWarehouseName === "全部") {
this.searchFormSearch.shippingWarehouseName = ""; this.searchFormSearch.shippingWarehouseName = "";
} }
if (this.searchFormSearch.putStatusList && this.searchFormSearch.putStatusList.length) {
this.searchFormSearch.putStatusStr = this.searchFormSearch.putStatusList.join(",");
}
delete this.searchFormSearch.putStatusList;
resolve(); resolve();
}); });
}, },
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
@selectionTable="handleSelectionTable" @selectionTable="handleSelectionTable"
@setTableFinishFun="setTableFinishFun"> @setTableFinishFun="setTableFinishFun">
<template #uploadFileUrls="scope"> <template #uploadFileUrls="scope">
<div v-if="scope.scope.uploadFileUrl"> <div v-if="scope.scope.uploadFileUrls">
<el-image fit="fill" <el-image fit="fill"
:preview-src-list="scope.scope.uploadFileUrls.split(',')" :preview-src-list="scope.scope.uploadFileUrls.split(',')"
:src="scope.scope.uploadFileUrls.split(',')[0]" :src="scope.scope.uploadFileUrls.split(',')[0]"
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</el-image> </el-image>
</div> </div>
<div v-else> <div v-else>
-- -
</div> </div>
</template> </template>
<template #upgradeGoodsName="scope"> <template #upgradeGoodsName="scope">
...@@ -1072,9 +1072,13 @@ export default { ...@@ -1072,9 +1072,13 @@ export default {
this.tableSearchForm.deliveryStartDateStr = Util.dateFormate(this.tableSearchForm.deliveryDateStr[0], "YYYY-MM-DD 00:00:00"); this.tableSearchForm.deliveryStartDateStr = Util.dateFormate(this.tableSearchForm.deliveryDateStr[0], "YYYY-MM-DD 00:00:00");
this.tableSearchForm.deliveryEndDateStr = Util.dateFormate(this.tableSearchForm.deliveryDateStr[1], "YYYY-MM-DD 23:59:59"); this.tableSearchForm.deliveryEndDateStr = Util.dateFormate(this.tableSearchForm.deliveryDateStr[1], "YYYY-MM-DD 23:59:59");
} }
if (this.tableSearchForm.signStatusList && this.tableSearchForm.signStatusList.length) {
this.tableSearchForm.signStatusStr = this.tableSearchForm.signStatusList.join(",");
}
delete this.tableSearchForm.placeOrderTimeStr; delete this.tableSearchForm.placeOrderTimeStr;
delete this.tableSearchForm.reviewedTimeStr; delete this.tableSearchForm.reviewedTimeStr;
delete this.tableSearchForm.deliveryDateStr; delete this.tableSearchForm.deliveryDateStr;
delete this.tableSearchForm.signStatusList;
}, },
handleReset() { handleReset() {
for (const key in this.searchForm) { for (const key in this.searchForm) {
......
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
<div class="header"> <div class="header">
<d2-search ref="showSearch" <d2-search ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :form-data="showFormData"
:form-data="showFormData"> :search-form="searchForm">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId"
handle
size="small" size="small"
type="primary" type="primary">
handle>
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small"
...@@ -40,11 +40,11 @@ ...@@ -40,11 +40,11 @@
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseOrderTable" <d2-table ref="purchaseOrderTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:search-form="tableSearchForm" :search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData" :table-data="tableData"
:get-list-api="getListApi" :table-params="tableParams">
:before-search-fn="beforeSearchFn">
<template #auth-button="scope"> <template #auth-button="scope">
<div> <div>
<!-- 查看 --> <!-- 查看 -->
...@@ -74,9 +74,9 @@ ...@@ -74,9 +74,9 @@
</d2-table> </d2-table>
</div> </div>
<OrderDeatilDialog v-if="detailVisible" <OrderDeatilDialog v-if="detailVisible"
:visible.sync="detailVisible"
:params-obj="paramsObj" :params-obj="paramsObj"
:show-film-roll-no="paramsObj.purchaseType != 1"> :show-film-roll-no="paramsObj.purchaseType != 1"
:visible.sync="detailVisible">
</OrderDeatilDialog> </OrderDeatilDialog>
</d2-container> </d2-container>
</template> </template>
......
...@@ -5,23 +5,15 @@ ...@@ -5,23 +5,15 @@
<div class="title"> <div class="title">
试岗计划 试岗计划
</div> </div>
<el-button v-if="isBtn" <el-button v-if="isBtn" icon="el-icon-plus" plain type="primary" @click="handleAdd()">
icon="el-icon-plus"
plain
type="primary"
@click="handleAdd()">
新增试岗 新增试岗
</el-button> </el-button>
</div> </div>
<div class="content"> <div class="content">
<template v-if="trialOnboardings.length"> <template v-if="trialOnboardings.length">
<div v-for="(item, index) in trialOnboardings" <div v-for="(item, index) in trialOnboardings" :key="index" class="recruit-item-container">
:key="index"
class="recruit-item-container">
<div class="recruit-item"> <div class="recruit-item">
<img alt="" <img alt="" class="profile" src="@/assets/profile.png" />
class="profile"
src="@/assets/profile.png" />
<div class="info"> <div class="info">
<div class="name"> <div class="name">
{{ item.personName }} {{ item.personName }}
...@@ -42,17 +34,14 @@ ...@@ -42,17 +34,14 @@
</div> </div>
</div> </div>
<div v-if="isBtn" class="btns"> <div v-if="isBtn" class="btns">
<el-button type="text" <el-button type="text" @click="handleWorking(item)">
@click="handleWorking(item)">
转入职 转入职
</el-button> </el-button>
<el-button type="text" <el-button type="text" @click="handleEdit(item, index)">
@click="handleEdit(item, index)">
编辑 编辑
</el-button> </el-button>
<el-button type="text" <el-button type="text" @click="handleDelete(index)">
@click="handleDelete(index)">
删除 删除
</el-button> </el-button>
</div> </div>
...@@ -61,28 +50,12 @@ ...@@ -61,28 +50,12 @@
</template> </template>
<div v-show="!trialOnboardings.length" class="emptyCom"> <div v-show="!trialOnboardings.length" class="emptyCom">
<img alt="" <img alt="" class="emptyImg" :src="emptyImgUrl" />
class="emptyImg"
:src="emptyImgUrl" />
<span class="tips">暂无试岗计划</span> <span class="tips">暂无试岗计划</span>
</div> </div>
</div> </div>
<!-- 新增试岗 --> <!-- 新增试岗 -->
<glsk-form-dialog v-if="isAddVisible" <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">
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>
</div> </div>
</template> </template>
......
...@@ -168,7 +168,7 @@ import { ...@@ -168,7 +168,7 @@ import {
} from "@api/recruitment"; } from "@api/recruitment";
import { mapActions, mapState } from "vuex"; import { mapActions, mapState } from "vuex";
import { changeTypeOpt, connectionFlagOpt, connectionFlagOptMap, inviteStatusOpt, inviteStatusOptMap } from "@/common/constants.js"; import { changeTypeOpt, connectionFlagOpt, connectionFlagOptMap, inviteStatusOpt, inviteStatusOptMap, trialStatusOpt } from "@/common/constants.js";
import { deepClone, Util } from "@/common/util"; import { deepClone, Util } from "@/common/util";
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"; import reportTrackPageMixin from "@/mixins/reportTrackPageMixin";
...@@ -361,6 +361,13 @@ export default { ...@@ -361,6 +361,13 @@ export default {
: cellValue.allOfOnboarding; : cellValue.allOfOnboarding;
}, },
}, },
{
label: "待招人数",
prop: "pendingCount",
formatter: (cellValue) => {
return cellValue.pendingCount === 0 ? 0 : cellValue.pendingCount || "-";
},
},
{ {
label: "状态", label: "状态",
...@@ -369,6 +376,18 @@ export default { ...@@ -369,6 +376,18 @@ export default {
addHtml: "statusHtml", addHtml: "statusHtml",
}, },
{ {
label: "试岗状态",
prop: "trialStatus",
width: 120,
formatter: (cellValue) => {
const trialStatusMap = {
1: "试岗中",
2: "无试岗",
};
return trialStatusMap[cellValue.trialStatus] || "-";
},
},
{
label: "关联状态", label: "关联状态",
prop: "connectionFlag", prop: "connectionFlag",
width: 100, width: 100,
...@@ -389,6 +408,7 @@ export default { ...@@ -389,6 +408,7 @@ export default {
recruitmentType: "", recruitmentType: "",
createdDate: [], createdDate: [],
status: "", status: "",
trialStatus: "",
recruiterName: "", recruiterName: "",
regionOperationName: "", regionOperationName: "",
createdBy: "", createdBy: "",
...@@ -504,6 +524,16 @@ export default { ...@@ -504,6 +524,16 @@ export default {
optionLabel: "confValue", optionLabel: "confValue",
optionsName: "connectionFlagOpt", optionsName: "connectionFlagOpt",
}, },
{
label: "试岗状态",
name: "trialStatus",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "trialStatusOpt",
},
], ],
baseData: { baseData: {
...@@ -519,6 +549,7 @@ export default { ...@@ -519,6 +549,7 @@ export default {
inviteStatusOptMap: deepClone(inviteStatusOptMap), inviteStatusOptMap: deepClone(inviteStatusOptMap),
connectionFlagOptMap: deepClone(connectionFlagOptMap), connectionFlagOptMap: deepClone(connectionFlagOptMap),
connectionFlagOpt: deepClone(connectionFlagOpt), connectionFlagOpt: deepClone(connectionFlagOpt),
trialStatusOpt: deepClone(trialStatusOpt),
changeTypeOpt: deepClone(changeTypeOpt), changeTypeOpt: deepClone(changeTypeOpt),
receiverOpt: [], receiverOpt: [],
relateMerchantOpt: [], relateMerchantOpt: [],
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: "出入库时间", label: "出入库时间",
prop: "operateTime", prop: "flowTime",
width: 150, width: 150,
}, },
{ {
...@@ -236,7 +236,7 @@ export default { ...@@ -236,7 +236,7 @@ export default {
}, },
{ {
label: "操作时间", label: "操作时间",
prop: "flowTime", prop: "operateTime",
width: 150, width: 150,
}, },
], ],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!