Browse Source

完善优惠包交接

master
yunuo970428 2 years ago
parent
commit
f9bb33e075
  1. 18
      anrui-buscenter/anrui-buscenter-ui/src/api/discountpackagehandover/discountpackagehandover.js
  2. 4
      anrui-buscenter/anrui-buscenter-ui/src/views/discountpackagehandover/discountpackagehandoverAdd.vue
  3. 4
      anrui-buscenter/anrui-buscenter-ui/src/views/discountpackagehandover/discountpackagehandoverAddByXiaoShou.vue

18
anrui-buscenter/anrui-buscenter-ui/src/api/discountpackagehandover/discountpackagehandover.js

@ -32,10 +32,22 @@ export function uploadPicture(data) {
})
}
// 优惠包准备
export function toDohandover(data) {
// 优惠包完成
export function handoverReady(data) {
return request({
url: '/buscenter/v1/busdiscountpackagehandover/handoverReady',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 优惠包确认
export function handoverConfirm(data) {
return request({
url: '/buscenter/v1/busdiscountpackagehandover/toDohandover',
url: '/buscenter/v1/busdiscountpackagehandover/handoverConfirm',
method: 'post',
data: data,
headers: {

4
anrui-buscenter/anrui-buscenter-ui/src/views/discountpackagehandover/discountpackagehandoverAdd.vue

@ -101,7 +101,7 @@
</template>
<script>
import { handover, toDohandover } from '@/api/discountpackagehandover/discountpackagehandover'
import { handover, handoverReady } from '@/api/discountpackagehandover/discountpackagehandover'
export default {
name: 'YouHuiBaoAdd',
@ -147,7 +147,7 @@ export default {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
toDohandover(this.formobj).then((resp) => {
handoverReady(this.formobj).then((resp) => {
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.handleReturn('true')

4
anrui-buscenter/anrui-buscenter-ui/src/views/discountpackagehandover/discountpackagehandoverAddByXiaoShou.vue

@ -129,7 +129,7 @@
</template>
<script>
import { handover, toDohandover } from '@/api/discountpackagehandover/discountpackagehandover'
import { handover, handoverConfirm } from '@/api/discountpackagehandover/discountpackagehandover'
import uploadImg from '@/components/uploadFile/uploadImg'
export default {
@ -193,7 +193,7 @@ export default {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
toDohandover(this.formobj).then((resp) => {
handoverConfirm(this.formobj).then((resp) => {
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.handleReturn('true')

Loading…
Cancel
Save