Commit c53f9a43 by 王志慧

Merge branch 'v4.27.0' of http://192.168.3.233:8090/saas/scrm-micro-shop into v4.27.0

2 parents 672de5e6 7831a004
......@@ -206,12 +206,6 @@ export default {
},
tableOption: true,
tableColumns: [
// {
// label: '客户名称',
// prop: 'shopMerchantName',
// addHtml: 'shopMerchantName',
// minWidth: 120
// },
{
label: '员工姓名',
prop: 'staffName',
......@@ -355,6 +349,7 @@ export default {
year = year - 1;
month = 12;
}
month = month > 10 ? month : "0" + month
this.searchForm.performanceMonth = year.toString() + '-' + month;
},
getServiceCenterList() {
......
......@@ -53,126 +53,4 @@ export default {
}
</script>
<style scoped lang="scss">
.activity {
/deep/ {
.el-select .el-tag {
max-width: 60% !important;
}
.el-form-item__content {
overflow: inherit !important;
}
}
.container {
margin-top: 16px;
.title {
height: 32px;
line-height: 32px;
margin-bottom: 10px;
.title-text {
font-weight: 600;
font-size: 16px;
color: #333333;
margin-left: 4px;
}
}
}
.empty-btn {
position: absolute;
right: -40px;
top: 0px;
font-size: 14px;
color: #5850ff;
}
.config-pannel {
background: #f9f9f9;
width: 520px;
height: 168px;
display: flex;
.config-item {
padding: 26px 20px;
}
.clear-btn {
cursor: pointer;
background: #f1f1f1;
width: 40px;
height: 100%;
line-height: 20px;
font-size: 14px;
color: #666666;
padding: 60px 13px;
box-sizing: border-box;
}
}
.input-tag-wrapper {
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #666;
display: inline-block;
outline: none;
padding: 5px;
max-height: 68px;
overflow: auto;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 450px;
display: flex;
align-items: center;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
/deep/ .el-tag {
background-color: #fff !important;
margin-bottom: 4px;
}
}
.select-wrap {
.common {
margin: 4px 0;
height: 40px !important;
overflow: hidden;
/deep/ .el-input {
height: 40px !important;
line-height: 40px !important;
}
/deep/ .el-input__suffix {
height: 40px !important;
margin-top: -4px;
.is-reverse {
transform: rotate(180deg);
}
}
}
}
}
.search-groomname {
width: 252px;
margin: 12px 16px 0;
/deep/.el-input {
width: 252px;
}
}
.filter-tree {
padding: 0 16px;
}
.empty {
padding: 10px 0;
margin: 0;
text-align: center;
color: #999;
font-size: 13px;
}
.placeholder {
font-size: 14px;
color: #c0c6ce;
line-height: 20px;
}
</style>
......@@ -10,7 +10,7 @@
:isWatch="isWatch"
:labelWidth="defaultLabelWidth"
:isBlock="true"
:formRef="editChildRef"
:formRef="editServiceRef"
:formObj="editForm"
:formData="editFormData"
:formRules="editRule">
......@@ -51,7 +51,7 @@ export default {
data() {
return {
size: 'small',
editChildRef: 'editChildRef',
editServiceRef: 'editServiceRef',
routeInfo: {
editType: 'add',
id: ''
......@@ -70,7 +70,6 @@ export default {
},
editRule: {
shopMerchantId: [{ required: true, message: '请输入商户号', trigger: 'change' }],
// yqMerchantId: [{ required: true, message: '请选择所属服务中心', trigger: 'change' }],
yqMerchantName: [{ required: true, message: '请输入服务中心名称', trigger: 'change' }],
contactName: [{ required: true, message: '请输入联系人', trigger: 'change' }],
password: [{ required: true, message: '请输入登录密码', trigger: 'change' }],
......@@ -170,7 +169,7 @@ export default {
mounted() {
this.routeInfo = this.$route.query
this.routeInfo.editType != 'add' ? this.getInfo() : ''
this.userInfo = this.$globalState.session
// this.userInfo = this.$globalState.session
this.isWatch = this.routeInfo.editType != 'add'
if (this.routeInfo.editType == 'edit') {
// this.changeFormAttr('editFormData', 'isDisabled', ['所属服务中心'], true)
......@@ -179,55 +178,9 @@ export default {
let id = this.editFormData.findIndex(item => item.name == 'shopMerchantId')
this.editFormData.splice(id, 1)
}
// this.getServiceCenterList()
// this.findProByScene()
},
methods: {
// handleMutiSelctChange() {
// this.$refs.editFormRef.$refs[this.editChildRef].validateField('productCodeList')
// },
// changeFormAttr(formName, attrName, labelList, attrValue) {
// labelList.forEach(item => {
// let idx = this[formName].findIndex(k => k.label == item)
// this[formName][idx][attrName] = attrValue
// })
// },
// getServiceCenterList() {
// const params = {
// partnerMerchantId: this.userInfo.merchantId
// }
// this.$apis.customer.getServiceCenterList(params).then(res => {
// this.baseData.merchantList = res
// this.$utils.getOptionsList(this, 'editFormData', false)
// })
// },
// findProByScene() {
// this.$apis.customer.findProByScene({}).then(res => {
// this.baseData.sceneList = res
// if (this.routeInfo.editType == 'edit') {
// this.getSceneProStatus()
// }
// })
// },
// 获取开通状态
// getSceneProStatus() {
// const params = { merchant4sId: this.routeInfo.merchantInfo.shopMerchantId }
// this.$apis.customer.getSceneProStatus(params).then(res => {
// let productCodeList = []
// res.forEach(item => {
// item.productList.forEach(k => {
// if (k.productStatus == 2) {
// productCodeList.push(k.productCode)
// }
// })
// })
// this.$set(this.editForm, 'productCodeList', productCodeList)
// this.$nextTick(() => {
// this.editStatus = false
// })
// })
// },
getInfo() {
this.editForm = {
...this.$common.utils.deepClone(this.editForm),
......@@ -277,24 +230,12 @@ export default {
this.loading = false
})
},
// hasDuplicate(arr1, arr2) {
// const set1 = new Set(arr1)
// for (const num of arr2) {
// if (set1.has(num)) {
// return true
// }
// }
// return false
// },
handleConfirm() {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
this.$refs.editFormRef.$refs[this.editServiceRef].validate(valid => {
if (valid) {
var params = this.$common.utils.deepClone(this.editForm)
console.log(params);
// // 商户类型 1-服务中心 2-客户
// params.merchantType = 2
if (this.routeInfo.editType == 'edit') {
params.yqMerchantId = this.editForm.merchantId
// params.serviceCenterMerchantId = this.editForm.yqMerchantId
......
......@@ -40,18 +40,6 @@
</span>
</el-popover>
</div>
<!-- <div class="tb-ellipsis"
slot="yqMerchantName"
slot-scope="scope">
<el-popover placement="top"
popper-class="base-popper"
trigger="hover"
:content="scope.scope.yqMerchantName">
<span slot="reference">
{{ scope.scope.yqMerchantName }}
</span>
</el-popover>
</div> -->
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
......@@ -98,15 +86,6 @@ export default {
isClear: true,
maxlength: 20
},
// {
// label: '所属服务中心',
// name: 'yqMerchantId',
// type: 'select',
// optionList: [],
// optionId: 'yqMerchantId',
// optionLabel: 'yqMerchantName',
// optionsName: 'merchantList'
// }
],
tableButtonList: [
{
......@@ -120,28 +99,6 @@ export default {
click: row => this.handleEditService('edit', row)
}
},
// {
// type: 'GLButton',
// name: '查看',
// attrs: {
// type: 'text',
// fn: '查看'
// },
// listeners: {
// click: row => this.handleDetail(row)
// }
// },
// {
// type: 'GLButton',
// name: '邀请',
// attrs: {
// type: 'text',
// fn: '邀请'
// },
// listeners: {
// click: row => this.handleInvite(row)
// }
// }
],
// 表格
getListApi: this.$apis.serviceCenter.getList,
......@@ -185,11 +142,9 @@ export default {
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
isApplyVisible: false,
// isInviteVisible: false,
// inviteInfo: {},
// 基本数据
baseData: {
// merchantList: []
}
}
},
......@@ -199,18 +154,9 @@ export default {
},
mounted() {
this.userInfo = this.$globalState.session
// this.getServiceCenterList()
},
methods: {
// getServiceCenterList() {
// const params = {
// partnerMerchantId: this.userInfo.merchantId
// }
// this.$apis.customer.getServiceCenterList(params).then(res => {
// this.baseData.merchantList = res
// this.$utils.getOptionsList(this, 'showFormData')
// })
// },
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
return params
......@@ -234,13 +180,6 @@ export default {
handleApply() {
this.isApplyVisible = !this.isApplyVisible
},
// handleInviteClose() {
// this.isInviteVisible = !this.isInviteVisible
// },
// handleInvite(row) {
// this.inviteInfo = row
// this.handleInviteClose()
// },
handleEditService(editType, row) {
var params = {
editType: editType,
......@@ -254,16 +193,6 @@ export default {
query: params
})
},
// handleDetail(row) {
// console.log(row)
// this.$router.push({
// path: '/customerManage/customerDetail',
// query: {
// $title: encodeURI('查看销售顾问'),
// detailInfo: row
// }
// })
// }
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!