소스 검색

修改bug

chenrui 2 년 전
부모
커밋
37966e37f3
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/purchasingManagement/purchaseReturn/detailModal.vue
  2. 3 0
      src/views/reportData/urchaseDetailReturn/detailList.vue

+ 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