Commit 7934fb92 by 前端

Merge branch 'SAAS+V4.51.1-0415' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.51.1-0415
2 parents c833c461 3e7d6a57
Showing 30 changed files with 482 additions and 166 deletions
...@@ -26,7 +26,7 @@ const request = ( ...@@ -26,7 +26,7 @@ const request = (
} else if (params.method.includes("dj.api.script")) { } else if (params.method.includes("dj.api.script")) {
apiName = "script" apiName = "script"
} else { } else {
console.log(params.method.split(".api")) // console.log(params.method.split(".api"))
apiName = params.method.split(".api")[0] apiName = params.method.split(".api")[0]
} }
......
...@@ -328,7 +328,12 @@ $prefix: d2; ...@@ -328,7 +328,12 @@ $prefix: d2;
.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow { .el-tooltip__popper.is-light[x-placement^=top] .popper__arrow {
border-color: #e4e7ed !important; border-color: #e4e7ed !important;
} }
.el-tooltip__popper.is-dark {
white-space:wrap;
width:400px;
height:auto;
padding: 8px 10px;
}
.el-textarea { .el-textarea {
.el-input__count { .el-input__count {
right: -55px; right: -55px;
......
...@@ -1174,7 +1174,7 @@ export const teaching_storeTypeOpt = [ ...@@ -1174,7 +1174,7 @@ export const teaching_storeTypeOpt = [
// 话术业务场景 // 话术业务场景
export const channelTypeList = [ export const channelTypeList = [
{ confId: 1, confValue: "企业微信" }, { confId: 1, confValue: "企业微信" },
{ confId: 2, confValue: "展业app" } { confId: 2, confValue: "展业助手" }
] ]
// 预警管理 所属业务 // 预警管理 所属业务
......
...@@ -116,7 +116,6 @@ export default { ...@@ -116,7 +116,6 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(baseConfig, 'baseConfig---')
if (this.provinceView) { if (this.provinceView) {
this.provinceList() this.provinceList()
} }
...@@ -148,7 +147,6 @@ export default { ...@@ -148,7 +147,6 @@ export default {
**/ **/
// 获取省市信息 // 获取省市信息
provinceList() { provinceList() {
console.log('??????????????000000000000000')
var params = { var params = {
keyword: '中国', keyword: '中国',
extensions_code: 1 extensions_code: 1
...@@ -267,14 +265,15 @@ export default { ...@@ -267,14 +265,15 @@ export default {
this.provinceForm.lng = lnglat.lng.toFixed(4) this.provinceForm.lng = lnglat.lng.toFixed(4)
var mapData = this.$refs.mapForm.geocoderAddress var mapData = this.$refs.mapForm.geocoderAddress
// 赋值省市区名称和code // 赋值省市区名称和code
console.log(this.$refs.mapForm, '\\\\\\') console.log(mapData, '\\\\\\')
const { city, city_code, province, district, town_code } = mapData const { city, adcode, province, district, town_code } = mapData
console.log(adcode, 'adcode')
if (!this.provinceForm.provinceName) { if (!this.provinceForm.provinceName) {
this.provinceForm.provinceName = province this.provinceForm.provinceName = province
this.provinceForm.cityName = city this.provinceForm.cityName = city
this.provinceForm.townName = district this.provinceForm.townName = district
this.provinceForm.provinceCode = mapData.adcode this.provinceForm.provinceCode = +((adcode + '').slice(0,3) + '000')
this.provinceForm.cityCode = city_code this.provinceForm.cityCode = adcode
this.provinceForm.townCode = town_code this.provinceForm.townCode = town_code
} }
var fullAddress = '' var fullAddress = ''
...@@ -300,13 +299,13 @@ export default { ...@@ -300,13 +299,13 @@ export default {
const municipalities = ['北京市', '天津市', '上海市', '重庆市'] const municipalities = ['北京市', '天津市', '上海市', '重庆市']
var municipality = municipalities.find(item => item == provincename) var municipality = municipalities.find(item => item == provincename)
if (municipality) { if (municipality) {
cityname = cityname.slice(0, 2) + '城区' cityname = cityname.slice(0, 2) + '市'
if (municipality === '重庆市') { // if (municipality === '重庆市') {
provincecode = provincecode.slice(0, 4) // provincecode = provincecode.slice(0, 4)
provincecode == 5001 ? (cityname = cityname.slice(0, 2) + '城区') : (cityname = cityname.slice(0, 2) + '郊县') // provincecode == 5001 ? (cityname = cityname.slice(0, 2) + '城区') : (cityname = cityname.slice(0, 2) + '郊县')
// 重新赋值城市名 // // 重新赋值城市名
this.provinceForm.cityName = cityname // this.provinceForm.cityName = cityname
} // }
} }
// 判断省市是否匹配 // 判断省市是否匹配
// 如果只展示省市 // 如果只展示省市
......
...@@ -7,7 +7,7 @@ const chaining = { ...@@ -7,7 +7,7 @@ const chaining = {
const name = rest[key] const name = rest[key]
tmp = tmp?.[name] tmp = tmp?.[name]
} }
return tmp || "" return [null, undefined, ""].includes(tmp) ? "" : tmp
} }
// const test = (obj, ...rest) => { // const test = (obj, ...rest) => {
// let tmp = obj // let tmp = obj
......
...@@ -928,7 +928,7 @@ export const routerName = { ...@@ -928,7 +928,7 @@ export const routerName = {
title: "详情", title: "详情",
authId: "912180101", authId: "912180101",
parentId: "91218", parentId: "91218",
activePath: "/inSceneConfigView" activePath: "/sceneClueManagement"
}, },
component: _import("residentManage/sceneClueManagement/detailView") component: _import("residentManage/sceneClueManagement/detailView")
}, },
......
...@@ -135,17 +135,25 @@ ...@@ -135,17 +135,25 @@
>添加{{ getEmpType.btn }}</el-button >添加{{ getEmpType.btn }}</el-button
> >
<div <div
v-loading="customerLoading"
class="emp-table-box" class="emp-table-box"
v-if=" v-if="
[2, 3].includes(formData.selectStaffType) && [2, 3].includes(formData.selectStaffType) &&
empTableData.length empTableData.length
" "
> >
<el-table :data="empTableData" style="width: 100%"> <el-table border :data="empTableData" style="width: 100%">
<el-table-column type="index" width="50"> </el-table-column> <el-table-column
type="index"
align="center"
width="50"
label="序号"
>
</el-table-column>
<el-table-column <el-table-column
prop="merchantName" prop="merchantName"
label="门店名称" label="门店名称"
align="center"
v-if="formData.selectStaffType == 2" v-if="formData.selectStaffType == 2"
> >
</el-table-column> </el-table-column>
...@@ -153,15 +161,22 @@ ...@@ -153,15 +161,22 @@
prop="merchantId" prop="merchantId"
v-if="formData.selectStaffType == 2" v-if="formData.selectStaffType == 2"
label="门店号" label="门店号"
align="center"
width="100" width="100"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="label" prop="label"
v-if="formData.selectStaffType == 3" v-if="formData.selectStaffType == 3"
label="品牌名称" label="品牌名称"
align="center"
> >
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="120"> <el-table-column
align="center"
fixed="right"
label="操作"
width="120"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@click.native.prevent=" @click.native.prevent="
...@@ -177,6 +192,7 @@ ...@@ -177,6 +192,7 @@
</el-table> </el-table>
</div> </div>
<div <div
v-loading="customerLoading"
v-show=" v-show="
formData.customerDataList.length != 0 && formData.customerDataList.length != 0 &&
formData.customerDataList.some( formData.customerDataList.some(
...@@ -393,13 +409,13 @@ export default { ...@@ -393,13 +409,13 @@ export default {
componentName: "selectTag" componentName: "selectTag"
}, },
{ {
label: "指令门店", label: "指定门店",
type: 2, type: 2,
btn: "门店", btn: "门店",
componentName: "merchantDialog" componentName: "merchantDialog"
}, },
{ {
label: "指令品牌", label: "指定品牌",
type: 3, type: 3,
btn: "品牌", btn: "品牌",
componentName: "brandDialog" componentName: "brandDialog"
...@@ -502,6 +518,9 @@ export default { ...@@ -502,6 +518,9 @@ export default {
sendType: [ sendType: [
{ required: true, message: "请选择群发方式", trigger: "change" } { required: true, message: "请选择群发方式", trigger: "change" }
], ],
selectStaffType: [
{ required: true, message: "请选择员工对象", trigger: "change" }
],
// coverImgUrl: { // coverImgUrl: {
// required: true, // required: true,
// validator: (rule, value, callback) => { // validator: (rule, value, callback) => {
...@@ -596,6 +615,7 @@ export default { ...@@ -596,6 +615,7 @@ export default {
this.empTableData = [] this.empTableData = []
this.estimatedNumberOfPeople = 0 this.estimatedNumberOfPeople = 0
this.formData.customerDataList = [] this.formData.customerDataList = []
this.storeSearchForm.staffNameOrPhone = ""
}, },
"formData.sendTime"(selectTime) { "formData.sendTime"(selectTime) {
const selectedDate = new Date(selectTime) const selectedDate = new Date(selectTime)
...@@ -969,6 +989,9 @@ export default { ...@@ -969,6 +989,9 @@ export default {
if (this.uploading) { if (this.uploading) {
return this.$message.error(`文件上传中,请耐心等待文件上传完成`) return this.$message.error(`文件上传中,请耐心等待文件上传完成`)
} }
if (!this.estimatedNumberOfPeople && this.formData.selectStaffType != 4) {
return this.$message.error(`请添加发送员工`)
}
this.$refs.ruleForm.validate((valid) => { this.$refs.ruleForm.validate((valid) => {
this.$refs.channelForm.validate((valid1) => { this.$refs.channelForm.validate((valid1) => {
this.$refs.sendTypeForm.validate((valid2) => { this.$refs.sendTypeForm.validate((valid2) => {
...@@ -1196,6 +1219,12 @@ export default { ...@@ -1196,6 +1219,12 @@ export default {
margin-top: 16px; margin-top: 16px;
.publish-info { .publish-info {
padding: 16px 20px; padding: 16px 20px;
::v-deep {
.cell {
padding-left: 0;
padding-right: 0;
}
}
} }
.radio-box { .radio-box {
margin-bottom: 10px; margin-bottom: 10px;
......
...@@ -80,14 +80,11 @@ export default { ...@@ -80,14 +80,11 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
recoverySelection(list) { recoverySelection(list) {
var exitIds = this.selectedRecord.map((item) => item.merchantId) var exitIds = this.selectedRecord.map((item) => +item.merchantId)
console.log( console.log(exitIds)
"this.$refs.merchantTable.toggleRowSelection",
this.$refs.merchantTable.$refs.merchantIndexMutiTable.toggleRowSelection
)
list.forEach((item) => { list.forEach((item) => {
console.log(exitIds.includes(item.merchantId + "")) console.log(item.merchantId, "item.merchantId")
exitIds.includes(item.merchantId + "") && exitIds.includes(item.merchantId) &&
this.$refs.merchantTable.$refs.merchantIndexMutiTable.toggleRowSelection( this.$refs.merchantTable.$refs.merchantIndexMutiTable.toggleRowSelection(
item, item,
true true
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
<template> <template>
<d2-dialog <d2-dialog
:title="title" :title="title"
:isShowFooter="false"
:noCancel="true"
:is-visible.sync="relateStoreVisible" :is-visible.sync="relateStoreVisible"
width="50%" width="50%"
btn-ok-label="确定" btn-ok-label="确定"
......
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
<div v-else-if="item.type == 'list'" class="table-box"> <div v-else-if="item.type == 'list'" class="table-box">
<!-- 表格数据 --> <!-- 表格数据 -->
<div class="table-title"> <div class="table-title">
{{ orderInfo.showMerchant ? {{ orderInfo.showMerchant == null ? "-":
orderInfo.showMerchant == 1 orderInfo.showMerchant == 1
? "指定品牌" ? "指定品牌"
: orderInfo.showMerchant == 2 : orderInfo.showMerchant == 2
? "指定门店" ? "指定门店"
: "全部门店": "-" : "全部门店"
}} }}
</div> </div>
<el-table v-if="orderInfo.showMerchant" :data="orderInfo[item.prop]" border :header-cell-style="{ <el-table v-if="orderInfo.showMerchant" :data="orderInfo[item.prop]" border :header-cell-style="{
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<div class="cell"> <div class="cell">
<div class="label">员工对象:</div> <div class="label">员工对象:</div>
<div> <div>
<div class="label m-b-10"> <div class="value m-b-10">
{{ getStaffVal(formData.selectStaffType) }} {{ getStaffVal(formData.selectStaffType) }}
</div> </div>
<template> <template>
...@@ -85,15 +85,19 @@ ...@@ -85,15 +85,19 @@
empTableData.length empTableData.length
" "
> >
<el-table :data="empTableData" style="width: 100%"> <el-table border :data="empTableData" style="width: 100%">
<el-table-column type="index" width="50"> </el-table-column> <el-table-column type="index" width="50">
序号</el-table-column
>
<el-table-column <el-table-column
align="center"
prop="merchantName" prop="merchantName"
label="门店名称" label="门店名称"
v-if="formData.selectStaffType == 2" v-if="formData.selectStaffType == 2"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center"
prop="merchantId" prop="merchantId"
v-if="formData.selectStaffType == 2" v-if="formData.selectStaffType == 2"
label="门店号" label="门店号"
...@@ -101,6 +105,7 @@ ...@@ -101,6 +105,7 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="label" prop="label"
align="center"
v-if="formData.selectStaffType == 3" v-if="formData.selectStaffType == 3"
label="品牌名称" label="品牌名称"
> >
...@@ -143,7 +148,7 @@ ...@@ -143,7 +148,7 @@
</div> </div>
</div> </div>
<div class="customer-title"> <div class="customer-title" v-if="estimatedNumberOfPeople">
发送员工:预估{{ estimatedNumberOfPeople || 0 }} 发送员工:预估{{ estimatedNumberOfPeople || 0 }}
人 人
<el-button <el-button
...@@ -151,9 +156,7 @@ ...@@ -151,9 +156,7 @@
:loading="customerLoading" :loading="customerLoading"
@click="handlePopStaff" @click="handlePopStaff"
> >
<span v-if="!customerLoading && estimatedNumberOfPeople" <span>查看明细</span>
>查看明细</span
>
</el-button> </el-button>
</div> </div>
</template> </template>
...@@ -740,6 +743,15 @@ export default { ...@@ -740,6 +743,15 @@ export default {
.emp-table-box { .emp-table-box {
width: 567px; width: 567px;
} }
.customer-title {
box-sizing: border-box;
height: 39px;
line-height: 39px;
padding: 0 10px;
color: #666666;
font-size: 14px;
// border-bottom: 1px solid #dcdfe6;
}
.customer-box { .customer-box {
width: 567px; width: 567px;
background-color: #fff; background-color: #fff;
...@@ -747,14 +759,6 @@ export default { ...@@ -747,14 +759,6 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
.customer-title {
box-sizing: border-box;
height: 39px;
line-height: 39px;
padding: 0 10px;
// border-bottom: 1px solid #dcdfe6;
}
.input-tag-wrapper { .input-tag-wrapper {
max-height: 227px; max-height: 227px;
overflow: auto; overflow: auto;
......
...@@ -572,7 +572,8 @@ ...@@ -572,7 +572,8 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.reconciliationFlag === 'Y'">已对账</span> <span v-if="scope.row.reconciliationFlag === 'Y'">已对账</span>
<span v-else>未对账</span> <span v-else-if="scope.row.reconciliationFlag === 'N'">未对账</span>
<span v-else>--</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="操作" width="120" fixed="right"> <el-table-column align="center" label="操作" width="120" fixed="right">
...@@ -1099,7 +1100,6 @@ export default { ...@@ -1099,7 +1100,6 @@ export default {
type: "upload" type: "upload"
} }
] ]
this.actionSetDownloadList({ list, type: "updateList" }) this.actionSetDownloadList({ list, type: "updateList" })
this.notice.okTips("上传成功") this.notice.okTips("上传成功")
this.handleBatchImport() this.handleBatchImport()
...@@ -1108,6 +1108,10 @@ export default { ...@@ -1108,6 +1108,10 @@ export default {
} }
}) })
}, },
handleBatchImport() {
this.fileVisible = !this.fileVisible
this.$refs.fileRuleForm && this.$refs.fileRuleForm.resetFields()
},
async getBaseData() { async getBaseData() {
this.baseData.channelTypeList = await this.get(BaseData.channelType) this.baseData.channelTypeList = await this.get(BaseData.channelType)
this.positionTypeList = await this.get(BaseData.positionTypeList) this.positionTypeList = await this.get(BaseData.positionTypeList)
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="嘀加成本/件:" prop="djCost"> <el-form-item label="嘀加成本/件:" prop="djCost">
<el-input <el-input
v-model="formData.upgradeGoods.djCost" v-model="formData.djCost"
placeholder="自动带入产品对应的嘀加成本" placeholder="自动带入产品对应的嘀加成本"
class="sortInput" class="sortInput"
disabled disabled
...@@ -423,6 +423,7 @@ export default { ...@@ -423,6 +423,7 @@ export default {
handleData(goods) { handleData(goods) {
const _formData = deepClone(goods) const _formData = deepClone(goods)
_formData.settlementType = _formData.createBusinessProduct.settlementType _formData.settlementType = _formData.createBusinessProduct.settlementType
_formData.djCost = _formData.createBusinessProduct?.djCost
// console.log('_formData', _formData) // console.log('_formData', _formData)
const { goodsTypeName, secondaryGoodsTypeName, thirdLevelGoodsTypeName } = const { goodsTypeName, secondaryGoodsTypeName, thirdLevelGoodsTypeName } =
_formData?.goodsInfo || {} _formData?.goodsInfo || {}
......
...@@ -698,14 +698,20 @@ export default { ...@@ -698,14 +698,20 @@ export default {
sellPrice: "", // 参考售价 sellPrice: "", // 参考售价
minSellPrice: "", // 最低售价 minSellPrice: "", // 最低售价
djCost: "", // 嘀加成本 djCost: "", // 嘀加成本
thirdPartyCost: "" // 第三方成本 thirdPartyCost: "", // 第三方成本
upgradeGoods: {
djCost: ""
}
}) })
this.oldValList.unshift({ this.oldValList.unshift({
upgradeGoodsId: "", // 商品id upgradeGoodsId: "", // 商品id
sellPrice: "", // 参考售价 sellPrice: "", // 参考售价
minSellPrice: "", // 最低售价 minSellPrice: "", // 最低售价
djCost: "", // 嘀加成本 djCost: "", // 嘀加成本
thirdPartyCost: "" // 第三方成本 thirdPartyCost: "", // 第三方成本
upgradeGoods: {
djCost: ""
}
}) })
}, },
......
...@@ -5,26 +5,49 @@ ...@@ -5,26 +5,49 @@
<span>分账配置</span> <span>分账配置</span>
</div> </div>
<div style="padding: 20px"> <div style="padding: 20px">
<el-form ref="divisionRuleRef" :model="financialObj" label-suffix=":" label-width="154px"> <el-form
ref="divisionRuleRef"
:model="financialObj"
label-suffix=":"
label-width="154px"
>
<el-form-item label="" prop="autoFlag"> <el-form-item label="" prop="autoFlag">
<span class="tips-block" slot="label"> <span class="tips-block" slot="label">
<span class="tips-label">线上自动分账</span> <span class="tips-label">线上自动分账</span>
<el-tooltip popper-class="tooltip-class" effect="dark" content="产生交易后会自动打款给商户,开启及关闭操作第二天生效。" <el-tooltip
placement="top"> popper-class="tooltip-class"
<span class="tips-icon" /> </el-tooltip>: effect="dark"
content="产生交易后会自动打款给商户,开启及关闭操作第二天生效。"
placement="top"
>
<span class="tips-icon" /> </el-tooltip
>:
</span> </span>
<el-switch v-model="financialObj.autoFlag" active-value="Y" disabled inactive-value="N" /> <el-switch
v-model="financialObj.autoFlag"
active-value="Y"
disabled
inactive-value="N"
/>
</el-form-item> </el-form-item>
<el-form-item label="结算时间方式"> <el-form-item label="结算时间方式">
<span class="tips-block" slot="label"> <span class="tips-block" slot="label">
<span class="tips-label">分账周期</span> <span class="tips-label">分账周期</span>
<el-tooltip popper-class="tooltip-class" effect="dark" content="用户支付的款项可按T+1或指定日自动打款给商户。" placement="top"> <el-tooltip
<span class="tips-icon" /> </el-tooltip>: popper-class="tooltip-class"
effect="dark"
content="用户支付的款项可按T+1或指定日自动打款给商户。"
placement="top"
>
<span class="tips-icon" /> </el-tooltip
>:
</span> </span>
<div class="block_item" style="margin-bottom: 20px"> <div class="block_item" style="margin-bottom: 20px">
<span> <span>
分账周期 T+{{ settleTimeObj.first }}日 分账周期 T+{{ settleTimeObj.first }}日
<span v-show="financialObj.settleTimeType == 1">(分账后第2天到分账方对公账户)</span> <span v-show="financialObj.settleTimeType == 1"
>(分账后第2天到分账方对公账户)</span
>
</span> </span>
</div> </div>
</el-form-item> </el-form-item>
...@@ -34,28 +57,49 @@ ...@@ -34,28 +57,49 @@
</el-form> </el-form>
<el-tabs v-model="editableTabsValue" type="card" class="my-tab-pane"> <el-tabs v-model="editableTabsValue" type="card" class="my-tab-pane">
<!-- closable --> <!-- closable -->
<el-tab-pane v-for="item in editableTabs" :key="item.name" :label="item.title" :name="item.name"> <el-tab-pane
v-for="item in editableTabs"
:key="item.name"
:label="item.title"
:name="item.name"
>
<span slot="label">{{ item.title }} </span> <span slot="label">{{ item.title }} </span>
<div class="classificationCptContainer"> <div class="classificationCptContainer">
<el-form ref="divisionRuleRef" :model="financialObj" label-suffix=":" label-width="154px"> <el-form
<h3 v-if="financialObj.goodsTypeGroupRules[editableTabsValue - 1].groupType == 1">全部品类</h3> ref="divisionRuleRef"
:model="financialObj"
label-suffix=":"
label-width="154px"
>
<h3
v-if="
financialObj.goodsTypeGroupRules[editableTabsValue - 1]
.groupType == 1
"
>
全部品类
</h3>
<div v-else style="display: flex"> <div v-else style="display: flex">
<el-form-item label="分账品类"> <el-form-item label="分账品类">
{{ {{
financialObj.goodsTypeGroupRules[editableTabsValue - 1] financialObj.goodsTypeGroupRules[editableTabsValue - 1]
.categoryType || "--" .categoryType || "--"
}}</el-form-item> }}</el-form-item
>
<el-form-item label=""> <el-form-item label="">
{{ {{
financialObj.goodsTypeGroupRules[editableTabsValue - 1] financialObj.goodsTypeGroupRules[editableTabsValue - 1]
.packageArrText .packageArrText
}}</el-form-item> }}</el-form-item
>
</div> </div>
<template v-for="(item, index) in financialObj.goodsTypeGroupRules[ <template
editableTabsValue - 1 v-for="(item, index) in financialObj.goodsTypeGroupRules[
].expenseCategoryRules"> editableTabsValue - 1
].expenseCategoryRules"
>
<el-form-item :key="index" :label="item.expenseCategoryName"> <el-form-item :key="index" :label="item.expenseCategoryName">
<span>{{ <span>{{
getExpenseCategoryCalculateType( getExpenseCategoryCalculateType(
...@@ -67,9 +111,15 @@ ...@@ -67,9 +111,15 @@
</template> </template>
</el-form> </el-form>
</div> </div>
<tableAccount ref="tableAccount" :merchant-distribution-rules="financialObj.goodsTypeGroupRules[editableTabsValue - 1] <tableAccount
.merchantDistributionRules ref="tableAccount"
" :table-select-options="tableSelectOptions" :classification-obj-select="tableClassificationObjSelect" /> :merchant-distribution-rules="
financialObj.goodsTypeGroupRules[editableTabsValue - 1]
.merchantDistributionRules
"
:table-select-options="tableSelectOptions"
:classification-obj-select="tableClassificationObjSelect"
/>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -87,7 +137,7 @@ export default { ...@@ -87,7 +137,7 @@ export default {
props: { props: {
divisiObj: { divisiObj: {
type: Object, type: Object,
default: () => { } default: () => {}
} }
}, },
data() { data() {
...@@ -178,7 +228,7 @@ export default { ...@@ -178,7 +228,7 @@ export default {
deep: true deep: true
} }
}, },
created() { }, created() {},
methods: { methods: {
initData(data) { initData(data) {
...@@ -190,13 +240,20 @@ export default { ...@@ -190,13 +240,20 @@ export default {
if (result?.settleTimeType == 2) result.settleTimeType = 1 if (result?.settleTimeType == 2) result.settleTimeType = 1
result && (this.financialObj = result) result && (this.financialObj = result)
result.goodsTypeGroupRules && // result.goodsTypeGroupRules &&
if (result.goodsTypeGroupRules) {
const hasAllGoodsType = result.goodsTypeGroupRules.find(
(item) => item.groupType == 1
)
result.goodsTypeGroupRules.forEach((item, index) => { result.goodsTypeGroupRules.forEach((item, index) => {
const upgradeArr = [] const upgradeArr = []
const packageArr = [] const packageArr = []
const textArr = [] const textArr = []
this.editableTabs[index] = { this.editableTabs[index] = {
title: "特殊品类" + (index + 1), title:
item.groupType == 1
? "全部品类"
: "特殊品类" + (hasAllGoodsType ? index : index + 1),
name: (index + 1).toString(), name: (index + 1).toString(),
testFlag: item.testFlag == "Y" && autoFlag ? "Y" : "N", testFlag: item.testFlag == "Y" && autoFlag ? "Y" : "N",
groupDivisionRuleId: groupDivisionRuleId:
...@@ -260,6 +317,8 @@ export default { ...@@ -260,6 +317,8 @@ export default {
item.upgradeGoods = [] // 与具体商品互不干扰 item.upgradeGoods = [] // 与具体商品互不干扰
} }
}) })
}
this.financialObj = result this.financialObj = result
this.initSettleTimeObj() this.initSettleTimeObj()
}, },
......
...@@ -123,12 +123,17 @@ export default { ...@@ -123,12 +123,17 @@ export default {
initData(data) { initData(data) {
const typeList = data.goodsTypeGroupReconciliationRules || [] const typeList = data.goodsTypeGroupReconciliationRules || []
this.editableTabs = [] this.editableTabs = []
const hasAllGoodsType = typeList.find((item) => item.groupType == 1)
typeList.forEach((item, index) => { typeList.forEach((item, index) => {
const upgradeArr = [] const upgradeArr = []
const packageArr = [] const packageArr = []
const textArr = [] const textArr = []
this.editableTabs.push({ this.editableTabs.push({
title: "特殊品类" + (index + 1), title:
item.groupType == 1
? "全部品类"
: "特殊品类" + (hasAllGoodsType ? index : index + 1),
name: (index + 1).toString() name: (index + 1).toString()
}) })
// 按具体商品 // 按具体商品
......
...@@ -56,8 +56,8 @@ ...@@ -56,8 +56,8 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="结算方式:" prop="settlementType"> <el-form-item label="结算方式:" prop="settlementType">
<!-- <el-select <el-select
v-model="packageForm.createBusinessProduct.settlementType" v-model="packageForm.createBusinessProduct.settlementType"
disabled disabled
placeholder="请选择" placeholder="请选择"
class="sortInput" class="sortInput"
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
:value="item.confId" :value="item.confId"
> >
</el-option> </el-option>
</el-select> --> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -416,12 +416,14 @@ export default { ...@@ -416,12 +416,14 @@ export default {
} }
} }
}, },
mounted() {
async mounted() {
if (this.info) { if (this.info) {
console.log("info", this.info) console.log("info", this.info)
this.packageForm.settlementType =
this.packageForm.createBusinessProduct.settlementType
this.packageForm = deepClone(this.info) this.packageForm = deepClone(this.info)
this.goodsList = deepClone(this.info.merchantGoodsInfoList) this.goodsList = deepClone(this.info.merchantGoodsInfoList)
this.handleData(this.goodsList)
} }
}, },
...@@ -430,7 +432,53 @@ export default { ...@@ -430,7 +432,53 @@ export default {
get: "d2admin/base/get", get: "d2admin/base/get",
close: "d2admin/page/close" close: "d2admin/page/close"
}), }),
async getBaseData() {}, handleData(goodsList) {
goodsList = goodsList.map((item) => {
const _formData = item
const {
goodsTypeName,
secondaryGoodsTypeName,
thirdLevelGoodsTypeName
} = _formData?.goodsInfo || {}
const types = [
goodsTypeName,
secondaryGoodsTypeName,
thirdLevelGoodsTypeName
]
const result = types.filter((type) => type).join("-")
_formData.upgradeGoods_temporary = {
upgradeGoodsName: _formData.upgradeGoodsName,
goodsName: _formData.goodsInfo?.goodsName,
tempGoodsTypeName: result,
serviceItemNames: _formData.upgradeGoods?.upgradeGoodsServiceItemsList
?.map((item) => {
return `${item.serviceName}-${item.serviceGrade}/${
item.servicePeriod
}${
item.serviceItemId
? `/${convertYuanToWan(item.minPrice)}-${convertYuanToWan(
item.maxPrice
)}万`
: ""
}`
})
?.join(","), // 服务项目
specificationData: this.filterSpecsStr(_formData.upgradeGoods),
djCost: _formData.upgradeGoods?.djCost,
carTypeConfigName: _formData.upgradeGoods?.carTypeConfigList
?.map((item) => item.seriesName)
.join("/"),
upgradeCommodityCode: _formData.upgradeGoods?.commodityCode,
purchasePrice: _formData.upgradeGoods?.purchasePrice,
upgradePrice: _formData.upgradeGoods?.upgradePrice,
type: _formData.upgradeGoods?.type,
thirdPartyCode: _formData.upgradeGoods?.thirdPartyCode
}
_formData.upgradeGoods = {}
_formData.upgradeGoods = deepClone(_formData.upgradeGoods_temporary)
return _formData
})
},
// 处理金额补零 // 处理金额补零
priceFilter(num) { priceFilter(num) {
var pow = Math.pow(10, 2) var pow = Math.pow(10, 2)
......
...@@ -454,7 +454,7 @@ export default { ...@@ -454,7 +454,7 @@ export default {
// 强制更新 merchantAddress // 强制更新 merchantAddress
this.editData.cityName = '' this.editData.cityName = ''
this.editData.provinceName = val.name this.editData.provinceName = val.name
this.editData.provinceCode = val.adcode this.editData.provinceCode = val.code
this.$refs.editFormRef.$refs[this.editChildRef].validateField('merchantAddress') this.$refs.editFormRef.$refs[this.editChildRef].validateField('merchantAddress')
}, },
// 获取市 // 获取市
...@@ -462,7 +462,7 @@ export default { ...@@ -462,7 +462,7 @@ export default {
console.log(val) console.log(val)
if (val.name) { if (val.name) {
this.editData.cityName = val.name this.editData.cityName = val.name
this.editData.cityCode = val.adcode this.editData.cityCode = val.code
} else { } else {
this.editData.cityName = '' this.editData.cityName = ''
this.editData.cityCode = '' this.editData.cityCode = ''
...@@ -473,9 +473,11 @@ export default { ...@@ -473,9 +473,11 @@ export default {
// 通过地图选择省市和详细地址 // 通过地图选择省市和详细地址
selectAddressByMap(val) { selectAddressByMap(val) {
console.log(val) console.log(val)
const { provinceName, cityName, fullAddress, lat, lng } = val const { provinceName, provinceCode, cityCode, cityName, fullAddress, lat, lng } = val
this.editData.merchantAddress = fullAddress this.editData.merchantAddress = fullAddress
this.editData.provinceName = provinceName this.editData.provinceName = provinceName
this.editData.provinceCode = provinceCode
this.editData.cityCode = cityCode
this.editData.cityName = cityName this.editData.cityName = cityName
this.editData.lat = lat this.editData.lat = lat
this.editData.lng = lng this.editData.lng = lng
......
...@@ -536,10 +536,17 @@ export default { ...@@ -536,10 +536,17 @@ export default {
const upgradeArr = [] const upgradeArr = []
const packageArr = [] const packageArr = []
goodsTypeGroupRules && // goodsTypeGroupRules &&
if (goodsTypeGroupRules) {
const hasAllGoodsType = goodsTypeGroupRules.find(
(item) => item.groupType == 1
)
goodsTypeGroupRules.forEach((item, index) => { goodsTypeGroupRules.forEach((item, index) => {
this.editableTabs[index] = { this.editableTabs[index] = {
title: "特殊品类" + (index + 1), title:
item.groupType == 1
? "全部品类"
: "特殊品类" + (hasAllGoodsType ? index : index + 1),
name: (index + 1).toString(), name: (index + 1).toString(),
testFlag: item.testFlag == "Y" && autoFlag ? "Y" : "N", testFlag: item.testFlag == "Y" && autoFlag ? "Y" : "N",
groupDivisionRuleId: groupDivisionRuleId:
...@@ -590,6 +597,8 @@ export default { ...@@ -590,6 +597,8 @@ export default {
item.upgradeGoods = [] // 与具体商品互不干扰 item.upgradeGoods = [] // 与具体商品互不干扰
} }
}) })
}
// 获取商品 // 获取商品
this.getSelectingList(upgradeArr) this.getSelectingList(upgradeArr)
this.getSelectingListPackage(packageArr) this.getSelectingListPackage(packageArr)
...@@ -1325,8 +1334,14 @@ export default { ...@@ -1325,8 +1334,14 @@ export default {
return item return item
}) })
const newTabIndex = (this.editableTabs.length + 1).toString() const newTabIndex = (this.editableTabs.length + 1).toString()
const hasAllGoodsType = this.financialObj.goodsTypeGroupRules.find(
(item) => {
return item.groupType == 1
}
)
this.editableTabs.push({ this.editableTabs.push({
title: "特殊品类" + this.addIndex++, title:
"特殊品类" + (hasAllGoodsType ? +this.addIndex - 1 : +this.addIndex),
name: newTabIndex name: newTabIndex
}) })
this.editableTabsValue = newTabIndex this.editableTabsValue = newTabIndex
...@@ -1405,10 +1420,17 @@ export default { ...@@ -1405,10 +1420,17 @@ export default {
) )
this.deleteSelectPackageGoodsList(childParams[0].packageGoods) this.deleteSelectPackageGoodsList(childParams[0].packageGoods)
console.log(childParams, "packageArr") console.log(childParams, "packageArr")
goodsTypeGroupRules && // goodsTypeGroupRules &&
if (goodsTypeGroupRules) {
const hasAllGoodsType = goodsTypeGroupRules.find(
(item) => item.groupType == 1
)
goodsTypeGroupRules.forEach((item, index) => { goodsTypeGroupRules.forEach((item, index) => {
this.editableTabs[index] = { this.editableTabs[index] = {
title: "特殊品类" + (index + 1), title:
item.groupType == 1
? "全部品类"
: "特殊品类" + (hasAllGoodsType ? index : index + 1),
name: (index + 1).toString(), name: (index + 1).toString(),
testFlag: item.testFlag == "Y" && autoFlag ? "Y" : "N", testFlag: item.testFlag == "Y" && autoFlag ? "Y" : "N",
groupDivisionRuleId: groupDivisionRuleId:
...@@ -1460,6 +1482,8 @@ export default { ...@@ -1460,6 +1482,8 @@ export default {
item.upgradeGoods = [] // 与具体商品互不干扰 item.upgradeGoods = [] // 与具体商品互不干扰
} }
}) })
}
console.log(upgradeArr, "upgradeArr") console.log(upgradeArr, "upgradeArr")
console.log(packageArr, "upgradeArr") console.log(packageArr, "upgradeArr")
// 获取商品 // 获取商品
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
:query-fee-category-by-type-flow="queryFeeCategoryByTypeFlow" :query-fee-category-by-type-flow="queryFeeCategoryByTypeFlow"
:query-fee-category-by-type-serve="queryFeeCategoryByTypeServe" :query-fee-category-by-type-serve="queryFeeCategoryByTypeServe"
:query-fee-category-by-type-platform=" :query-fee-category-by-type-platform="
queryFeeCategoryByTypePlatform queryFeeCategoryByTypePlatformFilter
" "
:tabindex="idx" :tabindex="idx"
:key="idx" :key="idx"
...@@ -123,7 +123,8 @@ export default { ...@@ -123,7 +123,8 @@ export default {
upgradeGoodsList: [], upgradeGoodsList: [],
selectPackageGoodsList: [], selectPackageGoodsList: [],
packageGoodsList: [], packageGoodsList: [],
ruleInfo: {} ruleInfo: {},
operationMode: 0
} }
}, },
computed: { computed: {
...@@ -137,6 +138,18 @@ export default { ...@@ -137,6 +138,18 @@ export default {
const length2 = this.editableTabs.length - 1 const length2 = this.editableTabs.length - 1
const length3 = this.goodsSelectList.length const length3 = this.goodsSelectList.length
return length1 - length3 > 0 && length1 > length2 return length1 - length3 > 0 && length1 > length2
},
queryFeeCategoryByTypePlatformFilter: {
get() {
const queryFeeCategoryByTypePlatformFilter =
this.queryFeeCategoryByTypePlatform.filter((item) => {
return item.id != 807
})
return this.operationMode == 0
? queryFeeCategoryByTypePlatformFilter
: this.queryFeeCategoryByTypePlatform
// return this.queryFeeCategoryByTypePlatform
}
} }
}, },
created() { created() {
...@@ -144,6 +157,9 @@ export default { ...@@ -144,6 +157,9 @@ export default {
this.getQueryFeeCategoryByType() // 获取费用类别 this.getQueryFeeCategoryByType() // 获取费用类别
}, },
mounted() { mounted() {
this.$EventBus.$on("operationMode", (val) => {
this.operationMode = val
})
this.$EventBus.$on("packageInfoList", (obj) => { this.$EventBus.$on("packageInfoList", (obj) => {
// if(JSON.stringify(obj)== this.set) // if(JSON.stringify(obj)== this.set)
this.getSelectingListPackage([], obj) this.getSelectingListPackage([], obj)
...@@ -427,10 +443,15 @@ export default { ...@@ -427,10 +443,15 @@ export default {
item.name = index + 1 + "" item.name = index + 1 + ""
return item return item
}) })
const hasAllGoodsType = this.goodsTypeGroupReconciliationRules.find(
(item) => {
return item.groupType == 1
}
)
const newTabIndex = this.tabIndex + "" const newTabIndex = this.tabIndex + ""
this.editableTabs.push({ this.editableTabs.push({
title: "特殊品类" + this.addIndex++, title:
"特殊品类" + (hasAllGoodsType ? this.tabIndex - 1 : this.tabIndex),
name: newTabIndex name: newTabIndex
}) })
this.editableTabsValue = newTabIndex this.editableTabsValue = newTabIndex
...@@ -498,15 +519,16 @@ export default { ...@@ -498,15 +519,16 @@ export default {
this.deleteSelectGoodsList(childParams[0].goodsTypeGroupRelations) this.deleteSelectGoodsList(childParams[0].goodsTypeGroupRelations)
this.deleteSelectUpgradeGoodsList(childParams[0].upgradeGoods) this.deleteSelectUpgradeGoodsList(childParams[0].upgradeGoods)
this.deleteSelectPackageGoodsList(childParams[0].packageGoods) this.deleteSelectPackageGoodsList(childParams[0].packageGoods)
const hasAllGoodsType = goodsTypeGroupRules.find(
(item) => item.groupType == 1
)
const typeList = goodsTypeGroupRules const typeList = goodsTypeGroupRules
typeList.forEach((item, index) => { typeList.forEach((item, index) => {
// index && this.editableTabs.push({
// title: '特殊品类' + index,
// name: (index + 1).toString()
// })
this.editableTabs[index] = { this.editableTabs[index] = {
title: "特殊品类" + (index + 1), title:
item.groupType == 1
? "全部品类"
: "特殊品类" + (hasAllGoodsType ? index : index + 1),
name: (index + 1).toString() name: (index + 1).toString()
// testFlag: (item.testFlag == 'Y' && autoFlag) ? 'Y' : 'N', // testFlag: (item.testFlag == 'Y' && autoFlag) ? 'Y' : 'N',
// groupDivisionRuleId: item.testFlag == 'Y' ? '' : (item.groupDivisionRuleId || '') // groupDivisionRuleId: item.testFlag == 'Y' ? '' : (item.groupDivisionRuleId || '')
...@@ -653,6 +675,7 @@ export default { ...@@ -653,6 +675,7 @@ export default {
const res = await merchantSettleDistributeRuleLastRule(params) const res = await merchantSettleDistributeRuleLastRule(params)
console.log(res, "getEffectRule") console.log(res, "getEffectRule")
if (res) { if (res) {
this.operationMode = res.createBusinessApproveMerchant.operationMode
// debugger // debugger
this.ruleInfo = res this.ruleInfo = res
const typeList = const typeList =
...@@ -664,10 +687,16 @@ export default { ...@@ -664,10 +687,16 @@ export default {
// 所有按具体商品已选中的商品数据 // 所有按具体商品已选中的商品数据
const upgradeArr = [] const upgradeArr = []
const packageArr = [] const packageArr = []
const hasAllGoodsType = this.goodsTypeGroupReconciliationRules.find(
(item) => item.groupType == 1
)
typeList.forEach((item, index) => { typeList.forEach((item, index) => {
// index && // index &&
this.editableTabs.push({ this.editableTabs.push({
title: "特殊品类" + (index + 1), title:
item.groupType == 1
? "全部品类"
: "特殊品类" + (hasAllGoodsType ? index : index + 1),
name: (index + 1).toString() name: (index + 1).toString()
}) })
// 按具体商品 // 按具体商品
...@@ -860,6 +889,7 @@ export default { ...@@ -860,6 +889,7 @@ export default {
beforeDestroy() { beforeDestroy() {
this.$EventBus.$off("packageInfoList") this.$EventBus.$off("packageInfoList")
this.$EventBus.$off("shelfUpdatMerchantId") this.$EventBus.$off("shelfUpdatMerchantId")
this.$EventBus.$off("operationMode")
// 删除子组件保留的数据 // 删除子组件保留的数据
localStorage.removeItem("getListPartnerMerchant") localStorage.removeItem("getListPartnerMerchant")
......
...@@ -5,18 +5,43 @@ ...@@ -5,18 +5,43 @@
<span>流量方信息</span> <span>流量方信息</span>
</div> </div>
<div style="padding: 20px"> <div style="padding: 20px">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="250px" default-width="314px" <glsx-combi-form
:form-ref="editChildRef" :form-obj="editData" :form-data="editFormData" :form-rules="formRules"> class="edit-form-container"
ref="editFormRef"
label-width="250px"
default-width="314px"
:form-ref="editChildRef"
:form-obj="editData"
:form-data="editFormData"
:form-rules="formRules"
>
<div slot="merchantId" slot-scope="scope"> <div slot="merchantId" slot-scope="scope">
<el-select v-model="editData[scope.scope.name]" disabled :placeholder="scope.scope.placeholder" <el-select
@change="scope.scope.changeAttr" style="width: 274px" filterable remote reserve-keyword v-model="editData[scope.scope.name]"
@visible-change="(event) => selectVisibleChange(event, scope.scope)" :remote-method="(event) => remoteMethod(event, scope.scope.searchKey, 'store') disabled
" v-el-select-loadmore="interestsLoadmoreMerchant"> :placeholder="scope.scope.placeholder"
<el-option v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" @change="scope.scope.changeAttr"
:label="subItem[scope.scope.optionLabel]" :value="subItem[scope.scope.optionId]"> style="width: 274px"
filterable
remote
reserve-keyword
@visible-change="(event) => selectVisibleChange(event, scope.scope)"
:remote-method="
(event) => remoteMethod(event, scope.scope.searchKey, 'store')
"
v-el-select-loadmore="interestsLoadmoreMerchant"
>
<el-option
v-for="subItem in scope.scope.optionList"
:key="subItem[scope.scope.optionId]"
:label="subItem[scope.scope.optionLabel]"
:value="subItem[scope.scope.optionId]"
>
</el-option> </el-option>
</el-select> </el-select>
<el-button type="text" class="add-mer-btn" @click="handleAddMerchant">新建</el-button> <el-button type="text" class="add-mer-btn" @click="handleAddMerchant"
>新建</el-button
>
</div> </div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
...@@ -44,7 +69,7 @@ export default { ...@@ -44,7 +69,7 @@ export default {
props: { props: {
editData: { editData: {
type: Object, type: Object,
default: () => { } default: () => {}
} }
}, },
...@@ -262,6 +287,13 @@ export default { ...@@ -262,6 +287,13 @@ export default {
} }
}, },
{ {
label: "上级服务商",
name: "parentPartnerMerchantName",
type: "input",
style: { width: "42%" },
maxlength: 50
},
{
label: "一线阳光是否开启线上积分", label: "一线阳光是否开启线上积分",
name: "firstLineSunshineOnlinePointsFlag", name: "firstLineSunshineOnlinePointsFlag",
type: "select", type: "select",
...@@ -344,7 +376,7 @@ export default { ...@@ -344,7 +376,7 @@ export default {
hasAll && hasAll &&
this.baseData[item.optionsName].length && this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][ this.baseData[item.optionsName][0][
this[formName][index].optionLabel this[formName][index].optionLabel
] !== "全部" ] !== "全部"
) { ) {
const temp = {} const temp = {}
...@@ -367,7 +399,7 @@ export default { ...@@ -367,7 +399,7 @@ export default {
hasAll && hasAll &&
this.baseData[item.optionsName].length && this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][ this.baseData[item.optionsName][0][
this[formName][index].optionLabel this[formName][index].optionLabel
] !== "全部" ] !== "全部"
) { ) {
const temp = {} const temp = {}
...@@ -393,6 +425,7 @@ export default { ...@@ -393,6 +425,7 @@ export default {
this.editData.partnerMerchantId = obj?.merchantId this.editData.partnerMerchantId = obj?.merchantId
this.editData.partnerMerchantName = obj?.merchantName this.editData.partnerMerchantName = obj?.merchantName
} }
this.$EventBus.$emit("operationMode", this.editData.operationMode)
}, },
dealInitData() { dealInitData() {
this.editData.businessMode = this.editData.businessMode =
......
...@@ -359,20 +359,7 @@ export default { ...@@ -359,20 +359,7 @@ export default {
}, },
data() { data() {
return { return {
tableData: [ tableData: [],
{
column1: "数据1",
column2: "数据2",
column3: "数据3",
column4: "数据4"
},
{
column1: "数据5",
column2: "数据6",
column3: "数据7",
column4: "数据8"
}
],
filterIdList: [1, 2, 302], filterIdList: [1, 2, 302],
financialCalculationVisible: false, financialCalculationVisible: false,
tipsDialogVisible: false, tipsDialogVisible: false,
...@@ -386,7 +373,7 @@ export default { ...@@ -386,7 +373,7 @@ export default {
shop4sDeductChargeFlag: "Y", // 导流方POS机支付是否扣除手续费(Y:扣除,N:不扣) shop4sDeductChargeFlag: "Y", // 导流方POS机支付是否扣除手续费(Y:扣除,N:不扣)
partnerDeductChargeFlag: "Y", // 服务商POS机支付是否扣除手续费(Y:扣除,N:不扣) partnerDeductChargeFlag: "Y", // 服务商POS机支付是否扣除手续费(Y:扣除,N:不扣)
goodsCostFlag: "N", // 平台方是否扣除产品成本(Y:计算,N:不计算) goodsCostFlag: "N", // 平台方是否扣除产品成本(Y:计算,N:不计算)
groupType: 1, groupType: 2,
categoryType: "", // 分类类别 categoryType: "", // 分类类别
upgradeGoods: [], // 具体商品 upgradeGoods: [], // 具体商品
packageGoods: [], packageGoods: [],
...@@ -1107,7 +1094,7 @@ export default { ...@@ -1107,7 +1094,7 @@ export default {
}) })
}, },
initList(name) { initList(name) {
this.classificationObj.groupType = this.tabindex ? 1 : 2 // this.classificationObj.groupType = this.tabindex ? 1 : 2
const expenseCategoryRules = const expenseCategoryRules =
deepClone(this.goodsTypeGroupRules.expenseCategoryRules) || [] deepClone(this.goodsTypeGroupRules.expenseCategoryRules) || []
const setList = this.classificationObjSelect const setList = this.classificationObjSelect
...@@ -1409,7 +1396,7 @@ export default { ...@@ -1409,7 +1396,7 @@ export default {
} }
} }
// console.log('expenseCategoryRules', expenseCategoryRules) // console.log('expenseCategoryRules', expenseCategoryRules)
const groupType = this.tabindex ? 2 : 1 // const groupType = this.tabindex ? 2 : 1
const goodsTypes = obj.goodsTypes const goodsTypes = obj.goodsTypes
goodsTypes && goodsTypes &&
goodsTypes.map((val) => { goodsTypes.map((val) => {
...@@ -1457,7 +1444,7 @@ export default { ...@@ -1457,7 +1444,7 @@ export default {
thirdPartyCostFlag: obj.thirdPartyCostFlag, thirdPartyCostFlag: obj.thirdPartyCostFlag,
goodsCostFlag: obj.goodsCostFlag, goodsCostFlag: obj.goodsCostFlag,
goodsSource: obj.goodsSource, goodsSource: obj.goodsSource,
groupType, groupType: obj.groupType,
goodsTypes, goodsTypes,
upgradeGoods, upgradeGoods,
packageGoods packageGoods
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
label-suffix=":" label-suffix=":"
label-width="154px" label-width="154px"
> >
<!-- v-if="tabindex && classificationObj.goodsSource == 1" -->
<h3 v-if="classificationObj.groupType == 1" style="margin-left: 20px"> <h3 v-if="classificationObj.groupType == 1" style="margin-left: 20px">
全部品类 全部品类
</h3> </h3>
...@@ -354,6 +353,7 @@ export default { ...@@ -354,6 +353,7 @@ export default {
categoryType: "", // 分类类别 categoryType: "", // 分类类别
upgradeGoods: [], // 具体商品 upgradeGoods: [], // 具体商品
goodsSource: 1, goodsSource: 1,
groupType: 2,
packageGoods: [] packageGoods: []
}, },
rules: { rules: {
...@@ -1023,6 +1023,10 @@ export default { ...@@ -1023,6 +1023,10 @@ export default {
} }
return { "text-align": "center", height: "40px" } return { "text-align": "center", height: "40px" }
}, },
uniqueArr(arr) {
const res = new Map()
return arr.filter((a) => !res.has(a.id) && res.set(a.id, 1))
},
// 按照场景类型和应用对象查询:表头 (流量方) // 按照场景类型和应用对象查询:表头 (流量方)
getQueryFeeCategoryByTypeFlow(res) { getQueryFeeCategoryByTypeFlow(res) {
const that = this const that = this
...@@ -1041,6 +1045,7 @@ export default { ...@@ -1041,6 +1045,7 @@ export default {
that.titleListFlow.push(temp) that.titleListFlow.push(temp)
} }
}) })
this.temporaryArr = this.uniqueArr(this.temporaryArr)
// that.titleListFlow = titleListFlow // that.titleListFlow = titleListFlow
const listLength = that.titleListFlow.length const listLength = that.titleListFlow.length
const resultArr = that.addTitleList(listLength, 1) const resultArr = that.addTitleList(listLength, 1)
...@@ -1140,6 +1145,7 @@ export default { ...@@ -1140,6 +1145,7 @@ export default {
that.titleListPlatform.push(temp) that.titleListPlatform.push(temp)
} }
}) })
this.temporaryArr = this.uniqueArr(this.temporaryArr)
// that.titleListPlatform = titleListPlatform // that.titleListPlatform = titleListPlatform
const listLength = that.titleListPlatform.length const listLength = that.titleListPlatform.length
const resultArr = that.addTitleList(listLength, 2) const resultArr = that.addTitleList(listLength, 2)
...@@ -1347,7 +1353,7 @@ export default { ...@@ -1347,7 +1353,7 @@ export default {
}) })
console.log(flowServiceCostArr, "flowServiceCostArr") console.log(flowServiceCostArr, "flowServiceCostArr")
const expenseCategoryRulesObj = { const expenseCategoryRulesObj = {
groupType: this.tabindex == 0 ? 1 : 2, groupType: this.classificationObj.groupType,
categoryType: this.classificationObj.categoryType, categoryType: this.classificationObj.categoryType,
expenseCategoryRules: flowServiceCostArr, expenseCategoryRules: flowServiceCostArr,
goodsSource: this.classificationObj.goodsSource goodsSource: this.classificationObj.goodsSource
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
label: "提报时间", label: "提报时间",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.createdDate return cellValue.createdDate
? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss") ? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD")
: "-" : "-"
} }
} }
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
}}</span> }}</span>
<span class="result">通过</span> <span class="result">通过</span>
</div> </div>
<div class="content"> <div :class="['content',operateData.length==index+1?'last':'']">
{{ item.staffName }}<span>{{ item.createdTime }}</span> {{ item.staffName }}<span>{{ item.createdTime }}</span>
</div> </div>
</div> </div>
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
key: "pushStatusName", key: "pushStatusName",
className: (cellValue) => { className: (cellValue) => {
return { return {
1: "yellowSpot", 1: "greenSpot",
2: "greenSpot", 2: "greenSpot",
3: "ashSpot", 3: "ashSpot",
0: "ashSpot" 0: "ashSpot"
...@@ -265,6 +265,9 @@ export default { ...@@ -265,6 +265,9 @@ export default {
margin-left: 16px; margin-left: 16px;
} }
} }
.last{
border-left: 0px solid #e4e8ee;
}
} }
} }
} }
......
...@@ -17,9 +17,10 @@ ...@@ -17,9 +17,10 @@
<el-button size="small" class="bts-search" type="primary" @click="handleSearch"> <el-button size="small" class="bts-search" type="primary" @click="handleSearch">
查询 查询
</el-button> </el-button>
</div> <el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
<el-button size="small" style="margin-right:1024px;" @click="exportTable"> <el-button size="small" style="margin-left:979px;" @click="exportTable">
导出 导出
</el-button> </el-button>
<d2-table <d2-table
...@@ -124,6 +125,10 @@ export default { ...@@ -124,6 +125,10 @@ export default {
}, },
{ {
label: "浏览时间", label: "浏览时间",
prop: "startTime"
},
{
label: "浏览时长",
prop:'sustainTimeStr' prop:'sustainTimeStr'
// formatter: (cellValue) => { // formatter: (cellValue) => {
// const secondsToMinutesAndSeconds = (seconds) => { // const secondsToMinutesAndSeconds = (seconds) => {
...@@ -160,8 +165,6 @@ export default { ...@@ -160,8 +165,6 @@ export default {
}, },
handleReset() { handleReset() {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm
this.activeName = "2"
console.log("this.searchForm", this.searchForm)
this.handleSearch() this.handleSearch()
}, },
async exportTable() { async exportTable() {
......
...@@ -21,8 +21,14 @@ ...@@ -21,8 +21,14 @@
<template v-for="(item, index) in statisticsData"> <template v-for="(item, index) in statisticsData">
<div class="statistics-box" :key="index"> <div class="statistics-box" :key="index">
<div class="title">{{ item.label }}</div> <div class="title">{{ item.label }}</div>
<div class="content" v-if="!item.innerHtml">{{queryInfo[item.key]}}</div> <div class="content" v-if="!item.innerHtml">
<div class="inner-content" v-else v-html="item.innerHtml(queryInfo)"></div> {{ queryInfo[item.key] }}
</div>
<div
class="inner-content"
v-else
v-html="item.innerHtml(queryInfo)"
></div>
</div> </div>
</template> </template>
</div> </div>
...@@ -36,7 +42,7 @@ ...@@ -36,7 +42,7 @@
> >
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<div> <div class="export-btn">
<el-button size="small" type="primary" @click="exportTable"> <el-button size="small" type="primary" @click="exportTable">
导出 导出
</el-button> </el-button>
...@@ -48,17 +54,47 @@ ...@@ -48,17 +54,47 @@
:search-form="searchFormSearch" :search-form="searchFormSearch"
:table-params="tableParams" :table-params="tableParams"
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
max-height="400px"
> >
<template slot="polishContent" slot-scope="scope">
<el-tooltip
class="item"
effect="dark"
:content="scope.scope.polishContent"
placement="top"
popper-class="text-tooltip"
>
<span>
{{
scope.scope.polishContent
? scope.scope.polishContent.length > 10
? scope.scope.polishContent.slice(0, 10) + "..."
: item.polishContent
: ""
}}
</span>
</el-tooltip>
</template>
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)" <el-button type="text" @click="handleDetail(scope.scope)"
>详情</el-button >详情</el-button
> >
<el-button type="text" @click="handleStatistics(scope.scope)" <el-button
type="text"
@click="handleStatistics(scope.scope)"
v-if="scope.scope.pushStatus == 1"
>统计</el-button >统计</el-button
> >
</div> </div>
</d2-table> </d2-table>
</div> </div>
<el-button
type="primary"
@click="$router.push('/verbalTrickManagement')"
class="back-btn"
>
返回</el-button
>
<!-- 详细信息 --> <!-- 详细信息 -->
<detail-dialog <detail-dialog
:visible.sync="detailVisible" :visible.sync="detailVisible"
...@@ -76,17 +112,18 @@ ...@@ -76,17 +112,18 @@
<script> <script>
import { getSceceLabelList, getRecordList, recordExport } from "@/api/verbal.js" import { getSceceLabelList, getRecordList, recordExport } from "@/api/verbal.js"
import { businessSceneOpt } from "@/common/constants" import { businessSceneOpt } from "@/common/constants"
import { mapActions, mapState } from "vuex"
import { Util, deepClone } from "@/common/util" import { Util, deepClone } from "@/common/util"
import detailDialog from "./components/detailDialog" import detailDialog from "./components/detailDialog"
import StatisticsDialog from "./components/statisticsDialog.vue" import StatisticsDialog from "./components/statisticsDialog.vue"
export default { export default {
components: { detailDialog,StatisticsDialog }, components: { detailDialog, StatisticsDialog },
data() { data() {
return { return {
queryInfo:this.$route.query, queryInfo: this.$route.query,
id: "", id: "",
detailVisible: false, detailVisible: false,
statisticsVisible:false, statisticsVisible: false,
activeName: "2", activeName: "2",
tabPaneList: [ tabPaneList: [
{ {
...@@ -136,7 +173,8 @@ export default { ...@@ -136,7 +173,8 @@ export default {
}, },
{ {
label: "话术内容", label: "话术内容",
prop: "sourceContent" prop: "polishContent",
addHtml: "polishContent"
}, },
{ {
label: "更新时间", label: "更新时间",
...@@ -164,7 +202,7 @@ export default { ...@@ -164,7 +202,7 @@ export default {
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: "yellowSpot", 1: "greenSpot",
2: "greenSpot", 2: "greenSpot",
3: "ashSpot", 3: "ashSpot",
0: "ashSpot" 0: "ashSpot"
...@@ -203,10 +241,16 @@ export default { ...@@ -203,10 +241,16 @@ export default {
} }
} }
}, },
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
mounted() { mounted() {
this.getSceceLabelList() this.getSceceLabelList()
}, },
methods: { methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]),
handleClick() { handleClick() {
if (this.activeName == 2) { if (this.activeName == 2) {
this.searchForm.pushStatus = "" this.searchForm.pushStatus = ""
...@@ -222,24 +266,22 @@ export default { ...@@ -222,24 +266,22 @@ export default {
}, },
//统计 //统计
handleStatistics(data) { handleStatistics(data) {
this.id = data.id this.id = data.id
this.statisticsVisible= true this.statisticsVisible = true
}, },
beforeSearchFn(type = 1) { beforeSearchFn(type = 1) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.classCode=this.queryInfo.classCode this.searchFormSearch.classCode = this.queryInfo.classCode
this.searchFormSearch.businessType=this.queryInfo.businessType this.searchFormSearch.businessType = this.queryInfo.businessType
if (this.searchForm?.updateDate?.length) { if (this.searchForm?.updateDate?.length) {
let [startTime, endTime] = this.searchForm.updateDate let [startTime, endTime] = this.searchForm.updateDate
this.searchFormSearch.startTime = Util.dateFormate( this.searchFormSearch.startTime = Util.dateFormate(
startTime, startTime,
"YYYY-MM-DD HH:mm:ss" "YYYY-MM-DD HH:mm:ss"
) )
this.searchFormSearch.endTime = Util.dateFormate( this.searchFormSearch.endTime =
endTime, Util.dateFormate(endTime, "YYYY-MM-DD") + " 23:59:59"
"YYYY-MM-DD"
)+" 23:59:59"
} }
delete this.searchFormSearch.updateDate delete this.searchFormSearch.updateDate
resolve() resolve()
...@@ -252,7 +294,6 @@ export default { ...@@ -252,7 +294,6 @@ export default {
handleReset() { handleReset() {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm
this.activeName = "2" this.activeName = "2"
console.log("this.searchForm", this.searchForm)
this.handleSearch() this.handleSearch()
}, },
async exportTable() { async exportTable() {
...@@ -268,7 +309,7 @@ export default { ...@@ -268,7 +309,7 @@ export default {
}, },
getSceceLabelList() { getSceceLabelList() {
getSceceLabelList({classCode:this.queryInfo.classCode}) getSceceLabelList({ classCode: this.queryInfo.classCode })
.then((res) => { .then((res) => {
this.baseData.labelList = res this.baseData.labelList = res
this.getOptionsList() this.getOptionsList()
...@@ -311,6 +352,16 @@ export default { ...@@ -311,6 +352,16 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.el-tabs {
width: calc(100% - 100px);
.el-tabs__nav-wrap::after {
height: 1px !important;
}
::v-deep .el-tabs__item {
height: 48px !important;
line-height: 48px !important;
}
}
} }
.statistics-wrap { .statistics-wrap {
width: 100%; width: 100%;
...@@ -322,7 +373,8 @@ export default { ...@@ -322,7 +373,8 @@ export default {
padding: 0 168px; padding: 0 168px;
box-sizing: border-box; box-sizing: border-box;
.statistics-box { .statistics-box {
margin: 0 auto; display: inline-block;
text-align: center;
color: #333333; color: #333333;
flex: 1; flex: 1;
.title { .title {
...@@ -338,4 +390,11 @@ export default { ...@@ -338,4 +390,11 @@ export default {
} }
} }
} }
.back-btn {
position: relative;
left: 50%;
transform: translateX(-50%);
top: 10px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -487,6 +487,14 @@ export default { ...@@ -487,6 +487,14 @@ export default {
// 获取店铺设置信息 // 获取店铺设置信息
async getShopSetting(info) { async getShopSetting(info) {
const { merchantId } = info const { merchantId } = info
// 通过下拉筛选项剔除之前选中但现在已经不是该角色的人员
const filterObj = [{
directorTypeList: [5],
listName: 'storePersonList'
}, {
directorTypeList: [6],
listName: 'flySuperList'
}]
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
getShopSetting({ merchantId }).then((res) => { getShopSetting({ merchantId }).then((res) => {
// this.setInfo = res // this.setInfo = res
...@@ -504,11 +512,13 @@ export default { ...@@ -504,11 +512,13 @@ export default {
? "serviceBossList" ? "serviceBossList"
: "sellerMerchantStaffList" : "sellerMerchantStaffList"
]?.find((ele) => ele.userId == item.directorUserId) ]?.find((ele) => ele.userId == item.directorUserId)
if ([5, 6].includes(item.directorType)) { filterObj.forEach(k => {
target = this.storePersonList?.find( if(k.directorTypeList.includes(item.directorType)) {
(ele) => ele.userId == item.directorUserId target = this[k.listName]?.find(
) (ele) => ele.userId == item.directorUserId
} )
}
})
if (target) { if (target) {
this.directorList[item.directorType].push(item.directorUserId) this.directorList[item.directorType].push(item.directorUserId)
} }
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div class="content" v-for="(item, index) in items" :key="index + 'reconc'"> <div class="content" v-for="(item, index) in items" :key="index + 'reconc'">
<template v-if="activeType == index"> <template v-if="activeType == index">
<div class="part1"> <div class="part1">
<div class="msg" v-if="index"> <div class="msg" v-if="item.goodsSource == 1">
<div class="msg-title">商品来源:</div> <div class="msg-title">商品来源:</div>
<div class="msg-val">{{ item.goodsSource | filterName }}</div> <div class="msg-val">{{ item.goodsSource | filterName }}</div>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!