Commit 70796dd0 authored by 黄奎's avatar 黄奎

页面修改

parent 5f0c97c5
......@@ -82,3 +82,39 @@ export function GetEduReceiptInfo (data) {
data
})
}
/**
* 单据作废
* @param {JSON参数} data
*/
export function invalidReceiptInfo(data) {
return request({
url: '/EducationReceipt/InvalidReceipt',
method: 'post',
data
})
}
/**
* 获取当前单据审核人员
* @param {JSON参数} data
*/
export function queryCurrentAuditMan(data) {
return request({
url: '/EducationReceipt/GetCurrentAuditMan',
method: 'post',
data
})
}
/**
* 修改当前单据审核人员
* @param {JSON参数} data
*/
export function saveAuditMan(data) {
return request({
url: '/EducationReceipt/EditAuditMan',
method: 'post',
data
})
}
......@@ -99,7 +99,8 @@
<script>
import {
GetEducationReceiptPage,
GetEducationReceiptType
GetEducationReceiptType,
invalidReceiptInfo
} from '../../api/teacher/index'
import backbillForm from '../../components/sale/backbill-form';
......@@ -293,8 +294,43 @@
}).catch(() => {})
},
//作废
invalidBillForm(){
invalidBillForm(item){
let delMsg = {
Id: item.Id,
};
var message = "是否要作废此单据?";
this.$q.dialog({
title: '提示信息',
message: message,
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
invalidReceiptInfo(delMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '删除成功!',
position: 'top'
})
this.refreshPage();
} else {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: res.Message,
position: 'top'
})
}
})
}).onCancel(() => {
});
}
},
watch: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment