Commit 211c7d3d by chenwq

对账单提交

1 parent 2e8884b0
......@@ -54,7 +54,7 @@
</div>
</d2-container>
<ChangeDetailDialog v-if="detailVisible" :detailVisible="detailVisible" :info="info" @dialogClose="handleChangeDetail"></ChangeDetailDialog>
<system-bill-dialog v-if="billVisible" :billVisible="billVisible" :billTmplInfo="billTmplInfo" @handleClose="handleBillVisible"></system-bill-dialog>
<system-bill-dialog v-if="billVisible" :billVisible="billVisible" :billTmplInfo="billTmplInfo" @handleClose="handleBillVisible" @handleConfirm="handleBillDialogConfirm"></system-bill-dialog>
<system-bill-detail-dialog v-if="billDetailVisible" :billVisible="billDetailVisible" :billTmplInfo="billTmplInfo" @handleClose="handleChangeDetailVisible"></system-bill-detail-dialog>
</div>
</template>
......@@ -289,6 +289,11 @@ export default {
this.billVisible = !this.billVisible
},
handleBillDialogConfirm() {
this.handleBillVisible()
this.handleReset()
},
handleEdit(row) {
billDetail({ id: row.id }).then(res => {
this.billTmplInfo = deepClone(res)
......
......@@ -398,7 +398,7 @@ export default {
console.log(dynamicForm)
editBill({json: JSON.stringify(dynamicForm)}).then(res => {
this.$message.success("操作成功")
this.$emit('handleClose')
this.$emit('handleConfirm')
})
} else {
this.$message.error('请检查表单中的必填项')
......
......@@ -477,7 +477,7 @@
</slot>
</d2-dialog>
<tmpl-drawer v-if="tmplDrawerVisible" :tmplDrawerVisible="tmplDrawerVisible" :type="tmplInfo.type" :tmplSelectList="tmplInfo.tmplSelectList" @handleConfirm="handleCustConfirm" @handleClose="handleCustVisible"></tmpl-drawer>
<system-bill-dialog v-if="billVisible" :billVisible="billVisible" :billTmplInfo="billTmplInfo" @handleClose="handleBillVisible"></system-bill-dialog>
<system-bill-dialog v-if="billVisible" :billVisible="billVisible" :billTmplInfo="billTmplInfo" @handleClose="handleBillVisible" @handleConfirm="handleBillVisible"></system-bill-dialog>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!