Commit f5d47862 by zhangquan

Merge branch 'SAAS-V4.37.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-s…

…ystem into SAAS-V4.37.0
2 parents a717d4a1 c94a6805
...@@ -33,7 +33,6 @@ export const routerName = { ...@@ -33,7 +33,6 @@ export const routerName = {
} }
] ]
} }
], ],
component: _import("residentManage/qualityControlList") component: _import("residentManage/qualityControlList")
}, },
...@@ -81,5 +80,5 @@ export const routerName = { ...@@ -81,5 +80,5 @@ export const routerName = {
cache: false cache: false
}, },
component: _import("residentManage/inspectionPoint") component: _import("residentManage/inspectionPoint")
}, }
} }
...@@ -274,6 +274,7 @@ export default { ...@@ -274,6 +274,7 @@ export default {
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
color: #1d1d1d; color: #1d1d1d;
width: 750px;
} }
.imgBox { .imgBox {
width: 88px; width: 88px;
......
...@@ -377,6 +377,7 @@ export default { ...@@ -377,6 +377,7 @@ export default {
this.mutiStartOrStop(row.status == 1 ? 2 : 1, [row]) this.mutiStartOrStop(row.status == 1 ? 2 : 1, [row])
}, },
mutiStartOrStop(type, data) { mutiStartOrStop(type, data) {
// type 1启用 2停用
let selectedData = [] let selectedData = []
if (data) { if (data) {
selectedData = data selectedData = data
...@@ -387,7 +388,7 @@ export default { ...@@ -387,7 +388,7 @@ export default {
selectedData.map((v) => { selectedData.map((v) => {
return v.status return v.status
}) || [] }) || []
if (status.includes(0) || !selectedData.length) { if (status.includes(0) || !selectedData.length || (type==1&&status.includes(1)) || (type==2&&status.includes(2))) {
// 包含0草稿 未选择 // 包含0草稿 未选择
this.$message({ this.$message({
message: `请选择${type == 1 ? "已停用" : "已开启"}的内容`, message: `请选择${type == 1 ? "已停用" : "已开启"}的内容`,
......
...@@ -409,6 +409,8 @@ export default { ...@@ -409,6 +409,8 @@ export default {
} }
// 套餐至少包含两个以上商品 // 套餐至少包含两个以上商品
if (merchantGoodsInfoList?.length < 2) return this.$message.error('套餐至少需包含两个商品') if (merchantGoodsInfoList?.length < 2) return this.$message.error('套餐至少需包含两个商品')
// 套餐总售价需大于零
if (formObj?.sellPrice <= 0) return this.$message.error('套餐总售价需大于零,请检查套餐包含商品售价')
if (data?.goodsType == 1 && data?.sceneType != 1) return this.$message.error('太阳膜类商品仅支持上架至精品升级场景') if (data?.goodsType == 1 && data?.sceneType != 1) return this.$message.error('太阳膜类商品仅支持上架至精品升级场景')
if (this.extendedPosiType.includes(data.goodsType) && data?.sceneType != 0) return this.$message.error('延保类商品仅支持上架至会员/权益升级场景') if (this.extendedPosiType.includes(data.goodsType) && data?.sceneType != 0) return this.$message.error('延保类商品仅支持上架至会员/权益升级场景')
this.editData = data this.editData = data
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<div class="table-header"> <div class="table-header">
<div class="table-title">D+广联嘀加园区店</div> <div class="table-title">{{ merchantName }}</div>
<el-button <el-button
class="default-blue-btn" class="default-blue-btn"
type="primary" type="primary"
...@@ -110,6 +110,10 @@ export default { ...@@ -110,6 +110,10 @@ export default {
merchantId: { merchantId: {
type: String, type: String,
default: "" default: ""
},
merchantName: {
type: String,
default: ""
} }
}, },
...@@ -149,7 +153,7 @@ export default { ...@@ -149,7 +153,7 @@ export default {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
{ {
name: "dowloadList", name: "新车交付明细",
exportParam: JSON.stringify(params), exportParam: JSON.stringify(params),
status: "waiting", status: "waiting",
timeid: new Date().getTime() timeid: new Date().getTime()
......
...@@ -3,13 +3,8 @@ ...@@ -3,13 +3,8 @@
<div> <div>
<d2-container> <d2-container>
<div class="header" slot="header" style="padding: 10px 20px"> <div class="header" slot="header" style="padding: 10px 20px">
<d2-search <d2-search ref="showSearch" class="show-search" label-width="140px" :search-form="searchForm"
ref="showSearch" :form-data="showFormData" />
class="show-search"
labelWidth="140px"
:search-form="searchForm"
:form-data="showFormData"
/>
<div class="up-btns"> <div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch"> <el-button size="small" type="primary" @click="handleSearch">
查询 查询
...@@ -24,53 +19,27 @@ ...@@ -24,53 +19,27 @@
<el-radio-button label="Week"> 本周 </el-radio-button> <el-radio-button label="Week"> 本周 </el-radio-button>
<el-radio-button label="Month"> 本月 </el-radio-button> <el-radio-button label="Month"> 本月 </el-radio-button>
</el-radio-group> </el-radio-group>
<el-date-picker <el-date-picker size="mini" v-model="dateValue" type="daterange" range-separator="至" start-placeholder="开始日期"
size="mini" end-placeholder="结束日期" value-format="yyyy-MM-dd" />
v-model="dateValue" <el-button size="small" class="default-blue-btn" type="primary" @click="handleExport">导出</el-button>
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
value-format="yyyy-MM-dd"
/>
<el-button
size="small"
class="default-blue-btn"
type="primary"
@click="handleExport"
>导出</el-button
>
</div> </div>
<d2-table <d2-table :has-num="false" :array-span-method="arraySpanMethod" :table-params="tableParams" ref="table"
:hasNum="false" @refreshTable="handleSearch" :table-data="tableData" :table-total="tableTotal">
:array-span-method="arraySpanMethod"
:table-params="tableParams"
ref="table"
@refreshTable="handleSearch"
:table-data="tableData"
:table-total="tableTotal"
>
<div slot="newCar" slot-scope="scope"> <div slot="newCar" slot-scope="scope">
<span @click="showDialog(scope.scope)" class="jump-a">{{ <span v-if="isShowJump(scope.scope)" @click="showDialog(scope.scope)" class="jump-a">{{
scope.scope.deliveryCount || "--" scope.scope.deliveryCount || "--" }}</span>
}}</span> <span v-else>
{{ scope.scope.deliveryCount || "--" }}
</span>
</div> </div>
<auth-button <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
slot="auth-button"
slot-scope="scope"
:data="scope.scope"
/>
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
<!-- 查看 --> <!-- 查看 -->
<car-dialog <car-dialog :detail-visible="detailVisible" :merchant-id="merchantId" :merchant-name="merchantName"
:detail-visible="detailVisible" v-if="detailVisible" @dialogClose="dialogClose" />
:merchantId="merchantId"
v-if="detailVisible"
@dialogClose="dialogClose"
/>
</div> </div>
</template> </template>
...@@ -86,7 +55,7 @@ import { ...@@ -86,7 +55,7 @@ import {
} from "@/api/permeation.js" } from "@/api/permeation.js"
import carDialog from "./components/carDialog" import carDialog from "./components/carDialog"
const isSelect = [ const isSelect = [
{ label: "是", value: 0 }, { label: "否", value: 0 },
{ label: "近两个月出单", value: 1 }, { label: "近两个月出单", value: 1 },
{ label: "近三个月出单", value: 2 } { label: "近三个月出单", value: 2 }
] ]
...@@ -96,8 +65,11 @@ export default { ...@@ -96,8 +65,11 @@ export default {
}, },
data() { data() {
return { return {
searchForm: {}, searchForm: {
staffType: 0
},
merchantId: "", merchantId: "",
merchantName: "",
tableTotal: 0, tableTotal: 0,
totalType: "today", totalType: "today",
dateValue: "", dateValue: "",
...@@ -108,6 +80,7 @@ export default { ...@@ -108,6 +80,7 @@ export default {
name: "merchantNameList", name: "merchantNameList",
type: "select", type: "select",
multiple: true, multiple: true,
collapseTags: true,
multipleLimit: 30, multipleLimit: 30,
optionList: [], optionList: [],
optionId: "merchantName", optionId: "merchantName",
...@@ -259,10 +232,16 @@ export default { ...@@ -259,10 +232,16 @@ export default {
}, },
methods: { methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]), ...mapActions("d2admin/user", ["actionSetDownloadList"]),
isShowJump(row) {
return (
["合计/最终", "渗透率(%)"].includes(row.staffName) &&
row.deliveryCount
)
},
getList() { getList() {
this.$nextTick(() => { this.$nextTick(() => {
let params = this.getPramms(), let params = this.getPramms()
page = this.$refs.table ? this.$refs.table.page : this.page const page = this.$refs.table ? this.$refs.table.page : this.page
params = { params = {
...page, ...page,
...params ...params
...@@ -302,9 +281,10 @@ export default { ...@@ -302,9 +281,10 @@ export default {
}, },
showDialog(row) { showDialog(row) {
this.merchantId = row.merchantId this.merchantId = row.merchantId
this.merchantName = row.merchantName
this.detailVisible = true this.detailVisible = true
}, },
//合并表格列 // 合并表格列
// arraySpanMethod({ row, column, rowIndex, columnIndex }) { // arraySpanMethod({ row, column, rowIndex, columnIndex }) {
// if ([0, 1, 2].includes(columnIndex)) { // if ([0, 1, 2].includes(columnIndex)) {
// if (rowIndex % row.count === 0) { // if (rowIndex % row.count === 0) {
...@@ -316,9 +296,9 @@ export default { ...@@ -316,9 +296,9 @@ export default {
// }, // },
arraySpanMethod({ row, column, rowIndex, columnIndex }) { arraySpanMethod({ row, column, rowIndex, columnIndex }) {
// 合并行列产品名字相同合并(计算组长度以内的列,需要进行合并操作的列) // 合并行列产品名字相同合并(计算组长度以内的列,需要进行合并操作的列)
let mergeLength = 3 //需要进行横纵合并的列 const mergeLength = 3 // 需要进行横纵合并的列
if (columnIndex < mergeLength) { if (columnIndex < mergeLength) {
let finArray = [1, 1] const finArray = [1, 1]
// 处理行数据 // 处理行数据
// console.log(cgname); // console.log(cgname);
if ( if (
...@@ -326,7 +306,7 @@ export default { ...@@ -326,7 +306,7 @@ export default {
row.merchantId !== this.tableData[rowIndex - 1].merchantId row.merchantId !== this.tableData[rowIndex - 1].merchantId
) { ) {
let rowspan = 1 let rowspan = 1
//计算需要进行合并操作的行 // 计算需要进行合并操作的行
for (let i = 0; i < this.tableData.length - 1; i++) { for (let i = 0; i < this.tableData.length - 1; i++) {
// 只合并连续的 // 只合并连续的
if ( if (
...@@ -408,13 +388,15 @@ export default { ...@@ -408,13 +388,15 @@ export default {
this.getList() this.getList()
}, },
handleReset() { handleReset() {
this.searchForm = {} this.searchForm = {
staffType: 0
}
this.getList() this.getList()
}, },
handleExport() { handleExport() {
var params = this.searchFormSearch var params = this.getPramms()
for (let k in params) { for (const k in params) {
if (params[k].length == 0) { if (params[k].length == 0) {
delete params[k] delete params[k]
} }
...@@ -423,15 +405,14 @@ export default { ...@@ -423,15 +405,14 @@ export default {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
{ {
name: "dowloadList", name: "渗透率报表",
exportParam: JSON.stringify(params), exportParam: params,
status: "waiting", status: "waiting",
timeid: new Date().getTime() timeid: new Date().getTime()
} }
] ]
this.actionSetDownloadList({ list, type: "dowloadList" }) this.actionSetDownloadList({ list, type: "dowloadList" })
}, },
dialogClose(flag) { dialogClose(flag) {
this.detailVisible = !this.detailVisible this.detailVisible = !this.detailVisible
// if (flag) { // if (flag) {
...@@ -439,7 +420,7 @@ export default { ...@@ -439,7 +420,7 @@ export default {
// } // }
}, },
//撤销 // 撤销
handleRevoke(row) { handleRevoke(row) {
this.$confirm( this.$confirm(
"发货单撤销后同步删除该发货记录,且无法撤回;是否确定撤销?", "发货单撤销后同步删除该发货记录,且无法撤回;是否确定撤销?",
...@@ -469,21 +450,26 @@ export default { ...@@ -469,21 +450,26 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.jump-a { .jump-a {
cursor: pointer; cursor: pointer;
color: #185efe; color: #185efe;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
margin-right: 10px; margin-right: 10px;
} }
.date-container { .date-container {
margin-bottom: 10px; margin-bottom: 10px;
display: flex; display: flex;
.default-blue-btn { .default-blue-btn {
margin-left: auto; margin-left: auto;
} }
::v-deep { ::v-deep {
.el-date-editor { .el-date-editor {
margin-left: 10px; margin-left: 10px;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-form label-width="154px" :model="storeForm" ref="storeRef" :rules="storeRules"> <el-form label-width="154px" :model="storeForm" ref="storeRef" :rules="storeRules">
<el-form-item label="门店名称:">{{ storeForm.merchantName }}</el-form-item> <el-form-item label="门店名称:">{{ storeForm.merchantName }}</el-form-item>
<el-form-item label="权益销售模式:"> <el-form-item label="权益销售模式:">
<el-radio-group v-model="storeForm.mode" :disabled="isEdit"> <el-radio-group v-model="storeForm.mode" :disabled="isEdit || storeForm.packageFlag == 1">
<el-radio v-for="(item, index) in modeList" :label="item.value" :key="index">{{ item.label }}</el-radio> <el-radio v-for="(item, index) in modeList" :label="item.value" :key="index">{{ item.label }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
<span class="seversName" <span class="seversName"
v-for="(item, itemIndex) in storeForm.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList" v-for="(item, itemIndex) in storeForm.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList"
:key="itemIndex">{{ item.serviceName }}{{ :key="itemIndex">{{ item.serviceName }}{{
storeForm.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList.length - 1 == itemIndex ? '' : '、' storeForm.quotationGoodsInfo.quotationGoodsServiceItemsRelationDTOList.length - 1 == itemIndex ? '' :
'、'
}}</span> }}</span>
</div> </div>
</div> </div>
...@@ -83,7 +84,8 @@ ...@@ -83,7 +84,8 @@
</div> </div>
<div class="insurance-bg"> <div class="insurance-bg">
<el-checkbox label="distributeThirdParty">第三责任险</el-checkbox><br /> <el-checkbox label="distributeThirdParty">第三责任险</el-checkbox><br />
<el-select :disabled="isEdit" v-model="storeForm.distributeThirdParty" placeholder="请选择" filterable> <el-select :disabled="isEdit" v-model="storeForm.distributeThirdParty" placeholder="请选择"
filterable>
<template v-for="item in 100"> <template v-for="item in 100">
<el-option :label="item + '%'" :value="item" :key="item"></el-option> <el-option :label="item + '%'" :value="item" :key="item"></el-option>
</template> </template>
...@@ -452,6 +454,9 @@ export default { ...@@ -452,6 +454,9 @@ export default {
console.log(res) console.log(res)
if (res) { if (res) {
this.storeForm = Object.assign(this.storeForm, res, { mode: res.mode != null ? res.mode : 0 }) this.storeForm = Object.assign(this.storeForm, res, { mode: res.mode != null ? res.mode : 0 })
if (this.storeForm.packageFlag == 1) {
this.storeForm.mode = 1
}
// if (this.storeForm.mode == 1) { // if (this.storeForm.mode == 1) {
// this.form.vdRuleIntervalList = res.vdRuleIntervalList.map((item) => { // this.form.vdRuleIntervalList = res.vdRuleIntervalList.map((item) => {
// const { id, ruleId, reorder, low, high, recommendation, minimum } = item // const { id, ruleId, reorder, low, high, recommendation, minimum } = item
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
style="width: 500px;"> style="width: 500px;">
<el-table-column label="序号" type="index" align="center" width="100px" /> <el-table-column label="序号" type="index" align="center" width="100px" />
<el-table-column label="分类名称" align="center"> <el-table-column label="分类名称" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.goodsTypeName }} {{ scope.row.goodsTypeName }}
</template> </template>
...@@ -88,11 +89,13 @@ ...@@ -88,11 +89,13 @@
<el-table-column label="序号" type="index" align="center" width="50px" /> <el-table-column label="序号" type="index" align="center" width="50px" />
<el-table-column prop="upgradeGoodsName" align="center" label="商品名称"></el-table-column> <el-table-column prop="upgradeGoodsName" align="center" label="商品名称"></el-table-column>
<el-table-column prop="thumbUrl" align="center" label="商品图"> <el-table-column prop="thumbUrl" align="center" label="商品图">
<template slot-scope="scope"> <template slot-scope="scope">
<img :src="scope.row.thumbUrl" style="width: 50px; height: 50px" /> <img :src="scope.row.thumbUrl" style="width: 50px; height: 50px" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="sellPrice" align="center" label="价格"> <el-table-column prop="sellPrice" align="center" label="价格">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.sellPrice }}</span> <span>{{ scope.row.sellPrice }}</span>
</template> </template>
...@@ -103,16 +106,19 @@ ...@@ -103,16 +106,19 @@
<el-table-column label="序号" type="index" align="center" width="50px" /> <el-table-column label="序号" type="index" align="center" width="50px" />
<el-table-column prop="upgradeGoodsName" align="center" label="商品名称"></el-table-column> <el-table-column prop="upgradeGoodsName" align="center" label="商品名称"></el-table-column>
<el-table-column prop="thumbUrl" align="center" label="商品图"> <el-table-column prop="thumbUrl" align="center" label="商品图">
<template slot-scope="scope"> <template slot-scope="scope">
<img :src="scope.row.thumbUrl" style="width: 50px; height: 50px" /> <img :src="scope.row.thumbUrl" style="width: 50px; height: 50px" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="sellPrice" align="center" label="价格"> <el-table-column prop="sellPrice" align="center" label="价格">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.sellPrice }}</span> <span>{{ scope.row.sellPrice }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="conversionRate" align="center" label="目标转化率"> <el-table-column prop="conversionRate" align="center" label="目标转化率">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <span>{{ scope.row.goodsInfo.shopPrice }}</span> --> <!-- <span>{{ scope.row.goodsInfo.shopPrice }}</span> -->
<!-- --> <!-- -->
...@@ -126,6 +132,7 @@ ...@@ -126,6 +132,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="conversionRatePercentage" align="center" label="提成系数"> <el-table-column prop="conversionRatePercentage" align="center" label="提成系数">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <span>{{ scope.row.goodsInfo.shopPrice }}</span> --> <!-- <span>{{ scope.row.goodsInfo.shopPrice }}</span> -->
<el-input v-model="scope.row.conversionRatePercentage" <el-input v-model="scope.row.conversionRatePercentage"
...@@ -136,6 +143,7 @@ ...@@ -136,6 +143,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="customerUnitPrice" align="center" label="目标客单价"> <el-table-column prop="customerUnitPrice" align="center" label="目标客单价">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <span>{{ scope.row.goodsInfo.shopPrice }}</span> --> <!-- <span>{{ scope.row.goodsInfo.shopPrice }}</span> -->
<el-input v-model="scope.row.customerUnitPrice" <el-input v-model="scope.row.customerUnitPrice"
...@@ -146,6 +154,7 @@ ...@@ -146,6 +154,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="customerUnitPricePercentage" align="center" label="提成系数"> <el-table-column prop="customerUnitPricePercentage" align="center" label="提成系数">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <span>{{ scope.row.goodsInfo.shopPrice }}</span> --> <!-- <span>{{ scope.row.goodsInfo.shopPrice }}</span> -->
<el-input v-model="scope.row.customerUnitPricePercentage" <el-input v-model="scope.row.customerUnitPricePercentage"
...@@ -201,10 +210,11 @@ ...@@ -201,10 +210,11 @@
</selectGoodsTypeDialog> </selectGoodsTypeDialog>
<selectGoodsDialog :store-config-con-obj-search-obj="storeConfigConObjSearchObj" :period-item-form="periodItemForm" <selectGoodsDialog :store-config-con-obj-search-obj="storeConfigConObjSearchObj" :period-item-form="periodItemForm"
:package-list="periodItemForm.packageList" :goods-type-list="periodItemForm.goodsTypeList" :package-list="periodItemForm.packageList" :goods-type-list="periodItemForm.goodsTypeList"
:dialog-visible.sync="goodsDialogVisible" @handleAddConfirm="handleAddConfirmSelectGoods" v-if="goodsDialogVisible"> :dialog-visible.sync="goodsDialogVisible" @handleAddConfirm="handleAddConfirmSelectGoods"
v-if="goodsDialogVisible">
</selectGoodsDialog> </selectGoodsDialog>
<selectCarDialog v-if="carDialogVisible" :single-choice="false" @handleClose="handleClose" :echo-data="echoData || []" <selectCarDialog v-if="carDialogVisible" :single-choice="false" @handleClose="handleClose"
@handleConfirm="handleConfirm" :dialog-visible="carDialogVisible"> :echo-data="echoData || []" @handleConfirm="handleConfirm" :dialog-visible="carDialogVisible">
</selectCarDialog> </selectCarDialog>
</div> </div>
</template> </template>
...@@ -490,7 +500,8 @@ export default { ...@@ -490,7 +500,8 @@ export default {
// 只能输入两个小数 // 只能输入两个小数
// eslint-disable-next-line no-useless-escape // eslint-disable-next-line no-useless-escape
newValue = newValue.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3") newValue = newValue.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")
if (newValue > 100) newValue = 100 // 先去除这个最大100 的校验
if (newValue > 1000) newValue = 999
if (newValue < 0) newValue = 0 if (newValue < 0) newValue = 0
console.log(newValue) console.log(newValue)
...@@ -593,8 +604,8 @@ export default { ...@@ -593,8 +604,8 @@ export default {
// }, // },
handleUpgradeNum(newVal, name) { handleUpgradeNum(newVal, name) {
console.log('newVal', newVal, name) console.log('newVal', newVal, name)
let maxLength = 5 let maxLength = 3
let maxNum = 100 let maxNum = 1000
if (['customerUnitPrice', 'minCarPrice', 'maxCarPrice'].includes(name)) { if (['customerUnitPrice', 'minCarPrice', 'maxCarPrice'].includes(name)) {
maxLength = 6 maxLength = 6
maxNum = 999999 maxNum = 999999
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
trigger: ['change', 'blur'] trigger: ['change', 'blur']
} }
]"> ]">
<el-select v-model="classificationObj.categoryType"> <el-select v-model="classificationObj.categoryType" @change="clearValidate">
<el-option :key="1" label="按商品分类" :value="1"></el-option> <el-option :key="1" label="按商品分类" :value="1"></el-option>
<el-option :key="2" label="按具体商品" :value="2"></el-option> <el-option :key="2" label="按具体商品" :value="2"></el-option>
<el-option :key="3" label="按具体套餐" :value="3"></el-option> <el-option :key="3" label="按具体套餐" :value="3"></el-option>
...@@ -1122,6 +1122,11 @@ export default { ...@@ -1122,6 +1122,11 @@ export default {
...mapMutations('FinancialRules', [ ...mapMutations('FinancialRules', [
'setGoodsSource', 'delGoodsSource' 'setGoodsSource', 'delGoodsSource'
]), ]),
clearValidate() {
this.$refs.classification.clearValidate(['goodsTypes', 'upgradeGoods', 'packageGoods'])
this.copyUpgradeGoodsList = deepClone(this.upgradeGoodsList)
this.copyPackageGoodsList = deepClone(this.packageGoodsList)
},
/* 合并表头最后两项*/ /* 合并表头最后两项*/
headerCellStyle({ row, columnIndex }) { headerCellStyle({ row, columnIndex }) {
// 这里 row[5] 为表头倒数第二列, row[6] 为倒数第一列 // 这里 row[5] 为表头倒数第二列, row[6] 为倒数第一列
...@@ -1220,9 +1225,11 @@ export default { ...@@ -1220,9 +1225,11 @@ export default {
// 或者商品套餐 // 或者商品套餐
getSelectingListPackage(defaultSelect = []) { getSelectingListPackage(defaultSelect = []) {
merchantPackageGoodsInfoPage({ merchantPackageGoodsInfoPage({
packageName: this.packageNameKeyword, matchPackageNameOrCode: this.packageNameKeyword,
currentPage: this.currentPagePackage, currentPage: this.currentPagePackage,
pageSize: this.pageSizePackage pageSize: this.pageSizePackage,
status: 1,
sceneType: this.routerInfo.scene
}).then(res => { }).then(res => {
console.log(res, 'merchantPackageGoodsInfoPage') console.log(res, 'merchantPackageGoodsInfoPage')
this.allPagesPackage = res.pages this.allPagesPackage = res.pages
...@@ -1605,7 +1612,10 @@ export default { ...@@ -1605,7 +1612,10 @@ export default {
recoveryCostFlag: obj.recoveryCostFlag, recoveryCostFlag: obj.recoveryCostFlag,
goodsCostFlag: obj.goodsCostFlag, goodsCostFlag: obj.goodsCostFlag,
goodsSource: obj.goodsSource, goodsSource: obj.goodsSource,
groupType groupType,
goodsTypes,
upgradeGoods,
packageGoods
} }
// 根据商品来源去除无用字段 // 根据商品来源去除无用字段
return obj.goodsSource != 1 ? returnObj : { ...returnObj, categoryType: obj.categoryType, goodsTypeGroupRelations: obj.categoryType == 1 ? goodsTypes : obj.categoryType == 2 ? upgradeGoods : packageGoods } return obj.goodsSource != 1 ? returnObj : { ...returnObj, categoryType: obj.categoryType, goodsTypeGroupRelations: obj.categoryType == 1 ? goodsTypes : obj.categoryType == 2 ? upgradeGoods : packageGoods }
......
...@@ -130,7 +130,6 @@ import { deepClone } from '@/common/util' ...@@ -130,7 +130,6 @@ import { deepClone } from '@/common/util'
import { import {
scenemerchantrefQueryServiceRefByShop, merchantSettleDistributeRuleLastRule, merchantSettleDistributeRule, getMerchantLevelApi, getDjzhySubMerchant, scenemerchantrefQueryServiceRefByShop, merchantSettleDistributeRuleLastRule, merchantSettleDistributeRule, getMerchantLevelApi, getDjzhySubMerchant,
ruleAuditSituation ruleAuditSituation
// getLedgerHistoryRecordApi
} from '@api/merchant' } from '@api/merchant'
import { getPlatformMerchantList } from '@api/index' import { getPlatformMerchantList } from '@api/index'
...@@ -722,7 +721,8 @@ export default { ...@@ -722,7 +721,8 @@ export default {
// goodsNameKeyword: this.goodsNameKeyword, // goodsNameKeyword: this.goodsNameKeyword,
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
status: 1 status: 1,
sceneType: this.routerInfo.scene
}).then(res => { }).then(res => {
console.log(res, 'merchantPackageGoodsInfoPage') console.log(res, 'merchantPackageGoodsInfoPage')
// this.allPages = res.pages // this.allPages = res.pages
...@@ -850,14 +850,15 @@ export default { ...@@ -850,14 +850,15 @@ export default {
this.currentIndex = newTabIndex this.currentIndex = newTabIndex
}, },
removeTab(targetName) { removeTab(targetName) {
// console.log(targetName) console.log(targetName)
if (this.editableTabs.length <= 1) return false if (this.editableTabs.length <= 1) return false
// console.log(`classification${targetName}`) // console.log(`classification${targetName}`)
// 去除对应关闭tab下已选的商品 // 去除对应关闭tab下已选的商品
const childCop = this.$refs[`classification${targetName}`][0] const childCop = this.$refs[`classification${targetName}`][0]
console.log(childCop.getParams(), 'childCop')
const childParams = childCop.getParams() const childParams = childCop.getParams()
this.deleteSelectGoodsTypeList(childParams.goodsTypes) this.deleteSelectGoodsTypeList(childParams.goodsTypes)
this.deleteSelectUpgradeGoodsList(childParams.upgradeGoods) this.deleteSelectUpgradeGoodsList(childParams.goodsTypeGroupRelations)
this.deleteSelectPackageGoodsList(childParams.packageGoods) this.deleteSelectPackageGoodsList(childParams.packageGoods)
// 判断当前tab是否有回显的数组对应 有删除 // 判断当前tab是否有回显的数组对应 有删除
const tabIndex = this.editableTabs.findIndex(item => item.name == targetName) const tabIndex = this.editableTabs.findIndex(item => item.name == targetName)
...@@ -914,6 +915,7 @@ export default { ...@@ -914,6 +915,7 @@ export default {
}, []) }, [])
}, },
deleteSelectUpgradeGoodsList(list) { deleteSelectUpgradeGoodsList(list) {
console.log(list, this.selectUpgradeGoodsList, 'this.selectUpgradeGoodsList')
this.selectUpgradeGoodsList = this.selectUpgradeGoodsList.reduce((arr, item) => { this.selectUpgradeGoodsList = this.selectUpgradeGoodsList.reduce((arr, item) => {
if (list && list.findIndex(el => item?.upgradeGoodsId == el?.upgradeGoodsId) == -1) { if (list && list.findIndex(el => item?.upgradeGoodsId == el?.upgradeGoodsId) == -1) {
arr.push(item) arr.push(item)
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
trigger: ['change', 'blur'] trigger: ['change', 'blur']
} }
]"> ]">
<el-select v-model="classificationObj.categoryType"> <el-select v-model="classificationObj.categoryType" @change="clearValidate">
<el-option :key="1" label="按商品分类" :value="1"></el-option> <el-option :key="1" label="按商品分类" :value="1"></el-option>
<el-option :key="2" label="按具体商品" :value="2"></el-option> <el-option :key="2" label="按具体商品" :value="2"></el-option>
<el-option :key="3" label="按具体套餐" :value="3"></el-option> <el-option :key="3" label="按具体套餐" :value="3"></el-option>
...@@ -378,6 +378,13 @@ export default { ...@@ -378,6 +378,13 @@ export default {
default() { default() {
return [] return []
} }
},
routerInfo: {
type: Object,
required: true,
default() {
return {}
}
} }
}, },
directives: { directives: {
...@@ -664,6 +671,11 @@ export default { ...@@ -664,6 +671,11 @@ export default {
...mapMutations('FinancialRules', [ ...mapMutations('FinancialRules', [
'setGoodsSourceReconciliation', 'delGoodsSourceReconciliation' 'setGoodsSourceReconciliation', 'delGoodsSourceReconciliation'
]), ]),
clearValidate() {
this.$refs.classification.clearValidate(['goodsTypes', 'upgradeGoods', 'packageGoods'])
this.copyUpgradeGoodsList = deepClone(this.upgradeGoodsList)
this.copyPackageGoodsList = deepClone(this.packageGoodsList)
},
// 获取商品数据 // 获取商品数据
remoteMethod(query) { remoteMethod(query) {
this.goodsNameKeyword = query this.goodsNameKeyword = query
...@@ -753,9 +765,11 @@ export default { ...@@ -753,9 +765,11 @@ export default {
// 或者商品套餐 // 或者商品套餐
getSelectingListPackage(defaultSelect = []) { getSelectingListPackage(defaultSelect = []) {
merchantPackageGoodsInfoPage({ merchantPackageGoodsInfoPage({
packageName: this.packageNameKeyword, matchPackageNameOrCode: this.packageNameKeyword,
currentPage: this.currentPagePackage, currentPage: this.currentPagePackage,
pageSize: this.pageSizePackage pageSize: this.pageSizePackage,
status: 1,
sceneType: this.routerInfo.scene
}).then(res => { }).then(res => {
console.log(res, 'merchantPackageGoodsInfoPage') console.log(res, 'merchantPackageGoodsInfoPage')
this.allPagesPackage = res.pages this.allPagesPackage = res.pages
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</span> </span>
<div class="classificationCptContainer"> <div class="classificationCptContainer">
<classificationCpt :goods-list="goodsTypeGroupRelations" :ref="`classification${item.name}`" <classificationCpt :goods-list="goodsTypeGroupRelations" :ref="`classification${item.name}`"
:goods-type-group-reconciliation-rules="goodsTypeGroupReconciliationRules" :router-info="routerInfo" :goods-type-group-reconciliation-rules="goodsTypeGroupReconciliationRules"
:goods-select-list="goodsSelectList" :query-fee-category-by-type-flow="queryFeeCategoryByTypeFlow" :goods-select-list="goodsSelectList" :query-fee-category-by-type-flow="queryFeeCategoryByTypeFlow"
:query-fee-category-by-type-serve="queryFeeCategoryByTypeServe" :tabindex="idx" :key="idx" :query-fee-category-by-type-serve="queryFeeCategoryByTypeServe" :tabindex="idx" :key="idx"
@assignGoodsTypeList="assignGoodsTypeList" @deleteGoodsTypeItem="deleteGoodsTypeItem" @assignGoodsTypeList="assignGoodsTypeList" @deleteGoodsTypeItem="deleteGoodsTypeItem"
...@@ -352,7 +352,9 @@ export default { ...@@ -352,7 +352,9 @@ export default {
merchantPackageGoodsInfoPage({ merchantPackageGoodsInfoPage({
// goodsNameKeyword: this.goodsNameKeyword, // goodsNameKeyword: this.goodsNameKeyword,
currentPage: 1, currentPage: 1,
pageSize: 20 pageSize: 20,
status: 1,
sceneType: this.routerInfo.scene
}).then(res => { }).then(res => {
console.log(res, 'merchantPackageGoodsInfoPage') console.log(res, 'merchantPackageGoodsInfoPage')
// this.allPages = res.pages // this.allPages = res.pages
......
...@@ -5328,6 +5328,11 @@ globby@^11.0.2, globby@^11.0.3: ...@@ -5328,6 +5328,11 @@ globby@^11.0.2, globby@^11.0.3:
merge2 "^1.4.1" merge2 "^1.4.1"
slash "^3.0.0" slash "^3.0.0"
glsx-common-sdk@^0.3.0:
version "0.3.0"
resolved "https://registry.npmjs.org/glsx-common-sdk/-/glsx-common-sdk-0.3.0.tgz#16e59e3883e8b599fc0fe26265f98126d76fcd86"
integrity sha512-hoTtZ2SEFzoJkW8aIYyb8ZOsaMqivCDOvPH6wvTLPXwFdMgZsls6E4nsTpOyC8WmPN5GmCB1QFyFCqTYsYE8Hg==
gopd@^1.0.1: gopd@^1.0.1:
version "1.0.1" version "1.0.1"
resolved "https://registry.npmmirror.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" resolved "https://registry.npmmirror.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c"
...@@ -9446,6 +9451,11 @@ sockjs@^0.3.24: ...@@ -9446,6 +9451,11 @@ sockjs@^0.3.24:
uuid "^8.3.2" uuid "^8.3.2"
websocket-driver "^0.7.4" websocket-driver "^0.7.4"
sortablejs@1.10.2:
version "1.10.2"
resolved "https://registry.npmjs.org/sortablejs/-/sortablejs-1.10.2.tgz#6e40364d913f98b85a14f6678f92b5c1221f5290"
integrity sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A==
"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.0.1, source-map-js@^1.0.2: "source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.0.1, source-map-js@^1.0.2:
version "1.0.2" version "1.0.2"
resolved "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" resolved "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
...@@ -10453,6 +10463,13 @@ vue@^2.6.10: ...@@ -10453,6 +10463,13 @@ vue@^2.6.10:
"@vue/compiler-sfc" "2.7.14" "@vue/compiler-sfc" "2.7.14"
csstype "^3.1.0" csstype "^3.1.0"
vuedraggable@^2.24.3:
version "2.24.3"
resolved "https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.3.tgz#43c93849b746a24ce503e123d5b259c701ba0d19"
integrity sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g==
dependencies:
sortablejs "1.10.2"
vuex@^3.0.1: vuex@^3.0.1:
version "3.6.2" version "3.6.2"
resolved "https://registry.npmmirror.com/vuex/-/vuex-3.6.2.tgz#236bc086a870c3ae79946f107f16de59d5895e71" resolved "https://registry.npmmirror.com/vuex/-/vuex-3.6.2.tgz#236bc086a870c3ae79946f107f16de59d5895e71"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!