|
@@ -55,7 +55,7 @@
|
|
|
<view class="table">
|
|
<view class="table">
|
|
|
<u-list @scrolltolower="scrolltolower" class="z_list">
|
|
<u-list @scrolltolower="scrolltolower" class="z_list">
|
|
|
<view class="tr row rx-sc" v-for="(it, idx) in splitList" :key='idx'>
|
|
<view class="tr row rx-sc" v-for="(it, idx) in splitList" :key='idx'>
|
|
|
- <view class="item ww10 rx-cc ">{{ idx + 1 }}</view>
|
|
|
|
|
|
|
+ <view class="item ww10 rx-cc ">{{ it.computeSize }}</view>
|
|
|
<view class="item ww30 content_num rx-sc">
|
|
<view class="item ww30 content_num rx-sc">
|
|
|
<input class="uni-input" v-model="it.quantity" type="digit"></input>
|
|
<input class="uni-input" v-model="it.quantity" type="digit"></input>
|
|
|
<view style="width: 260rpx; font-size: 22rpx;"> {{objData.unit}}/ {{it.unit}}</view>
|
|
<view style="width: 260rpx; font-size: 22rpx;"> {{objData.unit}}/ {{it.unit}}</view>
|
|
@@ -70,19 +70,10 @@
|
|
|
</image>
|
|
</image>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</u-list>
|
|
</u-list>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -97,102 +88,97 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <!-- 外包装 列表-->
|
|
|
|
|
- <view class="content_table2" v-if='packTwoList.length > 0'>
|
|
|
|
|
|
|
+ <view class="content_table2" v-if='temporaryList.length'>
|
|
|
<view class="head row rx-sc">
|
|
<view class="head row rx-sc">
|
|
|
<view class="item ww10">序号</view>
|
|
<view class="item ww10">序号</view>
|
|
|
<view class="item ww30">数量</view>
|
|
<view class="item ww30">数量</view>
|
|
|
-
|
|
|
|
|
<view class="item ww50">条码</view>
|
|
<view class="item ww50">条码</view>
|
|
|
<view class="item ww10"></view>
|
|
<view class="item ww10"></view>
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="table">
|
|
<view class="table">
|
|
|
|
|
|
|
|
- <view class="tr row rx-sc " v-for="(it, idx) in packTwoList" :key='idx'>
|
|
|
|
|
|
|
+ <view class="tr row rx-sc" v-for="(it, idx) in temporaryList" :key='idx'>
|
|
|
<view class="item ww10 rx-cc ">{{ idx + 1 }}</view>
|
|
<view class="item ww10 rx-cc ">{{ idx + 1 }}</view>
|
|
|
<view class="item ww30 content_num rx-sc">
|
|
<view class="item ww30 content_num rx-sc">
|
|
|
- {{ it.quantity}} {{ objData.unit }} / {{it.unit}}
|
|
|
|
|
|
|
+ <input class="uni-input" v-model="it.quantity" disabled type="digit"></input>
|
|
|
|
|
+ <view style="width: 260rpx; font-size: 22rpx;"> {{objData.unit}}/ {{it.unit}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<view class="item ww50">
|
|
<view class="item ww50">
|
|
|
{{ it.code }}
|
|
{{ it.code }}
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item ww10 rx-cc">
|
|
<view class="item ww10 rx-cc">
|
|
|
-
|
|
|
|
|
|
|
+ <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20"
|
|
|
|
|
+ color="#fa3534"></uni-icons>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
+ <view class="tr row rx-sc">
|
|
|
|
|
+ <view class="item ww10 rx-cc ">合并</view>
|
|
|
|
|
+ <view class="item ww90 rx-sc">
|
|
|
|
|
+ 总共{{temporaryCount}} {{objData.unit}} / {{this.temporaryNum}} {{unit}}
|
|
|
|
|
+ --打包成 1
|
|
|
|
|
+ <zxz-uni-data-select :localdata="unitList" v-model="packUnit" dataValue='Key'
|
|
|
|
|
+ format='{Value}' dataKey="Key" filterable :clear='false'></zxz-uni-data-select>
|
|
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="penalize" @click="handlePack">打包</view>
|
|
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="content_table2" v-if='temporaryList.length'>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 外包装 列表-->
|
|
|
|
|
+ <view class="content_table2" v-if='packTwoList.length > 0'>
|
|
|
<view class="head row rx-sc">
|
|
<view class="head row rx-sc">
|
|
|
<view class="item ww10">序号</view>
|
|
<view class="item ww10">序号</view>
|
|
|
<view class="item ww30">数量</view>
|
|
<view class="item ww30">数量</view>
|
|
|
|
|
+
|
|
|
<view class="item ww50">条码</view>
|
|
<view class="item ww50">条码</view>
|
|
|
<view class="item ww10"></view>
|
|
<view class="item ww10"></view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="table">
|
|
<view class="table">
|
|
|
- <u-list @scrolltolower="scrolltolower" class="z_list">
|
|
|
|
|
- <view class="tr row rx-sc" v-for="(it, idx) in temporaryList" :key='idx'>
|
|
|
|
|
- <view class="item ww10 rx-cc ">{{ idx + 1 }}</view>
|
|
|
|
|
- <view class="item ww30 content_num rx-sc">
|
|
|
|
|
- <input class="uni-input" v-model="it.quantity" disabled type="digit"></input>
|
|
|
|
|
- <view style="width: 260rpx; font-size: 22rpx;"> {{objData.unit}}/ {{it.unit}}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="item ww50">
|
|
|
|
|
- {{ it.code }}
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="item ww10 rx-cc">
|
|
|
|
|
- <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20"
|
|
|
|
|
- color="#fa3534"></uni-icons>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="tr row rx-sc " v-for="(it, idx) in packTwoList" :key='idx'>
|
|
|
|
|
+ <view class="item ww10 rx-cc ">{{ idx + 1 }}</view>
|
|
|
|
|
+ <view class="item ww30 content_num rx-sc">
|
|
|
|
|
+ {{ it.quantity}} {{ objData.unit }} / {{it.unit}}
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <view class="item ww50">
|
|
|
|
|
+ {{ it.code }}
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="item ww10 rx-cc">
|
|
|
|
|
|
|
|
- <view class="tr row rx-sc">
|
|
|
|
|
- <view class="item ww10 rx-cc ">合并</view>
|
|
|
|
|
- <view class="item ww90 rx-sc">
|
|
|
|
|
- 总共{{temporaryCount}} {{objData.unit}} / {{this.temporaryNum}} {{unit}}
|
|
|
|
|
- --打包成 1
|
|
|
|
|
- <zxz-uni-data-select :localdata="unitList" v-model="packUnit" dataValue='Key'
|
|
|
|
|
- format='{Value}' dataKey="Key" filterable :clear='false'></zxz-uni-data-select>
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
- <view class="penalize" @click="handlePack">打包</view>
|
|
|
|
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
- </u-list>
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -311,6 +297,15 @@
|
|
|
|
|
|
|
|
handleSplit() {
|
|
handleSplit() {
|
|
|
|
|
|
|
|
|
|
+ if (this.splitList.length) {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '产品已分包',
|
|
|
|
|
+ icon: 'none'
|
|
|
|
|
+ })
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
if (!this.formedNumLast) {
|
|
if (!this.formedNumLast) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -428,6 +423,21 @@
|
|
|
scrolltolower() {
|
|
scrolltolower() {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ getData() {
|
|
|
|
|
+ let _packingReportMarginList = []
|
|
|
|
|
+
|
|
|
|
|
+ _packingReportMarginList = this.splitList.filter(e => {
|
|
|
|
|
+ return !e.parentId
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ let packInfo = {
|
|
|
|
|
+ packingReportList: this.packTwoList,
|
|
|
|
|
+ packingReportMarginList: _packingReportMarginList,
|
|
|
|
|
+ formedNumLast: this.formedNumLast
|
|
|
|
|
+ }
|
|
|
|
|
+ return packInfo
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|