Commit 2ea13ed6 authored by home's avatar home

zxf

parent 3e7bcfa1
......@@ -13,7 +13,7 @@
<input class="input flex1" type="text" v-model="" value="" placeholder-class="plclass" placeholder="请填写产品名称" />
</view>
</view> -->
<view class="noecellbox">
<view class="noecellbox" >
<view class="title" >关联产品 </view>
<view class="inputbox flex">
<picker mode="multiSelector" :value="classDataValue" :range="classData" @change="bindData" @columnchange="columnbindData">
......@@ -22,7 +22,7 @@
</view>
</view>
<view class="noecellbox">
<view class="noecellbox" :hidden="linkage_product_id == 0 " >
<view class="title" >产品规格(kg或个) </view>
<view class="inputbox flex">
<input class="input flex1" type="text" value="" v-model="form.specifications" placeholder-class="plclass" placeholder="请填写产品规格" />
......@@ -345,7 +345,7 @@
linkage_id:'',
is_datashow:true,
bools:'',
linkage_product_id:'',
linkage_product_id:0,
classValue:'',
ordinary :[],
weigh :[],
......@@ -564,6 +564,7 @@
if(that.ordinary.length != 0){
that.linkage_id = that.ordinary[e.detail.value[1]].product_id
// that.product_id = that.ordinary[e.detail.value[1]].product_id
that.linkage_product_id = that.linkage_id
that.classValue = that.ordinary[e.detail.value[1]].product_name
}else{AZ
uni.showToast({
......@@ -577,6 +578,7 @@
if(that.weigh.length != 0){
that.linkage_id = that.weigh[e.detail.value[1]].product_id
// that.product_id = that.weigh[e.detail.value[1]].product_id
that.linkage_product_id = that.linkage_id
that.classValue = that.weigh[e.detail.value[1]].product_name
}else{
uni.showToast({
......@@ -586,7 +588,7 @@
return false;
}
}
that.eleProductInfofun(that.linkage_id);
that.eleProductInfofun(that.linkage_id,2);
this.is_datashow = false;
console.log(this.is_datashow)
......@@ -783,7 +785,7 @@
},
//修改的时候赋初始值
async eleProductInfofun(product_id){
async eleProductInfofun(product_id,second=1){
let that=this;
let res = await eleProductInfo({
product_id:product_id,
......@@ -797,7 +799,12 @@
}
}
this.linkage_product_id = res.data.linkage_product_id
if(second==1){
console.log('第一次')
this.linkage_product_id = res.data.linkage_product_id
}
this.bools = res.data.product_name;
this.defaultinfo = res.data;
this.form.product_name = res.data.product_name;//名称
......
......@@ -9,7 +9,5 @@ module.exports = {
// xqdebug:false,//正式权限
xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
}
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