|
@@ -2,92 +2,94 @@
|
|
|
<view class="query-wrap">
|
|
|
<uni-easyinput prefixIcon="search" v-model="value" placeholder="请输入商品名称" @iconClick="iconClick" :focus="true">
|
|
|
</uni-easyinput>
|
|
|
- <view class="inner-item" v-for="(item,index) in queryData" :key="index">
|
|
|
- <view class="inventory-item">
|
|
|
- <view class="shuo-item">
|
|
|
- <view class="shuo-label">
|
|
|
- {{item.name}}
|
|
|
- </view>
|
|
|
- <view class="shuo-unit">
|
|
|
- {{item.unit}}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="inventory-item">
|
|
|
- <view class="shuo-item">
|
|
|
- <view class="shuo-label">
|
|
|
- 规格:
|
|
|
- </view>
|
|
|
- <view class="shuo-cont">
|
|
|
- {{item.guige}}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="shuo-item">
|
|
|
- <view class="shuo-label">
|
|
|
- 型号:
|
|
|
- </view>
|
|
|
- <view class="shuo-cont">
|
|
|
- {{item.xinghao}}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="inventory-item">
|
|
|
- <view class="shuo-item">
|
|
|
- <view class="shuo-label">
|
|
|
- 耗材类别:
|
|
|
- </view>
|
|
|
- <view class="shuo-cont-blue">
|
|
|
- {{item.liebie}}
|
|
|
+ <z-paging ref="paging" @query="queryList" v-model="dataList" :use-page-scroll="true">
|
|
|
+ <view class="inner-item" v-for="(item,index) in queryData" :key="index">
|
|
|
+ <view class="inventory-item">
|
|
|
+ <view class="shuo-item-name">
|
|
|
+ <view class="shuo-label">
|
|
|
+ {{item.name}}
|
|
|
+ </view>
|
|
|
+ <view class="shuo-unit">
|
|
|
+ {{item.unit}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="shuo-item">
|
|
|
- <view class="shuo-label">
|
|
|
- 生产来源:
|
|
|
+ <view class="inventory-item">
|
|
|
+ <view class="shuo-item">
|
|
|
+ <view class="shuo-label">
|
|
|
+ 规格:
|
|
|
+ </view>
|
|
|
+ <view class="shuo-cont">
|
|
|
+ {{item.guige}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="shuo-cont-blue">
|
|
|
- {{item.laiyuan}}
|
|
|
+ <view class="shuo-item">
|
|
|
+ <view class="shuo-label">
|
|
|
+ 型号:
|
|
|
+ </view>
|
|
|
+ <view class="shuo-cont">
|
|
|
+ {{item.xinghao}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="inventory-item">
|
|
|
- <view class="shuo-item-qy">
|
|
|
- <view class="shuo-label">
|
|
|
- 生产企业:
|
|
|
+ <view class="inventory-item">
|
|
|
+ <view class="shuo-item">
|
|
|
+ <view class="shuo-label">
|
|
|
+ 耗材类别:
|
|
|
+ </view>
|
|
|
+ <view class="shuo-cont-blue">
|
|
|
+ {{item.liebie}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="shuo-cont">
|
|
|
- {{item.qiye}}
|
|
|
+ <view class="shuo-item">
|
|
|
+ <view class="shuo-label">
|
|
|
+ 生产来源:
|
|
|
+ </view>
|
|
|
+ <view class="shuo-cont-blue">
|
|
|
+ {{item.laiyuan}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="inventory-item">
|
|
|
- <view class="shuo-item">
|
|
|
- <view class="shuo-label">
|
|
|
- 所在仓库:
|
|
|
- </view>
|
|
|
- <view class="shuo-cont">
|
|
|
- {{item.suozcku}}
|
|
|
+ <view class="inventory-item">
|
|
|
+ <view class="shuo-item-qy">
|
|
|
+ <view class="shuo-label">
|
|
|
+ 生产企业:
|
|
|
+ </view>
|
|
|
+ <view class="shuo-cont">
|
|
|
+ {{item.qiye}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="shuo-item">
|
|
|
- <view class="shuo-label">
|
|
|
- 所在库位:
|
|
|
+ <view class="inventory-item">
|
|
|
+ <view class="shuo-item">
|
|
|
+ <view class="shuo-label">
|
|
|
+ 所在仓库:
|
|
|
+ </view>
|
|
|
+ <view class="shuo-cont">
|
|
|
+ {{item.suozcku}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="shuo-cont">
|
|
|
- {{item.suozaikw}}
|
|
|
+ <view class="shuo-item">
|
|
|
+ <view class="shuo-label">
|
|
|
+ 所在库位:
|
|
|
+ </view>
|
|
|
+ <view class="shuo-cont">
|
|
|
+ {{item.suozaikw}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="inventory-item">
|
|
|
- <view class="shuo-item">
|
|
|
- <view class="shuo-label">
|
|
|
- 现有库存:
|
|
|
- </view>
|
|
|
- <view class="shuo-cont-blue">
|
|
|
- {{item.xianykc}}
|
|
|
+ <view class="inventory-item">
|
|
|
+ <view class="shuo-item">
|
|
|
+ <view class="shuo-label">
|
|
|
+ 现有库存:
|
|
|
+ </view>
|
|
|
+ <view class="shuo-cont-blue">
|
|
|
+ {{item.xianykc}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </z-paging>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -99,8 +101,15 @@
|
|
|
data() {
|
|
|
return {
|
|
|
value: '',
|
|
|
- queryData: queryData
|
|
|
+ queryData: queryData,
|
|
|
+ dataList: [],
|
|
|
}
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ queryList(pageNo, pageSize) {
|
|
|
+ // this.getGroundData();
|
|
|
+ this.$refs.paging.complete(this.listData);
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -139,7 +148,7 @@
|
|
|
}
|
|
|
|
|
|
.inventory-item {
|
|
|
- width: 115%;
|
|
|
+ width: 100%;
|
|
|
height: 40rpx;
|
|
|
color: rgba(16, 16, 16, 1);
|
|
|
font-size: 28rpx;
|
|
@@ -149,12 +158,41 @@
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
|
|
|
+ .shuo-item-name {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ line-height: 20rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .shuo-label {
|
|
|
+ width: 200rpx;
|
|
|
+ color: rgba(16, 16, 16, 1);
|
|
|
+ font-size: 28rpx;
|
|
|
+ text-align: left;
|
|
|
+ font-family: PingFangSC-regular;
|
|
|
+ text-align: justify;
|
|
|
+ text-align-last: justify;
|
|
|
+ margin-right: 10rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .shuo-cont {
|
|
|
+ color: rgba(16, 16, 16, 1);
|
|
|
+ font-size: 25rpx;
|
|
|
+ text-align: left;
|
|
|
+ font-family: PingFangSC-regular;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
.shuo-label {
|
|
|
color: rgba(16, 16, 16, 1);
|
|
|
font-size: 28rpx;
|
|
|
text-align: left;
|
|
|
font-family: PingFangSC-regular;
|
|
|
font-weight: bold;
|
|
|
+ width: 130rpx;
|
|
|
+ text-align: justify;
|
|
|
+ text-align-last: justify;
|
|
|
}
|
|
|
|
|
|
.shuo-unit {
|
|
@@ -168,6 +206,7 @@
|
|
|
text-align: left;
|
|
|
font-family: PingFangSC-regular;
|
|
|
font-weight: bold;
|
|
|
+ margin-left: 20rpx;
|
|
|
}
|
|
|
|
|
|
.shuo-cont {
|
|
@@ -175,7 +214,7 @@
|
|
|
font-size: 28rpx;
|
|
|
text-align: left;
|
|
|
font-family: PingFangSC-regular;
|
|
|
- margin-left: 30rpx;
|
|
|
+ margin-left: 20rpx;
|
|
|
}
|
|
|
|
|
|
.shuo-item-qy {
|
|
@@ -197,7 +236,7 @@
|
|
|
font-size: 28rpx;
|
|
|
text-align: left;
|
|
|
font-family: PingFangSC-regular;
|
|
|
- margin-left: 30rpx;
|
|
|
+ margin-left: 20rpx;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -220,7 +259,7 @@
|
|
|
font-size: 28rpx;
|
|
|
text-align: left;
|
|
|
font-family: PingFangSC-regular;
|
|
|
- margin-left: 30rpx;
|
|
|
+ margin-left: 20rpx;
|
|
|
}
|
|
|
|
|
|
.shuo-await {
|