Commit 4e2ccf65 by 王志慧

fixed

1 parent 976649f6
......@@ -17,10 +17,9 @@
<el-input
v-model="userInput[0]"
:placeholder="startPlaceholder"
@blur="handleBlur"
@blur="handleBlur(0)"
@input="handleStartInput"
class="el-range-input"
@keydown="handleKeydown"
></el-input>
<span class="el-range-separator">至</span>
<el-input
......@@ -28,9 +27,8 @@
:placeholder="endPlaceholder"
@input="handleEndInput"
@focus="handleFocus"
@blur="handleBlur"
@blur="handleBlur(1)"
class="el-range-input"
@keydown="handleKeydown"
></el-input>
<i
......@@ -67,24 +65,15 @@ export default {
},
methods: {
handleStartInput(event) {
console.log(event)
if (this.userInput) {
this.userInput = [event, this.userInput[1]]
} else {
this.userInput = [event, null]
}
this.userInput[0] = event
},
handleEndInput(event) {
if (this.userInput) {
this.userInput = [this.userInput[0], event]
} else {
this.userInput = [null, event]
}
this.userInput[1] = event
},
handleClickIcon(event) {
this.userInput[0]=null
this.userInput[1]=null
this.userInput[0] = null
this.userInput[1] = null
},
valueIsEmpty() {
const val = this.userInput
......@@ -113,16 +102,23 @@ export default {
this.$emit("focus", this)
}
},
handleBlur() {
handleBlur(index) {
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()
},
contrastValue() {
let val = this.userInput
if (Array.isArray(val)) {
if (val[0] > val[1]) {
val[1] =null
console.log(val)
val[1] = null
}
}
}
......
......@@ -65,6 +65,7 @@
<span v-else>{{ scope.scope.serviceList.join('') }}</span>
</template>
</div>
<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>
</div>
......@@ -159,6 +160,7 @@ export default {
{
label: '手机号',
name: 'phoneNumber',
placeholder: "请输入手机号(至少4位)",
type: 'input',
maxlength: '20',
isClear: true
......@@ -293,6 +295,7 @@ export default {
{
label: '话术质检评分/分',
prop: 'score',
// addHtml: "scoreHTml",
width: '170px',
renderHeader: createElement => {
return createElement('div', { style: 'margin-left:-10px' }, [
......@@ -335,7 +338,7 @@ export default {
getServiceStore() {
this.$apis.quality
.listShop4sByRef({
scene: 0
yqMerchantId: this.$globalState.session.merchantId
})
.then(res => {
this.baseData.storeIdList = res || []
......@@ -353,11 +356,11 @@ export default {
})
},
recepDetail(row) {
if (row.score == 0) {
this.$confirm('质检分析中,请耐心等待', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
if (!row.score && row.score != 0) {
this.$confirm("质检分析中,请耐心等待", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
return
}
......@@ -368,9 +371,9 @@ export default {
}
})
},
toMinutesAndSeconds(hourse) {
const h = Math.floor(hourse / 60)
const m = parseInt(hourse % 60)
toMinutesAndSeconds(time) {
const h = Math.floor(time / 3600)
const m = parseInt((time % 3600) / 60)
return {
h,
m
......@@ -382,7 +385,8 @@ export default {
if (this.searchForm.searchdate) {
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) {
this.searchFormSearch.qualityTestScoreBegin = this.searchFormSearch.qualityTestScore[0]
this.searchFormSearch.qualityTestScoreEnd = this.searchFormSearch.qualityTestScore[1]
......@@ -416,6 +420,9 @@ export default {
})
},
handleSearch() {
if (this.searchForm.phoneNumber&&this.searchForm.phoneNumber.length < 4) {
return
}
this.$refs.qualityTable.refreshTable(true, true)
// this.stockMonthReportCount()
},
......
......@@ -26,7 +26,7 @@
<el-radio-group v-model="searchForm.hitResult">
<el-radio-button label="">全部</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>
</div>
<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 {
{
text: '话术评分',
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 @@
<el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.qualityTestScore"></el-input-range>
</template>
</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">
<el-button type="text" @click="qualitDetail(scope.scope)">质检详情</el-button>
</template>
......@@ -96,6 +96,10 @@ export default {
listName: 'list',
tableOption: true,
tableColumns: [
{
label: "接待批次",
prop: "key"
},
{
label: '开始接待时间',
prop: 'startTime'
......@@ -178,7 +182,7 @@ export default {
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
}
......@@ -189,6 +193,11 @@ export default {
resolve()
})
},
setTableFinishFun(data) {
for (let i = 0; i < data.length; i++) {
data[i].key = i + 1
}
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
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!