Commit 0ce9b24b by 张立顺

Merge branch 'develop' into 'SAAS+V4.40.0-0624'

Develop

See merge request !329
2 parents 8e5d6051 a1db39e8
Showing 42 changed files with 1917 additions and 265 deletions
...@@ -3508,6 +3508,27 @@ ...@@ -3508,6 +3508,27 @@
"whatwg-fetch": "^3.6.2" "whatwg-fetch": "^3.6.2"
}, },
"dependencies": { "dependencies": {
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"acorn-walk": { "acorn-walk": {
"version": "8.2.0", "version": "8.2.0",
"resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz", "resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz",
...@@ -3897,27 +3918,6 @@ ...@@ -3897,27 +3918,6 @@
"lodash": "^4.17.4" "lodash": "^4.17.4"
} }
}, },
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"@vue/vue2-jest": { "@vue/vue2-jest": {
"version": "27.0.0", "version": "27.0.0",
"resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz", "resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz",
...@@ -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
}, },
...@@ -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": {
......
...@@ -26,3 +26,15 @@ export function queryloginLog(data) { ...@@ -26,3 +26,15 @@ export function queryloginLog(data) {
data.method = `${path}login.log.page` data.method = `${path}login.log.page`
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
// 驻店员工详情
export function staffDetail(data) {
data.method = `${path}staff.detail`
return request(data, RequestMethods.POST)
}
// 解绑员工关联的服务门店
export function staffMerchantUnbind(data) {
data.method = `${path}staff.merchant.unbind`
return request(data, RequestMethods.POST)
}
...@@ -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")
}
...@@ -79,9 +79,26 @@ export function getProductInfo(data) { ...@@ -79,9 +79,26 @@ export function getProductInfo(data) {
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")
}
/** 导出 */
export function exportReclistList(data) { export function exportReclistList(data) {
data.method = 'dj.api.mindworkplate.badge.employeeBadgeReclistExport' data.method = "dj.api.mindworkplate.badge.employeeBadgeReclistExport"
return request(data, "post") return request(data, "post")
} }
...@@ -97,3 +97,15 @@ export function getResidentStaffList(data) { ...@@ -97,3 +97,15 @@ export function getResidentStaffList(data) {
data.method = `${path}merchant.staff.list` data.method = `${path}merchant.staff.list`
return request(data, "post") return request(data, "post")
} }
// 查询门店录单设置
export function orderFieldSettingList(data) {
data.method = `${path}order.field.setting.list`
return request(data, "post")
}
// 更新门店录单设置
export function orderFieldSettingUpdate(data) {
data.method = `${path}order.field.setting.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: "删除" }
]
<!-- 表格+分页 --> <!-- 表格+分页 -->
<template> <template>
<div class="d2-table"> <div class="d2-table">
<el-table <el-table :ref="tableParams.mutiSelectName + 'MutiTable' || 'mutiTable'"
:ref="tableParams.mutiSelectName + 'MutiTable' || 'mutiTable'"
:data="getListApi ? data : tableData" :data="getListApi ? data : tableData"
:row-key="tableParams.mutiSelectUniqueKey || ''" :row-key="tableParams.mutiSelectUniqueKey || ''"
v-loading="loading" v-loading="loading"
...@@ -12,26 +11,21 @@ ...@@ -12,26 +11,21 @@
@selection-change="handleSelect" @selection-change="handleSelect"
:tree-props="{ children: 'upgradeGoodsList' }" :tree-props="{ children: 'upgradeGoodsList' }"
:span-method="arraySpanMethod" :span-method="arraySpanMethod"
v-bind="$attrs" v-bind="$attrs">
> <el-table-column v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
<el-table-column
v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type="selection" type="selection"
align="center" align="center"
:selectable="selectableFn" :selectable="selectableFn"
width="55" width="55" />
/> <el-table-column v-if="tableParams.singleSelectUniqueKey"
<el-table-column
v-if="tableParams.singleSelectUniqueKey"
align="center" align="center"
width="55" width="55">
>
<template slot-scope="scope"> <template slot-scope="scope">
<slot name="single-button" :scope="scope.row" /> <slot name="single-button"
:scope="scope.row" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column v-if="hasNum"
v-if="hasNum"
align="center" align="center"
width="60px" width="60px"
label="序号" label="序号"
...@@ -45,10 +39,8 @@ ...@@ -45,10 +39,8 @@
1) * 1) *
(pagination.pageSize ? pagination.pageSize : page.pageSize) + (pagination.pageSize ? pagination.pageSize : page.pageSize) +
1 1
" " />
/> <el-table-column v-for="(item, index) in tableParams.tableColumns"
<el-table-column
v-for="(item, index) in tableParams.tableColumns"
:key="index" :key="index"
:label="item.label" :label="item.label"
:prop="item.prop" :prop="item.prop"
...@@ -57,27 +49,22 @@ ...@@ -57,27 +49,22 @@
:align="item.align || 'center'" :align="item.align || 'center'"
:sortable="item.sortable" :sortable="item.sortable"
:render-header="item.renderHeader" :render-header="item.renderHeader"
:show-overflow-tooltip="item.showOverFlow" :show-overflow-tooltip="item.showOverFlow">
>
<template slot="header"> <template slot="header">
<span>{{ item.label }}</span> <span>{{ item.label }}</span>
<table-head-search <table-head-search v-if="item.optionConfig"
v-if="item.optionConfig"
:search-form="headSearchForm" :search-form="headSearchForm"
:option-config="item.optionConfig" :option-config="item.optionConfig"
:base-data="baseData" :base-data="baseData"
@handleTableHeadChange="handleTableHeadChange" @handleTableHeadChange="handleTableHeadChange" />
/>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<slot <slot v-if="item.addHtml"
v-if="item.addHtml"
:name="item.addHtml" :name="item.addHtml"
:scope="scope.row" :scope="scope.row"
:index="scope.$index" :index="scope.$index"
:prop="item.prop" :prop="item.prop"
:width="item.width" :width="item.width" />
/>
<template v-else-if="item.type == 'ownSerialNum'"> <template v-else-if="item.type == 'ownSerialNum'">
<span>{{ <span>{{
scope.row[item.prop] >= 0 scope.row[item.prop] >= 0
...@@ -94,19 +81,16 @@ ...@@ -94,19 +81,16 @@
}}</span> }}</span>
</template> </template>
<template v-else-if="item.tagLabel"> <template v-else-if="item.tagLabel">
<el-tag <el-tag v-if="!item.tagName"
v-if="!item.tagName"
:type="tableParams.tag.type[scope.row[item.prop]]" :type="tableParams.tag.type[scope.row[item.prop]]"
v-text="tableParams.tag.label[scope.row[item.prop]]" v-text="tableParams.tag.label[scope.row[item.prop]]" />
/> <el-tag v-else
<el-tag
v-else
:type="tableParams[item.tagName].type[scope.row[item.prop]]" :type="tableParams[item.tagName].type[scope.row[item.prop]]"
v-text="tableParams[item.tagName].label[scope.row[item.prop]]" v-text="tableParams[item.tagName].label[scope.row[item.prop]]" />
/>
</template> </template>
<template v-else-if="item.formatter"> <template v-else-if="item.formatter">
<span v-if="item.html" v-html="item.formatter(scope.row)" /> <span v-if="item.html"
v-html="item.formatter(scope.row)" />
<template v-if="!item.html"> <template v-if="!item.html">
<span :class="item.className ? item.className(scope.row) : ''" /> <span :class="item.className ? item.className(scope.row) : ''" />
<span v-text="item.formatter(scope.row)" /> <span v-text="item.formatter(scope.row)" />
...@@ -119,50 +103,49 @@ ...@@ -119,50 +103,49 @@
? scope.row[item.parentProp][item.prop] ? scope.row[item.parentProp][item.prop]
: "" : ""
}}</span> }}</span>
<span v-else>{{ <!-- <span v-else>{{
scope.row[item.prop] != null || scope.row[item.prop] != "" scope.row[item.prop] != null || scope.row[item.prop] != ""
? scope.row[item.prop] ? scope.row[item.prop]
: "-" : "-"
}}</span> }}</span> -->
<span v-else>{{ scope.row[item.prop] || "-" }}</span>
</template> </template>
<template v-else> <template v-else>
<span <span v-text="
v-text="
tableData[scope.$index][item.prop] != null tableData[scope.$index][item.prop] != null
? tableData[scope.$index][item.prop] ? tableData[scope.$index][item.prop]
: '-' : '-'
" " />
/>
</template> </template>
<template v-if="item.addSymbol"> <template v-if="item.addSymbol">
<span v-text="item.addSymbol" /> <span v-text="item.addSymbol" />
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column v-if="tableParams.tableOption"
v-if="tableParams.tableOption"
label="操作" label="操作"
fixed="right" fixed="right"
:align="tableParams.tableOption.align || 'center'" :align="tableParams.tableOption.align || 'center'"
:width="tableParams.tableOption.width || 'auto'" :width="tableParams.tableOption.width || 'auto'">
>
<template slot-scope="scope"> <template slot-scope="scope">
<slot name="auth-button" :scope="scope.row" :index="scope.$index" /> <slot name="auth-button"
<slot
name="auth-button-other"
:scope="scope.row" :scope="scope.row"
:index="scope.$index" :index="scope.$index" />
/> <slot name="auth-button-other"
:scope="scope.row"
:index="scope.$index" />
</template> </template>
</el-table-column> </el-table-column>
<div slot="empty" class="emptyBg"> <div slot="empty"
<img class="noDataImg" :src="noDataImg" v-if="noDataImg" /> class="emptyBg">
<img class="noDataImg"
:src="noDataImg"
v-if="noDataImg" />
{{ noDataText }} {{ noDataText }}
</div> </div>
</el-table> </el-table>
<el-pagination <el-pagination v-if="hasPage"
v-if="hasPage"
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
...@@ -170,8 +153,7 @@ ...@@ -170,8 +153,7 @@
:page-sizes="[10, 20, 30, 40]" :page-sizes="[10, 20, 30, 40]"
:page-size="page.pageSize" :page-size="page.pageSize"
:total="getListApi ? total : tableTotal" :total="getListApi ? total : tableTotal"
:layout="layout" :layout="layout" />
/>
</div> </div>
</template> </template>
...@@ -206,17 +188,17 @@ export default { ...@@ -206,17 +188,17 @@ export default {
// 搜索条件 // 搜索条件
searchForm: { searchForm: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
// 表格头部搜索条件 - start // 表格头部搜索条件 - start
headSearchForm: { headSearchForm: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
// 选项列表Obj // 选项列表Obj
baseData: { baseData: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
// 表格头部搜索条件 - end // 表格头部搜索条件 - end
// 表格数据-外部传入 // 表格数据-外部传入
...@@ -260,7 +242,7 @@ export default { ...@@ -260,7 +242,7 @@ export default {
// 排序列表对象 // 排序列表对象
sortObj: { sortObj: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
tableParams: { tableParams: {
type: Object, type: Object,
...@@ -318,9 +300,9 @@ export default { ...@@ -318,9 +300,9 @@ export default {
// 合并单元格方法 // 合并单元格方法
arraySpanMethod: { arraySpanMethod: {
type: Function, type: Function,
default: () => {} default: () => { }
}, },
//边框 // 边框
border: { border: {
type: Boolean, type: Boolean,
default: true default: true
......
...@@ -85,7 +85,7 @@ export const routerName = { ...@@ -85,7 +85,7 @@ export const routerName = {
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "handleExport"
}, }
], ],
component: _import("purchase/purchaseOrder") component: _import("purchase/purchaseOrder")
}, },
...@@ -217,6 +217,12 @@ export const routerName = { ...@@ -217,6 +217,12 @@ export const routerName = {
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExport" handle: "handleExport"
},
{
authId: "9090406",
parentId: "90904",
label: "结束",
handle: "handleEnd"
} }
], ],
component: _import("purchase/purchaseAndDelivery") component: _import("purchase/purchaseAndDelivery")
......
...@@ -123,10 +123,35 @@ export const routerName = { ...@@ -123,10 +123,35 @@ export const routerName = {
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "handleExportLabel" handle: "handleExportLabel"
},
{
authId: "9120505",
parentId: "91205",
label: "编辑",
handle: "handleEdit",
addRoutePath: [
{
authId: "912050501",
name: "员工编辑",
parentId: "9120505"
}
]
} }
], ],
component: _import("systemConfig/inStoreManage/index") component: _import("systemConfig/inStoreManage/index")
}, },
912050501: {
path: "/editStaff",
name: "editStaff",
meta: {
title: "员工编辑",
authId: "912050501",
parentId: "9120505",
cache: false,
activePath: "/inStoreManage"
},
component: _import("systemConfig/inStoreManage/editStaff")
},
91206: { 91206: {
path: "/staffManage", path: "/staffManage",
name: "staffManage", name: "staffManage",
...@@ -433,5 +458,51 @@ export const routerName = { ...@@ -433,5 +458,51 @@ export const routerName = {
activePath: "/inStoreGoalsConfig" activePath: "/inStoreGoalsConfig"
}, },
component: _import("systemConfig/inStoreGoalsConfig/employeeTasksView") component: _import("systemConfig/inStoreGoalsConfig/employeeTasksView")
},
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")
} }
} }
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
:visible.sync="drawerDetailVisible" :visible.sync="drawerDetailVisible"
:before-close="handleDrawerClose"> :before-close="handleDrawerClose">
<div class="d2-drawer-content car-txt"> <div class="d2-drawer-content car-txt">
<div class="title-block"> <div class="title-block flex">
<p class="title-text">产品详情</p> <p class="title-text">产品详情</p>
<p class="close-icon" <p class="close-icon"
@click="handleDrawerClose"> @click="handleDrawerClose">
...@@ -98,12 +98,27 @@ ...@@ -98,12 +98,27 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<div class="d2-drawer-content car-txt">
<div class="title-block">
<p class="title-text">操作信息</p>
</div>
<div class="log-box">
<el-timeline>
<el-timeline-item v-for="(reviewInfo,infoId) in commodityInfo.operationLogList"
color="#0bbd87"
:key="infoId"
:timestamp="reviewInfo.updatedDateStr">
{{ reviewInfo.updatedBy + reviewInfo.methodDescription }}
</el-timeline-item>
</el-timeline>
</div>
</div>
</el-drawer> </el-drawer>
</template> </template>
<script> <script>
import { getGoodsInfoById } from '@/api/commodity' import { getGoodsInfoById } from '@/api/commodity'
import { deepClone } from '@/common/util' import { deepClone, Util } from '@/common/util'
import { baseConfig } from '@/main' import { baseConfig } from '@/main'
export default { export default {
name: 'DrawerDetail', name: 'DrawerDetail',
...@@ -113,7 +128,8 @@ export default { ...@@ -113,7 +128,8 @@ export default {
extendedPosiType: baseConfig.extendedPosiType || [], // 延保类 extendedPosiType: baseConfig.extendedPosiType || [], // 延保类
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
commodityInfo: {}, commodityInfo: {},
membraneTypeList: baseConfig.membraneTypeList membraneTypeList: baseConfig.membraneTypeList,
operationLogList: [] // 操作信息
} }
}, },
...@@ -159,6 +175,9 @@ export default { ...@@ -159,6 +175,9 @@ export default {
item.positionNames = positionNamesArr.length ? positionNamesArr.map(subItem => { return subItem?.confName }).join('/') : '' item.positionNames = positionNamesArr.length ? positionNamesArr.map(subItem => { return subItem?.confName }).join('/') : ''
item.serviceItemNames = item?.upgradeGoodsServiceItemsList?.map(v => { return `${v.serviceName}-${v.serviceGrade}/${v.servicePeriod}` })?.join(',') item.serviceItemNames = item?.upgradeGoodsServiceItemsList?.map(v => { return `${v.serviceName}-${v.serviceGrade}/${v.servicePeriod}` })?.join(',')
}) })
res?.operationLogList?.forEach(val => {
val.updatedDateStr = val.updatedDate ? Util.dateFormate(val.updatedDate, 'YYYY-MM-DD HH:mm:ss') : ''
})
this.commodityInfo = res this.commodityInfo = res
}) })
}, },
...@@ -178,7 +197,6 @@ export default { ...@@ -178,7 +197,6 @@ export default {
.d2-drawer-content{ .d2-drawer-content{
background: #ffffff; background: #ffffff;
.title-block{ .title-block{
display: flex;
justify-content: space-between; justify-content: space-between;
border-bottom: 1px solid #e7eaec; border-bottom: 1px solid #e7eaec;
padding: 16px 20px; padding: 16px 20px;
...@@ -194,6 +212,9 @@ export default { ...@@ -194,6 +212,9 @@ export default {
cursor: pointer; cursor: pointer;
} }
} }
.title-block.flex{
display: flex;
}
.content-box{ .content-box{
.SPU_class{ .SPU_class{
position: relative; position: relative;
...@@ -238,6 +259,9 @@ export default { ...@@ -238,6 +259,9 @@ export default {
} }
} }
.log-box{
padding-top: 20px;
}
} }
.child-drawer-block .child-drawer-block
/* .child-drawer-block .d2-drawer-row { /* .child-drawer-block .d2-drawer-row {
......
...@@ -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'
} }
} }
......
...@@ -220,7 +220,9 @@ export default { ...@@ -220,7 +220,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]
} }
}, },
......
...@@ -224,7 +224,8 @@ export default { ...@@ -224,7 +224,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>
...@@ -23,48 +31,84 @@ ...@@ -23,48 +31,84 @@
<!-- <el-button type="primary" size="mini" @click="handleExport"> <!-- <el-button type="primary" size="mini" @click="handleExport">
导出 导出
</el-button> --> </el-button> -->
<auth-button category="Button" :show-btn-ids="['9090405']" /> <auth-button category="Button"
:show-btn-ids="['9090405']" />
</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 && scope.scope.deliveryStatus != 4"
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>
...@@ -80,9 +124,9 @@ ...@@ -80,9 +124,9 @@
<script> <script>
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { defaultStatusOptions, defaultStatusOptionsForTable, defaultDeliveryStatusOptions, defaultPutStatusOptions, purchasingPatternOptions } from './constant' import { 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, 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'
...@@ -250,14 +294,15 @@ export default { ...@@ -250,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]
} }
}, },
...@@ -290,6 +335,7 @@ export default { ...@@ -290,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') : '--'
} }
...@@ -469,6 +515,23 @@ export default { ...@@ -469,6 +515,23 @@ 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)
})
} }
} }
} }
......
...@@ -72,7 +72,8 @@ ...@@ -72,7 +72,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>
...@@ -240,7 +241,8 @@ export default { ...@@ -240,7 +241,8 @@ export default {
return { return {
1: 'ashSpot', 1: 'ashSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'yellowSpot' 3: 'yellowSpot',
4: 'redSpot'
}[cellValue.deliveryStatus] }[cellValue.deliveryStatus]
} }
}, },
......
...@@ -195,7 +195,8 @@ export default { ...@@ -195,7 +195,8 @@ export default {
progress.addEventListener( progress.addEventListener(
"click", "click",
(e) => { (e) => {
const x = e.offsetX / 370 const p_Bar = document.getElementById("progressBar")
const x = e.offsetX / p_Bar.offsetWidth
const currentWidth = x * this.myAud.duration const currentWidth = x * this.myAud.duration
this.myAud.currentTime = currentWidth this.myAud.currentTime = currentWidth
...@@ -205,7 +206,8 @@ export default { ...@@ -205,7 +206,8 @@ export default {
progressBar.addEventListener( progressBar.addEventListener(
"click", "click",
(e) => { (e) => {
const x = e.offsetX / 370 const p_Bar = document.getElementById("progressBar")
const x = e.offsetX / p_Bar.offsetWidth
const currentWidth = x * this.myAud.duration const currentWidth = x * this.myAud.duration
this.myAud.currentTime = currentWidth this.myAud.currentTime = currentWidth
}, },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="info-wrap"> <div class="info-wrap">
<div class="info-item flex"> <div class="info-item flex">
<label>员工:</label> <label>员工:</label>
<span>{{ queryData.employeeName }} {{queryData.phoneNumber || ''}}</span> <span>{{ queryData.employeeName || '-' }} {{queryData.phoneNumber || ''}}</span>
</div> </div>
<div class="info-item flex"> <div class="info-item flex">
<label>门店:</label> <label>门店:</label>
......
<!-- 驳回 -->
<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: 'staffName'
}, {
label: '员工手机号',
prop: 'staffPhone',
width: '120px'
}, {
label: '登录次数',
prop: 'loginTimes'
}
]
},
baseData: {
},
}
},
created() {//默认当前日期
this.searchForm.time = [new Date(), new Date()]
},
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')
this.searchFormSearch.endDate = Util.dateFormate(this.searchFormSearch.time[1], 'YYYY-MM-DD')
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>
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
if (windowItem) return this.windowId = id if (windowItem) return this.windowId = id
if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs") if (windowList.length == 20) return this.$message.error("最多同时打开20个tabs")
let item = { let item = {
text: data.employeeName, text: data.employeeName || '-',
data, data,
id id
} }
......
<!-- 员工审核 - 列表 -->
<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.auditStatus == 0">
<auth-button :data="scope.scope"
:show-btn-ids="['9120901']" />
</span>
<!-- 驳回 -->
<span style="margin-right: 10px;"
v-if="scope.scope.auditStatus == 0">
<auth-button :data="scope.scope"
:show-btn-ids="['9120902']" />
</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 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'
}, {
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)
},
rejectVisible: false,
recordInfo: null
}
},
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) {
const 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>
<template>
<div class="equity_container">
<div class="top_wrap">
<div class="title-header">
<div class="line"></div>
<div class="line_text">录单设置</div>
</div>
<div class="content_main">
<el-form :model="formData" :rules="rules" ref="ruleForm">
<template v-for="(item, index) in formList">
<el-form-item
:key="index"
label-width="240px"
:label="item.name"
:prop="item.prop"
>
<el-radio-group
v-model="formData[item.prop]"
@change="changeType()"
>
<el-radio :label="true">必填</el-radio>
<el-radio :label="false">非必填</el-radio>
</el-radio-group>
</el-form-item>
</template>
</el-form>
</div>
<div class="tip_container">
<div class="tip_title">
小程序端-录单-字段设置为必填将带“<span class="require">*</span>”号
</div>
<div class="img_wrap">
<img
class="viewimg"
src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/web/mini_example_equity.png"
alt=""
/>
</div>
</div>
</div>
<div class="footer_btn">
<el-button type="primary" class="ok-btn" @click="comfirm">
确定
</el-button>
<el-button class="cancel-btn" @click="cancel"> 取消 </el-button>
</div>
</div>
</template>
<script>
import {
orderFieldSettingList,
orderFieldSettingUpdate
} from "@/api/shopConfig.js"
export default {
name: "EquitySet",
data() {
return {
settingInfo: [],
formData: {
carBrand: false,
carNo: false,
idNumber: false
},
rules: {
carBrand: [
{ required: true, message: "请选择车型:", trigger: "change" }
],
carNo: [
{ required: true, message: "请车架号(VIN)码:", trigger: "change" }
],
idNumber: [
{ required: true, message: "请证件号码:", trigger: "change" }
]
},
formList: [
{
name: "选择车型:",
prop: "carBrand"
},
{
name: "车架号(VIN)码:",
prop: "carNo"
},
{
name: "证件号码:",
prop: "idNumber"
}
]
}
},
computed: {
merchantId() {
const info = JSON.parse(this.$route.query.info)
return info.merchantId
},
merchantName() {
const info = JSON.parse(this.$route.query.info)
return info.merchantName
}
},
props: {},
mounted() {
console.log(this.$route, this.merchantId)
this.getEquitySet()
},
methods: {
getEquitySet() {
orderFieldSettingList({
merchantId: this.merchantId,
scene: 0
})
.then((res) => {
console.log(res)
res.map((item) => {
this.formData[item.fieldKey] = item.isRequired
})
this.settingInfo = res
// formData
console.log(this.formData)
})
.catch((err) => {
console.log(err)
})
},
changeType(e) {},
comfirm() {
console.log(this.formData)
const settings = this.settingInfo.map((item) => {
item.isRequired = this.formData[item.fieldKey]
return item
})
const params = {
merchantId: this.merchantId,
scene: 0,
merchantName: this.merchantName,
settings
}
console.log(params, "params")
orderFieldSettingUpdate(params)
.then((res) => {
this.notice.okTips("操作成功")
this.cancel()
console.log(res)
})
.catch((err) => {
console.log(err)
})
},
cancel() {
this.$router.push({
name: "shopConfig",
params: {
activeName: "equitySetting"
}
})
this.close({ tagName: "/setWorkorderDetail" })
}
}
}
</script>
<style lang="scss" scoped>
.equity_container {
.top_wrap {
padding: 12px 20px;
background: #fff;
.title-header {
display: flex;
align-items: center;
box-sizing: border-box;
border-bottom: 1px solid #e8e8ea;
padding: 12px 20px 16px;
.line {
width: 4px;
height: 16px;
background: #185efe;
border-radius: 2px;
margin-right: 8px;
}
.line_text {
width: 72px;
height: 24px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18px;
color: #333333;
}
}
.content_main {
padding: 20px 0;
}
.tip_container {
padding: 20px 0;
.tip_title {
padding-left: 48px;
color: #333333;
font-size: 14px;
font-weight: 500;
.require {
color: #f24724;
}
}
.img_wrap {
padding-left: 84px;
padding-top: 8px;
}
.viewimg {
width: 192px;
height: 370px;
}
}
}
.footer_btn {
display: flex;
align-items: center;
padding: 16px 0px 16px 178px;
}
}
</style>
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
name="brandSettings"></el-tab-pane> name="brandSettings"></el-tab-pane>
<el-tab-pane label="施工完成设置" <el-tab-pane label="施工完成设置"
name="constructionSet"></el-tab-pane> name="constructionSet"></el-tab-pane>
<el-tab-pane label="会员权益设置"
name="equitySetting"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<div class="account-detail" <div class="account-detail"
...@@ -217,6 +219,9 @@ ...@@ -217,6 +219,9 @@
</div> </div>
</div> </div>
</template> </template>
<template v-if="activeName=='equitySetting'">
<equitySetVue></equitySetVue>
</template>
</div> </div>
</div> </div>
</div> </div>
...@@ -234,6 +239,7 @@ import { getDiversionMerchantRef, serviceGetMerchantList, insertOrUpdateDiversio ...@@ -234,6 +239,7 @@ import { getDiversionMerchantRef, serviceGetMerchantList, insertOrUpdateDiversio
// getLedgerHistoryRecordApi, // getLedgerHistoryRecordApi,
// getReconciliationHistoryRecordApi // getReconciliationHistoryRecordApi
// } from "@api/merchant" // } from "@api/merchant"
import equitySetVue from './components/equitySet.vue'
export default { export default {
name: "SetDetail", name: "SetDetail",
props: { props: {
...@@ -249,6 +255,7 @@ export default { ...@@ -249,6 +255,7 @@ export default {
components: { components: {
// ledgerAccount, // ledgerAccount,
// reconciliation // reconciliation
equitySetVue
}, },
data() { data() {
return { return {
......
...@@ -344,7 +344,7 @@ export default { ...@@ -344,7 +344,7 @@ export default {
showDemo() { showDemo() {
// public 文件需要使用绝对路径引入 // public 文件需要使用绝对路径引入
// this.lookUrl = `${process.env.VUE_APP_PUBLIC_PATH}account/category.png` // this.lookUrl = `${process.env.VUE_APP_PUBLIC_PATH}account/category.png`
this.lookUrl = `${process.env.VUE_APP_PUBLIC_IMGPATH}template01.png` this.lookUrl = `${process.env.VUE_APP_PUBLIC_IMGPATH}template_ledger.png`
this.lookImgVisible = !this.lookImgVisible this.lookImgVisible = !this.lookImgVisible
} }
} }
......
...@@ -3,13 +3,22 @@ ...@@ -3,13 +3,22 @@
<d2-container> <d2-container>
<el-form ref="editReconciliationFrom" class="editReconciliationFrom d2-container-content" :model="form" <el-form ref="editReconciliationFrom" class="editReconciliationFrom d2-container-content" :model="form"
:rules="formRules" label-width="150px" v-loading="$store.state.d2admin.loading.value"> :rules="formRules" label-width="150px" v-loading="$store.state.d2admin.loading.value">
<el-form-item label="应用对象" prop="applicationObjectType"> <el-form-item label="费用类目名:" prop="feeCategoryName">
<el-input v-model.trim="form.feeCategoryName" maxlength="20" class="itd" placeholder="请输入费用类目名称" clearable />
</el-form-item>
<el-form-item label="费用类型:" prop="formType">
<el-radio-group v-model="form.formType" @change="changeFormType">
<el-radio v-for="(item, index) in formTypeList" :label="item.confId" :key="index">{{
item.confLabel }}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="应用对象:" prop="applicationObjectType">
<el-radio-group v-model="form.applicationObjectType"> <el-radio-group v-model="form.applicationObjectType">
<el-radio v-for="(item, index) in objList" :label="item.confId" :key="index" :disabled="isDisabled">{{ <el-radio v-for="(item, index) in objList" :label="item.confId" :key="index" :disabled="isDisabled">{{
item.confLabel }}</el-radio> item.confLabel }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="" prop="sceneType"> <el-form-item label="" prop="applicationSceneTypes">
<span class="tips-block" slot="label"> <span class="tips-block" slot="label">
<span class="tips-label">应用场景</span> <span class="tips-label">应用场景</span>
<el-tooltip popper-class="tooltip-class" effect="dark" placement="right"> <el-tooltip popper-class="tooltip-class" effect="dark" placement="right">
...@@ -17,14 +26,14 @@ ...@@ -17,14 +26,14 @@
<span class="tips-icon" /> <span class="tips-icon" />
</el-tooltip>: </el-tooltip>:
</span> </span>
<el-checkbox-group v-model="form.sceneType"> <el-checkbox-group v-model="form.applicationSceneTypes">
<el-checkbox v-for="(item, index) in sceneTypeList" :key="index" :label="item.confId">{{ item.confValue <el-checkbox v-for="(item, index) in sceneTypeList" :key="index" :label="item.confId">{{ item.confValue
}}</el-checkbox> }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item label="" prop="costCategory"> <el-form-item label="" prop="costCategory" v-if="form.formType == 2">
<span class="tips-block" slot="label"> <span class="tips-block" slot="label">
<span class="tips-label">费用类目</span> <span class="tips-label">子类目</span>
<el-tooltip popper-class="tooltip-class" effect="dark" placement="right"> <el-tooltip popper-class="tooltip-class" effect="dark" placement="right">
<div slot="content">定义对账费用类目,完成对账规则配置后,会按照以下配置的类目排序进行金额计算和拆分,最后一个费用类目自动承担剩余金额;</div> <div slot="content">定义对账费用类目,完成对账规则配置后,会按照以下配置的类目排序进行金额计算和拆分,最后一个费用类目自动承担剩余金额;</div>
<span class="tips-icon" /> <span class="tips-icon" />
...@@ -38,12 +47,12 @@ ...@@ -38,12 +47,12 @@
{{ scope.$index + 1 }} {{ scope.$index + 1 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="费用类目名称" align="center" width="400"> <el-table-column label="子类目名称" align="center" width="400">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="inputCol"> <div class="inputCol">
<el-form-item :prop="'tableData.' + scope.$index + '.feeCategoryName'" <el-form-item :prop="'tableData.' + scope.$index + '.feeCategoryName'"
:rules="[{ required: true, message: '请输入费用类目名称', trigger: 'change' }]"> :rules="[{ required: true, message: '请输入子类目名称', trigger: 'change' }]">
<el-input v-model="scope.row.feeCategoryName" placeholder="请输入费用类目名称" maxlength="20" <el-input v-model="scope.row.feeCategoryName" placeholder="请输入子类目名称" maxlength="20"
style="width: 300px" clearable /> style="width: 300px" clearable />
</el-form-item> </el-form-item>
</div> </div>
...@@ -101,34 +110,38 @@ export default { ...@@ -101,34 +110,38 @@ export default {
}, { }, {
confId: 2, confId: 2,
confLabel: '服务商' confLabel: '服务商'
}, {
confId: 3,
confLabel: '平台方'
}
],
formTypeList: [
{
confId: 1,
confLabel: '普通'
}, {
confId: 2,
confLabel: '可拓展'
} }
], ],
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
key: new Date(), key: new Date(),
form: { form: {
feeCategoryName: '', feeCategoryName: '', // 费用类目名称
sceneType: [], formType: 1, // 费用类型
applicationSceneTypes: [], // 应用场景
applicationObjectType: 1, applicationObjectType: 1,
feeCategoryType: 2, // 1= 分账类目;2= 对账类目; feeCategoryType: 2, // 1= 分账类目;2= 对账类目;
categoryToSort: 1, categoryToSort: 1,
tableData: [ tableData: []
// {
// sortVal: 1,
// feeCategoryName: '王小虎1'
// }, {
// sortVal: 2,
// feeCategoryName: '王小虎2'
// }, {
// sortVal: 3,
// feeCategoryName: '王小虎3'
// }, {
// sortVal: 4,
// feeCategoryName: '王小虎4'
// }
]
}, },
formRules: { formRules: {
sceneType: [{ feeCategoryName: [{
required: true,
message: '请输入费用类目名称',
trigger: 'blur'
}],
applicationSceneTypes: [{
required: true, required: true,
message: '请选择应用场景', message: '请选择应用场景',
trigger: 'change' trigger: 'change'
...@@ -167,21 +180,26 @@ export default { ...@@ -167,21 +180,26 @@ export default {
close: 'd2admin/page/close' close: 'd2admin/page/close'
}), }),
changeFormType(e) {
if (this.form.formType == '2') {
this.form.tableData = [
{ sortVal: '', feeCategoryName: '' },
{ sortVal: '', feeCategoryName: '' }
]
} else {
this.form.tableData = []
}
},
getById(id) { getById(id) {
queryById({ id: id, feeCategoryType: 2 }).then(res => { queryById({ id: id, feeCategoryType: 2 }).then(res => {
// this.form.feeCategoryName = res.feeCategoryName || '' this.form.feeCategoryName = res.feeCategoryName
// const scenes = res[0].feeCategorySceneList this.form.feeCategoryNameId = res?.feeCategoryNameId || ''
// const scenes = res.applicationSceneTypes this.form.applicationSceneTypes = res.applicationSceneTypes
// if (scenes && scenes.length > 0) {
// // const list = scenes.map(item => {
// // return item.applicationSceneType
// // })
// }
this.form.sceneType = res.applicationSceneTypes
this.form.applicationObjectType = res.applicationObjectType this.form.applicationObjectType = res.applicationObjectType
// this.form.tableData = res[0].feeCategoryNameList
this.form.tableData = res.feeCategoryChildren this.form.tableData = res.feeCategoryChildren
// this.form.feeCategoryNameId = res?.feeCategoryNameId || '' this.form.formType = res.formType
}) })
}, },
...@@ -234,26 +252,18 @@ export default { ...@@ -234,26 +252,18 @@ export default {
this.$refs.editReconciliationFrom.validate(valid => { this.$refs.editReconciliationFrom.validate(valid => {
if (valid) { if (valid) {
const params = deepClone(this.form) const params = deepClone(this.form)
params.formType = 1 if (params.formType == 2) {
// params.sceneType = params.sceneType.join(',')
params.applicationSceneTypes = params.sceneType
if (params.tableData && params.tableData.length > 1) { if (params.tableData && params.tableData.length > 1) {
params.tableData.forEach((element, index) => { params.feeCategoryChildren = params.tableData.map((item, index) => {
element.categoryToSort = index + 1 item.categoryToSort = index + 1
return item
}) })
params.categoryToSort = params.tableData.map((item, index) => {
return index + 1
}).join(",")
params.feeCategoryName = params.tableData.map(item => {
return item.feeCategoryName
}).join(",")
} else { } else {
this.notice.warningTips('请添加类目到两行以上') this.notice.warningTips('请添加子类目到两行以上')
return return
} }
params.feeCategoryChildren = params.tableData }
params.sceneType && delete params.sceneType delete params.tableData
params.tableData && delete params.tableData
this.$confirm("保存后该费用类目将按照设定应用到对账规则中,是否确定保存?", "提示", { this.$confirm("保存后该费用类目将按照设定应用到对账规则中,是否确定保存?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -294,7 +304,7 @@ export default { ...@@ -294,7 +304,7 @@ export default {
showDemo() { showDemo() {
// public 文件需要使用绝对路径引入 // public 文件需要使用绝对路径引入
this.lookUrl = `${process.env.VUE_APP_PUBLIC_IMGPATH}template02.png` this.lookUrl = `${process.env.VUE_APP_PUBLIC_IMGPATH}template_reconciliation.png`
this.lookImgVisible = !this.lookImgVisible this.lookImgVisible = !this.lookImgVisible
} }
} }
......
...@@ -234,7 +234,7 @@ export default { ...@@ -234,7 +234,7 @@ export default {
this.getBaseData() this.getBaseData()
this.$nextTick(() => { this.$nextTick(() => {
// console.log(this.$refs.ledgerListTable, 'this.$refs.ledgerListTable.page') // console.log(this.$refs.ledgerListTable, 'this.$refs.ledgerListTable.page')
this.$refs.ledgerListTable.page.pageSize = 10 if (this.$refs.ledgerListTable && this.$refs.ledgerListTable.page) this.$refs.ledgerListTable.page.pageSize = 10
}) })
}, },
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
const unit = ele.feeCategoryChildren.length - 1 == index ? '' : ',' const unit = ele.feeCategoryChildren.length - 1 == index ? '' : ','
str += item.feeCategoryName + unit str += item.feeCategoryName + unit
}) })
return lenght ? str.substring(0, lenght) : str return lenght ? (str?.length > lenght ? str.substring(0, lenght) + '\u2026' : str.substring(0, lenght)) : str
} else { } else {
return '-' return '-'
} }
...@@ -262,7 +262,7 @@ export default { ...@@ -262,7 +262,7 @@ export default {
const list = scenes.map(item => { const list = scenes.map(item => {
return sceneList[item] return sceneList[item]
}) })
return lenght ? list.join(",").substring(0, lenght) : list.join(",") return lenght ? (list.join(",")?.length > lenght ? list.join(",").substring(0, lenght) + '\u2026' : list.join(",").substring(0, lenght)) : list.join(",")
} else { } else {
return '-' return '-'
} }
......
<!-- 对账类目 --> <!-- 对账类目 -->
<template> <template>
<div> <div>
<div class="d2-container-content"> <div class="d2-container-content" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" /> <d2-search ref="showSearch" class="show-search" :label-width="'110px'" :search-form="searchForm" :form-data="showFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary"> <el-button :id="tableParams.btnId" size="small" type="primary">
查询 查询
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</el-popover> </el-popover>
</template> </template>
<template slot="typeName" slot-scope="scope"> <template slot="typeName" slot-scope="scope">
<el-popover placement="top" width="300" trigger="hover"> <el-popover placement="top" width="300" trigger="hover" v-if="scope.scope.formType == 2">
<div class="merchant-name-box"> <div class="merchant-name-box">
{{ formTypeFilter(scope.scope) }} {{ formTypeFilter(scope.scope) }}
</div> </div>
...@@ -39,8 +39,9 @@ ...@@ -39,8 +39,9 @@
{{ formTypeFilter(scope.scope, 20) }} {{ formTypeFilter(scope.scope, 20) }}
</div> </div>
</el-popover> </el-popover>
<div v-else>-</div>
</template> </template>
<div slot="auth-button" slot-scope="scope" v-if="!hideOptList.includes(scope.scope.id)"> <div slot="auth-button" slot-scope="scope" v-if="filterEnableEdit(scope.scope.sourceType)">
<auth-button slot="auth-button" :show-btn-ids="['9061605']" :data="scope.scope" /> <auth-button slot="auth-button" :show-btn-ids="['9061605']" :data="scope.scope" />
<auth-button slot="auth-button" :show-btn-ids="['9061606']" :data="scope.scope" /> <auth-button slot="auth-button" :show-btn-ids="['9061606']" :data="scope.scope" />
</div> </div>
...@@ -61,9 +62,27 @@ export default { ...@@ -61,9 +62,27 @@ export default {
searchForm: { searchForm: {
feeCategoryType: 2, feeCategoryType: 2,
applicationSceneType: '', applicationSceneType: '',
applicationObjectType: '' applicationObjectType: '',
feeCategoryName: '',
formType: ''
}, },
showFormData: [{ showFormData: [{
label: '费用类目名称',
name: 'feeCategoryName',
type: 'input',
maxlength: '20',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '应用场景',
name: 'applicationSceneType',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'sceneTypeList'
}, {
label: '应用对象', label: '应用对象',
name: 'applicationObjectType', name: 'applicationObjectType',
type: 'select', type: 'select',
...@@ -73,14 +92,14 @@ export default { ...@@ -73,14 +92,14 @@ export default {
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'objList' optionsName: 'objList'
}, { }, {
label: '应用场景', label: '费用类型',
name: 'applicationSceneType', name: 'formType',
type: 'select', type: 'select',
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: 'confId', optionId: 'confId',
optionLabel: 'confValue', optionLabel: 'confLabel',
optionsName: 'sceneTypeList' optionsName: 'formTypeList'
}], }],
getListApi: selectFeeCategoryList, getListApi: selectFeeCategoryList,
// 表格参数 // 表格参数
...@@ -89,24 +108,32 @@ export default { ...@@ -89,24 +108,32 @@ export default {
listName: 'list', listName: 'list',
tableOption: true, tableOption: true,
tableColumns: [{ tableColumns: [{
label: '应用对象', label: '费用类目名称',
prop: 'applicationObjectName', prop: 'feeCategoryName',
minWidth: '140'
}, {
label: '费用类型',
width: '90',
formatter: (cellValue) => { formatter: (cellValue) => {
return targetType[cellValue.applicationObjectType] return cellValue.formType == 1 ? '普通' : '可拓展'
} }
}, { }, {
label: '子类目',
prop: 'typeName',
addHtml: 'typeName',
width: '300'
}, {
label: '应用场景', label: '应用场景',
prop: 'feeCategorySceneList', prop: 'feeCategorySceneList',
addHtml: 'applicationSceneTypes', addHtml: 'applicationSceneTypes',
width: '300' width: '300'
}, { }, {
label: '费用类目', label: '应用对象',
prop: 'typeName', prop: 'applicationObjectName',
addHtml: 'typeName', formatter: (cellValue) => {
width: '300' return cellValue.applicationObjectType == 3 ? '平台方' : targetType[cellValue.applicationObjectType]
// html: true, }
}, { }, {
label: '创建人', label: '创建人',
prop: 'createdBy' prop: 'createdBy'
...@@ -127,11 +154,22 @@ export default { ...@@ -127,11 +154,22 @@ export default {
}, { }, {
confId: 2, confId: 2,
confLabel: '服务商' confLabel: '服务商'
}, {
confId: 3,
confLabel: '平台方'
}
],
sceneTypeList: deepClone(sceneCodeList),
formTypeList: [
{
confId: 1,
confLabel: '普通'
}, {
confId: 2,
confLabel: '可拓展'
} }
], ],
sceneTypeList: deepClone(sceneCodeList) }
},
hideOptList: [1, 2, 3, 4, 5]
} }
}, },
...@@ -142,8 +180,8 @@ export default { ...@@ -142,8 +180,8 @@ export default {
mounted() { mounted() {
this.getBaseData() this.getBaseData()
this.$nextTick(() => { this.$nextTick(() => {
console.log(this.$refs.reconciliationListTable.page, 'this.$refs.reconciliationListTable.page') // console.log(this.$refs.reconciliationListTable.page, 'this.$refs.reconciliationListTable.page')
this.$refs.reconciliationListTable.page.pageSize = 10 if (this.$refs.reconciliationListTable && this.$refs.reconciliationListTable.page) this.$refs.reconciliationListTable.page.pageSize = 10
}) })
}, },
...@@ -153,23 +191,21 @@ export default { ...@@ -153,23 +191,21 @@ export default {
this.getOptionsList() this.getOptionsList()
}, },
formTypeFilter(cellValue, lenght) { filterEnableEdit(sourceType) {
console.log(cellValue) return sourceType != 2
console.log(lenght, cellValue)
// return 222
// formatter: (cellValue) => {
if (cellValue.feeCategoryChildren) {
const nameString = cellValue.feeCategoryChildren.reduce(
(nameString, item, index) => {
nameString = nameString + `${item.feeCategoryName}` + (index == cellValue.feeCategoryChildren.length - 1 ? '' : ',')
return nameString
}, },
""
) formTypeFilter(ele, length) {
console.log(nameString, 'nameString') if (ele.formType == 2 && ele.feeCategoryChildren.length) {
return lenght ? nameString.substring(0, lenght) : nameString let str = ''
ele.feeCategoryChildren.map((item, index) => {
// console.log(item.)
const unit = ele.feeCategoryChildren.length - 1 == index ? '' : ','
str += item.feeCategoryName + unit
})
return length ? (str?.length > length ? str.substring(0, length) + '\u2026' : str.substring(0, length)) : str
} else { } else {
return "-" return '-'
} }
// } // }
// if (ele.formType == 2 && ele.feeCategoryChildren.length) { // if (ele.formType == 2 && ele.feeCategoryChildren.length) {
...@@ -191,7 +227,7 @@ export default { ...@@ -191,7 +227,7 @@ export default {
const list = scenes.map(item => { const list = scenes.map(item => {
return sceneList[item] return sceneList[item]
}) })
return lenght ? list.join(",").substring(0, lenght) : list.join(",") return lenght ? (list.join(",")?.length > lenght ? list.join(",").substring(0, lenght) + '\u2026' : list.join(",").substring(0, lenght)) : list.join(",")
} else { } else {
return '-' return '-'
} }
...@@ -208,7 +244,9 @@ export default { ...@@ -208,7 +244,9 @@ export default {
this.searchForm = { this.searchForm = {
feeCategoryType: 2, feeCategoryType: 2,
applicationSceneType: '', applicationSceneType: '',
applicationObjectType: '' applicationObjectType: '',
feeCategoryName: '',
formType: ''
} }
this.$refs.reconciliationListTable.refreshTable() this.$refs.reconciliationListTable.refreshTable()
}, },
......
...@@ -468,6 +468,13 @@ $color: #2a58ad; ...@@ -468,6 +468,13 @@ $color: #2a58ad;
.type2 { .type2 {
width: 66.66%; width: 66.66%;
.type-val{
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
} }
......
<!-- 员工编辑 -->
<template>
<d2-container>
<el-form
ref="shopSetFrom"
class="shopSetFrom d2-container-content"
:model="detail"
label-width="130px"
>
<!-- :rules="formRules" -->
<p class="edit-sub-title">
员工编辑
<!-- <span class="merchantName">{{ info.merchantName }} {{ info.merchantId }}</span> -->
</p>
<el-form-item label="员工姓名:">
<el-input class="rateInput_t" v-model="detail.staffName" disabled />
</el-form-item>
<el-form-item label="手机号:">
<el-input class="rateInput_t" v-model="detail.phoneNumber" disabled />
</el-form-item>
<el-form-item label="所属业务:">
<span v-for="(item, index) in detail.staffSceneLabelArr" :key="index">
<el-input
class="rateInput_t_s"
v-model="detail.staffSceneLabelArr[index]"
disabled
/>
</span>
</el-form-item>
<el-form-item label="所属园区店:">
<el-input
class="rateInput_t_m"
v-model="detail.merchantName + ' ' + detail.merchantId"
disabled
/>
</el-form-item>
<el-form-item label="所属服务门店:">
<span class="item-tips"
>注:解绑后代表该员工不再该4s店驻店,但该员工若再次在该4s店产生订单,视为该员工继续在该4s店驻店</span
>
<div v-for="(item, index) in detail.shopMerchantList" :key="index">
<div style="marginbottom: 20px">
<el-input
class="rateInput_t_m"
v-model="item.merchantName + ' ' + item.merchantId"
disabled
/>
<el-button
type="text"
style="color: blue; paddingleft: 10px"
@click="handleSecure(item)"
>解绑该服务门店</el-button
>
</div>
</div>
</el-form-item>
<el-form-item label="所属服务商:">
<div v-for="(item, index) in detail.serviceMerchantList" :key="index">
<el-input
class="rateInput_t_mm"
v-model="item.merchantName + ' ' + item.merchantId"
disabled
/>
</div>
</el-form-item>
<el-form-item>
<div class="btnCon">
<el-button class="cancel-btn" @click="handleCancel"> 返回 </el-button>
</div>
</el-form-item>
</el-form>
</d2-container>
</template>
<script>
import { deepClone } from "@/common/util"
import { mapActions } from "vuex"
import { staffDetail, staffMerchantUnbind } from "@api/inStoreManage"
import { sceneForInStore } from "@/common/constants.js"
export default {
name: "EditStaff",
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
info: {},
detail: {}
}
},
components: {},
computed: {},
async mounted() {
this.info = JSON.parse(this.$route.query?.info)
await this.staffDetail(this.info)
},
methods: {
...mapActions({
get: "d2admin/base/get",
close: "d2admin/page/close"
}),
async getBaseData() {},
handleCancel() {
this.close({ tagName: "/editStaff" })
this.$router.push({ name: "inStoreManage" })
},
async staffDetail(info) {
console.log("info", info)
return new Promise((resolve, reject) => {
staffDetail({ staffUuid: info.staffUuid }).then((result) => {
this.detail = deepClone(result)
let arr = []
if (this.detail.staffSceneLabel) {
arr = this.detail.staffSceneLabel.split(",")
arr = arr.map((o) => {
return sceneForInStore.find((el) => el.confId == o)?.confValue
})
arr = arr.filter((item) => item !== undefined)
}
this.detail.staffSceneLabelArr = arr
resolve()
})
})
},
// 解绑服务门店
handleSecure(row) {
let params = {}
params.merchantId = row.merchantId
params.staffUuid = this.detail.staffUuid
this.$confirm("是否解绑该服务门店?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
closeOnClickModal: false
})
.then(() => {
staffMerchantUnbind(params).then((res) => {
this.notice.okTips()
this.staffDetail(this.info)
})
})
.catch((err) => {
console.log(err)
})
}
}
}
</script>
<style scoped lang="scss" >
.d2-container-content {
background: #ffffff;
}
.shopSetFrom.d2-container-content {
margin-top: 0 !important;
}
.edit-sub-title {
padding-bottom: 14px;
border-bottom: 1px solid #e8e8ea;
.merchantName {
font-weight: 400;
color: #666;
margin-left: 15px;
font-size: 14px;
}
}
.shopSetFrom .addorder_page {
padding: 20px;
position: relative;
}
.shopSetFrom .el_select {
width: 100%;
}
.shopSetFrom .sort_input {
width: 200px;
}
.shopSetFrom .warningFont {
color: #f56c6c;
font-size: 12px;
line-height: 1;
}
.shopSetFrom .text-wrapper {
white-space: pre-wrap;
}
.shopSetFrom .itd {
width: 432px;
}
.shopSetFrom .pro-img {
width: 80px;
height: 80px;
}
.shopSetFrom .tips {
font-size: 12px;
color: #999999;
margin: 0 0;
}
::v-deep.shopSetFrom .el-form-item {
margin-bottom: 36px;
}
.shopSetFrom .el-radio__label {
height: 20px;
line-height: 20px;
color: #a1a1a1;
padding: 5px 10px;
border: 1px solid #a1a1a1;
border-radius: 2px;
}
.shopSetFrom .is-checked .el-radio__label {
border: 1px solid #0947c6;
}
.shopSetFrom .el-radio__input {
display: none;
}
.base-pro-block-wh {
width: 160px;
height: 262px;
margin-bottom: 20px;
}
.base-pro-block {
position: relative;
display: inline-block;
margin-right: 20px;
}
.base-pro-block .base-pro-block-wh {
border: 1px solid #e5e6e7;
box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.1);
}
.base-pro-block .base-pro-block-wh.is-checked {
border: 1px solid #0947c6;
}
.base-pro-block .el-checkbox__label {
padding: 0 0;
}
.base-pro-block .el-checkbox__input {
display: none;
}
.base-pro-block .base-pro-block-wh .pro-icon {
position: absolute;
top: 4px;
right: 4px;
width: 24px;
height: 24px;
/* background: url("../../assets/uncheck.png"); */
background-size: 24px 24px;
margin: 0 0;
}
.base-pro-block .base-pro-block-wh.is-checked .pro-icon {
/* background: url("../../assets/check.png"); */
background-size: 24px 24px;
}
.base-pro-block .pro-icon img {
width: 24px;
height: 24px;
}
.base-pro-block img {
vertical-align: top;
width: 160px;
height: 160px;
}
.base-pro-block .pro-block-txt {
font-size: 12px;
color: #a1a1a1;
padding: 22px 12px;
}
.base-pro-block .block-title {
color: #6c6f71;
font-weight: bold;
}
.base-pro-block .ellipsis {
width: 140px;
height: auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin: 0 0;
}
.item-tips {
padding-left: 10px;
height: 17px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 13px;
color: #999999;
}
.add-merchant-btn {
padding-top: 10px;
height: 32px;
}
.inputCol {
/* box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center; */
// padding: 0 0 20px;
}
.month-set-div {
width: 720px;
height: 300px;
}
.month-choose {
box-sizing: border-box;
width: 100%;
padding: 0 20px;
height: 40px;
background: #f2f4f7;
border: 1px solid #e8e8ea;
display: flex;
justify-content: space-between;
align-items: center;
}
.month-choose-span {
/* padding-left: 20px; */
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 14px;
color: #333333;
}
.set-value-div {
box-sizing: border-box;
padding: 20px 36px;
width: 100%;
height: 251px;
background: #ffffff;
border: 1px solid #e8e8ea;
display: flex;
// flex-wrap: wrap;
.label {
height: 100%;
width: 215px;
}
.right {
display: flex;
flex-wrap: wrap;
}
}
.set-value-alone {
width: 136px;
height: 57px;
margin-right: 8px;
p {
margin: 0;
}
&:nth-child(4n) {
margin-right: 0;
}
}
.btnCon {
width: 710px;
margin-top: 40px;
text-align: center;
}
.rateSpan {
padding-left: 50px;
}
.rateInput {
width: 100px;
}
.rateInput_t {
width: 200px;
}
.rateInput_s {
display: inline-block;
width: 100px;
}
.rateInput_d {
margin-top: 20px;
}
.rateInput_t_s {
width: 60px;
margin-right: 20px;
}
.rateInput_t_m {
width: 300px;
}
.rateInput_t_mm {
width: 300px;
margin-bottom: 20px;
}
</style>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
:model="classificationObj" :model="classificationObj"
:rules="rules" :rules="rules"
label-suffix=":" label-suffix=":"
label-width="180px" label-width="260px"
> >
<p class="edit-sub-title">分账品类</p> <p class="edit-sub-title">分账品类</p>
<el-form-item <el-form-item
...@@ -187,8 +187,8 @@ ...@@ -187,8 +187,8 @@
style="width: 100%" style="width: 100%"
required required
> >
<span slot="label"> <span slot="label" class="label-span">
{{ item.expenseCategoryName }} <span class="sub-label">{{ item.expenseCategoryName }}</span>
<!-- content="Top Left 提示文字" --> <!-- content="Top Left 提示文字" -->
<el-tooltip class="item" effect="dark" placement="right"> <el-tooltip class="item" effect="dark" placement="right">
<template slot="content"> <template slot="content">
...@@ -447,8 +447,8 @@ ...@@ -447,8 +447,8 @@
style="width: 100%" style="width: 100%"
required required
> >
<span slot="label"> <span slot="label" class="label-span">
{{ item.expenseCategoryName }} <span class="sub-label">{{ item.expenseCategoryName }}</span>
<!-- content="Top Left 提示文字" --> <!-- content="Top Left 提示文字" -->
<el-tooltip class="item" effect="dark" placement="right"> <el-tooltip class="item" effect="dark" placement="right">
<template slot="content"> <template slot="content">
...@@ -847,8 +847,8 @@ ...@@ -847,8 +847,8 @@
style="width: 100%" style="width: 100%"
required required
> >
<span slot="label"> <span slot="label" class="label-span">
{{ item.expenseCategoryName }} <span class="sub-label">{{ item.expenseCategoryName }}</span>
<!-- content="Top Left 提示文字" --> <!-- content="Top Left 提示文字" -->
<el-tooltip class="item" effect="dark" placement="right"> <el-tooltip class="item" effect="dark" placement="right">
<template slot="content"> <template slot="content">
...@@ -1981,13 +1981,18 @@ export default { ...@@ -1981,13 +1981,18 @@ export default {
// 解决子选项问题 // 解决子选项问题
editObj.children = item.feeCategoryNameList.map((ele, index) => { editObj.children = item.feeCategoryNameList.map((ele, index) => {
// debugger // debugger
// console.log(ele.nodeType, 'editObj') // console.log(ele, 'editObj')
const editChildrenObj = const editChildrenObj =
editObj.children?.find( editObj.children?.find(
(el) => el.expenseCategoryId == ele.expenseCategoryId (el) => el.expenseCategoryId == ele.expenseCategoryId
) || {} ) || {}
// 解决 类目更新名字历史财务会覆盖掉的问题 // 解决 类目更新名字历史财务会覆盖掉的问题
editChildrenObj.expenseCategoryName = ele.applicationObjectName editChildrenObj.expenseCategoryName = ele.applicationObjectName
// 兜底规则根据最新费用类目配置 并将兜底规则 分润模式和分润比例清空
editChildrenObj.nodeType = ele.nodeType
// 当expenseCategoryCalculateType == 7是兜底规则
editChildrenObj.expenseCategoryCalculateType = editChildrenObj.nodeType == 4 || editChildrenObj.expenseCategoryCalculateType == 7 ? '' : editChildrenObj.expenseCategoryCalculateType
editChildrenObj.expenseCategoryValue = editChildrenObj.nodeType == 4 || editChildrenObj.expenseCategoryCalculateType == 7 ? '' : editChildrenObj.expenseCategoryValue
// console.log(ele, 'ele') // console.log(ele, 'ele')
const childrenObj = { const childrenObj = {
expenseCategoryCalculateType: "", // 计算方式 expenseCategoryCalculateType: "", // 计算方式
...@@ -2337,7 +2342,7 @@ export default { ...@@ -2337,7 +2342,7 @@ export default {
flex-flow: column; flex-flow: column;
.el-form-item { .el-form-item {
width: 25%; width: 28%;
} }
.check_calculateMode { .check_calculateMode {
margin-left: 30px; margin-left: 30px;
...@@ -2367,7 +2372,7 @@ export default { ...@@ -2367,7 +2372,7 @@ export default {
} }
.edit-form-item-table { .edit-form-item-table {
width: 80% !important; width: 90% !important;
} }
.edit-form-item-table-children { .edit-form-item-table-children {
...@@ -2388,10 +2393,26 @@ export default { ...@@ -2388,10 +2393,26 @@ export default {
.el-select__tags-text { .el-select__tags-text {
display: inline-block; display: inline-block;
max-width: 180px; max-width: 260px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.el-form-item__label{
display: flex;
align-items: center;
justify-content: flex-end;
.label-span{
display: flex;
align-items: center;
.sub-label{
display: inline-block;
max-width: 205px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
} }
</style> </style>
<!-- 财务 --> <!-- 财务 -->
<template> <template>
<d2-Container class="financialRulesContainer"> <d2-Container class="financialRulesContainer " v-loading="$store.state.d2admin.loading.value">
<div class="d2-container-content"> <div class="d2-container-content">
<div class="headerContainer"> <div class="headerContainer">
<p> <p>
...@@ -843,7 +843,7 @@ export default { ...@@ -843,7 +843,7 @@ export default {
this.editableTabs this.editableTabs
) )
if (!this.checkParamsType(res, goodsTypeGroupRules)) { if (!this.checkParamsType(res, goodsTypeGroupRules)) {
this.$message.warning("请完善分账规则") return this.$message.warning("请完善分账规则")
} }
try { try {
this.submitParams = { this.submitParams = {
...@@ -1194,6 +1194,7 @@ export default { ...@@ -1194,6 +1194,7 @@ export default {
goodsTypeGroupRules.push(res) goodsTypeGroupRules.push(res)
} }
this.$forceUpdate()
resolve(goodsTypeGroupRules) resolve(goodsTypeGroupRules)
}) })
}, },
......
...@@ -86,7 +86,12 @@ ...@@ -86,7 +86,12 @@
</div> </div>
<div class="type1 type2"> <div class="type1 type2">
<div class="type-name">地址:</div> <div class="type-name">地址:</div>
<el-tooltip class="item" effect="dark" placement="top">
<template slot="content">
<div class="address-box">{{ items.shopMerchant.address }}</div>
</template>
<div class="type-val">{{ items.shopMerchant.address }}</div> <div class="type-val">{{ items.shopMerchant.address }}</div>
</el-tooltip>
</div> </div>
<div class="type1"> <div class="type1">
<div class="type-name">创建时间:</div> <div class="type-name">创建时间:</div>
...@@ -202,7 +207,13 @@ ...@@ -202,7 +207,13 @@
<div class="type1 type2"> <div class="type1 type2">
<div class="type-name">地址:</div> <div class="type-name">地址:</div>
<!-- items.yqMerchant.address --> <!-- items.yqMerchant.address -->
<!-- <div class="type-val">{{ $$(items.yqMerchant, 'address') }}</div> -->
<el-tooltip class="item" effect="dark" placement="top">
<template slot="content">
<div class="address-box">{{ $$(items.yqMerchant, 'address') }}</div>
</template>
<div class="type-val">{{ $$(items.yqMerchant, 'address') }}</div> <div class="type-val">{{ $$(items.yqMerchant, 'address') }}</div>
</el-tooltip>
</div> </div>
<div class="type1"> <div class="type1">
<div class="type-name">创建时间:</div> <div class="type-name">创建时间:</div>
......
...@@ -296,6 +296,13 @@ $color: #2a58ad; ...@@ -296,6 +296,13 @@ $color: #2a58ad;
.type2 { .type2 {
width: 66.66%; width: 66.66%;
.type-val{
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
} }
......
...@@ -606,6 +606,13 @@ $color: #2a58ad; ...@@ -606,6 +606,13 @@ $color: #2a58ad;
.type2 { .type2 {
width: 66.66%; width: 66.66%;
.type-val{
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
} }
......
...@@ -292,6 +292,13 @@ $color: #2a58ad; ...@@ -292,6 +292,13 @@ $color: #2a58ad;
.type2 { .type2 {
width: 66.66%; width: 66.66%;
.type-val{
display: inline-block !important;
width: calc(100% - 90px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!