|
@@ -56,6 +56,13 @@
|
|
|
class="button-cancel"
|
|
|
@click="isShow=false"
|
|
|
style="padding: 0 60px;margin-left: 15px;">取消</a-button>
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ id="chooseImport-error"
|
|
|
+ size="large"
|
|
|
+ class="button-error"
|
|
|
+ @click="handleError"
|
|
|
+ style="padding: 0 40px;margin-left: 15px;">导出错误项</a-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-spin>
|
|
@@ -64,7 +71,9 @@
|
|
|
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
+import { hdPrint } from '@/libs/JGPrint'
|
|
|
import { purchaseDetailParseProducts, purchaseDetailBatchInsert } from '@/api/purchase'
|
|
|
+import { purchaseDetailDownloadFail } from '@/api/purchaseDetail'
|
|
|
export default {
|
|
|
name: 'ChooseImportModal',
|
|
|
mixins: [commonMixin],
|
|
@@ -140,6 +149,19 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ // 导出
|
|
|
+ handleError () {
|
|
|
+ const _this = this
|
|
|
+ if (_this.unLoadData.length < 1) {
|
|
|
+ _this.$message.info('暂无可导出错误项~')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _this.spinning = true
|
|
|
+ // 导出
|
|
|
+ hdPrint('', 'export', purchaseDetailDownloadFail, _this.unLoadData, '产品导入错误项', function () {
|
|
|
+ _this.spinning = false
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
watch: {
|