Commit 6ddb30e3 authored by 黄奎's avatar 黄奎

报价单详情修改

parent 9fb0caef
......@@ -302,4 +302,15 @@ export function queryCourseOfferInfo(data) {
data
})
}
/**
* 设置报价单状态
*/
export function saveCourseOfferCustomerStatus(data) {
return request({
url: "/CourseOffer/SetCourseOfferCustomerStatus",
method: 'post',
data
})
}
\ No newline at end of file
......@@ -115,7 +115,7 @@
<q-btn color="primary" flat label="获取二维码"></q-btn>
</div>
<div class="col-auto">
<q-btn color="dark" label="撤销报价单"></q-btn>
<q-btn color="dark" label="撤销报价单" @click="setOfferStatus"></q-btn>
</div>
</div>
</div>
......@@ -131,6 +131,7 @@
<script>
import {
queryCourseOfferInfo,
saveCourseOfferCustomerStatus
} from '../../api/course/index'
import print from "print-js";
import html2canvas from "html2canvas";
......@@ -163,6 +164,28 @@
}
},
methods: {
//设置报价单状态
setOfferStatus() {
this.$confirm('是否撤销此报价单?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
saveCourseOfferCustomerStatus({
Id: this.Id,
CustomerStatus: 3
}).then(res => {
if (res.Code == 1) {
this.$message.success("撤销成功!")
this.$router.push({
path: "/sale/courseoffer",
});
} else {
this.$message.error(res.Data.Message);
}
})
})
},
//获取报价单详情
getDetails() {
queryCourseOfferInfo({
......
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