Commit 46d20eba authored by chuan.liu's avatar chuan.liu

月度调整计划联调

parent 1a72fc49
let removeConsole = [] const plugins = [
[
'import',
{
libraryName: 'vant',
libraryDirectory: 'es',
style: true
}
]
]
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
removeConsole = ['transform-remove-console', { exclude: ['error', 'warn'] }] plugins.push(['transform-remove-console', { exclude: ['error', 'warn'] }])
} }
module.exports = { module.exports = {
presets: ['@vue/cli-plugin-babel/preset'], presets: ['@vue/cli-plugin-babel/preset'],
plugins: [ plugins
[
'import',
{
libraryName: 'vant',
libraryDirectory: 'es',
style: true
}
],
removeConsole
]
} }
...@@ -30,10 +30,11 @@ export function apiExportMonthPlanOrder(data) { ...@@ -30,10 +30,11 @@ export function apiExportMonthPlanOrder(data) {
* 根据id查询月计划发货申请 * 根据id查询月计划发货申请
* @param {*} params * @param {*} params
*/ */
export function apiMonthplanAdjustFindById({ id }) { export function apiMonthplanAdjustFindById(data) {
return request({ return request({
url: BASE_API() + '/monthplanadjuseimport/findById?id=' + id, url: BASE_API() + '/monthplanadjuseimport/findById',
method: 'post' method: 'post',
params: data
}) })
} }
......
...@@ -132,6 +132,8 @@ export default { ...@@ -132,6 +132,8 @@ export default {
console.log('22asssssss', res) console.log('22asssssss', res)
if (res.status === 1) { if (res.status === 1) {
Toast('提交成功') Toast('提交成功')
window.opener = null
window.open('', '_self', '')
window.close() window.close()
} }
} }
......
...@@ -103,7 +103,11 @@ export default { ...@@ -103,7 +103,11 @@ export default {
}, },
methods: { methods: {
initDetail() { initDetail() {
apiMonthplanAdjustFindById(this.conditions).then(res => { const params = {
id: this.conditions.id,
type: this.this.$route.query.type
}
apiMonthplanAdjustFindById(params).then(res => {
console.log(res.data) console.log(res.data)
res.data.pyear += '' res.data.pyear += ''
this.conditions = { ...this.conditions, ...res.data } this.conditions = { ...this.conditions, ...res.data }
......
...@@ -335,6 +335,8 @@ export default { ...@@ -335,6 +335,8 @@ export default {
console.log('22asssssss', res) console.log('22asssssss', res)
if (res.status === 1) { if (res.status === 1) {
Toast('提交成功') Toast('提交成功')
window.opener = null
window.open('', '_self', '')
window.close() window.close()
} }
} }
......
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