Commit 7478c254 by 杨北旺

feat:添加对应tapd上【ID1003988】需求

1 parent 5dd06e0b
...@@ -25,13 +25,13 @@ ...@@ -25,13 +25,13 @@
<div class="f-size"> <div class="f-size">
<i v-show="editNotify.code == '0'" class="el-icon-success"></i> <i v-show="editNotify.code == '0'" class="el-icon-success"></i>
<i v-show="editNotify.code != '0'" class="el-icon-error"></i> <i v-show="editNotify.code != '0'" class="el-icon-error"></i>
<span>{{editNotify.code == '0' ? '操作成功' : editNotify.message}}</span> <span>{{ editNotify.code == '0' ? '操作成功' : editNotify.message }}</span>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="isSecondVisible" width="400px" class="tips-dialog" top="30%" :title="secondObj.title"> <el-dialog :visible.sync="isSecondVisible" width="400px" class="tips-dialog" top="30%" :title="secondObj.title">
<div class="f-size"> <div class="f-size">
<i class="el-icon-warning"></i> <i class="el-icon-warning"></i>
<span>{{secondObj.txt}}</span> <span>{{ secondObj.txt }}</span>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button :size="size" @click="handleSecondCancel">取 消</el-button> <el-button :size="size" @click="handleSecondCancel">取 消</el-button>
...@@ -99,17 +99,21 @@ export default { ...@@ -99,17 +99,21 @@ export default {
isClear: true, isClear: true,
inputWidth: '320px', inputWidth: '320px',
selectWidth: '110px', selectWidth: '110px',
selectOption: [{ selectOption: [
{
label: '客户姓名', label: '客户姓名',
name: 'customerName' name: 'customerName'
}, { },
{
label: '合同号', label: '合同号',
name: 'contractNo' name: 'contractNo'
}, { },
{
label: '车架号', label: '车架号',
name: 'vin' name: 'vin'
}], }
handleSelectChange: (value) => { ],
handleSelectChange: value => {
this.searchSelectObj.nameOrNoOrVin.value = '' this.searchSelectObj.nameOrNoOrVin.value = ''
} }
}, },
...@@ -167,7 +171,7 @@ export default { ...@@ -167,7 +171,7 @@ export default {
this.searchFormData[idx].isHide = false this.searchFormData[idx].isHide = false
this.searchForm[this.levelToShow['2']] = '' this.searchForm[this.levelToShow['2']] = ''
var tempIdx = '' var tempIdx = ''
for(var i = 3; i <= 4; i++) { for (var i = 3; i <= 4; i++) {
tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + '']) tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData[tempIdx].isHide = true this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow[i + '']] = '' this.searchForm[this.levelToShow[i + '']] = ''
...@@ -241,7 +245,7 @@ export default { ...@@ -241,7 +245,7 @@ export default {
width: '200px', width: '200px',
line: 1, line: 1,
formatter: cellValue => { formatter: cellValue => {
return [2, 4, 5].includes(cellValue.orderStatus) ? (cellValue.contractNo || '-') : '-' return [2, 4, 5].includes(cellValue.orderStatus) ? cellValue.contractNo || '-' : '-'
} }
}, },
{ {
...@@ -356,7 +360,7 @@ export default { ...@@ -356,7 +360,7 @@ export default {
line: 1, line: 1,
formatter: cellValue => { formatter: cellValue => {
var auditStatusTxt = '-' var auditStatusTxt = '-'
if([2, 4, 5].includes(cellValue.orderStatus)) { if ([2, 4, 5].includes(cellValue.orderStatus)) {
auditStatusTxt = this.baseData.auditStatusList.map(item => item.confId).includes(cellValue.auditStatus) ? this.baseData.auditStatusList.find(item => item.confId == cellValue.auditStatus).confName : '-' auditStatusTxt = this.baseData.auditStatusList.map(item => item.confId).includes(cellValue.auditStatus) ? this.baseData.auditStatusList.find(item => item.confId == cellValue.auditStatus).confName : '-'
} }
return auditStatusTxt return auditStatusTxt
...@@ -477,7 +481,7 @@ export default { ...@@ -477,7 +481,7 @@ export default {
}) })
this.$apis.beforeSale.getUserInfoApi({}).then(res => { this.$apis.beforeSale.getUserInfoApi({}).then(res => {
this.userInfo = res this.userInfo = res
if(res.merchantAccountLevel != 4) { if (res.merchantAccountLevel != 4) {
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1]) var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
this.searchFormData[idx].isHide = false this.searchFormData[idx].isHide = false
this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName) this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
...@@ -513,8 +517,8 @@ export default { ...@@ -513,8 +517,8 @@ export default {
...tempParams ...tempParams
} }
// 商户-merchantId // 商户-merchantId
for(var i = 1; i <= 4; i++) { for (var i = 1; i <= 4; i++) {
if(this.searchForm[this.levelToShow[i]]) { if (this.searchForm[this.levelToShow[i]]) {
params.merchantId = this.searchForm[this.levelToShow[i]] params.merchantId = this.searchForm[this.levelToShow[i]]
params.accountLevel = i params.accountLevel = i
} }
...@@ -582,9 +586,12 @@ export default { ...@@ -582,9 +586,12 @@ export default {
this.isTipVisible = true this.isTipVisible = true
this.editNotify = res this.editNotify = res
clearTimeout(this.timer) clearTimeout(this.timer)
this.timer = setTimeout(() => { this.timer = setTimeout(
() => {
this.isTipVisible = false this.isTipVisible = false
}, this.editNotify.code == '0' ? 1500 : 3000) },
this.editNotify.code == '0' ? 1500 : 3000
)
if (res.code == '0') { if (res.code == '0') {
this.handleSearch() this.handleSearch()
} }
...@@ -599,7 +606,7 @@ export default { ...@@ -599,7 +606,7 @@ export default {
handleAudit(row) { handleAudit(row) {
var txt = row.auditStatus ? '撤销' : '审核通过' var txt = row.auditStatus ? '撤销' : '审核通过'
// this.isTipVisible = !this.isTipVisible // this.isTipVisible = !this.isTipVisible
this.secondConfirm(txt, '是否确认'+ txt +'?', 'beforeSale', 'aduitOrderApi', { contractNo: row.contractNo, auditStatus: row.auditStatus ? 0 : 1 }) this.secondConfirm(txt, '是否确认' + txt + '?', 'beforeSale', 'aduitOrderApi', { contractNo: row.contractNo, auditStatus: row.auditStatus ? 0 : 1 })
}, },
// 导出 // 导出
...@@ -607,6 +614,7 @@ export default { ...@@ -607,6 +614,7 @@ export default {
var params = this.getParams() var params = this.getParams()
this.$apis.beforeSale.getExportApi(params).then(res => { this.$apis.beforeSale.getExportApi(params).then(res => {
// window.open(res) // window.open(res)
// eslint-disable-next-line no-undef
let tempaa = utils.getExplorer() let tempaa = utils.getExplorer()
if (tempaa == 'QQ') { if (tempaa == 'QQ') {
window.open(res) window.open(res)
...@@ -643,8 +651,8 @@ export default { ...@@ -643,8 +651,8 @@ export default {
} }
var tempIdx = '' var tempIdx = ''
var addNum = this.userInfo.admin ? 1 : 2 var addNum = this.userInfo.admin ? 1 : 2
if(this.userInfo.merchantAccountLevel != 4) { if (this.userInfo.merchantAccountLevel != 4) {
for(var i = this.userInfo.merchantAccountLevel + addNum; i <= 4; i++) { for (var i = this.userInfo.merchantAccountLevel + addNum; i <= 4; i++) {
tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + '']) tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData[tempIdx].isHide = true this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow[i + '']] = '' this.searchForm[this.levelToShow[i + '']] = ''
...@@ -676,8 +684,8 @@ export default { ...@@ -676,8 +684,8 @@ export default {
width: calc(100% - 210px); width: calc(100% - 210px);
height: 30px; height: 30px;
font-size: 12px; font-size: 12px;
background-color: #FFF0BB; background-color: #fff0bb;
border: 1px solid #FFCA78; border: 1px solid #ffca78;
padding: 4px 10px; padding: 4px 10px;
border-radius: 2px; border-radius: 2px;
} }
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
<p class="h20_title">累计产值:总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。</p> <p class="h20_title">累计产值:总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。</p>
<p class="h20_title">昨日产值:当前时间前一天的产值</p> <p class="h20_title">昨日产值:当前时间前一天的产值</p>
<p class="h20_title">今日产值:当前时间的实时产值</p> <p class="h20_title">今日产值:当前时间的实时产值</p>
<p v-if="accountLevel!=4" class="h20_title">平均单店产值:一个门店的平均产值=累计产值/开通精品升级的门店数</p> <p v-if="accountLevel != 4" class="h20_title">平均单店产值:一个门店的平均产值=累计产值/开通精品升级的门店数</p>
<p v-if="accountLevel==4" class="h20_title">行业均值(单店):一个门店的平均产值=所有门店的累计产值/开通精品升级的门店数。</p> <p v-if="accountLevel == 4" class="h20_title">行业均值(单店):一个门店的平均产值=所有门店的累计产值/开通精品升级的门店数。</p>
<p class="h20_title">冠军店:显示统计时间范围内产值最高的店及占比,占比=冠军店产值/总产值</p> <p class="h20_title">冠军店:显示统计时间范围内产值最高的店及占比,占比=冠军店产值/总产值</p>
<p class="h20_title">累计利润:统计时间范围内该店的导流方分润金额的总和</p> <p class="h20_title">累计利润:统计时间范围内该店的导流方分润金额的总和</p>
<p class="h20_title">昨日利润:当前时间前一天的导流方分润金额</p> <p class="h20_title">昨日利润:当前时间前一天的导流方分润金额</p>
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
<p style="height: 15px"></p> <p style="height: 15px"></p>
<p class="h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</p> <p class="h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</p>
</div> </div>
<span class="text_tip_price2 h13_title">行业均值(单店):{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span> <!-- <span class="text_tip_price2 h13_title">行业均值(单店):{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span> -->
<span class="text_tip_price3 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span> <span class="text_tip_price2 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
<span class="text_tip_price4 h13_title">今日利润:{{ productValueInfo.todayProfitMoney ? '¥' : '' }}{{ productValueInfo.todayProfitMoney || '---' }}</span> <span class="text_tip_price4 h13_title">今日利润:{{ productValueInfo.todayProfitMoney ? '¥' : '' }}{{ productValueInfo.todayProfitMoney || '---' }}</span>
<span class="text_tip_price11 h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span> <span class="text_tip_price11 h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
</template> </template>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<span class="h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span> <span class="h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
</div> </div>
<span class="text_tip_price7 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span> <span class="text_tip_price7 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
<span class="text_tip_price6 h13_title">平均单店产值:{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span> <!-- <span class="text_tip_price6 h13_title">平均单店产值:{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span> -->
<span v-if="firsStore" class="text_tip_price5 h13_title">冠军店:{{ firsStore.merchantName }}(占{{ persent }}%)</span> <span v-if="firsStore" class="text_tip_price5 h13_title">冠军店:{{ firsStore.merchantName }}(占{{ persent }}%)</span>
</template> </template>
</div> </div>
...@@ -378,7 +378,7 @@ export default { ...@@ -378,7 +378,7 @@ export default {
'merchantAccountLevelList[0]': temp 'merchantAccountLevelList[0]': temp
} }
get4SList(para).then(res => { get4SList(para).then(res => {
if(res){ if (res) {
this.storeList = res.list || [] this.storeList = res.list || []
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!