|
|
@ -50,7 +50,7 @@ export default { |
|
|
|
<el-step title="发票明细对比" /> |
|
|
|
<el-step title="发票预览" /> |
|
|
|
</el-steps> |
|
|
|
<div v-show="setupRef===1" style="height:100%;"> |
|
|
|
<div class="setup1" v-show="setupRef===1" style="height:calc(100% - 120px);"> |
|
|
|
<el-row style="padding:14px 0;height:60px;"> |
|
|
|
<el-col> |
|
|
|
<el-button type="primary" @click="showAddAdjDialog">新建</el-button> |
|
|
@ -60,27 +60,25 @@ export default { |
|
|
|
</el-row> |
|
|
|
<el-scrollbar ref="scrollRef"> |
|
|
|
<el-row style="height:100%;"> |
|
|
|
<el-col style="height:calc(100% - 180px);"> |
|
|
|
<el-col style="height:calc(100% - 60px);"> |
|
|
|
<app-table ref="adjListRef" :data="adjList" :columns="columns5" /> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-scrollbar> |
|
|
|
</div> |
|
|
|
<div v-show="setupRef===2" style="height:100%;"> |
|
|
|
<el-row style="padding:14px 0;height:60px;"> |
|
|
|
<el-col> |
|
|
|
<el-button type="primary" @click="showAddAdjDialog">新建</el-button> |
|
|
|
<el-button type="primary" @click="showImportAdjDialog">导入</el-button> |
|
|
|
<el-button type="primary" @click="deleteAdj">删除</el-button> |
|
|
|
<div class="setup2" v-show="setupRef===2" style="height:calc(100% - 60px);background:#ebeef5;"> |
|
|
|
<el-row style="width:100%;height:100%;padding:10px;"> |
|
|
|
<el-col :span="12" style="height:100%;padding:0 5px 0 0;"> |
|
|
|
<el-scrollbar> |
|
|
|
<app-table :data="model.invoicE_WAIT_DETAIL" :columns="columns2" /> |
|
|
|
</el-scrollbar> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-scrollbar ref="scrollRef"> |
|
|
|
<el-row style="height:100%;"> |
|
|
|
<el-col style="height:calc(100% - 180px);"> |
|
|
|
<app-table ref="adjListRef" :data="adjList" :columns="columns5" /> |
|
|
|
<el-col :span="12" style="height:100%;padding:0 0 0 5px;"> |
|
|
|
<el-scrollbar> |
|
|
|
<app-table :data="model.invoicE_WAIT_DETAIL" :columns="columns2" /> |
|
|
|
</el-scrollbar> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-scrollbar> |
|
|
|
</div> |
|
|
|
<template #footer> |
|
|
|
<span class="dialog-footer"> |
|
|
@ -107,7 +105,7 @@ export default { |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog style="width:380px;height:480px;" align-center destroy-on-close :close-on-click-modal="false" v-model="importDialogVisible"> |
|
|
|
<el-dialog style="width:480px;height:480px;" align-center destroy-on-close :close-on-click-modal="false" v-model="importDialogVisible"> |
|
|
|
<template #header>导入调整明细</template> |
|
|
|
<el-scrollbar> |
|
|
|
<el-row v-loading="loading"> |
|
|
@ -139,10 +137,11 @@ export default { |
|
|
|
.el-dialog__body { |
|
|
|
height: calc(100% - 120px); |
|
|
|
} |
|
|
|
/* |
|
|
|
.re-open .el-scrollbar, |
|
|
|
.re-open .el-scrollbar__view { |
|
|
|
height: calc(100% - 120px); |
|
|
|
} |
|
|
|
} */ |
|
|
|
</style>`, |
|
|
|
props: ["modelValue", "data", "isBusiness"], |
|
|
|
emit: ["update:modelValue"], |
|
|
@ -361,6 +360,9 @@ export default { |
|
|
|
if (valid) { |
|
|
|
adjList.value.unshift(adjModel.value); |
|
|
|
addDialogVisible.value = false; |
|
|
|
nextTick(() => { |
|
|
|
scrollRef.value.update(); |
|
|
|
}); |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.log(error); |
|
|
@ -406,6 +408,9 @@ export default { |
|
|
|
if (!result.errors) { |
|
|
|
adjList.value = result.data; |
|
|
|
importDialogVisible.value = false; |
|
|
|
nextTick(() => { |
|
|
|
scrollRef.value.update(); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
@ -431,7 +436,7 @@ export default { |
|
|
|
console.log(e); |
|
|
|
} |
|
|
|
} else { |
|
|
|
setupRef += 1; |
|
|
|
setupRef.value += 1; |
|
|
|
} |
|
|
|
}; |
|
|
|
const submitReOpen = async () => {}; |
|
|
|