Commit 124b894f authored by Mac's avatar Mac

商品详情

parent f565a70f
<template>
<div class="directorGoodsEdit">
<div class="head-title">
<span @click="CommonJump('goodsList')" class="blue point">商品列表</span>
<span @click="CommonJump('directorGoodsList')" class="blue point">商品列表</span>
/ 添加商品
</div>
<div style="background:#fff;margin-top:10px;padding:10px 20px 20px">
......@@ -70,20 +70,6 @@
<p style="color:#c9c9c9;margin-bottom: 12px;">
第一张图片为缩略图,其它图片为轮播图,建议像素750*750,最多支持上传9张
</p>
<!-- <div flex="dir:left">
<div v-for="(item, index) in addMsg.CarouselImageList" :key="index+'2'"
style="margin-right: 20px; position: relative; ">
<div class="colapp-image" :style="{
backgroundImage: 'url(' + item.Path + ')'
}"></div>
<el-button @click="ClearCarouse(index)" class="delBtn" type="danger" icon="el-icon-close"
circle></el-button>
</div>
<div @click="openChangeDig(1)" class="add-image-btn 2222">
+ 添加图片
</div>
</div> -->
<div class="nav_Main">
<div class="nav_IconContent">
<draggable v-model="addMsg.CarouselImageList">
......@@ -106,13 +92,13 @@
</div>
</el-form-item>
<el-form-item label="商品视频">
<el-input v-model="addMsg.VideoAddress" size="small" placeholder="请输入内容">
<el-button @click="changeState1 = true" slot="append">添加视频</el-button>
</el-input>
<a v-if="addMsg.VideoAddress != ''" class="blue noline" :href="addMsg.VideoAddress"
target="_blank">视频链接</a>
</el-form-item>
<!-- <el-form-item label="商品视频">-->
<!-- <el-input v-model="addMsg.VideoAddress" size="small" placeholder="请输入内容">-->
<!-- <el-button @click="changeState1 = true" slot="append">添加视频</el-button>-->
<!-- </el-input>-->
<!-- <a v-if="addMsg.VideoAddress != ''" class="blue noline" :href="addMsg.VideoAddress"-->
<!-- target="_blank">视频链接</a>-->
<!-- </el-form-item>-->
<el-form-item label="自定义分享标题">
<el-tooltip class="item" effect="dark" content="分享给好友时,作为商品名称" placement="top"
style="position: absolute;left: -22px;top:12px">
......@@ -139,7 +125,7 @@
addMsg.CustomShareImage &&
addMsg.CustomShareImage != ''
" size="mini" type="danger" icon="el-icon-close" circle></el-button>
<img style="width:80px;height:80px" :src="addMsg.CustomShareImage" alt="" />
<img v-if="addMsg.CustomShareImage ||addMsg.CustomShareImage !=''" style="width:80px;height:80px" :src="addMsg.CustomShareImage" alt="" />
</div>
<p style="margin-top:-15px" class="blue f12">
<span class="point" @click="imgDig = true">查看图例</span>
......@@ -155,15 +141,94 @@
:inactive-value="2">
</el-switch>
</el-form-item>
<el-form-item label="自动上架时间" >
<el-date-picker size="small" v-model="addMsg.ShelvesDate" default-time="12:00:00" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" placeholder="选择日期时间">
</el-date-picker>
</el-col>
</el-row>
</el-card>
<el-card style="margin-top:20px" shadow="never">
<div slot="header" class="clearfix">
<span>服务信息</span>
</div>
<el-row>
<el-col :span="12">
<el-form-item label="站点" prop="SiteId">
<el-select class="w150" style="margin-right: 10px;" v-model="addMsg.SiteId" size="small"
placeholder="请选择" @change='changeSiteId'>
<el-option v-for="item in SiteList" :key="item.ID" :label="item.SiteName" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="自动下架时间" >
<el-date-picker size="small" v-model="addMsg.DownDate" default-time="12:00:00" value-format="yyyy-MM-dd HH:mm:ss"
type="datetime" placeholder="选择日期时间">
</el-date-picker>
<el-form-item label="关联导游" prop="GuideId" v-if="addMsg.SiteId!=''">
<el-select class="w150" style="margin-right: 10px;" v-model="addMsg.GuideId" size="small"
placeholder="请选择" @change='changeSupplier'>
<el-option v-for="item in GuideList" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="关联车辆" prop="CarId" >
<el-select class="w150" style="margin-right: 10px;" v-model="addMsg.CarId" size="small"
placeholder="请选择" @change='changeCarId'>
<el-option v-for="item in CarList" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="车辆颜色" prop="CarColorId" v-if="addMsg.CarId!=''">
<el-select class="w150" style="margin-right: 10px;" v-model="addMsg.CarColorId" size="small"
placeholder="请选择" @change='changeCarColorList'>
<el-option v-for="item in CarColorList" :key="item.ID" :label="item.ColorName" :value="item.ID">
</el-option>
</el-select>
<!-- <img v-for="(item,index) in CarColorList" :key="item.ID" src="" alt="">-->
</el-form-item>
<el-form-item label="车牌号" prop="CarNumber">
<el-input v-model="addMsg.CarNumber" size="small" placeholder="请输入车牌号" class="input-with-select"></el-input>
</el-form-item>
<el-form-item label="车购买年份">
<el-input v-model="addMsg.CarBuyYear" size="small" placeholder="请输入车购买年份" class="input-with-select"></el-input>
</el-form-item>
<el-form-item label="服务类型" prop="CarType" >
<el-select class="w150" style="margin-right: 10px;" v-model="addMsg.CarType" size="small"
placeholder="请选择" @change='changeEnumList'>
<el-option v-for="item in EnumList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="线路名称" v-if="EnumType==5">
<el-input v-model="addMsg.LineName" size="small" placeholder="请输入内容" class="input-with-select"></el-input>
</el-form-item>
<el-form-item label="使用天数" v-if="EnumType==3||EnumType==4||EnumType==5">
<el-select class="w150" style="margin-right: 10px;" v-model="addMsg.UserDay" size="small"
placeholder="请选择" @change='changeSupplier'>
<el-option v-for="item in DayList" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="关联城市或景点" v-if="EnumType==5">
<div flex="dir:left" style="flex-wrap: wrap;">
<div class="attr-list" v-for="(item,index) in addMsg.LineDescriptionList" :key="index">
<el-input size="mini" v-model="item.Name" width="152px"></el-input>
<i @click="Deleteggz(index)" class="el-icon-error close"></i>
</div>
<div>
<span @click="addGgz()" class="blue f12">添加城市或景点</span>
</div>
</div>
</el-form-item>
<el-form-item label="乘坐人数" prop="RideNum">
<el-input v-model="addMsg.RideNum" size="small" placeholder="请输入内容" class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
<el-form-item label="是否拼车" >
<el-radio v-model="addMsg.IsSpell" label="1"></el-radio>
<el-radio v-model="addMsg.IsSpell" label="2"></el-radio>
</el-form-item>
<el-form-item label="提前预定天数" prop="AdvanceDay">
<el-input v-model="addMsg.AdvanceDay" size="small" placeholder="请输入内容" class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -189,19 +254,12 @@
</el-input>
</el-form-item>
<el-form-item label="原价" prop="OriginalPrice">
<el-tooltip class="item" effect="dark" content="以划线形式显示" placement="top-start"
style="position: absolute;left: -22px;top:12px">
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip>
<el-input v-model="addMsg.OriginalPrice" type="number" min="1" size="small" placeholder="请输入内容"
class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
<el-form-item label="单位" prop="Unit">
<el-input v-model="addMsg.Unit" size="small" placeholder="请输入内容" class="input-with-select">
</el-input>
</el-form-item>
<el-form-item label="成本价">
<el-input @change="getSuggestPrice" v-model="addMsg.CostPrice" type="number" min="1" size="small"
placeholder="请输入内容" class="input-with-select">
......@@ -220,180 +278,13 @@
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
<el-form-item label="商品面议">
<el-tooltip class="item" effect="dark" content="如果开启面议,则商品无法在线支付" placement="top-start"
style="position: absolute;left: -22px;top:12px">
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip>
<el-switch v-model="addMsg.IsGoodsNegotiable" active-color="#409EFF" :active-value="1"
:inactive-value="0">
</el-switch>
</el-form-item>
<el-form-item label="已出售量">
<el-tooltip class="item" effect="dark" content="前端展示的销量=实际销量+已出售量" placement="top-start"
style="position: absolute;left: -22px;top:12px">
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip>
<el-input v-model="addMsg.SalesNum" type="number" min="1" size="small" placeholder="请输入内容"
class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
<el-form-item label="商品总库存" prop="InventoryNum">
<el-input v-model="addMsg.InventoryNum" type="number" min="1" size="small" placeholder="请输入内容"
class="input-with-select"></el-input>
</el-form-item>
<el-form-item label="默认规则名">
<el-input :disabled="SpecificationList.length > 0" v-model="addMsg.DefaultSpecificationName"
size="small" placeholder="请输入内容" class="input-with-select"></el-input>
</el-form-item>
<el-form-item label="商品规格">
<el-tooltip class="item" effect="dark" content="如有颜色、尺码等多种规格,请添加商品规格" placement="top-start"
style="position: absolute;left: -22px;top:12px">
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip>
<div style="width:130%">
<div class="app-attr-group">
<div v-for="(item, index) in SpecificationList" :key="index+'3'" style="margin-bottom:16px;">
<div flex="dir:left cross:center" class="bg">
<span>规格名:</span>
<el-input @input="ggzChange" v-model="item.Name" size="mini"
style="width: 94px;margin: 0px 16px;"></el-input>
<el-checkbox @change="CheckBox" v-show="index == 0" v-model="item.EnabledImage"
:true-label="1" :false-label="2">规格图片</el-checkbox>
<div style="margin-left: auto; line-height: 1;">
<div @click="DeleteggModule(item, index)" class="el-image del-img">
<img src="../../assets/img/userman/del1.png" class="el-image__inner" />
</div>
</div>
</div>
<div flex="dir:left" style="padding: 0px 10px;margin-top: 16px;">
<div class="box-grow-0">规格值:</div>
<div flex="dir:left" style="flex-wrap: wrap;">
<div v-for="(item2,
index2) in item.SpecificationValueList" :key="index2+'4'" class="attr-list">
<el-input @input="ggzChange" size="mini" v-model="item2.Name" width="152px"></el-input>
<i @click="Deleteggz(item, index, index2)" class="el-icon-error close"></i>
<div v-if="index == 0 && item.EnabledImage == 1" flex="cross:center main:center"
class="img-box">
<div class="attr-jt"></div>
<div v-if="item2.Image == ''" @click="
openggImg(item, index, item2, index2)
" class="app-attachment">
<div style="line-height: normal; display: inline-block;">
<span>+添加图片</span>
</div>
</div>
<div v-if="item2.Image != ''" class="el-image" style="height: 88px; width: 88px;">
<img :src="item2.Image" style="width:100%;height:100%" />
</div>
<span v-if="item2.Image != ''" @click="
DeleteImageUrl(item, index, item2, index2)
" class="el-icon-error close"></span>
<div v-if="item2.Image != ''" style="position: absolute;">
<div class="app-attachment">
<el-button @click="
openggImg(item, index, item2, index2)
" type="primary" size="small">替换</el-button>
</div>
</div>
</div>
</div>
<div>
<span @click="addGgz(item, index)" class="blue f12">添加规格值</span>
</div>
</div>
</div>
</div>
<div v-if="SpecificationList.length < 6" flex="dir:left cross:center" class="bg">
<el-button @click="addggModeule" size="small">添加规格模板</el-button>
<el-button @click="addggxm" size="small">添加规格项目</el-button>
<span style="padding-left: 14px;color: rgb(201, 201, 201)">注:规格名最多添加5个</span>
</div>
</div>
</div>
<div v-show="SpecificationPriceList.length > 0" style="width: 130%; margin-top: 24px;">
<div class="app-attr">
<div class="box">
<!-- <el-checkbox v-model="val2">全选</el-checkbox> -->
<el-form-item label-width="90px" style="display:inline-block" label="批量设置">
<el-input style="width:100%" size="small" v-model="valpl" placeholder="请输入内容"
class="input-with-select">
<el-select style="width:120px" v-model="ggpl" slot="prepend" placeholder="请选择">
<el-option label="价格" :value="1"></el-option>
<el-option label="库存" :value="2"></el-option>
<el-option label="成本价" :value="5"></el-option>
<el-option label="重量(g)" :value="3"></el-option>
<el-option label="货号" :value="4"></el-option>
<el-option v-if="FxState==1" label="返佣总金额" :value="6"></el-option>
<el-form-item label="预订日期" class="is-required">
<el-select class="w150" style="margin-right: 10px;" v-model="reserveType" size="small"
placeholder="请选择" @change='changeSupplier'>
<el-option v-for="item in reserveList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
<el-button @click="ggPlSet" slot="append">确定</el-button>
</el-input>
</el-form-item>
</div>
<el-table ref="table" :data="SpecificationPriceList" border style="width: 100%"
@selection-change="TbaleSelectionChange">
<el-table-column type="selection" width="55">
</el-table-column>
<template v-for="(item, index) in SpecificationList">
<el-table-column :key="index+'5'" :label="item.Name">
<template slot-scope="scope">
<span v-if="index == index2" v-for="(item2, index2) in scope.row.AttrList"
:key="index2+'6'">
{{ scope.row.AttrList[index2].SVName }}
</span>
</template>
</el-table-column>
</template>
<el-table-column :render-header="renderHeader" label="价格">
<template slot-scope="scope">
<el-input v-model="scope.row.SellingPrice"
@keyup.native="checkPrice(scope.row,'SellingPrice')" size="small"></el-input>
</template>
</el-table-column>
<el-table-column :render-header="renderHeader" label="库存">
<template slot-scope="scope">
<el-input v-model="scope.row.InventoryNum"
@keyup.native="checkPrice(scope.row,'InventoryNum')" size="small"></el-input>
</template>
</el-table-column>
<el-table-column :render-header="renderHeader" label="成本价" width="90">
<template slot-scope="scope">
<el-input v-model="scope.row.CostMoney" @keyup.native="checkPrice(scope.row,'CostMoney')"
size="small"></el-input>
</template>
</el-table-column>
<el-table-column :render-header="renderHeader" v-if="FxState==1" width="120" label="返佣总金额">
<template slot-scope="scope">
<el-input v-model="scope.row.Commission"
@keyup.native="checkPrice(scope.row,'Commission')" size="small"></el-input>
</template>
</el-table-column>
<el-table-column label="重量(克)" width="90">
<template slot-scope="scope">
<el-input v-model="scope.row.GoodsWeight"
@keyup.native="checkPrice(scope.row,'GoodsWeight')" size="small"></el-input>
</template>
</el-table-column>
<el-table-column prop="address" label="货号">
<template slot-scope="scope">
<el-input v-model="scope.row.GoodsNumbers" size="small"></el-input>
</template>
</el-table-column>
</el-table>
</div>
</div>
</el-form-item>
<el-form-item label="商品货号">
<el-input v-model="addMsg.GoodsNumbers" size="small" placeholder="请输入内容" class="input-with-select">
</el-input>
</el-form-item>
<el-form-item label="商品重量">
<el-input v-model="addMsg.GoodsWeight" type="number" min="1" size="small" placeholder="请输入内容"
class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-card>
......@@ -403,38 +294,6 @@
</div>
<el-row>
<el-col :span="12">
<el-form-item label="发货仓库">
<el-input v-model="addMsg.SendArea" size="small" placeholder="请输入内容"
class="input-with-select">
</el-input>
</el-form-item>
<el-form-item label="商品服务">
<template v-if="addMsg.ServiceList && addMsg.ServiceList.length > 0">
<el-tag style="margin-right:10px;" @close="ServiceCheck(item, index)"
v-for="(item, index) in addMsg.ServiceList" :key="index+'7'" closable>{{ item.Name }}</el-tag>
</template>
<el-button @click="
(serviceDig = true),
(keepServiceList = addMsg.ServiceList)
" v-if="addMsg.IsDefaultService == 2" size="mini">新增服务</el-button>
<el-checkbox v-model="addMsg.IsDefaultService" :true-label="1" :false-label="2">默认服务</el-checkbox>
</el-form-item>
<!-- FreightId -->
<el-form-item label="运费设置">
<el-tooltip class="item" effect="dark" content="选择第一项(默认运费)将会根据运费管理的(默认运费)变化而变化"
placement="top-start" style="position: absolute;left: -22px;top:12px">
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip>
<template v-if="addMsg.FreightName && addMsg.FreightName != ''">
<el-tag style="margin-right:10px;" @close="
(addMsg.FreightName = ''), (addMsg.FreightId = -1)
" closable>
{{ addMsg.FreightName }}</el-tag>
</template>
<el-button @click="
(chooseyfDig = true), (keepFreightId = addMsg.FreightId)
" size="mini">选择运费</el-button>
</el-form-item>
<el-form-item label="自定义表单">
<el-tooltip class="item" effect="dark" content="选择第一项(默认表单)将会根据表单列表的(默认表单)变化而变化"
placement="top-start" style="position: absolute;left: -22px;top:12px">
......@@ -449,48 +308,6 @@
(choosebdDig = true), (keepFormsId = addMsg.FormsId)
" size="mini">选择表单</el-button>
</el-form-item>
<el-form-item label="限购数量">
<el-form-item label-width="60px" label="商品">
<el-input :disabled="BuyGoodsNumState" v-model="addMsg.LimitBuyGoodsNum"
style="width:100%;margin-left:15px" type="number" min="1" size="small" placeholder="请输入内容"
class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
<el-checkbox style="margin-left:10px" v-model="BuyGoodsNumState"
@change="BuyGoodsNumState==true? addMsg.LimitBuyGoodsNum=-1:addMsg.LimitBuyGoodsNum=0">不限制
</el-checkbox>
</el-form-item>
<el-form-item label-width="60px" label="订单">
<el-input :disabled="BuyOrderNumState" v-model="addMsg.LimitBuyOrderNum"
style="width:100%;margin-left:15px" type="number" min="1" size="small" placeholder="请输入内容"
class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
<el-checkbox style="margin-left:10px" v-model="BuyOrderNumState"
@change="BuyOrderNumState==true? addMsg.LimitBuyOrderNum=-1:addMsg.LimitBuyOrderNum=0">不限制
</el-checkbox>
</el-form-item>
</el-form-item>
<el-form-item label="单品满件包邮">
<el-tooltip class="item" effect="dark" content="如果设置0或空,则不支持满件包邮" placement="top-start"
style="position: absolute;left: -22px;top:12px">
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip>
<el-input v-model="addMsg.FullNumPinkage" type="number" min="1" size="small" placeholder="请输入内容"
class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
<el-form-item label="单品满额包邮">
<el-tooltip class="item" effect="dark" content="如果设置0或空,则不支持满额包邮" placement="top-start"
style="position: absolute;left: -22px;top:12px">
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip>
<el-input v-model="addMsg.FullMoneyPinkage" type="number" min="1" size="small" placeholder="请输入内容"
class="input-with-select">
<el-button slot="append"></el-button>
</el-input>
</el-form-item>
<el-form-item label="区域购买">
<el-switch v-model="addMsg.IsAreaBuy" active-color="#409EFF" :active-value="1" :inactive-value="0">
</el-switch>
......@@ -644,10 +461,6 @@
</el-switch>
</el-form-item>
<template v-if="addMsg.SeparateDistribution == 1">
<el-form-item label="分销类型">
<el-radio v-model="addMsg.SeparateDistributionType" :label="1">普通设置</el-radio>
<el-radio @change="butionType" v-model="addMsg.SeparateDistributionType" :label="2">详细设置</el-radio>
</el-form-item>
<el-form-item label="分销佣金类型">
<el-radio v-model="addMsg.SeparateDistributionMoneyType" :label="2">固定金额</el-radio>
<el-radio v-model="addMsg.SeparateDistributionMoneyType" :label="1">百分比</el-radio>
......@@ -722,75 +535,6 @@
</el-table>
</div>
</el-form-item>
<el-form-item class="222">
<div v-if="addMsg.SeparateDistributionType == 2" class="app-attr">
<div class="box">
<el-form-item label-width="90px" style="display:inline-block" label="批量设置">
<el-select style="width:130px" v-model="gradeVal" size="small">
<el-option v-for="(item, index) in DropdownList" :label="item.Name" :value="item.Grade"
:key="index+'11'"></el-option>
</el-select>
<el-select style="width:130px" v-model="fxVal" size="small">
<el-option v-for="(item, index) in butorInt" :label="`${index + 1}级分销`" :value="index + 1"
:key="index+'12'"></el-option>
</el-select>
<el-input style="width:150px;position:relative;top:5px" size="small" v-model="xxVal"
placeholder="请输入内容">
<el-button slot="append">
<span v-if="addMsg.SeparateDistributionMoneyType == 2"></span>
<span v-if="addMsg.SeparateDistributionMoneyType == 1">%</span>
</el-button>
</el-input>
<el-button @click="xxSet" style="position:relative;" size="small" type="primary">设置</el-button>
</el-form-item>
</div>
<el-table ref="table" :data="disList2.length>0?disList2:[]" border style="width: 100%"
@selection-change="TbaleSelectionChange3">
<template v-for="(item, index) in SpecificationList">
<el-table-column :key="index+'13'" :label="item.Name" width="100">
<template slot-scope="scope">
<span v-if="index == index2" v-for="(item2, index2) in scope.row.AttrList" :key="index2+'14'">
{{ scope.row.AttrList[index2].SVName }}
</span>
</template>
</el-table-column>
</template>
<template v-for="(item, index3) in DropdownList">
<el-table-column :key="index3" :label="item.Name">
<el-table-column width="100" v-if="butorInt > 0" label="一级分销">
<template slot-scope="scope">
<el-input v-model="
scope.row.GradeCommissionList[index3]
.OneCommission
" size="small">
</el-input>
</template>
</el-table-column>
<el-table-column width="100" v-if="butorInt > 1" label="二级分销">
<template slot-scope="scope">
<el-input v-model="
scope.row.GradeCommissionList[index3]
.TwoCommission
" size="small">
</el-input>
</template>
</el-table-column>
<el-table-column width="100" v-if="butorInt > 2" label="三级分销">
<template slot-scope="scope">
<el-input v-model="
scope.row.GradeCommissionList[index3]
.ThreeCommission
" size="small">
</el-input>
</template>
</el-table-column>
</el-table-column>
</template>
<el-table-column type="selection" :fixed="true" width="55">
</el-table-column>
</el-table>
</div>
</el-form-item>
</template>
<template v-if="hpState==1">
<table class="fen-table">
......@@ -840,48 +584,6 @@
<el-button slot="append"></el-button>
</el-input>
</div>
<el-tag type="danger">如需设置多规格会员价,请先添加商品规格</el-tag>
</el-form-item>
<el-form-item v-if="
addMsg.SeparateSetMember == 1 &&
SpecificationPriceList.length > 0
" label="会员价设置">
<div class="app-attr">
<div class="box">
<el-form-item style="display:inline-block">
<el-input style="width:500px;position:relative;top:5px" size="small" v-model="memberinput"
placeholder="请输入内容">
<el-select slot="prepend" style="width:130px" v-model="memberVal" size="small">
<el-option v-for="(item, index) in huiyList" :label="item.Name" :value="item.Grade"
:key="index">
</el-option>
</el-select>
<el-button @click="HySet" slot="append">确定</el-button>
</el-input>
</el-form-item>
</div>
<el-table ref="table" :data="memberList2" border style="width: 100%"
@selection-change="TbaleSelectionChange4">
<el-table-column type="selection" width="55">
</el-table-column>
<template v-for="(item, index) in SpecificationList">
<el-table-column :key="index+'16'" :label="item.Name" width="100">
<template slot-scope="scope">
<span v-if="index == index2" v-for="(item2, index2) in scope.row.AttrList" :key="index2+'17'">
{{ scope.row.AttrList[index2].SVName }}
</span>
</template>
</el-table-column>
</template>
<template v-for="(item, index) in huiyList">
<el-table-column :key="index+'18'" :label="item.Name">
<template slot-scope="scope">
<el-input v-model="scope.row.GradePriceList[index].MemberPrice" size="small"></el-input>
</template>
</el-table-column>
</template>
</el-table>
</div>
</el-form-item>
</el-tab-pane>
</el-tabs>
......@@ -975,36 +677,7 @@
<el-dialog title="选择文件" :visible.sync="changeState1" width="1240px">
<Choosevideo @Selectvideo="Selectvideo"></Choosevideo>
</el-dialog>
<!-- 选择商品服务 -->
<el-dialog title="选择商品服务" :visible.sync="serviceDig" width="30%">
<div style="border: 1px solid #EBEEF5;padding:20px 0">
<el-checkbox-group v-model="checkService">
<el-checkbox style="margin:5px" v-for="item in serviceList" :label="item" :key="item.Id">{{ item.Name }}
</el-checkbox>
</el-checkbox-group>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="(addMsg.ServiceList = keepServiceList),(serviceDig = false)" size="small">取消</el-button>
<el-button @click="(addMsg.ServiceList = checkService), (serviceDig = false)" size="small" type="primary">确定
</el-button>
</span>
</el-dialog>
<!-- 选择运费 -->
<el-dialog title="选择运费" top="2%" :visible.sync="chooseyfDig" width="30%">
<div>
<el-radio-group v-model="val">
<el-radio @change="YfSelect" style="padding-bottom:10px" class="yfradio"
:label="{ RulesName: '默认运费', ID: 0 }">默认运费
</el-radio>
<el-radio @change="YfSelect" style="padding-bottom:10px" class="yfradio" v-for="(item, index) in ruleList"
:key="index+'23'" :label="item">{{ item.RulesName }}</el-radio>
</el-radio-group>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="(chooseyfDig = false), (addMsg.FreightId = keepFreightId)">取 消</el-button>
<el-button size="small" @click="chooseyfDig = false" type="primary">确 定</el-button>
</span>
</el-dialog>
<!-- 选择表单 -->
<el-dialog title="选择表单" top="2%" :visible.sync="choosebdDig" width="30%">
<div>
......@@ -1026,33 +699,7 @@
<el-button type="primary" size="small" @click="Addto">确 定</el-button>
</div>
</el-dialog>
<!-- 选择规格模板 -->
<el-dialog custom-class="speciDig" title="选择规格模板" :visible.sync="speciDig" width="680px">
<div flex="dir:left">
<div class="tpl-box">
<div class="tpl-head">规格名选择</div>
<div class="tpl-scrollbar el-scrollbar">
<el-checkbox @change="(speciDigActive = index), changeCheckAll(item, index)"
v-for="(item, index) in speciList" v-model="item.checkAll" :key="index">{{ item.Name }}</el-checkbox>
</div>
</div>
<div class="tpl-box" style="margin-left:10px">
<div class="tpl-head">规格值选择</div>
<div class="tpl-scrollbar el-scrollbar">
<el-checkbox-group v-model="item.SpecificationValueList" @change="changeSpeciList(item, index)"
v-for="(item, index) in speciList" :key="index">
<span v-if="speciDigActive == index">
<el-checkbox style="padding-left:10px" v-for="(item2, index1) in item.NewSpecList" :label="item2"
:key="index1">{{ item2.Name }}</el-checkbox>
</span>
</el-checkbox-group>
</div>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="chooseSpecificationValueList">确定选择</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -1079,8 +726,8 @@
speciDigActive: -1,
newSpecificationValueList: [],
SpecificationValueList: [],
speciDig: false,
speciList: [],
choosebdDig:false,
val2: "",
defaultMsg: "",
config: {
......@@ -1088,13 +735,8 @@
initialFrameHeight: 350
},
dialogFormVisible: false,
choosebdDig: false,
chooseyfDig: false,
serviceDig: false,
changeState1: false,
changeState: false,
BuyGoodsNumState: true,
BuyOrderNumState: true,
imgDig: false,
activeName: "first",
flDig: false,
......@@ -1109,27 +751,15 @@
CustomShareImagePath: "",
IsLiveGoods: 2, //直播商品
GoodsStatus: 0,
InventoryNum: 0,
DefaultSpecificationName: "",
SpecificationList: [],
SpecificationPriceList: [],
SellingPrice: 0,
OriginalPrice: 0,
Unit: "件",
CostPrice: 0,
IsGoodsNegotiable: 2,
SalesNum: 0,
GoodsNumbers: "",
IsCustomSpecification: 2,
GoodsWeight: "",
IsDefaultService: 1,
ServiceList: [],
FreightId: -1,
FreightName: "",
FormsId: -1,
FormsName: "",
LimitBuyGoodsNum: -1,
LimitBuyOrderNum: -1,
IsAreaBuy: 2,
AreaList: [],
IntegralPresent: 0,
......@@ -1144,8 +774,6 @@
EnjoyMember: 1,
SeparateSetMember: 2,
IsQuickBuy: 1,
FullNumPinkage: 0,
FullMoneyPinkage: 0,
SupplierId: '',
Sort: 0,
Commission: 0,
......@@ -1160,16 +788,32 @@
wordsBack: "",
ico: ""
},
ShelvesDate: '', //自动上架时间
DownDate: '', //自动下架时间
SendArea:'',//发货仓库
OriginalPrice:0,
SiteId:'',
GuideId:'',
CarId:'',
CarColorId:2,
CarNumber:'',//车牌号
CarBuyYear:'',//车购买年份
CarType:'',
UserDay:1,
LineName:'',//线路名称
LineDescriptionList:[],//关联城市或景点
RideNum:0,
IsSpell:'2',//是否拼车 1是 2否
AdvanceDay:0,
TargetDateList:[
{Date:'2020-05-23'}
],
},
predefineColors: [
'#000000',
'#FFFFFF',
'#888888',
'#FF4544',
],
EnumType:0,
SupplierId: '',
fenleiData: [],
checkList: [],
......@@ -1187,41 +831,71 @@
message: "请输入商品名称",
trigger: "blur"
}],
InventoryNum: [{
required: true,
message: "请输入商品总库存",
trigger: "blur"
}],
SellingPrice: [{
required: true,
message: "请输入商品售价",
trigger: "blur"
}],
OriginalPrice: [{
required: true,
message: "请输入商品原价",
message: "请输入原价",
trigger: "blur"
}],
Unit: [{
Commission: [{
required: true,
message: "请输入商品单位",
message: "返佣总金额",
trigger: "blur"
}],
Commission: [{
CarNumber: [{
required: true,
message: "返佣总金额",
message: "请输入车牌号",
trigger: "blur"
}],
UserDay: [{
required: true,
message: "请输入使用天数",
trigger: "blur"
}],
RideNum: [{
required: true,
message: "请输入乘坐人数",
trigger: "blur"
}],
AdvanceDay: [{
required: true,
message: "请输入提前预定天数",
trigger: "blur"
}]
},
SiteList:[],//站点列表
GuideList:[],//导游列表
CarList:[],//导游列表
CarColorList:[],//车辆颜色
EnumList:[],//服务列表
DayList:[
{'ID':0.5,'Name':'半日'},
{'ID':1,'Name':'一日'},
{'ID':2,'Name':'二日'},
{'ID':3,'Name':'三日'},
{'ID':4,'Name':'四日'},
{'ID':5,'Name':'五日'},
{'ID':6,'Name':'六日'},
{'ID':7,'Name':'七日'},
],
reserveList:[
{'ID':1,'Name':'指定区间'},
{'ID':2,'Name':'按每周'},
{'ID':3,'Name':'按每月'},
],
reserveType:1,
imgType: 1,
serviceList: [],
checkService: [],
keepServiceList: [],
keepFreightId: -1,
ruleList: [],
val: {},
val1: {},
keepFormsId: -1,
AreaList: [],
skuList: [],
GoodsId: "",
......@@ -1278,13 +952,16 @@
}
this.getTree();
this.getService();
this.getRule();
this.getSpeciList();
this.getDistributor();
this.gethuiyList();
this.getSupplierList()
this.getFXDGradeList()
this.getAllGuideCarSiteList()
this.getGuideCarList()//获取车辆下拉
this.getOrderListExportEnumList()
},
mounted() {
this.$refs.ue.loadUe();
......@@ -1390,35 +1067,7 @@
TbaleSelectionChange3(val) {
this.xxList = val;
},
xxSet() {
if (this.gradeVal === "") {
this.Error("请选择等级!");
return;
}
if (this.fxVal === "") {
this.Error("请选择层级!");
return;
}
this.disList2.forEach(item => {
item.GradeCommissionList.forEach((grade, index) => {
this.xxList.forEach(list => {
if (item.Id == list.Id) {
if (index == this.gradeVal) {
if (this.fxVal == 1) {
grade.OneCommission = this.xxVal;
}
if (this.fxVal == 2) {
grade.TwoCommission = this.xxVal;
}
if (this.fxVal == 3) {
grade.ThreeCommission = this.xxVal;
}
}
}
});
});
});
},
PuSet() {
this.GradeCommissionList.forEach(item => {
this.pusetList.forEach(list => {
......@@ -1439,359 +1088,6 @@
TbaleSelectionChange2(val) {
this.pusetList = val;
},
ggPlSet() {
if (this.ggplList.length == 0) {
this.Error("至少选择一项!");
return;
}
this.SpecificationPriceList.forEach(item => {
this.ggplList.forEach(list => {
if (item.Id == list.Id) {
if (this.ggpl == 1) {
item.SellingPrice = this.valpl;
}
if (this.ggpl == 2) {
item.InventoryNum = this.valpl;
}
if (this.ggpl == 3) {
item.GoodsWeight = this.valpl;
}
if (this.ggpl == 4) {
item.GoodsNumbers = this.valpl;
}
if (this.ggpl == 5) {
item.CostMoney = this.valpl;
}
if (this.ggpl == 6) {
item.Commission = this.valpl;
}
}
});
});
},
TbaleSelectionChange(val) {
this.ggplList = val;
},
renderHeader(h, {
column
}) {
// h即为cerateElement的简写,具体可看vue官方文档
return h("div", [
h("span", column.label),
h("i", {
class: "iconfont icon-xinghao1",
style: "color:#F56C6C;float:left"
})
]);
},
CheckBox(val) {},
butionType(val) {},
// 删除规格模板
DeleteggModule(item, index) {
this.ComTreeList = [];
this.memberList2 = [];
this.SpecificationList.splice(index, 1);
if (this.SpecificationList.length == 0) {
this.addMsg.SeparateDistributionType = 1;
}
this.$forceUpdate();
this.skuList = [];
this.getSkuData([], 0, this.SpecificationList);
},
// 删除规格值
Deleteggz(item, index, index2) {
this.SpecificationList[index].SpecificationValueList.splice(index2, 1);
this.$forceUpdate();
if (this.SpecificationList[index].SpecificationValueList.length == 0) {
this.SpecificationList.splice(index, 1);
}
this.skuList = [];
this.getSkuData([], 0, this.SpecificationList);
},
// 全选
changeCheckAll(item, index) {
if (item.checkAll) {
this.speciList[index].SpecificationValueList = item.NewSpecList;
} else {
this.speciList[index].SpecificationValueList = [];
}
this.$forceUpdate();
},
changeSpeciList(val, index) {
this.$forceUpdate();
},
// 添加规格模板
addggxm() {
let that = this;
let obj = {
Name: "",
SpecificationValueList: [],
Sort: that.SpecificationList.length + 1,
Id: 0,
EnabledImage: 2
};
this.SpecificationList.push(obj);
},
// 添加规格值
addGgz(item, index) {
let obj = {
Id: 0,
Image: "",
Name: "",
Sort: item.SpecificationValueList.length + 1
};
this.SpecificationList[index].SpecificationValueList.push(obj);
},
// 修改规格值
ggzChange() {
this.$forceUpdate();
this.ComTreeList = [];
this.memberList2 = [];
this.skuList = [];
this.getSkuData([], 0, this.SpecificationList);
},
// 值
ggzChange2() {
// this.$forceUpdate();
// this.skuList = [];
// this.getSkuData([], 0, this.SpecificationValueList.);
},
chooseSpecificationValueList() {
if (!this.SpecificationList) {
this.SpecificationList = [];
}
let arr = [];
this.speciList.forEach(item => {
if (item.checkAll) {
arr.push(item);
}
});
arr.forEach(x=>{
x.Id=0;
x.NewSpecList.forEach(j=>{
j.Id = 0
});
x.SpecificationValueList.forEach(j=>{
j.Id = 0
})
});
this.SpecificationList = JSON.parse(
JSON.stringify(this.SpecificationList.concat(arr))
);
this.SpecificationList.forEach((item, index) => {
item.EnabledImage = 2;
item.Sort = index;
item.SpecificationValueList.forEach((list, index2) => {
list.Image = "";
list.Sort = index2;
});
});
this.ComTreeList = [];
this.memberList2 = []
this.skuList = [];
this.getSkuData([], 0, this.SpecificationList);
this.speciDig = false;
},
getSkuData(skuArr = [], i, list) {
const testyunx = (skuArr = [], i, list) => {
if (list[i]) {
for (let j = 0; j < list[i].SpecificationValueList.length; j++) {
skuArr[i] = {};
if (i < list.length - 1) {
skuArr[i].SName = list[i].Name;
skuArr[i].SVName = list[i].SpecificationValueList[j].Name;
skuArr[i].SVId = list[i].SpecificationValueList[j].Sort;
testyunx(skuArr, i + 1, list); // 递归循环
} else {
skuArr[i].SName = list[i].Name;
skuArr[i].SVName = list[i].SpecificationValueList[j].Name;
skuArr[i].SVId = list[i].SpecificationValueList[j].Sort;
this.skuList.push([...skuArr]); // 扩展运算符,连接两个数组
}
}
}
}
testyunx(skuArr, i, list)
this.calcList(this.skuList, this.SpecificationList);
},
calcList(list, calist) {
let oldArr = JSON.parse(JSON.stringify(this.SpecificationPriceList))
this.SpecificationPriceList = [];
let arrList = [];
list.forEach(item => {
item.AttrList = [];
item.SpecificationSort = "";
item.forEach((item2, index2) => {
let obj = {
SName: item2.SName,
SVName: item2.SVName,
SVId: item2.SVId
};
let str = ":";
if (index2 == item.length - 1) {
str = "";
}
item.SpecificationSort += item2.SVId + str;
item.GoodsNumbers = "";
item.GoodsWeight = 0;
item.InventoryNum = 0;
item.SellingPrice = 0;
item.CostMoney = 0;
item.Commission = 0;
item.AttrList.push(obj);
});
});
list.forEach((item, i) => {
let obj = {};
obj = {
isNoExite: true,
AttrList: item.AttrList,
SpecificationSort: item.SpecificationSort,
GoodsNumbers: item.GoodsNumbers,
GoodsWeight: item.GoodsWeight,
InventoryNum: item.InventoryNum,
SellingPrice: item.SellingPrice,
CostMoney: item.CostMoney,
Commission: item.Commission
};
oldArr.forEach(val => {
if (val.SpecificationSort == item.SpecificationSort) {
obj = {
isNoExite: false,
AttrList: item.AttrList,
SpecificationSort: val.SpecificationSort,
GoodsNumbers: val.GoodsNumbers,
GoodsWeight: val.GoodsWeight,
InventoryNum: val.InventoryNum,
SellingPrice: val.SellingPrice,
CostMoney: val.CostMoney,
Commission: val.Commission
};
}
})
this.SpecificationPriceList.push(obj);
let obj1 = {
Id: i,
AttrList: item.AttrList,
SpecificationSort: item.SpecificationSort,
GradeCommissionList: []
};
arrList.push(obj1);
});
this.calcdis(JSON.parse(JSON.stringify(arrList)));
},
calcdis(dislist) {
let memberListarray = JSON.parse(JSON.stringify(dislist));
let ComTreeList = JSON.parse(JSON.stringify(this.ComTreeList));
// this.ComTreeList=[];//无法添加 报错 暂时注释掉
for (let i = 0; i < dislist.length; i++) {
if (this.addMsg.SeparateDistributionType == 2 && this.ComTreeList.length >
0) { //this.ComTreeList.length为0 的时候 全部为空
if (i < ComTreeList.length) {
ComTreeList.forEach((val, z) => {
if (val.SpecificationSort == dislist[i].SpecificationSort) {
dislist[i].GradeCommissionList = [];
dislist[i].GradeCommissionList = val.GradeCommissionList;
}
})
} else {
for (let j = 0; j < this.DropdownList.length; j++) {
let obj = {
SpecificationSort: dislist[i].SpecificationSort,
DistributorGrade: this.DropdownList[j].Id,
OneCommission: 0,
TwoCommission: 0,
ThreeCommission: 0,
Name: dislist[i].Name
};
dislist[i].GradeCommissionList.push(obj);
}
}
} else {
for (let j = 0; j < this.DropdownList.length; j++) {
let obj = {
SpecificationSort: dislist[i].SpecificationSort,
DistributorGrade: this.DropdownList[j].Id,
OneCommission: 0,
TwoCommission: 0,
ThreeCommission: 0,
Name: dislist[i].Name
};
dislist[i].GradeCommissionList.push(obj);
}
}
}
//以前的逻辑 暂时保留 6.22
// dislist.forEach(item => {
// item.GradeCommissionList = [];
// // for (let i = 0; i < this.DropdownList.length; i++) {
// // let obj = {
// // SpecificationSort:item.SpecificationSort,
// // DistributorGrade: this.DropdownList[i].Id,
// // OneCommission: 0,
// // TwoCommission: 0,
// // ThreeCommission: 0,
// // Name: item.Name
// // };
// // item.GradeCommissionList.push(obj);
// ComTreeList.forEach(val=>{
//
// // if(val.SpecificationSort==item.SpecificationSort){
// // item.GradeCommissionList=[];
// // item.GradeCommissionList=val.GradeCommissionList;
// // }
// })
//
// // }
// });
for (let i = 0; i < memberListarray.length; i++) {
memberListarray[i].GradePriceList = [];
if (this.addMsg.EnjoyMember == 1 && this.memberList2.length > 0) {
if (i < this.memberList2.length) {
this.memberList2.forEach(val => {
if (val.SpecificationSort == memberListarray[i].SpecificationSort) {
memberListarray[i].GradePriceList = [];
memberListarray[i].GradePriceList = val.GradePriceList;
}
})
} else {
for (let j = 0; j < this.huiyList.length; j++) {
let obj = {
MemberGrade: this.huiyList[j].Grade,
MemberPrice: 0
};
memberListarray[i].GradePriceList.push(obj);
}
}
} else {
for (let j = 0; j < this.huiyList.length; j++) {
let obj = {
MemberGrade: this.huiyList[j].Grade,
MemberPrice: 0
};
memberListarray[i].GradePriceList.push(obj);
}
}
}
this.disList2 = JSON.parse(JSON.stringify(dislist));
this.memberList2 = JSON.parse(JSON.stringify(memberListarray));
},
addggModeule() {
this.speciDig = true;
this.speciList.forEach(item => {
item.NewSpecList = [];
item.checkAll = false;
item.SpecificationValueList = [];
item.SpecList.forEach(val => {
let obj = {
Id: item.Id,
Name: val
};
item.NewSpecList.push(obj);
});
});
},
Save(formName) {
this.$refs[formName].validate(valid => {
if (valid) {
......@@ -1807,18 +1103,13 @@
if (this.SpecificationList.length == 0) {
this.addMsg.IsCustomSpecification = 2;
}
if (this.addMsg.IsCustomSpecification != 1 && this.SpecificationList.length == 0) {
this.Error("请选择规格项目!");
return
}
if (this.addMsg.SeparateDistributionType == 1) {
this.disList1 = [{
SpecificationSort: "",
GradeCommissionList: this.GradeCommissionList
}],
this.addMsg.DistributionCommissionList = this.disList1;
} else {
this.addMsg.DistributionCommissionList = this.disList2;
}
if (this.addMsg.SeparateSetMember == 1 && this.SpecificationList.length == 0) {
this.addMsg.MemberPriceList = this.memberList1;
......@@ -1837,26 +1128,7 @@
}
this.addMsg.SpecificationPriceList = this.SpecificationPriceList;
this.addMsg.SpecificationList = this.SpecificationList;
for (var i = 0; i < this.addMsg.SpecificationPriceList.length; i++) {
if (this.addMsg.SpecificationPriceList[i].SellingPrice === '') {
this.Error('请输入商品规格第' + (i + 1) + '行价格');
return
}
if (this.addMsg.SpecificationPriceList[i].InventoryNum === '') {
this.Error('请输入商品规格第' + (i + 1) + '行库存');
return
}
if (this.addMsg.SpecificationPriceList[i].CostMoney === '') {
this.Error('请输入商品规格第' + (i + 1) + '行成本价');
return
}
if (this.FxState == 1) {
if (this.addMsg.SpecificationPriceList[i].Commission === '') {
this.Error('请输入商品规格第' + (i + 1) + '行返佣总金额');
return
}
}
}
if (this.addMsg.PresentFXGrade == '') { //没选择的时候默认为0
this.addMsg.PresentFXGrade = 0
}
......@@ -1877,10 +1149,10 @@
this.addMsg.MarketingLogo.wordsBack = '';
}
this.addMsg.MarketingLogo = JSON.stringify(this.addMsg.MarketingLogo)
this.apipost("/api/product/SetProductGoodsInfo", this.addMsg, res => {
this.apipost("/api/GuideCar/SetGoodsInfo", this.addMsg, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.CommonJump("goodsList");
this.CommonJump("directorGoodsList");
} else {
this.Error(res.data.message);
}
......@@ -1949,17 +1221,8 @@
this.addMsg.FormsId = val.Id;
this.addMsg.FormsName = val.Name;
},
YfSelect(val) {
this.addMsg.FreightId = val.ID;
this.addMsg.FreightName = val.RulesName;
},
ServiceCheck(item, index) {
this.addMsg.ServiceList.forEach((list, k) => {
if (list.Id == item.Id) {
this.addMsg.ServiceList.splice(k, 1);
}
});
},
clearCustom() {
this.addMsg.CustomShareImage = "";
this.addMsg.CustomShareImagePath = "";
......@@ -1971,9 +1234,7 @@
ClearCarouse(index) {
this.addMsg.CarouselImageList.splice(index, 1);
},
DeleteImageUrl(item, index, item2, index2) {
this.SpecificationList[index].SpecificationValueList[index2].Image = "";
},
openggImg(item, index, item2, index2) {
this.changeState = true;
this.imgType = 3;
......@@ -2090,7 +1351,7 @@
},
getData() {
this.apipost(
"/api/product/GetProductGoodsInfo", {
"/api/GuideCar/GetGoodsInfo", {
GoodsId: this.GoodsId
},
res => {
......@@ -2103,12 +1364,8 @@
if (!this.$route.query.GoodsId) {
this.addMsg.Id = 0
}
if (this.addMsg.LimitBuyGoodsNum != -1) {
this.BuyGoodsNumState = false
}
if (this.addMsg.LimitBuyOrderNum != -1) {
this.BuyOrderNumState = false
}
this.initShareSettings();
this.SpecificationPriceList = this.addMsg.SpecificationPriceList;
this.ComTreeList = this.addMsg.DistributionCommissionTreeList;
......@@ -2131,7 +1388,6 @@
};
this.disList1.push(objNew);
if (this.addMsg.GoodsDetails && this.addMsg.GoodsDetails != "") {
// this.$refs.ue.SetVal(this.addMsg.GoodsDetails);
this.defaultMsg = this.addMsg.GoodsDetails;
}
this.NewCategoryList = [];
......@@ -2165,7 +1421,7 @@
}
);
},
getSuggestPrice() {
getSuggestPrice() {//获取和平分销商品建议价格
if (this.hpState == 1 && Number(this.addMsg.CostPrice) > 0) {
let arr = [];
this.addMsg.CategoryList.forEach(item => {
......@@ -2197,21 +1453,7 @@
}
});
},
getService() {
let msg = {
pageIndex: 1,
pageSize: 200,
Name: "",
IsDefault: 0
};
this.apipost("/api/product/GetProductServicePageList", msg, res => {
if (res.data.resultCode == 1) {
this.total = res.data.data.count;
let pageData = res.data.data.pageData;
this.serviceList = pageData;
}
});
},
getDistributor() {
this.loading = true;
this.apipost("/api/user/GetDistributorBasicsInfo", {}, res => {
......@@ -2298,11 +1540,36 @@
this.disList1.push(objNew);
}
this.skuList = [];
this.getSkuData([], 0, this.SpecificationList);
}
});
},
changeSupplier(val) {},
changeSupplier(val) {
},
addGgz(){
let obj= {Name:''}
this.addMsg.LineDescriptionList.push(obj)
},
Deleteggz(index){
this.addMsg.LineDescriptionList.splice(index,1)
},
changeSiteId(val){
this.getGuideCarGuideList(val)//导游下拉
this.addMsg.GuideId=''
},
changeCarId(val){
this.CarList.forEach(x=>{
if(x.ID == val){
this.CarColorList=x.ColorList
}
})
},
changeCarColorList(val){
console.log(val)
},
changeEnumList(val){
this.EnumType = val
},
getSupplierList() {
this.apipost("/api/Supplier/GetSupplierAllList", {}, res => {
this.loading = false;
......@@ -2333,7 +1600,37 @@
}
});
},
getFXDGradeList2() {
getAllGuideCarSiteList(){//获取站点下拉
this.apipost("/api/GuideCar/GetAllGuideCarSiteList", {}, res => {
if (res.data.resultCode == 1) {
this.SiteList = res.data.data
}
});
},
getGuideCarList(){
this.apipost("/api/GuideCar/GetGuideCarList", {}, res => {
if (res.data.resultCode == 1) {
this.CarList = res.data.data
}
});
},
getOrderListExportEnumList(){//获取服务类型枚举列表
this.apipost("/api/GuideCar/GetOrderListExportEnumList", {}, res => {
if (res.data.resultCode == 1) {
this.EnumList = res.data.data
console.log(this.EnumList)
}
});
},
getGuideCarGuideList(ID){
this.apipost("/api/GuideCar/GetGuideCarGuideList", {SiteId:ID}, res => {
if (res.data.resultCode == 1) {
this.GuideList = res.data.data
}
});
},
getFXDGradeList2() {//获取粉象等级下拉列表
this.apipost("/api/user/GetFXDistributorGradeList", {
GradeName: ''
......@@ -2363,17 +1660,6 @@
} else {
this.giveDate = true;
}
// this.FXlevelList.forEach(x=>{
// if(x.Id== this.addMsg.PresentFXGrade){
// if(x.IsGuest==3){
// this.giveDate=true;
// this.addMsg.PresentFXMonth=1;
// }else{
// this.giveDate=false;
// this.addMsg.PresentFXMonth=0;
// }
// }
// })
}
}
};
......@@ -2458,7 +1744,7 @@
border: 1px solid #ebeef5;
}
.directorGoodsEdit .app-attr-group .close {
.directorGoodsEdit .close {
position: absolute;
top: -4px;
right: -4px;
......@@ -2466,7 +1752,7 @@
cursor: pointer;
}
.directorGoodsEdit .app-attr-group .attr-list {
.directorGoodsEdit .attr-list {
display: inline-block;
margin-right: 10px;
margin-bottom: 10px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment