lilei 2 giorni fa
parent
commit
c69cd2f3b9

+ 5 - 7
src/views/salesReturnManagement/custConfirm/chooseImportModal.vue

@@ -54,7 +54,7 @@
           type="primary"
           id="chooseImport-submit"
           size="large"
-          :class="unLoadData.length?'button-grey':'button-primary'"
+          :class="loadData.length?'button-primary':'button-grey'"
           @click="handleSubmit"
           style="padding: 0 40px;">确认导入</a-button>
         <a-button
@@ -135,12 +135,12 @@ export default {
     },
     // 确认导入
     handleSubmit () {
-      if (this.unLoadData.length) {
-        this.$message.warning('有错误数据不可导入,请修改正确后再试!')
-      } else {
+      if (this.loadData.length) {
         const data = this.paramsData.rightList
         this.$emit('ok', data)
         this.isShow = false
+      } else {
+        this.$message.info('暂无可导入数据!')
       }
     },
     // 导出
@@ -150,11 +150,9 @@ export default {
         _this.$message.info('暂无可导出错误项~')
         return
       }
-      const rightList = _this.paramsData.rightList || []
       const errorList = _this.paramsData.errorList || []
-      const exportData = errorList.concat(rightList)
       _this.spinning = true
-      hdExportExcel(salesReturnDetailExportErrorUpdatePrice, exportData, '批量导入修改价格错误项', function () {
+      hdExportExcel(salesReturnDetailExportErrorUpdatePrice, errorList, '批量导入修改价格错误项', function () {
         _this.spinning = false
       })
     }