|
|
@@ -9,7 +9,8 @@
|
|
|
<view class="left rx-ss" @click="getDelete(index)">
|
|
|
<uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20" color="#fa3534"></uni-icons>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
+ <view class="des" @click="handContract">{{isContract ? '展开' : '收缩'}}</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="content_table">
|
|
|
@@ -45,25 +46,28 @@
|
|
|
|
|
|
<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', wordItem.code == it.workOrderCode && it.quantity > 0 ? 'content_num' : ''] " v-model="it.feedNum"
|
|
|
- type="digit" :disabled="it.quantity <= 0"
|
|
|
- @blur="Number(it.feedNum) > Number(it.quantity) ? it.feedNum = Number(it.quantity) : ''"></input>
|
|
|
- </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', wordItem.code == it.workOrderCode && it.quantity > 0 ? 'content_num' : ''] " v-model="it.feedNum"
|
|
|
+ type="digit" :disabled="it.quantity <= 0"
|
|
|
+ @blur="Number(it.feedNum) > Number(it.quantity) ? it.feedNum = Number(it.quantity) : ''"></input>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
|
|
|
</view>
|
|
|
</u-list>
|
|
|
@@ -130,6 +134,8 @@
|
|
|
newList: [],
|
|
|
|
|
|
totalCount: 0,
|
|
|
+
|
|
|
+ isContract: false
|
|
|
|
|
|
|
|
|
}
|
|
|
@@ -144,7 +150,11 @@
|
|
|
|
|
|
|
|
|
},
|
|
|
- scrolltolower() {}
|
|
|
+ scrolltolower() {},
|
|
|
+
|
|
|
+ handContract() {
|
|
|
+ this.isContract = !this.isContract
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
@@ -173,9 +183,18 @@
|
|
|
background: $theme-color;
|
|
|
margin: auto;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-
|
|
|
}
|
|
|
+
|
|
|
+ .des{
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-style: normal;
|
|
|
+ font-weight: 400;
|
|
|
+ color: $theme-color;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
.left {
|
|
|
width: 40rpx;
|