Commit a4efb7db by chenwq

对账单模版校验

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