Commit 49c192d5 by 前端

Merge branch 'chenwq_dev_v2.5.0' into 'v2.5.0'

Chenwq dev v2.5.0 to v2.5.0

See merge request !208
2 parents 6aa87d9b 627cbe89
...@@ -26,8 +26,11 @@ ...@@ -26,8 +26,11 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="receiveList" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="receiveList" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="userStatus" slot-scope="scope"> <div slot="userStatus" slot-scope="scope">
<span :class="['table-circle', 'm-r-8', scope.scope.userStatus == 1 ? 'back-green' : scope.scope.userStatus == 2 ? 'back-red' : 'back-grey']"></span> <p>
<span>{{ baseData.userStatusList.find(item => item.confId == scope.scope.userStatus).confName }}</span> <span :class="['table-circle', 'm-r-8', scope.scope.userStatus == 1 ? 'back-green' : scope.scope.userStatus == 2 ? 'back-red' : 'back-grey']"></span>
<span>{{ baseData.userStatusList.find(item => item.confId == scope.scope.userStatus).confName }}</span>
</p>
<p v-if="scope.scope.userStatus == 4">{{ scope.scope.cancelReason }}</p>
</div> </div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
...@@ -44,7 +47,7 @@ ...@@ -44,7 +47,7 @@
<p>请先和客户沟通在确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷</p> <p>请先和客户沟通在确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷</p>
<el-form ref="cancelRef" label-width="100px" :rules="cancelRules" :model="cancelForm"> <el-form ref="cancelRef" label-width="100px" :rules="cancelRules" :model="cancelForm">
<el-form-item label="作废原因" prop="cancelReason" class="m-t-20"> <el-form-item label="作废原因" prop="cancelReason" class="m-t-20">
<el-input :size="size" type="textarea" v-model="cancelForm.cancelReason" placeholder="请输入作废原因" maxlength="50" rows="3" show-word-limit></el-input> <el-input :size="size" type="textarea" v-model.trim="cancelForm.cancelReason" placeholder="请输入作废原因" maxlength="50" rows="3" show-word-limit></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</glsx-dialog> </glsx-dialog>
...@@ -134,7 +137,11 @@ export default { ...@@ -134,7 +137,11 @@ export default {
attrs: { attrs: {
type: 'text', type: 'text',
disabled: (row, condition) => { disabled: (row, condition) => {
return +row.userStatus != 1 var isDisabled = [2, 3, 4].includes(row.userStatus)
if (+row.userStatus == 2 && this.coupon.discountType == 7) {
isDisabled = false
}
return isDisabled
} }
}, },
listeners: { listeners: {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div>{{ item.attContent[0].marketingName }}</div> <div>{{ item.attContent[0].marketingName }}</div>
</div> </div>
</template> </template>
<template v-else-if="item.attType == 2" v-for="(imgItem, index) in item.attContent"> <template v-else-if="item.attType == 2 && !previewList.map(k => k.attType).includes(3)" v-for="(imgItem, index) in item.attContent">
<el-image style="width: 52px; height: 52px" class="img-list" :src="imgItem" fit="fit" :key="index" :preview-src-list="item.attContent"></el-image> <el-image style="width: 52px; height: 52px" class="img-list" :src="imgItem" fit="fit" :key="index" :preview-src-list="item.attContent"></el-image>
</template> </template>
<template v-else-if="item.attType == 3"> <template v-else-if="item.attType == 3">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!