|
@@ -240,11 +240,18 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
async getDetail(id) {
|
|
async getDetail(id) {
|
|
|
- const detailType = this.type == 'receipt' ? 2 : 1;
|
|
|
|
|
- await pleaseEntrustGoodsDetail({
|
|
|
|
|
|
|
+ let detailType = this.type == 'receipt' ? 2 : 1;
|
|
|
|
|
+ const params = {
|
|
|
id,
|
|
id,
|
|
|
detailType
|
|
detailType
|
|
|
- }).then(async (res) => {
|
|
|
|
|
|
|
+ };
|
|
|
|
|
+ if(this.type === "detail" || this.type === "receipt") {
|
|
|
|
|
+ params.detailType = 1;
|
|
|
|
|
+ }
|
|
|
|
|
+ if(this.type === 'receipt') {
|
|
|
|
|
+ params.status = 2;
|
|
|
|
|
+ }
|
|
|
|
|
+ await pleaseEntrustGoodsDetail(params).then(async (res) => {
|
|
|
this.goodsList = [];
|
|
this.goodsList = [];
|
|
|
res.data.forEach((item) => {
|
|
res.data.forEach((item) => {
|
|
|
if (this.type == 'receipt' && this.itemData.sendStatus != 4) {
|
|
if (this.type == 'receipt' && this.itemData.sendStatus != 4) {
|