|
|
@@ -15,11 +15,19 @@
|
|
|
dataValue='id' dataKey="name" filterable format='{name}'></zxz-uni-data-select>
|
|
|
</view>
|
|
|
|
|
|
- <view class="list_box" v-for="(item, index) in List" :key="index">
|
|
|
+ <view class="list_box" v-for="(item, index) in List" :key="index" v-if="clientEnvironmentId != 3">
|
|
|
<view class="time">打包时间: {{item.createTime}}</view>
|
|
|
<packingBom :objData="item.extInfo"></packingBom>
|
|
|
</view>
|
|
|
|
|
|
+
|
|
|
+ <view class="list_box" v-for="(it, index) in tgList" :key="index" v-if="clientEnvironmentId == 3">
|
|
|
+ <view class="time">打包时间: {{it.createTime}}</view>
|
|
|
+ <packingTgBom :list='it.extInfo.pickOutInList' :isWarehousing='true'></packingTgBom>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</view>
|
|
|
</u-list>
|
|
|
</view>
|
|
|
@@ -43,14 +51,17 @@
|
|
|
import {
|
|
|
getWarehouseList,
|
|
|
listPDAToWarehouse,
|
|
|
+ listPDAToWarehouseTG
|
|
|
} from '@/api/pda/workOrder.js'
|
|
|
|
|
|
import packingBom from './components/packingBom.vue'
|
|
|
import workOrderBom from '../feeding/components/workOrderBom.vue'
|
|
|
+ import packingTgBom from '../jobBooking/components/packingTgBom.vue'
|
|
|
export default {
|
|
|
components: {
|
|
|
workOrderBom,
|
|
|
- packingBom
|
|
|
+ packingBom,
|
|
|
+ packingTgBom
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -61,7 +72,13 @@
|
|
|
warehouseList: [],
|
|
|
warehouseId: null,
|
|
|
|
|
|
- List: []
|
|
|
+ List: [],
|
|
|
+
|
|
|
+ tgList: [],
|
|
|
+
|
|
|
+
|
|
|
+ clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo")
|
|
|
+ .clientEnvironmentId, // *1 主环境-601环境 2 soll-索尔环境 3 tg-碳谷环境
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -73,21 +90,27 @@
|
|
|
this.getList()
|
|
|
|
|
|
this.getWarehouseListFn()
|
|
|
- this.getWarehouse()
|
|
|
+
|
|
|
+ if (this.clientEnvironmentId == 3) {
|
|
|
+ this.getTgWarehouse()
|
|
|
+ } else {
|
|
|
+ this.getWarehouse()
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
getList() {
|
|
|
getByIdReport(this.id, this.taskId).then(res => {
|
|
|
this.objData = res
|
|
|
-
|
|
|
+
|
|
|
this.objData.workReportInfo = {
|
|
|
formingNum: null,
|
|
|
formingWeight: null,
|
|
|
formedNum: null,
|
|
|
formedWeight: null,
|
|
|
taskId: this.taskId
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
})
|
|
|
@@ -107,12 +130,24 @@
|
|
|
|
|
|
}
|
|
|
listPDAToWarehouse(param).then(res => {
|
|
|
- console.log(res)
|
|
|
this.List = res
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
+
|
|
|
+ getTgWarehouse() {
|
|
|
+ let param = {
|
|
|
+ workOrderId: this.id,
|
|
|
+ taskId: this.taskId,
|
|
|
+ workReportId: this.workReportId
|
|
|
+
|
|
|
+ }
|
|
|
+ listPDAToWarehouseTG(param).then(res => {
|
|
|
+ this.tgList = res
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+
|
|
|
handleScan() {
|
|
|
|
|
|
},
|
|
|
@@ -126,12 +161,17 @@
|
|
|
})
|
|
|
return false
|
|
|
}
|
|
|
- let storageInfo = {
|
|
|
- warehouseId: this.warehouseId,
|
|
|
- toWarehouseList: this.List,
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- }
|
|
|
- this.objData['storageInfo'] = storageInfo
|
|
|
+ let storageInfo = {
|
|
|
+ warehouseId: this.warehouseId,
|
|
|
+ toWarehouseList: this.clientEnvironmentId == 3 ? this.tgList : this.List,
|
|
|
+ }
|
|
|
+ this.objData['storageInfo'] = storageInfo
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
jobSave(this.objData).then(res => {
|