Commit 67a1d3b5 by cwq0219

商品-到店核销-是否需要安装

1 parent 7476f480
......@@ -182,6 +182,10 @@ html {
margin-right: 20px;
}
.marketing .m-l-20 {
margin-left: 20px;
}
.marketing.p-t-20,
.marketing .p-t-20 {
padding-top: 20px;
......@@ -289,16 +293,19 @@ html {
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
.el-tag {
color: #666!important;
font-size: 14px!important;
}
.el-tag.el-tag--info {
background: #fafbfe !important;
border: 1px solid #e8e8ea !important;
border-radius: 4px;
color: #666;
}
.el-tag.el-tag--info.el-tag--plain {
background: transparent !important;
}
}
\ No newline at end of file
......@@ -22,6 +22,7 @@
>
<template slot="describeBtn">
<el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
<span class="edit-tips m-l-20">最多可添加10张图片</span>
</template>
<template slot="goodsImage">
<p class="edit-tips">作为商品列表展示</p>
......@@ -491,6 +492,7 @@ export default {
supplyPrice: '',
goodsStock: '',
deliveryType: 2,
install: 'Y',
expressFee: '',
supplyMerchantList: []
},
......@@ -594,7 +596,7 @@ export default {
isDisabled: false
},
{
label: '商品描述',
label: '商品详情',
name: '',
addHtml: 'describeBtn'
},
......@@ -604,7 +606,7 @@ export default {
type: 'input',
inputType: 'textarea',
width: '320px',
placeholder: '请输入商品描述',
placeholder: '请输入商品详情',
rows: 5,
maxlength: '200',
style: {
......@@ -713,6 +715,26 @@ export default {
}
},
{
label: '是否需要安装',
name: 'install',
type: 'radio',
width: '320px',
optionId: 'confId',
optionLabel: 'confName',
optionList: [
{
confId: 'Y',
confName: '是'
},
{
confId: 'N',
confName: '否'
}
],
isHide: true,
isDisabled: false
},
{
label: '运费',
name: 'expressFee',
type: 'input',
......@@ -830,6 +852,8 @@ export default {
handleTypeChange(val) {
var idx = this.externalFormList[2].editFormData.findIndex(item => item.name == 'expressFee')
this.externalFormList[2].editFormData[idx].isHide = val != 2
var installIdx = this.externalFormList[2].editFormData.findIndex(item => item.name == 'install')
this.externalFormList[2].editFormData[installIdx].isHide = val == 2
},
setAllDisabled() {
this.externalFormList.forEach(item => {
......@@ -1108,7 +1132,7 @@ export default {
recoverySpec() {
this.changeSpecs(true)
},
// 恢复商品描述
// 恢复商品详情
recoveryDescribe() {
this.editForm.goodsDescList.forEach((item, index) => {
if (item.resType == 2) {
......@@ -1142,6 +1166,8 @@ export default {
describeTxt: '',
descImgList: []
}
// 是否需要安装
this.editForm.install = this.editForm.install || 'Y'
// 运费
if (this.editForm.deliveryType == 2) {
this.editForm.expressFee = (res.expressFee / 100).toFixed(2)
......@@ -1188,7 +1214,7 @@ export default {
})
}
},
// 商品描述-图片
// 商品详情-图片
handleDescribeImgAdd() {
if (this.editForm.descImgList.length >= 10) {
this.$message({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!