Commit 67a1d3b5 by cwq0219

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

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