chenrui 2 éve
szülő
commit
37966e37f3

+ 2 - 1
src/views/purchasingManagement/purchaseReturn/detailModal.vue

@@ -152,10 +152,11 @@ export default {
       } else {
         this.getStatisticsData()
         this.getBasicsInfo()
+        this.$refs.tableDetail.refresh(true)
       }
     },
     itemSn (newValue, oldValue) {
-      if (this.isShow && newValue) {
+      if (this.isShow && !newValue) {
         const _this = this
         setTimeout(() => {
           _this.$refs.tableDetail.refresh(true)

+ 3 - 0
src/views/reportData/urchaseDetailReturn/detailList.vue

@@ -326,6 +326,9 @@ export default {
       const _this = this
       this.$refs.ruleForm.validate(valid => {
         if (valid) {
+          if (!_this.queryParam.supplier.supplierSn) {
+            _this.queryParam.supplier.supplierName = undefined
+          }
           _this.$refs.table.refresh(true)
         } else {
           return false