Commit 261031da authored by 黄媛媛's avatar 黄媛媛

update

parent 63d544e7
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</el-switch> </el-switch>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="save('addMsg')" type="primary" style="margin:0 10px;" size="small">一键导入</el-button> <el-button :loading="loading" @click="save('addMsg')" type="primary" style="margin:0 10px;" size="small">一键导入</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -163,6 +163,7 @@ export default { ...@@ -163,6 +163,7 @@ export default {
importFileUrl: this.domainManager().UploadFileUrl, importFileUrl: this.domainManager().UploadFileUrl,
dataId:0, dataId:0,
loading:false,
} }
}, },
created(){ created(){
...@@ -184,8 +185,9 @@ export default { ...@@ -184,8 +185,9 @@ export default {
this.CategoryList.forEach(item=>{ this.CategoryList.forEach(item=>{
this.addMsg.CategoryList.push(item.Id); this.addMsg.CategoryList.push(item.Id);
}) })
this.loading=true;
this.apipost("/api/product/SetGoodsBatchImport", this.addMsg, res => { this.apipost("/api/product/SetGoodsBatchImport", this.addMsg, res => {
this.loading=false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message) this.Success(res.data.message)
this.addMsg={ this.addMsg={
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<el-tooltip class="item" effect="dark" content="建议尺寸420*336" placement="top"> <el-tooltip class="item" effect="dark" content="建议尺寸420*336" placement="top">
<el-button @click="openChangeDig(2)" size="small">选择图片</el-button> <el-button @click="openChangeDig(2)" size="small">选择图片</el-button>
</el-tooltip> </el-tooltip>
<div class="app-gallery-item" style="position: relative;width: 100px;margin-top: 10px;"> <div class="app-gallery-item" style="position: relative;width: 100px;margin-top: 10px;border:none">
<img v-if="!addMsg.CustomShareImage || addMsg.CustomShareImage==''" <img v-if="!addMsg.CustomShareImage || addMsg.CustomShareImage==''"
src="../../assets/img/default.png" style="width:80px;height:80px" alt=""> src="../../assets/img/default.png" style="width:80px;height:80px" alt="">
<el-button @click="clearCustom" style="position: absolute;right: 6px;top: -10px;" <el-button @click="clearCustom" style="position: absolute;right: 6px;top: -10px;"
...@@ -201,9 +201,8 @@ ...@@ -201,9 +201,8 @@
</div> </div>
<div flex="dir:left" style="padding: 0px 10px;margin-top: 16px;"> <div flex="dir:left" style="padding: 0px 10px;margin-top: 16px;">
<div class="box-grow-0">规格值:</div> <div class="box-grow-0">规格值:</div>
<div v-for="(item2,index2) in item.SpecificationValueList" :key="index2" flex="dir:left" <div flex="dir:left" style="flex-wrap: wrap;">
style="flex-wrap: wrap;"> <div v-for="(item2,index2) in item.SpecificationValueList" :key="index2" class="attr-list">
<div class="attr-list">
<el-input @input="ggzChange" size="mini" v-model="item2.Name" width="152px"></el-input> <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> <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" <div v-if="index==0 && item.EnabledImage==1" flex="cross:center main:center"
...@@ -225,9 +224,9 @@ ...@@ -225,9 +224,9 @@
</div> </div>
</div> </div>
</div> </div>
</div> <div>
<div flex="dir:left" style="flex-wrap: wrap;"> <span @click="addGgz(item,index)" class="blue f12">添加规格值</span>
<span @click="addGgz(item,index)" class="blue f12">添加规格值</span> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -1642,6 +1641,7 @@ ...@@ -1642,6 +1641,7 @@
} }
this.butorIntList.push(msg) this.butorIntList.push(msg)
} }
console.log("butorIntList",this.butorIntList)
this.GetDropdownList(); this.GetDropdownList();
} }
...@@ -1682,7 +1682,7 @@ ...@@ -1682,7 +1682,7 @@
} }
}) })
this.DropdownList = JSON.parse(JSON.stringify(this.DropdownList)); this.DropdownList = JSON.parse(JSON.stringify(this.DropdownList));
if (!this.$route.query.GoodsId) { if (!this.$route.query.GoodsId || this.addMsg.DistributionCommissionTreeList.length==0) {
this.GradeCommissionList = []; this.GradeCommissionList = [];
this.DropdownList.forEach(item => { this.DropdownList.forEach(item => {
let obj2 = { let obj2 = {
...@@ -1695,6 +1695,7 @@ ...@@ -1695,6 +1695,7 @@
this.GradeCommissionList.push(obj2); this.GradeCommissionList.push(obj2);
}) })
this.GradeCommissionList = JSON.parse(JSON.stringify(this.GradeCommissionList)) this.GradeCommissionList = JSON.parse(JSON.stringify(this.GradeCommissionList))
console.log("this.GradeCommissionList",this.GradeCommissionList)
this.disList1 = []; this.disList1 = [];
let objNew = { let objNew = {
SpecificationSort: '', SpecificationSort: '',
...@@ -1843,7 +1844,7 @@ ...@@ -1843,7 +1844,7 @@
position: absolute; position: absolute;
right: -8px; right: -8px;
top: -8px; top: -8px;
padding: 4px 4px; padding: 4px 4px!important;
} }
.goodsListEdit .add-image-btn { .goodsListEdit .add-image-btn {
......
...@@ -16,11 +16,8 @@ ...@@ -16,11 +16,8 @@
</el-option> </el-option>
</el-select> </el-select>
<el-select class="w100" style="margin-right: 10px;" v-model="value" size="small" placeholder="请选择"> <el-select class="w100" style="margin-right: 10px;" v-model="value" size="small" placeholder="请选择">
<el-option <el-option label="全部平台" :value="0"></el-option>
v-for="item in options" <el-option v-for="item in platList" :key="item.Id" :label="item.Name" :value="item.Id">
:key="item.value"
:label="item.label"
:value="item.value">
</el-option> </el-option>
</el-select> </el-select>
<div class="searchInput"> <div class="searchInput">
...@@ -140,12 +137,12 @@ ...@@ -140,12 +137,12 @@
{ required: true, message: '新手机号', trigger: 'blur' } { required: true, message: '新手机号', trigger: 'blur' }
], ],
}, },
platList:[],
}; };
}, },
created() { created() {
this.getplat();
}, },
methods: { methods: {
handleCurrentChange(val) { handleCurrentChange(val) {
...@@ -155,6 +152,11 @@ ...@@ -155,6 +152,11 @@
getList(){ getList(){
}, },
getplat() {
this.apipost("/api/user/GetMemberUserSourceEnumList", {}, res => {
this.platList = res.data.data;
})
},
}, },
mounted() { mounted() {
......
...@@ -41,10 +41,10 @@ ...@@ -41,10 +41,10 @@
</el-step> </el-step>
</template> </template>
<template> <template>
<el-step v-if="activeStep>4" title="已结束" icon="el-icon-edit" description="2020-05-13 16:36:11"> <el-step v-if="activeStep>4" title="已结束" icon="el-icon-edit" :description="dataInfo.FinishTime">
<i :class="activeStep>4?'step05Active':'step05'" slot="icon"></i> <i :class="activeStep>4?'step05Active':'step05'" slot="icon"></i>
</el-step> </el-step>
<el-step v-else title="未结束" icon="el-icon-edit" description="2020-05-13 16:36:11"> <el-step v-else title="未结束" icon="el-icon-edit">
<i :class="activeStep==5?'step05Active':'step05'" slot="icon"></i> <i :class="activeStep==5?'step05Active':'step05'" slot="icon"></i>
</el-step> </el-step>
</template> </template>
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-card shadow="never"> <el-card style="margin-top:15px" shadow="never">
<el-table border :data="dataInfo.DetailList" style="width: 100%"> <el-table border :data="dataInfo.DetailList" style="width: 100%">
<el-table-column prop="Id" label="商品标题"> <el-table-column prop="Id" label="商品标题">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -208,21 +208,29 @@ ...@@ -208,21 +208,29 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="name" label="规格" width="200"> <el-table-column prop="name" label="规格" width="200" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :key="index2" v-for="(list,index2) in scope.row.SpecificationList" style="top: 5px;position: relative;margin-right: 5px; max-width: 300px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" size="mini"> <el-tag :key="index2" v-for="(list,index2) in scope.row.SpecificationList" style="top: 5px;position: relative;margin-right: 5px; max-width: 300px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" size="mini">
{{list}} {{list}}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="Unit_Price" label="单价" width="120"> <el-table-column prop="Unit_Price" label="单价" width="120" align="center">
<template slot-scope="scope">
{{scope.row.Unit_Price}}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="Number" label="数量" width="80"> <el-table-column prop="Number" label="数量" width="80" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="Original_Price" label="原价" width="120"> <el-table-column prop="Original_Price" label="原价" width="120" align="center">
<template slot-scope="scope">
{{scope.row.Original_Price}}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="Final_Price" label="折扣后" width="120"> <el-table-column prop="Final_Price" label="折扣后" width="120" align="center">
<template slot-scope="scope">
{{scope.row.Final_Price}}
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-form label-width="200px" class="app-order-count-price"> <el-form label-width="200px" class="app-order-count-price">
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
:multiple="true" :multiple="true"
:on-success="successUpload" :on-success="successUpload"
:show-file-list="false" :show-file-list="false"
accept=".csv, .xlsx,.xls"> accept=".csv">
<el-button size="small" type="primary"> <el-button :loading="btnLoad" size="small" type="primary">
批量导入</el-button> 赞羊导入</el-button>
</el-upload> </el-upload>
<el-button @click="dialogVisible=true" style="float:right;margin-top: -5px;" size="small" type="primary">批量导出 <el-button @click="dialogVisible=true" style="float:right;margin-top: -5px;" size="small" type="primary">批量导出
</el-button> </el-button>
...@@ -26,21 +26,21 @@ ...@@ -26,21 +26,21 @@
value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始日期" end-placeholder="结束日期"> value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始日期" end-placeholder="结束日期">
</el-date-picker> </el-date-picker>
<span style="margin-left:15px">所属平台:</span> <span style="margin-left:15px">所属平台:</span>
<el-select class="w120" @change="getList" style="margin-right: 10px;" v-model="msg.OrderSource" size="small" <el-select class="w120" @change="getList" v-model="msg.OrderSource" size="small"
placeholder="请选择"> placeholder="请选择">
<el-option label="全部平台" :value="0"></el-option> <el-option label="全部平台" :value="0"></el-option>
<el-option v-for="item in platList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in platList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
<span style="margin-left:15px">订单类型:</span> <span style="margin-left:15px">订单类型:</span>
<el-select class="w120" @change="getList" style="margin-right: 10px;" v-model="msg.OrderType" size="small" <el-select class="w120" @change="getList" v-model="msg.OrderType" size="small"
placeholder="请选择"> placeholder="请选择">
<el-option label="全部订单" :value="0"></el-option> <el-option label="全部订单" :value="0"></el-option>
<el-option v-for="item in orderTypeList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in orderTypeList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
<span style="margin-left:15px">配送方式:</span> <span style="margin-left:15px">配送方式:</span>
<el-select class="w120" @change="getList" style="margin-right: 10px;" v-model="msg.DeliveryMethod" size="small" <el-select class="w120" @change="getList" v-model="msg.DeliveryMethod" size="small"
placeholder="请选择"> placeholder="请选择">
<el-option label="全部订单" :value="0"></el-option> <el-option label="全部订单" :value="0"></el-option>
<el-option v-for="item in deliveryList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in deliveryList" :key="item.Id" :label="item.Name" :value="item.Id">
...@@ -156,8 +156,8 @@ ...@@ -156,8 +156,8 @@
<div flex="dir:top"> <div flex="dir:top">
<div> <div>
<span style="font-size: 16px;">{{item.Income}}</span> <span style="font-size: 16px;">{{item.Income}}</span>
<el-popover placement="top-start" title="标题" width="200" trigger="hover" <el-popover placement="bottom" width="200" trigger="hover"
:content="'商品小计 '+ item.Income"> :content="'商品小计 '+ item.Income +'元'" >
<img slot="reference" src="../../assets/img/userman/price.png" alt=""> <img slot="reference" src="../../assets/img/userman/price.png" alt="">
</el-popover> </el-popover>
</div> </div>
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
class="el-button el-button--text is-circle"><i class="el-icon-edit"></i></button> class="el-button el-button--text is-circle"><i class="el-icon-edit"></i></button>
</div> </div>
</div> </div>
<div v-if="item.Remark!=''" class="seller-remark">商家备注:{{item.Remark}}</div> <div v-if="item.Remark && item.Remark!=''" class="seller-remark">商家备注:{{item.Remark}}</div>
</div> </div>
</el-card> </el-card>
<el-card v-if="tableData.length==0" class="app-order-item" shadow="never"> <el-card v-if="tableData.length==0" class="app-order-item" shadow="never">
...@@ -582,6 +582,7 @@ ...@@ -582,6 +582,7 @@
moresendtips: '', moresendtips: '',
hszDig: false, hszDig: false,
hszMsg: {}, hszMsg: {},
btnLoad:false,
} }
}, },
created() { created() {
...@@ -605,7 +606,9 @@ ...@@ -605,7 +606,9 @@
methods: { methods: {
successUpload(file){ successUpload(file){
let path=file.data.Path; let path=file.data.Path;
this.btnLoad=true;
this.apipost("/api/order/SetGoodsOrderBatchImport", {FilePath:path}, res => { this.apipost("/api/order/SetGoodsOrderBatchImport", {FilePath:path}, res => {
this.btnLoad=false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message) this.Success(res.data.message)
}else{ }else{
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-card shadow="never"> <el-card style="margin-top:15px" shadow="never">
<el-table border :data="DetailList" style="width: 100%"> <el-table border :data="DetailList" style="width: 100%">
<el-table-column prop="Id" label="商品标题"> <el-table-column prop="Id" label="商品标题">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="name" label="规格" width="200"> <el-table-column prop="name" label="规格" width="200" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :key="index2" v-for="(list,index2) in scope.row.SpecificationList" style="top: 5px;position: relative;margin-right: 5px; max-width: 300px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" size="mini"> <el-tag :key="index2" v-for="(list,index2) in scope.row.SpecificationList" style="top: 5px;position: relative;margin-right: 5px; max-width: 300px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" size="mini">
{{list}} {{list}}
...@@ -116,13 +116,22 @@ ...@@ -116,13 +116,22 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="Unit_Price" label="单价" width="120"> <el-table-column prop="Unit_Price" label="单价" width="120" align="center">
<template slot-scope="scope">
{{scope.row.Unit_Price}}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="Number" label="数量" width="80"> <el-table-column prop="Number" label="数量" width="80" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="Original_Price" label="原价" width="120"> <el-table-column prop="Original_Price" label="原价" width="120" align="center">
<template slot-scope="scope">
{{scope.row.Original_Price}}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="Final_Price" label="折扣后" width="120"> <el-table-column prop="Final_Price" label="折扣后" width="120" align="center">
<template slot-scope="scope">
{{scope.row.Final_Price}}
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-form label-width="200px" class="app-order-count-price"> <el-form label-width="200px" class="app-order-count-price">
......
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