|
|
@@ -1,5 +1,5 @@
|
|
|
-<template>
|
|
|
- <view class="content-box">
|
|
|
+<template>
|
|
|
+ <view class="page-container">
|
|
|
<uni-nav-bar
|
|
|
fixed="true"
|
|
|
statusBar="true"
|
|
|
@@ -9,60 +9,55 @@
|
|
|
color="#fff"
|
|
|
@clickLeft="back"
|
|
|
></uni-nav-bar>
|
|
|
- <u-button
|
|
|
- type="success"
|
|
|
- size="small"
|
|
|
- class="u-reset-button-ii"
|
|
|
- v-if="clientEnvironmentId == 21"
|
|
|
- @click="undatePicking()"
|
|
|
- text="刷新库存"
|
|
|
- ></u-button>
|
|
|
-
|
|
|
- <view class="list_box">
|
|
|
+
|
|
|
+ <view class="refresh-bar" v-if="clientEnvironmentId == 21">
|
|
|
+ <u-button
|
|
|
+ type="success"
|
|
|
+ size="small"
|
|
|
+ class="refresh-btn"
|
|
|
+ @click="undatePicking()"
|
|
|
+ text="刷新库存"
|
|
|
+ ></u-button>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="scroll-area">
|
|
|
<u-list @scrolltolower="scrolltolower">
|
|
|
- <view v-for="(item, index) in List" :key="index" class="card_box">
|
|
|
- <view class="title_box rx-bc">
|
|
|
- <view class="left rx-sc">
|
|
|
- <view class="round">{{ index + 1 }}</view>
|
|
|
- <view class="code">工单编号:{{ item.code }}</view>
|
|
|
+ <view v-for="(item, index) in List" :key="index" class="order-card">
|
|
|
+ <!-- 卡片头部 -->
|
|
|
+ <view class="card-header">
|
|
|
+ <view class="header-left">
|
|
|
+ <view class="serial-num">{{ index + 1 }}</view>
|
|
|
+ <text class="order-code">工单编号:{{ item.code }}</text>
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="right_box rx-ec" v-if="clientEnvironmentId !== 9">
|
|
|
+ <view class="header-right" v-if="clientEnvironmentId !== 9">
|
|
|
<u-button
|
|
|
type="success"
|
|
|
- size="small"
|
|
|
- class="u-reset-button"
|
|
|
+ size="mini"
|
|
|
+ class="add-btn"
|
|
|
v-if="isOutsource == 0"
|
|
|
@click="addPicking(item.workOrderId, item)"
|
|
|
text="添加物料"
|
|
|
></u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view style="display: flex; justify-items: start">
|
|
|
- <view
|
|
|
- class="select"
|
|
|
- @click="selectAll(item.bomList)"
|
|
|
- style="width: 64px"
|
|
|
- >全选/取消</view
|
|
|
- >
|
|
|
- <!-- <view
|
|
|
- class="select"
|
|
|
- @click="warehouseShowFn(item.id)"
|
|
|
- style="width: 85px; margin-left: 10px"
|
|
|
- >
|
|
|
- 一键选择仓库</view
|
|
|
- > -->
|
|
|
+
|
|
|
+ <!-- 操作栏 -->
|
|
|
+ <view class="action-bar">
|
|
|
+ <view class="select-all-btn" @click="selectAll(item.pickList)">
|
|
|
+ 全选/取消
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
+ <!-- 物料列表 -->
|
|
|
<view
|
|
|
- class="material rx-ss"
|
|
|
+ class="material-item"
|
|
|
v-for="(mate, idx) in item.pickList"
|
|
|
:key="idx"
|
|
|
>
|
|
|
- <view class="left rx-ss" @click="mate.checked = !mate.checked">
|
|
|
+ <view class="check-col" @click="mate.checked = !mate.checked">
|
|
|
<view
|
|
|
- class="zdy_check rx-cc"
|
|
|
- :class="{ check_active: mate.checked }"
|
|
|
+ class="checkbox"
|
|
|
+ :class="{ 'checkbox--active': mate.checked }"
|
|
|
>
|
|
|
<u-icon
|
|
|
size="28"
|
|
|
@@ -71,77 +66,85 @@
|
|
|
></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="content_table">
|
|
|
- <view class="item">
|
|
|
- <view class="lable rx-cc">物料编码</view>
|
|
|
- <view class="content ellipsis">
|
|
|
+
|
|
|
+ <view class="material-detail">
|
|
|
+ <view class="detail-row">
|
|
|
+ <view class="detail-label">物料编码</view>
|
|
|
+ <view class="detail-value text-ellipsis">
|
|
|
{{ mate.categoryCode }}
|
|
|
</view>
|
|
|
+ <view class="delete-btn" @click.stop="deletePick(index, idx)">
|
|
|
+ <u-icon name="close" size="28" color="#F56C6C"></u-icon>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="item">
|
|
|
- <view class="lable rx-cc">名称</view>
|
|
|
- <view class="content ellipsis">{{ mate.categoryName }}</view>
|
|
|
+ <view class="detail-row">
|
|
|
+ <view class="detail-label">名称</view>
|
|
|
+ <view class="detail-value text-ellipsis">
|
|
|
+ {{ mate.categoryName }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="item rx-sc">
|
|
|
- <view class="rx ww55">
|
|
|
- <view class="lable rx-cc">型号</view>
|
|
|
- <view class="content ellipsis">{{ mate.modelType }}</view>
|
|
|
+ <view class="detail-row detail-row--split">
|
|
|
+ <view class="split-cell split-cell--left">
|
|
|
+ <view class="detail-label">型号</view>
|
|
|
+ <view class="detail-value text-ellipsis">
|
|
|
+ {{ mate.modelType }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="rx ww45">
|
|
|
- <view class="lable rx-cc ww80">规格</view>
|
|
|
- <view class="content ellipsis">{{ mate.specification }}</view>
|
|
|
+ <view class="split-cell split-cell--right">
|
|
|
+ <view class="detail-label detail-label--sm">规格</view>
|
|
|
+ <view class="detail-value text-ellipsis">
|
|
|
+ {{ mate.specification }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="item rx-sc">
|
|
|
- <view class="rx ww55">
|
|
|
- <view class="lable rx-cc">类型</view>
|
|
|
- <view class="content">{{
|
|
|
- typeName[Number(mate.rootCategoryLevelId)]
|
|
|
- }}</view>
|
|
|
+ <view class="detail-row detail-row--split">
|
|
|
+ <view class="split-cell split-cell--left">
|
|
|
+ <view class="detail-label">类型</view>
|
|
|
+ <view class="detail-value">
|
|
|
+ {{ typeName[Number(mate.rootCategoryLevelId)] }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="rx ww45">
|
|
|
- <view class="lable rx-cc ww80">数量</view>
|
|
|
- <view class="content content_num">
|
|
|
+ <view class="split-cell split-cell--right">
|
|
|
+ <view class="detail-label detail-label--sm">数量</view>
|
|
|
+ <view class="detail-value detail-value--input">
|
|
|
<input
|
|
|
- class="uni-input"
|
|
|
+ class="qty-input"
|
|
|
v-model="mate.demandQuantity"
|
|
|
type="digit"
|
|
|
:disabled="clientEnvironmentId == 9"
|
|
|
@input="changeInput(mate, idx, index)"
|
|
|
/>
|
|
|
- <view class="unit">{{ mate.unit }}</view>
|
|
|
+ <text class="qty-unit">{{ mate.unit }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="item">
|
|
|
- <view class="lable rx-cc">计量库存数量</view>
|
|
|
- <view class="content pd4">
|
|
|
- <view v-for="it of mate.warehouseList">
|
|
|
+
|
|
|
+ <view class="detail-row">
|
|
|
+ <view class="detail-label">计量库存数量</view>
|
|
|
+ <view class="detail-value detail-value--stock">
|
|
|
+ <view
|
|
|
+ v-for="it of mate.warehouseList"
|
|
|
+ :key="it.warehouse_id || it.id"
|
|
|
+ >
|
|
|
<view
|
|
|
v-if="it.availableCountBase != '0'"
|
|
|
- class="content"
|
|
|
+ class="stock-item"
|
|
|
@click="chooseInventoryData(mate, it, idx)"
|
|
|
- style="cursor: pointer"
|
|
|
- >{{ it.name ? it.name : it.warehouse_name }}库存数:<span
|
|
|
- style="color: green"
|
|
|
- >{{ it.availableCountBase }}</span
|
|
|
- >{{ mate.measuringUnit }}</view
|
|
|
>
|
|
|
+ {{ it.name ? it.name : it.warehouse_name }}库存数:
|
|
|
+ <text class="stock-num">{{ it.availableCountBase }}</text>
|
|
|
+ {{ mate.measuringUnit }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <!-- <view class="content"
|
|
|
- >{{ mate.availableCountBase }} {{ mate.unit }}</view
|
|
|
- > -->
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="item">
|
|
|
- <view class="lable rx-cc">领料仓库</view>
|
|
|
- <view class="content pd4">
|
|
|
+ <view class="detail-row">
|
|
|
+ <view class="detail-label">领料仓库</view>
|
|
|
+ <view class="detail-value detail-value--select">
|
|
|
<zxz-uni-data-select
|
|
|
:localdata="mate.warehouseList"
|
|
|
v-model="mate.warehouseIdList"
|
|
|
@@ -153,14 +156,16 @@
|
|
|
></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 class="detail-row" v-if="clientEnvironmentId == 21">
|
|
|
+ <view class="detail-label">库存可用量</view>
|
|
|
+ <view class="detail-value">{{ mate.waitOutInWeight }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view>
|
|
|
+ <!-- 子组件区域 -->
|
|
|
+ <view class="sub-components">
|
|
|
<instanceBom
|
|
|
:list="item.instanceList2"
|
|
|
:warehouseList="warehouseList"
|
|
|
@@ -173,8 +178,7 @@
|
|
|
:modelList2="item.modelList2"
|
|
|
:code="item.code"
|
|
|
@hendDel="hendDel"
|
|
|
- >
|
|
|
- </modelBom>
|
|
|
+ ></modelBom>
|
|
|
|
|
|
<boatBom
|
|
|
:palletList="item.palletList"
|
|
|
@@ -183,8 +187,7 @@
|
|
|
:warehouseList="warehouseList"
|
|
|
:resObj="item"
|
|
|
@hendDel="hendDel"
|
|
|
- >
|
|
|
- </boatBom>
|
|
|
+ ></boatBom>
|
|
|
|
|
|
<packingBom
|
|
|
:list="item.packingList2"
|
|
|
@@ -198,33 +201,34 @@
|
|
|
...item.productList2,
|
|
|
...item.junkProductList2,
|
|
|
]"
|
|
|
- >
|
|
|
- </semiProductBom>
|
|
|
+ ></semiProductBom>
|
|
|
|
|
|
<view style="height: 80rpx"></view>
|
|
|
|
|
|
- <view class="flex_btn" v-if="isPick" @click="openDetails"
|
|
|
- >已有领料单</view
|
|
|
- >
|
|
|
+ <view class="exist-pick-btn" v-if="isPick" @click="openDetails">
|
|
|
+ 已有领料单
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="out_box" v-if="isOutsource == 1">
|
|
|
- <view class="out_text" @click="getListOutsource()"
|
|
|
- >重新获取委外领料单</view
|
|
|
- >
|
|
|
+ <view class="outsource-bar" v-if="isOutsource == 1">
|
|
|
+ <view class="outsource-link" @click="getListOutsource()">
|
|
|
+ 重新获取委外领料单
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</u-list>
|
|
|
</view>
|
|
|
+
|
|
|
+ <!-- 弹窗 -->
|
|
|
<u-popup
|
|
|
:show="warehouseShow"
|
|
|
mode="center"
|
|
|
v-if="warehouseShow"
|
|
|
:closeOnClickOverlay="false"
|
|
|
>
|
|
|
- <view class="popup_list">
|
|
|
- <view class="lable rx-cc">领料仓库</view>
|
|
|
- <view class="content pd4">
|
|
|
+ <view class="popup-content">
|
|
|
+ <view class="popup-title">选择领料仓库</view>
|
|
|
+ <view class="popup-body">
|
|
|
<zxz-uni-data-select
|
|
|
:localdata="warehouseList"
|
|
|
v-model="warehouseId"
|
|
|
@@ -235,28 +239,29 @@
|
|
|
:clear="false"
|
|
|
></zxz-uni-data-select>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="operate_box rx-bc">
|
|
|
- <u-button
|
|
|
- size="small"
|
|
|
- class="u-reset-button"
|
|
|
- @click="warehouseShow = fasle"
|
|
|
- >
|
|
|
- 取消
|
|
|
- </u-button>
|
|
|
- <u-button
|
|
|
- type="success"
|
|
|
- size="small"
|
|
|
- class="u-reset-button"
|
|
|
- @click="handOK"
|
|
|
- >
|
|
|
- 确认
|
|
|
- </u-button>
|
|
|
+ <view class="popup-footer">
|
|
|
+ <u-button
|
|
|
+ size="small"
|
|
|
+ class="popup-btn"
|
|
|
+ @click="warehouseShow = fasle"
|
|
|
+ >
|
|
|
+ 取消
|
|
|
+ </u-button>
|
|
|
+ <u-button
|
|
|
+ type="success"
|
|
|
+ size="small"
|
|
|
+ class="popup-btn"
|
|
|
+ @click="handOK"
|
|
|
+ >
|
|
|
+ 确认
|
|
|
+ </u-button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
- <view class="bottom-wrapper">
|
|
|
- <view class="btn_box" @click="save">{{ submitText }}</view>
|
|
|
+
|
|
|
+ <!-- 底部提交按钮 -->
|
|
|
+ <view class="footer-bar">
|
|
|
+ <view class="submit-btn" @click="save">{{ submitText }}</view>
|
|
|
</view>
|
|
|
|
|
|
<outsourceOrder
|
|
|
@@ -311,7 +316,7 @@ export default {
|
|
|
idsList: [],
|
|
|
List: [],
|
|
|
currentId: "",
|
|
|
- pagination: {},
|
|
|
+ pagination: null,
|
|
|
classificationList: [], //分类数据
|
|
|
newListOne: [],
|
|
|
taskId: null,
|
|
|
@@ -360,77 +365,40 @@ export default {
|
|
|
|
|
|
uni.$on("setSelectList", (selectList, id) => {
|
|
|
selectList.forEach((item) => {
|
|
|
- item.warehouseList = item.warehouseList
|
|
|
- ? item.warehouseList
|
|
|
- : item.warehouseLists;
|
|
|
+ item.code = item.categoryCode;
|
|
|
+ item.name = item.categoryName;
|
|
|
+ item.modelType = item.modelType ? item.modelType : item.categoryModel;
|
|
|
+ item.measuringUnit = item.measuringUnit
|
|
|
+ ? item.measuringUnit
|
|
|
+ : item.measureUnit;
|
|
|
+ item.unit = item.unit ? item.unit : item.measureUnit;
|
|
|
+ // item.categoryCode = item.categoryCode ? item.categoryCode : item.code;
|
|
|
+ // item.categoryName = item.categoryName ? item.categoryName : item.name;
|
|
|
+ // item.modelType = item.modelType ? item.modelType : item.categoryModel;
|
|
|
+ // item.unit = item.unit ? item.unit : item.measureUnit;
|
|
|
+ // item.measuringUnit = item.measuringUnit
|
|
|
+ // ? item.measuringUnit
|
|
|
+ // : item.measureUnit;
|
|
|
+ // item.warehouseList = item.warehouseList
|
|
|
+ // ? item.warehouseList
|
|
|
+ // : item.warehouseLists;
|
|
|
});
|
|
|
|
|
|
- // list.forEach((it) => {
|
|
|
- // if (it.warehouseList.length != 0) {
|
|
|
- // if (!it.warehouseIdList) {
|
|
|
- // it.warehouseIdList = [];
|
|
|
- // it.warehouseIdList.push(it.warehouseList[0].warehouse_id);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // });
|
|
|
-
|
|
|
this.List.forEach((e) => {
|
|
|
if (e.id == id) {
|
|
|
e.pickList = [...e.pickList, ...selectList];
|
|
|
this.$forceUpdate();
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
- // this.List.forEach((m) => {
|
|
|
- // if (m.workOrderId == id) {
|
|
|
- // let instanceList2 = []; // 投料
|
|
|
- // let modelList2 = []; // 模具
|
|
|
- // let palletList2 = [];
|
|
|
- // let packingList2 = []; // 包装
|
|
|
- // let semiProductList2 = []; //半成品
|
|
|
- // let productList2 = []; // 产品
|
|
|
- // let junkProductList2 = []; //废品
|
|
|
-
|
|
|
- // selectList.forEach((f) => {
|
|
|
- // if (![5, 8, 13, 23, 9, 28].includes(f.rootCategoryLevelId)) {
|
|
|
- // f.automatic = 1;
|
|
|
- // instanceList2 = instanceList2.concat(f);
|
|
|
- // } else if (f.rootCategoryLevelId == 5) {
|
|
|
- // // 模具
|
|
|
- // f.automatic = 1;
|
|
|
- // modelList2 = modelList2.concat(f);
|
|
|
- // } else if (f.rootCategoryLevelId == 8) {
|
|
|
- // // 舟皿
|
|
|
- // f.automatic = 1;
|
|
|
- // palletList2 = palletList2.concat(f);
|
|
|
- // } else if (f.rootCategoryLevelId == 13) {
|
|
|
- // f.automatic = 1;
|
|
|
- // packingList2 = packingList2.concat(f);
|
|
|
- // } else if (f.rootCategoryLevelId == 23) {
|
|
|
- // f.automatic = 1;
|
|
|
- // semiProductList2 = semiProductList2.concat(f);
|
|
|
- // } else if (f.rootCategoryLevelId == 9) {
|
|
|
- // f.automatic = 1;
|
|
|
- // productList2 = productList2.concat(f);
|
|
|
- // } else if (f.rootCategoryLevelId == 28) {
|
|
|
- // f.automatic = 1;
|
|
|
- // junkProductList2 = junkProductList2.concat(f);
|
|
|
- // }
|
|
|
- // });
|
|
|
-
|
|
|
- // this.$set(m, "instanceList2", instanceList2);
|
|
|
- // this.$set(m, "modelList2", modelList2);
|
|
|
- // this.$set(m, "palletList2", palletList2);
|
|
|
- // this.$set(m, "packingList2", packingList2);
|
|
|
- // this.$set(m, "semiProductList2", semiProductList2);
|
|
|
- // this.$set(m, "productList2", productList2);
|
|
|
- // this.$set(m, "junkProductList2", junkProductList2);
|
|
|
- // }
|
|
|
- // });
|
|
|
});
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ deletePick(orderIndex, pickIndex) {
|
|
|
+ this.List[orderIndex].pickList.splice(pickIndex, 1);
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
+
|
|
|
selectAll(list) {
|
|
|
if (Array.isArray(list) && list.length) {
|
|
|
// let a = list.some(v=>v.checked = true)
|
|
|
@@ -500,67 +468,12 @@ export default {
|
|
|
|
|
|
scrolltolower() {
|
|
|
let arr = this.pagination ? this.pagination.nextPage() : [];
|
|
|
- if (arr.length) {
|
|
|
+ if (arr && arr.length) {
|
|
|
this.List[0].bomList = [...this.List[0].bomList, ...arr];
|
|
|
}
|
|
|
},
|
|
|
|
|
|
save() {
|
|
|
- // let _arr = [];
|
|
|
- // console.log(this.newList, "m");
|
|
|
-
|
|
|
- // if (this.clientEnvironmentId !== 21) {
|
|
|
- // _arr = this.List.map((m) => {
|
|
|
- // console.log(m, "m");
|
|
|
- // if (m.bomList.length > 0) {
|
|
|
- // let bomList = m.bomList.filter((f) => f.checked);
|
|
|
- // m["bomDetailDTOSList"] = [
|
|
|
- // ...bomList,
|
|
|
- // ...m.modelList,
|
|
|
- // ...m.palletList,
|
|
|
- // ];
|
|
|
- // }
|
|
|
- // m.instanceList = [
|
|
|
- // ...m.instanceList2,
|
|
|
- // ...m.modelList2,
|
|
|
- // ...m.palletList2,
|
|
|
- // ...m.packingList2,
|
|
|
- // ...m.semiProductList2,
|
|
|
- // ...m.productList2,
|
|
|
- // ...m.junkProductList2,
|
|
|
- // ];
|
|
|
- // m.isOutsource = this.isOutsource;
|
|
|
- // return {
|
|
|
- // ...m,
|
|
|
- // };
|
|
|
- // });
|
|
|
- // }
|
|
|
-
|
|
|
- // if (this.clientEnvironmentId == 21) {
|
|
|
- // this.submitText = "领料中";
|
|
|
- // findVoucherList({
|
|
|
- // workOrderId: this.idsList[0],
|
|
|
- // }).then((res) => {
|
|
|
- // // uni.navigateTo({
|
|
|
- // // url: `/pages/pda/picking/index/index?pickStatus=1`,
|
|
|
- // // });
|
|
|
- // uni.showToast({
|
|
|
- // title: "领料成功",
|
|
|
- // mask: true,
|
|
|
- // duration: 1500,
|
|
|
- // });
|
|
|
- // uni.navigateBack({
|
|
|
- // delta: 1,
|
|
|
- // });
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // batchSave(_arr).then((res) => {
|
|
|
- // uni.navigateTo({
|
|
|
- // url: `/pages/pda/picking/index/index?pickStatus=1`,
|
|
|
- // });
|
|
|
- // });
|
|
|
- // }
|
|
|
-
|
|
|
if (this.List.length > 0) {
|
|
|
let bol;
|
|
|
let _i;
|
|
|
@@ -634,39 +547,7 @@ export default {
|
|
|
...m,
|
|
|
};
|
|
|
});
|
|
|
- // this.loadingBtn = true;
|
|
|
-
|
|
|
- // _arr.forEach((item) => {
|
|
|
- // item.pickList.forEach((it) => {
|
|
|
- // const warehousePick = [];
|
|
|
- // if (it.warehouseIdList.length != 0) {
|
|
|
- // it.warehouseIdList.forEach((i) => {
|
|
|
- // const data = it.warehouseList.find((ii) => ii.id == i);
|
|
|
- // if (data) {
|
|
|
- // warehousePick.push({
|
|
|
- // availableCountBase: data.availableCountBase,
|
|
|
- // demandQuantity: data.demandQuantity,
|
|
|
- // warehouseId: data.id
|
|
|
- // });
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
- // it.warehousePick = warehousePick;
|
|
|
- // });
|
|
|
- // });
|
|
|
- // console.log(_arr, "_arr");
|
|
|
- // return;
|
|
|
-
|
|
|
- // if (this.clientEnvironmentId == 21) {
|
|
|
- // let param = {
|
|
|
- // workOrderId: this.workListIds[0],
|
|
|
- // pickingCode: this.pickCode
|
|
|
- // };
|
|
|
- // znfindVoucherList(param).then((res) => {
|
|
|
- // this.loadingBtn = false;
|
|
|
- // this.$message.success('领料成功');
|
|
|
- // });
|
|
|
- // }
|
|
|
+
|
|
|
let param = {
|
|
|
allPickList: _arr,
|
|
|
pickName: this.pickName,
|
|
|
@@ -801,8 +682,6 @@ export default {
|
|
|
ids: this.idsList,
|
|
|
taskId: this.taskId,
|
|
|
}).then((res) => {
|
|
|
- console.log("领料列表", res);
|
|
|
-
|
|
|
this.List = res.map((m) => {
|
|
|
m.workOrderId = m.id;
|
|
|
let modelList = [];
|
|
|
@@ -825,6 +704,8 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ m.bomDetailDTOS = [];
|
|
|
+
|
|
|
m["modelList"] = modelList;
|
|
|
m["palletList"] = palletList;
|
|
|
m["pickList"] = bomList;
|
|
|
@@ -849,7 +730,6 @@ export default {
|
|
|
|
|
|
console.log(m, "mmmm");
|
|
|
|
|
|
- // delete m.id;
|
|
|
return {
|
|
|
...m,
|
|
|
};
|
|
|
@@ -956,7 +836,7 @@ export default {
|
|
|
];
|
|
|
uni.setStorageSync(storageKey, arr);
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/pda/workOrder/search/index?id=${id}&storageKey=${storageKey}&isType=pick&taskId=${this.taskId}`,
|
|
|
+ url: `/pages/pda/workOrder/search/newIndex?id=${id}&storageKey=${storageKey}&isType=pick&taskId=${this.taskId}`,
|
|
|
});
|
|
|
},
|
|
|
|
|
|
@@ -1003,209 +883,369 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.select {
|
|
|
+/* ========== 页面容器 ========== */
|
|
|
+.page-container {
|
|
|
+ height: 100vh;
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- padding: 5rpx 0;
|
|
|
- width: 150rpx;
|
|
|
- background-color: #157a2c;
|
|
|
- color: #fff;
|
|
|
- font-size: 24rpx;
|
|
|
- border-radius: 5rpx;
|
|
|
-}
|
|
|
-
|
|
|
-.u-reset-button-ii {
|
|
|
- position: relative;
|
|
|
- right: -251rpx;
|
|
|
- width: 200rpx;
|
|
|
+ flex-direction: column;
|
|
|
+ background-color: $uni-bg-color-grey;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
|
|
|
-.content-box {
|
|
|
- height: 100vh;
|
|
|
- overflow: hidden;
|
|
|
+/* ========== 刷新库存按钮栏 ========== */
|
|
|
+.refresh-bar {
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
+ justify-content: flex-end;
|
|
|
+ padding: 16rpx 24rpx 0;
|
|
|
+
|
|
|
+ .refresh-btn {
|
|
|
+ min-width: 180rpx;
|
|
|
+ border-radius: 32rpx;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-.list_box {
|
|
|
+/* ========== 滚动区域 ========== */
|
|
|
+.scroll-area {
|
|
|
flex: 1;
|
|
|
overflow: hidden;
|
|
|
- padding: 4rpx 0;
|
|
|
|
|
|
.u-list {
|
|
|
height: 100% !important;
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
- .card_box {
|
|
|
- padding: 16rpx 24rpx;
|
|
|
- }
|
|
|
+/* ========== 工单卡片 ========== */
|
|
|
+.order-card {
|
|
|
+ margin: 20rpx 24rpx;
|
|
|
+ padding: 24rpx;
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
|
|
|
+}
|
|
|
|
|
|
- .title_box {
|
|
|
- .round {
|
|
|
- width: 32rpx;
|
|
|
- height: 32rpx;
|
|
|
- line-height: 32rpx;
|
|
|
- border-radius: 50%;
|
|
|
- background: $theme-color;
|
|
|
- color: #fff;
|
|
|
- text-align: center;
|
|
|
- font-size: 20rpx;
|
|
|
- }
|
|
|
+/* ========== 卡片头部 ========== */
|
|
|
+.card-header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding-bottom: 20rpx;
|
|
|
+ border-bottom: 1rpx solid $border-color;
|
|
|
+
|
|
|
+ .header-left {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex: 1;
|
|
|
+ min-width: 0;
|
|
|
+ }
|
|
|
|
|
|
- .code {
|
|
|
- margin-left: 16rpx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-size: 28rpx;
|
|
|
- font-style: normal;
|
|
|
- font-weight: 400;
|
|
|
- color: $theme-color;
|
|
|
- }
|
|
|
+ .serial-num {
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ line-height: 40rpx;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: $theme-color;
|
|
|
+ color: #fff;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 24rpx;
|
|
|
+ flex-shrink: 0;
|
|
|
}
|
|
|
|
|
|
- .material {
|
|
|
- margin-top: 10rpx;
|
|
|
+ .order-code {
|
|
|
+ margin-left: 16rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-weight: 500;
|
|
|
+ color: $theme-color;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
|
|
|
- .left {
|
|
|
- width: 40rpx;
|
|
|
- }
|
|
|
+ .header-right {
|
|
|
+ flex-shrink: 0;
|
|
|
+ margin-left: 16rpx;
|
|
|
+ }
|
|
|
|
|
|
- .zdy_check {
|
|
|
- width: 30rpx;
|
|
|
- height: 30rpx;
|
|
|
- border: 2rpx solid #c8c9cc;
|
|
|
- border-radius: 4rpx;
|
|
|
- }
|
|
|
+ .add-btn {
|
|
|
+ border-radius: 32rpx;
|
|
|
+ min-width: 150rpx;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- .check_active {
|
|
|
- background: $theme-color;
|
|
|
- border: 2rpx solid $theme-color;
|
|
|
+/* ========== 操作栏 ========== */
|
|
|
+.action-bar {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 16rpx 0;
|
|
|
+}
|
|
|
|
|
|
- /deep/ .u-icon__icon {
|
|
|
- color: #fff !important;
|
|
|
- }
|
|
|
- }
|
|
|
+.select-all-btn {
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ padding: 8rpx 24rpx;
|
|
|
+ background-color: $theme-color;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 24rpx;
|
|
|
+ border-radius: 32rpx;
|
|
|
+ line-height: 1.4;
|
|
|
+}
|
|
|
|
|
|
- .content_table {
|
|
|
- width: 652rpx;
|
|
|
- border: 2rpx solid $border-color;
|
|
|
-
|
|
|
- .item {
|
|
|
- display: flex;
|
|
|
- border-bottom: 2rpx solid $border-color;
|
|
|
-
|
|
|
- .lable {
|
|
|
- width: 132rpx;
|
|
|
- text-align: center;
|
|
|
- background-color: #f7f9fa;
|
|
|
- font-size: 26rpx;
|
|
|
- border-right: 2rpx solid $border-color;
|
|
|
- flex-shrink: 0;
|
|
|
- }
|
|
|
+/* ========== 物料项 ========== */
|
|
|
+.material-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-start;
|
|
|
+ margin-top: 16rpx;
|
|
|
+ padding-top: 16rpx;
|
|
|
+ border-top: 1rpx dashed $border-color;
|
|
|
+
|
|
|
+ &:first-of-type {
|
|
|
+ border-top: none;
|
|
|
+ padding-top: 0;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- .ww80 {
|
|
|
- width: 80rpx;
|
|
|
- }
|
|
|
+/* 复选框列 */
|
|
|
+.check-col {
|
|
|
+ width: 56rpx;
|
|
|
+ padding-top: 12rpx;
|
|
|
+ flex-shrink: 0;
|
|
|
+}
|
|
|
|
|
|
- .content {
|
|
|
- width: 518rpx;
|
|
|
- min-height: 64rpx;
|
|
|
- font-size: 28rpx;
|
|
|
- line-height: 28rpx;
|
|
|
- font-style: normal;
|
|
|
- font-weight: 400;
|
|
|
- padding: 18rpx 8rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- word-wrap: break-word;
|
|
|
- flex-grow: 1 !important;
|
|
|
- }
|
|
|
+.checkbox {
|
|
|
+ width: 36rpx;
|
|
|
+ height: 36rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ border: 2rpx solid #c8c9cc;
|
|
|
+ border-radius: 6rpx;
|
|
|
+ transition: all 0.2s;
|
|
|
|
|
|
- .content_num {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- padding: 0 4rpx;
|
|
|
+ &--active {
|
|
|
+ background: $theme-color;
|
|
|
+ border-color: $theme-color;
|
|
|
|
|
|
- /deep/ .uni-input-input {
|
|
|
- border: 2rpx solid #f0f8f2;
|
|
|
- background: #f0f8f2;
|
|
|
- color: $theme-color;
|
|
|
- }
|
|
|
+ /deep/ .u-icon__icon {
|
|
|
+ color: #fff !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- .unit {
|
|
|
- width: 90rpx;
|
|
|
- text-align: center;
|
|
|
- font-size: 24rpx;
|
|
|
- color: #404446;
|
|
|
- }
|
|
|
- }
|
|
|
+/* ========== 物料详情表格 ========== */
|
|
|
+.material-detail {
|
|
|
+ flex: 1;
|
|
|
+ min-width: 0;
|
|
|
+ border: 1rpx solid $border-color;
|
|
|
+ border-radius: 8rpx;
|
|
|
+}
|
|
|
|
|
|
- .pd4 {
|
|
|
- padding: 4rpx 8rpx;
|
|
|
- }
|
|
|
+.detail-row {
|
|
|
+ display: flex;
|
|
|
+ border-bottom: 1rpx solid $border-color;
|
|
|
|
|
|
- &:last-child {
|
|
|
- border-bottom: none;
|
|
|
- }
|
|
|
- }
|
|
|
+ &:last-child {
|
|
|
+ border-bottom: none;
|
|
|
+ }
|
|
|
|
|
|
- .ww55 {
|
|
|
- width: 55%;
|
|
|
- }
|
|
|
+ &--split {
|
|
|
+ .split-cell {
|
|
|
+ display: flex;
|
|
|
+ flex: 1;
|
|
|
+ min-width: 0;
|
|
|
|
|
|
- .ww45 {
|
|
|
- width: 45%;
|
|
|
+ &--left {
|
|
|
+ border-right: 1rpx solid $border-color;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.ellipsis {
|
|
|
- white-space: nowrap; /* 强制不换行 */
|
|
|
- overflow: hidden; /* 超出部分隐藏 */
|
|
|
- text-overflow: ellipsis; /* 显示省略号 */
|
|
|
+.detail-label {
|
|
|
+ width: 140rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ background-color: #f7f9fa;
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: $uni-text-regular-color;
|
|
|
+ border-right: 1rpx solid $border-color;
|
|
|
+ flex-shrink: 0;
|
|
|
+ padding: 12rpx 8rpx;
|
|
|
+ text-align: center;
|
|
|
+ word-break: keep-all;
|
|
|
+
|
|
|
+ &--sm {
|
|
|
+ width: 100rpx;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.detail-value {
|
|
|
+ flex: 1;
|
|
|
+ min-width: 0;
|
|
|
+ min-height: 64rpx;
|
|
|
+ font-size: 26rpx;
|
|
|
+ line-height: 1.5;
|
|
|
+ color: $uni-text-color;
|
|
|
+ padding: 12rpx 16rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ word-break: break-all;
|
|
|
+
|
|
|
+ &--input {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 6rpx 8rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ &--stock {
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: flex-start;
|
|
|
+ padding: 8rpx 16rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ &--select {
|
|
|
+ padding: 4rpx 8rpx;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-.bottom-wrapper {
|
|
|
- .btn_box {
|
|
|
- width: 750rpx;
|
|
|
- height: 88rpx;
|
|
|
- line-height: 88rpx;
|
|
|
- background: $theme-color;
|
|
|
- text-align: center;
|
|
|
- font-size: 36rpx;
|
|
|
- font-style: normal;
|
|
|
- font-weight: 400;
|
|
|
- color: #fff;
|
|
|
+.delete-btn {
|
|
|
+ width: 60rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ flex-shrink: 0;
|
|
|
+ border-left: 1rpx solid #e3e5e5;
|
|
|
+ background-color: #fff5f5;
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ background-color: #fee;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.flex_btn {
|
|
|
- position: fixed;
|
|
|
+.text-ellipsis {
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ display: block;
|
|
|
+}
|
|
|
|
|
|
+/* 数量输入 */
|
|
|
+.qty-input {
|
|
|
+ flex: 1;
|
|
|
+ height: 52rpx;
|
|
|
+ border: 2rpx solid #e8f5e9;
|
|
|
+ background: #f0f8f2;
|
|
|
+ border-radius: 8rpx;
|
|
|
+ padding: 0 12rpx;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: $theme-color;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.qty-unit {
|
|
|
+ width: 80rpx;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: $uni-text-color-grey;
|
|
|
+ flex-shrink: 0;
|
|
|
+}
|
|
|
+
|
|
|
+/* 库存信息 */
|
|
|
+.stock-item {
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: $uni-text-color;
|
|
|
+ padding: 4rpx 0;
|
|
|
+ line-height: 1.6;
|
|
|
+}
|
|
|
+
|
|
|
+.stock-num {
|
|
|
+ color: $theme-color;
|
|
|
+ font-weight: 600;
|
|
|
+}
|
|
|
+
|
|
|
+/* ========== 子组件区域 ========== */
|
|
|
+.sub-components {
|
|
|
+ margin-top: 20rpx;
|
|
|
+}
|
|
|
+
|
|
|
+/* ========== 已有领料单按钮 ========== */
|
|
|
+.exist-pick-btn {
|
|
|
+ position: fixed;
|
|
|
right: 0;
|
|
|
- bottom: 160rpx;
|
|
|
- width: 140rpx;
|
|
|
- height: 66rpx;
|
|
|
- line-height: 66rpx;
|
|
|
- border-radius: 22rpx 0 0 22rpx;
|
|
|
+ bottom: 180rpx;
|
|
|
+ padding: 14rpx 24rpx;
|
|
|
+ border-radius: 32rpx 0 0 32rpx;
|
|
|
background: $theme-color;
|
|
|
- text-align: center;
|
|
|
- font-size: 22rpx;
|
|
|
- font-style: normal;
|
|
|
- font-weight: 400;
|
|
|
color: #fff;
|
|
|
+ font-size: 24rpx;
|
|
|
+ box-shadow: 0 4rpx 12rpx rgba(21, 122, 44, 0.3);
|
|
|
+ z-index: 10;
|
|
|
}
|
|
|
|
|
|
-.out_box {
|
|
|
- margin: 20rpx;
|
|
|
+/* ========== 委外领料 ========== */
|
|
|
+.outsource-bar {
|
|
|
+ padding: 30rpx 0;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
+}
|
|
|
+
|
|
|
+.outsource-link {
|
|
|
color: $theme-color;
|
|
|
font-size: 28rpx;
|
|
|
+ text-decoration: underline;
|
|
|
+}
|
|
|
+
|
|
|
+/* ========== 弹窗 ========== */
|
|
|
+.popup-content {
|
|
|
+ width: 600rpx;
|
|
|
+ padding: 40rpx 32rpx 32rpx;
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 16rpx;
|
|
|
}
|
|
|
|
|
|
-.popup_list {
|
|
|
- width: 400rpx;
|
|
|
- height: 400rpx;
|
|
|
+.popup-title {
|
|
|
+ font-size: 32rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ color: $uni-text-color;
|
|
|
+ text-align: center;
|
|
|
+ margin-bottom: 32rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.popup-body {
|
|
|
+ margin-bottom: 40rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.popup-footer {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ gap: 24rpx;
|
|
|
+
|
|
|
+ .popup-btn {
|
|
|
+ flex: 1;
|
|
|
+ border-radius: 32rpx;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/* ========== 底部提交栏 ========== */
|
|
|
+.footer-bar {
|
|
|
+ flex-shrink: 0;
|
|
|
+
|
|
|
+ .submit-btn {
|
|
|
+ width: 100%;
|
|
|
+ height: 100rpx;
|
|
|
+ line-height: 100rpx;
|
|
|
+ background: $theme-color;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 34rpx;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #fff;
|
|
|
+ letter-spacing: 4rpx;
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ opacity: 0.85;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|