修改物料包内容
This commit is contained in:
parent
0afe64710f
commit
c96980e315
|
@ -1,147 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
<!-- <el-tab-pane label="师傅列表" name="first">
|
|
||||||
<div style="display: inline-block;">
|
|
||||||
|
|
||||||
<div style="position: relative;display: inline-block;margin: 5px;">
|
|
||||||
<span>项目类型:</span>
|
|
||||||
<el-select v-model="classifyId" style="width:150px;margin-left: 10px;" @change="phoneSelect()">
|
|
||||||
<el-option v-for="item in fwData" :key="item.id" :label="item.value" :value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</div>
|
|
||||||
<div style="position: relative;display: inline-block;">
|
|
||||||
<span>师傅名称:</span>
|
|
||||||
<el-input style="width: 200px;" @keydown.enter.native="phoneSelect" placeholder="请输入师傅名称"
|
|
||||||
v-model="artificerName">
|
|
||||||
</el-input>
|
|
||||||
</div>
|
|
||||||
<div style="position: relative;display: inline-block;">
|
|
||||||
<span>城市:</span>
|
|
||||||
<el-input style="width: 200px;" @keydown.enter.native="phoneSelect" placeholder="请输入城市"
|
|
||||||
v-model="citys">
|
|
||||||
</el-input>
|
|
||||||
</div>
|
|
||||||
<el-button style="margin:10px;" size="mini" type="primary" icon="document" @click="phoneSelect">查询
|
|
||||||
</el-button>
|
|
||||||
<el-button style="margin:10px;" size="mini" type="primary" icon="document" @click="cleans2">重置
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
<div style="float: right;margin-right:2%;">
|
|
||||||
</div>
|
|
||||||
<el-table v-loading="tableDataLoading" :data="choicenData.list">
|
|
||||||
<el-table-column prop="artificerId" label="编号" width="80" fixed="left">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="classifyName" label="项目类型" width="150">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="artificerName" label="师傅名称" fixed="left">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span style="color: #4f9dec;cursor: pointer;" @click="updatesvideo(scope.row)"
|
|
||||||
v-text="scope.row.artificerName"></span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="artificerImg" label="师傅图片">
|
|
||||||
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<div v-if="scope.row.artificerImg &&scope.row.artificerImg!=''"
|
|
||||||
style="display: inline-block; margin: 3px;">
|
|
||||||
<el-popover placement="top-start" title="" trigger="hover">
|
|
||||||
<img style="width: 50px; height: 50px" :src="scope.row.artificerImg" alt=""
|
|
||||||
slot="reference">
|
|
||||||
<img style="width: 300px; height: auto" :src="scope.row.artificerImg" alt="">
|
|
||||||
</el-popover>
|
|
||||||
</div>
|
|
||||||
<span v-else>暂无图片</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="lifePhoto" label="生活照" width="250">
|
|
||||||
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<div v-for="(item,index) in scope.row.lifePhoto" :key="index"
|
|
||||||
style="display: inline-block; margin: 3px;">
|
|
||||||
<el-popover placement="top-start" title="" trigger="hover">
|
|
||||||
<img style="width: 50px; height: 50px" :src="item" alt="" slot="reference">
|
|
||||||
<img style="width: 300px; height: auto" :src="item" alt="">
|
|
||||||
</el-popover>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="certificate" label="师傅证书" width="250">
|
|
||||||
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<div v-for="(item,index) in scope.row.certificate" :key="index"
|
|
||||||
style="display: inline-block; margin: 3px;">
|
|
||||||
<el-popover placement="top-start" title="" trigger="hover">
|
|
||||||
<img style="width: 50px; height: 50px" :src="item" alt="" slot="reference">
|
|
||||||
<img style="width: 300px; height: auto" :src="item" alt="">
|
|
||||||
</el-popover>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="content" label="描述" width="200">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="city" label="城市" width="120">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="longitude" label="经度" width="150">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="latitude" label="纬度" width="150">
|
|
||||||
</el-table-column>
|
|
||||||
|
|
||||||
<el-table-column prop="creditScore" label="信用分" width="80">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="ordersScore" label="服务分" width="80">
|
|
||||||
</el-table-column>
|
|
||||||
|
|
||||||
<el-table-column prop="createTime" label="创建时间" width="180">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="status " label="状态" fixed="right">
|
|
||||||
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span style="color: #13ce66;" v-if="scope.row.status===1">上线</span>
|
|
||||||
<span style="color: #ff4949;" v-else>休息</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="status" label="是否优选" fixed="right" width="80">
|
|
||||||
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-switch v-model="scope.row.isGoods" @change="changeY(scope.row.isGoods,scope.row.artificerId)"
|
|
||||||
:active-value="openValue" :disabled="!isAuth('locality:update')"
|
|
||||||
:inactive-value="closeValue" active-color="#13ce66" inactive-color="#ff4949">
|
|
||||||
</el-switch>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="isHot" label="是否热度最高" fixed="right" width="80">
|
|
||||||
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-switch v-model="scope.row.isHot" @change="changeR(scope.row.isHot,scope.row.artificerId)"
|
|
||||||
:active-value="openValue" :disabled="!isAuth('locality:update')"
|
|
||||||
:inactive-value="closeValue" active-color="#13ce66" inactive-color="#ff4949">
|
|
||||||
</el-switch>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作" prop="id" width="200" fixed='right'>
|
|
||||||
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-button size="mini" type="warning" style="margin: 5px;" @click="shenhe( scope.row)">服务项目
|
|
||||||
</el-button>
|
|
||||||
<el-button size="mini" type="primary" style="margin: 5px;" @click="plCompile(scope.row)">评价
|
|
||||||
</el-button>
|
|
||||||
<el-button size="mini" type="primary" style="margin: 5px;" @click="xinyongBtn( scope.row)">信用分明细
|
|
||||||
</el-button>
|
|
||||||
<el-button size="mini" type="danger" style="margin: 5px;"
|
|
||||||
:disabled="!isAuth('locality:delete')" @click="choidelete(scope.row)">删除
|
|
||||||
</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<div style="text-align: center;margin-top: 10px;float:right">
|
|
||||||
<el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
|
|
||||||
:page-sizes="[10, 20, 30, 40]" :page-size="size" :current-page="page"
|
|
||||||
layout="total,sizes, prev, pager, next,jumper" :total="choicenData.totalCount">
|
|
||||||
</el-pagination>
|
|
||||||
</div>
|
|
||||||
</el-tab-pane> -->
|
|
||||||
|
|
||||||
<!-- 项目列表 -->
|
<!-- 项目列表 -->
|
||||||
<el-tab-pane label="项目列表" name="third">
|
<el-tab-pane label="项目列表" name="third">
|
||||||
|
@ -220,11 +79,14 @@
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="classifyName"
|
prop="classifyId"
|
||||||
label="项目类型"
|
label="项目类型"
|
||||||
fixed="left"
|
fixed="left"
|
||||||
width="150"
|
width="150"
|
||||||
>
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{getDictLabel(scope.row.classifyId)}}
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="title"
|
prop="title"
|
||||||
|
@ -235,7 +97,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="massageImg" label="项目图片">
|
<el-table-column prop="massageImg" label="项目图片">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<img
|
<img
|
||||||
v-if="scope.row.massageImg && scope.row.massageImg != ''"
|
v-if="scope.row.massageImg && scope.row.massageImg != ''"
|
||||||
:src="scope.row.massageImg"
|
:src="scope.row.massageImg"
|
||||||
width="40"
|
width="40"
|
||||||
|
@ -289,7 +151,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="oldPrice" label="原价"> </el-table-column>
|
<el-table-column prop="oldPrice" label="原价"> </el-table-column>
|
||||||
<el-table-column prop="price" label="现价"> </el-table-column>
|
<el-table-column prop="price" label="现价"> </el-table-column>
|
||||||
<el-table-column prop="memberPrice" label="会员价"> </el-table-column>
|
<!-- <el-table-column prop="memberPrice" label="会员价"> </el-table-column> -->
|
||||||
<!-- <el-table-column prop="artificerPrice" label="师傅价">
|
<!-- <el-table-column prop="artificerPrice" label="师傅价">
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column prop="duration" label="时长(分钟)">
|
<el-table-column prop="duration" label="时长(分钟)">
|
||||||
|
@ -850,7 +712,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="oldPrice" label="原价"> </el-table-column>
|
<el-table-column prop="oldPrice" label="原价"> </el-table-column>
|
||||||
<el-table-column prop="price" label="现价"> </el-table-column>
|
<el-table-column prop="price" label="现价"> </el-table-column>
|
||||||
<el-table-column prop="memberPrice" label="会员价"> </el-table-column>
|
<!-- <el-table-column prop="memberPrice" label="会员价"> </el-table-column> -->
|
||||||
<!-- <el-table-column prop="artificerPrice" label="师傅价">
|
<!-- <el-table-column prop="artificerPrice" label="师傅价">
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column prop="duration" label="时长(分钟)">
|
<el-table-column prop="duration" label="时长(分钟)">
|
||||||
|
@ -1015,7 +877,7 @@
|
||||||
placeholder="请输入现价"
|
placeholder="请输入现价"
|
||||||
></el-input>
|
></el-input>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-bottom: 10px">
|
<!-- <div style="margin-bottom: 10px">
|
||||||
<span style="width: 200px; display: inline-block; text-align: right"
|
<span style="width: 200px; display: inline-block; text-align: right"
|
||||||
>会员价:</span
|
>会员价:</span
|
||||||
>
|
>
|
||||||
|
@ -1027,7 +889,7 @@
|
||||||
min="0"
|
min="0"
|
||||||
placeholder="请输入会员价"
|
placeholder="请输入会员价"
|
||||||
></el-input>
|
></el-input>
|
||||||
</div>
|
</div> -->
|
||||||
<!-- <div style="margin-bottom: 10px;">
|
<!-- <div style="margin-bottom: 10px;">
|
||||||
<span style="width: 200px;display: inline-block;text-align: right;">师傅价:</span>
|
<span style="width: 200px;display: inline-block;text-align: right;">师傅价:</span>
|
||||||
<el-input style="width:50%;" v-model="artificerPrice"
|
<el-input style="width:50%;" v-model="artificerPrice"
|
||||||
|
@ -1289,7 +1151,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="oldPrice" label="原价"> </el-table-column>
|
<el-table-column prop="oldPrice" label="原价"> </el-table-column>
|
||||||
<el-table-column prop="price" label="现价"> </el-table-column>
|
<el-table-column prop="price" label="现价"> </el-table-column>
|
||||||
<el-table-column prop="memberPrice" label="会员价"> </el-table-column>
|
<!-- <el-table-column prop="memberPrice" label="会员价"> </el-table-column> -->
|
||||||
<!-- <el-table-column prop="artificerPrice" label="师傅价">
|
<!-- <el-table-column prop="artificerPrice" label="师傅价">
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column prop="duration" label="时长(分钟)">
|
<el-table-column prop="duration" label="时长(分钟)">
|
||||||
|
@ -1394,7 +1256,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="price" label="现价"> </el-table-column>
|
<el-table-column prop="price" label="现价"> </el-table-column>
|
||||||
<el-table-column prop="memberPrice" label="会员价"> </el-table-column>
|
<!-- <el-table-column prop="memberPrice" label="会员价"> </el-table-column> -->
|
||||||
<!-- <el-table-column prop="artificerPrice" label="师傅价">
|
<!-- <el-table-column prop="artificerPrice" label="师傅价">
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column prop="duration" label="时长(分钟)">
|
<el-table-column prop="duration" label="时长(分钟)">
|
||||||
|
@ -1525,7 +1387,7 @@
|
||||||
placeholder="请输入现价"
|
placeholder="请输入现价"
|
||||||
></el-input>
|
></el-input>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-bottom: 10px">
|
<!-- <div style="margin-bottom: 10px">
|
||||||
<span style="width: 200px; display: inline-block; text-align: right"
|
<span style="width: 200px; display: inline-block; text-align: right"
|
||||||
>会员价:</span
|
>会员价:</span
|
||||||
>
|
>
|
||||||
|
@ -1537,7 +1399,7 @@
|
||||||
min="0"
|
min="0"
|
||||||
placeholder="请输入会员价"
|
placeholder="请输入会员价"
|
||||||
></el-input>
|
></el-input>
|
||||||
</div>
|
</div> -->
|
||||||
<!-- <div style="margin-bottom: 10px;">
|
<!-- <div style="margin-bottom: 10px;">
|
||||||
<span style="width: 200px;display: inline-block;text-align: right;">师傅价:</span>
|
<span style="width: 200px;display: inline-block;text-align: right;">师傅价:</span>
|
||||||
<el-input style="width:50%;" v-model="artificerPrice"
|
<el-input style="width:50%;" v-model="artificerPrice"
|
||||||
|
@ -1638,13 +1500,6 @@
|
||||||
center
|
center
|
||||||
>
|
>
|
||||||
<div style="display: flex; align-items: center">
|
<div style="display: flex; align-items: center">
|
||||||
<!-- <div style="position: relative;display: inline-block;margin: 5px;">
|
|
||||||
<span>物料包类型:</span>
|
|
||||||
<el-select clearable clearable v-model="materialPackageselect" style="width:150px;margin-left: 10px;">
|
|
||||||
<el-option v-for="item in materialPackageType" :key="item.id" :label="item.value" :value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</div> -->
|
|
||||||
<div style="position: relative; display: inline-block">
|
<div style="position: relative; display: inline-block">
|
||||||
<span>项目名称:</span>
|
<span>项目名称:</span>
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -1841,6 +1696,9 @@
|
||||||
<el-table-column prop="id" label="编号" width="80" fixed="left">
|
<el-table-column prop="id" label="编号" width="80" fixed="left">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="projectType" label="项目类型" fixed="left">
|
<el-table-column prop="projectType" label="项目类型" fixed="left">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{getDictLabel(scope.row.status)}}
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="materialName" label="物料包名称" fixed="left">
|
<el-table-column prop="materialName" label="物料包名称" fixed="left">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -1918,7 +1776,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="duration" label="时长(分钟)"> </el-table-column>
|
<el-table-column prop="duration" label="时长(分钟)"> </el-table-column>
|
||||||
<el-table-column prop="price" label="现价"> </el-table-column>
|
<el-table-column prop="price" label="现价"> </el-table-column>
|
||||||
<el-table-column prop="memberPrice" label="会员价"> </el-table-column>
|
<!-- <el-table-column prop="memberPrice" label="会员价"> </el-table-column> -->
|
||||||
<el-table-column label="操作" prop="id" width="160" fixed="right">
|
<el-table-column label="操作" prop="id" width="160" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -1995,16 +1853,7 @@ export default {
|
||||||
isShow: [],
|
isShow: [],
|
||||||
consumeNum: 0,
|
consumeNum: 0,
|
||||||
materialPackageselect: "",
|
materialPackageselect: "",
|
||||||
materialPackageType: [
|
materialPackageType: [],
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
value: "中医推拿",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 2,
|
|
||||||
value: "精油SPA",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
childClassifyId: "",
|
childClassifyId: "",
|
||||||
projectName: "",
|
projectName: "",
|
||||||
dialogWidth: 0,
|
dialogWidth: 0,
|
||||||
|
@ -2190,7 +2039,7 @@ export default {
|
||||||
labels: "", //标签
|
labels: "", //标签
|
||||||
massageImg: "", //图片
|
massageImg: "", //图片
|
||||||
massageTypeId: "", //师傅分类Id
|
massageTypeId: "", //师傅分类Id
|
||||||
memberPrice: "", //会员价
|
// memberPrice: "", //会员价
|
||||||
oldPrice: "", //原价
|
oldPrice: "", //原价
|
||||||
price: "", //现价
|
price: "", //现价
|
||||||
sales: "", //销量
|
sales: "", //销量
|
||||||
|
@ -2233,6 +2082,35 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//翻译字典(手动)
|
||||||
|
getDictLabel(val){
|
||||||
|
var list = this.materialPackageType;
|
||||||
|
var labelText = "";
|
||||||
|
for(var i=0;i<list.length;i++){
|
||||||
|
if(val==list[i].id){
|
||||||
|
labelText = list[i].value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return labelText;
|
||||||
|
},
|
||||||
|
//获取字典信息
|
||||||
|
getDictOptions() {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl('sys/dict/list'),
|
||||||
|
method: 'get',
|
||||||
|
params: this.$http.adornParams({
|
||||||
|
'page': 1,
|
||||||
|
'limit': 100,
|
||||||
|
'parentId': 22,
|
||||||
|
})
|
||||||
|
}).then(({ data }) => {
|
||||||
|
console.log(`🚀 ~ getDictOptions ~ data:`, data)
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.materialPackageType = data.page.list;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 加钟项目查询
|
// 加钟项目查询
|
||||||
clockQuery() {
|
clockQuery() {
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
|
@ -2386,7 +2264,8 @@ export default {
|
||||||
params: this.$http.adornParams({
|
params: this.$http.adornParams({
|
||||||
page: this.currentInnerPage,
|
page: this.currentInnerPage,
|
||||||
limit: this.pageSizeInner,
|
limit: this.pageSizeInner,
|
||||||
status: this.materialPackageClassifyId == 91 ? 2 : 1,
|
// status: this.materialPackageClassifyId == 91 ? 2 : 1,
|
||||||
|
status: this.materialPackageClassifyId,
|
||||||
materialName: this.projectNameInner,
|
materialName: this.projectNameInner,
|
||||||
}),
|
}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
|
@ -2394,13 +2273,13 @@ export default {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
this.materialTableLoading = false;
|
this.materialTableLoading = false;
|
||||||
let returnData = data.data;
|
let returnData = data.data;
|
||||||
for (var i in returnData.records) {
|
// for (var i in returnData.records) {
|
||||||
if (returnData.records[i].status == 1) {
|
// if (returnData.records[i].status == 1) {
|
||||||
returnData.records[i].projectType = "中医推拿";
|
// returnData.records[i].projectType = "中医推拿";
|
||||||
} else {
|
// } else {
|
||||||
returnData.records[i].projectType = "精油SPA";
|
// returnData.records[i].projectType = "精油SPA";
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
this.materialTableDataList = returnData;
|
this.materialTableDataList = returnData;
|
||||||
} else {
|
} else {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
|
@ -3640,15 +3519,15 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.memberPrice === "") {
|
// if (this.memberPrice === "") {
|
||||||
this.$notify({
|
// this.$notify({
|
||||||
title: "提示",
|
// title: "提示",
|
||||||
duration: 1800,
|
// duration: 1800,
|
||||||
message: "请会员价",
|
// message: "请会员价",
|
||||||
type: "warning",
|
// type: "warning",
|
||||||
});
|
// });
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
if (this.oldPrice === "") {
|
if (this.oldPrice === "") {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
|
@ -4181,15 +4060,15 @@ export default {
|
||||||
// })
|
// })
|
||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
if (this.memberPrice == "") {
|
// if (this.memberPrice == "") {
|
||||||
this.$notify({
|
// this.$notify({
|
||||||
title: "提示",
|
// title: "提示",
|
||||||
duration: 1800,
|
// duration: 1800,
|
||||||
message: "请会员价",
|
// message: "请会员价",
|
||||||
type: "warning",
|
// type: "warning",
|
||||||
});
|
// });
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
// if (this.artificerPrice == '') {
|
// if (this.artificerPrice == '') {
|
||||||
// this.$notify({
|
// this.$notify({
|
||||||
// title: '提示',
|
// title: '提示',
|
||||||
|
@ -4512,7 +4391,7 @@ export default {
|
||||||
console.log(row);
|
console.log(row);
|
||||||
this.showMaterialPackageTable = true;
|
this.showMaterialPackageTable = true;
|
||||||
this.serverId = row.massageTypeId;
|
this.serverId = row.massageTypeId;
|
||||||
this.projectTypeStr = row.classifyName == "中医推拿" ? 1 : 2;
|
// this.projectTypeStr = row.classifyName == "中医推拿" ? 1 : 2;
|
||||||
this.getMaterialPackageDataOfRow = row;
|
this.getMaterialPackageDataOfRow = row;
|
||||||
this.getMaterialPackageDataList(row);
|
this.getMaterialPackageDataList(row);
|
||||||
this.materialPackageClassifyId = row.classifyId;
|
this.materialPackageClassifyId = row.classifyId;
|
||||||
|
@ -4532,6 +4411,7 @@ export default {
|
||||||
if (userId) this.userId = userId;
|
if (userId) this.userId = userId;
|
||||||
this.classSelect();
|
this.classSelect();
|
||||||
this.fwSelect();
|
this.fwSelect();
|
||||||
|
this.getDictOptions();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<div>
|
<div>
|
||||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
<!-- 项目列表 -->
|
<!-- 项目列表 -->
|
||||||
<el-tab-pane label="项目列表" name="third">
|
<el-tab-pane label="物料包配置" name="third">
|
||||||
<div style="display: flex; align-items: center">
|
<div style="display: flex; align-items: center">
|
||||||
<div style="position: relative; display: inline-block; margin: 5px">
|
<div style="position: relative; display: inline-block; margin: 5px">
|
||||||
<span>物料包类型:</span>
|
<span>项目类型:</span>
|
||||||
<el-select
|
<el-select
|
||||||
clearable
|
clearable
|
||||||
v-model="classifyId"
|
v-model="classifyId"
|
||||||
|
@ -67,6 +67,9 @@
|
||||||
<el-table-column prop="id" label="编号" width="80" fixed="left">
|
<el-table-column prop="id" label="编号" width="80" fixed="left">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="projectType" label="项目类型" fixed="left">
|
<el-table-column prop="projectType" label="项目类型" fixed="left">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{getDictLabel(scope.row.status)}}
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="materialName" label="物料包名称" fixed="left">
|
<el-table-column prop="materialName" label="物料包名称" fixed="left">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -485,7 +488,19 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//翻译字典(手动)
|
||||||
|
getDictLabel(val){
|
||||||
|
var list = this.materialPackageType;
|
||||||
|
var labelText = "";
|
||||||
|
for(var i=0;i<list.length;i++){
|
||||||
|
if(val==list[i].id){
|
||||||
|
labelText = list[i].value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return labelText;
|
||||||
|
},
|
||||||
|
//获取字典信息
|
||||||
getDictOptions() {
|
getDictOptions() {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('sys/dict/list'),
|
url: this.$http.adornUrl('sys/dict/list'),
|
||||||
|
@ -681,13 +696,13 @@ export default {
|
||||||
this.tableDataLoading = false;
|
this.tableDataLoading = false;
|
||||||
let returnData = data.data;
|
let returnData = data.data;
|
||||||
let projectType = null;
|
let projectType = null;
|
||||||
for (var i in returnData.records) {
|
// for (var i in returnData.records) {
|
||||||
if (returnData.records[i].status == 1) {
|
// if (returnData.records[i].status == 1) {
|
||||||
returnData.records[i].projectType = "中医推拿";
|
// returnData.records[i].projectType = "中医推拿";
|
||||||
} else {
|
// } else {
|
||||||
returnData.records[i].projectType = "精油SPA";
|
// returnData.records[i].projectType = "精油SPA";
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
this.tableData = returnData;
|
this.tableData = returnData;
|
||||||
// for (var i in this.tableData.list) {
|
// for (var i in this.tableData.list) {
|
||||||
// if (this.tableData.list[i].contentImg) {
|
// if (this.tableData.list[i].contentImg) {
|
||||||
|
|
|
@ -741,17 +741,17 @@
|
||||||
});
|
});
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for(var i in this.valueData){
|
// for(var i in this.valueData){
|
||||||
if(this.valueData[i].skuImg==''){
|
// if(this.valueData[i].skuImg==''){
|
||||||
this.$notify({
|
// this.$notify({
|
||||||
title: '提示',
|
// title: '提示',
|
||||||
duration: 1800,
|
// duration: 1800,
|
||||||
message: '请上传商品属性图片',
|
// message: '请上传商品属性图片',
|
||||||
type: 'warning'
|
// type: 'warning'
|
||||||
});
|
// });
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if (this.postagePrice === '') {
|
if (this.postagePrice === '') {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
|
|
Loading…
Reference in New Issue