瀏覽代碼

通用标志

lilei 1 年之前
父節點
當前提交
dbd317ebf2
共有 2 個文件被更改,包括 10 次插入3 次删除
  1. 1 1
      App.vue
  2. 9 2
      pagesA/digitalShelf/choosePart.vue

+ 1 - 1
App.vue

@@ -1,7 +1,7 @@
 <script>
 	export default {
 		globalData: {
-			// baseUrl: 'http://192.168.2.113:7002/saas/clz/', // 本地
+			// baseUrl: 'http://192.168.2.103:7002/saas/clz/', // 本地
 			baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
 			// baseUrl: 'https://car.zyucgj.com/saas/clz/' // 生产
 		},

+ 9 - 2
pagesA/digitalShelf/choosePart.vue

@@ -49,7 +49,10 @@
 						 		<view class="item-detail">
 									<view class="item-detail-info">
 										<view class="flex justify_between">
-											<text class="item-detail-text flex_1">{{item.code}}</text>
+											<view>
+												<text class="item-detail-text flex_1">{{item.code}}</text>
+												<u-tag v-if="item.affiliation=='SUPER_CATALOGUE' && commonPartCodeList.includes(item.code)" size="mini" style="margin-left: 5px;" text="通用" mode="light" shape="circle" type="success"></u-tag>
+											</view>
 											<text class="item-detail-text" v-if="item.affiliation=='SHELF'">库存:{{item.currentInven?item.currentInven:0}} {{item.unit}}</text>
 										</view>
 										<view class="flex justify_between">
@@ -251,6 +254,8 @@
 				partList: [], // 配件列表
 				partListData: [], // 已选配件
 				vinPartList: [],
+				vinCode:[],
+				commonPartCodeList:[],
 				isIphoneXup: false,
 				saveLoading: false,
 				showPopup: false,
@@ -389,7 +394,9 @@
 			getCarCodeByVin(){
 				queryPartCodeByVin({vinNumber:this.vinNumber}).then(res => {
 					console.log(res,'this.vinCode')
-					this.vinCode = res.data
+					const ret = res.data
+					this.commonPartCodeList = ret.commonPartCodeList || []
+					this.vinCode = this.commonPartCodeList.concat(ret.partCodeList||[])
 					this.getShelfProductType()
 				})
 			},