|
|
@@ -14,15 +14,10 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="right_box rx-ec">
|
|
|
-
|
|
|
- <u-button
|
|
|
- type="success"
|
|
|
- size="small"
|
|
|
- class="u-reset-button"
|
|
|
- @click="addPicking"
|
|
|
- text="添加物料"
|
|
|
- ></u-button>
|
|
|
-
|
|
|
+
|
|
|
+ <u-button type="success" size="small" class="u-reset-button" @click="addPicking(item.id)"
|
|
|
+ text="添加物料"></u-button>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -37,7 +32,8 @@
|
|
|
<view class="item">
|
|
|
<view class="lable rx-cc">物料编码</view>
|
|
|
<view class="content">
|
|
|
- {{mate.categoryCode}}</view>
|
|
|
+ {{mate.categoryCode}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<view class="item">
|
|
|
@@ -63,16 +59,21 @@
|
|
|
|
|
|
|
|
|
<view class="item">
|
|
|
-
|
|
|
+
|
|
|
<view class="lable rx-cc">领料仓库</view>
|
|
|
- <view class="content pd4" >
|
|
|
- <zxz-uni-data-select :localdata="mate.warehouseList" v-model="mate.warehouseId" dataValue='id'
|
|
|
- format='{name}' :clear='false'></zxz-uni-data-select>
|
|
|
+ <view class="content pd4">
|
|
|
+ <zxz-uni-data-select :localdata="mate.warehouseList" v-model="mate.warehouseId"
|
|
|
+ dataValue='id' format='{name}' :clear='false'></zxz-uni-data-select>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view >
|
|
|
+ <instanceBom :list='item.instanceList'></instanceBom>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
</u-list>
|
|
|
|
|
|
@@ -82,23 +83,28 @@
|
|
|
<view class="btn_box" @click="save">确认</view>
|
|
|
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { workorderList } from '@/api/pda/workOrder.js'
|
|
|
+ import instanceBom from './components/instanceBom.vue'
|
|
|
+ import {
|
|
|
+ workorderList
|
|
|
+ } from '@/api/pda/workOrder.js'
|
|
|
|
|
|
export default {
|
|
|
-
|
|
|
+ components: {
|
|
|
+ instanceBom
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
idsList: [],
|
|
|
List: [],
|
|
|
-
|
|
|
- classificationList: [], //分类数据
|
|
|
+
|
|
|
+ classificationList: [], //分类数据
|
|
|
|
|
|
|
|
|
}
|
|
|
@@ -107,9 +113,25 @@
|
|
|
let queryArray = decodeURIComponent(options.arr);
|
|
|
this.idsList = JSON.parse(queryArray);
|
|
|
|
|
|
-
|
|
|
+
|
|
|
this.getList()
|
|
|
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ uni.$off("setSelectList");
|
|
|
+
|
|
|
+ uni.$on("setSelectList", (selectList, id) => {
|
|
|
+ this.List.forEach(m => {
|
|
|
+ if (m.id == id) {
|
|
|
+ this.$set(m, 'instanceList', selectList)
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
@@ -129,10 +151,10 @@
|
|
|
console.log(e)
|
|
|
},
|
|
|
|
|
|
- addPicking() {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/pda/picking/add'
|
|
|
- })
|
|
|
+ addPicking(id) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/pda/workOrder/search/index?id=' + id
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
},
|
|
|
@@ -162,7 +184,6 @@
|
|
|
.card_box {
|
|
|
padding: 16rpx 24rpx;
|
|
|
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -188,10 +209,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .right_box {
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
+ .right_box {}
|
|
|
|
|
|
|
|
|
.material {
|
|
|
@@ -272,9 +290,9 @@
|
|
|
color: #404446;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- .pd4{
|
|
|
- padding: 4rpx 8rpx;
|
|
|
+
|
|
|
+ .pd4 {
|
|
|
+ padding: 4rpx 8rpx;
|
|
|
}
|
|
|
|
|
|
|