|
|
@@ -66,6 +66,7 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
+ pleaseEntrustAllGoodsDetail,
|
|
|
pleaseEntrustGoodsDetail,
|
|
|
pleaseEntrustSaveDetail,
|
|
|
pleaseTReceiveGoods
|
|
|
@@ -214,7 +215,7 @@
|
|
|
await pleaseEntrustGoodsDetail({
|
|
|
id,
|
|
|
detailType
|
|
|
- }).then((res) => {
|
|
|
+ }).then(async (res) => {
|
|
|
this.goodsList = [];
|
|
|
res.data.forEach((item) => {
|
|
|
if (this.type == 'receipt' && this.itemData.sendStatus != 4) {
|
|
|
@@ -222,6 +223,25 @@
|
|
|
}
|
|
|
this.goodsList.push(this.deepCopy(item));
|
|
|
});
|
|
|
+
|
|
|
+ if (
|
|
|
+ this.type != 'receipt' &&
|
|
|
+ this.type != 'detail' &&
|
|
|
+ !this.goodsList.length
|
|
|
+ ) {
|
|
|
+ await this.getPreDetail(id);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ async getPreDetail(id) {
|
|
|
+ await pleaseEntrustAllGoodsDetail({
|
|
|
+ id
|
|
|
+ }).then((res) => {
|
|
|
+ this.goodsList = [];
|
|
|
+ res.data.forEach((item) => {
|
|
|
+ this.goodsList.push(this.deepCopy(item));
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
|