|
@@ -2,33 +2,16 @@
|
|
|
<view class="box">
|
|
|
<view class="mainBox">
|
|
|
|
|
|
- <view class="workBox2" v-for="(item,index) in itemList" :key="index">
|
|
|
+ <view class="workBox2" v-for="(item,index) in chexingMesList" :key="index">
|
|
|
|
|
|
- <view class="titleBox">分组1</view>
|
|
|
- <view class="comtent2">
|
|
|
- <view class="left2">标题</view>
|
|
|
- <view class="right2"></view>
|
|
|
+ <view class="titleBox">{{item.title}}</view>
|
|
|
+ <view v-for="(v,index2) in item.content" :key="index2">
|
|
|
+ <view class="comtent2">
|
|
|
+ <view class="left2">{{v.k}}</view>
|
|
|
+ <view class="right2">{{v.v}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="comtent2">
|
|
|
- <view class="left2">零件编号</view>
|
|
|
- <view class="right2">{{mesData.partsnum}}</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="comtent2">
|
|
|
- <view class="left2">名称</view>
|
|
|
- <view class="right2">{{mesData.caption}}</view>
|
|
|
- </view>
|
|
|
- <view class="comtent2">
|
|
|
- <view class="left2">位置</view>
|
|
|
- <view class="right2">{{weizhi}}</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="comtent2">
|
|
|
- <view class="left2">用量</view>
|
|
|
- <view class="right2">{{yongliang}}</view>
|
|
|
- </view>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
@@ -39,43 +22,17 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- epc_id: '',
|
|
|
- partsnum: '',
|
|
|
- weizhi: '',
|
|
|
- yongliang: '',
|
|
|
- model_id:'',
|
|
|
- mesData:{}
|
|
|
+
|
|
|
+ chexingMesList:[],
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
- console.log('opt+',opt);
|
|
|
- this.epc_id = opt.epc_id;
|
|
|
- this.partsnum = opt.partsnum;
|
|
|
- this.weizhi = opt.weizhi;
|
|
|
- this.yongliang = opt.yongliang;
|
|
|
- this.model_id = opt.model_id;
|
|
|
- this.getItemData();
|
|
|
+ var list = uni.getStorageSync('chexingMesList');
|
|
|
+ this.chexingMesList = list[0].views;
|
|
|
+ console.log('list',this.chexingMesList);
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
- // 配件信息
|
|
|
- getItemData() {
|
|
|
- uni.showLoading({
|
|
|
- title: '加载中'
|
|
|
- });
|
|
|
- this.$http('advancedEpc/findApplicableModels', {
|
|
|
- model_id: this.model_id,
|
|
|
-
|
|
|
-
|
|
|
- }, 'GET').then(res => {
|
|
|
- uni.hideLoading();
|
|
|
-
|
|
|
- this.mesData = res.data.result;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- });
|
|
|
- },
|
|
|
}
|
|
|
}
|
|
|
</script>
|