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