|
|
@@ -6,8 +6,9 @@
|
|
|
|
|
|
<view v-for="(item, index) in newList" :key='index'>
|
|
|
<view class="title_box rx-bc">
|
|
|
- <view class="left rx-ss" @click="getDelete(index)">
|
|
|
- <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20" color="#fa3534"></uni-icons>
|
|
|
+ <view class="left rx-ss" >
|
|
|
+ <uni-icons custom-prefix="iconfont" @click="getDelete(index)" type="icon-shanchu" size="20" color="#fa3534"></uni-icons>
|
|
|
+ <view class="des" @click="handContract()">{{ isContract ? '收缩' : '展开'}}</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -43,24 +44,26 @@
|
|
|
|
|
|
<view class="table">
|
|
|
<u-list @scrolltolower="scrolltolower" class="z_list">
|
|
|
- <view class="tr row rx-sc" v-for="(it, idx) in item.extInfo.positionList" :key='idx'>
|
|
|
- <view class="item ww10">{{it.code}}</view>
|
|
|
- <view class="item ww25" :class="{'color157': it.workOrderCode === wordItem.code}">
|
|
|
- {{ it.workOrderCode }}
|
|
|
- </view>
|
|
|
- <view class="item ww25" :class="{'color157': it.categoryCode === wordItem.productCode}">
|
|
|
- {{it.categoryCode}}
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item ww20 ">
|
|
|
- <text>{{it.quantity }}</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="item ww20">
|
|
|
- <input class="uni-input content_num"
|
|
|
- v-model="it.sampleNum" type="digit" :disabled="it.quantity <= 0" @blur="Number(it.sampleNum) > Number(it.quantity) ? it.sampleNum = Number(it.quantity) : ''"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <view v-for="(it, idx) in item.extInfo.positionList" :key='idx'>
|
|
|
+ <view class="tr row rx-sc" v-if=" isContract || ( it.workOrderCode != '' && it.workOrderCode != null)">
|
|
|
+ <view class="item ww10">{{it.code}}</view>
|
|
|
+ <view class="item ww25" :class="{'color157': it.workOrderCode === wordItem.code}">
|
|
|
+ {{ it.workOrderCode }}
|
|
|
+ </view>
|
|
|
+ <view class="item ww25" :class="{'color157': it.categoryCode === wordItem.productCode}">
|
|
|
+ {{it.categoryCode}}
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="item ww20 ">
|
|
|
+ <text>{{it.quantity }}</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="item ww20">
|
|
|
+ <input class="uni-input content_num"
|
|
|
+ v-model="it.sampleNum" type="digit" :disabled="it.quantity <= 0" @blur="Number(it.sampleNum) > Number(it.quantity) ? it.sampleNum = Number(it.quantity) : ''"></input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</u-list>
|
|
|
|
|
|
</view>
|
|
|
@@ -105,7 +108,8 @@
|
|
|
data() {
|
|
|
return {
|
|
|
recycleQuantity: '',
|
|
|
- newList: []
|
|
|
+ newList: [],
|
|
|
+ isContract: false
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -118,7 +122,11 @@
|
|
|
|
|
|
|
|
|
},
|
|
|
- scrolltolower() {}
|
|
|
+ scrolltolower() {},
|
|
|
+
|
|
|
+ handContract() {
|
|
|
+ this.isContract = !this.isContract
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
@@ -150,9 +158,16 @@
|
|
|
|
|
|
|
|
|
}
|
|
|
+ .des{
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-style: normal;
|
|
|
+ font-weight: 400;
|
|
|
+ color: $theme-color;
|
|
|
+ margin-left: 38rpx;
|
|
|
+ }
|
|
|
|
|
|
.left {
|
|
|
- width: 40rpx;
|
|
|
+ width: 140rpx;
|
|
|
}
|
|
|
|
|
|
.btn_box {
|