Commit 77e3c481 by 肖康

x

parent 3066a5fa
Showing with 88 additions and 6 deletions
......@@ -19,7 +19,7 @@
<p v-if="itemchild.class_id2_name">分类:{{itemchild.class_id2_name}}</p>
<p>制造商:{{itemchild.brand_name}}</p>
<p v-if="itemchild.encap">封装:{{itemchild.encap}}</p>
<p :class="{'hidex':!(itemchild.self_supplier_type==2&&(itemchild.stock|numberCode)==0)}">
<p v-if="itemchild.isLcKc0">
库存:
<span>可订货</span>
(
......@@ -28,7 +28,7 @@
{{itemchild.goods_unit_name}}
)
</p>
<p :class="{'hidex':(itemchild.self_supplier_type==2&&(itemchild.stock|numberCode)==0)}">
<p v-else>
库存:
<span v-html="itemchild.stock"></span>
(
......@@ -126,6 +126,7 @@
<script>
import Vue from "vue";
import { Lazyload } from "vant";
import util from "../../util/index";
import bus from "../../util/bus.js";
Vue.use(Lazyload);
export default {
......@@ -149,8 +150,26 @@ export default {
defaultBtn: '更多梯度价格<i class="icon-bot"></i>'
};
},
watch: {},
mounted() {},
created(){
},
watch: {
dataList(res){
for(var i=0;i<res.length;i++){
//处理力创数据库存为0
if(util.aggxde(res[i].stock)==0&&res[i].self_supplier_type==2){
res[i].isLcKc0=true;
}else{
res[i].isLcKc0=false;
}
}
}
},
mounted() {
},
methods: {
priceRow: function(index, id) {
let dom = document.getElementById("priceContent" + id);
......
......@@ -50,11 +50,11 @@
v-html="(goodDetail.min_mpq?goodDetail.min_mpq:'0')+goodDetail.goods_unit_name"
></span>
</li>
<li class="fl" :class="{'hidex':!(goodDetail.self_supplier_type==2&&(goodDetail.goods_number|numberCode)==0)}">
<li class="fl" v-if="goodDetail.isLcKc0">
<b class>库存</b>
<span>可订货</span>
</li>
<li class="fl" :class="{'hidex':(goodDetail.self_supplier_type==2&&(goodDetail.goods_number|numberCode)==0)}">
<li class="fl" v-else>
<b class>库存</b>
<font class="f-orange" v-html="goodDetail.goods_number?goodDetail.goods_number:'0'"></font>
{{goodDetail.goods_unit_name}}
......@@ -243,6 +243,15 @@ export default {
}
},
watch: {
goodDetail(res){
//处理力创数据库存为0
if(util.aggxde(res[i].stock)==0&&res[i].self_supplier_type==2){
res[i].isLcKc0=true;
}else{
res[i].isLcKc0=false;
}
},
ypNum(now) {
if (String(now).indexOf(".") > 0) this.ypNum = "";
this.ypNum = String(now).replace(/\D/g, "");
......
This diff is collapsed. Click to expand it.
{"h":"7537356d71fdaa6903f6","c":{"1":false}}
\ No newline at end of file
{"h":"3aaa15500d54806cca5b","c":{"3":true}}
\ No newline at end of file
{"h":"f0217737f292d74a813c","c":{"0":false}}
\ No newline at end of file
{"h":"57fc377436790ce7f41a","c":{"3":true}}
\ No newline at end of file
{"h":"fe7a135baf6c45464757","c":{"1":false}}
\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
{"h":"14dce13ef256a0055ae9","c":{}}
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"6b58fda79756fc9d6103","c":{"3":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
{"h":"21462374cef16cd68c60","c":{"3":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
{"h":"1170fd209dd995871e9f","c":{"3":true}}
\ No newline at end of file
{"h":"82e14d499d0faf1b9e72","c":{"3":true}}
\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
{"h":"32f7723d429f83b8c451","c":{"3":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
{"h":"9e079ad49c8eb96af97e","c":{"0":false}}
\ No newline at end of file
This diff is collapsed. Click to expand it.
{"h":"599dd0c4864bd940d4a6","c":{"0":false}}
\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
{"h":"d8aaece2eb57c2a5903f","c":{"0":false}}
\ No newline at end of file
{"h":"b2837473efc31415814a","c":{"1":false}}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
{"h":"06203fee77da15c91bc7","c":{"3":true}}
\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
{"h":"efc711dc1ac3f3bc6250","c":{"23":true}}
\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
{"h":"cad66a614ab5eea4196b","c":{"3":true}}
\ No newline at end of file
{"h":"7a11f46b478676611e64","c":{"app":true}}
\ No newline at end of file
{"h":"a7710838150a3b410a95","c":{"1":false}}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
{"h":"8ebee648775a7f43e8dc","c":{"3":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
{"h":"00b53bb63f32cc7cd8b0","c":{"0":false}}
\ No newline at end of file
{"h":"c5a4910e5c73d8f785ba","c":{"3":true}}
\ No newline at end of file
{"h":"e84ebafd95d784dd6224","c":{"3":true}}
\ No newline at end of file
{"h":"f896670304b545207505","c":{"0":false}}
\ No newline at end of file
{"h":"a0a4ee4fe3b211eece25","c":{}}
\ No newline at end of file
{"h":"dac01ba6743c97ff8eab","c":{"1":false}}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
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 sign in to comment