|
@@ -46,20 +46,28 @@
|
|
|
size="large"
|
|
|
:class="loadData.length==0?'button-grey':'button-primary'"
|
|
|
@click="handleSubmit"
|
|
|
- style="padding: 0 60px;">确认导入</a-button>
|
|
|
+ style="padding: 0 40px;">确认导入</a-button>
|
|
|
<a-button
|
|
|
id="chooseImport-cancel"
|
|
|
size="large"
|
|
|
class="button-cancel"
|
|
|
@click="isShow=false"
|
|
|
- style="padding: 0 60px;margin-left: 15px;">取消</a-button>
|
|
|
+ style="padding: 0 40px;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-modal>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { allocateBillParseProducts } from '@/api/allocateBill'
|
|
|
+import { hdExportExcel } from '@/libs/exportExcel'
|
|
|
+import { allocateBillParseProducts, allocateBillFailExcel } from '@/api/allocateBill'
|
|
|
export default {
|
|
|
name: 'ChooseImportModal',
|
|
|
props: {
|
|
@@ -129,6 +137,18 @@ export default {
|
|
|
this.$emit('ok', this.loadData)
|
|
|
this.isShow = false
|
|
|
}
|
|
|
+ },
|
|
|
+ // 导出
|
|
|
+ handleError () {
|
|
|
+ const _this = this
|
|
|
+ if (_this.unLoadData.length < 1) {
|
|
|
+ _this.$message.info('暂无可导出错误项~')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _this.spinning = true
|
|
|
+ hdExportExcel(allocateBillFailExcel, _this.unLoadData, '产品导入错误项', function () {
|
|
|
+ _this.spinning = false
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -159,7 +179,7 @@ export default {
|
|
|
.btn-con{
|
|
|
text-align: center;
|
|
|
margin: 30px 0 20px;
|
|
|
- .button-cancel{
|
|
|
+ .button-cancel,.button-error{
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
}
|