Commit c1b0a911 by liangjianmin

js

parent 106241a0
Showing with 5 additions and 5 deletions
...@@ -52,8 +52,8 @@ ...@@ -52,8 +52,8 @@
<view class="uni-table"> <view class="uni-table">
<view class="uni-th row"> <view class="uni-th row">
<text class="row verCenter">规格型号</text> <text class="row verCenter">规格型号</text>
<text class="row verCenter">订单{{ text }}</text> <text class="row verCenter">订单{{ text[d] }}</text>
<text class="row verCenter">实到{{ text }}</text> <text class="row verCenter">实到{{ text[d] }}</text>
<text class="row verCenter rowCenter" style="padding-left: 0;flex: 0 0 20%;">是否异常</text> <text class="row verCenter rowCenter" style="padding-left: 0;flex: 0 0 20%;">是否异常</text>
</view> </view>
<view class="uni-tr row verCenter" v-for="(item, index) in form[d].exceptionlist" :key="index"> <view class="uni-tr row verCenter" v-for="(item, index) in form[d].exceptionlist" :key="index">
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
goodsArrangeData: {}, //理货列表数据 goodsArrangeData: {}, //理货列表数据
noexebshowFalg: true, //控制是否会触发生命周期 noexebshowFalg: true, //控制是否会触发生命周期
limitword: 0, //备注文字限制, limitword: 0, //备注文字限制,
text: '', text:[''],//记录数组文字
typeList: [], //问题类型列表 typeList: [], //问题类型列表
questionTypeIndex: [0], //问题类型索引 questionTypeIndex: [0], //问题类型索引
erp_order_sn: 'B50413', //form入仓号 erp_order_sn: 'B50413', //form入仓号
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
if (res.err_code === 0) { if (res.err_code === 0) {
this.typeList = res.data; this.typeList = res.data;
this.form[index].ask_customer_exception_id = res.data[0].ask_customer_exception_id; //默认 this.form[index].ask_customer_exception_id = res.data[0].ask_customer_exception_id; //默认
this.text = res.data[0].content.substr(0, 2); //默认 this.text[index] = res.data[0].content.substr(0, 2); //默认
this.getExceptionData(index); this.getExceptionData(index);
} else { } else {
uni.showToast({ uni.showToast({
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
console.log('picker发送选择改变,携带值为', e.target.value); console.log('picker发送选择改变,携带值为', e.target.value);
this.questionTypeIndex[d] = e.target.value; //问题索引 this.questionTypeIndex[d] = e.target.value; //问题索引
this.form[d].ask_customer_exception_id = this.typeList[e.target.value].ask_customer_exception_id; //异常id this.form[d].ask_customer_exception_id = this.typeList[e.target.value].ask_customer_exception_id; //异常id
this.text = this.typeList[e.target.value].content.substr(0, 2); //文字 this.text[d] = this.typeList[e.target.value].content.substr(0, 2); //文字
this.getExceptionData(d); this.getExceptionData(d);
}, },
chooseImageChange(index) { chooseImageChange(index) {
......
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