Commit 1dd04787 by 胡悦

Merge branch 'v1.0.2' of http://192.168.3.233:8090/saas/scrm-micro-marketing into v1.0.2

2 parents 1d0f9da3 cfd180cb
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.3.3", "glsx-components": "^1.3.5",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
let cfg = require('./conf.js') let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) { export const fetchConfig = function(isEnv = true) {
// console.log(1111111) // console.log(1111111)
// if (isEnv) { // if (isEnv) {
// let { request } = cfg // let { request } = cfg
......
...@@ -236,9 +236,7 @@ export default { ...@@ -236,9 +236,7 @@ export default {
}, },
setTableFinishFun() { setTableFinishFun() {
//接收到的数据为空 //接收到的数据为空
if (!this.$refs.memberOrderRef.data.length) { this.$refs.memberOrderRef.data.length ? (this.$refs.memberOrderRef.tableHeightValues = '') : this.$refs.memberOrderRef.setTableHeightFun()
this.$refs.memberOrderRef.setTableHeightFun()
}
}, },
handleReset() { handleReset() {
this.isReload = false this.isReload = false
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
ruleForm.effectiveDays = val.replace(/[^\d]/g, '') ruleForm.effectiveDays = val.replace(/[^\d]/g, '')
} }
" "
:disabled="disabledContent" :disabled="title== '查看' || title =='编辑' || ruleForm.effectiveType !=1"
placeholder="请输入" placeholder="请输入"
size="small" size="small"
style="width: 100px" style="width: 100px"
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</el-radio> </el-radio>
<!-- effectiveStartTime effectiveEndTime +具体时间 --> <!-- effectiveStartTime effectiveEndTime +具体时间 -->
<el-radio :label="2"> <el-radio :label="2">
<el-date-picker :size="small" :disabled="disabledContent" style="width: 230px" v-model="ruleForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker> <el-date-picker :size="small" :disabled="title== '查看' || title =='编辑' || ruleForm.effectiveType !=2" style="width: 230px" v-model="ruleForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker>
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
...@@ -46,12 +46,12 @@ ...@@ -46,12 +46,12 @@
<!-- useType:1 useAmount:6 --> <!-- useType:1 useAmount:6 -->
<el-radio :label="1"> <el-radio :label="1">
有效期内可使用 有效期内可使用
<el-button @click="sub1" class="addsubBtn" :disabled="disabledContent">-</el-button> <el-button @click="sub1" class="addsubBtn" :disabled="title== '查看' || title =='编辑' || ruleForm.customUseLimit !=1">-</el-button>
<span class="numWrap">{{ ruleForm.limitTime1 }}</span> <div class="numWrap">{{ ruleForm.limitTime1 }}</div>
<el-button @click="add1" class="addsubBtn" :disabled="disabledContent">+</el-button> <el-button @click="add1" class="addsubBtn" :disabled="title== '查看' || title =='编辑' || ruleForm.customUseLimit !=1">+</el-button>
次 次
</el-radio> </el-radio>
<el-radio :label="2"> <el-radio :label="2" >
有效期内每 有效期内每
<el-input <el-input
v-model="ruleForm.limitDays" v-model="ruleForm.limitDays"
...@@ -61,15 +61,15 @@ ...@@ -61,15 +61,15 @@
ruleForm.limitDays = val.replace(/[^\d]/g, '') ruleForm.limitDays = val.replace(/[^\d]/g, '')
} }
" "
:disabled="disabledContent" :disabled="title== '查看' || title =='编辑' || ruleForm.customUseLimit !=2"
placeholder="请输入" placeholder="请输入"
size="small" size="small"
style="width: 100px" style="width: 100px"
></el-input> ></el-input>
天内可使用 天内可使用
<el-button @click.stop="sub2" class="addsubBtn" :disabled="disabledContent">-</el-button> <el-button @click.stop="sub2" class="addsubBtn" :disabled="title== '查看' || title =='编辑' || ruleForm.customUseLimit !=2">-</el-button>
<span class="numWrap">{{ ruleForm.limitTime2 }}</span> <span class="numWrap">{{ ruleForm.limitTime2 }}</span>
<el-button @click.stop="add2" class="addsubBtn" :disabled="disabledContent">+</el-button> <el-button @click.stop="add2" class="addsubBtn" :disabled="title== '查看' || title =='编辑' || ruleForm.customUseLimit !=2">+</el-button>
次 次
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
......
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
prop: 'customerName' prop: 'customerName'
}, },
{ {
label: '几天前', label: '评价时间',
prop: 'createdDateStr' prop: 'createdDateStr'
}, },
{ {
......
<!-- 编辑商品 --> <!-- 编辑商品 -->
<template> <template>
<div class="edit-pro marketing p-t-20 edit-box"> <div class="edit-pro marketing p-t-20 edit-box">
<el-tabs v-if="routeInfo.addOrEdit == '3'" v-model="activeName" @tab-click="handleTabClick"> <el-tabs v-if="routeInfo.addOrEdit != '1'" v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane> <el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane>
<el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane> <el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane>
</el-tabs> </el-tabs>
<div v-show="(routeInfo.addOrEdit != '3') || (routeInfo.addOrEdit == '3' && activeName == 'basicInfo')" class="container edit-container"> <div v-show="(routeInfo.addOrEdit == '1') || (['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'basicInfo')" class="container edit-container">
<div class="flex"> <div class="flex">
<div class="home-set-form flex-grow"> <div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index"> <div v-for="(item, index) in externalFormList" :key="index">
...@@ -321,9 +321,9 @@ ...@@ -321,9 +321,9 @@
</div> </div>
</div> </div>
</div> </div>
<comment-detail v-show="routeInfo.addOrEdit == '3' && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail> <comment-detail v-show="['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button v-if="routeInfo.addOrEdit != '3'" type="primary" @click="handleConfirm">确定</el-button> <el-button v-if="(routeInfo.addOrEdit == '1') || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button> <el-button type="default" @click="handleCancel">取消</el-button>
</div> </div>
<el-dialog :visible.sync="isImgVisible"> <el-dialog :visible.sync="isImgVisible">
......
<!-- 商品编辑 - 带货 --> <!-- 商品编辑 - 带货 -->
<template> <template>
<div class="edit-product-dh marketing p-t-20 edit-box"> <div class="edit-product-dh marketing p-t-20 edit-box">
<el-tabs v-if="routeInfo.addOrEdit == '3'" v-model="activeName" @tab-click="handleTabClick"> <el-tabs v-if="routeInfo.addOrEdit != '1'" v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane> <el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane>
<el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane> <el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane>
</el-tabs> </el-tabs>
<div v-show="(routeInfo.addOrEdit != '3') || (routeInfo.addOrEdit == '3' && activeName == 'basicInfo')" class="container edit-container"> <div v-show="(routeInfo.addOrEdit == '1') || (['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'basicInfo')" class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;"> <div class="flex" style="margin-top: 20px;">
<div class="main-img-box"> <div class="main-img-box">
...@@ -79,9 +79,9 @@ ...@@ -79,9 +79,9 @@
<img style="width: 375px; width: 375px;" v-show="item.resType == 1" :src="item.content" /> <img style="width: 375px; width: 375px;" v-show="item.resType == 1" :src="item.content" />
</div> </div>
</div> </div>
<comment-detail v-show="routeInfo.addOrEdit == '3' && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail> <comment-detail v-show="['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button v-if="routeInfo.addOrEdit != '3'" type="primary" @click="handleConfirm">确定</el-button> <el-button v-if="(routeInfo.addOrEdit == '1') || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button> <el-button type="default" @click="handleCancel">取消</el-button>
</div> </div>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!