|
|
@ -3,6 +3,7 @@ import { updatePurchase, createPurchase, paperCategoryList, getPurchaseInfo } fr |
|
|
import regions from '../../../utils/region' |
|
|
import regions from '../../../utils/region' |
|
|
const math = require('../../../utils/math') |
|
|
const math = require('../../../utils/math') |
|
|
const util = require('../../../utils/util') |
|
|
const util = require('../../../utils/util') |
|
|
|
|
|
const event = require('../../../utils/event.js') |
|
|
const app = getApp() |
|
|
const app = getApp() |
|
|
|
|
|
|
|
|
Page({ |
|
|
Page({ |
|
|
@ -212,6 +213,10 @@ Page({ |
|
|
updatePurchase(this.data.form).then(result => { |
|
|
updatePurchase(this.data.form).then(result => { |
|
|
//成功回调
|
|
|
//成功回调
|
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
|
|
|
|
event.emit('EventMessage', { |
|
|
|
|
|
what: 412, |
|
|
|
|
|
desc: 'GoodsCreate' |
|
|
|
|
|
}) |
|
|
util.showBackToast('修改成功!') |
|
|
util.showBackToast('修改成功!') |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
//异常回调
|
|
|
//异常回调
|
|
|
|