Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8701252c
authored
Dec 02, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
cfa587ef
39f19c11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
22 additions
and
38 deletions
src/components/glsx-combi-form/index.vue
src/views/classifyList/editClassify.vue
src/views/homeSet/index.vue
src/views/orderShare/editShare.vue
src/views/orderShare/index.vue
src/views/productGroup/editProduct.vue
src/views/productGroup/index.vue
src/views/productStore/editProductDh.vue
src/views/productStore/index.vue
src/views/takeGood/takeGoodDetail.vue
src/views/zoneList/editZone.vue
src/components/glsx-combi-form/index.vue
View file @
8701252
...
...
@@ -13,38 +13,38 @@
</span>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
></slot>
<div
v-else-if=
"item.type === 'input'"
>
<el-input
:placeholder=
"item.placeholder || '请输入' + item.label"
v-model
.
trim=
"formObj[item.name]"
:disabled=
"item.isDisabled"
:maxlength=
"item.maxlength"
:clearable=
"item.isClear || false"
:type=
"item.inputType || 'text'"
:rows=
"item.rows || 2"
:style=
"
{ width: item.width ||
'auto'
}" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" >
<el-input
:placeholder=
"item.placeholder || '请输入' + item.label"
v-model
.
trim=
"formObj[item.name]"
:disabled=
"item.isDisabled"
:maxlength=
"item.maxlength"
:clearable=
"item.isClear || false"
:type=
"item.inputType || 'text'"
:rows=
"item.rows || 2"
:style=
"
{ width: item.width ||
defaultWidth
}" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" >
<span
v-if=
"item.prepend"
slot=
"prepend"
>
{{
item
.
prepend
}}
</span>
<span
v-if=
"item.append"
slot=
"append"
>
{{
item
.
append
}}
</span>
</el-input>
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
</div>
<!-- 选择-输入框 -->
<el-input
v-else-if=
"item.type === 'selectInput'"
:placeholder=
"'请输入' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label"
:maxlength=
"item.maxlength"
v-model
.
trim=
"searchSelectObj[item.selectName].value"
:clearable=
"item.isClear || false"
:style=
"
{ width: item.inputWidth ||
'130px'
}" class="input-with-select">
<el-select
v-model=
"searchSelectObj[item.selectName].attr"
:style=
"
{ width: item.selectWidth ||
'130px'
}" slot="prepend" placeholder="请选择" @change="item.handleSelectChange">
<el-input
v-else-if=
"item.type === 'selectInput'"
:placeholder=
"'请输入' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label"
:maxlength=
"item.maxlength"
v-model
.
trim=
"searchSelectObj[item.selectName].value"
:clearable=
"item.isClear || false"
:style=
"
{ width: item.inputWidth ||
defaultWidth
}" class="input-with-select">
<el-select
v-model=
"searchSelectObj[item.selectName].attr"
:style=
"
{ width: item.selectWidth ||
labelWidth
}" slot="prepend" placeholder="请选择" @change="item.handleSelectChange">
<el-option
v-for=
"(subItem, subIndex) in item.selectOption"
:key=
"subIndex"
:label=
"subItem.label"
:value=
"subItem.name"
></el-option>
</el-select>
</el-input>
<!-- 选择-时间选择框 -->
<template
v-else-if=
"item.type === 'selectDatePicker'"
>
<el-select
v-model=
"searchSelectObj[item.selectName].attr"
style=
"width: 130px
"
placeholder=
"请选择"
@
change=
"item.handleSelectChange"
>
<el-select
v-model=
"searchSelectObj[item.selectName].attr"
:style=
"
{ width: item.selectWidth || labelWidth }
" placeholder="请选择" @change="item.handleSelectChange">
<el-option
v-for=
"(subItem, subIndex) in item.selectOption"
:key=
"subIndex"
:label=
"subItem.label"
:value=
"subItem.name"
></el-option>
</el-select>
<el-date-picker
v-model=
"searchSelectObj[item.selectName].value"
style=
"width: calc(100% - 130px)
"
:type=
"item.dateType || 'daterange'"
:clearable=
"item.isClear || false"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOption[item.pickerOptions]"
></el-date-picker>
<el-date-picker
v-model=
"searchSelectObj[item.selectName].value"
:style=
"
{ width: item.width || defaultWidth }
" :type="item.dateType || 'daterange'" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOption[item.pickerOptions]">
</el-date-picker>
</
template
>
<!-- 双选择框 -->
<
template
v-else-if=
"item.type === 'selectDouble'"
>
<el-select
v-model=
"searchSelectObj[item.selectName].attr"
style=
"width: 130px
"
placeholder=
"请选择"
@
change=
"item.handleSelectChange"
>
<el-select
v-model=
"searchSelectObj[item.selectName].attr"
:style=
"
{ width: item.selectWidth || labelWidth }
" placeholder="请选择" @change="item.handleSelectChange">
<el-option
v-for=
"(subItem, subIndex) in item.selectOption"
:key=
"subIndex"
:label=
"subItem.label"
:value=
"subItem.name"
></el-option>
</el-select>
<el-select
v-model=
"searchSelectObj[item.selectName].value"
style=
"width: calc(100% - 130px)
"
:placeholder=
"'请选择' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label"
>
<el-select
v-model=
"searchSelectObj[item.selectName].value"
:style=
"
{ width: item.width || defaultWidth }
" :placeholder="'请选择' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label">
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
v-for=
"subItem in item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).optionList"
:key=
"subItem[item.optionId]"
:label=
"subItem[item.optionLabel]"
:value=
"subItem[item.optionId]"
></el-option>
</el-select>
</
template
>
<!-- 选择框 -->
<div
v-else-if=
"item.type === 'select'"
>
<el-select
:style=
"{ width: item.width ||
'100%'
}"
v-model=
"formObj[item.name]"
:clearable=
"item.isClear || false"
:placeholder=
"'请选择' + item.label"
:filterable=
"!item.noFilter"
:disabled=
"item.isDisabled"
:no-data-text=
"item.noDataText || '无数据'"
:multiple=
"item.multiple || false"
:collapse-tags=
"item.collapseTags || true"
@
change=
"selectAddAttr($event, item)"
>
<el-select
:style=
"{ width: item.width ||
defaultWidth
}"
v-model=
"formObj[item.name]"
:clearable=
"item.isClear || false"
:placeholder=
"'请选择' + item.label"
:filterable=
"!item.noFilter"
:disabled=
"item.isDisabled"
:no-data-text=
"item.noDataText || '无数据'"
:multiple=
"item.multiple || false"
:collapse-tags=
"item.collapseTags || true"
@
change=
"selectAddAttr($event, item)"
>
<el-option
v-for=
"subItem in item.optionList"
:key=
"subItem[item.optionId]"
:label=
"subItem[item.optionLabel]"
:value=
"subItem[item.optionId]"
:disabled=
"subItem.isDisabled || false"
></el-option>
</el-select>
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
...
...
@@ -53,10 +53,10 @@
<el-radio-group
v-else-if=
"item.type === 'radio'"
v-model=
"formObj[item.name]"
:disabled=
"item.isDisabled"
@
change=
"item.handleRadioChange"
>
<el-radio
v-for=
"subItem in item.optionList"
:key=
"subItem[item.optionId]"
:label=
"subItem[item.optionId]"
>
{{ subItem[item.optionLabel] }}
</el-radio>
</el-radio-group>
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
v-model=
"formObj[item.name]"
:type=
"item.dateType || 'daterange'"
:clearable=
"item.isClear || false"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOption[item.pickerOptions]"
></el-date-picker>
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
v-model=
"formObj[item.name]"
:type=
"item.dateType || 'daterange'"
:
style=
"{ width: item.width || defaultWidth }"
:
clearable=
"item.isClear || false"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOption[item.pickerOptions]"
></el-date-picker>
<
template
v-else-if=
"item.type === 'upload'"
>
<p
class=
"photo-top-tips"
>
{{
item
.
topTips
}}
</p>
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width ||
'100%'
}">
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width ||
defaultWidth
}">
<div
v-if=
"Array.isArray(formObj[item.name]) ? formObj[item.name].length
< item
.
maxPhotoNum
:
!
formObj
[
item
.
name
]"
class=
"activity-img img-w-h"
>
<div
class=
"add"
>
+
</div>
<span
class=
"number"
>
{{
formObj
[
item
.
name
].
length
}}
/
{{
item
.
maxPhotoNum
}}
</span>
...
...
@@ -95,7 +95,7 @@
</template>
<slot
name=
"footer"
></slot>
</el-form>
<el-dialog
:visible
.
sync=
"isImgVisible"
class=
"dialog-look"
>
<el-dialog
v-if=
"isImgVisible"
:visible
.
sync=
"isImgVisible"
class=
"dialog-look"
>
<video
v-if=
"dialogObj.uploadType == 'video'"
class=
"dialog-video"
controls
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
>
</video>
...
...
@@ -127,6 +127,10 @@ export default {
type
:
Boolean
,
default
:
false
},
defaultWidth
:
{
type
:
String
,
default
:
'215px'
},
formRef
:
{
type
:
String
,
default
:
'formRef'
...
...
src/views/classifyList/editClassify.vue
View file @
8701252
...
...
@@ -3,7 +3,7 @@
<div
class=
"edit-classify marketing p-t-20"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"selectProBtn"
slot-scope=
"scope"
class=
"select-pro"
>
<el-button
type=
"primary"
@
click=
"handleMutiProClose(scope)"
>
{{
editForm
.
goodsRefList
.
length
?
'更换'
:
'请选择'
}}
</el-button>
</div>
...
...
@@ -78,7 +78,6 @@ export default {
{
label
:
'分类名称'
,
name
:
'classifyName'
,
width
:
'320px'
,
type
:
'input'
,
maxlength
:
20
},
...
...
src/views/homeSet/index.vue
View file @
8701252
...
...
@@ -11,7 +11,7 @@
<div
class=
"home-set-form flex-grow"
>
<div
v-for=
"(item, index) in externalFormList"
:key=
"index"
>
<p
class=
"edit-sub-title"
>
{{
item
.
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:labelWidth=
"labelWidth"
:isBlock=
"true"
:formRef=
"item.editChildRef"
:formObj=
"editForm"
:formData=
"item.editFormData"
:formRules=
"item.editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:labelWidth=
"labelWidth"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"item.editChildRef"
:formObj=
"editForm"
:formData=
"item.editFormData"
:formRules=
"item.editRule"
>
<template
slot=
"merchantQrcode"
slot-scope=
"scope"
>
<img
class=
"img-100"
:src=
"editForm[scope.scope.name]"
/>
<el-button
type=
"text"
@
click=
"handleImgDown(editForm[scope.scope.name])"
>
下载
</el-button>
...
...
@@ -146,7 +146,6 @@ export default {
name
:
'noticeContent'
,
type
:
'input'
,
inputType
:
'textarea'
,
width
:
'320px'
,
maxlength
:
'50'
}
]
...
...
src/views/orderShare/editShare.vue
View file @
8701252
...
...
@@ -3,7 +3,7 @@
<div
class=
"edit-share marketing"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"selectPro"
slot-scope=
"scope"
>
<el-button
type=
"primary"
@
click=
"handleRelateProClose(scope)"
>
{{
editForm
.
goodsId
?
'更换'
:
'请选择'
}}
</el-button>
<div
class=
"m-t-10"
v-show=
"editForm.goodsId"
>
...
...
@@ -79,7 +79,6 @@ export default {
label
:
'照片上传'
,
name
:
'imgUrls'
,
type
:
'upload'
,
width
:
'320px'
,
limitSize
:
10
,
maxPhotoNum
:
8
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
...
...
@@ -95,7 +94,6 @@ export default {
label
:
'发现频道选择'
,
name
:
'zoneId'
,
type
:
'select'
,
width
:
'320px'
,
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'zoneName'
,
...
...
@@ -104,7 +102,6 @@ export default {
{
label
:
'种草心得'
,
name
:
'shareContent'
,
width
:
'320px'
,
type
:
'input'
,
inputType
:
'textarea'
,
rows
:
5
,
...
...
src/views/orderShare/index.vue
View file @
8701252
...
...
@@ -53,7 +53,6 @@ export default {
label
:
'晒单来源'
,
name
:
'shareSource'
,
type
:
'select'
,
width
:
'160px'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
...
...
@@ -63,7 +62,6 @@ export default {
label
:
'晒单状态'
,
name
:
'shareStatus'
,
type
:
'select'
,
width
:
'160px'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
...
...
src/views/productGroup/editProduct.vue
View file @
8701252
...
...
@@ -63,7 +63,7 @@
<div
class=
"home-set-form flex-grow"
>
<div
v-for=
"(item, index) in externalFormList"
:key=
"index"
>
<p
class=
"edit-sub-title"
>
{{
item
.
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:labelWidth=
"labelWidth"
:isBlock=
"true"
:formRef=
"item.editChildRef"
:formObj=
"editForm"
:formData=
"item.editFormData"
:formRules=
"item.editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:labelWidth=
"labelWidth"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"item.editChildRef"
:formObj=
"editForm"
:formData=
"item.editFormData"
:formRules=
"item.editRule"
>
<template
slot=
"describeBtn"
>
<el-button
:disabled=
"isDisabled"
type=
"primary"
@
click=
"handleDescribeImgAdd"
>
添加图片
</el-button>
</
template
>
...
...
@@ -326,14 +326,12 @@ export default {
name
:
'goodsName'
,
type
:
'input'
,
maxlength
:
20
,
width
:
'320px'
,
isDisabled
:
false
},
{
label
:
'商品缩略图'
,
name
:
'goodsImage'
,
type
:
'upload'
,
width
:
'320px'
,
limitSize
:
10
,
maxPhotoNum
:
1
,
isDisabled
:
false
,
...
...
@@ -388,7 +386,6 @@ export default {
name
:
'classifyIdList'
,
type
:
'select'
,
multiple
:
true
,
width
:
'320px'
,
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'classifyName'
,
...
...
@@ -399,7 +396,6 @@ export default {
label
:
'关联专区'
,
name
:
'zoneId'
,
type
:
'select'
,
width
:
'320px'
,
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'zoneName'
,
...
...
src/views/productGroup/index.vue
View file @
8701252
...
...
@@ -89,7 +89,6 @@ export default {
label
:
'商品状态'
,
name
:
'goodsStatus'
,
type
:
'select'
,
width
:
'160px'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
...
...
src/views/productStore/editProductDh.vue
View file @
8701252
...
...
@@ -56,7 +56,7 @@
</table>
</div>
</div>
<glsx-combi-form
v-if=
"!specificationDetailList.length"
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
<glsx-combi-form
v-if=
"!specificationDetailList.length"
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
</div>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
...
...
@@ -117,21 +117,18 @@ export default {
{
label
:
'零售价'
,
name
:
'retailPrice'
,
width
:
'280px'
,
type
:
'input'
,
isDisabled
:
false
},
{
label
:
'供货价'
,
name
:
'supplyPrice'
,
width
:
'280px'
,
type
:
'input'
,
isDisabled
:
true
},
{
label
:
'库存'
,
name
:
'goodsStock'
,
width
:
'280px'
,
type
:
'input'
,
isDisabled
:
true
}
...
...
src/views/productStore/index.vue
View file @
8701252
...
...
@@ -93,7 +93,6 @@ export default {
label
:
'商品状态'
,
name
:
'goodsStatus'
,
type
:
'select'
,
width
:
'160px'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
...
...
src/views/takeGood/takeGoodDetail.vue
View file @
8701252
...
...
@@ -57,7 +57,7 @@
</table>
</div>
</div>
<glsx-combi-form
v-if=
"!specificationDetailList.length"
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
<glsx-combi-form
v-if=
"!specificationDetailList.length"
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
</div>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<!--
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
-->
...
...
@@ -125,14 +125,12 @@ export default {
{
label
:
'供货价'
,
name
:
'supplyPrice'
,
width
:
'280px'
,
type
:
'input'
,
isDisabled
:
true
},
{
label
:
'库存'
,
name
:
'goodsStock'
,
width
:
'280px'
,
type
:
'input'
,
isDisabled
:
true
}
...
...
src/views/zoneList/editZone.vue
View file @
8701252
...
...
@@ -3,7 +3,7 @@
<div
class=
"edit-zone marketing p-t-20"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"selectMerchant"
slot-scope=
"scope"
class=
"select-merchant"
>
<el-button
type=
"primary"
@
click=
"handleRelateStoreClose(scope)"
>
{{
editForm
.
merchantList
.
length
?
'更换'
:
'请选择'
}}
</el-button>
</div>
...
...
@@ -73,7 +73,6 @@ export default {
{
label
:
'专区名称'
,
name
:
'zoneName'
,
width
:
'320px'
,
type
:
'input'
,
maxlength
:
20
},
...
...
@@ -81,7 +80,6 @@ export default {
label
:
'专区图片'
,
name
:
'zoneImg'
,
type
:
'upload'
,
width
:
'320px'
,
limitSize
:
10
,
maxPhotoNum
:
1
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment