|
|
@@ -236,6 +236,13 @@
|
|
|
];
|
|
|
}
|
|
|
},
|
|
|
+ watch:{
|
|
|
+ visible(newVal, oldVal) {
|
|
|
+ if(!newVal) {
|
|
|
+ this.goodsList = [];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
methods: {
|
|
|
// 根据后端 status 返回对应的展示文案和 el-tag 类型,未匹配时回落为驳回
|
|
|
@@ -276,6 +283,8 @@
|
|
|
// isReceiptDetail 在 open() 里已经重置,此处只处理 params
|
|
|
}
|
|
|
|
|
|
+ if(this.type === "add") return;
|
|
|
+
|
|
|
await pleaseEntrustGoodsDetail(params).then(async (res) => {
|
|
|
this.goodsList = [];
|
|
|
res.data.forEach((item) => {
|