Commit e59e5a04 by 王琦琳

Merge branch 'dev_v4.32.0_1130' into 'develop'

Dev v4.32.0 1130

See merge request !246
2 parents 242d148a 9af19aca
Showing 65 changed files with 1819 additions and 335 deletions
import request from "./request" import request from "./request"
const djPath = "dj.api." const djPath = "dj.api."
const djPath2 = "dj.api.smartcarlife."
const path = "dj.api.serviceMerchant." const path = "dj.api.serviceMerchant."
// 分页查询服务门店 // 分页查询服务门店
...@@ -79,3 +80,29 @@ export function synchronizeBusinessInformation(data) { ...@@ -79,3 +80,29 @@ export function synchronizeBusinessInformation(data) {
data.method = `${path}synchronizeBusinessInformation` data.method = `${path}synchronizeBusinessInformation`
return request(data, "post") return request(data, "post")
} }
// 分页查询银盛虚账列表
export function yseMerchantPage(data) {
data.method = `${djPath2}yseMerchant.page`
return request(data, "post")
}
// 修改虚账商户关联
export function yseMerchantModifyMerchantRef(data) {
data.method = `${djPath2}yseMerchant.modifyMerchantRef`
return request(data, "post")
}
// 虚账管理-操作记录
export function yseMerchantListHistory(data) {
data.method = `${djPath2}yseMerchantRefBatchEffect.listHistory`
return request(data, "post")
}
// 银盛虚账列表-详情
export function yseMerchantGetDetail(data) {
data.method = `dj.api.yseMerchantOffline.getDetail`
return request(data, "post")
}
// 银盛虚账可选商户列表
export function listWithPageAccountStatuses(data) {
data.method = `dj.api.serviceMerchant.listWithPage`
return request(data, "post")
}
...@@ -102,3 +102,9 @@ export function getPositionList(data) { ...@@ -102,3 +102,9 @@ export function getPositionList(data) {
data.method = `${path}smartcarlife.goodsPosition.list` data.method = `${path}smartcarlife.goodsPosition.list`
return request(data) return request(data)
} }
// excel上传
export function uploadExcel(data) {
data.method = `${path}smartcarlife.common.uploadExcel`
return request(data, RequestMethods.POST, ["file"])
}
...@@ -30,3 +30,9 @@ export function getshopMerchantList(data) { ...@@ -30,3 +30,9 @@ export function getshopMerchantList(data) {
data.method = `dj.smartcarlife.api.shopMerchant.list` data.method = `dj.smartcarlife.api.shopMerchant.list`
return request(data) return request(data)
} }
// 批量设置规则商品的非融合报价模式
export function goodsModeBatchSet(data) {
data.method = `dj.api.smartcarlife.vehicle.damage.upgrade.rule.goods.mode.batch.set`
return request(data)
}
...@@ -713,7 +713,7 @@ export const upgradeFlags = [ ...@@ -713,7 +713,7 @@ export const upgradeFlags = [
{ confId: "N", confValue: "战败" } { confId: "N", confValue: "战败" }
] ]
//转账管理 状态 // 转账管理 状态
export const transferAccountsStatusList = [ export const transferAccountsStatusList = [
{ confId: 1, confValue: "运营审核" }, { confId: 1, confValue: "运营审核" },
{ confId: 2, confValue: "财务确认" }, { confId: 2, confValue: "财务确认" },
...@@ -738,14 +738,23 @@ export const transferAccountsStatusShow = { ...@@ -738,14 +738,23 @@ export const transferAccountsStatusShow = {
9: "驳回" 9: "驳回"
} }
//转账管理 转账类型 // 转账管理 转账类型
export const transferTypeList = [{ confId: 1, confValue: "服务商款项" }] export const transferTypeList = [
{ confId: 1, confValue: "服务商款项" },
{ confId: 2, confValue: "流量方款项" }
]
export const transferTypeShow = { 1: "服务商款项" } export const transferTypeShow = { 1: "服务商款项", 2: "流量方款项" }
//提现管理 状态 // 提现管理 状态
export const withdrawalManageStatusList = [ export const withdrawalManageStatusList = [
{ confId: 5, confValue: "到账中" }, { confId: 5, confValue: "到账中" },
{ confId: 6, confValue: "已到账" }, { confId: 6, confValue: "已到账" },
{ confId: 8, confValue: "到账失败" } { confId: 8, confValue: "到账失败" }
] ]
// 库存管理模式
export const stockManagementModeList = [
{ confId: 2, confName: "不使用膜卷号" },
{ confId: 1, confName: "使用膜卷号" }
]
...@@ -32,12 +32,16 @@ export default { ...@@ -32,12 +32,16 @@ export default {
.table-header { .table-header {
font-size: 14px; font-size: 14px;
} }
.table-header .el-col-12 { .table-header .el-col-12 {
height: 100%; /* min-width: 50%; */
height: 32px;
} }
.table-header .grid { .table-header .grid {
margin-right: 20px; margin-right: 20px;
} }
.count-txt { .count-txt {
font-weight: 700; font-weight: 700;
color: #2a58ad; color: #2a58ad;
......
<!-- 表格+分页 --> <!-- 表格+分页 -->
<template> <template>
<div class="d2-table"> <div class="d2-table">
<el-table :ref="tableParams.mutiSelectName + 'MutiTable' || 'mutiTable'" <el-table :ref="tableParams.mutiSelectName + 'MutiTable' || 'mutiTable'" :data="getListApi ? data : tableData"
:data="getListApi ? data : tableData" :row-key="tableParams.mutiSelectUniqueKey || ''" v-loading="loading" border :highlight-current-row="true"
:row-key="tableParams.mutiSelectUniqueKey || ''" @sort-change="sortChange" @selection-change="handleSelect" :tree-props="{ children: 'upgradeGoodsList' }"
v-loading="loading" :span-method="arraySpanMethod" v-bind="$attrs">
border <el-table-column v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName" type="selection"
:highlight-current-row="true" align="center" :selectable="selectableFn" width="55" />
@sort-change="sortChange" <el-table-column v-if="tableParams.singleSelectUniqueKey" align="center" width="55">
@selection-change="handleSelect"
:tree-props="{children: 'upgradeGoodsList'}"
:span-method="arraySpanMethod"
v-bind="$attrs">
<el-table-column v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type="selection"
align="center"
:selectable="selectableFn"
width="55" />
<el-table-column v-if="tableParams.singleSelectUniqueKey"
align="center"
width="55">
<template slot-scope="scope"> <template slot-scope="scope">
<slot name="single-button" <slot name="single-button" :scope="scope.row" />
:scope="scope.row" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-if="hasNum" <el-table-column v-if="hasNum" align="center" width="60px" label="序号" type="index"
align="center" :index="index => index + ((pagination.currentPage ? pagination.currentPage : page.currentPage) - 1) * (pagination.pageSize ? pagination.pageSize : page.pageSize) + 1" />
width="60px" <el-table-column v-for="(item, index) in tableParams.tableColumns" :key="index" :label="item.label"
label="序号" :prop="item.prop" :width="item.width" :min-width="item.minWidth" :align="item.align || 'center'"
type="index" :sortable="item.sortable" :show-overflow-tooltip="item.showOverFlow">
:index="index=>index+((pagination.currentPage?pagination.currentPage:page.currentPage) - 1) * (pagination.pageSize?pagination.pageSize:page.pageSize) + 1" />
<el-table-column v-for="(item, index) in tableParams.tableColumns"
:key="index"
:label="item.label"
:prop="item.prop"
:width="item.width"
:min-width="item.minWidth"
:align="item.align||'center'"
:sortable="item.sortable"
:show-overflow-tooltip="item.showOverFlow">
<template slot="header"> <template slot="header">
<span>{{ item.label }}</span> <span>{{ item.label }}</span>
<table-head-search v-if="item.optionConfig" <table-head-search v-if="item.optionConfig" :search-form="headSearchForm" :option-config="item.optionConfig"
:search-form="headSearchForm" :base-data="baseData" @handleTableHeadChange="handleTableHeadChange" />
:option-config="item.optionConfig"
:base-data="baseData"
@handleTableHeadChange="handleTableHeadChange" />
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<slot v-if="item.addHtml" <slot v-if="item.addHtml" :name="item.addHtml" :scope="scope.row" :index="scope.$index" :prop="item.prop"
:name="item.addHtml"
:scope="scope.row"
:index="scope.$index"
:prop="item.prop"
:width="item.width" /> :width="item.width" />
<template v-else-if="item.type == 'ownSerialNum'"> <template v-else-if="item.type == 'ownSerialNum'">
<span>{{ scope.row[item.prop] >= 0 ? (scope.row[item.prop]+((pagination.currentPage?pagination.currentPage:page.currentPage) - 1) * (pagination.pageSize?pagination.pageSize:page.pageSize) + 1) : '' }}</span> <span>{{ scope.row[item.prop] >= 0 ?
(scope.row[item.prop] + ((pagination.currentPage ? pagination.currentPage : page.currentPage) - 1) *
(pagination.pageSize ? pagination.pageSize : page.pageSize) + 1) : '' }}</span>
</template> </template>
<template v-else-if="item.tagLabel"> <template v-else-if="item.tagLabel">
<el-tag v-if="!item.tagName" <el-tag 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" <span v-if="item.html" v-html="item.formatter(scope.row)" />
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)" />
</template> </template>
</template> </template>
<template v-else-if="getListApi"> <template v-else-if="getListApi">
<span v-if="item.prefix">{{ item.prefix }}</span> <span v-if="item.prefix">{{ item.prefix }}</span>
<span <span v-if="item.parentProp">{{ scope.row[item.parentProp] ? scope.row[item.parentProp][item.prop] : ''
v-if="item.parentProp">{{ scope.row[item.parentProp] ? scope.row[item.parentProp][item.prop] : '' }}</span> }}</span>
<span v-else>{{ scope.row[item.prop] }}</span> <span v-else>{{ scope.row[item.prop] || '-' }}</span>
</template> </template>
<template v-else> <template v-else>
<span v-text="tableData[scope.$index][item.prop]" /> <span v-text="tableData[scope.$index][item.prop]" />
...@@ -88,30 +57,17 @@ ...@@ -88,30 +57,17 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-if="tableParams.tableOption" <el-table-column v-if="tableParams.tableOption" label="操作" fixed="right"
label="操作" :align="tableParams.tableOption.align || 'center'" :width="tableParams.tableOption.width || 'auto'">
fixed="right"
:align="tableParams.tableOption.align||'center'"
:width="tableParams.tableOption.width||'auto'">
<template slot-scope="scope"> <template slot-scope="scope">
<slot name="auth-button" <slot name="auth-button" :scope="scope.row" :index="scope.$index" />
:scope="scope.row" <slot name="auth-button-other" :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>
</el-table> </el-table>
<el-pagination v-if="hasPage" <el-pagination v-if="hasPage" background @size-change="handleSizeChange" @current-change="handleCurrentChange"
background :current-page="page.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="page.pageSize"
@size-change="handleSizeChange" :total="getListApi ? total : tableTotal" :layout="layout" />
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-sizes="[10,20,30,40]"
:page-size="page.pageSize"
:total="getListApi ? total : tableTotal"
:layout="layout" />
</div> </div>
</template> </template>
...@@ -385,7 +341,11 @@ export default { ...@@ -385,7 +341,11 @@ export default {
this.page.currentPage = value this.page.currentPage = value
this.getListApi ? this.refreshTable(false) : this.$emit('refreshTable', this.page) this.getListApi ? this.refreshTable(false) : this.$emit('refreshTable', this.page)
}, },
// 重置请求
resetRefreshTable() {
this.refreshTable_noApi()
this.refreshTable()
},
refreshTable_noApi() { refreshTable_noApi() {
this.page = { this.page = {
pageSize: 10, pageSize: 10,
...@@ -400,15 +360,19 @@ export default { ...@@ -400,15 +360,19 @@ export default {
.a-click { .a-click {
cursor: pointer; cursor: pointer;
} }
.el-table .cell { .el-table .cell {
line-height: 18px; line-height: 18px;
} }
.d2-table p { .d2-table p {
margin: 10px 0; margin: 10px 0;
} }
.d2-table .head-search { .d2-table .head-search {
cursor: pointer; cursor: pointer;
} }
@mixin spotBase { @mixin spotBase {
width: 8px; width: 8px;
height: 8px; height: 8px;
...@@ -416,26 +380,32 @@ export default { ...@@ -416,26 +380,32 @@ export default {
margin-right: 5px; margin-right: 5px;
display: inline-block; display: inline-block;
} }
.ashSpot { .ashSpot {
@include spotBase(); @include spotBase();
background: #c6c8cc; background: #c6c8cc;
} }
.greenSpot { .greenSpot {
@include spotBase(); @include spotBase();
background: #2cca74; background: #2cca74;
} }
.yellowSpot { .yellowSpot {
@include spotBase(); @include spotBase();
background: #fdb757; background: #fdb757;
} }
.redSpot { .redSpot {
@include spotBase(); @include spotBase();
background: #eb4e4e; background: #eb4e4e;
} }
.orgenSpot { .orgenSpot {
@include spotBase(); @include spotBase();
background: #eb4e4e; background: #eb4e4e;
} }
.blueSpot { .blueSpot {
@include spotBase(); @include spotBase();
background: #5850ff; background: #5850ff;
......
...@@ -150,7 +150,10 @@ service.interceptors.response.use( ...@@ -150,7 +150,10 @@ service.interceptors.response.use(
// console.log(dataAxios) // console.log(dataAxios)
// errorCreate(`${dataAxios[ruleResult.message_key]}`) // errorCreate(`${dataAxios[ruleResult.message_key]}`)
if (errCodes.includes(dataAxios[ruleResult.code_key])) { if (errCodes.includes(dataAxios[ruleResult.code_key])) {
errorCreate(`${errCodeMsg[dataAxios[ruleResult.code_key]]}`) return errorCreate(`${errCodeMsg[dataAxios[ruleResult.code_key]]}`)
} else {
//返回约定定义之外的错误码直接取message
return errorCreate(`${dataAxios[ruleResult.message_key]}`)
} }
break break
} }
......
...@@ -136,6 +136,22 @@ export const routerName = { ...@@ -136,6 +136,22 @@ export const routerName = {
parentId: "90401" parentId: "90401"
} }
] ]
},
{
authId: "9040113",
parentId: "90401",
label: "分润&成本分析",
category: "Button",
type: "primary",
handle: "handleExportAnalysis"
},
{
authId: "9040114",
parentId: "90401",
label: "驻店权益运营周报",
category: "Button",
type: "primary",
handle: "handleWeekExportAnalysis"
} }
], ],
component: _import("orderManage/orderList") component: _import("orderManage/orderList")
......
...@@ -314,9 +314,33 @@ export const routerName = { ...@@ -314,9 +314,33 @@ export const routerName = {
category: "Button", category: "Button",
type: "primary", type: "primary",
handle: "synchronization" handle: "synchronization"
},
{
authId: "9061004",
parentId: "90610",
label: "商户关联",
handle: "handleCustomerAssociation"
},
{
authId: "9061005",
parentId: "90610",
label: "账户详情",
handle: "handleDetail"
},
{
authId: "9061006",
parentId: "90610",
label: "操作记录",
handle: "handleOperationRecords"
},
{
authId: "9061007",
parentId: "90610",
label: "账户详情",
handle: "handleApply"
} }
], ],
component: _import("systemConfig/accountNew/accountList") component: _import("systemConfig/accountNew/accountList_newIndex")
}, },
90611: { 90611: {
path: "/applyAccount_new", path: "/applyAccount_new",
......
...@@ -99,7 +99,12 @@ ...@@ -99,7 +99,12 @@
{{ +$$(detail.goodsOrder,'payOrder','payType') === 2 ? '交易流水号' : '交易参考号' }} {{ +$$(detail.goodsOrder,'payOrder','payType') === 2 ? '交易流水号' : '交易参考号' }}
</td> </td>
<td> <td>
{{ $$(detail.goodsOrder,'payOrder','tradeNo') }} <!-- {{ $$(detail.goodsOrder,'payOrder','tradeNo') }} -->
<el-tooltip :content="$$(detail.goodsOrder,'payOrder','tradeNo')"
popper-class="merchantTooltip"
placement="top">
<span class="text-hide">{{ $$(detail.goodsOrder,'payOrder','tradeNo') }}</span>
</el-tooltip>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -502,6 +507,13 @@ export default { ...@@ -502,6 +507,13 @@ export default {
text-align: center; text-align: center;
// padding: 10px; // padding: 10px;
padding: 6px; padding: 6px;
.text-hide{
display: inline-block;
width: 19.5em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&.p-l-45 { &.p-l-45 {
padding-left: 45px; padding-left: 45px;
} }
......
...@@ -242,6 +242,7 @@ ...@@ -242,6 +242,7 @@
<el-table-column prop="tradeNo" <el-table-column prop="tradeNo"
label="交易参考号" label="交易参考号"
align="center" align="center"
show-overflow-tooltip
width="120px" /> width="120px" />
<el-table-column prop="goodsName" <el-table-column prop="goodsName"
label="商品名称" label="商品名称"
......
...@@ -60,6 +60,26 @@ ...@@ -60,6 +60,26 @@
v-if="detailInfo.rewardAndPenaltyCost || detailInfo.rewardAndPenaltyCost == 0"> v-if="detailInfo.rewardAndPenaltyCost || detailInfo.rewardAndPenaltyCost == 0">
{{ detailInfo.rewardAndPenaltyCost }}元 {{ detailInfo.rewardAndPenaltyCost }}元
</el-form-item> </el-form-item>
<el-form-item label="流量费:"
v-if="detailInfo.shopTrafficMoney || detailInfo.shopTrafficMoney == 0">
{{ detailInfo.shopTrafficMoney }}元
</el-form-item>
</el-form>
<el-form class="edit-sub-block-two"
label-width="90px"
:inline="true">
<el-form-item label="对账凭证:"
v-if="detailInfo.voucherList">
<div v-for="item in detailInfo.voucherList">
<span>{{ item.fileName }}</span>
<!-- <a :href="item.fileUrl"
:download="item.fileName"
style="paddingLeft:20px">下载</a> -->
<a @click="download(item)"
href="#"
style="paddingLeft:20px">下载</a>
</div>
</el-form-item>
</el-form> </el-form>
</div> </div>
<div class="examine-record"> <div class="examine-record">
...@@ -99,7 +119,7 @@ ...@@ -99,7 +119,7 @@
<script> <script>
import { transferAccountsRecordDetail } from '@api/transferAccountsManage' import { transferAccountsRecordDetail } from '@api/transferAccountsManage'
import { Util, deepClone } from '@/common/util' import { Util, deepClone, downLoadFile } from '@/common/util'
import { transferAccountsStatusShow, sceneType, transferTypeShow } from '@/common/constants.js' import { transferAccountsStatusShow, sceneType, transferTypeShow } from '@/common/constants.js'
export default { export default {
name: 'DetailDialog', name: 'DetailDialog',
...@@ -154,13 +174,6 @@ export default { ...@@ -154,13 +174,6 @@ export default {
'驳回': 'reddot' '驳回': 'reddot'
}, },
examineStatus: 1, examineStatus: 1,
// statusForShow: {
// 2: { text: '运营审核', status: '通过' },
// 4: { text: '运营审核', status: '驳回' },
// 5: { text: '商务审核', status: '通过' },
// 6: { text: '商务审核', status: '驳回' },
// 7: { text: '采购驳回', status: '驳回' }
// }
transferAccountsStatusShow: deepClone(transferAccountsStatusShow), transferAccountsStatusShow: deepClone(transferAccountsStatusShow),
sceneTypeOpts: deepClone(sceneType), sceneTypeOpts: deepClone(sceneType),
transferTypeShow: deepClone(transferTypeShow), transferTypeShow: deepClone(transferTypeShow),
...@@ -230,13 +243,32 @@ export default { ...@@ -230,13 +243,32 @@ export default {
if (this.detailInfo.marketingCost || this.detailInfo.marketingCost == 0) { if (this.detailInfo.marketingCost || this.detailInfo.marketingCost == 0) {
costTypeList.push('营销费') costTypeList.push('营销费')
} }
if (this.detailInfo.shopTrafficMoney || this.detailInfo.shopTrafficMoney == 0) {
costTypeList.push('流量费')
}
if (costTypeList.length > 0) { if (costTypeList.length > 0) {
this.detailInfo.costTypeShow = costTypeList.join(',') this.detailInfo.costTypeShow = costTypeList.join(',')
} else { } else {
this.detailInfo.costTypeShow = '' this.detailInfo.costTypeShow = ''
} }
}) })
} },
//URL下载文件并修改文件名
download(item) {
const x = new XMLHttpRequest()
x.open('GET', item.fileUrl, true)
x.responseType = 'blob'
x.onload = function () {
const url = window.URL.createObjectURL(x.response)
const a = document.createElement('a')
a.href = url
a.download = item.fileName
a.click()
}
x.send()
},
} }
} }
</script> </script>
...@@ -407,7 +439,6 @@ export default { ...@@ -407,7 +439,6 @@ export default {
.edit-sub-block { .edit-sub-block {
padding: 0 16px; padding: 0 16px;
}
.el-form-item { .el-form-item {
width: 300px; width: 300px;
...@@ -426,5 +457,15 @@ export default { ...@@ -426,5 +457,15 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
} }
}
.edit-sub-block-two {
padding: 0 16px;
.el-form-item {
// width: 300px;
margin-bottom: 0px;
}
}
} }
</style> </style>
...@@ -136,7 +136,8 @@ export default { ...@@ -136,7 +136,8 @@ export default {
sceneTypes: [], sceneTypes: [],
transferTrandeNo: '', transferTrandeNo: '',
withdrawTradeNo: '', withdrawTradeNo: '',
transferAccountsDate: '' transferAccountsDate: '',
transferType: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [{ showFormData: [{
...@@ -161,6 +162,7 @@ export default { ...@@ -161,6 +162,7 @@ export default {
label: '状态', label: '状态',
name: 'status', name: 'status',
type: 'select', type: 'select',
isClear: true,
optionList: [], optionList: [],
optionId: 'confId', optionId: 'confId',
optionLabel: 'confValue', optionLabel: 'confValue',
...@@ -192,6 +194,15 @@ export default { ...@@ -192,6 +194,15 @@ export default {
type: 'datePicker', type: 'datePicker',
isClear: true, isClear: true,
pickerOptions: 'rangePickerOptions' pickerOptions: 'rangePickerOptions'
}, {
label: '转账类型',
name: 'transferType',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'transferTypeList'
}], }],
getListApi: transferAccountsRecordPage, getListApi: transferAccountsRecordPage,
tableParams: { tableParams: {
...@@ -259,6 +270,9 @@ export default { ...@@ -259,6 +270,9 @@ export default {
if (cellValue.marketingCost || cellValue.marketingCost == 0) { if (cellValue.marketingCost || cellValue.marketingCost == 0) {
costTypeList.push('营销费') costTypeList.push('营销费')
} }
if (cellValue.shopTrafficMoney || cellValue.shopTrafficMoney == 0) {
costTypeList.push('流量费')
}
if (costTypeList.length > 0) { if (costTypeList.length > 0) {
return costTypeList.join(',') return costTypeList.join(',')
} else { } else {
...@@ -371,18 +385,6 @@ export default { ...@@ -371,18 +385,6 @@ export default {
this.searchFormSearch.transferEndTimeStr = Util.dateFormate(this.searchFormSearch.transferAccountsDate[1], 'YYYY-MM-DD') + ' 23:59:59' this.searchFormSearch.transferEndTimeStr = Util.dateFormate(this.searchFormSearch.transferAccountsDate[1], 'YYYY-MM-DD') + ' 23:59:59'
delete this.searchFormSearch.transferAccountsDate delete this.searchFormSearch.transferAccountsDate
} }
// if (this.searchFormSearch.orderCode) {
// this.searchFormSearch.orderCodes[0] = this.searchFormSearch.orderCode
// delete this.searchFormSearch.orderCode
// }
// if (this.searchFormSearch.merchantId) {
// this.searchFormSearch.merchantIds[0] = this.searchFormSearch.merchantId
// delete this.searchFormSearch.merchantId
// }
// if (this.searchFormSearch.transferOutMerchantId) {
// this.searchFormSearch.transferInMerchantId[0] = this.searchFormSearch.transferOutMerchantId
// delete this.searchFormSearch.transferOutMerchantId
// }
if (this.searchFormSearch.status) { if (this.searchFormSearch.status) {
this.searchFormSearch.statuses[0] = this.searchFormSearch.status this.searchFormSearch.statuses[0] = this.searchFormSearch.status
delete this.searchFormSearch.status delete this.searchFormSearch.status
...@@ -424,7 +426,8 @@ export default { ...@@ -424,7 +426,8 @@ export default {
sceneTypes: [], sceneTypes: [],
transferTrandeNo: '', transferTrandeNo: '',
withdrawTradeNo: '', withdrawTradeNo: '',
transferAccountsDate: '' transferAccountsDate: '',
transferType: ''
} }
this.$refs.recordTable.refreshTable(false, true) this.$refs.recordTable.refreshTable(false, true)
}, },
......
...@@ -183,8 +183,11 @@ export default { ...@@ -183,8 +183,11 @@ export default {
return new Promise(resolve => { return new Promise(resolve => {
this.searchFormSearch = { this.searchFormSearch = {
...this.parentSearchForm, ...this.parentSearchForm,
startDate: this.parentSearchForm.useTime && this.parentSearchForm.useTime.length ? Util.dateFormate(this.parentSearchForm.useTime[0], 'YYYY-MM-DD HH:mm:ss') : '',
endDate: this.parentSearchForm.useTime && this.parentSearchForm.useTime.length ? Util.dateFormate(this.parentSearchForm.useTime[1], 'YYYY-MM-DD') + ' 23:59:59' : ''
// ...this.searchForm // ...this.searchForm
} }
delete this.searchFormSearch.useTime
resolve() resolve()
}) })
}, },
......
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
merchantCouponDTOList: [] merchantCouponDTOList: []
}, },
couponsNumList: [], couponsNumList: [],
remarkTemp: '1.本券外加本人身份证、行驶证方可免费体验价值1280元(前档680元+车身600元)的健康环保赠送膜。\n2.车主须提前3-5天预约施工,以便贴膜中心做好各项施工准备,未预约恕不接待。\n3.如车主需要更高品质全车太阳膜,本券可抵扣1280元(前档680元+车身600元)。\n4.如您的爱车已贴膜,来贴膜中心进行升级贴膜,需收取额外的撕膜除胶费300元,敬请谅解。\n5.本券仅在嘀加智享车生活贴膜施工中心使用。\n6.本券最终解释权归嘀加智享车生活贴膜中心所有。', remarkTemp: '1.本券外加本人身份证、行驶证方可免费体验价值1280元(前挡680元+车身600元)的健康环保赠送膜。\n2.车主须提前3-5天预约施工,以便贴膜中心做好各项施工准备,未预约恕不接待。\n3.如车主需要更高品质全车太阳膜,本券可抵扣1280元(前挡680元+车身600元)。\n4.如您的爱车已贴膜,来贴膜中心进行升级贴膜,需收取额外的撕膜除胶费300元,敬请谅解。\n5.本券仅在嘀加智享车生活贴膜施工中心使用。\n6.本券最终解释权归嘀加智享车生活贴膜中心所有。',
formRules: { formRules: {
couponName: [{ required: true, message: '请输入精品礼券名称', trigger: 'change' }], couponName: [{ required: true, message: '请输入精品礼券名称', trigger: 'change' }],
couponType: [{ required: true, message: '请选择类型', trigger: 'change' }], couponType: [{ required: true, message: '请选择类型', trigger: 'change' }],
......
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
activeName: 'storeList', activeName: 'storeList',
parentSearchForm: { parentSearchForm: {
couponName: '', couponName: '',
merchantName: '' merchantNameKeyWord: ''
}, },
copyShowFormData: [], copyShowFormData: [],
showFormData: [{ showFormData: [{
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
keyFn: this.handleSearch keyFn: this.handleSearch
}, { }, {
label: '门店名称', label: '门店名称',
name: 'merchantName', name: 'merchantNameKeyWord',
type: 'input', type: 'input',
isClear: true, isClear: true,
keyFn: this.handleSearch keyFn: this.handleSearch
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
handler(newVal) { handler(newVal) {
this.parentSearchForm = { this.parentSearchForm = {
couponName: '', couponName: '',
merchantName: '' merchantNameKeyWord: ''
} }
this.changeShowFormData() this.changeShowFormData()
} }
...@@ -215,6 +215,13 @@ export default { ...@@ -215,6 +215,13 @@ export default {
optionLabel: 'confValue', optionLabel: 'confValue',
collapseTags: true, collapseTags: true,
keyFn: this.handleSearch keyFn: this.handleSearch
},{
label: '领用时间',
name: 'useTime',
type: 'datePicker',
isClear: true,
pickerOptions: 'rangePickerOptions',
keyFn: this.handleSearch
}) })
this.copyShowFormData = copyShowFormData this.copyShowFormData = copyShowFormData
break break
...@@ -223,7 +230,7 @@ export default { ...@@ -223,7 +230,7 @@ export default {
handleReset() { handleReset() {
this.parentSearchForm = { this.parentSearchForm = {
couponName: '', couponName: '',
merchantName: '' merchantNameKeyWord: ''
} }
this.handleSearch() this.handleSearch()
}, },
......
...@@ -137,7 +137,6 @@ ...@@ -137,7 +137,6 @@
<script> <script>
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { membraneTypeList } from '@/common/constants'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { baseConfig } from "@/main" import { baseConfig } from "@/main"
import relateStoreTable from "./relateStoreTable.vue" import relateStoreTable from "./relateStoreTable.vue"
...@@ -156,7 +155,7 @@ export default { ...@@ -156,7 +155,7 @@ export default {
selectedValue: '', selectedValue: '',
show: false, show: false,
examineFlag: false, examineFlag: false,
membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
dialogObj: {}, dialogObj: {},
imageFileArr: [], imageFileArr: [],
imgViewerVisible: false, imgViewerVisible: false,
......
...@@ -227,7 +227,6 @@ import { limitPrice } from '@/common/format' ...@@ -227,7 +227,6 @@ import { limitPrice } from '@/common/format'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { uploadImg, uploadPDF } from '@/api/sys.base' import { uploadImg, uploadPDF } from '@/api/sys.base'
// import { getSceneTypeListByMerchantId } from '@api/grounding' // import { getSceneTypeListByMerchantId } from '@api/grounding'
import { membraneTypeList } from '@/common/constants.js'
import { upgradeSupplyModeList, crowdUpgradeSupplyModeList } from "../constants/data" import { upgradeSupplyModeList, crowdUpgradeSupplyModeList } from "../constants/data"
import { baseConfig } from "@/main" import { baseConfig } from "@/main"
import relateStoreDialog from "./relateStoreDialog.vue" import relateStoreDialog from "./relateStoreDialog.vue"
...@@ -246,7 +245,7 @@ export default { ...@@ -246,7 +245,7 @@ export default {
getAccountMerchantList, getAccountMerchantList,
equitySceneType: baseConfig.equitySceneType || [], equitySceneType: baseConfig.equitySceneType || [],
extendedPosiType: baseConfig.extendedPosiType || [], // 延保类 extendedPosiType: baseConfig.extendedPosiType || [], // 延保类
membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
formData: {}, formData: {},
reg: { reg: {
numReg: /^[1-9]\d*$/, numReg: /^[1-9]\d*$/,
......
...@@ -97,7 +97,6 @@ ...@@ -97,7 +97,6 @@
<script> <script>
import { getGoodsInfoById } from '@/api/commodity' import { getGoodsInfoById } from '@/api/commodity'
import { membraneTypeList } from '@/common/constants'
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { baseConfig } from '@/main' import { baseConfig } from '@/main'
export default { export default {
...@@ -108,7 +107,7 @@ export default { ...@@ -108,7 +107,7 @@ 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 membraneTypeList: baseConfig.membraneTypeList
} }
}, },
......
...@@ -468,7 +468,6 @@ ...@@ -468,7 +468,6 @@
import { limitPrice } from '@/common/format' import { limitPrice } from '@/common/format'
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { mapGetters, mapMutations, mapActions } from 'vuex' import { mapGetters, mapMutations, mapActions } from 'vuex'
import { membraneTypeList } from '@/common/constants'
import { baseConfig } from '@/main' import { baseConfig } from '@/main'
import serviceItemsDialog from "./serviceItemsDialog.vue" import serviceItemsDialog from "./serviceItemsDialog.vue"
import { getProductServiceItems } from '@api/productManage' import { getProductServiceItems } from '@api/productManage'
...@@ -520,7 +519,7 @@ export default { ...@@ -520,7 +519,7 @@ export default {
typeReg: /^[A-Za-z0-9]+$/ typeReg: /^[A-Za-z0-9]+$/
}, },
productPositionTypeList: [], productPositionTypeList: [],
membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
tableWidth: 0, tableWidth: 0,
tableColNum: 0, tableColNum: 0,
serviceItemsVisible: false, serviceItemsVisible: false,
......
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
<div :class="'product-form'"> <div :class="'product-form'">
<el-form :model="formData" <el-form :model="formData"
:rules="rules" :rules="rules"
:ref="formRef + 'd2FormRuleForm'" :ref="formRef + 'd2FormRuleForm'">
v-loading="$store.state.d2admin.loading.value">
<slot name="title" /> <slot name="title" />
<div v-for="(i, idx) in formList" <div v-for="(i, idx) in formList"
:key="idx" :key="idx"
...@@ -386,7 +385,10 @@ ...@@ -386,7 +385,10 @@
class="el-icon-zoom-in" /> class="el-icon-zoom-in" />
</span> </span>
</span> </span>
<input type="file" <input
:id="item.name + 'file'"
ref="file"
type="file"
class="activity-Input img-w-h" class="activity-Input img-w-h"
accept="image/png, image/jpeg, image/gif, image/jpg" accept="image/png, image/jpeg, image/gif, image/jpg"
@change="e => handleImgChange(e, item, subIndex)" @change="e => handleImgChange(e, item, subIndex)"
...@@ -442,7 +444,7 @@ import { deepClone } from '@/common/util' ...@@ -442,7 +444,7 @@ import { deepClone } from '@/common/util'
import { uploadImg, uploadVideo } from '@/api/sys.base' import { uploadImg, uploadVideo } from '@/api/sys.base'
import { limitPrice } from '@/common/format' import { limitPrice } from '@/common/format'
const SESSION_NAME = `${process.env.VUE_APP_STORAGE_PREFIX}-${process.env.VUE_APP_VERSION}-info` const SESSION_NAME = `${process.env.VUE_APP_STORAGE_PREFIX}-${process.env.VUE_APP_VERSION}-info`
import { membraneTypeList, applicableModelTypeList, BaseData } from '@/common/constants.js' import { applicableModelTypeList, BaseData } from '@/common/constants.js'
import { mapActions, mapMutations } from 'vuex' import { mapActions, mapMutations } from 'vuex'
import { baseConfig } from '@/main' import { baseConfig } from '@/main'
export default { export default {
...@@ -525,7 +527,7 @@ export default { ...@@ -525,7 +527,7 @@ export default {
priceReg: /^\d[\d\.]*$/ priceReg: /^\d[\d\.]*$/
}, },
selectedPositionIds: [], selectedPositionIds: [],
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
// productServiceItemList: [] // productServiceItemList: []
} }
}, },
...@@ -750,6 +752,10 @@ export default { ...@@ -750,6 +752,10 @@ export default {
var reader = new FileReader() var reader = new FileReader()
var fileInfo = e.srcElement.files[0] var fileInfo = e.srcElement.files[0]
if (!fileInfo) return if (!fileInfo) return
if (fileInfo?.size / 1024 / 1024 > 10) {
document.getElementById(`${targetItem.name}file`).value = ""
return this.$message('请上传10M以内图片')
}
reader.readAsDataURL(fileInfo) reader.readAsDataURL(fileInfo)
reader.onload = e => { reader.onload = e => {
const imgFile = e.target.result const imgFile = e.target.result
......
...@@ -322,7 +322,6 @@ ...@@ -322,7 +322,6 @@
<script> <script>
import { limitPrice } from '@/common/format' import { limitPrice } from '@/common/format'
import { mapGetters, mapMutations, mapActions } from 'vuex' import { mapGetters, mapMutations, mapActions } from 'vuex'
import { membraneTypeList } from '@/common/constants'
import { deepClone } from "@/common/util" import { deepClone } from "@/common/util"
import { baseConfig } from '@/main' import { baseConfig } from '@/main'
import serviceItemsDialog from "./serviceItemsDialog.vue" import serviceItemsDialog from "./serviceItemsDialog.vue"
...@@ -344,7 +343,7 @@ export default { ...@@ -344,7 +343,7 @@ export default {
minPrice: 0, minPrice: 0,
maxPrice: 0, maxPrice: 0,
productPositionTypeList: [], productPositionTypeList: [],
membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
tableColNum: 6, // 商品table默认展示列数(序号 操作栏除外) tableColNum: 6, // 商品table默认展示列数(序号 操作栏除外)
tableWidth: 1420, tableWidth: 1420,
serviceItemsVisible: false, serviceItemsVisible: false,
......
...@@ -97,13 +97,13 @@ export default { ...@@ -97,13 +97,13 @@ export default {
name: 'thumbUrl', name: 'thumbUrl',
label: '缩略图', label: '缩略图',
type: 'photo', type: 'photo',
tips: ['注:用于小程序主页商品列表配图展示', '请上传2M以内的jpg、jpeg、png图片,建议图片尺寸256*216'], tips: ['注:用于小程序主页商品列表配图展示', '请上传10M以内的jpg、jpeg、png图片,建议图片尺寸256*216'],
maxPhotoNum: 1 maxPhotoNum: 1
}, { }, {
name: 'goodsImgList', name: 'goodsImgList',
label: '产品主图', label: '产品主图',
type: 'photo', type: 'photo',
tips: ['注:用于在小程序商品详情页的顶部展示', '请上传2M以内的jpg、jpeg、png图片,建议图片尺寸256*216'], tips: ['注:用于在小程序商品详情页的顶部展示', '请上传10M以内的jpg、jpeg、png图片,建议图片尺寸256*216'],
maxPhotoNum: 10 maxPhotoNum: 10
}, { }, {
name: 'videoUrl', name: 'videoUrl',
......
...@@ -31,7 +31,7 @@ import { mapActions, mapGetters, mapMutations } from 'vuex' ...@@ -31,7 +31,7 @@ import { mapActions, mapGetters, mapMutations } from 'vuex'
import sourceMaterial from './components/sourceMaterial.vue' import sourceMaterial from './components/sourceMaterial.vue'
import specifications from './components/specifications.vue' import specifications from './components/specifications.vue'
import { addProductManage, UpdateProductManage } from '@api/productManage' import { addProductManage, UpdateProductManage } from '@api/productManage'
import { BaseData, membraneTypeList, applicableModelTypeList } from '@/common/constants.js' import { BaseData, applicableModelTypeList } from '@/common/constants.js'
import { getGoodsInfoById } from '@api/commodity' import { getGoodsInfoById } from '@api/commodity'
import { baseConfig } from '@/main' import { baseConfig } from '@/main'
export default { export default {
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
return { return {
equitySceneType: baseConfig.equitySceneType || [], // 权益类目 equitySceneType: baseConfig.equitySceneType || [], // 权益类目
extendedPosiType: baseConfig.extendedPosiType || [], // 延保类 extendedPosiType: baseConfig.extendedPosiType || [], // 延保类
membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
show: false, show: false,
copyUpgradeGoodsList: [], copyUpgradeGoodsList: [],
......
...@@ -30,6 +30,15 @@ ...@@ -30,6 +30,15 @@
<!-- <auth-button :showBtnIds="['9040104']" <!-- <auth-button :showBtnIds="['9040104']"
class="p-r-20" class="p-r-20"
category="Button"></auth-button> --> category="Button"></auth-button> -->
<!-- 车损权益营收概况 -->
<span style="padding:0px 13px;">
<auth-button :show-btn-ids="['9040114']" category="Button" />
</span>
<!-- 分润&成本分析 -->
<span style="padding:0px 13px;">
<auth-button :show-btn-ids="['9040113']" category="Button" />
</span>
<!-- 导出 -->
<auth-button :show-btn-ids="['9040101']" category="Button" /> <auth-button :show-btn-ids="['9040101']" category="Button" />
</d2-table-header> </d2-table-header>
<el-table :data="tableData" v-loading="$store.state.d2admin.loading.value" border> <el-table :data="tableData" v-loading="$store.state.d2admin.loading.value" border>
...@@ -647,7 +656,21 @@ export default { ...@@ -647,7 +656,21 @@ export default {
this.baseData.channelTypeList = await this.get(BaseData.channelType) this.baseData.channelTypeList = await this.get(BaseData.channelType)
this.getOptionsList() this.getOptionsList()
}, },
handleWeekExportAnalysis() {
const params = {} // 权益周报导出
params.method = "dj.api.smartcarlife.vd.revenue.export"
// // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [
...this.dowloadList,
{
name: "驻店权益运营周报",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: "dowloadList" })
},
handleImport() { handleImport() {
this.fileVisible = !this.fileVisible this.fileVisible = !this.fileVisible
this.$refs.fileRuleForm && this.$refs.fileRuleForm.resetFields() this.$refs.fileRuleForm && this.$refs.fileRuleForm.resetFields()
...@@ -851,14 +874,34 @@ export default { ...@@ -851,14 +874,34 @@ export default {
this.actionSetDownloadList({ list, type: "dowloadList" }) this.actionSetDownloadList({ list, type: "dowloadList" })
// }) // })
}, },
// 分润&成本分析
handleExportAnalysis() {
var params = this.getParams()
params.pageNum = 1
// exportFile(params).then(res => {
// this.$open(res)
// })
params.method = "dj.api.smartcarlife.order.residentEquity.export.async"
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [
...this.dowloadList,
{
name: "分润&成本分析",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: "dowloadList" })
},
// 查看详情 // 查看详情
handleDetail(data) { handleDetail(data) {
// console.log(data.row) // console.log(data.row)
this.close({ tagName: "/orderDetail" }) this.close({ tagName: "/orderDetail" })
this.$router.push({ this.$router.push({
name: "orderDetail", name: "orderDetail",
params: { query: {
detail: data.row, detail: JSON.stringify(data.row),
signRefundFlag: this.signRefundFlag signRefundFlag: this.signRefundFlag
} }
}) })
......
...@@ -278,7 +278,7 @@ export default { ...@@ -278,7 +278,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.signRefundFlag = this.$route.params.signRefundFlag this.signRefundFlag = this.$route.query.signRefundFlag
this.getBaseData() this.getBaseData()
this.getGoodsOrderDetail() this.getGoodsOrderDetail()
console.log(this.detail) console.log(this.detail)
...@@ -333,7 +333,7 @@ export default { ...@@ -333,7 +333,7 @@ export default {
return sums return sums
}, },
handleClose() { handleClose() {
if (this.$route.params.from) { // 从待补录订单列表跳转 if (this.$route.query.from) { // 从待补录订单列表跳转
this.close({ tagName: '/orderSupplement' }) this.close({ tagName: '/orderSupplement' })
this.$router.push({ name: 'orderSupplement' }) this.$router.push({ name: 'orderSupplement' })
} else { // 从订单列表跳转 } else { // 从订单列表跳转
...@@ -355,13 +355,14 @@ export default { ...@@ -355,13 +355,14 @@ export default {
}, },
getGoodsOrderDetail() { getGoodsOrderDetail() {
const routerParams = this.$route.params.detail console.log(this.$route)
const routerParams = JSON.parse(this.$route.query.detail)
goodsOrderDetail({ orderCode: routerParams?.orderCode }).then(res => { goodsOrderDetail({ orderCode: routerParams?.orderCode }).then(res => {
res?.subOrderList?.forEach(item => { res?.subOrderList?.forEach(item => {
console.log(this.positionTypeList.concat(this.extendedPosiTypeList), this.positionTypeList) console.log(this.positionTypeList.concat(this.extendedPosiTypeList), this.positionTypeList)
item.positionStr = deepClone(this.positionTypeList.concat(this.extendedPosiTypeList))?.filter(val => item?.upgradeGoodsPosition == val.position)[0]?.confName || '-' item.positionStr = deepClone(this.positionTypeList.concat(this.extendedPosiTypeList))?.filter(val => item?.upgradeGoodsPosition == val.position)[0]?.confName || '-'
}) })
const clientSignatureDTOList = res?.clientSignatureDTOList[0] || [] const clientSignatureDTOList = res?.clientSignatureDTOList[0] || {}
this.detail = Object.assign(clientSignatureDTOList, res) this.detail = Object.assign(clientSignatureDTOList, res)
if (this.detail.source == 7) { if (this.detail.source == 7) {
this.detail.createdDate = dayjs(this.detail.createdDate).format('YYYY-MM-DD HH:mm:ss') this.detail.createdDate = dayjs(this.detail.createdDate).format('YYYY-MM-DD HH:mm:ss')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
@confirmDialog="handleAddConfirm"> @confirmDialog="handleAddConfirm">
<el-form ref="refundForm" :model="infoForm" :rules="formRules"> <el-form ref="refundForm" :model="infoForm" :rules="formRules">
<el-form-item prop="remark"> <el-form-item prop="remark">
<el-input v-clear-emoij type="textarea" :rows="5" placeholder="不超过100个字。" maxlength="100" show-word-limit <el-input v-clear-emoij type="textarea" :rows="5" placeholder="不超过200个字。" maxlength="200" show-word-limit
v-model="infoForm.remark" /> v-model="infoForm.remark" />
</el-form-item> </el-form-item>
</el-form> </el-form>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<script> <script>
import { purchaseOrderDetail, getShipperList, saveshipper } from '@/api/purchaseShopping.js' import { purchaseOrderDetail, getShipperList, saveshipper } from '@/api/purchaseShopping.js'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
import CardDialog from './CardDialog' import CardDialog from './CardDialog'
export default { export default {
name: 'AllocateDialog', name: 'AllocateDialog',
...@@ -123,14 +123,14 @@ export default { ...@@ -123,14 +123,14 @@ export default {
label: '采购数量', label: '采购数量',
prop: 'goodsNumber', prop: 'goodsNumber',
formatter: (cellValue) => { formatter: (cellValue) => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷` : `${cellValue.goodsNumber}件` return baseConfig.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷` : `${cellValue.goodsNumber}件`
} }
}, },
{ {
label: '库存总量', label: '库存总量',
prop: '', prop: '',
formatter: (cellValue) => { formatter: (cellValue) => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件` return baseConfig.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件`
} }
}, },
{ {
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
label: '已发货数量', label: '已发货数量',
prop: 'purchaseNumber', prop: 'purchaseNumber',
formatter: (cellValue) => { formatter: (cellValue) => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber || 0}卷` : `${cellValue.purchaseNumber || 0}件` return baseConfig.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber || 0}卷` : `${cellValue.purchaseNumber || 0}件`
} }
}, },
{ {
......
...@@ -137,7 +137,6 @@ ...@@ -137,7 +137,6 @@
</template> </template>
<script> <script>
// import { membraneTypeList } from '@/common/constants.js'
import { deliveryCard, importDeliveryCard, checkCard } from '@/api/purchaseShopping.js' import { deliveryCard, importDeliveryCard, checkCard } from '@/api/purchaseShopping.js'
import { downLoadFile } from '@/common/util' import { downLoadFile } from '@/common/util'
export default { export default {
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
<script> <script>
import { purchaseOrderDetail, factoryOrderDetail, purchaseOrderDelivery } from '@/api/purchaseShopping.js' import { purchaseOrderDetail, factoryOrderDetail, purchaseOrderDelivery } from '@/api/purchaseShopping.js'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
import { limitPrice } from '@/common/format' import { limitPrice } from '@/common/format'
import { Util } from '@/common/util' import { Util } from '@/common/util'
import CardDialog from './CardDialog' import CardDialog from './CardDialog'
...@@ -206,14 +206,14 @@ export default { ...@@ -206,14 +206,14 @@ export default {
label: '采购数量', label: '采购数量',
prop: 'goodsNumber', prop: 'goodsNumber',
formatter: (cellValue) => { formatter: (cellValue) => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷` : `${cellValue.goodsNumber}件` return baseConfig.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷` : `${cellValue.goodsNumber}件`
} }
}, },
{ {
label: '库存总量', label: '库存总量',
prop: '', prop: '',
formatter: (cellValue) => { formatter: (cellValue) => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件` return baseConfig.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件`
} }
}, },
{ {
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
label: '已发货数量', label: '已发货数量',
prop: 'purchaseNumber', prop: 'purchaseNumber',
formatter: (cellValue) => { formatter: (cellValue) => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber || 0}卷` : `${cellValue.purchaseNumber || 0}件` return baseConfig.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber || 0}卷` : `${cellValue.purchaseNumber || 0}件`
} }
}, },
{ {
......
...@@ -37,6 +37,30 @@ ...@@ -37,6 +37,30 @@
</div> </div>
<d2-table ref="recordTable" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0" <d2-table ref="recordTable" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0"
:table-data="item.goodsWarehousingList" :table-params="tableParams" :has-page="false"> :table-data="item.goodsWarehousingList" :table-params="tableParams" :has-page="false">
<template slot="filmRollNo" slot-scope="scope">
<div v-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">
{{ scope.scope.filmRollList[0] }}
</div>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1">
<el-popover placement="top"
width="200"
trigger="hover">
<div class="film-roll-box">
<div class="title">膜卷号</div>
<div class="merchant-item" v-for="(subItem, subIndex) in scope.scope.filmRollList" :key="subIndex">
{{ subItem }}
</div>
</div>
<div slot="reference">
<!-- <img style="width: 14px;height: 13px;" src="./images/merchant_icon.png"> -->
<span style="color: #2A58AD;">(…{{scope.scope.filmRollList.length}})</span>
</div>
</el-popover>
</div>
<div v-else>
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ '-' }}</span>
</div>
</template>
</d2-table> </d2-table>
<div v-else class="message"> <div v-else class="message">
已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询 已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询
...@@ -57,13 +81,13 @@ ...@@ -57,13 +81,13 @@
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { purchaseOrderDeliveryDetail } from '@/api/purchaseShopping.js' import { purchaseOrderDeliveryDetail } from '@/api/purchaseShopping.js'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'DeliveryDetailDialog', name: 'DeliveryDetailDialog',
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
detailInfo: {}, detailInfo: {},
searchFormSearch: {}, searchFormSearch: {},
// tableData: [], // tableData: [],
...@@ -77,9 +101,14 @@ export default { ...@@ -77,9 +101,14 @@ export default {
prop: 'increaseStockNum', prop: 'increaseStockNum',
// width: '200px' // width: '200px'
formatter: (cellValue) => { formatter: (cellValue) => {
return (cellValue.increaseStockNum || cellValue.increaseStockNum == 0) ? parseFloat(cellValue.increaseStockNum).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-' return (cellValue.increaseStockNum || cellValue.increaseStockNum == 0) ? (this.membraneTypeList.includes(cellValue.goodsType) ? parseFloat(cellValue.increaseStockNum / cellValue.alternateUnits).toFixed(2) : parseFloat(cellValue.increaseStockNum).toFixed(2)) + (this.membraneTypeList.includes(cellValue.goodsType) ? '卷' : '件') : '-'
} }
}, { }, {
label: '膜卷号',
name: '',
type: 'slot',
addHtml: 'filmRollNo',
}, {
label: '入库仓库', label: '入库仓库',
prop: 'yqMerchantName' prop: 'yqMerchantName'
// width: '150px' // width: '150px'
...@@ -87,8 +116,7 @@ export default { ...@@ -87,8 +116,7 @@ export default {
label: '入库门店', label: '入库门店',
prop: 'merchantName' prop: 'merchantName'
// width: '200px' // width: '200px'
} }]
]
}, },
baseData: { baseData: {
...@@ -159,6 +187,8 @@ export default { ...@@ -159,6 +187,8 @@ export default {
if (_goodsWarehousingList && _goodsWarehousingList.length > 0) { if (_goodsWarehousingList && _goodsWarehousingList.length > 0) {
_goodsWarehousingList.forEach(item => { _goodsWarehousingList.forEach(item => {
item.goodsType = info.goodsType item.goodsType = info.goodsType
// 换算单位
item.alternateUnits = info?.stockNum / info?.purchaseNumber
}) })
} }
}) })
...@@ -194,6 +224,16 @@ export default { ...@@ -194,6 +224,16 @@ export default {
} }
} }
.film-roll-box{
font-size: 12px;
color: #666666;
.title{
font-weight: 500;
color: #3A3A3A;
margin-bottom: 8px;
}
}
.deliveryCardCon { .deliveryCardCon {
max-height: 60vh; max-height: 60vh;
overflow: auto; overflow: auto;
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { factoryView } from '@/api/purchaseShopping.js' import { factoryView } from '@/api/purchaseShopping.js'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'FactoryDeliveryDetailDialog', name: 'FactoryDeliveryDetailDialog',
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
} }
}, },
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
detailInfo: '', detailInfo: '',
searchFormSearch: {}, searchFormSearch: {},
tableData: [], tableData: [],
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
// import from '' // import from ''
import { getProductInfo } from '@/api/product' import { getProductInfo } from '@/api/product'
import { shoppingCarAdd } from '@/api/purchaseShopping' import { shoppingCarAdd } from '@/api/purchaseShopping'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'GoodsDetailCom', name: 'GoodsDetailCom',
props: { props: {
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
data() { data() {
return { return {
// dialogShow: false, // dialogShow: false,
membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
dialogConfig: { dialogConfig: {
setting: { setting: {
showClose: true, showClose: true,
......
...@@ -18,6 +18,30 @@ ...@@ -18,6 +18,30 @@
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" @refreshTable="refreshTable" <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" @refreshTable="refreshTable"
:table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal"> :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
<template slot="filmRollNo" slot-scope="scope">
<div v-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">
{{ scope.scope.filmRollList[0] }}
</div>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1">
<el-popover placement="top"
width="200"
trigger="hover">
<div class="film-roll-box">
<div class="title">膜卷号</div>
<div class="merchant-item" v-for="(subItem, subIndex) in scope.scope.filmRollList" :key="subIndex">
{{ subItem }}
</div>
</div>
<div slot="reference">
<!-- <img style="width: 14px;height: 13px;" src="./images/merchant_icon.png"> -->
<span style="color: #2A58AD;">(…{{scope.scope.filmRollList.length}})</span>
</div>
</el-popover>
</div>
<div v-else>
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ '-' }}</span>
</div>
</template>
</d2-table> </d2-table>
</div> </div>
<div class="examine-record" v-if="detailInfo.auditDetaiList && !paramsObj.factoryType"> <div class="examine-record" v-if="detailInfo.auditDetaiList && !paramsObj.factoryType">
...@@ -53,7 +77,7 @@ ...@@ -53,7 +77,7 @@
<script> <script>
import { purchaseOrderDetail, operatorreviewView } from '@/api/purchaseShopping.js' import { purchaseOrderDetail, operatorreviewView } from '@/api/purchaseShopping.js'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
export default { export default {
name: 'OrderDetailDialog', name: 'OrderDetailDialog',
...@@ -65,7 +89,8 @@ export default { ...@@ -65,7 +89,8 @@ export default {
paramsObj: { paramsObj: {
type: Object, type: Object,
default: {} default: {}
} },
showFilmRollNo: Boolean // 是否显示膜卷号
}, },
computed: { computed: {
dialogShow: { dialogShow: {
...@@ -95,7 +120,7 @@ export default { ...@@ -95,7 +120,7 @@ export default {
}, },
config: { config: {
title: '详细信息', title: '详细信息',
width: '1010px' width: '1080px'
} }
}, },
tableParams: { tableParams: {
...@@ -125,7 +150,7 @@ export default { ...@@ -125,7 +150,7 @@ export default {
prop: 'goodsNumber', prop: 'goodsNumber',
formatter: (cellValue) => { formatter: (cellValue) => {
// return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷/${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件` // return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷/${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件`
const condition = membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷` : `${cellValue.goodsNumber}件` const condition = baseConfig.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷` : `${cellValue.goodsNumber}件`
return this.paramsObj.purchaseType == 1 ? condition : `${cellValue.goodsNumber}件` return this.paramsObj.purchaseType == 1 ? condition : `${cellValue.goodsNumber}件`
} }
}, },
...@@ -133,7 +158,7 @@ export default { ...@@ -133,7 +158,7 @@ export default {
label: '库存总量', label: '库存总量',
prop: 'goodsTypeName', prop: 'goodsTypeName',
formatter: cellValue => { formatter: cellValue => {
const condition = membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件` const condition = baseConfig.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件`
return this.paramsObj.purchaseType == 1 ? condition : `${cellValue.goodsNumber}件` return this.paramsObj.purchaseType == 1 ? condition : `${cellValue.goodsNumber}件`
} }
}, },
...@@ -175,7 +200,7 @@ export default { ...@@ -175,7 +200,7 @@ export default {
prop: 'purchaseNumber', prop: 'purchaseNumber',
width: 110, width: 110,
formatter: cellValue => { formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件` return baseConfig.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件`
} }
}, },
{ {
...@@ -183,7 +208,7 @@ export default { ...@@ -183,7 +208,7 @@ export default {
prop: 'inputNumber', prop: 'inputNumber',
width: 110, width: 110,
formatter: cellValue => { formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.inputNumber}米` : `${cellValue.inputNumber}件` return baseConfig.membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.inputNumber}米` : `${cellValue.inputNumber}件`
} }
} }
) )
...@@ -206,6 +231,10 @@ export default { ...@@ -206,6 +231,10 @@ export default {
if (this.paramsObj.factoryType) { if (this.paramsObj.factoryType) {
this.tableParams.tableColumns = this.tableParams.tableColumns.filter(item => item.prop != 'goodsTotalPrice') this.tableParams.tableColumns = this.tableParams.tableColumns.filter(item => item.prop != 'goodsTotalPrice')
} }
// 采购订单-自采入库显示膜卷号
if (this.showFilmRollNo) {
this.tableParams.tableColumns.splice(5, 0, {label: '膜卷号', prop: 'filmRollNo', type: 'slot', addHtml: 'filmRollNo'})
}
}, },
handleDetailClose() { handleDetailClose() {
...@@ -281,6 +310,16 @@ export default { ...@@ -281,6 +310,16 @@ export default {
} }
} }
.film-roll-box{
font-size: 12px;
color: #666666;
.title{
font-weight: 500;
color: #3A3A3A;
margin-bottom: 8px;
}
}
.examine-record { .examine-record {
width: 968px; width: 968px;
min-height: 157px; min-height: 157px;
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<script> <script>
import { listGroupByGoodsType, updateSelectedFlag, shoppingCarRemove, shoppingCarUpdateNumber, purchaseOrderAdd } from '@api/purchaseShopping' import { listGroupByGoodsType, updateSelectedFlag, shoppingCarRemove, shoppingCarUpdateNumber, purchaseOrderAdd } from '@api/purchaseShopping'
import { limitPrice } from '@/common/format' import { limitPrice } from '@/common/format'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'ShoppingCartCom', name: 'ShoppingCartCom',
props: { props: {
...@@ -93,7 +93,7 @@ export default { ...@@ -93,7 +93,7 @@ export default {
return { return {
// addressInfo: {}, // addressInfo: {},
throttleSubmit: false, throttleSubmit: false,
membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
drawer: false, drawer: false,
dialogShow: false, dialogShow: false,
direction: 'rtl', direction: 'rtl',
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" <orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible" v-if="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog> :params-obj="paramsObj" :show-film-roll-no="paramsObj.purchaseType != 1"></orderDeatilDialog>
</d2-container> </d2-container>
</template> </template>
......
...@@ -16,11 +16,12 @@ ...@@ -16,11 +16,12 @@
<!-- <el-button type="primary" @click="handleAddRule" size="small"> <!-- <el-button type="primary" @click="handleAddRule" size="small">
新增 新增
</el-button> --> </el-button> -->
<el-button @click="handleExport" size="small"> 导出 </el-button> <el-button type="primary" @click="massDevelopmentNonFusion" size="small"> 批量开通非融合 </el-button>
<el-button type="primary" @click="handleExport" size="small"> 导出 </el-button>
<!-- <auth-button :show-btn-ids="['9040101']" category="Button" /> --> <!-- <auth-button :show-btn-ids="['9040101']" category="Button" /> -->
</d2-table-header> </d2-table-header>
<d2-table ref="ruleTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" <d2-table ref="ruleTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn" :selectable-fn="selectableFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
...@@ -38,8 +39,7 @@ import { ...@@ -38,8 +39,7 @@ import {
getList, getList,
// insertorUpdate, // insertorUpdate,
// quotationDetail, // quotationDetail,
vdruleExport vdruleExport, goodsModeBatchSet
// getshopMerchantList
} from "@api/vdrule" } from "@api/vdrule"
const mode = { const mode = {
0: "融合报价", 0: "融合报价",
...@@ -50,7 +50,7 @@ const status = { ...@@ -50,7 +50,7 @@ const status = {
1: "已配置" 1: "已配置"
} }
export default { export default {
name: "Rule", name: "RuleConfigurationList",
components: { components: {
ruleConfigurationDialog ruleConfigurationDialog
}, },
...@@ -106,6 +106,8 @@ export default { ...@@ -106,6 +106,8 @@ export default {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list", listName: "list",
tableOption: true, tableOption: true,
mutiSelectUniqueKey: 'id',
mutiSelectName: 'ruleConfigurationList',
tableColumns: [ tableColumns: [
{ {
label: "商户名称", label: "商户名称",
...@@ -164,6 +166,41 @@ export default { ...@@ -164,6 +166,41 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
massDevelopmentNonFusion() {
var selectedData = []
console.log(this.$refs.ruleTable.mutiSelectArr.ruleConfigurationList)
if (this.$refs.ruleTable.mutiSelectArr.ruleConfigurationList) {
selectedData = this.$refs.ruleTable.mutiSelectArr.ruleConfigurationList
}
if (!selectedData?.length) {
this.$message({
message: "请选择需要批量配置的规则",
type: "warning",
showClose: true
})
return false
}
const ids = selectedData.map((item) => {
return item.id
})
console.log(ids)
goodsModeBatchSet({ ruleGoodsIds: ids }).then(res => {
console.log(res)
this.notice.okTips('批量开通成功')
this.handleSearch()
}).catch((err) => {
console.log(err)
})
// this.merchantDialogVisible = !this.merchantDialogVisible
},
selectableFn(row, index) {
var isSelect = true
if (row.status == '1' || row.mode == '0') { // 状态 或者 模式是融合禁止选中
isSelect = false
}
return isSelect
},
getParams() { getParams() {
const params = Util.deepClone(this.searchForm) const params = Util.deepClone(this.searchForm)
const form = this.searchForm const form = this.searchForm
......
...@@ -62,7 +62,7 @@ import { Util, deepClone } from '@/common/util' ...@@ -62,7 +62,7 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getReportByGoods } from '@api/rightsAndInterestsManage' import { getReportByGoods } from '@api/rightsAndInterestsManage'
import { rangePickerOptions_year_2023 } from '@/common/format' import { rangePickerOptions_year_2023 } from '@/common/format'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'StockMonthDialog', name: 'StockMonthDialog',
components: { components: {
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
pickerOption: rangePickerOptions_year_2023, pickerOption: rangePickerOptions_year_2023,
countObj: {}, countObj: {},
searchForm: { searchForm: {
......
...@@ -85,7 +85,7 @@ import { Util, deepClone } from '@/common/util' ...@@ -85,7 +85,7 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { stockRemainPage, saveStockAllocate, yqRelatedList } from '@api/stockManage' import { stockRemainPage, saveStockAllocate, yqRelatedList } from '@api/stockManage'
import allocationNumDialog from './allocationNumDialog' import allocationNumDialog from './allocationNumDialog'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'InventoryList', name: 'InventoryList',
components: { components: {
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
callOutYqMerchantList: [this.$store.state.d2admin.user.info.merchant], callOutYqMerchantList: [this.$store.state.d2admin.user.info.merchant],
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
callInYqMerchantList: [], callInYqMerchantList: [],
searchForm: { searchForm: {
searchName: '', searchName: '',
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { stockAllocateDetailPage } from '@api/stockManage' import { stockAllocateDetailPage } from '@api/stockManage'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'AllocationDetailDialog', name: 'AllocationDetailDialog',
components: { components: {
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
countObj: {}, countObj: {},
searchForm: { searchForm: {
id: '' id: ''
...@@ -62,8 +62,13 @@ export default { ...@@ -62,8 +62,13 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return (cellValue.allocateNumber || cellValue.allocateNumber == 0) ? parseFloat(cellValue.allocateNumber).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-' return (cellValue.allocateNumber || cellValue.allocateNumber == 0) ? parseFloat(cellValue.allocateNumber).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
} }
}, {
label: '膜卷号',
prop: 'filmRollNo',
formatter: (cellValue) => {
return cellValue?.filmRollNo || '-'
} }
] }]
}, },
baseData: { baseData: {
......
...@@ -44,7 +44,7 @@ import { Util, deepClone } from '@/common/util' ...@@ -44,7 +44,7 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getProductTypeBySceneId } from '@api/product' import { getProductTypeBySceneId } from '@api/product'
import { getyqMerchantList, inventoryWarningList, getServicemerchantrefList } from '@api/stockManage' import { getyqMerchantList, inventoryWarningList, getServicemerchantrefList } from '@api/stockManage'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'EarlyWarningList', name: 'EarlyWarningList',
components: { components: {
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
searchForm: { searchForm: {
upgradeGoodsName: '', upgradeGoodsName: '',
yqMerchantId: '', yqMerchantId: '',
......
...@@ -69,7 +69,7 @@ import { deepClone } from '@/common/util' ...@@ -69,7 +69,7 @@ import { deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { stockRemainPage, saveStockCheck } from '@api/stockManage' import { stockRemainPage, saveStockCheck } from '@api/stockManage'
import inventoryNumDialog from './inventoryNumDialog' import inventoryNumDialog from './inventoryNumDialog'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'InventoryList', name: 'InventoryList',
components: { components: {
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
searchForm: { searchForm: {
searchName: '' searchName: ''
}, },
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
<span v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + <span v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) +
(membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span> (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
</span> </span>
</span>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</d2-table> </d2-table>
...@@ -34,7 +33,7 @@ ...@@ -34,7 +33,7 @@
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { stockCheckDetailPage } from '@api/stockManage' import { stockCheckDetailPage } from '@api/stockManage'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'InventoryDetailDialog', name: 'InventoryDetailDialog',
components: { components: {
...@@ -43,7 +42,7 @@ export default { ...@@ -43,7 +42,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
countObj: {}, countObj: {},
searchForm: { searchForm: {
id: '' id: ''
...@@ -90,8 +89,13 @@ export default { ...@@ -90,8 +89,13 @@ export default {
// formatter: (cellValue) => { // formatter: (cellValue) => {
// return cellValue.checkTime ? Util.dateFormate(cellValue.checkTime, 'YYYY-MM-DD HH:mm:ss') : '' // return cellValue.checkTime ? Util.dateFormate(cellValue.checkTime, 'YYYY-MM-DD HH:mm:ss') : ''
// } // }
}, {
label: '膜卷号',
prop: 'filmRollNo',
formatter: (cellValue) => {
return cellValue?.filmRollNo || '-'
} }
] }]
}, },
baseData: { baseData: {
......
...@@ -8,7 +8,16 @@ ...@@ -8,7 +8,16 @@
<d2-search ref="showSearch" <d2-search ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData" /> :form-data="showFormData">
<template slot="filmRollNo">
<el-input :style="{ width: '100%'}"
placeholder="请输入膜卷号"
v-model.trim="searchForm['filmRollNo']"
:clearable="true"
:maxlength="50"
@input="filmRollNoInput" />
</template>
</d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button @click="handleSearch" <el-button @click="handleSearch"
size="small" size="small"
...@@ -48,7 +57,8 @@ import { Util, deepClone } from '@/common/util' ...@@ -48,7 +57,8 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getProductTypeBySceneId } from '@api/product' import { getProductTypeBySceneId } from '@api/product'
import { getyqMerchantList, getMerchantGoodsStockReduceRecord, getServicemerchantrefList, stockReduceRecordCount } from '@api/stockManage' import { getyqMerchantList, getMerchantGoodsStockReduceRecord, getServicemerchantrefList, stockReduceRecordCount } from '@api/stockManage'
import { membraneTypeList, upgradeFlags } from '@/common/constants.js' import { upgradeFlags } from '@/common/constants.js'
import { baseConfig } from '@/main'
export default { export default {
name: 'OutboundList', name: 'OutboundList',
components: { components: {
...@@ -57,7 +67,7 @@ export default { ...@@ -57,7 +67,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
searchForm: { searchForm: {
reduceDate: '', reduceDate: '',
eventType: '', eventType: '',
...@@ -67,7 +77,8 @@ export default { ...@@ -67,7 +77,8 @@ export default {
goodsType: '', goodsType: '',
businessCode: '', businessCode: '',
goodsSeries: '', goodsSeries: '',
upgradeFlag: '' upgradeFlag: '',
filmRollNo: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
searchSelectObj: { searchSelectObj: {
...@@ -164,6 +175,9 @@ export default { ...@@ -164,6 +175,9 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confValue', optionLabel: 'confValue',
optionsName: 'upgradeFlags' optionsName: 'upgradeFlags'
},{
label: '膜卷号',
addHtml: 'filmRollNo'
}], }],
getListApi: getMerchantGoodsStockReduceRecord, getListApi: getMerchantGoodsStockReduceRecord,
tableParams: { tableParams: {
...@@ -217,6 +231,13 @@ export default { ...@@ -217,6 +231,13 @@ export default {
prop: 'businessCode', prop: 'businessCode',
width: '120px', width: '120px',
}, { }, {
label: '膜卷号',
prop: 'filmRollNo',
width: 120,
formatter: (cellValue) => {
return cellValue?.filmRollNo || '-'
}
},{
label: '订单类型', label: '订单类型',
prop: 'upgradeFlag', prop: 'upgradeFlag',
width: '100px', width: '100px',
...@@ -298,6 +319,13 @@ export default { ...@@ -298,6 +319,13 @@ export default {
// this.getOptionsList() // this.getOptionsList()
// }, // },
// 输入膜卷号
filmRollNoInput(e) {
if (!/^[a-zA-Z0-9]*$/.test(e)) {
this.searchForm.filmRollNo = e.replace(/[^a-zA-Z0-9]/g, '')
}
},
// 出库记录列表统计 // 出库记录列表统计
stockReduceRecordCount() { stockReduceRecordCount() {
stockReduceRecordCount(this.searchFormSearch).then(res => { stockReduceRecordCount(this.searchFormSearch).then(res => {
......
<!-- 库存明细弹窗 --> <!-- 库存明细弹窗 -->
<template> <template>
<d2-dialog title="库存明细" :is-visible="dialogVisible" class="stockMonthDailog" width="30%" :no-cancel="true" <d2-dialog title="库存明细" :is-visible="dialogVisible" class="stockMonthDailog" width="40%" :no-cancel="true"
btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose"> btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose">
<div> <div>
<div class="d2-container-content"> <div class="d2-container-content">
...@@ -14,14 +14,14 @@ ...@@ -14,14 +14,14 @@
<script> <script>
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { merchantShopGoodsStockPage } from '@api/stockManage' import { merchantShopGoodsStockPage } from '@api/stockManage'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'StockDetailDialog', name: 'StockDetailDialog',
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
searchForm: { searchForm: {
upgradeGoodsId: '', upgradeGoodsId: '',
yqMerchantId: '' yqMerchantId: ''
...@@ -45,6 +45,13 @@ export default { ...@@ -45,6 +45,13 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return (cellValue.stock || cellValue.stock == 0) ? parseFloat(cellValue.stock).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-' return (cellValue.stock || cellValue.stock == 0) ? parseFloat(cellValue.stock).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
} }
},
{
label: '膜卷号',
prop: 'filmRollNo',
formatter: (cellValue) => {
return cellValue?.filmRollNo || '-'
}
} }
] ]
} }
......
...@@ -65,7 +65,7 @@ import { getyqMerchantList, getMerchantGoodsStockMonthReport, stockMonthReportCo ...@@ -65,7 +65,7 @@ import { getyqMerchantList, getMerchantGoodsStockMonthReport, stockMonthReportCo
import stockMonthDialog from './stockMonthDialog' import stockMonthDialog from './stockMonthDialog'
import stockDetailDialog from './stockDetailDialog' import stockDetailDialog from './stockDetailDialog'
import statementOfAccountDialog from './statementOfAccountDialog' import statementOfAccountDialog from './statementOfAccountDialog'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'StockList', name: 'StockList',
components: { components: {
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
searchForm: { searchForm: {
upgradeGoodsName: '', upgradeGoodsName: '',
yqMerchantId: '', yqMerchantId: '',
......
...@@ -39,7 +39,7 @@ import { Util, deepClone } from '@/common/util' ...@@ -39,7 +39,7 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getReportByGoods } from '@api/stockManage' import { getReportByGoods } from '@api/stockManage'
import { rangePickerOptions_year_2023 } from '@/common/format' import { rangePickerOptions_year_2023 } from '@/common/format'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'StockMonthDialog', name: 'StockMonthDialog',
components: { components: {
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
pickerOption: rangePickerOptions_year_2023, pickerOption: rangePickerOptions_year_2023,
countObj: {}, countObj: {},
searchForm: { searchForm: {
......
...@@ -8,7 +8,16 @@ ...@@ -8,7 +8,16 @@
<d2-search ref="showSearch" <d2-search ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData" /> :form-data="showFormData" >
<template slot="filmRollNo">
<el-input :style="{ width: '100%'}"
placeholder="请输入膜卷号"
v-model.trim="searchForm['filmRollNo']"
:clearable="true"
:maxlength="50"
@input="filmRollNoInput" />
</template>
</d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button @click="handleSearch" <el-button @click="handleSearch"
size="small" size="small"
...@@ -48,7 +57,8 @@ import { Util, deepClone } from '@/common/util' ...@@ -48,7 +57,8 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getProductTypeBySceneId } from '@api/product' import { getProductTypeBySceneId } from '@api/product'
import { getyqMerchantList, getGoodsWarehousingList, getServicemerchantrefList, goodsWarehousingInfoCount } from '@api/stockManage' import { getyqMerchantList, getGoodsWarehousingList, getServicemerchantrefList, goodsWarehousingInfoCount } from '@api/stockManage'
import { membraneTypeList, upgradeFlags } from '@/common/constants.js' import { upgradeFlags } from '@/common/constants.js'
import { baseConfig } from '@/main'
export default { export default {
name: 'WarehousingList', name: 'WarehousingList',
components: { components: {
...@@ -57,7 +67,7 @@ export default { ...@@ -57,7 +67,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
searchForm: { searchForm: {
increaseTime: '', increaseTime: '',
increaseStockType: '', increaseStockType: '',
...@@ -68,7 +78,8 @@ export default { ...@@ -68,7 +78,8 @@ export default {
businessCode: '', businessCode: '',
goodsSeries: '', goodsSeries: '',
deliveryNumber: '', deliveryNumber: '',
upgradeFlag: '' upgradeFlag: '',
filmRollNo: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
searchSelectObj: { searchSelectObj: {
...@@ -164,6 +175,9 @@ export default { ...@@ -164,6 +175,9 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confValue', optionLabel: 'confValue',
optionsName: 'upgradeFlags' optionsName: 'upgradeFlags'
}, {
label: '膜卷号',
addHtml: 'filmRollNo'
}], }],
getListApi: getGoodsWarehousingList, getListApi: getGoodsWarehousingList,
tableParams: { tableParams: {
...@@ -221,6 +235,13 @@ export default { ...@@ -221,6 +235,13 @@ export default {
prop: 'deliveryNumber', prop: 'deliveryNumber',
width: 150 width: 150
}, { }, {
label: '膜卷号',
prop: 'filmRollNo',
width: 150,
formatter: (cellValue) => {
return cellValue.filmRollNo || '-'
}
}, {
label: '订单类型', label: '订单类型',
prop: 'upgradeFlag', prop: 'upgradeFlag',
width: '100px', width: '100px',
...@@ -298,6 +319,13 @@ export default { ...@@ -298,6 +319,13 @@ export default {
// this.getOptionsList() // this.getOptionsList()
// }, // },
// 输入膜卷号
filmRollNoInput(e) {
if (!/^[a-zA-Z0-9]*$/.test(e)) {
this.searchForm.filmRollNo = e.replace(/[^a-zA-Z0-9]/g, '')
}
},
// 获取仓库门店 // 获取仓库门店
getServicemerchantrefList(merchantId) { getServicemerchantrefList(merchantId) {
getServicemerchantrefList({ getServicemerchantrefList({
......
...@@ -3,12 +3,8 @@ ...@@ -3,12 +3,8 @@
<div> <div>
<!-- <d2-container> --> <!-- <d2-container> -->
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table ref="recordTable" <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi" :before-search-fn="beforeSearchFn" :has-page="false">
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
:hasPage="false">
</d2-table> </d2-table>
</div> </div>
<!-- </d2-container> --> <!-- </d2-container> -->
...@@ -17,6 +13,7 @@ ...@@ -17,6 +13,7 @@
</template> </template>
<script> <script>
import { sendSms, getAdminInfo } from '@api/merchant'
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { listYqRefConfig } from '@/api/shopConfig.js' import { listYqRefConfig } from '@/api/shopConfig.js'
...@@ -59,7 +56,18 @@ export default { ...@@ -59,7 +56,18 @@ export default {
} }
] ]
}, },
// 短信模块
isSend: false,
sendMsg: '发送验证短信',
adminInfo: {
name: '',
phone: ''
},
rules: {
smsCode: [{ required: true, message: '请输入验证码', trigger: 'blur' }]
},
isShowOkbtn: true,
num: 0
} }
}, },
computed: { computed: {
...@@ -74,6 +82,9 @@ export default { ...@@ -74,6 +82,9 @@ export default {
} }
}, },
mounted() { mounted() {
getAdminInfo({}).then(res => {
this.adminInfo = res
})
// this.getBaseData() // this.getBaseData()
}, },
...@@ -87,14 +98,34 @@ export default { ...@@ -87,14 +98,34 @@ export default {
// async getBaseData() { // async getBaseData() {
// this.getOptionsList() // this.getOptionsList()
// }, // },
// 短信模块-start
handleSend() {
sendSms({}).then((res) => {
this.notice.okTips('已发送,30分钟内有效')
this.isSend = true
this.sendMsg = 60
this.msgDown()
})
},
msgDown() {
var time = setTimeout(() => {
clearTimeout(time)
if (this.sendMsg > 1) {
--this.sendMsg
this.msgDown()
} else {
this.isSend = false
}
}, 1000)
},
// 短信模块-end
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.merchantId = this.info.merchantId this.searchFormSearch.merchantId = this.info.merchantId
resolve() resolve()
}) })
}, }
// getOptionsList() { // getOptionsList() {
// this.showFormData.forEach((item, index) => { // this.showFormData.forEach((item, index) => {
...@@ -114,5 +145,4 @@ export default { ...@@ -114,5 +145,4 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -612,7 +612,7 @@ export default { ...@@ -612,7 +612,7 @@ export default {
}, },
mounted() { mounted() {
this.merchantId = this.merchantRow.merchantId this.merchantId = this.merchantRow.ysemRefedFlag == 'Y' ? this.merchantRow.yseMerchantId : this.merchantRow.merchantId
// this.merchantId = 44209510 // this.merchantId = 44209510
this.getDetail() this.getDetail()
}, },
......
<!-- 虚拟账户成本 --> <!-- 虚拟账户成本 -->
<template> <template>
<d2-container class="account-list"> <div>
<div class="header" slot="header"> <div class="d2-container-content" style="padding: 10px 20px;">
<div class=" header" slot="header">
<d2-search ref="showSearch" :search-form="searchForm" :form-data="showFormData"> <d2-search ref="showSearch" :search-form="searchForm" :form-data="showFormData">
<!-- :slot-scope="item" --> <!-- :slot-scope="item" -->
<template slot="channelType"> <template slot="channelType">
...@@ -19,33 +20,32 @@ ...@@ -19,33 +20,32 @@
</el-button> </el-button>
</div> </div>
</div> </div>
</div>
<div class="d2-container-content"> <div class="d2-container-content">
<span slot="left"> <span slot="left">
<auth-button category="Button" :show-btn-ids="['9061003']" /> <auth-button category="Button" :show-btn-ids="['9061003']" />
</span> </span>
<d2-table ref="merchantTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" <d2-table ref="merchantTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> <!-- <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> -->
<div slot="auth-button" slot-scope="scope">
<auth-button v-if="scope.scope.ysemRefedFlag == 'Y'" slot="auth-button" :show-btn-ids="['9061007']"
:data="scope.scope" />
<auth-button v-else slot="auth-button" :show-btn-ids="['9061001']" :data="scope.scope" />
<auth-button slot="auth-button" :show-btn-ids="['9061003']" :data="scope.scope" />
</div>
</d2-table> </d2-table>
</div> </div>
<!-- width="70%"
title="申请虚拟对公账户详情"
btnOkLabel="确定"
v-if="accountDetailVisible"
@confirmDialog="handleDetailClose"
noCancel="true" -->
<!-- v-if="accountDetailVisible" -->
<baseDialog :is-show.sync="accountDetailVisible" :config="dialogConfig.setting" :dialog-config="dialogConfig.config" <baseDialog :is-show.sync="accountDetailVisible" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose"> @closeDialog="handleDetailClose">
<account-detail v-if="accountDetailVisible" :account-detail-visible="accountDetailVisible" <account-detail v-if="accountDetailVisible" :account-detail-visible="accountDetailVisible"
:merchant-row="merchantRow" /> :merchant-row="merchantRow" />
</baseDialog> </baseDialog>
<!-- <settingDetail :show="settingDetailVisible"></settingDetail> --> <!-- <settingDetail :show="settingDetailVisible"></settingDetail> -->
</d2-container> </div>
</template> </template>
<script> <script>
// import _ from 'lodash'
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { getListApi, getMerchantLevelApi, synchronizeBusinessInformation } from '@api/publicAccount' import { getListApi, getMerchantLevelApi, synchronizeBusinessInformation } from '@api/publicAccount'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
...@@ -78,7 +78,9 @@ export default { ...@@ -78,7 +78,9 @@ export default {
channelType: '', channelType: '',
merchantName: '', merchantName: '',
accountStatus: '', accountStatus: '',
merchantId: '' merchantId: '',
yseUserCode: '',
ysemRefedFlag: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [{ showFormData: [{
...@@ -126,6 +128,23 @@ export default { ...@@ -126,6 +128,23 @@ export default {
isClear: true, isClear: true,
placeholder: '请输入4S店/服务商/园区店商户号', placeholder: '请输入4S店/服务商/园区店商户号',
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}, {
label: '虚账编码',
name: 'yseUserCode',
type: 'input',
maxlength: '20',
isClear: true,
placeholder: '请输入虚账编码',
keyFn: this.keyDowmGetList
}, {
label: "关联状态",
name: "ysemRefedFlag",
type: "select",
// noDataText: "请先选择订单来源",
optionList: [],
optionId: "confId",
optionLabel: "confLabel",
optionsName: "ysemRefedFlagList"
}], }],
// 表格 // 表格
getListApi: getListApi, getListApi: getListApi,
...@@ -143,8 +162,6 @@ export default { ...@@ -143,8 +162,6 @@ export default {
label: '商户分类', label: '商户分类',
prop: 'merchantType', prop: 'merchantType',
formatter: (cellValue) => { formatter: (cellValue) => {
// var item = this.baseData.merchantStoreServiceList.find(item => item.confId === cellValue.merchantType)
// return cellValue.merchantType === 7 ? '服务商' : '4S店'
var html = '' var html = ''
if (cellValue.merchantType) { if (cellValue.merchantType) {
if (cellValue.merchantType == '6' || cellValue.merchantType == '9') { if (cellValue.merchantType == '6' || cellValue.merchantType == '9') {
...@@ -170,7 +187,19 @@ export default { ...@@ -170,7 +187,19 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return this.baseData.statusList.find(item => item.confId === cellValue.accountStatus).confLabel return this.baseData.statusList.find(item => item.confId === cellValue.accountStatus).confLabel
} }
}, { },
{
label: '关联状态',
prop: 'ysemRefedFlag',
formatter: (cellValue) => {
return cellValue.ysemRefedFlag == "Y" ? '已关联' : '未关联'
}
},
{
label: '虚账编码',
prop: 'yseUserCode'
},
{
label: '最近更新时间', label: '最近更新时间',
prop: 'updatedDate', prop: 'updatedDate',
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -198,6 +227,14 @@ export default { ...@@ -198,6 +227,14 @@ export default {
2: '广汇', 2: '广汇',
8: '直营' 8: '直营'
}, },
ysemRefedFlagList: [{
confLabel: '已关联',
confId: 'Y'
},
{
confLabel: '未关联',
confId: 'N'
}],
merchantStoreServiceList: merchantStoreServiceList merchantStoreServiceList: merchantStoreServiceList
}, },
dialogConfig: { dialogConfig: {
...@@ -256,6 +293,7 @@ export default { ...@@ -256,6 +293,7 @@ export default {
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName]) this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
} }
}) })
console.log(this.showFormData, 'showFormData')
}, },
getMerchantLevel(channelType) { getMerchantLevel(channelType) {
...@@ -270,7 +308,7 @@ export default { ...@@ -270,7 +308,7 @@ export default {
// 1/4 - 待申请/失败(编辑);2 - 审核中(置灰); 3 - 生效中(详情) // 1/4 - 待申请/失败(编辑);2 - 审核中(置灰); 3 - 生效中(详情)
handleApply(cellValue) { handleApply(cellValue) {
// 查看详情 // 查看详情
if (cellValue.accountStatus === 3) { if (cellValue.accountStatus === 3 || cellValue.accountStatus === 5 || cellValue.ysemRefedFlag == 'Y') {
this.merchantRow = cellValue this.merchantRow = cellValue
this.handleDetailClose() this.handleDetailClose()
return true return true
...@@ -289,9 +327,12 @@ export default { ...@@ -289,9 +327,12 @@ export default {
channelType: '', channelType: '',
merchantName: '', merchantName: '',
accountStatus: '', accountStatus: '',
merchantId: '' merchantId: '',
yseUserCode: '',
ysemRefedFlag: ''
} }
this.merchantLevelVal = [] this.merchantLevelVal = []
this.$refs.merchantTable.resetRefreshTable()
}, },
beforeSearchFn() { beforeSearchFn() {
...@@ -299,7 +340,6 @@ export default { ...@@ -299,7 +340,6 @@ export default {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.merchantTypeList = this.searchForm.merchantType ? [this.searchForm.merchantType] : [2, 7, -1] this.searchFormSearch.merchantTypeList = this.searchForm.merchantType ? [this.searchForm.merchantType] : [2, 7, -1]
this.searchFormSearch.merchantId = this.searchForm.merchantId ? this.searchForm.merchantId : this.merchantLevelVal[this.merchantLevelVal.length - 1] this.searchFormSearch.merchantId = this.searchForm.merchantId ? this.searchForm.merchantId : this.merchantLevelVal[this.merchantLevelVal.length - 1]
delete this.searchFormSearch.merchantType delete this.searchFormSearch.merchantType
resolve() resolve()
}) })
...@@ -325,6 +365,10 @@ export default { ...@@ -325,6 +365,10 @@ export default {
</script> </script>
<style> <style>
.header {
background-color: #fff;
}
.el-cascader-panel .el-cascader-menu { .el-cascader-panel .el-cascader-menu {
width: 260px; width: 260px;
} }
......
<!-- 我的分账 -->
<template>
<d2-container class="account">
<div class="header" slot="header">
<el-tabs v-model="activeName">
<el-tab-pane label="商户管理" name="merchantManagement" />
<el-tab-pane label="虚账管理" name="virtualAccountManagement" />
</el-tabs>
</div>
<!-- <div class="d2-container-content"> -->
<accountList v-if="activeName === 'merchantManagement'" />
<virtualAccountManagement v-if="activeName === 'virtualAccountManagement'"></virtualAccountManagement>
</d2-container>
</template>
<script>
import virtualAccountManagement from './virtualAccountManagement'
import accountList from './accountList'
export default {
name: 'AccountListNewIndex',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
activeName: 'merchantManagement'
}
},
components: {
accountList,
virtualAccountManagement
},
mounted() {
// console.log(this.userInfo.detail.accountType)
// this.accountType = this.userInfo.detail.accountType
},
methods: {}
}
</script>
<style>
/* .account {
height: 100%;
} */
.account .el-tabs__header {
margin: 0;
padding: 0 20px;
}
</style>
<!-- 商户关联 -->
<template>
<d2-dialog title="商户关联" :is-visible="subordinateMerchantVisible" class="accountDailog" @closeDialog="handleClose"
width="850px" @confirmDialog="handleAddConfirm">
<div class="yseUserCode">虚账编码: {{ subShopMerchantInfo.yseUserCode }}</div>
<div class="content">
<el-form ref="editSubordinateMerchantFrom" class="editSubordinateMerchantFrom " :model="form" label-width="150px"
v-loading="$store.state.d2admin.loading.value">
<el-table :data="form.tableData" border>
<el-table-column type="index" label="序号" :index="index => index + 1" width="50" align="center" />
<el-table-column label="商户名称" width="400" align="center">
<template slot-scope="scope">
<div class="inputCol">
<el-form-item :prop="'tableData.' + scope.$index + '.merchantId'"
:rules="[{ required: true, message: '请选择商户', trigger: 'change' }]">
<el-select v-model="scope.row.merchantId" filterable remote reserve-keyword placeholder="请输入关键字"
style="width: 350px" :remote-method="remoteMethod" @change="changeOpt" :loading="loading">
<el-option v-for="(item, index) in options" :key="index" :label="item.merchantName"
:value="item.merchantId" :disabled="setDisabled(item.merchantId)">
</el-option>
</el-select>
</el-form-item>
</div>
</template>
</el-table-column>
<el-table-column label="商户号" align="center" prop="merchantId" width="138" />
<el-table-column label="商户分类" align="center" prop="merchantId" width="138">
<template slot-scope="scope">
<!-- {{ scope.row.merchantType }} -->
{{ scope.row.merchantType ? merchantClassifyList.find(item => item.confId ==
scope.row.merchantType).confLabel : '' }}
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button type="text" style="color: red;" @click="handleDelMerchant(scope.$index)">删除</el-button>
</template>
</el-table-column>
</el-table>
<div class="add-btn">
<el-button type="primary" @click="handleAddMerchant">添加一行</el-button>
</div>
</el-form>
<div class="tips">说明:关联商户完成后,生效后对应商户的分润金额将自动清分至关联的虚拟对公账户; 若商户的关联虚账发生变化,商户需重新做分账测试,请谨慎操作。</div>
<el-form ref="form" :model="form" :rules="rules" label-suffix=":" label-width="140px">
<el-form-item label="管理员手机号验证">
{{ adminInfo.name }} {{ adminInfo.phone }}
<el-button size="small" @click="handleSend" :disabled="isSend">
{{ isSend ? sendMsg + '秒后,重试' : '发送验证短信' }}
</el-button>
</el-form-item>
<el-form-item label="验证码" prop="smsCode">
<el-input placeholder="请填写验证码" v-model="form.smsCode" size="small" style="width: 220px;" />
</el-form-item>
</el-form>
</div>
</d2-dialog>
</template>
<script>
import { sendSms, getAdminInfo } from '@api/merchant'
import { listWithPageAccountStatuses, yseMerchantModifyMerchantRef } from '@api/publicAccount'
import { deepClone } from '@/common/util'
import { merchantClassifyList } from '@/common/constants'
export default {
name: 'SubordinateMerchantDialog',
data() {
return {
merchantClassifyList,
userInfo: this.$store.state.d2admin.user.info,
form: {
tableData: []
},
// tableData: [],
subShopMerchantList: [],
timeout: null,
loading: false,
options: [],
// 短信模块
isSend: false,
sendMsg: '发送验证短信',
adminInfo: {
name: '',
phone: ''
},
rules: {
smsCode: [{ required: true, message: '请输入验证码', trigger: 'blur' }]
},
isShowOkbtn: true,
num: 0
}
},
props: {
subordinateMerchantVisible: {
type: Boolean,
default: false
},
subShopMerchantInfo: {
type: Object,
default: null
}
},
watch: {
},
created() {
getAdminInfo({}).then(res => {
this.adminInfo = res
})
},
components: {},
mounted() {
if (this.subShopMerchantInfo) {
this.getInfo(this.subShopMerchantInfo)
}
},
methods: {
// 短信模块-start
handleSend() {
sendSms({}).then((res) => {
this.notice.okTips('已发送,30分钟内有效')
this.isSend = true
this.sendMsg = 60
this.msgDown()
})
},
msgDown() {
var time = setTimeout(() => {
clearTimeout(time)
if (this.sendMsg > 1) {
--this.sendMsg
this.msgDown()
} else {
this.isSend = false
}
}, 1000)
},
// 短信模块-end
getInfo(subShopMerchantInfo) {
// yseMerchantGetDetail({
// yseUserCode: yseUserCode
// }).then(res => {
// console.log(res, 'res')
this.subShopMerchantList = subShopMerchantInfo.yseMerchantRefs || []
if (this.subShopMerchantList.length > 0) {
this.form.tableData = deepClone(this.subShopMerchantList)
this.options = deepClone(this.subShopMerchantList)
}
},
handleAddConfirm() {
this.$refs.editSubordinateMerchantFrom.validate(valid => {
if (valid) {
if (!this.form.tableData.length) return this.$message.warning('请选择关联商户')
this.$refs.form.validate(valid2 => {
if (valid2) {
var params = {
smsCode: this.form.smsCode,
yseMerchantId: this.subShopMerchantInfo.id,
yseMerchantRefs: this.form.tableData
}
// params.merchantId = this.subShopMerchantInfo.merchantId
// params.merchantName = this.subShopMerchantInfo.merchantName
// // params.smsCode =
// const list = []
// let info
// this.form.tableData.forEach(item => {
// info = deepClone(item)
// info.merchantId = info.merchantId
// info.merchantName = info.merchantName
// list.push(info)
// })
// params.list = list
yseMerchantModifyMerchantRef(params).then(res => {
this.notice.okTips('操作成功')
this.handleClose(true)
})
}
})
}
})
},
handleAddMerchant() {
this.options = []
this.form.tableData.push({
// merchantName: '',
merchantId: ''
})
},
handleDelMerchant(index) {
this.form.tableData.splice(index, 1)
},
// handleSelect(item) {
// console.log(item)
// console.log(this.form.tableData);
// },
remoteMethod(queryString) {
if (queryString) {
this.loading = true
setTimeout(() => {
this.loading = false
var params = { currentPage: 1, pageSize: 1000, accountStatuses: [1, 3, 4], merchantName: queryString, ysemRefedFlag: 'N' }
listWithPageAccountStatuses(params).then(res => {
if (res.list) {
res.list = res.list.map(item => {
return {
merchantId: item.merchantId,
merchantName: item.merchantName,
merchantType: item.merchantType
}
})
}
const list = this.subShopMerchantInfo.yseMerchantRefs || []
this.options = [...list, ...res.list || []]
})
}, 200)
} else {
this.options = []
}
},
setDisabled(val) {
const info = this.form.tableData.find(item => item.merchantId == val)
if (info) {
return true
} else {
return false
}
},
changeOpt(val) {
const info = this.options.find(item => item.merchantId == val)
console.log(info)
this.form.tableData = this.form.tableData.map(item => {
if (item.merchantId == info.merchantId) {
const id = deepClone(item.id)
delete info.id
item = deepClone(info)
if (id) {
item.id = id
// return item = Object.assign(info, { id: item.id })
}
}
return item
})
console.log(this.form.tableData)
},
handleClose(flag) {
this.$emit('dialogClose', flag)
}
}
}
</script>
<style scoped lang="scss">
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.add-btn {
width: 100%;
display: flex;
margin-top: 15px;
}
.accountDailog .el-dialog {
margin-top: 20vh !important;
min-width: 1000px;
}
.accountDailog .el-select-dropdown__item {
width: 395px !important;
}
.inputCol {
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
padding: 0 20px;
line-height: 80px;
::v-deep.el-form-item__content {
margin-left: 0 !important;
}
}
.yseUserCode {
height: 40px;
background: #F6F9FF;
line-height: 40px;
padding-left: 16px;
font-family: PingFangSC-Medium;
font-weight: 500;
}
.tips {
margin: 10px 0 5px;
font-size: 12px;
color: #666666;
}
</style>
<!-- 历史虚拟操作规则 -->
<template>
<baseDialog :is-show.sync="visible" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<div class="yseUserCode">虚账编码: {{ merchantRow.yseUserCode }}</div>
<div class="account-detail" ref="accountDetail">
<div v-if="formArray && formArray.length">
<div v-for="(formItem, index) in formArray" v-resize="resetTableHeight" :ref="'resize' + index" :key="index">
<p class="edit-sub-title " :class="{ 'sub-border': !formItem.show }">
<span class="label">
<span>{{ formItem.formatEffectStartDate }}</span>
<span v-if="formItem.formatEffectStartDate"> - </span>
<span :class="{ 'labelColor': !formItem.formatEffectEndDate }">{{
formItem.formatEffectStartDate ? formItem.formatEffectEndDate ? formItem.formatEffectEndDate : '生效中' :
'待生效'
}}</span>
</span>
<span class="updatedInfo">
操作人: {{ formItem.createdBy }} 操作时间: {{ formItem.formatUpdatedDate }}
</span>
<span class="collapse" @click="collapseItem(index)">
<i :class="{ 'move': !formItem.show }" class="arrow el-icon-arrow-down" />
{{ formItem.show ? '收起' : '展开' }} </span>
</p>
<el-collapse-transition>
<d2-table v-if="formItem.show" :table-data="formItem.yseMerchantRefs" :table-params="tableDetailParams"
:has-page="false"></d2-table>
</el-collapse-transition>
</div>
</div>
<div v-else class="nothingtips">
<img style="height: 109px; width: 109px;" src="../../images/empty.png">
<p class="title">
暂无操作记录
</p>
<p class="tips">
快去设置看看~
</p>
</div>
</div>
</baseDialog>
</template>
<script>
import dayjs from 'dayjs'
import { yseMerchantListHistory } from '@api/publicAccount'
import { merchantClassifyList } from '@/common/constants'
// import viewDetail from './viewDetail'
import resize from '@/common/resize'
export default {
name: 'VirtualAccountManagementDetailDialog',
// 在vue自定义指令中添加该指令
directives: {
resize
},
components: {
// Collapse
// viewDetail
},
props: {
accountDetailVisible: {
type: Boolean,
default: false
},
// merchantId: {
// type: [String, Number],
// default: '44209883'
// },
merchantRow: {
type: Object,
default: () => { }
}
},
data() {
return {
merchantClassifyList,
formArray: [],
dialogConfig: {
setting: {
showClose: true,
appendToBody: false,
// width: '720px',
btnList: [
]
},
config: {
title: '操作记录',
width: '850px'
}
},
yseUserCode: '',
tableDetailParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
// tableOption: true,
tableColumns: [
{
label: '商户名称',
prop: 'merchantName'
}, {
label: '商户号',
prop: 'merchantId'
},
{
label: '商户分类',
prop: 'merchantType',
formatter: (cellValue) => {
return cellValue.merchantType
? merchantClassifyList.find(item => item.confId ==
cellValue.merchantType).confLabel
: ''
}
}]
}
}
},
computed: {
visible: {
get() {
return this.accountDetailVisible
},
set(newVal) {
this.$emit('dialogClose')
// this.$emit('dialogClose', { flag: newVal, attrName: 'addVisible' })
}
}
},
watch: {
accountDetailVisible(newVal) {
console.log(newVal, 'newVal')
if (newVal) {
this.yseUserCode = this.merchantRow.id
this.getDetail()
}
}
},
mounted() {
},
methods: {
collapseItem(SelectIndex) {
// return
this.formArray.forEach((element, index) => {
if (SelectIndex == index) {
element.show = !element.show
} else {
element.show = false
}
})
},
getDetail() {
yseMerchantListHistory({ yseMerchantId: this.yseUserCode }).then(res => {
// console.log(res)
// dayjs(this.summaryDate).startOf('month').format('YYYY-MM-DD')
// const timeLabele = {
// }
// let financialRulesList = res
// 财务规则有三个模式 待生效 生效中 历史
// 根据effectEndDate 和 effectStartDate
console.log(res, 'res')
// return
this.formArray = res.map((item, index) => {
const format = 'YYYY/MM/DD HH:mm'
const createdDate = item.effectStartDate || item.createdDate
// item.merchant = item?.divisionRule?.realityDivisionMerchant
// item = Object.assign(item, item.settleRule, item.divisionRule)
// 这个值强制取item里面的
item.createdDate = createdDate
item.formatEffectEndDate = item.effectEndDate ? dayjs(item.effectEndDate).format(format) : ''
item.formatEffectStartDate = item.effectStartDate ? dayjs(item.effectStartDate).format(format) : ''
// console.log('item.createdDate', item.createdDate)
item.formatUpdatedDate = dayjs(item.createdDate).format(format)
item.show = !index
return item
})
})
},
resetTableHeight() {
function getClientHeight() {
let clientHeight = 0
if (document.body.clientHeight && document.documentElement.clientHeight) {
clientHeight = (document.body.clientHeight < document.documentElement.clientHeight) ? document.body.clientHeight : document.documentElement.clientHeight
} else {
clientHeight = (document.body.clientHeight > document.documentElement.clientHeight) ? document.body.clientHeight : document.documentElement.clientHeight
}
return clientHeight
}
const windowHeight = getClientHeight() - 221
const that = this
// const list = ['resize0', 'resize1', 'resize2', 'resize3']
const listHeight = this.formArray.reduce((num, item, index) => {
// console.log(that.$refs[item])
num = num + (that.$refs[`resize${index}`][0].offsetHeight) || 0
return num
}, 0)
// console.log(listHeight)
const height = windowHeight > listHeight ? listHeight : windowHeight
// console.log(height + 'height')
this.$refs.accountDetail.style.height = height + 'px'
// console.log(this.$refs.resize0[0].offsetHeight)
},
handleDetailClose(flag = false) {
this.$emit('dialogClose', flag)
}
}
}
</script>
<style scoped lang="scss">
.account-detail {
// height: 400px;
// height: calc(100vh - 200px);
padding-right: 15px;
overflow-y: scroll;
overflow-x: hidden;
}
.edit-sub-title {
padding: 17px 0;
margin: 0;
display: flex;
justify-content: space-between;
font-size: 14px;
&::before {
top: 50%;
transform: translateY(-50%);
}
.label {
padding-left: 8px;
width: 37%;
}
.labelColor {
color: #0947c6;
}
.updatedInfo {
width: 40%;
text-align: left;
}
.collapse {
padding-right: 20px;
color: #0947c6;
cursor: pointer;
.arrow {
transition: all 1s;
}
.move {
transform: rotate(-180deg);
}
}
}
.sub-border {
animation: border-delay 1s forwards;
}
@keyframes border-delay {
0% {
/* opacity: 0; */
/* right: -100%; */
}
100% {
border-bottom: 1px solid #d8d8d8;
}
}
.account-detail .detail-img {
width: 180px;
height: 104px;
margin-right: 40px;
transition: width 0.3s;
border-radius: 4px;
overflow: hidden;
cursor: pointer;
margin-right: 100px;
}
.itemContainer {
padding: 30px 0;
background: #f4f6fc;
border-radius: 2px;
}
.imageContainer {
// style="display: inline-block;"
// max-height: 50%;
position: relative;
max-width: 50%;
box-sizing: border-box;
display: inline-block;
// display: flex;
// flex-wrap: wrap;
// justify-content: space-between;
}
.imageLabel {
line-height: 14px;
width: 137px;
// width: 50%;
text-align: center;
color: #999999;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
}
.img-btns {
display: none;
position: absolute;
width: 180px;
height: 104px;
left: 0;
top: 0;
z-index: 2;
color: #fff;
cursor: pointer;
background: rgba(0, 0, 0, 0.5);
}
.img-btns .btn-item {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.img-btns .btn-item {
display: flex;
width: 70%;
justify-content: space-around;
}
.imageContainer:hover .img-btns {
display: block;
}
.nothingtips {
// align-items: center;
text-align: center;
font-size: 16px;
padding-top: 40px;
.title {
font-size: 20px;
color: #666;
margin: 16px 0;
}
.tips {
font-size: 12px;
color: #999;
}
}
.yseUserCode {
height: 40px;
background: #F6F9FF;
line-height: 40px;
padding-left: 16px;
font-family: PingFangSC-Medium;
font-weight: 500;
}
</style>
<!-- 虚拟管理 -->
<template>
<div>
<div class="d2-container-content" style="padding: 10px 20px;">
<div class=" header" slot="header">
<d2-search ref="showSearch" :search-form="searchForm" :form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</div>
<div class="d2-container-content">
<!-- <span slot="left">
<auth-button category="Button" :show-btn-ids="['9061003']" />
</span> -->
<d2-table ref="merchantTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<template slot="yqMerchantName" slot-scope="scope">
<div v-if="scope.scope.yseMerchantRefs && scope.scope.yseMerchantRefs.length > 0">
<!-- width="200" -->
<el-popover placement="top" trigger="hover">
<div class="merchant-name-box">
<!-- <div class="title">关联门店</div> -->
<div class="merchant-item" v-for="(subItem, subIndex) in scope.scope.yseMerchantRefs" :key="subIndex">
{{ subItem.merchantName }}( {{ subItem.merchantId }})
</div>
</div>
<div slot="reference">
<img style="width: 14px;height: 13px;" src="../images/merchant_icon.png">
<span>x {{ scope.scope.yseMerchantRefs.length }}</span>
</div>
</el-popover>
</div>
<div v-else>
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ '-' }}</span>
</div>
</template>
<!-- <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> -->
<div slot="auth-button" slot-scope="scope">
<!-- <auth-button slot="auth-button" :show-btn-ids="['9061001']" :data="scope.scope" /> -->
<auth-button slot="auth-button" :show-btn-ids="['9061004', '9061005', '9061006']" :data="scope.scope" />
</div>
</d2-table>
</div>
<subordinateMerchantDialog v-if="subordinateMerchantVisible"
:subordinate-merchant-visible="subordinateMerchantVisible" :sub-shop-merchant-info="merchantRow"
@dialogClose="colseSubordinateMerchant"></subordinateMerchantDialog>
<virtualAccountManagementDetailDialog :account-detail-visible="accountDetailVisibleDialog" :merchant-row="merchantRow"
@dialogClose="accountDetailVisibleDialog = false">
</virtualAccountManagementDetailDialog>
<baseDialog :is-show.sync="accountDetailVisible" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<account-detail v-if="accountDetailVisible" :account-detail-visible="accountDetailVisible"
:merchant-row="merchantRow" />
</baseDialog>
</div>
</template>
<script>
import { Util, deepClone } from '@/common/util'
import { yseMerchantPage } from '@api/publicAccount'
import { mapActions } from 'vuex'
import { merchantClassifyList } from '@/common/constants'
import subordinateMerchantDialog from './components/subordinateMerchantDialog'
import virtualAccountManagementDetailDialog from './components/virtualAccountManagementDetailDialog'
import accountDetail from './accountDetail'
export default {
name: 'VirtualAccountManagement',
components: {
accountDetail,
subordinateMerchantDialog,
virtualAccountManagementDetailDialog
},
data() {
return {
merchantStoreServiceList: merchantClassifyList,
subordinateMerchantVisible: false,
accountDetailVisibleDialog: false,
subShopMerchantInfo: {},
subShopMerchantInfoLabelList: [{
label: '企业信息',
key: ''
}, {
label: '企业信息',
key: ''
}, {
label: '企业信息',
key: ''
}, {
label: '企业信息',
key: ''
}],
// 账户详情
accountDetailVisible: false,
// settingDetailVisible: false,
merchantRow: {},
// 搜索
searchForm: {
yseUserCode: '',
merchantName: '',
merchantIdFuzzy: ''
},
searchFormSearch: {},
showFormData: [
{
label: '虚账编码',
name: 'yseUserCode',
type: 'input',
isClear: true,
maxlength: '20',
placeholder: '请输入虚账编码',
keyFn: this.keyDowmGetList
},
{
label: '商户名称',
name: 'merchantName',
type: 'input',
maxlength: '50',
isClear: true,
placeholder: '请输入商户名称',
keyFn: this.keyDowmGetList
},
{
label: '商户号',
name: 'merchantIdFuzzy',
type: 'input',
inputType: 'number',
maxlength: '20',
isClear: true,
placeholder: '请输入商户号',
keyFn: this.keyDowmGetList
}],
// 表格
getListApi: yseMerchantPage,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: true,
tableColumns: [
{
label: '虚账编码',
prop: 'yseUserCode'
}, {
label: '关联商户数量',
prop: 'yqMerchantName',
type: 'slot',
addHtml: 'yqMerchantName',
width: 140
},
{
label: '创建时间',
prop: 'openedTime',
formatter: (cellValue) => {
return Util.dateFormate(cellValue.openedTime, 'YYYY-MM-DD HH:mm:ss')
}
}]
},
tableDetailParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
// tableOption: true,
tableColumns: [
{
label: '商户名称',
prop: 'merchantName'
}, {
label: '商户号',
prop: 'merchantId'
},
{
label: '商户分类',
prop: 'merchantType',
formatter: (cellValue) => {
return cellValue.merchantType
? merchantStoreServiceList.find(item => item.confId ==
cellValue.merchantType).confLabel
: ''
}
}]
},
baseData: {
},
dialogConfig: {
setting: {
showClose: true,
appendToBody: false,
// width: '720px',
btnList: [
]
},
config: {
title: '账户详情',
width: '720px'
}
}
}
},
mounted() {
this.getBaseData()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
handleOperationRecords(row) {
this.merchantRow = row
this.accountDetailVisibleDialog = true
},
handleDetail(row) {
this.merchantRow = row
this.merchantRow.merchantId = row.id
this.accountDetailVisible = true
// yseMerchantGetDetail({ merchantId: row.id }).then(res => {
// console.log(res, 'res')
// this.subShopMerchantInfo = res
// }).catch((err) => {
// console.log(err)
// })
},
// 关闭下级商户配置弹窗
colseSubordinateMerchant(flag) {
this.subordinateMerchantVisible = !this.subordinateMerchantVisible
flag && this.$refs.merchantTable.refreshTable()
},
// associationSettings() {
// this.settingDetailVisible = true
// },
async getBaseData() {
// this.baseData.channelTypeList = await this.get(BaseData.channelType)
this.getOptionsList()
},
handleCustomerAssociation(row) {
console.log(row, 'row')
this.merchantRow = row
this.subordinateMerchantVisible = true
},
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])
}
})
},
handleReset() {
this.searchForm = {
yseUserCode: '',
merchantName: '',
merchantIdFuzzy: ''
}
this.$refs.merchantTable.resetRefreshTable()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
resolve()
})
},
keyDowmGetList() {
this.$refs.merchantTable.refreshTable()
},
handleDetailClose() {
// console.log('visible')
this.accountDetailVisible = !this.accountDetailVisible
}
}
}
</script>
<style>
.header {
background-color: #fff;
}
.el-cascader-panel .el-cascader-menu {
width: 260px;
}
</style>
<!-- 质保卡 --> <!-- 质保卡 -->
<template> <template>
<d2-dialog title="下级商户设置" <d2-dialog title="下级商户设置" :is-visible="subordinateMerchantVisible" class="accountDailog" @closeDialog="handleClose"
:is-visible="subordinateMerchantVisible" width="800px" @confirmDialog="handleAddConfirm">
class="accountDailog"
@closeDialog="handleClose"
width="800px"
@confirmDialog="handleAddConfirm">
<div class="container"> <div class="container">
<el-form ref="editSubordinateMerchantFrom" <el-form ref="editSubordinateMerchantFrom" class="editSubordinateMerchantFrom d2-container-content" :model="form"
class="editSubordinateMerchantFrom d2-container-content" label-width="150px" v-loading="$store.state.d2admin.loading.value">
:model="form" <el-table :data="form.tableData" border>
label-width="150px" <el-table-column type="index" label="序号" :index="index => index + 1" width="50" align="center" />
v-loading="$store.state.d2admin.loading.value"> <el-table-column label="商户名称" width="400" align="center">
<el-table :data="form.tableData"
border>
<el-table-column type="index"
label="序号"
:index="index => index + 1"
width="50"
align="center" />
<el-table-column label="商户名称"
width="400"
align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="inputCol"> <div class="inputCol">
<el-form-item :prop="'tableData.'+scope.$index+'.merchantNo'" <el-form-item :prop="'tableData.' + scope.$index + '.merchantNo'"
:rules="[{ required: true, message: '请选择二级流量方', trigger: 'change' }]"> :rules="[{ required: true, message: '请选择二级流量方', trigger: 'change' }]">
<!-- <el-autocomplete style="width: 350px;" <!-- <el-autocomplete style="width: 350px;"
v-model="scope.row.merchantName" v-model="scope.row.merchantName"
:fetch-suggestions="querySearchAsync" :fetch-suggestions="querySearchAsync"
placeholder="请选择二级流量方" placeholder="请选择二级流量方"
@select="handleSelect"></el-autocomplete> --> @select="handleSelect"></el-autocomplete> -->
<el-select v-model="scope.row.merchantNo" <el-select v-model="scope.row.merchantNo" filterable remote reserve-keyword placeholder="请输入关键字"
filterable style="width: 350px" :remote-method="remoteMethod" @change="changeOpt" :loading="loading">
remote <el-option v-for="(item, index) in options" :key="index" :label="item.merchantName"
reserve-keyword :value="item.merchantNo" :disabled="setDisabled(item.merchantNo)">
placeholder="请输入关键字"
style="width: 350px"
:remote-method="remoteMethod"
@change="changeOpt"
:loading="loading">
<el-option v-for="(item,index) in options"
:key="index"
:label="item.merchantName"
:value="item.merchantNo"
:disabled="setDisabled(item.merchantNo)">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="商户号" <el-table-column label="商户号" align="center" prop="merchantNo" width="140" />
align="center" <el-table-column label="操作" align="center" width="100">
prop="merchantNo"
width="140" />
<el-table-column label="操作"
align="center"
width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" <el-button type="text" style="color: red;" @click="handleDelMerchant(scope.$index)">删除</el-button>
style="color: red;"
@click="handleDelMerchant(scope.$index)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="add-btn"> <div class="add-btn">
<el-button type="primary" <el-button type="primary" @click="handleAddMerchant">添加新的一行</el-button>
@click="handleAddMerchant">添加新的一行</el-button>
</div> </div>
</el-form> </el-form>
</div> </div>
...@@ -89,7 +57,7 @@ export default { ...@@ -89,7 +57,7 @@ export default {
subShopMerchantList: [], subShopMerchantList: [],
timeout: null, timeout: null,
loading: false, loading: false,
options: [], options: []
} }
}, },
...@@ -127,7 +95,7 @@ export default { ...@@ -127,7 +95,7 @@ export default {
if (this.subShopMerchantList.length > 0) { if (this.subShopMerchantList.length > 0) {
this.form.tableData = deepClone(this.subShopMerchantList) this.form.tableData = deepClone(this.subShopMerchantList)
this.form.tableData = this.form.tableData.map(item => { this.form.tableData = this.form.tableData.map(item => {
let item_new = { const item_new = {
id: item.id, id: item.id,
merchantName: item.subMerchantName, merchantName: item.subMerchantName,
merchantNo: item.subMerchantId merchantNo: item.subMerchantId
...@@ -145,7 +113,7 @@ export default { ...@@ -145,7 +113,7 @@ export default {
var params = {} var params = {}
params.merchantId = this.subShopMerchantInfo.merchantId params.merchantId = this.subShopMerchantInfo.merchantId
params.merchantName = this.subShopMerchantInfo.merchantName params.merchantName = this.subShopMerchantInfo.merchantName
let list = [] const list = []
let info let info
this.form.tableData.forEach(item => { this.form.tableData.forEach(item => {
// info = {} // info = {}
...@@ -173,7 +141,7 @@ export default { ...@@ -173,7 +141,7 @@ export default {
}, },
handleAddMerchant() { handleAddMerchant() {
this.options = []; this.options = []
this.form.tableData.push({ this.form.tableData.push({
// merchantName: '', // merchantName: '',
merchantNo: '' merchantNo: ''
...@@ -210,21 +178,21 @@ export default { ...@@ -210,21 +178,21 @@ export default {
remoteMethod(queryString) { remoteMethod(queryString) {
if (queryString) { if (queryString) {
this.loading = true; this.loading = true
setTimeout(() => { setTimeout(() => {
this.loading = false; this.loading = false
var params = { currentPage: 1, pageSize: 1000, merchantIdName: queryString } var params = { currentPage: 1, pageSize: 1000, merchantIdName: queryString }
serviceGetMerchantList(params).then(res => { serviceGetMerchantList(params).then(res => {
this.options = res.list || [] this.options = res.list || []
}) })
}, 200); }, 200)
} else { } else {
this.options = []; this.options = []
} }
}, },
setDisabled(val) { setDisabled(val) {
let info = this.form.tableData.find(item => item.merchantNo == val) const info = this.form.tableData.find(item => item.merchantNo == val)
if (info) { if (info) {
return true return true
} else { } else {
...@@ -233,11 +201,11 @@ export default { ...@@ -233,11 +201,11 @@ export default {
}, },
changeOpt(val) { changeOpt(val) {
let info = this.options.find(item => item.merchantNo == val) const info = this.options.find(item => item.merchantNo == val)
console.log(info); console.log(info)
this.form.tableData = this.form.tableData.map(item => { this.form.tableData = this.form.tableData.map(item => {
if (item.merchantNo == info.merchantNo) { if (item.merchantNo == info.merchantNo) {
let id = deepClone(item.id) const id = deepClone(item.id)
delete info.id delete info.id
item = deepClone(info) item = deepClone(info)
if (id) { if (id) {
...@@ -246,9 +214,8 @@ export default { ...@@ -246,9 +214,8 @@ export default {
} }
} }
return item return item
}) })
console.log(this.form.tableData); console.log(this.form.tableData)
}, },
handleClose(flag) { handleClose(flag) {
...@@ -264,18 +231,22 @@ export default { ...@@ -264,18 +231,22 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.add-btn { .add-btn {
width: 100%; width: 100%;
display: flex; display: flex;
margin-top: 15px; margin-top: 15px;
} }
.accountDailog .el-dialog { .accountDailog .el-dialog {
margin-top: 20vh !important; margin-top: 20vh !important;
min-width: 1000px; min-width: 1000px;
} }
.accountDailog .el-select-dropdown__item { .accountDailog .el-select-dropdown__item {
width: 395px !important; width: 395px !important;
} }
.inputCol { .inputCol {
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
...@@ -283,14 +254,17 @@ export default { ...@@ -283,14 +254,17 @@ export default {
justify-content: center; justify-content: center;
padding: 0 20px; padding: 0 20px;
line-height: 80px; line-height: 80px;
::v-deep.el-form-item__content { ::v-deep.el-form-item__content {
margin-left: 0 !important; margin-left: 0 !important;
} }
/* height: 70px; /* height: 70px;
*/ */
/* padding: 0 40px; */ /* padding: 0 40px; */
/* */ /* */
} }
// .formItemCla { // .formItemCla {
// margin-left: 0px !important; // margin-left: 0px !important;
// } // }
......
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
<el-form-item label="商品成本:" prop="goodsCost" required> <el-form-item label="商品成本:" prop="goodsCost" required>
<el-input v-model="form.goodsCost" @input="handleInput($event, 'goodsCost')" /> <el-input v-model="form.goodsCost" @input="handleInput($event, 'goodsCost')" />
</el-form-item> </el-form-item>
<el-form-item label="虚拟对账成本:" label-width="120px" prop="virtualAccountCost" required> <el-form-item label="虚拟对账成本:" label-width="120px" prop="virtualAccountCost">
<el-input v-model="form.virtualAccountCost" @input="handleInput($event, 'virtualAccountCost')" /> <el-input v-model="form.virtualAccountCost" @input="handleInput($event, 'virtualAccountCost')" />
</el-form-item> </el-form-item>
<el-form-item label="回收成本:" prop="recoveryCost" required> <el-form-item label="回收成本:" prop="recoveryCost">
<el-input v-model="form.recoveryCost" @input="handleInput($event, 'recoveryCost')" /> <el-input v-model="form.recoveryCost" @input="handleInput($event, 'recoveryCost')" />
</el-form-item> </el-form-item>
<!-- prop="goodsCost" @input="handleInput($event,'goodsCost')"--> <!-- prop="goodsCost" @input="handleInput($event,'goodsCost')"-->
...@@ -147,8 +147,8 @@ export default { ...@@ -147,8 +147,8 @@ export default {
}, },
rules: { rules: {
totalPrice: [{ required: true, message: '请输入商品价格', trigger: ['change', 'blur'] }], totalPrice: [{ required: true, message: '请输入商品价格', trigger: ['change', 'blur'] }],
virtualAccountCost: [{ required: true, message: '请输虚拟对账成本', trigger: ['change', 'blur'] }], // virtualAccountCost: [{ required: true, message: '请输虚拟对账成本', trigger: ['change', 'blur'] }]
recoveryCost: [{ required: true, message: '请输回收成本', trigger: ['change', 'blur'] }], // recoveryCost: [{ required: true, message: '请输回收成本', trigger: ['change', 'blur'] }],
goodsCost: [{ required: true, message: '请输入商品成本', trigger: ['change', 'blur'] }, goodsCost: [{ required: true, message: '请输入商品成本', trigger: ['change', 'blur'] },
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
......
<!-- 历史财务规则 --> <!-- 历史财务规则 -->
<template> <template>
<div class="account-detail" <div class="account-detail" ref="accountDetail">
ref="accountDetail">
<!-- v-resize="resetTableHeight" <!-- v-resize="resetTableHeight"
:ref="'resize' + index" --> :ref="'resize' + index" -->
<div v-if="formArray&&formArray.length"> <div v-if="formArray && formArray.length">
<div v-for="(formItem,index) in formArray" <div v-for="(formItem, index) in formArray" v-resize="resetTableHeight" :ref="'resize' + index" :key="index">
v-resize="resetTableHeight" <p class="edit-sub-title " :class="{ 'sub-border': !formItem.show }">
:ref="'resize' + index"
:key="index">
<p class="edit-sub-title "
:class="{'sub-border':!formItem.show}">
<span class="label"> <span class="label">
<span>{{ formItem.formatEffectStartDate }}</span> <span>{{ formItem.formatEffectStartDate }}</span>
<span v-if="formItem.formatEffectStartDate"> - </span> <span v-if="formItem.formatEffectStartDate"> - </span>
<span <span :class="{ 'labelColor': !formItem.formatEffectEndDate }">{{
:class="{'labelColor':!formItem.formatEffectEndDate}">{{ formItem.formatEffectStartDate?formItem.formatEffectEndDate?formItem.formatEffectEndDate:'生效中':'待生效' }}</span> formItem.formatEffectStartDate ? formItem.formatEffectEndDate ? formItem.formatEffectEndDate : '生效中' : '待生效'
}}</span>
</span> </span>
<span class="updatedInfo"> <span class="updatedInfo">
操作人: {{ formItem.updatedBy }} 操作时间: {{ formItem.formatUpdatedDate }} 操作人: {{ formItem.updatedBy }} 操作时间: {{ formItem.formatUpdatedDate }}
</span> </span>
<span class="collapse" <span class="collapse" @click="collapseItem(index)">
@click="collapseItem(index)"> <i :class="{ 'move': !formItem.show }" class="arrow el-icon-arrow-down" />
<i :class="{'move':!formItem.show}" {{ formItem.show ? '收起' : '展开' }} </span>
class="arrow el-icon-arrow-down" />
{{ formItem.show?'收起':'展开' }} </span>
</p> </p>
<el-collapse-transition> <el-collapse-transition>
<viewDetail :is-get-detail="false" <viewDetail :is-get-detail="false" v-if="formItem.show" :merchant-info="formItem"
v-if="formItem.show"
:merchant-info="formItem"
:view-detail-visible="formItem.show" /> :view-detail-visible="formItem.show" />
</el-collapse-transition> </el-collapse-transition>
</div> </div>
</div> </div>
<div v-else <div v-else class="nothingtips">
class="nothingtips"> <img style="height: 109px; width: 109px;" src="./images/empty.png">
<img style="height: 109px; width: 109px;"
src="./images/empty.png">
<p class="title"> <p class="title">
暂无财务规则 暂无财务规则
</p> </p>
...@@ -176,12 +166,14 @@ export default { ...@@ -176,12 +166,14 @@ export default {
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
} }
.edit-sub-title { .edit-sub-title {
padding: 17px 0; padding: 17px 0;
margin: 0; margin: 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 14px; font-size: 14px;
&::before { &::before {
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
...@@ -191,37 +183,46 @@ export default { ...@@ -191,37 +183,46 @@ export default {
padding-left: 8px; padding-left: 8px;
width: 37%; width: 37%;
} }
.labelColor { .labelColor {
color: #0947c6; color: #0947c6;
} }
.updatedInfo { .updatedInfo {
width: 40%; width: 40%;
text-align: left; text-align: left;
} }
.collapse { .collapse {
padding-right: 20px; padding-right: 20px;
color: #0947c6; color: #0947c6;
cursor: pointer; cursor: pointer;
.arrow { .arrow {
transition: all 1s; transition: all 1s;
} }
.move { .move {
transform: rotate(-180deg); transform: rotate(-180deg);
} }
} }
} }
.sub-border { .sub-border {
animation: border-delay 1s forwards; animation: border-delay 1s forwards;
} }
@keyframes border-delay { @keyframes border-delay {
0% { 0% {
/* opacity: 0; */ /* opacity: 0; */
/* right: -100%; */ /* right: -100%; */
} }
100% { 100% {
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
} }
} }
.account-detail .detail-img { .account-detail .detail-img {
width: 180px; width: 180px;
height: 104px; height: 104px;
...@@ -232,6 +233,7 @@ export default { ...@@ -232,6 +233,7 @@ export default {
cursor: pointer; cursor: pointer;
margin-right: 100px; margin-right: 100px;
} }
// .account-detail .detail-img:hover { // .account-detail .detail-img:hover {
// margin-right: 0px; // margin-right: 0px;
// width: 90%; // width: 90%;
...@@ -245,6 +247,7 @@ export default { ...@@ -245,6 +247,7 @@ export default {
background: #f4f6fc; background: #f4f6fc;
border-radius: 2px; border-radius: 2px;
} }
.imageContainer { .imageContainer {
// style="display: inline-block;" // style="display: inline-block;"
// max-height: 50%; // max-height: 50%;
...@@ -257,6 +260,7 @@ export default { ...@@ -257,6 +260,7 @@ export default {
// justify-content: space-between; // justify-content: space-between;
} }
.imageLabel { .imageLabel {
line-height: 14px; line-height: 14px;
width: 137px; width: 137px;
...@@ -266,6 +270,7 @@ export default { ...@@ -266,6 +270,7 @@ export default {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
} }
.img-btns { .img-btns {
display: none; display: none;
position: absolute; position: absolute;
...@@ -278,6 +283,7 @@ export default { ...@@ -278,6 +283,7 @@ export default {
cursor: pointer; cursor: pointer;
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
} }
.img-btns .btn-item { .img-btns .btn-item {
position: absolute; position: absolute;
top: 50%; top: 50%;
...@@ -294,6 +300,7 @@ export default { ...@@ -294,6 +300,7 @@ export default {
.imageContainer:hover .img-btns { .imageContainer:hover .img-btns {
display: block; display: block;
} }
/* .transition-box { /* .transition-box {
margin-bottom: 10px; margin-bottom: 10px;
width: 200px; width: 200px;
...@@ -311,38 +318,44 @@ export default { ...@@ -311,38 +318,44 @@ export default {
cursor: pointer; cursor: pointer;
// /* 鼠标样式*/ // /* 鼠标样式*/
} }
.link:link { .link:link {
color: #06f; color: #06f;
text-decoration: none; text-decoration: none;
// /* 未访问的链接 */ // /* 未访问的链接 */
} }
.link:visited { .link:visited {
color: #999; color: #999;
text-decoration: line-through; text-decoration: line-through;
// /* 已访问的链接 */ // /* 已访问的链接 */
} }
.link:hover { .link:hover {
color: #f00; color: #f00;
//* 鼠标移动到链接上 */ //* 鼠标移动到链接上 */
text-decoration: underline; text-decoration: underline;
} }
.link:active { .link:active {
// /* 选定的链接 */ // /* 选定的链接 */
color: #f0f; color: #f0f;
} }
.nothingtips { .nothingtips {
// align-items: center; // align-items: center;
text-align: center; text-align: center;
font-size: 16px; font-size: 16px;
padding-top: 40px; padding-top: 40px;
.title { .title {
font-size: 20px; font-size: 20px;
color: #666; color: #666;
margin: 16px 0; margin: 16px 0;
} }
.tips { .tips {
font-size: 12px; font-size: 12px;
color: #999; color: #999;
} }
} }</style>
</style>
...@@ -130,13 +130,14 @@ ...@@ -130,13 +130,14 @@
<!-- <span v-else>该园区店关联的服务商为:{{ <!-- <span v-else>该园区店关联的服务商为:{{
relateMerchantObjShow relateMerchantObjShow
}}</span> --> }}</span> -->
<span v-else> <span v-else-if="storeSearchForm.yqMerchantId && relateMerchantObjShow">
<el-tooltip :content="relateMerchantObjShow" <el-tooltip :content="relateMerchantObjShow"
popper-class="merchantTooltip" popper-class="merchantTooltip"
placement="right-start"> placement="right-start">
<el-button type="info">显示该园区店关联的服务商</el-button> <el-button type="info">显示该园区店关联的服务商</el-button>
</el-tooltip> </el-tooltip>
</span> </span>
<span v-else><el-button type="info">显示该园区店关联的服务商</el-button></span>
</p> </p>
</el-col> </el-col>
<el-form-item label="选择渠道:"> <el-form-item label="选择渠道:">
......
...@@ -26,6 +26,16 @@ ...@@ -26,6 +26,16 @@
:value="subItem.shippingEntityId" /> :value="subItem.shippingEntityId" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="库存管理模式:"
prop="stockManagementMode">
<el-radio-group size="mini"
v-model="detailInfo.stockManagementMode">
<el-radio v-for="(subItem, subIdx) in stockManagementModeList"
:key="subIdx"
:label="subItem.confId">{{
subItem.confName }}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="下级服务商:"> <el-form-item label="下级服务商:">
<div v-for="(item, index) in detailInfo.subMerchantList" <div v-for="(item, index) in detailInfo.subMerchantList"
:key="index"> :key="index">
...@@ -74,7 +84,7 @@ ...@@ -74,7 +84,7 @@
</template> </template>
<script> <script>
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { procureModeList } from "@/common/constants" import { procureModeList, stockManagementModeList } from "@/common/constants"
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { getProviderProcurementInfo, updateProviderProcurementInfo, getShippingEntityInfoAll, searchServiceMerchant } from "@api/serviceManage" import { getProviderProcurementInfo, updateProviderProcurementInfo, getShippingEntityInfoAll, searchServiceMerchant } from "@api/serviceManage"
export default { export default {
...@@ -82,14 +92,17 @@ export default { ...@@ -82,14 +92,17 @@ export default {
data() { data() {
return { return {
procureModeList, procureModeList,
stockManagementModeList,
rules: { rules: {
// procurementType: [{ required: true, message: '请选择采购模式', trigger: 'change' }], // procurementType: [{ required: true, message: '请选择采购模式', trigger: 'change' }],
shippingEntityId: [{ required: true, message: '请选择发货主体', trigger: 'change' }] shippingEntityId: [{ required: true, message: '请选择发货主体', trigger: 'change' }],
stockManagementMode: [{ required: true, message: '请选择库存管理模式', trigger: 'change' }]
}, },
detailInfo: { detailInfo: {
procurementType: '', procurementType: '',
shippingEntityId: '', shippingEntityId: '',
subMerchantList: [] subMerchantList: [],
stockManagementMode: 2
}, },
shippingEntityList: [], shippingEntityList: [],
serviceMerchantId: '', serviceMerchantId: '',
...@@ -114,6 +127,7 @@ export default { ...@@ -114,6 +127,7 @@ export default {
getInfo() { getInfo() {
getProviderProcurementInfo({ merchantId: this.serviceMerchantId }).then(res => { getProviderProcurementInfo({ merchantId: this.serviceMerchantId }).then(res => {
this.detailInfo = deepClone(res) || this.detailInfo this.detailInfo = deepClone(res) || this.detailInfo
this.detailInfo.stockManagementMode = this.detailInfo.stockManagementMode || 2
if (this.detailInfo.subMerchantList && this.detailInfo.subMerchantList.length > 0) { if (this.detailInfo.subMerchantList && this.detailInfo.subMerchantList.length > 0) {
this.detailInfo.subMerchantList = this.detailInfo.subMerchantList.map(item => { this.detailInfo.subMerchantList = this.detailInfo.subMerchantList.map(item => {
const item_new = { const item_new = {
...@@ -157,7 +171,8 @@ export default { ...@@ -157,7 +171,8 @@ export default {
partnerMerchantId: this.serviceMerchantId, partnerMerchantId: this.serviceMerchantId,
procurementType: this.detailInfo.procurementType, procurementType: this.detailInfo.procurementType,
shippingEntity: this.shippingEntityList.filter(val => val.shippingEntityId == this.detailInfo.shippingEntityId)[0]?.shippingEntity || '', shippingEntity: this.shippingEntityList.filter(val => val.shippingEntityId == this.detailInfo.shippingEntityId)[0]?.shippingEntity || '',
shippingEntityId: this.detailInfo.shippingEntityId shippingEntityId: this.detailInfo.shippingEntityId,
stockManagementMode: this.detailInfo.stockManagementMode
} }
if (this.detailInfo.subMerchantList && this.detailInfo.subMerchantList.length > 0) { if (this.detailInfo.subMerchantList && this.detailInfo.subMerchantList.length > 0) {
let _subMerchantList = deepClone(this.detailInfo.subMerchantList) let _subMerchantList = deepClone(this.detailInfo.subMerchantList)
......
...@@ -84,6 +84,13 @@ export default { ...@@ -84,6 +84,13 @@ export default {
return cellValue?.shippingEntity || '-' return cellValue?.shippingEntity || '-'
} }
}, { }, {
label: '库存管理模式',
prop: 'stockManagementMode',
width: 150,
formatter: (cellValue) => {
return cellValue?.stockManagementMode == 1 ? '使用膜卷号' : '不使用膜卷号'
}
}, {
label: '下级园区店', label: '下级园区店',
prop: '', prop: '',
html: true, html: true,
......
...@@ -62,7 +62,7 @@ import { Util, deepClone } from '@/common/util' ...@@ -62,7 +62,7 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getReportByGoods } from '@api/rightsAndInterestsManage' import { getReportByGoods } from '@api/rightsAndInterestsManage'
import { rangePickerOptions_year_2023 } from '@/common/format' import { rangePickerOptions_year_2023 } from '@/common/format'
import { membraneTypeList } from '@/common/constants.js' import { baseConfig } from '@/main'
export default { export default {
name: 'StockMonthDialog', name: 'StockMonthDialog',
components: { components: {
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: membraneTypeList, membraneTypeList: baseConfig.membraneTypeList,
pickerOption: rangePickerOptions_year_2023, pickerOption: rangePickerOptions_year_2023,
countObj: {}, countObj: {},
searchForm: { searchForm: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!