Commit 351138fd by 王志慧

fixed

1 parent 006c416a
......@@ -3508,27 +3508,6 @@
"whatwg-fetch": "^3.6.2"
},
"dependencies": {
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.10.2",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.2.tgz",
"integrity": "sha512-ndeSe/8KQc/nlA7TJ+OBhv2qalmj1s+uBs7yHDRFaAXscFTApBzY9F1jES3bautmgWjDlDct0fw8rPuySDLwxw==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"acorn-walk": {
"version": "8.2.0",
"resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz",
......@@ -3918,6 +3897,27 @@
"lodash": "^4.17.4"
}
},
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"@vue/vue2-jest": {
"version": "27.0.0",
"resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz",
......@@ -16783,7 +16783,7 @@
},
"vue-hot-reload-api": {
"version": "2.3.4",
"resolved": "https://registry.npmmirror.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
"integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true
},
......
const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = {
912: {
path: "/residentManage",
name: "residentManage",
meta: {
title: "驻店管理",
authId: "912",
parentId: "1",
cache: false
}
},
91201: {
path: "/qualityControlList ",
name: "qualityControlList",
meta: {
title: "质检管理",
authId: "91201",
parentId: "912",
cache: false
},
auth: [
{
authId: "9120101",
parentId: "91201",
label: "接待明细",
handle: "recepDetail",
addRoutePath: [
{
authId: "91202",
name: "接待明细",
parentId: "91201"
}
]
}
],
component: _import("residentManage/qualityControlList")
},
91202: {
path: "/recepDetail",
name: "recepDetail",
meta: {
title: "接待明细",
authId: "91202",
parentId: "91201",
sideHidden: true,
cache: false
},
// auth: [
// {
// authId: "9090201",
// parentId: "90902",
// label: "关联导流方",
// category: "Button",
// type: "primary",
// handle: "handleRelate"
// }
// ],
component: _import("residentManage/recepDetail")
},
}
<template>
<div class="range">
<div
:class="[
' el-date-editor',
'el-range-editor',
'el-input__inner',
'el-date-editor--daterange',
'el-range-editor--small',
pickerVisible ? 'is-active' : ''
]"
@click="handleRangeClick"
@mouseleave="showClose = false"
@mousemove="showClose = true"
ref="reference"
>
<el-input
v-model="displayValue[0]"
:placeholder="startPlaceholder"
@blur="handleBlur"
class="el-range-input"
@keydown="handleKeydown"
></el-input>
<span class="el-range-separator">至</span>
<el-input
v-model=" displayValue[1]"
:placeholder="endPlaceholder"
@focus="handleFocus"
@blur="handleBlur"
class="el-range-input"
@keydown="handleKeydown"
></el-input>
<i
v-show="showClose"
@click="handleClickIcon"
class="el-icon-circle-close"
></i>
</div>
<!----><!---->
</div>
</template>
<script>
export default {
data() {
return {
pickerVisible: false,
showClose: false
}
},
props: {
placeholder: String,
startPlaceholder: String,
endPlaceholder: String
},
watch: {
pickerVisible(val) {
// if (this.pickerDisabled) return
// if (val) {
// } else {
// this.hidePicker()
// this.emitChange(this.value)
// this.userInput = null
// if (this.validateEvent) {
// this.dispatch("ElFormItem", "el.form.blur")
// }
// this.$emit("blur", this)
// this.blur()
// }
}
},
computed:{
displayValue(){
return []
},
},
methods: {
handleKeydown(){
},
handleClickIcon(event) {
if (this.readonly || this.pickerDisabled) return
if (this.showClose) {
this.valueOnOpen = this.value
event.stopPropagation()
this.emitInput(null)
this.emitChange(null)
this.showClose = false
if (this.picker && typeof this.picker.handleClear === "function") {
this.picker.handleClear()
}
} else {
this.pickerVisible = !this.pickerVisible
}
},
valueIsEmpty() {
const val = this.value
if (Array.isArray(val)) {
for (let i = 0, len = val.length; i < len; i++) {
if (val[i]) {
return false
}
}
} else {
if (val) {
return false
}
}
return true
},
handleRangeClick() {
this.pickerVisible = true
},
handleFocus() {
if (!this.pickerVisible) {
this.pickerVisible = true
this.$emit("focus", this)
}
},
handleBlur() {
this.pickerVisible = false
console.log(this.pickerVisible)
}
}
}
</script>
<style scoped lang="scss">
.range {
.el-range-input {
::v-deep {
input {
border: 0;
margin-top: -2px;
height: 28px;
}
}
}
.el-icon-circle-close{
color:#DCDFE6;
margin-left:10px;
}
}
</style>
\ No newline at end of file
<template>
<div class="quality-control">
<d2-container>
<div slot="header">
<div class="header">
<div class="item" v-for="(i, index) in infoList" :key="index">
<div class="icon">
<img :src="require(`@/assets/${i.icon}.png`)" />
</div>
<div class="info">
<div>{{ i.text }}</div>
<div class="time">{{ i.value }}</div>
</div>
</div>
</div>
<d2-search
ref="showSearch"
class="show-search"
labelWidth="110px"
:search-form="searchForm"
:form-data="showFormData"
>
<div slot="score">
<el-input-range
start-placeholder="请输入"
end-placeholder="请输入"
></el-input-range>
</div>
<div slot="abnormal">
<el-input-range
start-placeholder="请输入"
end-placeholder="请输入"
></el-input-range>
</div>
</d2-search>
<div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<d2-table
ref="qualityTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
>
<auth-button
slot="auth-button"
slot-scope="scope"
:data="scope.scope"
/>
</d2-table>
</d2-container>
</div>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import ElInputRange from "./el-input-range"
import {
getyqMerchantList,
getMerchantGoodsStockMonthReport,
stockMonthReportCount
} from "@api/stockManage"
export default {
components: {
ElInputRange
},
data() {
return {
infoList: [
{
icon: "record",
text: "录音时长",
value: "100"
},
{
icon: "facility",
text: "上传录音设备占比",
value: "100"
},
{
icon: "score",
text: "话术平均质检评分",
value: "100"
}
],
showFormData: [
{
label: "质检日期",
type: "datePicker",
// dateType: "date",
isClear: true,
pickerOptions: "rangePickerOptions"
},
{
label: "质检评分",
name: "yqMerchantId",
addHtml: "score"
},
{
label: "归属门店",
name: "yqMerchantId",
type: "select",
optionList: [],
optionId: "merchantNo",
optionLabel: "merchantName",
optionsName: "yqMerchantList"
},
{
label: "归属服务商",
name: "goodsType",
type: "select",
width: "110px",
optionList: [],
optionId: "categoryType",
optionLabel: "categoryName",
optionsName: "productTypeList"
},
{
label: "员工姓名",
name: "productCode",
type: "input",
maxlength: "40",
isClear: true
},
{
label: "手机号",
name: "goodsSeries",
type: "input",
maxlength: "20",
isClear: true
},
{
label: "当日到店量",
name: "partnerMerchantName",
type: "input",
maxlength: "20",
isClear: true
},
{
label: "异常占比",
name: "partnerMerchantName",
addHtml: "abnormal"
}
],
searchForm: {},
searchFormSearch: {},
getListApi: getMerchantGoodsStockMonthReport,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
tableOption: true,
tableColumns: [
{
label: "录音日期",
prop: "upgradeGoodsName"
},
{
label: "员工",
prop: "productCode"
},
{
label: "手机号",
prop: "goodsSeries"
},
{
label: "归属门店",
prop: "goodsTypeName"
},
{
label: "归属服务商",
prop: "lastMonthRemainStock"
},
{
label: "工牌编号",
prop: "lastMonthRemainMoney"
},
{
label: "录音时长/分钟",
prop: "stock"
},
{
label: "预计接待批次/批",
prop: "yqMerchantName",
width: "200px"
},
{
label: "当日到店量/人",
prop: "partnerMerchantName",
width: "200px"
},
{
label: "异常占比",
prop: "partnerMerchantName",
width: "200px"
},
{
label: "话术质检评分/分",
prop: "partnerMerchantName",
width: "200px"
}
]
}
}
},
methods: {
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.dataMonth = Util.dateFormate(
new Date(),
"YYYY-MM"
)
resolve()
})
},
handleSearch() {
this.$refs.qualityTable.refreshTable(true, true)
// this.stockMonthReportCount()
},
handleReset() {
this.searchForm = {
upgradeGoodsName: "",
yqMerchantId: "",
goodsType: "",
goodsSeries: ""
}
this.$refs.qualityTable.refreshTable()
// this.stockMonthReportCount()
}
}
}
</script>
<style scoped lang='scss'>
.quality-control {
.header {
height: 136px;
display: flex;
align-items: center;
background: #ffffff;
padding: 16px 20px;
border-bottom: 16px solid #f0f1f7;
.item {
width: 274px;
height: 104px;
padding: 20px;
box-sizing: border-box;
display: flex;
align-items: center;
margin-right: 16px;
background: #f7f9fa;
border-radius: 4px;
.icon {
width: 40px;
height: 40px;
margin-right: 20px;
img {
width: 100%;
height: 100%;
}
}
.info {
font-size: 14px;
color: #333333;
.time {
font-weight: 700;
font-size: 26px;
color: #333333;
margin-top: 12px;
}
}
}
}
.el-range-input {
appearance: none;
border: none;
outline: none;
display: inline-block;
height: 100%;
margin: 0;
padding: 0;
width: 39%;
text-align: center;
font-size: 14px;
color: #606266;
}
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!