Commit 86b520c3 by 张立顺

fix 控制台报错修复

1 parent 6d9f21de
...@@ -33,6 +33,18 @@ export function merchantSettleDistributeRuleLastRule(data) { ...@@ -33,6 +33,18 @@ export function merchantSettleDistributeRuleLastRule(data) {
data.method = `dj.api.create.business.approve.detail.rule` data.method = `dj.api.create.business.approve.detail.rule`
return request(data) return request(data)
} }
// 保存财务分账规则
export function merchantSettleDistributeRule(data) {
data.method = `dj.api.serviceMerchant.merchantSettleDistributeRule.save`
return request(data, RequestMethods.POST)
}
// 获取嘀加智慧云子商户信息
export function getDjzhySubMerchant(data) {
data.method = `dj.api.serviceMerchant.merchantDivisionRule.djzhySubMerchant`
return request(data)
}
// 获取不同场景的商品分类 // 获取不同场景的商品分类
export function getGoodsCategoryConfiguration(data) { export function getGoodsCategoryConfiguration(data) {
data.currentPage = 1 data.currentPage = 1
......
<!-- 标签课程 --> <!-- 标签课程 -->
<template> <template>
<d2-container class="customer-tags"> <d2-container class="customer-tags">
<div class="header" slot="header"> <template #header>
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'" <div class="header">
:form-data="showFormData"> <d2-search ref="showSearch"
class="show-search"
:form-data="showFormData"
label-width="100px"
:search-form="searchForm">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch"> <el-button size="small"
type="primary"
@click="handleSearch">
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button> <el-button size="small" @click="handleReset">
重置
</el-button>
</div> </div>
</div> </div>
</template>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<el-button size="small" type="primary" @click="addLabelCourse"> <el-button size="small"
type="primary"
@click="addLabelCourse">
新增课程标签 新增课程标签
</el-button> </el-button>
</d2-table-header> </d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" <d2-table ref="table"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn"
<template slot="tagName" scope="scope"> :get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams">
<template #tagName="scope">
<!-- <div v-for="(item, index) in scope.scope.tagList.split(',')" :key="index"> <!-- <div v-for="(item, index) in scope.scope.tagList.split(',')" :key="index">
{{ item }} {{ item }}
</div> --> </div> -->
<el-tooltip class="item" effect="dark" placement="top"> <el-tooltip class="item"
<div slot="content" class="tag-name"> effect="dark"
<div v-for="(item, index) in scope.scope.tagList.split(',')" :key="index">{{ item }}</div> placement="top">
<template #content>
<div class="tag-name">
<div v-for="(item, index) in scope.scope.tagList.split(',')" :key="index">
{{ item }}
</div> </div>
</div>
</template>
<div> <div>
{{ scope.scope.tagList.split(',')[0] + (scope.scope.tagList.split(',').length == 1 ? '' : '...') + ' ' + {{ `${scope.scope.tagList.split(',')[0] + (scope.scope.tagList.split(',').length == 1 ? '' : '...')} `
`(${scope.scope.tagList.split(',').length}条)` }} + `(${scope.scope.tagList.split(',').length}条)` }}
</div> </div>
</el-tooltip> </el-tooltip>
</template> </template>
<template slot="courseList" scope="scope"> <template #courseList="scope">
<el-tooltip v-for="(item, index) in scope.scope.courseList.split(',')" :key="index" class="item" effect="dark" <el-tooltip v-for="(item, index) in scope.scope.courseList.split(',')"
:content="item" placement="top"> :key="index"
class="item"
:content="item"
effect="dark"
placement="top">
<div class="one-line-ellipsis"> <div class="one-line-ellipsis">
{{ item }} {{ item }}
</div> </div>
</el-tooltip> </el-tooltip>
</template> </template>
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> <template #auth-button="scope">
<auth-button :data="scope.scope" />
</template>
</d2-table> </d2-table>
</div> </div>
<labelCourseDialog :recordInfo="recordInfo" v-if="dialogVisible" :dialogVisible.sync="dialogVisible" <LabelCourseDialog v-if="dialogVisible"
:dialogVisible.sync="dialogVisible"
:record-info="recordInfo"
@confirmDialogFn="confirmDialogFn"> @confirmDialogFn="confirmDialogFn">
</labelCourseDialog> </LabelCourseDialog>
</d2-container> </d2-container>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import labelCourseDialog from "./labelCourseDialog"
import { Util, deepClone } from "@/common/util"
import { import {
findStaffTagCourseRelationPage,
deletecourserelation, deletecourserelation,
updatecourserelation, findStaffTagCourseRelationPage,
savecourserelation } from "@api/contentManager";
} from "@api/contentManager" import noDataImg from "@/assets/empty.png";
import noDataImg from "@/assets/empty.png" import { deepClone, Util } from "@/common/util";
import dayjs from "dayjs" import labelCourseDialog from "./labelCourseDialog";
export default { export default {
name: "labelCourse", name: "LabelCourse",
components: { components: {
labelCourseDialog LabelCourseDialog: labelCourseDialog,
}, },
data() { data() {
return { return {
...@@ -76,7 +102,7 @@ export default { ...@@ -76,7 +102,7 @@ export default {
classifyVisible: false, classifyVisible: false,
searchForm: { searchForm: {
courseName: "", courseName: "",
tagName: "" tagName: "",
// bussinessScene: "", // bussinessScene: "",
// merchantId: "", // merchantId: "",
// scriptMatching: "", // scriptMatching: "",
...@@ -92,14 +118,14 @@ export default { ...@@ -92,14 +118,14 @@ export default {
name: "tagName", name: "tagName",
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 50 maxlength: 50,
}, },
{ {
label: "课程名称", label: "课程名称",
name: "courseName", name: "courseName",
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 50 maxlength: 50,
}, },
], ],
getListApi: findStaffTagCourseRelationPage, getListApi: findStaffTagCourseRelationPage,
...@@ -107,7 +133,7 @@ export default { ...@@ -107,7 +133,7 @@ export default {
tableParams: { tableParams: {
listName: "list", listName: "list",
tableOption: { tableOption: {
width: "100" width: "100",
}, },
tableColumns: [ tableColumns: [
{ {
...@@ -118,7 +144,7 @@ export default { ...@@ -118,7 +144,7 @@ export default {
{ {
label: "课程列表", label: "课程列表",
// minWidth: 144, // minWidth: 144,
addHtml: "courseList" addHtml: "courseList",
}, },
// { // {
// label: "销售姓名", // label: "销售姓名",
...@@ -160,22 +186,22 @@ export default { ...@@ -160,22 +186,22 @@ export default {
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 HH:mm:ss")
: "-" : "-";
}, },
width: 140 width: 140,
}, },
{ {
label: "最后更新时间", label: "最后更新时间",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.updatedDate return cellValue.updatedDate
? Util.dateFormate(cellValue.updatedDate, "YYYY-MM-DD HH:mm:ss") ? Util.dateFormate(cellValue.updatedDate, "YYYY-MM-DD HH:mm:ss")
: "-" : "-";
}, },
width: 140 width: 140,
} },
] ],
} },
} };
}, },
created() { }, created() { },
mounted() { mounted() {
...@@ -184,52 +210,52 @@ export default { ...@@ -184,52 +210,52 @@ export default {
methods: { methods: {
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);
resolve() resolve();
}) });
}, },
handleSearch() { handleSearch() {
this.page = this.$options.data.call(this).page this.page = this.$options.data.call(this).page;
this.$refs.table.refreshTable(true, true) this.$refs.table.refreshTable(true, true);
// this.getCustomerFileStatic() // this.getCustomerFileStatic()
}, },
handleReset() { handleReset() {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm;
this.handleSearch() this.handleSearch();
}, },
addLabelCourse() { addLabelCourse() {
this.recordInfo = null this.recordInfo = null;
this.dialogVisible = true this.dialogVisible = true;
}, },
customerTagName(list) { customerTagName(list) {
let tag = [] let tag = [];
list.map((e) => { list.map((e) => {
tag.push(e.labelName) tag.push(e.labelName);
}) });
return tag.join("|") return tag.join("|");
}, },
handleEdit(row) { handleEdit(row) {
console.log(row) console.log(row);
this.recordInfo = row this.recordInfo = row;
this.dialogVisible = true this.dialogVisible = true;
}, },
confirmDialogFn(e) { confirmDialogFn(e) {
this.handleSearch() this.handleSearch();
}, },
// 删除 // 删除
handleDelete(row) { handleDelete(row) {
this.$confirm('是否确认删除该课程?', '提示', { this.$confirm("是否确认删除该课程?", "提示", {
confirmButtonText: '确定', confirmButtonText: "确定",
cancelButtonText: '取消', cancelButtonText: "取消",
type: 'error' type: "error",
}).then(() => { }).then(() => {
deletecourserelation({ id: row.id }).then(res => { deletecourserelation({ id: row.id }).then((res) => {
this.notice.okTips() this.notice.okTips();
this.$refs.table.refreshTable() this.$refs.table.refreshTable();
}) });
}).catch(err => { }).catch((err) => {
console.log(err) console.log(err);
}) });
}, },
// jumpDetail(row) { // jumpDetail(row) {
// this.$router.push({ // this.$router.push({
...@@ -242,8 +268,8 @@ export default { ...@@ -242,8 +268,8 @@ export default {
// } // }
// }) // })
// } // }
} },
} };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
> >
<el-radio <el-radio
v-for="item in baseData.followStatusOptions" v-for="item in baseData.followStatusOptions"
:key="item.confId"
:label="item.confId" :label="item.confId"
>{{ item.confValue }}</el-radio >{{ item.confValue }}</el-radio
> >
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
> >
<el-radio <el-radio
v-for="item in baseData.followStatusOptions" v-for="item in baseData.followStatusOptions"
:key="item.confId"
:label="item.confId" :label="item.confId"
>{{ item.confValue }}</el-radio> >{{ item.confValue }}</el-radio>
</el-radio-group> </el-radio-group>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
</el-form-item> </el-form-item>
<el-form-item label="" <el-form-item label=""
v-for="(item, index1) in commLabelUnitList" v-for="(item, index1) in commLabelUnitList"
:key="item.commLabelGroupInfo.groupId || index1"
v-if="item.commLabelGroupInfo.groupType == '2'" v-if="item.commLabelGroupInfo.groupType == '2'"
class="flag-div"> class="flag-div">
<span class="tips-block" <span class="tips-block"
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
<div class="div_g"> <div class="div_g">
<el-form-item label="" <el-form-item label=""
v-for="(item, index1) in groupUnitList" v-for="(item, index1) in groupUnitList"
:key="item.groupId || index1"
v-if="item.groupType == '1'" v-if="item.groupType == '1'"
class="flag-div"> class="flag-div">
<span class="tips-block" <span class="tips-block"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!