Commit a4efb7db by chenwq

对账单模版校验

1 parent 4bbac062
...@@ -112,3 +112,9 @@ export function billCancelChange(data) { ...@@ -112,3 +112,9 @@ export function billCancelChange(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.cancelChange' data.method = 'dj.api.smartcarlife.reconciliationBill.cancelChange'
return request(data, "post") return request(data, "post")
} }
// 对账单待取消内容确认
export function tmplCheckField(data) {
data.method = 'dj.api.reconciliation.template.checkField'
return request(data, "post")
}
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<script> <script>
import AccountTmpl from "../accountTmplManage/components/AccountTmpl" import AccountTmpl from "../accountTmplManage/components/AccountTmpl"
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { tmplCheckField } from '@api/accountManage'
export default { export default {
name: 'TmplDrawer', name: 'TmplDrawer',
components: { components: {
...@@ -43,9 +44,15 @@ export default { ...@@ -43,9 +44,15 @@ export default {
this.$emit('handleClose') this.$emit('handleClose')
}, },
handleConfirm() { handleConfirm() {
const params = {
type: this.type,
fieldIds: deepClone(this.$refs.accountTmpl.getSelected())
}
tmplCheckField(params).then(res => {
this.$emit('handleConfirm', { this.$emit('handleConfirm', {
fieldIds: deepClone(this.$refs.accountTmpl.getSelected()) fieldIds: deepClone(this.$refs.accountTmpl.getSelected())
}) })
})
}, },
}, },
mounted() { }, mounted() { },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!