|
|
|
|
@ -1,71 +1,32 @@ |
|
|
|
|
<template> |
|
|
|
|
<basic-container> |
|
|
|
|
<avue-crud |
|
|
|
|
:option="option" |
|
|
|
|
:table-loading="loading" |
|
|
|
|
:data="data" |
|
|
|
|
:page.sync="page" |
|
|
|
|
ref="crud" |
|
|
|
|
v-model="form" |
|
|
|
|
:permission="permissionList" |
|
|
|
|
:before-open="beforeOpen" |
|
|
|
|
@search-change="searchChange" |
|
|
|
|
@search-reset="searchReset" |
|
|
|
|
@selection-change="selectionChange" |
|
|
|
|
@current-change="currentChange" |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@refresh-change="refreshChange" |
|
|
|
|
> |
|
|
|
|
<avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" v-model="form" |
|
|
|
|
:permission="permissionList" :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" |
|
|
|
|
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
|
|
|
|
@refresh-change="refreshChange"> |
|
|
|
|
<template slot-scope="scope" slot="materialSearch"> |
|
|
|
|
<el-select v-model="form.material" placeholder="请选择枕头类型"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in materialData" |
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
></el-option> |
|
|
|
|
<el-option v-for="item in materialData" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="ageSearch"> |
|
|
|
|
<template slot-scope="scope" slot="ageSearch"> |
|
|
|
|
<el-select v-model="form.age" placeholder="请选择年龄范围"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in ageData" |
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
></el-option> |
|
|
|
|
<el-option v-for="item in ageData" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="channelSearch"> |
|
|
|
|
<el-select v-model="form.channel" placeholder="请选择购买渠道"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in channelData" |
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
></el-option> |
|
|
|
|
<template slot-scope="scope" slot="purchaseChannel"> |
|
|
|
|
<el-select v-model="form.purchaseChannel" placeholder="请选择购买渠道"> |
|
|
|
|
<el-option v-for="item in channelData" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="timeArrSearch"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="form.timeArr" |
|
|
|
|
type="daterange" |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
format="yyyy-MM-dd" |
|
|
|
|
> |
|
|
|
|
<el-date-picker v-model="form.timeArr" type="daterange" range-separator="至" start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd"> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="hardnessSearch"> |
|
|
|
|
<el-select v-model="form.hardness" placeholder="请选择软硬程度" :disabled="isWinDis"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in hardnessData" |
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
></el-option> |
|
|
|
|
<el-option v-for="item in hardnessData" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="nameSearch"> |
|
|
|
|
@ -75,83 +36,69 @@ |
|
|
|
|
<el-input v-model="form.phonenumber" placeholder="请输入手机"></el-input> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="{ row }" slot="menu"> |
|
|
|
|
<el-button |
|
|
|
|
size="small" |
|
|
|
|
@click="handleDetail(row)" |
|
|
|
|
>查看详情</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
size="small" |
|
|
|
|
@click="handleDelete(row)" |
|
|
|
|
>删除</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="text" icon="el-icon-view" size="small" @click="handleDetail(row)">查看详情</el-button> |
|
|
|
|
<el-button v-if="row.purchaseChannel == ''" type="text" icon="el-icon-edit" size="small" @click="handleEdit(row)">编辑</el-button> |
|
|
|
|
<el-button type="text" icon="el-icon-delete" @click="handleDelete(row)">删除</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="sleepingPosture"> |
|
|
|
|
<div v-show="scope.row.sleepingPosture == 1" >仰睡</div> |
|
|
|
|
<div v-show="scope.row.sleepingPosture == 2" >侧睡</div> |
|
|
|
|
<div v-show="scope.row.sleepingPosture == 1">仰睡</div> |
|
|
|
|
<div v-show="scope.row.sleepingPosture == 2">侧睡</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="road"> |
|
|
|
|
<div v-show="scope.row.road == 0" >微信商城</div> |
|
|
|
|
<div v-show="scope.row.road == 1" >抖音商城</div> |
|
|
|
|
<div v-show="scope.row.road == 2" >微信小程序</div> |
|
|
|
|
<div v-show="scope.row.road == 0">微信商城</div> |
|
|
|
|
<div v-show="scope.row.road == 1">抖音商城</div> |
|
|
|
|
<div v-show="scope.row.road == 2">微信小程序</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="neckShoulderWidth"> |
|
|
|
|
<div v-show="scope.row.neckShoulderWidth != '-1'" >{{scope.row.neckShoulderWidth}}</div> |
|
|
|
|
<template slot-scope="scope" slot="neckShoulderWidth"> |
|
|
|
|
<div v-show="scope.row.neckShoulderWidth != '-1'">{{ scope.row.neckShoulderWidth }}</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="neckLength"> |
|
|
|
|
<div v-show="scope.row.neckLength != '-1'" >{{scope.row.neckLength}}</div> |
|
|
|
|
<div v-show="scope.row.neckLength != '-1'">{{ scope.row.neckLength }}</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="cervicalVertebra"> |
|
|
|
|
<div v-show="scope.row.cervicalVertebra == 1" >是</div> |
|
|
|
|
<div v-show="scope.row.cervicalVertebra == 0" >否</div> |
|
|
|
|
<div v-show="scope.row.cervicalVertebra == 1">是</div> |
|
|
|
|
<div v-show="scope.row.cervicalVertebra == 0">否</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="pillowHardness"> |
|
|
|
|
<div v-show="scope.row.pillowHardness == 1" >偏硬</div> |
|
|
|
|
<div v-show="scope.row.pillowHardness == 2" >适中</div> |
|
|
|
|
<div v-show="scope.row.pillowHardness == 3" >偏软</div> |
|
|
|
|
<div v-show="scope.row.pillowHardness == 1">偏硬</div> |
|
|
|
|
<div v-show="scope.row.pillowHardness == 2">适中</div> |
|
|
|
|
<div v-show="scope.row.pillowHardness == 3">偏软</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="pillowMaterial"> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 1" >羽丝绒枕</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 2" >草本植物枕(荞麦、决明子等)</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 3" >乳胶枕</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 4" >慢回弹记忆枕</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 5" >软管枕</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 6" >其他</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 1">羽丝绒枕</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 2">草本植物枕(荞麦、决明子等)</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 3">乳胶枕</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 4">慢回弹记忆枕</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 5">软管枕</div> |
|
|
|
|
<div v-show="scope.row.pillowMaterial == 6">其他</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="finishTime"> |
|
|
|
|
<div>{{scope.row.finishTime !== '' ? scope.row.finishTime : '---/-/---'}}</div> |
|
|
|
|
</template> |
|
|
|
|
<div>{{ scope.row.finishTime !== '' ? scope.row.finishTime : '---/-/---' }}</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="position"> |
|
|
|
|
<div>{{(scope.row.province ? scope.row.province : '') + (scope.row.city ? scope.row.city : '') + (scope.row.district ? scope.row.district : '') + (scope.row.detail ? scope.row.detail : '')}}</div> |
|
|
|
|
</template> |
|
|
|
|
<div>{{ (scope.row.province ? scope.row.province : '') + (scope.row.city ? scope.row.city : '') + |
|
|
|
|
(scope.row.district ? scope.row.district : '') + (scope.row.detail ? scope.row.detail : '') }}</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="menuLeft"> |
|
|
|
|
<el-button |
|
|
|
|
type="danger" |
|
|
|
|
size="small" |
|
|
|
|
@click="deleteItem" |
|
|
|
|
>删除</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
size="small" |
|
|
|
|
@click="exportData" |
|
|
|
|
>导出</el-button |
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
<el-button icon="el-icon-delete" type="danger" size="small" plain @click="deleteItem">删除</el-button> |
|
|
|
|
<el-button icon="el-icon-download" type="warning" size="small" plain @click="exportData">导出</el-button> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
<el-dialog |
|
|
|
|
:visible.sync="dialogVisible" |
|
|
|
|
width="60%" |
|
|
|
|
title="查看详情" |
|
|
|
|
:append-to-body="true" |
|
|
|
|
custom-class="dis_class" |
|
|
|
|
center |
|
|
|
|
> |
|
|
|
|
<el-dialog :visible.sync="dialogVisible" width="60%" :title="diaType=='edit' ? '订单编辑' : '查看详情'" :append-to-body="true" custom-class="dis_class" |
|
|
|
|
center> |
|
|
|
|
<el-descriptions :column="2" class="margin-top" size="small" border> |
|
|
|
|
<el-descriptions-item v-if="diaType != 'edit'"> |
|
|
|
|
<template slot="label">订单编号</template> |
|
|
|
|
<div>{{ checkaccept.orderNo }}</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item v-if="diaType != 'edit'"> |
|
|
|
|
<template slot="label">来源渠道</template> |
|
|
|
|
<div>{{ calcChannel(checkaccept.purchaseChannel) }}</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">姓名</template> |
|
|
|
|
<div >{{checkaccept.username}}</div> |
|
|
|
|
<div>{{ checkaccept.username }}</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">手机</template> |
|
|
|
|
@ -159,75 +106,113 @@ |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">身高</template> |
|
|
|
|
<div >{{ checkaccept.height }}</div> |
|
|
|
|
<div>{{ checkaccept.height }}</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label"> |
|
|
|
|
<div >体重</div> |
|
|
|
|
<div>体重</div> |
|
|
|
|
</template> |
|
|
|
|
<div >{{ checkaccept.weight }}</div> |
|
|
|
|
<div>{{ checkaccept.weight }}</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label"> |
|
|
|
|
<div >地址</div> |
|
|
|
|
<div>地址</div> |
|
|
|
|
</template> |
|
|
|
|
<div style="width: 158px">{{ checkaccept.position }}</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">睡眠姿势</template> |
|
|
|
|
<div > |
|
|
|
|
<div> |
|
|
|
|
{{ checkaccept.sleepingPosture == 1 ? '仰睡' : checkaccept.sleepingPosture == 2 ? '侧睡' : '' }} |
|
|
|
|
</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">枕头软硬度</template> |
|
|
|
|
<div > |
|
|
|
|
<div>{{ checkaccept.pillowHardness == 1 ? '偏硬' : checkaccept.pillowHardness == 2 ? '适中' : checkaccept.pillowHardness == 3 ? '偏软' : '' }}</div> |
|
|
|
|
<div> |
|
|
|
|
<div>{{ checkaccept.pillowHardness == 1 ? '偏硬' : checkaccept.pillowHardness == 2 ? '适中' : |
|
|
|
|
checkaccept.pillowHardness == 3 ? '偏软' : '' }}</div> |
|
|
|
|
</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">枕头类型</template> |
|
|
|
|
<div > |
|
|
|
|
<div>{{ checkaccept.pillowMaterial == 1 ? '羽丝绒枕' : checkaccept.pillowMaterial == 2 ? '草本植物枕(荞麦、决明子等)' : checkaccept.pillowMaterial == 3 ? '乳胶枕' : checkaccept.pillowMaterial == 4 ? '慢回弹记忆枕' : checkaccept.pillowMaterial == 5 ? '软管枕' : checkaccept.pillowMaterial == 6 ? '其他' : '' }}</div> |
|
|
|
|
<div> |
|
|
|
|
<div>{{ checkaccept.pillowMaterial == 1 ? '羽丝绒枕' : checkaccept.pillowMaterial == 2 ? '草本植物枕(荞麦、决明子等)' : |
|
|
|
|
checkaccept.pillowMaterial == 3 ? '乳胶枕' : checkaccept.pillowMaterial == 4 ? '慢回弹记忆枕' : |
|
|
|
|
checkaccept.pillowMaterial == 5 ? '软管枕' : checkaccept.pillowMaterial == 6 ? '其他' : '' }}</div> |
|
|
|
|
</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">颈肩宽度</template> |
|
|
|
|
<div > |
|
|
|
|
<div> |
|
|
|
|
<div>{{ checkaccept.neckShoulderWidth == '-1' ? '' : checkaccept.neckShoulderWidth }}</div> |
|
|
|
|
</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">颈长</template> |
|
|
|
|
<div > |
|
|
|
|
<div> |
|
|
|
|
<div>{{ checkaccept.neckLength == '-1' ? '' : checkaccept.neckLength }}</div> |
|
|
|
|
</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">年龄范围</template> |
|
|
|
|
<div > |
|
|
|
|
<div> |
|
|
|
|
<div>{{ checkaccept.ageRange }}</div> |
|
|
|
|
</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">睡眠时长</template> |
|
|
|
|
<div > |
|
|
|
|
<div> |
|
|
|
|
<div>{{ checkaccept.sleepLength }}</div> |
|
|
|
|
</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">颈椎是否有问题</template> |
|
|
|
|
<div > |
|
|
|
|
<div> |
|
|
|
|
<div>{{ checkaccept.cervicalVertebra == 1 ? '是' : checkaccept.cervicalVertebra == 0 ? '否' : '' }}</div> |
|
|
|
|
</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">其他需求</template> |
|
|
|
|
<div > |
|
|
|
|
<div> |
|
|
|
|
<div>{{ checkaccept.otherNeed }}</div> |
|
|
|
|
</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item v-if="diaType != 'edit'"> |
|
|
|
|
<template slot="label">备注</template> |
|
|
|
|
<div>{{ checkaccept.remark }}</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
</el-descriptions> |
|
|
|
|
<el-form style="margin-top: 20px;" v-if="diaType == 'edit'" label-width="80px"> |
|
|
|
|
<el-row gutter="20"> |
|
|
|
|
<el-col span="12"> |
|
|
|
|
<el-form-item label="订单号"> |
|
|
|
|
<el-input v-model="checkaccept.orderNo" type="text" placeholder="请输入订单号" maxlength="30" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col span="12"> |
|
|
|
|
<el-form-item label="渠道来源"> |
|
|
|
|
<el-select v-model="checkaccept.purchaseChannel" placeholder="请选择购买渠道" style="width:100%;"> |
|
|
|
|
<el-option v-for="item in channelData" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col span="24"> |
|
|
|
|
<el-form-item label="备注"> |
|
|
|
|
<el-input |
|
|
|
|
type="textarea" |
|
|
|
|
placeholder="请输入备注" |
|
|
|
|
v-model="checkaccept.remark" |
|
|
|
|
maxlength="200" |
|
|
|
|
show-word-limit |
|
|
|
|
> |
|
|
|
|
</el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</el-form> |
|
|
|
|
<span slot="footer" class="dialog-footer" v-show="diaType == 'edit'"> |
|
|
|
|
<el-button type="primary" @click="handlieConfirm">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
</basic-container> |
|
|
|
|
</template> |
|
|
|
|
@ -235,18 +220,18 @@ |
|
|
|
|
<script> |
|
|
|
|
// import { mapGetters } from "vuex"; |
|
|
|
|
// import {getBaseList,getTypeList} from "@/api/base" |
|
|
|
|
import {getList,exportList,deleteList,detailList} from "@/api/statistics/statistics" |
|
|
|
|
import { getList, exportList, deleteList, detailList, getPurchaseChannel,customMadeInfoSave } from "@/api/statistics/statistics" |
|
|
|
|
// import { getToken } from "@/util/auth"; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
active:'1', |
|
|
|
|
active: '1', |
|
|
|
|
form: {}, |
|
|
|
|
dialogVisible:false, |
|
|
|
|
channelData:[ |
|
|
|
|
{label:'微信商城',value:0}, |
|
|
|
|
{label:'抖音商城',value:1}, |
|
|
|
|
{label:'微信小程序',value:2}, |
|
|
|
|
dialogVisible: false, |
|
|
|
|
channelData: [ |
|
|
|
|
// { label: '微信商城', value: 0 }, |
|
|
|
|
// { label: '抖音商城', value: 1 }, |
|
|
|
|
// { label: '微信小程序', value: 2 }, |
|
|
|
|
], |
|
|
|
|
statusData: [ |
|
|
|
|
{ label: "待处理", value: "0" }, |
|
|
|
|
@ -257,21 +242,21 @@ export default { |
|
|
|
|
headers: { |
|
|
|
|
"Blade-Auth": "", |
|
|
|
|
}, //认证 |
|
|
|
|
listData:[], |
|
|
|
|
materialData:[ |
|
|
|
|
{label:'羽丝绒枕',value:1}, |
|
|
|
|
{label:'草本植物枕(荞麦、决明子等)',value:2}, |
|
|
|
|
{label:'乳胶枕',value:3}, |
|
|
|
|
{label:'慢回弹记忆枕',value:4}, |
|
|
|
|
{label:'软管枕',value:5}, |
|
|
|
|
{label:'其他',value:6}, |
|
|
|
|
listData: [], |
|
|
|
|
materialData: [ |
|
|
|
|
{ label: '羽丝绒枕', value: 1 }, |
|
|
|
|
{ label: '草本植物枕(荞麦、决明子等)', value: 2 }, |
|
|
|
|
{ label: '乳胶枕', value: 3 }, |
|
|
|
|
{ label: '慢回弹记忆枕', value: 4 }, |
|
|
|
|
{ label: '软管枕', value: 5 }, |
|
|
|
|
{ label: '其他', value: 6 }, |
|
|
|
|
], |
|
|
|
|
hardnessData:[ |
|
|
|
|
{label:'偏硬',value:1}, |
|
|
|
|
{label:'适中',value:2}, |
|
|
|
|
{label:'偏软',value:3}, |
|
|
|
|
hardnessData: [ |
|
|
|
|
{ label: '偏硬', value: 1 }, |
|
|
|
|
{ label: '适中', value: 2 }, |
|
|
|
|
{ label: '偏软', value: 3 }, |
|
|
|
|
], |
|
|
|
|
checkaccept:{}, |
|
|
|
|
checkaccept: {}, |
|
|
|
|
query: {}, |
|
|
|
|
loading: true, |
|
|
|
|
page: { |
|
|
|
|
@ -281,7 +266,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
selectionList: [], |
|
|
|
|
option: { |
|
|
|
|
selection:true, |
|
|
|
|
selection: true, |
|
|
|
|
searchShowBtn: false, |
|
|
|
|
refreshBtn: false, |
|
|
|
|
columnBtn: false, |
|
|
|
|
@ -297,6 +282,14 @@ export default { |
|
|
|
|
editBtn: false, |
|
|
|
|
delBtn: false, |
|
|
|
|
column: [ |
|
|
|
|
{ |
|
|
|
|
label: "订单编号", |
|
|
|
|
prop: "orderNo", |
|
|
|
|
search: true, |
|
|
|
|
searchslot: true, |
|
|
|
|
minWidth: '120', |
|
|
|
|
// searchSpan: 4, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "姓名", |
|
|
|
|
prop: "name", |
|
|
|
|
@ -341,7 +334,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "购买渠道", |
|
|
|
|
prop: "channel", |
|
|
|
|
prop: "purchaseChannel", |
|
|
|
|
search: true, |
|
|
|
|
searchslot: true, |
|
|
|
|
hide: true, |
|
|
|
|
@ -357,18 +350,18 @@ export default { |
|
|
|
|
// searchSpan: 5, |
|
|
|
|
// searchLabelWidth:100 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: "姓名", |
|
|
|
|
prop: "username", |
|
|
|
|
align: "center", |
|
|
|
|
overHidden:true, |
|
|
|
|
width:80, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 80, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "手机", |
|
|
|
|
overHidden:true, |
|
|
|
|
width:150, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
prop: "phone", |
|
|
|
|
align: "center", |
|
|
|
|
}, |
|
|
|
|
@ -379,42 +372,42 @@ export default { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "体重", |
|
|
|
|
overHidden:true, |
|
|
|
|
overHidden: true, |
|
|
|
|
prop: "weight", |
|
|
|
|
align: "center", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "地址", |
|
|
|
|
overHidden:true, |
|
|
|
|
overHidden: true, |
|
|
|
|
prop: "position", |
|
|
|
|
slot:true, |
|
|
|
|
slot: true, |
|
|
|
|
align: "center", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "睡眠姿势", |
|
|
|
|
slot:true, |
|
|
|
|
slot: true, |
|
|
|
|
prop: "sleepingPosture", |
|
|
|
|
align: "center", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "枕头软硬度", |
|
|
|
|
overHidden:true, |
|
|
|
|
overHidden: true, |
|
|
|
|
prop: "pillowHardness", |
|
|
|
|
align: "center", |
|
|
|
|
slot:true, |
|
|
|
|
slot: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "枕头类型", |
|
|
|
|
prop: "pillowMaterial", |
|
|
|
|
slot: true, |
|
|
|
|
align: "center", |
|
|
|
|
overHidden:true |
|
|
|
|
overHidden: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "颈肩宽度", |
|
|
|
|
prop: "neckShoulderWidth", |
|
|
|
|
align: "center", |
|
|
|
|
overHidden:true, |
|
|
|
|
overHidden: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "颈长", |
|
|
|
|
@ -446,96 +439,104 @@ export default { |
|
|
|
|
slot: true, |
|
|
|
|
align: "center", |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// label: "购买渠道", |
|
|
|
|
// prop: "purchaseChannel", |
|
|
|
|
// type: "select", |
|
|
|
|
// search: true, |
|
|
|
|
// slot: true, |
|
|
|
|
// align: "center", |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
label: "购买渠道", |
|
|
|
|
prop: "road", |
|
|
|
|
label: "备注", |
|
|
|
|
prop: "remark", |
|
|
|
|
slot: true, |
|
|
|
|
align: "center", |
|
|
|
|
overHidden: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label:'提交时间', |
|
|
|
|
prop:'createTime', |
|
|
|
|
align:'center', |
|
|
|
|
overHidden:true |
|
|
|
|
label: '提交时间', |
|
|
|
|
prop: 'createTime', |
|
|
|
|
align: 'center', |
|
|
|
|
overHidden: true |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
ageData:[ |
|
|
|
|
{label:'18~30',value:'18~30'}, |
|
|
|
|
{label:'31~50',value:'31~50'}, |
|
|
|
|
{label:'51~60',value:'51~60'}, |
|
|
|
|
{label:'60以上',value:'60以上'}, |
|
|
|
|
ageData: [ |
|
|
|
|
{ label: '18~30', value: '18~30' }, |
|
|
|
|
{ label: '31~50', value: '31~50' }, |
|
|
|
|
{ label: '51~60', value: '51~60' }, |
|
|
|
|
{ label: '60以上', value: '60以上' }, |
|
|
|
|
], |
|
|
|
|
data: [], |
|
|
|
|
time:'', |
|
|
|
|
date:'', |
|
|
|
|
isWinDis:false |
|
|
|
|
time: '', |
|
|
|
|
date: '', |
|
|
|
|
isWinDis: false |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
computed: { |
|
|
|
|
// ...mapGetters(["permission","userInfo"]), |
|
|
|
|
ids() { |
|
|
|
|
let ids = []; |
|
|
|
|
this.selectionList.forEach(ele => { |
|
|
|
|
ids.push(ele.id); |
|
|
|
|
}); |
|
|
|
|
return ids.join(","); |
|
|
|
|
}, |
|
|
|
|
let ids = []; |
|
|
|
|
this.selectionList.forEach(ele => { |
|
|
|
|
ids.push(ele.id); |
|
|
|
|
}); |
|
|
|
|
return ids.join(","); |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
// this.headers["Blade-Auth"] = "bearer " + getToken(); |
|
|
|
|
// this.getTime(); |
|
|
|
|
// this.getWinData(); |
|
|
|
|
// this.getTypeData(); |
|
|
|
|
this.onLoad() |
|
|
|
|
getPurchaseChannel().then(res => { |
|
|
|
|
this.channelData = res.data.data; |
|
|
|
|
}) |
|
|
|
|
this.onLoad() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
sizeChange(pageSize){ |
|
|
|
|
sizeChange(pageSize) { |
|
|
|
|
this.page.pageSize = pageSize; |
|
|
|
|
this.onLoad() |
|
|
|
|
}, |
|
|
|
|
handleDetail(row){ |
|
|
|
|
this.dialogVisible = true; |
|
|
|
|
detailList({id:row.id}).then(res =>{ |
|
|
|
|
console.log(res) |
|
|
|
|
this.checkaccept = res.data.data; |
|
|
|
|
this.checkaccept.position = this.checkaccept.province + |
|
|
|
|
this.checkaccept.city + |
|
|
|
|
this.checkaccept.district + |
|
|
|
|
this.checkaccept.detail |
|
|
|
|
}) |
|
|
|
|
handleDetail(row) { |
|
|
|
|
this.dialogVisible = true; |
|
|
|
|
this.diaType = 'detail'; |
|
|
|
|
detailList({ id: row.id }).then(res => { |
|
|
|
|
console.log(res) |
|
|
|
|
this.checkaccept = res.data.data; |
|
|
|
|
this.checkaccept.position = this.checkaccept.province + |
|
|
|
|
this.checkaccept.city + |
|
|
|
|
this.checkaccept.district + |
|
|
|
|
this.checkaccept.detail |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
selectionChange(data){ |
|
|
|
|
this.selectionList = data; |
|
|
|
|
selectionChange(data) { |
|
|
|
|
this.selectionList = data; |
|
|
|
|
}, |
|
|
|
|
currentChange(currentPage){ |
|
|
|
|
currentChange(currentPage) { |
|
|
|
|
this.page.currentPage = currentPage; |
|
|
|
|
this.onLoad() |
|
|
|
|
}, |
|
|
|
|
getWinData(){ |
|
|
|
|
getBaseList().then(res =>{ |
|
|
|
|
getWinData() { |
|
|
|
|
getBaseList().then(res => { |
|
|
|
|
this.winData = res.data.data; |
|
|
|
|
let tmp = this.winData.find(item => item.id == this.userInfo.user_id); |
|
|
|
|
if(tmp){ |
|
|
|
|
if (tmp) { |
|
|
|
|
this.form.windows = tmp.id; |
|
|
|
|
this.isWinDis = true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getTypeData(){ |
|
|
|
|
getTypeList().then(res =>{ |
|
|
|
|
getTypeData() { |
|
|
|
|
getTypeList().then(res => { |
|
|
|
|
this.typeData = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleList(row){ |
|
|
|
|
handleList(row) { |
|
|
|
|
console.log(row) |
|
|
|
|
this.dialogVisible = true; |
|
|
|
|
getResolveList({appealId:row.id}).then(res =>{ |
|
|
|
|
console.log('res',res) |
|
|
|
|
this.listData = res.data.data |
|
|
|
|
}) |
|
|
|
|
this.dialogVisible = true; |
|
|
|
|
getResolveList({ appealId: row.id }).then(res => { |
|
|
|
|
console.log('res', res) |
|
|
|
|
this.listData = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
searchReset() { |
|
|
|
|
this.query = {}; |
|
|
|
|
@ -549,9 +550,9 @@ export default { |
|
|
|
|
this.onLoad(this.page, this.form); |
|
|
|
|
done(); |
|
|
|
|
}, |
|
|
|
|
handleSuccess(res){ |
|
|
|
|
handleSuccess(res) { |
|
|
|
|
console.log(res) |
|
|
|
|
if(res.code == 200){ |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
this.$message.success('上传成功') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
@ -562,17 +563,17 @@ export default { |
|
|
|
|
}, |
|
|
|
|
getTime() { |
|
|
|
|
//获取当前时间 |
|
|
|
|
var date = new Date(); |
|
|
|
|
var year = date.getFullYear(); //当前年份 |
|
|
|
|
var month = date.getMonth(); //当前月份 |
|
|
|
|
var data = date.getDate(); //天 |
|
|
|
|
var hours = date.getHours(); //小时 |
|
|
|
|
var minute = date.getMinutes(); //分 |
|
|
|
|
var second = date.getSeconds(); //秒 |
|
|
|
|
this.day = date.getDay(); //获取当前星期几 |
|
|
|
|
// this.getWeek(this.day); |
|
|
|
|
this.time = this.fn(hours) + ":" + this.fn(minute); |
|
|
|
|
this.date = year + "-" + (month + 1) + "-" + data; |
|
|
|
|
var date = new Date(); |
|
|
|
|
var year = date.getFullYear(); //当前年份 |
|
|
|
|
var month = date.getMonth(); //当前月份 |
|
|
|
|
var data = date.getDate(); //天 |
|
|
|
|
var hours = date.getHours(); //小时 |
|
|
|
|
var minute = date.getMinutes(); //分 |
|
|
|
|
var second = date.getSeconds(); //秒 |
|
|
|
|
this.day = date.getDay(); //获取当前星期几 |
|
|
|
|
// this.getWeek(this.day); |
|
|
|
|
this.time = this.fn(hours) + ":" + this.fn(minute); |
|
|
|
|
this.date = year + "-" + (month + 1) + "-" + data; |
|
|
|
|
}, |
|
|
|
|
onLoad() { |
|
|
|
|
let params = {}; |
|
|
|
|
@ -583,60 +584,60 @@ export default { |
|
|
|
|
// pillowMaterial:this.form.material ? this.form.material : '' |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
if(!this.form.timeArr){ |
|
|
|
|
if (!this.form.timeArr) { |
|
|
|
|
params = { |
|
|
|
|
username:this.form.name ? this.form.name : '', |
|
|
|
|
phone:this.form.phonenumber ? this.form.phonenumber : '', |
|
|
|
|
pillowHardness:this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial:this.form.material ? this.form.material : '', |
|
|
|
|
ageRange:this.form.age ? this.form.age : '' |
|
|
|
|
username: this.form.name ? this.form.name : '', |
|
|
|
|
phone: this.form.phonenumber ? this.form.phonenumber : '', |
|
|
|
|
pillowHardness: this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial: this.form.material ? this.form.material : '', |
|
|
|
|
ageRange: this.form.age ? this.form.age : '' |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
params = { |
|
|
|
|
username:this.form.name ? this.form.name : '', |
|
|
|
|
phone:this.form.phonenumber ? this.form.phonenumber : '', |
|
|
|
|
pillowHardness:this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial:this.form.material ? this.form.material : '', |
|
|
|
|
ageRange:this.form.age ? this.form.age : '', |
|
|
|
|
startTime:this.form.timeArr[0], |
|
|
|
|
endTime:this.form.timeArr[1], |
|
|
|
|
} else { |
|
|
|
|
params = { |
|
|
|
|
username: this.form.name ? this.form.name : '', |
|
|
|
|
phone: this.form.phonenumber ? this.form.phonenumber : '', |
|
|
|
|
pillowHardness: this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial: this.form.material ? this.form.material : '', |
|
|
|
|
ageRange: this.form.age ? this.form.age : '', |
|
|
|
|
startTime: this.form.timeArr[0], |
|
|
|
|
endTime: this.form.timeArr[1], |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
console.log('par',params) |
|
|
|
|
console.log('par', params) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getList({current:this.page.currentPage,size:this.page.pageSize,...params}).then(res =>{ |
|
|
|
|
console.log('res==>',res) |
|
|
|
|
getList({ current: this.page.currentPage, size: this.page.pageSize, ...params }).then(res => { |
|
|
|
|
console.log('res==>', res) |
|
|
|
|
this.loading = false; |
|
|
|
|
this.data = res.data.data.records; |
|
|
|
|
this.page.total = res.data.data.total |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
addRegister() { |
|
|
|
|
this.$router.push({ path: "/register/add",query:{type:'add'} }); |
|
|
|
|
this.$router.push({ path: "/register/add", query: { type: 'add' } }); |
|
|
|
|
}, |
|
|
|
|
exportData(){ |
|
|
|
|
let params = {}; |
|
|
|
|
if(!this.form.timeArr){ |
|
|
|
|
exportData() { |
|
|
|
|
let params = {}; |
|
|
|
|
if (!this.form.timeArr) { |
|
|
|
|
params = { |
|
|
|
|
username:this.form.name ? this.form.name : '', |
|
|
|
|
phone:this.form.phonenumber ? this.form.phonenumber : '', |
|
|
|
|
pillowHardness:this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial:this.form.material ? this.form.material : '', |
|
|
|
|
ageRange:this.form.age ? this.form.age : '' |
|
|
|
|
username: this.form.name ? this.form.name : '', |
|
|
|
|
phone: this.form.phonenumber ? this.form.phonenumber : '', |
|
|
|
|
pillowHardness: this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial: this.form.material ? this.form.material : '', |
|
|
|
|
ageRange: this.form.age ? this.form.age : '' |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
params = { |
|
|
|
|
username:this.form.name ? this.form.name : '', |
|
|
|
|
phone:this.form.phonenumber ? this.form.phonenumber : '', |
|
|
|
|
pillowHardness:this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial:this.form.material ? this.form.material : '', |
|
|
|
|
ageRange:this.form.age ? this.form.age : '', |
|
|
|
|
startTime:this.form.timeArr[0], |
|
|
|
|
endTime:this.form.timeArr[1], |
|
|
|
|
} else { |
|
|
|
|
params = { |
|
|
|
|
username: this.form.name ? this.form.name : '', |
|
|
|
|
phone: this.form.phonenumber ? this.form.phonenumber : '', |
|
|
|
|
pillowHardness: this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial: this.form.material ? this.form.material : '', |
|
|
|
|
ageRange: this.form.age ? this.form.age : '', |
|
|
|
|
startTime: this.form.timeArr[0], |
|
|
|
|
endTime: this.form.timeArr[1], |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
exportList(params).then(res =>{ |
|
|
|
|
exportList(params).then(res => { |
|
|
|
|
console.log(res) |
|
|
|
|
if (!res || !res.data) { |
|
|
|
|
this.$message({ |
|
|
|
|
@ -650,47 +651,78 @@ export default { |
|
|
|
|
if (window.navigator && window.navigator.msSaveOrOpenBlob) { |
|
|
|
|
//兼容ie浏览器 |
|
|
|
|
window.navigator.msSaveOrOpenBlob(blob, downloadFilename) |
|
|
|
|
}else { |
|
|
|
|
} else { |
|
|
|
|
//谷歌,火狐等浏览器 |
|
|
|
|
let url = window.URL.createObjectURL(blob); |
|
|
|
|
let downloadElement = document.createElement("a"); |
|
|
|
|
downloadElement.style.display = "none"; |
|
|
|
|
downloadElement.href = url; |
|
|
|
|
downloadElement.download = downloadFilename; |
|
|
|
|
document.body.appendChild(downloadElement); |
|
|
|
|
downloadElement.click(); |
|
|
|
|
document.body.removeChild(downloadElement); |
|
|
|
|
window.URL.revokeObjectURL(url); |
|
|
|
|
let url = window.URL.createObjectURL(blob); |
|
|
|
|
let downloadElement = document.createElement("a"); |
|
|
|
|
downloadElement.style.display = "none"; |
|
|
|
|
downloadElement.href = url; |
|
|
|
|
downloadElement.download = downloadFilename; |
|
|
|
|
document.body.appendChild(downloadElement); |
|
|
|
|
downloadElement.click(); |
|
|
|
|
document.body.removeChild(downloadElement); |
|
|
|
|
window.URL.revokeObjectURL(url); |
|
|
|
|
} |
|
|
|
|
this.$message({type: "success", message: '导出成功!'}); |
|
|
|
|
this.$message({ type: "success", message: '导出成功!' }); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
deleteItem(){ |
|
|
|
|
if(this.selectionList.length == 0){ |
|
|
|
|
this.$message.warning('请至少选择一条数据'); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
this.$confirm(`确认删除当前数据吗?`, { |
|
|
|
|
confirmButtonText: "确定", |
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
type: "warning", |
|
|
|
|
}).then(() => { |
|
|
|
|
deleteList(this.ids).then(res =>{ |
|
|
|
|
console.log(res) |
|
|
|
|
if(res.data.code == 200){ |
|
|
|
|
this.$message.success('删除成功'); |
|
|
|
|
this.page.pageSize = 1; |
|
|
|
|
this.onLoad() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
deleteItem() { |
|
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
|
this.$message.warning('请至少选择一条数据'); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
this.$confirm(`确认删除当前数据吗?`, { |
|
|
|
|
confirmButtonText: "确定", |
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
type: "warning", |
|
|
|
|
}).then(() => { |
|
|
|
|
deleteList(this.ids).then(res => { |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.$message.success('删除成功'); |
|
|
|
|
this.page.pageSize = 1; |
|
|
|
|
this.onLoad() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
importRegister(){ |
|
|
|
|
importRegister() { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
handleEdit() { |
|
|
|
|
this.$router.push({ path: "/request/add" }); |
|
|
|
|
//渠道来源 |
|
|
|
|
calcChannel(channel) { |
|
|
|
|
let idx = this.channelData.findIndex(item => { return item.dictKey == channel }); |
|
|
|
|
return idx > -1 ? this.channelData[idx].dictValue : '' |
|
|
|
|
}, |
|
|
|
|
//订单编辑 |
|
|
|
|
handleEdit(row) { |
|
|
|
|
// this.$router.push({ path: "/request/add" }); |
|
|
|
|
this.dialogVisible = true; |
|
|
|
|
this.diaType = 'edit'; |
|
|
|
|
detailList({ id: row.id }).then(res => { |
|
|
|
|
this.checkaccept = res.data.data; |
|
|
|
|
this.checkaccept.position = this.checkaccept.province + |
|
|
|
|
this.checkaccept.city + |
|
|
|
|
this.checkaccept.district + |
|
|
|
|
this.checkaccept.detail |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
handlieConfirm() { |
|
|
|
|
if(this.checkaccept.orderNo == '') { |
|
|
|
|
this.$message.warning('请输入订单号'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if(this.checkaccept.purchaseChannel == '') { |
|
|
|
|
this.$message.warning('请选择订单来源'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
customMadeInfoSave(this.checkaccept).then(res => { |
|
|
|
|
this.$message.success('订单编辑成功'); |
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
this.onLoad(); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleDelete(row) { |
|
|
|
|
this.$confirm(`确认删除当前数据吗?`, { |
|
|
|
|
@ -698,14 +730,14 @@ export default { |
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
type: "warning", |
|
|
|
|
}).then(() => { |
|
|
|
|
deleteList(row.id).then(res =>{ |
|
|
|
|
console.log(res) |
|
|
|
|
if(res.data.code == 200){ |
|
|
|
|
this.$message.success('删除成功'); |
|
|
|
|
this.page.currentPage = 1; |
|
|
|
|
this.onLoad() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
deleteList(row.id).then(res => { |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.$message.success('删除成功'); |
|
|
|
|
this.page.currentPage = 1; |
|
|
|
|
this.onLoad() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
@ -713,42 +745,43 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
|
.resi_list{ |
|
|
|
|
.list{ |
|
|
|
|
width: 80%; |
|
|
|
|
max-height: 246px; |
|
|
|
|
overflow-y: auto; |
|
|
|
|
.resi_list { |
|
|
|
|
.list { |
|
|
|
|
width: 80%; |
|
|
|
|
max-height: 246px; |
|
|
|
|
overflow-y: auto; |
|
|
|
|
|
|
|
|
|
.list_box{ |
|
|
|
|
width: 100%; |
|
|
|
|
height: 41px; |
|
|
|
|
font-size: 20px; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
.list_box { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 41px; |
|
|
|
|
font-size: 20px; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
& :hover{ |
|
|
|
|
cursor: pointer; |
|
|
|
|
// .time_txt{ |
|
|
|
|
color: #4095e5; |
|
|
|
|
& :hover { |
|
|
|
|
cursor: pointer; |
|
|
|
|
// .time_txt{ |
|
|
|
|
color: #4095e5; |
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.upload-demo{ |
|
|
|
|
.upload-demo { |
|
|
|
|
float: right; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
<style lang='scss'> |
|
|
|
|
.dis_class{ |
|
|
|
|
.is-bordered-label{ |
|
|
|
|
width: 15% !important; |
|
|
|
|
} |
|
|
|
|
.el-descriptions .is-bordered .el-descriptions-item__cell{ |
|
|
|
|
width: 35%; |
|
|
|
|
height: 50px; |
|
|
|
|
} |
|
|
|
|
.dis_class { |
|
|
|
|
.is-bordered-label { |
|
|
|
|
width: 15% !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.el-descriptions .is-bordered .el-descriptions-item__cell { |
|
|
|
|
width: 35%; |
|
|
|
|
height: 50px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
|