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