|
|
@@ -14,7 +14,7 @@
|
|
|
<view class="code">工单编号:{{ item.code }}</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="right_box rx-ec">
|
|
|
+ <view class="right_box rx-ec" v-if="clientEnvironmentId!==9">
|
|
|
<u-button type="success" size="small" class="u-reset-button" v-if="isOutsource == 0"
|
|
|
@click="addPicking(item.workOrderId, item)" text="添加物料"></u-button>
|
|
|
|
|
|
@@ -50,7 +50,7 @@
|
|
|
<view class="rx ww45">
|
|
|
<view class="lable rx-cc ww80">数量</view>
|
|
|
<view class="content content_num">
|
|
|
- <input class="uni-input" v-model="mate.demandQuantity" type="digit"></input>
|
|
|
+ <input class="uni-input" v-model="mate.demandQuantity" type="digit" :disabled="clientEnvironmentId==9"></input>
|
|
|
<view class="unit">{{ mate.unit }}</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -67,7 +67,10 @@
|
|
|
:clear='false'></zxz-uni-data-select>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+ <view class="item" v-if="clientEnvironmentId==21">
|
|
|
+ <view class="lable rx-cc">库存可用量</view>
|
|
|
+ <view class="content ">{{ mate.waitOutInWeight }}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -136,6 +139,9 @@ import {
|
|
|
listOutsourceInWarehouse,
|
|
|
listOutsource
|
|
|
} from '@/api/pda/workOrder.js'
|
|
|
+import {
|
|
|
+ VirtualPagination
|
|
|
+} from '@/utils/pages.js'
|
|
|
|
|
|
import {
|
|
|
batchSave,
|
|
|
@@ -156,9 +162,9 @@ export default {
|
|
|
return {
|
|
|
idsList: [],
|
|
|
List: [],
|
|
|
-
|
|
|
+ pagination:{},
|
|
|
classificationList: [], //分类数据
|
|
|
-
|
|
|
+ newList:[],
|
|
|
taskId: null,
|
|
|
isPick: false,
|
|
|
isOutsource: 0,
|
|
|
@@ -169,7 +175,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
-
|
|
|
+ console.log(options,'1111111111');
|
|
|
|
|
|
let queryArray = decodeURIComponent(options.arr);
|
|
|
|
|
|
@@ -262,13 +268,21 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- scrolltolower() { },
|
|
|
+ scrolltolower() {
|
|
|
+
|
|
|
+ let arr = this.pagination.nextPage();
|
|
|
+ if(arr.length){
|
|
|
+ this.List[0].bomList = [...this.List[0].bomList, ...arr]
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
|
|
|
save() {
|
|
|
|
|
|
|
|
|
let _arr = []
|
|
|
- _arr = this.List.map(m => {
|
|
|
+ _arr = this.newList.map(m => {
|
|
|
|
|
|
if (m.bomList.length > 0) {
|
|
|
let bomList = m.bomList.filter(f => f.checked)
|
|
|
@@ -282,9 +296,8 @@ export default {
|
|
|
...m
|
|
|
}
|
|
|
})
|
|
|
- console.log(this.clientEnvironmentId,'this.clientEnvironmentId');
|
|
|
+
|
|
|
if (this.clientEnvironmentId == 21) {
|
|
|
- console.log(1111111111111111111);
|
|
|
|
|
|
findVoucherList({workOrderId:this.idsList[0]}).then(res => {
|
|
|
uni.navigateTo({
|
|
|
@@ -313,7 +326,7 @@ export default {
|
|
|
}).then(res => {
|
|
|
console.log(res, 'res');
|
|
|
if (res?.length) {
|
|
|
- this.List = res.map(m => {
|
|
|
+ let List = res.map(m => {
|
|
|
m.workOrderId = m.id
|
|
|
let modelList = []
|
|
|
let palletList = []
|
|
|
@@ -358,7 +371,14 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- console.log(this.List,'1111111111111111');
|
|
|
+ this.newList =JSON.parse(JSON.stringify(List));
|
|
|
+
|
|
|
+ this.pagination = new VirtualPagination(List[0].bomList, 10);
|
|
|
+
|
|
|
+ List[0].bomList = this.pagination.getCurrentPageData();
|
|
|
+
|
|
|
+ this.List = List;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|