Commit bb00a25f by chenwq

bug修复,订单补录

1 parent 35f9d537
...@@ -161,4 +161,15 @@ const getMerchantInfoApi = params => { ...@@ -161,4 +161,15 @@ const getMerchantInfoApi = params => {
}) })
} }
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, uploadFundingVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi } // 根据商户号最上级工厂商户号
const getSuperMerchantApi = params => {
params.method = 'merchants.api.open.findSuperlativeMerchant'
return http_merchant({
url: '/rop-merchants/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, uploadFundingVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi, getSuperMerchantApi }
...@@ -126,4 +126,15 @@ const confirmReceiptGoodsApi = params => { ...@@ -126,4 +126,15 @@ const confirmReceiptGoodsApi = params => {
}) })
} }
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi } // 审计-特殊账号
const checkMerchartApi = params => {
params.method = 'scrm.api.shopmall.import.merchant.check'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, checkMerchartApi }
...@@ -82,11 +82,14 @@ ...@@ -82,11 +82,14 @@
<slot :name="item.suffixSlot" :scope="item"></slot> <slot :name="item.suffixSlot" :scope="item"></slot>
</template> </template>
<!-- 图文编辑器 --> <!-- 图文编辑器 -->
<textBox v-else-if="item.type === 'textBox'" :ref="item.name + 'TextBox'" :excludeMenus="item.excludeMenus || ['code']" @change="e => handleTextBoxChange(e, item)" @focus="handleTextBoxFocus(item)" :boxHeight="item.boxHeight"></textBox> <div v-else-if="item.type === 'textBox'">
<textBox v-if="!item.isDisabled" :ref="item.name + 'TextBox'" :excludeMenus="item.excludeMenus || ['code']" @change="e => handleTextBoxChange(e, item)" @focus="handleTextBoxFocus(item)" :boxHeight="item.boxHeight"></textBox>
<div v-else v-html="formObj[item.name]"></div>
</div>
<!-- 地图 --> <!-- 地图 -->
<div v-else-if="item.type === 'map'" class="flex"> <div v-else-if="item.type === 'map'" class="flex">
<Province ref="provinceForm" :subdistrict="subdistrict" :isDisabled="item.isDisabled" @selectProvince="e => handleSelectProvince(e, item)" @selectCity="e => handleSelectCity(e, item)" :provinceView="item.provinceView"></Province> <Province ref="provinceForm" :subdistrict="subdistrict" :isDisabled="item.isDisabled" @selectProvince="e => handleSelectProvince(e, item)" @selectCity="e => handleSelectCity(e, item)" :provinceView="item.provinceView"></Province>
<el-input style="flex: 1;" v-model="formObj[item.name]" placeholder="请选择商户地址" :readonly="item.isReadonly"></el-input> <el-input style="flex: 1;" :disabled="item.isDisabled" v-model="formObj[item.name]" placeholder="请选择商户地址" :readonly="item.isReadonly"></el-input>
<el-button class="m-l-10" v-show="!item.isDisabled" @click="handleSelectMap(item)" type="primary">选择地址</el-button> <el-button class="m-l-10" v-show="!item.isDisabled" @click="handleSelectMap(item)" type="primary">选择地址</el-button>
</div> </div>
</el-form-item> </el-form-item>
......
...@@ -282,7 +282,7 @@ export default { ...@@ -282,7 +282,7 @@ export default {
}, },
mounted() { mounted() {
this.getMerchant() this.getSuperMerchant()
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}, },
...@@ -303,10 +303,21 @@ export default { ...@@ -303,10 +303,21 @@ export default {
this.getOptionsList('searchFormData', true, 'packageId') this.getOptionsList('searchFormData', true, 'packageId')
}) })
}, },
getMerchant() { getSuperMerchant() {
const { session } = this.$globalState || {} var isFactory = this.$globalState.session.accountLevel == 1
var { merchantId } = this.$globalState?.session || ''
if (isFactory) {
this.getMerchant(merchantId)
return true
}
this.$apis.common.getSuperMerchantApi({ merchantId: merchantId }).then(res => {
merchantId = res
this.getMerchant(merchantId)
})
},
getMerchant(merchantId) {
const param = { const param = {
supMerchantNo: session.merchantId, supMerchantNo: merchantId,
merchantAccountLevel: 4 merchantAccountLevel: 4
} }
this.$apis.groupGiftBag.getMerchantListApi(param).then(res => { this.$apis.groupGiftBag.getMerchantListApi(param).then(res => {
......
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
<div class="flex-default tabs"> <div class="flex-default tabs">
<el-tabs v-model="searchForm.requestSource" @tab-click="handleTabClick"> <el-tabs v-model="searchForm.requestSource" @tab-click="handleTabClick">
<el-tab-pane label="全部订单" name="0"></el-tab-pane> <el-tab-pane label="全部订单" name="0"></el-tab-pane>
<el-tab-pane label="已付款" name="1"></el-tab-pane> <el-tab-pane v-if="!isSpecialMerchat" label="已付款" name="1"></el-tab-pane>
<el-tab-pane label="未付款" name="2"></el-tab-pane> <el-tab-pane v-if="!isSpecialMerchat" label="未付款" name="2"></el-tab-pane>
<el-tab-pane label="已退款" name="3"></el-tab-pane> <el-tab-pane v-if="!isSpecialMerchat" label="已退款" name="3"></el-tab-pane>
<el-tab-pane label="售后订单" name="4"></el-tab-pane> <el-tab-pane v-if="!isSpecialMerchat" label="售后订单" name="4"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<el-button class="default-blue-btn" :size="size" type="default" @click="handleExport">导出</el-button> <el-button class="default-blue-btn" :size="size" type="default" @click="handleExport">导出</el-button>
...@@ -142,6 +142,7 @@ export default { ...@@ -142,6 +142,7 @@ export default {
data() { data() {
return { return {
size: 'small', size: 'small',
isSpecialMerchat: true,
url: url, url: url,
isEdit: true, isEdit: true,
orderCode: '', orderCode: '',
...@@ -447,11 +448,11 @@ export default { ...@@ -447,11 +448,11 @@ export default {
fn: '退款' fn: '退款'
}, },
condition: row => { condition: row => {
return row.orderSource == 4 && [2, 6, 21].includes(+row.orderStatus) return !this.isSpecialMerchat && row.orderSource == 4 && [2, 6, 21].includes(+row.orderStatus)
}, },
listeners: { listeners: {
click: row => { click: row => {
this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => {}, this.searchForm.requestSource != 0) this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => { }, this.searchForm.requestSource != 0)
} }
} }
}, },
...@@ -478,7 +479,7 @@ export default { ...@@ -478,7 +479,7 @@ export default {
fn: '商品发货' fn: '商品发货'
}, },
condition: row => { condition: row => {
return row.deliveryType == 2 && row.orderStatus == 6 return !this.isSpecialMerchat && row.deliveryType == 2 && row.orderStatus == 6
}, },
listeners: { listeners: {
click: this.handleExpressInfo click: this.handleExpressInfo
...@@ -505,7 +506,7 @@ export default { ...@@ -505,7 +506,7 @@ export default {
type: 'text' type: 'text'
}, },
condition: row => { condition: row => {
return row.afterSaleStatus == 4 return !this.isSpecialMerchat && row.afterSaleStatus == 4
}, },
listeners: { listeners: {
click: this.handleReceiving click: this.handleReceiving
...@@ -683,6 +684,9 @@ export default { ...@@ -683,6 +684,9 @@ export default {
} }
} }
}, },
created() {
this.checkMerchant()
},
mounted() { mounted() {
// this.getCount() // this.getCount()
...@@ -735,6 +739,32 @@ export default { ...@@ -735,6 +739,32 @@ export default {
} }
}, },
showOrHideAttr(formName, label, isHide) {
let idx = this[formName].findIndex(item => item.label == label)
this[formName][idx].isHide = isHide
},
deleteAttr(labelList) {
labelList.forEach(i => {
console.log(i)
let idx = this.tableParams.tableColumns.findIndex(item => item.label == i)
this.tableParams.tableColumns.splice(idx, 1)
})
},
checkMerchant() {
this.$apis.orderManage.checkMerchartApi({}).then(res => {
this.isSpecialMerchat = res
var hideList = ['售后状态', '订单类型', '结算方式', '商户订单号', '车架号', '推荐人', '推荐人类型', '手机号', '推荐人手机号']
if (this.isSpecialMerchat) {
hideList.forEach(item => {
this.showOrHideAttr('searchFormData', item, true)
})
this.deleteAttr(['手机号', '其他', '微信名称', '推荐人', '推荐人手机号', '车架号', '商户订单号'])
}
})
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn, isResetPage = true) { secondConfirm(title, txt, apiModule, apiName, apiParams, fn, isResetPage = true) {
this.$confirm(txt, title, { this.$confirm(txt, title, {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -842,7 +872,7 @@ export default { ...@@ -842,7 +872,7 @@ export default {
handleWriteOff(row) { handleWriteOff(row) {
if (row.orderSource == 4) { if (row.orderSource == 4) {
this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode }, () => {}, this.searchForm.requestSource != 0) this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode }, () => { }, this.searchForm.requestSource != 0)
return true return true
} }
this.isWriteOffVisible = !this.isWriteOffVisible this.isWriteOffVisible = !this.isWriteOffVisible
...@@ -955,6 +985,9 @@ export default { ...@@ -955,6 +985,9 @@ export default {
}, },
handleTabClick() { handleTabClick() {
if (this.isSpecialMerchat) {
return true
}
this.handleSearch() this.handleSearch()
}, },
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
<template> <template>
<div class="marketing"> <div class="marketing">
<div class="m-b-20"> <div class="m-b-20">
<GLButton <!-- <GLButton
:size="size" :size="size"
class="default-blue-btn el-icon-plus" class="default-blue-btn el-icon-plus"
type="default" type="default"
@click="handleEdit('add')" @click="handleEdit('add')"
fn="新增众筹" fn="新增众筹"
mode="el-button" mode="el-button"
>新建众筹</GLButton> >新建众筹</GLButton> -->
<el-button <el-button
:size="size" :size="size"
type="default" type="default"
...@@ -145,53 +145,60 @@ export default { ...@@ -145,53 +145,60 @@ export default {
// 表格按钮 // 表格按钮
tableButtonList: [ tableButtonList: [
{ {
type: 'el-button',
name: '开始',
attrs: {
type: 'text'
},
condition: row => {
return row.activityStatus == '1'
},
listeners: {
click: this.start
}
},
{
type: 'el-button',
name: '结束',
attrs: {
type: 'text'
},
condition: row => {
return row.activityStatus == '2'
},
listeners: {
click: this.end
}
},
{
type: 'GLButton', type: 'GLButton',
name: '编辑', name: '查看',
attrs: { attrs: {
type: 'text', type: 'text',
fn: '编辑众筹' fn: '查看众筹'
},
condition: row => {
return row.activityStatus == '1' || row.activityStatus == '2' || row.activityStatus == '3'
}, },
listeners: { listeners: {
click: row => { click: row => {
// var editOrDetail = { this.handleEdit('detail', row)
// 1: 'edit', }
// 2: 'detail', }
// 3: 'detail' },
// }[row.activityStatus] // {
// return this.handleEdit(editOrDetail, row) // type: 'el-button',
this.handleEdit('edit', row) // name: '开始',
} // attrs: {
} // type: 'text'
}, // },
// condition: row => {
// return row.activityStatus == '1'
// },
// listeners: {
// click: this.start
// }
// },
// {
// type: 'el-button',
// name: '结束',
// attrs: {
// type: 'text'
// },
// condition: row => {
// return row.activityStatus == '2'
// },
// listeners: {
// click: this.end
// }
// },
// {
// type: 'GLButton',
// name: '编辑',
// attrs: {
// type: 'text',
// fn: '编辑众筹'
// },
// condition: row => {
// return row.activityStatus == '1' || row.activityStatus == '2' || row.activityStatus == '3'
// },
// listeners: {
// click: row => {
// this.handleEdit('edit', row)
// }
// }
// },
{ {
type: 'GLButton', type: 'GLButton',
name: '删除', name: '删除',
...@@ -226,18 +233,18 @@ export default { ...@@ -226,18 +233,18 @@ export default {
click: this.handleShare click: this.handleShare
} }
}, },
{ // {
type: 'el-button', // type: 'el-button',
name: '复制', // name: '复制',
attrs: { // attrs: {
type: 'text' // type: 'text'
}, // },
listeners: { // listeners: {
click: row => { // click: row => {
this.handleEdit('copy', row) // this.handleEdit('copy', row)
} // }
} // }
}, // },
{ {
type: 'GLButton', type: 'GLButton',
name: '数据看板', name: '数据看板',
...@@ -473,10 +480,9 @@ export default { ...@@ -473,10 +480,9 @@ export default {
query: params query: params
}) })
}, },
test (option) { // test (option) {
console.log(JSON.parse(JSON.stringify(option))) // console.log(JSON.parse(JSON.stringify(option)))
// },
},
// 明细 // 明细
handleDetail ({ prop, scope }) { handleDetail ({ prop, scope }) {
let data = { let data = {
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<glsx-combi-form class="edit-form-container" ref="configEditFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="configEditFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="configEditFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="configEditFormData" :formRules="editRule">
<template slot="customerServiceFlag" slot-scope="scope"> <template slot="customerServiceFlag" slot-scope="scope">
<el-radio-group v-model="editForm[scope.scope.name]"> <el-radio-group v-model="editForm[scope.scope.name]">
<el-radio v-for="(item, index) in scope.scope.optionList" :key="index" :label="item[scope.scope.optionId]">{{ item[scope.scope.optionLabel] }}</el-radio> <el-radio v-for="(item, index) in scope.scope.optionList" :disabled="isDisabled" :key="index" :label="item[scope.scope.optionId]">{{ item[scope.scope.optionLabel] }}</el-radio>
</el-radio-group> </el-radio-group>
<div class="customer-service" v-if="editForm[scope.scope.name] == 2" id="customerServiceFlag"> <div class="customer-service" v-if="editForm[scope.scope.name] == 2" id="customerServiceFlag">
<glsx-combi-form class="edit-form-container" ref="customerEditFormRef" :isEdit="true" :isBlock="false" :formRef="editChildRef" :formObj="editForm" :formData="customerEditFormData" :formRules="editRule"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="customerEditFormRef" :isEdit="true" :isBlock="false" :formRef="editChildRef" :formObj="editForm" :formData="customerEditFormData" :formRules="editRule"></glsx-combi-form>
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<img v-show="item.isCheck" :class="{ 'icon-check': item.isCheck }" src="@/assets/seckillActivity/icon-check.png" /> <img v-show="item.isCheck" :class="{ 'icon-check': item.isCheck }" src="@/assets/seckillActivity/icon-check.png" />
</div> </div>
</div> </div>
<el-upload class="m-t-10" action="" accept="audio/mp3, audio/m4a" :show-file-list="false" :http-request="handleMusicUpload" :before-upload="e => handleMusicBeforeUpload(e, scope.scope)" :file-list="fileList"> <el-upload v-if="!isDisabled" class="m-t-10" action="" accept="audio/mp3, audio/m4a" :show-file-list="false" :http-request="handleMusicUpload" :before-upload="e => handleMusicBeforeUpload(e, scope.scope)" :file-list="fileList">
<el-button class="el-icon-plus" size="small" type="default">背景音乐</el-button> <el-button class="el-icon-plus" size="small" type="default">背景音乐</el-button>
</el-upload> </el-upload>
<audio v-if="playObj.src" style="display: none;" id="music-audio" controls> <audio v-if="playObj.src" style="display: none;" id="music-audio" controls>
...@@ -128,13 +128,13 @@ ...@@ -128,13 +128,13 @@
<template slot="fictitious"> <template slot="fictitious">
<div class="fictitious" id="fictitious"> <div class="fictitious" id="fictitious">
<el-form-item label="参团:" prop="fictitiousGroupQuantity" labelWidth="60px"> <el-form-item label="参团:" prop="fictitiousGroupQuantity" labelWidth="60px">
<el-input v-model="editForm.fictitiousGroupQuantity" style="width: 90px" maxlength="50" placeholder="参团人数"></el-input> <el-input :disabled="isDisabled" v-model="editForm.fictitiousGroupQuantity" style="width: 90px" maxlength="50" placeholder="参团人数"></el-input>
</el-form-item> </el-form-item>
<el-form-item id="fictitiousLadderQuantity" label="阶梯人数:" prop="fictitiousLadderQuantity" labelWidth="90px"> <el-form-item id="fictitiousLadderQuantity" label="阶梯人数:" prop="fictitiousLadderQuantity" labelWidth="90px">
<el-input v-model="editForm.fictitiousLadderQuantity" style="width: 90px" maxlength="50" placeholder="阶梯人数"></el-input> <el-input :disabled="isDisabled" v-model="editForm.fictitiousLadderQuantity" style="width: 90px" maxlength="50" placeholder="阶梯人数"></el-input>
</el-form-item> </el-form-item>
<el-form-item id="fictitiousViewQuantity" label="浏览:" prop="fictitiousViewQuantity" labelWidth="60px"> <el-form-item id="fictitiousViewQuantity" label="浏览:" prop="fictitiousViewQuantity" labelWidth="60px">
<el-input v-model="editForm.fictitiousViewQuantity" style="width: 90px" maxlength="50" placeholder="浏览人数"></el-input> <el-input :disabled="isDisabled" v-model="editForm.fictitiousViewQuantity" style="width: 90px" maxlength="50" placeholder="浏览人数"></el-input>
</el-form-item> </el-form-item>
</div> </div>
</template> </template>
...@@ -143,21 +143,21 @@ ...@@ -143,21 +143,21 @@
<div slot="posterImg" class="edit-tips m-t-8">建议尺寸640*1008</div> <div slot="posterImg" class="edit-tips m-t-8">建议尺寸640*1008</div>
<div class="form-describe-box" slot="formDescribe"> <div class="form-describe-box" slot="formDescribe">
<el-checkbox-group v-model="editForm.formDescribeCheck"> <el-checkbox-group v-model="editForm.formDescribeCheck">
<el-checkbox v-for="(item, index) in formDescribeCheckList" :label="item.value" :key="index">{{ item.label }}</el-checkbox> <el-checkbox :disabled="isDisabled" v-for="(item, index) in formDescribeCheckList" :label="item.value" :key="index">{{ item.label }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<div v-for="(item, index) in formDescribeList" :key="index" class="form-describe flex-default"> <div v-for="(item, index) in formDescribeList" :key="index" class="form-describe flex-default">
<el-input class="describe-input" v-model="item.value" placeholder="请输入" maxlength="20"></el-input> <el-input :disabled="isDisabled" class="describe-input" v-model="item.value" placeholder="请输入" maxlength="20"></el-input>
<p class="describe-delete"> <p class="describe-delete">
<img v-show="!(index == 0 && formDescribeList.length == 1)" @click="handleDescribeDelete(index)" src="@/assets/icon-delete.png" /> <img v-show="!(index == 0 && formDescribeList.length == 1)" @click="handleDescribeDelete(index)" src="@/assets/icon-delete.png" />
</p> </p>
</div> </div>
<el-button class="btn-basic" v-show="formDescribeList.length < describeNum" :size="size" type="text" @click="handleDescribeAdd"> <el-button v-if="!isDisabled" class="btn-basic" v-show="formDescribeList.length < describeNum" :size="size" type="text" @click="handleDescribeAdd">
<img class="icon-add" src="@/assets/seckillActivity/icon-add.png" /> <img class="icon-add" src="@/assets/seckillActivity/icon-add.png" />
新增表单 新增表单
</el-button> </el-button>
</div> </div>
<div slot="showAvatarNicknameFlag"> <div slot="showAvatarNicknameFlag">
<el-radio-group v-model="editForm.showAvatarNicknameFlag"> <el-radio-group :disabled="isDisabled" v-model="editForm.showAvatarNicknameFlag">
<el-radio :label="1">隐藏</el-radio> <el-radio :label="1">隐藏</el-radio>
<el-radio :label="2">显示</el-radio> <el-radio :label="2">显示</el-radio>
</el-radio-group> </el-radio-group>
...@@ -169,20 +169,23 @@ ...@@ -169,20 +169,23 @@
服务说明: 服务说明:
</span> </span>
<div class="form-show-box"> <div class="form-show-box">
<div :class="['btn-box', arrowFlagObj.activityServices == 'open' && editForm.activityServices.length ? 'line' : '']"> <div v-if="!isDisabled" :class="['btn-box', arrowFlagObj.activityServices == 'open' && editForm.activityServices.length ? 'line' : '']">
<el-button :class="[editForm.activityServices.length < 9 ? 'btn-basic' : 'btn-disable']" :size="size" type="text" @click="handleAddItem('services', 'activityServices', 9)"> <el-button :class="[editForm.activityServices.length < 9 ? 'btn-basic' : 'btn-disable']" :size="size" type="text" @click="handleAddItem('services', 'activityServices', 9)">
<img class="icon-add" src="@/assets/seckillActivity/icon-add.png" /> <img class="icon-add" src="@/assets/seckillActivity/icon-add.png" />
新增一项 新增一项
</el-button> </el-button>
</div> </div>
<div :class="['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']"> <div :class="['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']">
<div v-if="editForm.activityServices.length">
<div v-for="(item, index) in editForm.activityServices" :key="index" :class="['form-show-item', editForm.activityServices.length > index + 1 ? 'line' : '']"> <div v-for="(item, index) in editForm.activityServices" :key="index" :class="['form-show-item', editForm.activityServices.length > index + 1 ? 'line' : '']">
<glsx-combi-form class="p-t-20" ref="serviceEditFormRef" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="item" :formData="serviceEditFormData" :formRules="serviceEditRule"></glsx-combi-form> <glsx-combi-form class="p-t-20" ref="serviceEditFormRef" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="item" :formData="serviceEditFormData" :formRules="serviceEditRule"></glsx-combi-form>
<el-button :class="['btn-basic', 'btn-delete', index == editForm.activityServices.length - 1 ? 'last-btn-delete' : '']" :size="size" type="text" @click="handleDeleteItem('services', 'activityServices', index)"> <el-button v-if="!isDisabled" :class="['btn-basic', 'btn-delete', index == editForm.activityServices.length - 1 ? 'last-btn-delete' : '']" :size="size" type="text" @click="handleDeleteItem('services', 'activityServices', index)">
<img class="icon-add" src="@/assets/icon-delete.png" /> <img class="icon-add" src="@/assets/icon-delete.png" />
</el-button> </el-button>
</div> </div>
</div> </div>
<div v-else>无数据</div>
</div>
</div> </div>
</div> </div>
<!-- 商品答疑 --> <!-- 商品答疑 -->
...@@ -192,20 +195,23 @@ ...@@ -192,20 +195,23 @@
商品答疑: 商品答疑:
</span> </span>
<div class="form-show-box"> <div class="form-show-box">
<div :class="['btn-box', arrowFlagObj.activityCommoditys == 'open' && editForm.activityCommoditys.length ? 'line' : '']"> <div v-if="!isDisabled" :class="['btn-box', arrowFlagObj.activityCommoditys == 'open' && editForm.activityCommoditys.length ? 'line' : '']">
<el-button :class="[editForm.activityCommoditys.length < 9 ? 'btn-basic' : 'btn-disable']" :size="size" type="text" @click="handleAddItem('commoditys', 'activityCommoditys', 9)"> <el-button :class="[editForm.activityCommoditys.length < 9 ? 'btn-basic' : 'btn-disable']" :size="size" type="text" @click="handleAddItem('commoditys', 'activityCommoditys', 9)">
<img class="icon-add" src="@/assets/seckillActivity/icon-add.png" /> <img class="icon-add" src="@/assets/seckillActivity/icon-add.png" />
新增一项 新增一项
</el-button> </el-button>
</div> </div>
<div :class="['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']"> <div :class="['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']">
<div v-if="editForm.activityCommoditys.length">
<div v-for="(item, index) in editForm.activityCommoditys" :key="index" :class="['form-show-item', editForm.activityCommoditys.length > index + 1 ? 'line' : '']"> <div v-for="(item, index) in editForm.activityCommoditys" :key="index" :class="['form-show-item', editForm.activityCommoditys.length > index + 1 ? 'line' : '']">
<glsx-combi-form class="p-t-20" ref="commoditysEditFormRef" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="item" :formData="commoditysEditFormData" :formRules="commoditysEditRule"></glsx-combi-form> <glsx-combi-form class="p-t-20" ref="commoditysEditFormRef" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="item" :formData="commoditysEditFormData" :formRules="commoditysEditRule"></glsx-combi-form>
<el-button :class="['btn-basic', 'btn-delete', index == editForm.activityCommoditys.length - 1 ? 'last-btn-delete' : '']" :size="size" type="text" @click="handleDeleteItem('commoditys', 'activityCommoditys', index)"> <el-button v-if="!isDisabled" :class="['btn-basic', 'btn-delete', index == editForm.activityCommoditys.length - 1 ? 'last-btn-delete' : '']" :size="size" type="text" @click="handleDeleteItem('commoditys', 'activityCommoditys', index)">
<img class="icon-add" src="@/assets/icon-delete.png" /> <img class="icon-add" src="@/assets/icon-delete.png" />
</el-button> </el-button>
</div> </div>
</div> </div>
<div v-else>无数据</div>
</div>
</div> </div>
</div> </div>
<!-- 服务评价 --> <!-- 服务评价 -->
...@@ -215,13 +221,14 @@ ...@@ -215,13 +221,14 @@
服务评价: 服务评价:
</span> </span>
<div class="form-show-box"> <div class="form-show-box">
<div :class="['btn-box', arrowFlagObj.activityExperienceDTOs == 'open' && editForm.activityExperienceDTOs.length ? 'line' : '']"> <div v-if="!isDisabled" :class="['btn-box', arrowFlagObj.activityExperienceDTOs == 'open' && editForm.activityExperienceDTOs.length ? 'line' : '']">
<el-button :class="[editForm.activityExperienceDTOs.length < 9 ? 'btn-basic' : 'btn-disable']" :size="size" type="text" @click="handleAddItem('experiences', 'activityExperienceDTOs', 9)"> <el-button :class="[editForm.activityExperienceDTOs.length < 9 ? 'btn-basic' : 'btn-disable']" :size="size" type="text" @click="handleAddItem('experiences', 'activityExperienceDTOs', 9)">
<img class="icon-add" src="@/assets/seckillActivity/icon-add.png" /> <img class="icon-add" src="@/assets/seckillActivity/icon-add.png" />
新增一项 新增一项
</el-button> </el-button>
</div> </div>
<div :class="['form-show-block', arrowFlagObj.activityExperienceDTOs == 'close' ? 'form-close' : 'form-open']"> <div :class="['form-show-block', arrowFlagObj.activityExperienceDTOs == 'close' ? 'form-close' : 'form-open']">
<div v-if="editForm.activityExperienceDTOs.length">
<div v-for="(item, index) in editForm.activityExperienceDTOs" :key="index" :class="['form-show-item', editForm.activityExperienceDTOs.length > index + 1 ? 'line' : '']"> <div v-for="(item, index) in editForm.activityExperienceDTOs" :key="index" :class="['form-show-item', editForm.activityExperienceDTOs.length > index + 1 ? 'line' : '']">
<div class="head-box"> <div class="head-box">
<img class="icon-head" src="@/assets/seckillActivity/icon-default-head.png" /> <img class="icon-head" src="@/assets/seckillActivity/icon-default-head.png" />
...@@ -230,26 +237,28 @@ ...@@ -230,26 +237,28 @@
<glsx-combi-form class="p-t-20" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="item" :formData="experiencesEditFormData" :formRules="editRule"> <glsx-combi-form class="p-t-20" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="item" :formData="experiencesEditFormData" :formRules="editRule">
<div slot="activityExperienceImgs" class="edit-tips m-t-8">建议尺寸:图片大小不超过5m,最多可添加9张图片</div> <div slot="activityExperienceImgs" class="edit-tips m-t-8">建议尺寸:图片大小不超过5m,最多可添加9张图片</div>
</glsx-combi-form> </glsx-combi-form>
<el-button :class="['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']" :size="size" type="text" @click="handleDeleteItem('experiences', 'activityExperienceDTOs', index)"> <el-button v-if="!isDisabled" :class="['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']" :size="size" type="text" @click="handleDeleteItem('experiences', 'activityExperienceDTOs', index)">
<img class="icon-add" src="@/assets/icon-delete.png" /> <img class="icon-add" src="@/assets/icon-delete.png" />
</el-button> </el-button>
</div> </div>
</div> </div>
<div>无数据</div>
</div>
</div> </div>
</div> </div>
<!-- 员工注册链接 --> <!-- 员工注册链接 -->
<div slot="employeeRegistrationLinkFlag" slot-scope="scope"> <div slot="employeeRegistrationLinkFlag" slot-scope="scope">
<el-radio-group v-model="editForm[scope.scope.name]"> <el-radio-group :disabled="isDisabled" v-model="editForm[scope.scope.name]">
<el-radio v-for="(item, index) in scope.scope.optionList" :key="index" :label="item[scope.scope.optionId]">{{ item[scope.scope.optionLabel] }}</el-radio> <el-radio v-for="(item, index) in scope.scope.optionList" :key="index" :label="item[scope.scope.optionId]">{{ item[scope.scope.optionLabel] }}</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
<template slot="appointmentContacts"> <template slot="appointmentContacts">
<div class="appointmentContactsClass"> <div class="appointmentContactsClass">
<el-form-item label="姓名:" prop="reservationInstallContactsName" labelWidth="60px"> <el-form-item label="姓名:" prop="reservationInstallContactsName" labelWidth="60px">
<el-input v-model="editForm.reservationInstallContactsName" style="width: 432px;display: block;" maxlength="10" placeholder="请输入姓名"></el-input> <el-input :disabled="isDisabled" v-model="editForm.reservationInstallContactsName" style="width: 432px;display: block;" maxlength="10" placeholder="请输入姓名"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="电话:" prop="reservationInstallContactsPhone" labelWidth="60px" class="phoneClass"> <el-form-item label="电话:" prop="reservationInstallContactsPhone" labelWidth="60px" class="phoneClass">
<el-input v-model="editForm.reservationInstallContactsPhone" style="width: 432px" maxlength="11" placeholder="请输入电话"></el-input> <el-input :disabled="isDisabled" v-model="editForm.reservationInstallContactsPhone" style="width: 432px" maxlength="11" placeholder="请输入电话"></el-input>
</el-form-item> </el-form-item>
</div> </div>
</template> </template>
...@@ -259,47 +268,47 @@ ...@@ -259,47 +268,47 @@
<el-tabs v-model="reportFlag"> <el-tabs v-model="reportFlag">
<el-tab-pane label="进行中战报" name="1"> <el-tab-pane label="进行中战报" name="1">
<el-form-item label="产值活动报告:" prop="produceReportSummary" labelWidth="100px"> <el-form-item label="产值活动报告:" prop="produceReportSummary" labelWidth="100px">
<el-input v-model="editForm.activityActionReport.produceReportSummary" placeholder="根据以往经验,活动前三天转发效果最好,赶紧督促大家转发起来吧" type="textarea" maxlength="200" show-word-limit style="width:580px;height:79px;" rows="3"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.produceReportSummary" placeholder="根据以往经验,活动前三天转发效果最好,赶紧督促大家转发起来吧" type="textarea" maxlength="200" show-word-limit style="width:580px;height:79px;" rows="3"></el-input>
</el-form-item> </el-form-item>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="已结束战报" name="2"> <el-tab-pane label="已结束战报" name="2">
<el-form-item label="客户资产分析总结:" prop="customerAssetSummary" labelWidth="140px" style="margin-left: 27px;margin-bottom: 0px;"> <el-form-item label="客户资产分析总结:" prop="customerAssetSummary" labelWidth="140px" style="margin-left: 27px;margin-bottom: 0px;">
<el-input v-model="editForm.activityActionReport.customerAssetSummary" placeholder="请输入" type="textarea" maxlength="200" show-word-limit style="width:580px;height:79px;" rows="3"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.customerAssetSummary" placeholder="请输入" type="textarea" maxlength="200" show-word-limit style="width:580px;height:79px;" rows="3"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="触达通道分析总结:" prop="touchPassageSummary" labelWidth="140px" style="margin-left: 27px;margin-top: 10px;"> <el-form-item label="触达通道分析总结:" prop="touchPassageSummary" labelWidth="140px" style="margin-left: 27px;margin-top: 10px;">
<el-input v-model="editForm.activityActionReport.touchPassageSummary" placeholder="请输入" type="textarea" maxlength="200" show-word-limit style="width:580px;height:79px;" rows="3"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.touchPassageSummary" placeholder="请输入" type="textarea" maxlength="200" show-word-limit style="width:580px;height:79px;" rows="3"></el-input>
</el-form-item> </el-form-item>
<div class="reportConfigureList"> <div class="reportConfigureList">
<span class="reportConfigureLabel">标杆门店数据:</span> <span class="reportConfigureLabel">标杆门店数据:</span>
<el-form-item label="分享数(次)" prop="signMerchantShareCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;"> <el-form-item label="分享数(次)" prop="signMerchantShareCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.signMerchantShareCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.signMerchantShareCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="浏览数(次)" prop="signMerchantBrowseCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;"> <el-form-item label="浏览数(次)" prop="signMerchantBrowseCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.signMerchantBrowseCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.signMerchantBrowseCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="访客数(人)" prop="signMerchantVisitorCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;"> <el-form-item label="访客数(人)" prop="signMerchantVisitorCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.signMerchantVisitorCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.signMerchantVisitorCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="订单数(单)" prop="signMerchantOrderCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;"> <el-form-item label="订单数(单)" prop="signMerchantOrderCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.signMerchantOrderCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.signMerchantOrderCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="总产值(万)" prop="signMerchantProduceCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;"> <el-form-item label="总产值(万)" prop="signMerchantProduceCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.signMerchantProduceCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.signMerchantProduceCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="reportConfigureList"> <div class="reportConfigureList">
<span class="reportConfigureLabel">短信触达数据:</span> <span class="reportConfigureLabel">短信触达数据:</span>
<el-form-item label="目标客户数(人)" prop="noteTouchCustomerCount" labelWidth="100px" style="margin: 0px 8px 0px 0px;"> <el-form-item label="目标客户数(人)" prop="noteTouchCustomerCount" labelWidth="100px" style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.noteTouchCustomerCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.noteTouchCustomerCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="访客数(人)" prop="noteTouchVisitorCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;"> <el-form-item label="访客数(人)" prop="noteTouchVisitorCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.noteTouchVisitorCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.noteTouchVisitorCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="订单数(单)" prop="noteTouchOrderCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;"> <el-form-item label="订单数(单)" prop="noteTouchOrderCount" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.noteTouchOrderCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.noteTouchOrderCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="转化率(%)" prop="noteTouchConversionRate" labelWidth="70px" style="margin: 0px 8px 0px 0px;"> <el-form-item label="转化率(%)" prop="noteTouchConversionRate" labelWidth="70px" style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.noteTouchConversionRate" style="width: 136px;height:32px;" readonly></el-input> <el-input :disabled="isDisabled" v-model="editForm.activityActionReport.noteTouchConversionRate" style="width: 136px;height:32px;" readonly></el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -308,7 +317,7 @@ ...@@ -308,7 +317,7 @@
</template> </template>
<!-- 直播配置 --> <!-- 直播配置 -->
<div slot="live"> <div slot="live">
<el-switch v-model="editForm.liveFlag"></el-switch> <el-switch :disabled="isDisabled" v-model="editForm.liveFlag"></el-switch>
<div class="customer-service" v-if="editForm.liveFlag" id="liveFlag"> <div class="customer-service" v-if="editForm.liveFlag" id="liveFlag">
<glsx-combi-form class="edit-form-container" ref="liveEditFormRef" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="editForm" :formData="liveEditFormData" :formRules="liveEditRule"> <glsx-combi-form class="edit-form-container" ref="liveEditFormRef" :formRef="editChildRef" :isEdit="true" :isBlock="true" :formObj="editForm" :formData="liveEditFormData" :formRules="liveEditRule">
<div slot="groupQrCode" class="edit-tips m-t-8">注:用于直播间内加群展示;请上传2M以内的jpg、jpeg、png图片,建议图片尺寸284*284</div> <div slot="groupQrCode" class="edit-tips m-t-8">注:用于直播间内加群展示;请上传2M以内的jpg、jpeg、png图片,建议图片尺寸284*284</div>
...@@ -1219,12 +1228,27 @@ export default { ...@@ -1219,12 +1228,27 @@ export default {
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getPayList() this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getPayList()
var id = this.routeInfo.id var id = this.routeInfo.id
var detailDisableList = ['editFormData'] // var detailDisableList = ['editFormData']
var disableObj = {
detail: ['editFormData', 'configEditFormData', 'serviceEditFormData', 'commoditysEditFormData', 'experiencesEditFormData', 'liveEditFormData'],
edit: ['editFormData']
}
if (this.routeInfo.addOrEdit == 'detail') {
this.isDisabled = true
disableObj.detail.forEach(attr => {
this.changeFormAttr(
attr,
'isDisabled',
this[attr].map(item => item.label),
true
)
})
}
if (id) { if (id) {
if (this.routeInfo.addOrEdit == 'edit' && this.routeInfo.activityStatus == 2) { if (this.routeInfo.addOrEdit == 'edit' && this.routeInfo.activityStatus == 2) {
// this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].forbidEdit() // this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].forbidEdit()
this.isDisabled = this.routeInfo.addOrEdit != 'add' this.isDisabled = this.routeInfo.addOrEdit != 'add'
detailDisableList.forEach(attr => { disableObj.edit.forEach(attr => {
this.changeFormAttr( this.changeFormAttr(
attr, attr,
'isDisabled', 'isDisabled',
...@@ -1621,6 +1645,9 @@ export default { ...@@ -1621,6 +1645,9 @@ export default {
}, },
handleMusicChange(idx) { handleMusicChange(idx) {
if (this.isDisabled) {
return true
}
this.musicList.forEach((item, index) => { this.musicList.forEach((item, index) => {
if (index != idx) { if (index != idx) {
item.isCheck = false item.isCheck = false
...@@ -1740,7 +1767,7 @@ export default { ...@@ -1740,7 +1767,7 @@ export default {
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.activityInfo = info this.activityInfo = info
this.$set(this.editForm, 'activityTime', [info.startTime, info.endTime]) this.$set(this.editForm, 'activityTime', [info.startTime, info.endTime])
this.routeInfo.addOrEdit == 'edit' && this.getGoodInfo(info.goodsId) this.routeInfo.addOrEdit != 'add' && this.getGoodInfo(info.goodsId)
if (info.activityPrice != null && info.goodsStock != null) { if (info.activityPrice != null && info.goodsStock != null) {
this.editForm.activityPrice = (info.activityPrice / 100).toFixed(2) this.editForm.activityPrice = (info.activityPrice / 100).toFixed(2)
this.editForm.goodsStock = info.goodsStock + '' this.editForm.goodsStock = info.goodsStock + ''
...@@ -1761,8 +1788,10 @@ export default { ...@@ -1761,8 +1788,10 @@ export default {
// 活动详情 // 活动详情
if (info.activityDetail) { if (info.activityDetail) {
this.editForm.activityDetail = decodeURIComponent(info.activityDetail) this.editForm.activityDetail = decodeURIComponent(info.activityDetail)
if (!this.isDisabled) {
this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].setEdit(this.editForm.activityDetail) this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].setEdit(this.editForm.activityDetail)
} }
}
// 活动音乐 // 活动音乐
if (info.activityMusic) { if (info.activityMusic) {
var checkIdx = this.musicList.map(item => item.addr).findIndex(k => k == info.activityMusic) var checkIdx = this.musicList.map(item => item.addr).findIndex(k => k == info.activityMusic)
...@@ -2132,7 +2161,7 @@ export default { ...@@ -2132,7 +2161,7 @@ export default {
}) })
}, },
handleCancel() { handleCancel() {
if (this.editStatus) { if (this.editStatus && this.addOrEdit != 'detail') {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', { this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!