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

月度调整计划联调

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