|
@ -63,8 +63,8 @@ export default { |
|
|
<el-step title="发票预览" /> |
|
|
<el-step title="发票预览" /> |
|
|
<el-step title="重开成功" /> |
|
|
<el-step title="重开成功" /> |
|
|
</el-steps> |
|
|
</el-steps> |
|
|
<div v-loading="loading"> |
|
|
<div v-loading="loading" style="height:calc(100% - 60px);"> |
|
|
<div class="setup1" v-show="setupRef===1" style="height:calc(100% - 120px);"> |
|
|
<div class="setup1" v-show="setupRef===1" style="height:100%;"> |
|
|
<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> |
|
@ -80,7 +80,7 @@ export default { |
|
|
</el-row> |
|
|
</el-row> |
|
|
</el-scrollbar> |
|
|
</el-scrollbar> |
|
|
</div> |
|
|
</div> |
|
|
<div class="setup2" v-show="setupRef===2" style="height:calc(100% - 60px);background:#ebeef5;"> |
|
|
<div class="setup2" v-show="setupRef===2" style="height:100%;background:#ebeef5;"> |
|
|
<el-row style="width:100%;height:100%;padding:10px;"> |
|
|
<el-row style="width:100%;height:100%;padding:10px;"> |
|
|
<el-col :span="12" style="height:100%;padding:0 5px 0 0;"> |
|
|
<el-col :span="12" style="height:100%;padding:0 5px 0 0;"> |
|
|
<el-scrollbar> |
|
|
<el-scrollbar> |
|
@ -94,7 +94,7 @@ export default { |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
|
<div class="setup3" v-show="setupRef===3" style="height:calc(100% - 60px);"> |
|
|
<div class="setup3" v-show="setupRef===3" style="height:100%;"> |
|
|
<el-row style="width:100%;height:100%;padding:10px;"> |
|
|
<el-row style="width:100%;height:100%;padding:10px;"> |
|
|
<el-col style="height:100%;padding:0 5px 0 0;"> |
|
|
<el-col style="height:100%;padding:0 5px 0 0;"> |
|
|
<el-scrollbar> |
|
|
<el-scrollbar> |
|
@ -117,7 +117,7 @@ export default { |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
|
<div class="setup4" v-show="setupRef===4" style="height:calc(100% - 60px);"> |
|
|
<div class="setup4" v-show="setupRef===4" style="height:100%;"> |
|
|
<el-row style="width:100%;height:100%;padding:10px;"> |
|
|
<el-row style="width:100%;height:100%;padding:10px;"> |
|
|
<el-col style="height:100%;padding:0 5px 0 0;"> |
|
|
<el-col style="height:100%;padding:0 5px 0 0;"> |
|
|
<el-scrollbar> |
|
|
<el-scrollbar> |
|
@ -488,7 +488,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
const defaultAdjModel = schemaToModel(adjSchema); |
|
|
const defaultAdjModel = schemaToModel(adjSchema); |
|
|
const adjModel = ref(Object.assign({ invBillNum: "" }, defaultAdjModel)); |
|
|
const adjModel = ref(null); |
|
|
const addAdjFormRef = ref(null); |
|
|
const addAdjFormRef = ref(null); |
|
|
const showAddAdjDialog = () => { |
|
|
const showAddAdjDialog = () => { |
|
|
adjModel.value = Object.assign({}, defaultAdjModel); |
|
|
adjModel.value = Object.assign({}, defaultAdjModel); |
|
@ -498,7 +498,7 @@ export default { |
|
|
try { |
|
|
try { |
|
|
const valid = await addAdjFormRef.value.validate(); |
|
|
const valid = await addAdjFormRef.value.validate(); |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
adjList.value.unshift(adjModel.value); |
|
|
adjList.value.unshift(Object.assign({}, adjModel.value)); |
|
|
addDialogVisible.value = false; |
|
|
addDialogVisible.value = false; |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
scrollRef.value.update(); |
|
|
scrollRef.value.update(); |
|
|