提交 0080bad0 编写于 作者: zhangzhiwei's avatar zhangzhiwei

.

上级 a2922d3c
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport><link rel=icon type=image/x-icon href=./static/favicon.ico><link rel=stylesheet href=//at.alicdn.com/t/font_1586872_yhll0m2jcs.css><title>E淘供货商</title><link href=/static/css/app.61a1c84465019ded16d4aa014961dc4e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.f8521be88ba303d03ddf.js></script><script type=text/javascript src=/static/js/vendor.02a8d01969b52bb78b9a.js></script><script type=text/javascript src=/static/js/app.dfcefe57a10ba583abd2.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport><link rel=icon type=image/x-icon href=./static/favicon.ico><link rel=stylesheet href=//at.alicdn.com/t/font_1586872_yhll0m2jcs.css><title>E淘供货商</title><link href=/static/css/app.dd9904fb821b676818eac8edf817d723.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.411fc796e91a53bd6ce0.js></script><script type=text/javascript src=/static/js/vendor.02a8d01969b52bb78b9a.js></script><script type=text/javascript src=/static/js/app.4b2c6164a0f24d0d12d8.js></script></body></html>
\ No newline at end of file \ No newline at end of file
此差异已折叠。
此差异已折叠。
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s<r.length;s++)u=r[s],t[u]&&l.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=o(o.s=a[s]);return f};var r={},t={6:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"66a87bf7ecd2fcbaae3b",3:"ca2708494961454b4374",4:"c569c81ffe41d4800bf8",5:"cb7f3344fd930f577a5c"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/",o.oe=function(e){throw console.error(e),e}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s<r.length;s++)u=r[s],t[u]&&l.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=o(o.s=a[s]);return f};var r={},t={6:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"0d853226043309eb903c",3:"ca2708494961454b4374",4:"c569c81ffe41d4800bf8",5:"cb7f3344fd930f577a5c"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
localStorage.setItem('priceformulaId',data.priceformulaId||null) localStorage.setItem('priceformulaId',data.priceformulaId||null)
localStorage.setItem('actSw',data.actSw) localStorage.setItem('actSw',data.actSw)
localStorage.setItem('allowCustomActDate',data.allowCustomActDate||null) localStorage.setItem('allowCustomActDate',data.allowCustomActDate||null)
localStorage.setItem('isCustomPriceMode',data.isCustomPriceMode||0)
} }
}) })
}, },
......
...@@ -207,6 +207,20 @@ ...@@ -207,6 +207,20 @@
</div> </div>
</div> </div>
</div> </div>
<div class="m_t_20 m_b_20" style="font-size: 18px;font-weight: bold" v-if="isCustomPriceMode==1">
自定义价格模式<el-tooltip placement="top">
<div slot="content">
自定义价格模式:可以设置商品的供货价、批发价、优惠价、零售价
</div>
<span style="margin-left: 10px;margin-right: 20px"><i style="color: #ff6600" class="el-icon-question"></i></span>
</el-tooltip>
<el-switch
:active-value="1"
:inactive-value="0"
v-model="isCustomPriceModeS"
>
</el-switch>
</div>
<div class="m_t_20 m_b_20"> <div class="m_t_20 m_b_20">
商品SKU设置 商品SKU设置
<span class="f_14 f_c_disable form_tip">SKU图必须为高清无底图,推荐图片像素为800*800PX, 大小不可超过512k,格式为png</span> <span class="f_14 f_c_disable form_tip">SKU图必须为高清无底图,推荐图片像素为800*800PX, 大小不可超过512k,格式为png</span>
...@@ -323,7 +337,7 @@ ...@@ -323,7 +337,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="purchasePrice" label="采购价" width="120" v-if="!priceformulaId&&false"> <el-table-column prop="purchasePrice" label="批发价" width="120" v-if="isCustomPriceModeS==1">
<!-- <template slot="header" slot-scope="scope"> <!-- <template slot="header" slot-scope="scope">
<el-tooltip placement="top" effect="light" v-if="pifaTip"> <el-tooltip placement="top" effect="light" v-if="pifaTip">
<div slot="content"> <div slot="content">
...@@ -333,9 +347,21 @@ ...@@ -333,9 +347,21 @@
</el-tooltip> </el-tooltip>
<div v-else>采购价</div> <div v-else>采购价</div>
</template> --> </template> -->
<template slot="header" slot-scope="slot">
<el-tooltip class="item" placement="top">
<div slot="content">
批发价:是指经销商购买的价格<br/>
优惠价:是指消费者购买的结算价<br/>
零售价:是指消费者看到的商品划线价<br/>
锁定价格:所有系统看到的优惠价、零售价都与填写的价格一致
</div>
<span><i style="color: #ff6600;font-size: 18px" class="el-icon-question"></i>&nbsp&nbsp批发价&nbsp<i @click="Lock" style="color: #575758;font-size: 18px;cursor: pointer" :class="isPriceLock==1?'el-icon-lock':'el-icon-unlock'"></i>
</span>
</el-tooltip>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
<!--:disabled="hasFormula?true:false"--> <!--:disabled="hasFormula?true:false"-->
<el-input v-model.trim="scope.row.purchasePrice" placeholder="采购价" <el-input v-model.trim="scope.row.purchasePrice" placeholder="批发价"
> >
<i slot="prefix" class="iconfont iconrenminbi1 f_12 l_h_32 p_l_5"></i> <i slot="prefix" class="iconfont iconrenminbi1 f_12 l_h_32 p_l_5"></i>
</el-input> </el-input>
...@@ -343,7 +369,7 @@ ...@@ -343,7 +369,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="salePrice" label="优惠价" width="120" v-if="!priceformulaId&&false"> <el-table-column prop="salePrice" label="优惠价" width="120" v-if="isCustomPriceModeS==1">
<!-- <template slot="header" slot-scope="scope"> <!-- <template slot="header" slot-scope="scope">
<el-tooltip placement="top" effect="light" v-if="youhuiTip"> <el-tooltip placement="top" effect="light" v-if="youhuiTip">
<div slot="content"> <div slot="content">
...@@ -353,6 +379,12 @@ ...@@ -353,6 +379,12 @@
</el-tooltip> </el-tooltip>
<div v-else>优惠价</div> <div v-else>优惠价</div>
</template> --> </template> -->
<template slot="header" slot-scope="slot">
<span>优惠价&nbsp<i
@click="Lock" style="color: #575758;font-size: 18px;cursor: pointer"
:class="isPriceLock==1?'el-icon-lock':'el-icon-unlock'"></i>
</span>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
<!--:disabled="hasFormula?true:false"--> <!--:disabled="hasFormula?true:false"-->
<el-input <el-input
...@@ -364,7 +396,7 @@ ...@@ -364,7 +396,7 @@
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="productPrice" label="零售价" width="120" v-if="!priceformulaId&&false"> <el-table-column prop="productPrice" label="零售价" width="120" v-if="isCustomPriceModeS==1">
<!-- <template slot="header" slot-scope="scope"> <!-- <template slot="header" slot-scope="scope">
<el-tooltip placement="top" effect="light" v-if="lingshouTip"> <el-tooltip placement="top" effect="light" v-if="lingshouTip">
<div slot="content"> <div slot="content">
...@@ -834,6 +866,9 @@ export default { ...@@ -834,6 +866,9 @@ export default {
} }
}; };
return { return {
isPriceLock:0,
isCustomPriceModeS:0,
isCustomPriceMode:0,
priceformulaId:null, priceformulaId:null,
beforeArr:[],//批量上传顺序 beforeArr:[],//批量上传顺序
isDetails:false, isDetails:false,
...@@ -898,6 +933,7 @@ export default { ...@@ -898,6 +933,7 @@ export default {
inputNewValueVisible: {}, //新增参数 inputNewValueVisible: {}, //新增参数
skuListInit: { skuListInit: {
isPriceLock:0,
"specs": [], "specs": [],
"mainImg": "", "mainImg": "",
"model": "", "model": "",
...@@ -958,11 +994,19 @@ export default { ...@@ -958,11 +994,19 @@ export default {
} }
}, },
mounted() { mounted() {
this.isCustomPriceMode = _getStorage('isCustomPriceMode')
this.priceformulaId = _getStorage('priceformulaId') this.priceformulaId = _getStorage('priceformulaId')
this.init() this.init()
window.addEventListener('scroll', this.dataScroll,true); window.addEventListener('scroll', this.dataScroll,true);
}, },
methods: { methods: {
Lock(){
if(this.isPriceLock==1){
this.isPriceLock=0
}else {
this.isPriceLock=1
}
},
loadingStart(tx){ loadingStart(tx){
this.loading = this.$loading({ this.loading = this.$loading({
lock: true, lock: true,
...@@ -1003,9 +1047,9 @@ export default { ...@@ -1003,9 +1047,9 @@ export default {
let { code, data,msg,message} = r.data let { code, data,msg,message} = r.data
if(code == 200){ if(code == 200){
row.supplyPrice = this.inputSupplyPrice row.supplyPrice = this.inputSupplyPrice
row.purchasePrice = data.purchasePrice; // row.purchasePrice = data.purchasePrice;
row.salePrice = data.salePrice; // row.salePrice = data.salePrice;
row.productPrice = data.productPrice; // row.productPrice = data.productPrice;
// this.$message.success('自动计算成功'); // this.$message.success('自动计算成功');
}else{ }else{
this.$message.error(msg || message); this.$message.error(msg || message);
...@@ -1134,6 +1178,7 @@ export default { ...@@ -1134,6 +1178,7 @@ export default {
}}).then(r => { }}).then(r => {
let { code, data } = r.data let { code, data } = r.data
if(code == 200){ if(code == 200){
this.isCustomPriceModeS=data.isCustomPriceMode
this.editJson = data this.editJson = data
// this.baseJson = { ...this.baseJson, ...data} //编辑源数据 // this.baseJson = { ...this.baseJson, ...data} //编辑源数据
// console.log(this.baseJson) // console.log(this.baseJson)
...@@ -1247,7 +1292,7 @@ export default { ...@@ -1247,7 +1292,7 @@ export default {
}) })
this.specsData = specs this.specsData = specs
console.log(this.skuList,'this.skuList');
} }
}) })
.catch(r => console.log(r)); .catch(r => console.log(r));
...@@ -2030,6 +2075,8 @@ export default { ...@@ -2030,6 +2075,8 @@ export default {
postUrl = '/products/sdAdd' postUrl = '/products/sdAdd'
} }
// 提交数据 // 提交数据
baseJson.isCustomPriceMode=this.isCustomPriceModeS
baseJson.isPriceLock=this.isPriceLock
this.$axios.post(postUrl,baseJson).then(r => { this.$axios.post(postUrl,baseJson).then(r => {
let {code, data, msg,message} = r.data let {code, data, msg,message} = r.data
if(code == 200){ if(code == 200){
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<!--<div class="actHead" @click="dialogVisible=true" style="cursor: pointer">--> <!--<div class="actHead" @click="dialogVisible=true" style="cursor: pointer">-->
<!--查看活动规则--> <!--查看活动规则-->
<!--</div>--> <!--</div>-->
<el-button type="primary" @click="goback" v-if="showUpdateBtn"> <el-button type="primary" @click="goback" v-if="!showUpdateBtn">
添加活动商品 添加活动商品
</el-button> </el-button>
</div> </div>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册