Commit 042e7383 by 前端

0603版本功能代码提交

1 parent 389c1fc1
...@@ -5906,7 +5906,7 @@ ...@@ -5906,7 +5906,7 @@
}, },
"cross-spawn": { "cross-spawn": {
"version": "6.0.5", "version": "6.0.5",
"resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-6.0.5.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -7121,7 +7121,7 @@ ...@@ -7121,7 +7121,7 @@
}, },
"ignore": { "ignore": {
"version": "4.0.6", "version": "4.0.6",
"resolved": "https://registry.npmmirror.com/ignore/-/ignore-4.0.6.tgz", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
"integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
"dev": true "dev": true
}, },
...@@ -8862,7 +8862,7 @@ ...@@ -8862,7 +8862,7 @@
"dependencies": { "dependencies": {
"big.js": { "big.js": {
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmmirror.com/big.js/-/big.js-3.2.0.tgz", "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz",
"integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==" "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q=="
}, },
"json5": { "json5": {
...@@ -13510,7 +13510,7 @@ ...@@ -13510,7 +13510,7 @@
}, },
"p-try": { "p-try": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmmirror.com/p-try/-/p-try-2.2.0.tgz", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
"dev": true "dev": true
}, },
...@@ -15026,7 +15026,7 @@ ...@@ -15026,7 +15026,7 @@
"dependencies": { "dependencies": {
"pify": { "pify": {
"version": "4.0.1", "version": "4.0.1",
"resolved": "https://registry.npmmirror.com/pify/-/pify-4.0.1.tgz", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
"integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
"dev": true "dev": true
}, },
...@@ -16692,7 +16692,7 @@ ...@@ -16692,7 +16692,7 @@
}, },
"type-fest": { "type-fest": {
"version": "0.6.0", "version": "0.6.0",
"resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.6.0.tgz", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz",
"integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==",
"dev": true "dev": true
}, },
...@@ -17080,7 +17080,7 @@ ...@@ -17080,7 +17080,7 @@
}, },
"vue-hot-reload-api": { "vue-hot-reload-api": {
"version": "2.3.4", "version": "2.3.4",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", "resolved": "https://registry.npmmirror.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
"integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==", "integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true "dev": true
}, },
...@@ -17976,7 +17976,7 @@ ...@@ -17976,7 +17976,7 @@
}, },
"yarn": { "yarn": {
"version": "1.22.19", "version": "1.22.19",
"resolved": "https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz", "resolved": "https://registry.npmmirror.com/yarn/-/yarn-1.22.19.tgz",
"integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ==" "integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
}, },
"yorkie": { "yorkie": {
......
...@@ -78,7 +78,7 @@ export function purchaseOrderDetail(data) { ...@@ -78,7 +78,7 @@ export function purchaseOrderDetail(data) {
// 查看采购订单-仓库工厂 // 查看采购订单-仓库工厂
export function factoryOrderDetail(data) { export function factoryOrderDetail(data) {
data.method = 'dj.api.smarcarlife.warehousedeliver.view' data.method = "dj.api.smarcarlife.warehousedeliver.view"
return request(data, "post") return request(data, "post")
} }
...@@ -161,7 +161,7 @@ export function operatorreviewView(data) { ...@@ -161,7 +161,7 @@ export function operatorreviewView(data) {
// 仓库/工厂发货-查看 // 仓库/工厂发货-查看
export function factoryView(data) { export function factoryView(data) {
data.method = 'dj.api.smarcarlife.warehousedeliver.detail' data.method = "dj.api.smarcarlife.warehousedeliver.detail"
return request(data) return request(data)
} }
...@@ -230,3 +230,9 @@ export function saveshipper(data) { ...@@ -230,3 +230,9 @@ export function saveshipper(data) {
data.method = "dj.api.smarcarlife.purchaseOrder.saveshipper" data.method = "dj.api.smarcarlife.purchaseOrder.saveshipper"
return request(data, "post") return request(data, "post")
} }
// 采购发货-结束发货
export function shipmentTerminate(data) {
data.method = "dj.api.smarcarlife.purchaseOrder.shipmentTerminate"
return request(data, "post")
}
...@@ -78,3 +78,21 @@ export function getProductInfo(data) { ...@@ -78,3 +78,21 @@ export function getProductInfo(data) {
data.method = `${path}goodsinfo.get.byId` data.method = `${path}goodsinfo.get.byId`
return request(data, "post") return request(data, "post")
} }
// 登录日志-日志列表
export function loginRecordPage(data) {
data.method = `${path2}staff.login.record.page`
return request(data, "post")
}
// 员工审核-列表
export function staffAuditPage(data) {
data.method = `${path2}staff.audit.page`
return request(data, "post")
}
// 员工审核-审核/驳回
export function staffAuditUpdate(data) {
data.method = `${path2}staff.audit.update`
return request(data, "post")
}
...@@ -823,3 +823,24 @@ export const downloadReportManage_businessType = [ ...@@ -823,3 +823,24 @@ export const downloadReportManage_businessType = [
{ confId: "quanyi", confValue: "权益" }, { confId: "quanyi", confValue: "权益" },
{ confId: "yanbao", confValue: "延保" } { confId: "yanbao", confValue: "延保" }
] ]
// 驻店管理-员工状态
export const staffStatusList = [
{ confId: "N", confValue: "启用" },
{ confId: "I", confValue: "禁用" },
{ confId: "D", confValue: "已删除" }
]
// 人员管理-员工审核-审核状态
export const auditStatusList = [
{ confId: 0, confValue: "待审核" },
{ confId: 1, confValue: "已审核" },
{ confId: 2, confValue: "已驳回" }
]
// 人员管理-员工审核-审核状态
export const auditTypeList = [
{ confId: 0, confValue: "变更" },
{ confId: 1, confValue: "新增" },
{ confId: 2, confValue: "删除" }
]
...@@ -193,6 +193,12 @@ export const routerName = { ...@@ -193,6 +193,12 @@ export const routerName = {
parentId: "90904", parentId: "90904",
label: "分配", label: "分配",
handle: "handleAllocat" handle: "handleAllocat"
},
{
authId: "9090406",
parentId: "90904",
label: "结束",
handle: "handleEnd"
} }
], ],
component: _import("purchase/purchaseAndDelivery") component: _import("purchase/purchaseAndDelivery")
......
...@@ -99,5 +99,51 @@ export const routerName = { ...@@ -99,5 +99,51 @@ export const routerName = {
} }
], ],
component: _import("systemConfig/inStoreManage/index") component: _import("systemConfig/inStoreManage/index")
},
91209: {
path: "/staffExamine",
name: "staffExamine",
meta: {
title: "员工审核",
authId: "91209",
parentId: "912",
cache: false
},
auth: [
{
authId: "9120901",
parentId: "91209",
label: "审核",
handle: "handleExamine"
},
{
authId: "9120902",
parentId: "91209",
label: "驳回",
handle: "handleReject"
}
],
component: _import("residentManage/staffExamineList")
},
91210: {
path: "/loginLogList",
name: "loginLogList",
meta: {
title: "登录日志",
authId: "91210",
parentId: "912",
cache: false
},
auth: [
{
authId: "9121001",
parentId: "91210",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
}
],
component: _import("residentManage/loginLogList")
} }
} }
...@@ -152,6 +152,10 @@ export const defaultDeliveryStatusOptions = [ ...@@ -152,6 +152,10 @@ export const defaultDeliveryStatusOptions = [
{ {
id: 3, id: 3,
label: "部分发货" label: "部分发货"
},
{
id: 4,
label: "结束发货"
} }
] ]
......
<!-- 仓库/工厂发货 --> <!-- 仓库/工厂发货 -->
<template> <template>
<d2-container class="container"> <d2-container class="container">
<div class="header" slot="header"> <div class="header"
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData"> slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary" handle> <el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -25,17 +33,26 @@ ...@@ -25,17 +33,26 @@
</el-button> </el-button>
</span> --> </span> -->
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams" <d2-table ref="purchaseAndDeliveryTable"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn"> :search-form="tableSearchForm"
<div slot="auth-button" slot-scope="scope"> :table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;" v-if="scope.scope.deliveryStatus != 1"> <span style="margin-right: 10px;"
<auth-button :data="scope.scope" :show-btn-ids="['9090701']" /> v-if="scope.scope.deliveryStatus != 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9090701']" />
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
<!-- style="margin-right: 10px;" --> <!-- style="margin-right: 10px;" -->
<span v-show="scope.scope.deliveryStatus != 2" style="margin-right: 10px;"> <span v-show="scope.scope.deliveryStatus != 2"
<auth-button :data="scope.scope" :show-btn-ids="['9090702']" /> style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090702']" />
</span> </span>
<!-- <el-button :data="scope.scope" type="text" @click="handleDelivery(scope.scope)">发货</el-button> --> <!-- <el-button :data="scope.scope" type="text" @click="handleDelivery(scope.scope)">发货</el-button> -->
<!-- 发货 --> <!-- 发货 -->
...@@ -50,19 +67,35 @@ ...@@ -50,19 +67,35 @@
</div> </div>
</d2-table> </d2-table>
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :record-info="paramsObj"></orderDeatilDialog> <orderDeatilDialog :visible.sync="detailVisible"
<EditOrderDialog v-if="editVisible" :page="'factory'" :visible.sync="editVisible" :params-obj="dialogData" v-if="detailVisible"
:record-info="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible"
:page="'factory'"
:visible.sync="editVisible"
:params-obj="dialogData"
@editClose="editClose"> @editClose="editClose">
</EditOrderDialog> </EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"--> <!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm"> <baseDialog :is-show.sync="rejectVisible"
:dialog-config="rejectConfig.config"
@handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm" <!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> --> @closeDialog="handleRejectClose"> -->
<div class="reject-dialog"> <div class="reject-dialog">
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form"> <el-form :rules="rejectRules"
<el-form-item label="驳回原因:" prop="rejectCause"> :model="rejectData"
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit label-width="150px"
v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" /> ref="delivery-dialog-form">
<el-form-item label="驳回原因:"
prop="rejectCause">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
:rows="3"
show-word-limit
v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -191,7 +224,8 @@ export default { ...@@ -191,7 +224,8 @@ export default {
return { return {
1: 'ashSpot', 1: 'ashSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'yellowSpot' 3: 'yellowSpot',
4: 'redSpot'
}[cellValue.deliveryStatus] || 'ashSpot' }[cellValue.deliveryStatus] || 'ashSpot'
} }
} }
......
...@@ -219,7 +219,9 @@ export default { ...@@ -219,7 +219,9 @@ export default {
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'yellowSpot',
2: 'greenSpot' 2: 'greenSpot',
3: 'yellowSpot',
4: 'redSpot'
}[cellValue.deliveryStatus] }[cellValue.deliveryStatus]
} }
}, },
......
...@@ -223,7 +223,8 @@ export default { ...@@ -223,7 +223,8 @@ export default {
return { return {
1: 'ashSpot', 1: 'ashSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'yellowSpot' 3: 'yellowSpot',
4: 'redSpot'
}[cellValue.deliveryStatus] }[cellValue.deliveryStatus]
} }
}, },
......
<!-- 采购发货 --> <!-- 采购发货 -->
<template> <template>
<d2-container class="container"> <d2-container class="container">
<div class="header" slot="header"> <div class="header"
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData"> slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary" handle> <el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -20,50 +28,87 @@ ...@@ -20,50 +28,87 @@
<auth-button category="Button" /> <auth-button category="Button" />
</span> </span>
<span> <span>
<el-button type="primary" size="mini" @click="handleExport"> <el-button type="primary"
size="mini"
@click="handleExport">
导出 导出
</el-button> </el-button>
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams" <d2-table ref="purchaseAndDeliveryTable"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn"> :search-form="tableSearchForm"
<div slot="auth-button" slot-scope="scope" width="300"> :table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope"
width="400">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9090401']" />
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
<span v-show="scope.scope.deliveryStatus != 2" style="margin-right: 10px;"> <span v-show="scope.scope.deliveryStatus != 2"
<auth-button :data="scope.scope" :show-btn-ids="['9090402']" /> style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090402']" />
</span> </span>
<!-- 分配 --> <!-- 分配 -->
<span v-show="scope.scope.deliveryStatus != 2" style="margin-right: 10px;"> <span v-show="scope.scope.deliveryStatus != 2"
style="margin-right: 10px;">
<!-- <el-button :data="scope.scope" type="text" @click="handleAllocat(scope.scope)">分配</el-button> --> <!-- <el-button :data="scope.scope" type="text" @click="handleAllocat(scope.scope)">分配</el-button> -->
<auth-button :data="scope.scope" :show-btn-ids="['9090404']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9090404']" />
</span> </span>
<!-- 驳回 --> <!-- 驳回 -->
<span v-show="scope.scope.deliveryStatus == 1 && scope.scope.status == 5"> <span v-show="scope.scope.deliveryStatus == 1 && scope.scope.status == 5">
<auth-button :data="scope.scope" :show-btn-ids="['9090403']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9090403']" />
</span>
<!-- 结束 -->
<span v-show="scope.scope.deliveryStatus == 3">
<auth-button :data="scope.scope"
:show-btn-ids="['9090406']" />
</span> </span>
</div> </div>
</d2-table> </d2-table>
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog> <orderDeatilDialog :visible.sync="detailVisible"
<EditOrderDialog v-if="editVisible" :is-empty-edit="true" :visible.sync="editVisible" :params-obj="dialogData" v-if="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible"
:is-empty-edit="true"
:visible.sync="editVisible"
:params-obj="dialogData"
@editClose="editClose"> @editClose="editClose">
</EditOrderDialog> </EditOrderDialog>
<AllocateDialog v-if="allocateVisible" :visible.sync="allocateVisible" :params-obj="allocateData" <AllocateDialog v-if="allocateVisible"
:visible.sync="allocateVisible"
:params-obj="allocateData"
@editClose="allocateClose"> @editClose="allocateClose">
</AllocateDialog> </AllocateDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"--> <!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm"> <baseDialog :is-show.sync="rejectVisible"
:dialog-config="rejectConfig.config"
@handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm" <!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> --> @closeDialog="handleRejectClose"> -->
<div class="reject-dialog"> <div class="reject-dialog">
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form"> <el-form :rules="rejectRules"
<el-form-item label="驳回原因:" prop="rejectCause"> :model="rejectData"
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit label-width="150px"
v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" /> ref="delivery-dialog-form">
<el-form-item label="驳回原因:"
prop="rejectCause">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
:rows="3"
show-word-limit
v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -81,7 +126,7 @@ ...@@ -81,7 +126,7 @@
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { defaultStatusOptions, defaultStatusOptionsForTable, defaultDeliveryStatusOptions, defaultPutStatusOptions, purchasingPatternOptions } from './constant' import { defaultStatusOptions, defaultStatusOptionsForTable, defaultDeliveryStatusOptions, defaultPutStatusOptions, purchasingPatternOptions } from './constant'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getPurchaseOrderShipmentList, getPurchaseOrderList, getMerchantList, purchaseOrderReject } from '@/api/purchaseShopping.js' import { getPurchaseOrderShipmentList, getPurchaseOrderList, getMerchantList, purchaseOrderReject, shipmentTerminate } from '@/api/purchaseShopping.js'
import orderDeatilDialog from './components/orderDetailDialog' import orderDeatilDialog from './components/orderDetailDialog'
import EditOrderDialog from './components/EditOrderDialog' import EditOrderDialog from './components/EditOrderDialog'
import AllocateDialog from './components/AllocateDialog' import AllocateDialog from './components/AllocateDialog'
...@@ -249,14 +294,15 @@ export default { ...@@ -249,14 +294,15 @@ export default {
label: '发货状态', label: '发货状态',
prop: 'deliveryStatus', prop: 'deliveryStatus',
formatter: (cellValue) => { formatter: (cellValue) => {
// 1:未发货,2全部发货,3部分发货 // 1:未发货,2全部发货,3部分发货,4结束发货
return defaultDeliveryStatusOptions.find(item => item.id == cellValue.deliveryStatus)?.label || '-' return defaultDeliveryStatusOptions.find(item => item.id == cellValue.deliveryStatus)?.label || '-'
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'ashSpot', 1: 'ashSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'yellowSpot' 3: 'yellowSpot',
4: 'redSpot'
}[cellValue.deliveryStatus] }[cellValue.deliveryStatus]
} }
}, },
...@@ -289,6 +335,7 @@ export default { ...@@ -289,6 +335,7 @@ export default {
{ {
label: '审核时间', label: '审核时间',
prop: 'reviewedDate', prop: 'reviewedDate',
width: 150,
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.auditDetail.reviewedDate ? Util.dateFormate(cellValue.auditDetail.reviewedDate, 'YYYY-MM-DD HH:mm:ss') : '--' return cellValue.auditDetail.reviewedDate ? Util.dateFormate(cellValue.auditDetail.reviewedDate, 'YYYY-MM-DD HH:mm:ss') : '--'
} }
...@@ -468,7 +515,24 @@ export default { ...@@ -468,7 +515,24 @@ export default {
purchaseType: row.purchaseType purchaseType: row.purchaseType
} }
this.detailVisible = true this.detailVisible = true
} },
// 结束发货
handleEnd(row) {
this.$confirm('结束发货后,订单发货完结,无法再重新进行发货操作。是否确定结束发货?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
shipmentTerminate({ orderCode: row.orderCode }).then(res => {
this.notice.okTips()
this.$refs.purchaseAndDeliveryTable.refreshTable()
})
}).catch(err => {
console.log(err)
})
},
} }
} }
</script> </script>
......
...@@ -71,7 +71,8 @@ ...@@ -71,7 +71,8 @@
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" <orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible" v-if="detailVisible"
:params-obj="paramsObj" :show-film-roll-no="paramsObj.purchaseType != 1"></orderDeatilDialog> :params-obj="paramsObj"
:show-film-roll-no="paramsObj.purchaseType != 1"></orderDeatilDialog>
</d2-container> </d2-container>
</template> </template>
...@@ -239,7 +240,8 @@ export default { ...@@ -239,7 +240,8 @@ export default {
return { return {
1: 'ashSpot', 1: 'ashSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'yellowSpot' 3: 'yellowSpot',
4: 'redSpot'
}[cellValue.deliveryStatus] }[cellValue.deliveryStatus]
} }
}, },
......
<!-- 驳回 -->
<template>
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<div class="reject-dialog">
<glsx-combi-form class="edit-form-container"
ref="formRef"
label-width="150px"
default-width="350px"
:form-ref="rejectRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"></glsx-combi-form>
</div>
</baseDialog>
</template>
<script>
import { staffAuditUpdate } from "@api/resident"
import { deepClone } from '@/common/util'
export default {
name: 'RejectDialog',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
// statusObj: {
// 1: '运营驳回',
// 2: '财务驳回'
// },
infoForm: {
remark: ''
},
dialogConfig: {
title: '提示',
width: '600px'
},
rejectRef: 'rejectRef',
formRules: {
remark: [{ required: true, message: '请输入驳回原因', trigger: 'blur' }]
},
editFormData: [{
label: '驳回原因',
name: 'remark',
type: 'input',
maxlength: 50,
inputType: 'textarea',
showLimit: true,
rows: 4
}],
baseData: {
}
}
},
props: {
rejectVisible: {
type: Boolean,
default: false
},
paramsObj: {
type: Object,
default: {}
}
},
computed: {
visible: {
get() {
return this.rejectVisible
},
set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'rejectVisible' })
}
}
},
mounted() {
console.log('paramsObj', this.paramsObj)
// this.dialogConfig.title = this.statusObj[this.paramsObj.status]
},
methods: {
handleAddConfirm() {
this.$refs.formRef.$refs[this.rejectRef].validate(valid => {
if (valid) {
var params = {}
params.auditRemark = this.infoForm.remark
params.id = this.paramsObj.id
params.auditStatus = 2 //审核状态 0:待审核 1:已审核 2:已驳回
staffAuditUpdate(params).then(res => {
this.notice.okTips('操作成功')
this.visible = true
})
}
})
}
}
}
</script>
<style lang="scss" scoped>
.reject-dialog {
margin: 65px 0;
.reject-input {
::v-deep .el-textarea__inner {
height: 70px;
}
}
.el-textarea .el-input__count {
right: 90px;
bottom: -10px;
font-size: 12px;
color: #999999;
}
.tips {
color: #999999;
}
}
</style>
<!-- 登录日志 - 列表 -->
<template>
<div>
<!-- class="order-detail" -->
<d2-container>
<!-- <div class="offline-account"> -->
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="labelWidth"
:form-data="showFormData" />
<div class="up-btns">
<el-button @click="handleSearch"
size="small"
type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
</div>
<!-- </d2-container>
<d2-container> -->
<div class="d2-container-content">
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
</d2-table>
</div>
</d2-container>
</div>
</template>
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
// import { transferAccountsStatusList, transferTypeList, sceneCodeList, warningStatus } from '@/common/constants.js'
import { loginRecordPage } from "@api/resident"
// import { rewithdraw } from '@api/withdrawalManage'
// import rejectDialog from './components/rejectDialog'
export default {
name: 'TransferAccountsList',
components: {
// rejectDialog,
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
labelWidth: '100px',
searchForm: {
time: '',
merchantName: '',
},
searchFormSearch: {},
showFormData: [{
label: '日期',
name: 'time',
type: 'datePicker',
isClear: true,
pickerOptions: 'rangePickerOptions'
}, {
label: '登录商户',
name: 'merchantName',
type: 'input',
maxlength: '20',
isClear: true
}],
getListApi: loginRecordPage,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: false,
tableColumns: [{
label: '商户名称',
prop: 'merchantName'
}, {
label: '商户号',
prop: 'merchantId'
}, {
label: '员工姓名',
prop: 'platformMerchantName'
}, {
label: '员工手机号',
prop: 'platformMerchantName',
width: '120px'
}, {
label: '登录次数',
prop: 'platformMerchantName'
}
]
},
baseData: {
// statusList: deepClone(transferAccountsStatusList),
// sceneTypeList: deepClone(sceneCodeList),
// transferTypeList: deepClone(transferTypeList),
// warningStatusList: deepClone(warningStatus),
// PlatformMerchantList: []
},
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
mounted() {
this.getBaseData()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
...mapActions('d2admin/user', ['actionSetDownloadList']),
async getBaseData() {
this.getOptionsList()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
if (this.searchFormSearch.time) {
this.searchFormSearch.beginDate = Util.dateFormate(this.searchFormSearch.time[0], 'YYYY-MM-DD HH:mm:ss')
this.searchFormSearch.endDate = Util.dateFormate(this.searchFormSearch.time[1], 'YYYY-MM-DD') + ' 23:59:59'
delete this.searchFormSearch.time
}
resolve()
})
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
handleSearch() {
this.$refs.recordTable.refreshTable(false, true)
},
handleReset() {
this.searchForm = {
time: '',
merchantName: '',
}
this.$refs.recordTable.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.api.smartcarlife.staff.login.record.export'
const list = [
...this.dowloadList,
{
name: '登录日志',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
},
}
}
</script>
<style scoped>
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}
.tableHeaderBtn {
margin-left: 10px;
}
</style>
<!-- 员工审核 - 列表 -->
<template>
<div>
<!-- class="order-detail" -->
<d2-container>
<!-- <div class="offline-account"> -->
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="labelWidth"
:form-data="showFormData" />
<div class="up-btns">
<el-button @click="handleSearch"
size="small"
type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
</div>
<!-- </d2-container>
<d2-container> -->
<div class="d2-container-content">
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<!-- 审核 -->
<span style="margin-right: 10px;"
v-if="scope.scope.status == 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9050506']" />
</span>
<!-- 驳回 -->
<span style="margin-right: 10px;"
v-if="[0, 1, 2].includes(scope.scope.status)">
<auth-button :data="scope.scope"
:show-btn-ids="['9050508']" />
</span>
</div>
</d2-table>
</div>
</d2-container>
<!-- 驳回 -->
<reject-dialog :reject-visible="rejectVisible"
:params-obj="recordInfo"
v-if="rejectVisible"
@dialogClose="rejectDialogClose" />
</div>
</template>
<script>
import { Util, deepClone } from '@/common/util'
// import { mapActions, mapState } from 'vuex'
import { auditStatusList, auditTypeList } from '@/common/constants.js'
import { staffAuditPage, staffAuditUpdate } from "@api/resident"
// import { rewithdraw } from '@api/withdrawalManage'
import rejectDialog from './components/rejectDialog'
export default {
name: 'StaffExamineList',
components: {
rejectDialog,
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
labelWidth: '110px',
searchForm: {
auditStatus: '',
staffPhone: '',
staffName: '',
serviceMerchantName: '',
},
searchFormSearch: {},
showFormData: [{
label: '员工姓名',
name: 'staffName',
type: 'input',
maxlength: '20',
isClear: true
}, {
label: "员工手机号",
name: "staffPhone",
type: "input",
maxlength: "11",
isClear: true
}, {
label: '所属服务中心',
name: 'serviceMerchantName',
type: 'input',
maxlength: '20',
isClear: true
}, {
label: '申请状态',
name: 'auditStatus',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'auditStatusList'
}],
getListApi: staffAuditPage,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: { width: '200px' },
tableColumns: [{
label: '员工姓名',
prop: 'staffName',
width: '120px'
}, {
label: '员工手机号',
prop: 'staffPhone',
width: '120px'
}, {
label: '新员工姓名',
prop: 'staffNameNew',
width: '120px'
}, {
label: '新员工手机号',
prop: 'staffPhoneNew',
width: '120px'
}, {
label: '所属服务中心',
prop: 'serviceMerchantName',
width: '200px'
}, {
label: '申请类型',
prop: 'auditType',
width: '100px',
formatter: (cellValue) => {
return this.baseData.auditTypeList.find(item => item.confId === cellValue.auditType)?.confValue
}
}, {
label: '申请时间',
prop: 'applyTime',
width: '150px',
formatter: (cellValue) => {
return cellValue.applyTime ? Util.dateFormate(cellValue.applyTime, 'YYYY-MM-DD HH:mm:ss') : ''
}
}, {
label: '申请状态',
prop: 'auditStatus',
width: '100px',
formatter: (cellValue) => {
return this.baseData.auditStatusList.find(item => item.confId === cellValue.auditStatus)?.confValue
}
}, {
label: '审核人',
prop: 'auditAccount',
}, {
label: '审核时间',
prop: 'auditTime',
width: '150px',
formatter: (cellValue) => {
return cellValue.auditTime ? Util.dateFormate(cellValue.auditTime, 'YYYY-MM-DD HH:mm:ss') : ''
}
}
]
},
baseData: {
auditStatusList: deepClone(auditStatusList),
auditTypeList: deepClone(auditTypeList),
// sceneTypeList: deepClone(sceneCodeList),
// transferTypeList: deepClone(transferTypeList),
// warningStatusList: deepClone(warningStatus),
// PlatformMerchantList: []
},
// examineVisible: false,
// infos: [],
rejectVisible: false,
recordInfo: null,
// financeConfirmVisible: false,
// detailVisible: false,
// addVisible: false,
// leaderExamineDialogVisible: false
}
},
computed: {
// ...mapState({
// dowloadList: (state) => state.d2admin.user.dowloadList
// })
},
mounted() {
// this.getPlatformMerchantList()
this.getBaseData()
},
methods: {
// ...mapActions({
// get: 'd2admin/base/get',
// close: 'd2admin/page/close'
// }),
// ...mapActions('d2admin/user', ['actionSetDownloadList']),
async getBaseData() {
this.getOptionsList()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
// if (this.searchFormSearch.transferAccountsDate) {
// this.searchFormSearch.transferStartTimeStr = Util.dateFormate(this.searchFormSearch.transferAccountsDate[0], 'YYYY-MM-DD HH:mm:ss')
// this.searchFormSearch.transferEndTimeStr = Util.dateFormate(this.searchFormSearch.transferAccountsDate[1], 'YYYY-MM-DD') + ' 23:59:59'
// delete this.searchFormSearch.transferAccountsDate
// }
// if (this.searchFormSearch.status || this.searchFormSearch.status == '0') {
// this.searchFormSearch.statuses[0] = this.searchFormSearch.status
// delete this.searchFormSearch.status
// }
// if (this.searchFormSearch.sceneType || this.searchFormSearch.sceneType == '0') {
// this.searchFormSearch.sceneTypes[0] = this.searchFormSearch.sceneType
// delete this.searchFormSearch.sceneType
// }
resolve()
})
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
handleSearch() {
this.$refs.recordTable.refreshTable(false, true)
},
handleReset() {
this.searchForm = {
auditStatus: '',
staffPhone: '',
staffName: '',
serviceMerchantName: '',
}
this.$refs.recordTable.refreshTable(false, true)
},
// 驳回
handleReject(row) {
this.recordInfo = row
this.rejectVisible = !this.rejectVisible
},
// 关闭驳回弹窗
rejectDialogClose(obj) {
this[obj.attrName] = !this[obj.attrName]
if (obj.flag) {
this.$refs.recordTable.refreshTable()
}
},
// 审核
handleExamine(row) {
let params = {}
params.id = row.id
params.auditStatus = 1 //审核状态 0:待审核 1:已审核 2:已驳回
this.$confirm('审核通过后,系统会自动更新对应的员工状态及信息。是否确定审核?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
staffAuditUpdate(params).then(res => {
this.notice.okTips()
this.$refs.recordTable.refreshTable()
})
}).catch(err => {
console.log(err)
})
},
}
}
</script>
<style scoped>
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}
.tableHeaderBtn {
margin-left: 10px;
}
</style>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<script> <script>
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { sceneForShop, sceneForInStore } from '@/common/constants.js' import { sceneForShop, sceneForInStore, staffStatusList } from '@/common/constants.js'
import { staffPage } from '@api/inStoreManage' import { staffPage } from '@api/inStoreManage'
import flagDialog from './components/flagDialog' import flagDialog from './components/flagDialog'
export default { export default {
...@@ -124,6 +124,15 @@ export default { ...@@ -124,6 +124,15 @@ export default {
type: 'datePicker', type: 'datePicker',
isClear: true, isClear: true,
pickerOptions: 'rangePickerOptions' pickerOptions: 'rangePickerOptions'
}, {
label: '员工状态',
name: 'deletedFlag',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'staffStatusList'
}], }],
getListApi: staffPage, getListApi: staffPage,
tableParams: { tableParams: {
...@@ -203,6 +212,12 @@ export default { ...@@ -203,6 +212,12 @@ export default {
return cellValue.staffLabelFlag == 'Y' ? '有' : '无' return cellValue.staffLabelFlag == 'Y' ? '有' : '无'
} }
}, { }, {
label: '员工状态',
prop: 'deletedFlag',
formatter: (cellValue) => {
return this.baseData.staffStatusList.find(item => item.confId === cellValue.deletedFlag)?.confValue
}
}, {
label: '最新订单时间', label: '最新订单时间',
prop: 'orderTime', prop: 'orderTime',
width: '120px', width: '120px',
...@@ -216,7 +231,8 @@ export default { ...@@ -216,7 +231,8 @@ export default {
staffLabelFlagList: [ staffLabelFlagList: [
{ confId: 'Y', confValue: "有" }, { confId: 'Y', confValue: "有" },
{ confId: 'N', confValue: "无" } { confId: 'N', confValue: "无" }
] ],
staffStatusList: deepClone(staffStatusList)
}, },
flagVisible: false flagVisible: false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!