Commit 4e2ccf65 by 王志慧

fixed

1 parent 976649f6
...@@ -17,10 +17,9 @@ ...@@ -17,10 +17,9 @@
<el-input <el-input
v-model="userInput[0]" v-model="userInput[0]"
:placeholder="startPlaceholder" :placeholder="startPlaceholder"
@blur="handleBlur" @blur="handleBlur(0)"
@input="handleStartInput" @input="handleStartInput"
class="el-range-input" class="el-range-input"
@keydown="handleKeydown"
></el-input> ></el-input>
<span class="el-range-separator">至</span> <span class="el-range-separator">至</span>
<el-input <el-input
...@@ -28,9 +27,8 @@ ...@@ -28,9 +27,8 @@
:placeholder="endPlaceholder" :placeholder="endPlaceholder"
@input="handleEndInput" @input="handleEndInput"
@focus="handleFocus" @focus="handleFocus"
@blur="handleBlur" @blur="handleBlur(1)"
class="el-range-input" class="el-range-input"
@keydown="handleKeydown"
></el-input> ></el-input>
<i <i
...@@ -67,24 +65,15 @@ export default { ...@@ -67,24 +65,15 @@ export default {
}, },
methods: { methods: {
handleStartInput(event) { handleStartInput(event) {
console.log(event) this.userInput[0] = event
if (this.userInput) {
this.userInput = [event, this.userInput[1]]
} else {
this.userInput = [event, null]
}
}, },
handleEndInput(event) { handleEndInput(event) {
if (this.userInput) { this.userInput[1] = event
this.userInput = [this.userInput[0], event]
} else {
this.userInput = [null, event]
}
}, },
handleClickIcon(event) { handleClickIcon(event) {
this.userInput[0]=null this.userInput[0] = null
this.userInput[1]=null this.userInput[1] = null
}, },
valueIsEmpty() { valueIsEmpty() {
const val = this.userInput const val = this.userInput
...@@ -113,16 +102,23 @@ export default { ...@@ -113,16 +102,23 @@ export default {
this.$emit("focus", this) this.$emit("focus", this)
} }
}, },
handleBlur() { handleBlur(index) {
this.pickerVisible = false this.pickerVisible = false
let val = this.userInput[index]
let isNumber = /^\d+(\.\d+)?$/.test(val)
if (!isNumber) {
val = null
}
if (val > 100) val = 100
this.userInput[index] = val
this.contrastValue() this.contrastValue()
}, },
contrastValue() { contrastValue() {
let val = this.userInput let val = this.userInput
if (Array.isArray(val)) { if (Array.isArray(val)) {
if (val[0] > val[1]) { if (val[0] > val[1]) {
val[1] =null val[1] = null
console.log(val)
} }
} }
} }
......
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
<span v-else>{{ scope.scope.serviceList.join('') }}</span> <span v-else>{{ scope.scope.serviceList.join('') }}</span>
</template> </template>
</div> </div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="recepDetail(scope.scope)" :disabled="!scope.scope.score && scope.scope.score != 0">接待明细</el-button> <el-button type="text" @click="recepDetail(scope.scope)" :disabled="!scope.scope.score && scope.scope.score != 0">接待明细</el-button>
</div> </div>
...@@ -159,6 +160,7 @@ export default { ...@@ -159,6 +160,7 @@ export default {
{ {
label: '手机号', label: '手机号',
name: 'phoneNumber', name: 'phoneNumber',
placeholder: "请输入手机号(至少4位)",
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
isClear: true isClear: true
...@@ -293,6 +295,7 @@ export default { ...@@ -293,6 +295,7 @@ export default {
{ {
label: '话术质检评分/分', label: '话术质检评分/分',
prop: 'score', prop: 'score',
// addHtml: "scoreHTml",
width: '170px', width: '170px',
renderHeader: createElement => { renderHeader: createElement => {
return createElement('div', { style: 'margin-left:-10px' }, [ return createElement('div', { style: 'margin-left:-10px' }, [
...@@ -335,7 +338,7 @@ export default { ...@@ -335,7 +338,7 @@ export default {
getServiceStore() { getServiceStore() {
this.$apis.quality this.$apis.quality
.listShop4sByRef({ .listShop4sByRef({
scene: 0 yqMerchantId: this.$globalState.session.merchantId
}) })
.then(res => { .then(res => {
this.baseData.storeIdList = res || [] this.baseData.storeIdList = res || []
...@@ -353,11 +356,11 @@ export default { ...@@ -353,11 +356,11 @@ export default {
}) })
}, },
recepDetail(row) { recepDetail(row) {
if (row.score == 0) { if (!row.score && row.score != 0) {
this.$confirm('质检分析中,请耐心等待', '提示', { this.$confirm("质检分析中,请耐心等待", "提示", {
confirmButtonText: '确定', confirmButtonText: "确定",
cancelButtonText: '取消', cancelButtonText: "取消",
type: 'warning' type: "warning"
}) })
return return
} }
...@@ -368,9 +371,9 @@ export default { ...@@ -368,9 +371,9 @@ export default {
} }
}) })
}, },
toMinutesAndSeconds(hourse) { toMinutesAndSeconds(time) {
const h = Math.floor(hourse / 60) const h = Math.floor(time / 3600)
const m = parseInt(hourse % 60) const m = parseInt((time % 3600) / 60)
return { return {
h, h,
m m
...@@ -382,7 +385,8 @@ export default { ...@@ -382,7 +385,8 @@ export default {
if (this.searchForm.searchdate) { if (this.searchForm.searchdate) {
this.searchFormSearch.searchdate = Util.dateFormate(this.searchForm.searchdate, 'YYYY-MM-DD') this.searchFormSearch.searchdate = Util.dateFormate(this.searchForm.searchdate, 'YYYY-MM-DD')
} }
console.log(this.$global)
this.searchFormSearch.serviceMerchantNo=this.$globalState.session.merchantId
if (this.searchFormSearch.qualityTestScore) { if (this.searchFormSearch.qualityTestScore) {
this.searchFormSearch.qualityTestScoreBegin = this.searchFormSearch.qualityTestScore[0] this.searchFormSearch.qualityTestScoreBegin = this.searchFormSearch.qualityTestScore[0]
this.searchFormSearch.qualityTestScoreEnd = this.searchFormSearch.qualityTestScore[1] this.searchFormSearch.qualityTestScoreEnd = this.searchFormSearch.qualityTestScore[1]
...@@ -416,6 +420,9 @@ export default { ...@@ -416,6 +420,9 @@ export default {
}) })
}, },
handleSearch() { handleSearch() {
if (this.searchForm.phoneNumber&&this.searchForm.phoneNumber.length < 4) {
return
}
this.$refs.qualityTable.refreshTable(true, true) this.$refs.qualityTable.refreshTable(true, true)
// this.stockMonthReportCount() // this.stockMonthReportCount()
}, },
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<el-radio-group v-model="searchForm.hitResult"> <el-radio-group v-model="searchForm.hitResult">
<el-radio-button label="">全部</el-radio-button> <el-radio-button label="">全部</el-radio-button>
<el-radio-button label="1">命中</el-radio-button> <el-radio-button label="1">命中</el-radio-button>
<el-radio-button label="2">未命中</el-radio-button> <el-radio-button label="0">未命中</el-radio-button>
</el-radio-group> </el-radio-group>
</div> </div>
<GLTable ref="analyseTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url"> <GLTable ref="analyseTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url">
...@@ -59,7 +59,8 @@ export default { ...@@ -59,7 +59,8 @@ export default {
{ {
text: '话术评分', text: '话术评分',
formatter: data => { formatter: data => {
return `<span style="font-weight:700;font-size:26px;">${data.averageQualityTestScore ? data.averageQualityTestScore : '0'}</span>分` console.log(data,11111111111)
return `<span style="font-weight:700;font-size:26px;">${data.score ? data.score : '0'}</span>分`
} }
}, },
{ {
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.qualityTestScore"></el-input-range> <el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.qualityTestScore"></el-input-range>
</template> </template>
</GLCombiForm> </GLCombiForm>
<GLTable ref="recepDetail" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" :pageConf="pageConf"> <GLTable ref="recepDetail" :get-list-api="getListApi" :hasNum="false" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" :pageConf="pageConf">
<template slot="auth-button" slot-scope="scope"> <template slot="auth-button" slot-scope="scope">
<el-button type="text" @click="qualitDetail(scope.scope)">质检详情</el-button> <el-button type="text" @click="qualitDetail(scope.scope)">质检详情</el-button>
</template> </template>
...@@ -96,6 +96,10 @@ export default { ...@@ -96,6 +96,10 @@ export default {
listName: 'list', listName: 'list',
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{
label: "接待批次",
prop: "key"
},
{ {
label: '开始接待时间', label: '开始接待时间',
prop: 'startTime' prop: 'startTime'
...@@ -178,7 +182,7 @@ export default { ...@@ -178,7 +182,7 @@ export default {
this.searchFormSearch.endTime = Util.dateFormate(this.searchFormSearch.recepTime[1], 'YYYY-MM-DD') + ' 23:59:59' this.searchFormSearch.endTime = Util.dateFormate(this.searchFormSearch.recepTime[1], 'YYYY-MM-DD') + ' 23:59:59'
} }
if (this.searchFormSearch.estimatedResult) { if (this.searchFormSearch.estimatedResultId) {
this.searchFormSearch.estimatedResult = this.baseData.estimatedResultList.find(item => item.confId == this.searchFormSearch.estimatedResultId).confLabel this.searchFormSearch.estimatedResult = this.baseData.estimatedResultList.find(item => item.confId == this.searchFormSearch.estimatedResultId).confLabel
} }
...@@ -189,6 +193,11 @@ export default { ...@@ -189,6 +193,11 @@ export default {
resolve() resolve()
}) })
}, },
setTableFinishFun(data) {
for (let i = 0; i < data.length; i++) {
data[i].key = i + 1
}
},
getOptionsList() { getOptionsList() {
this.showFormData.forEach((item, index) => { this.showFormData.forEach((item, index) => {
if (item.type === 'select') { if (item.type === 'select') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!