Commit 5b2b7b71 by 前端

Merge branch 'SAAS+V4.53.0-0528' into 'master'

上线合并

See merge request !81
2 parents c8e2dfc1 8d68d7b0
...@@ -3,7 +3,11 @@ ...@@ -3,7 +3,11 @@
<div class="activity"> <div class="activity">
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset">
<template slot="merchantId">
<el-input v-model.trim="searchForm.merchantId" maxlength="11" placeholder="请输入商户号" @input="merchantIdInput"></el-input>
</template>
</GLCombiForm>
<div class="flex-between title"> <div class="flex-between title">
<div class="title-text">喜报列表</div> <div class="title-text">喜报列表</div>
<el-button :size="size" type="primary" class="battle-set-btn" @click="handlebattleOn()">新增</el-button> <el-button :size="size" type="primary" class="battle-set-btn" @click="handlebattleOn()">新增</el-button>
...@@ -42,9 +46,10 @@ export default { ...@@ -42,9 +46,10 @@ export default {
}, },
{ {
label: '商户号', label: '商户号',
name: 'merchantId', addHtml: 'merchantId'
type: 'input', // name: 'merchantId',
maxlength: 9 // type: 'input',
// maxlength: 9
}, },
{ {
label: '企微名称', label: '企微名称',
...@@ -100,6 +105,10 @@ export default { ...@@ -100,6 +105,10 @@ export default {
this.getMerchantList() this.getMerchantList()
}, },
methods: { methods: {
// 商户号输入限制仅输入数字
merchantIdInput(event) {
this.searchForm.merchantId = event?.replace(/[^0-9]/g, '')
},
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = JSON.parse(JSON.stringify(this.searchForm)) this.tableSearchForm = JSON.parse(JSON.stringify(this.searchForm))
......
...@@ -3,7 +3,11 @@ ...@@ -3,7 +3,11 @@
<div class="activity"> <div class="activity">
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset">
<template slot="unionMerchantId">
<el-input v-model.trim="searchForm.unionMerchantId" maxlength="11" placeholder="请输入商户号" @input="merchantIdInput"></el-input>
</template>
</GLCombiForm>
<div class="flex-between title"> <div class="flex-between title">
<div class="title-text">喜报列表</div> <div class="title-text">喜报列表</div>
</div> </div>
...@@ -42,9 +46,10 @@ export default { ...@@ -42,9 +46,10 @@ export default {
}, },
{ {
label: '商户号', label: '商户号',
name: 'unionMerchantId', addHtml: 'unionMerchantId'
type: 'input', // name: 'unionMerchantId',
maxlength: 11 // type: 'input',
// maxlength: 11
}, },
{ {
label: '4S店', label: '4S店',
...@@ -95,6 +100,10 @@ export default { ...@@ -95,6 +100,10 @@ export default {
}, },
methods: { methods: {
// 商户号输入限制仅输入数字
merchantIdInput(event) {
this.searchForm.unionMerchantId = event?.replace(/[^0-9]/g, '')
},
formatterContent(cellValue) { formatterContent(cellValue) {
let typeToTxt = new Map([ let typeToTxt = new Map([
[5, '#1.SA个人喜报>>'], [5, '#1.SA个人喜报>>'],
......
...@@ -3,7 +3,11 @@ ...@@ -3,7 +3,11 @@
<div class="activity"> <div class="activity">
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset">
<template slot="unionMerchantId">
<el-input v-model.trim="searchForm.unionMerchantId" maxlength="11" placeholder="请输入商户号" @input="merchantIdInput"></el-input>
</template>
</GLCombiForm>
<div class="flex-between title"> <div class="flex-between title">
<div class="title-text">专员列表</div> <div class="title-text">专员列表</div>
<!-- <el-button :size="size" <!-- <el-button :size="size"
...@@ -922,9 +926,10 @@ export default { ...@@ -922,9 +926,10 @@ export default {
}, },
{ {
label: '商户号', label: '商户号',
name: 'unionMerchantId', addHtml: 'unionMerchantId'
type: 'input', // name: 'unionMerchantId',
maxlength: 11 // type: 'input',
// maxlength: 11
}, },
{ {
label: '4S店', label: '4S店',
...@@ -1084,6 +1089,10 @@ export default { ...@@ -1084,6 +1089,10 @@ export default {
// } // }
}, },
methods: { methods: {
// 商户号输入限制仅输入数字
merchantIdInput(event) {
this.searchForm.unionMerchantId = event?.replace(/[^0-9]/g, '')
},
formatterContent(cellValue) { formatterContent(cellValue) {
let typeToTxt = new Map([ let typeToTxt = new Map([
[20, '#1.收款喜报>>'], [20, '#1.收款喜报>>'],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!