Browse Source

Merge remote-tracking branch 'origin/dev_contract' into dev

test
wanggongfeng 3 years ago
parent
commit
3ffc15c81c
  1. 42
      src/views/components/resiChangeTransfer.vue
  2. 6
      src/views/modules/plugins/change/changedeath.vue
  3. 4
      src/views/modules/plugins/change/changerelocation-add-or-update.vue
  4. 6
      src/views/modules/plugins/change/changerelocation.vue
  5. 6
      src/views/modules/plugins/change/changewelfare.vue
  6. 2
      src/views/modules/plugins/change/resichange.vue
  7. 2
      src/views/modules/plugins/change/resideath.vue
  8. 2
      src/views/modules/plugins/change/resiwelfare.vue

42
src/views/components/resiChangeTransfer.vue

@ -505,7 +505,7 @@ export default {
}, },
async saveForm () { async saveForm () {
const url = '/pli/power/changeRelocation/saveOutOfInfo' const url = '/epmetuser/changeRelocation/saveOutOfInfo'
let noData = new Date() let noData = new Date()
noData = util.dateFormatter(noData, 'time') noData = util.dateFormatter(noData, 'time')
this.dataForm.transferTime = noData this.dataForm.transferTime = noData
@ -513,31 +513,29 @@ export default {
const { data, code, msg } = await requestPost(url, this.dataForm) const { data, code, msg } = await requestPost(url, this.dataForm)
if (code === 0) { if (code === 0) {
// this.$message.success('') this.$message.success('调动成功')
// this.handleCancle()
this.saveFormOld()
// this.handleCancle()
} else { } else {
this.$message.error(msg) this.$message.error(msg)
} }
}, },
async saveFormOld () { // async saveForm () {
const url = '/epmetuser/icusertransferrecord/add' // const url = '/epmetuser/icusertransferrecord/add'
let noData = new Date() // let noData = new Date()
noData = util.dateFormatter(noData, 'time') // noData = util.dateFormatter(noData, 'time')
this.dataForm.transferTime = noData // this.dataForm.transferTime = noData
//
console.log('-----------3--------------') // console.log('-----------3--------------')
console.log(this.dataForm) // console.log(this.dataForm)
const { data, code, msg } = await requestPost(url, this.dataForm) // const { data, code, msg } = await requestPost(url, this.dataForm)
//
if (code === 0) { // if (code === 0) {
this.$message.success('调动成功') // this.$message.success('')
this.handleCancle() // this.handleCancle()
} else { // } else {
this.$message.error(msg) // this.$message.error(msg)
} // }
}, // },
handleCancle () { handleCancle () {
this.resetData() this.resetData()

6
src/views/modules/plugins/change/changedeath.vue

@ -129,11 +129,11 @@ export default {
data () { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/pli/power/rentDeath/page', getDataListURL: '/epmetuser/rentDeath/page',
getDataListIsPage: true, getDataListIsPage: true,
deleteURL: '/pli/power/rentDeath', deleteURL: '/epmetuser/rentDeath',
deleteIsBatch: true, deleteIsBatch: true,
exportURL: '/pli/power/rentDeath/export' exportURL: '/epmetuser/rentDeath/export'
}, },
timeRange: '', timeRange: '',
dataForm: { dataForm: {

4
src/views/modules/plugins/change/changerelocation-add-or-update.vue

@ -234,7 +234,7 @@ export default {
}, },
// //
getInfo () { getInfo () {
this.$http.get(`/pli/power/changeRelocation/${this.dataForm.id}`).then(({ data: res }) => { this.$http.get(`/epmetuser/changeRelocation/${this.dataForm.id}`).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
@ -250,7 +250,7 @@ export default {
if (!valid) { if (!valid) {
return false return false
} }
this.$http[!this.dataForm.id ? 'post' : 'put']('/pli/power/changeRelocation/', this.dataForm).then(({ data: res }) => { this.$http[!this.dataForm.id ? 'post' : 'put']('/epmetuser/changeRelocation/', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }

6
src/views/modules/plugins/change/changerelocation.vue

@ -202,11 +202,11 @@ export default {
data () { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/pli/power/changeRelocation/page', getDataListURL: '/epmetuser/changeRelocation/page',
getDataListIsPage: true, getDataListIsPage: true,
deleteURL: '/pli/power/changeRelocation', deleteURL: '/epmetuser/changeRelocation',
deleteIsBatch: true, deleteIsBatch: true,
exportURL: '/pli/power/changeRelocation/export' exportURL: '/epmetuser/changeRelocation/export'
}, },
timeRange: '', timeRange: '',
optionsV: [], optionsV: [],

6
src/views/modules/plugins/change/changewelfare.vue

@ -130,9 +130,9 @@ export default {
data () { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/pli/power/changeWelfare/page', getDataListURL: '/epmetuser/changeWelfare/page',
getDataListIsPage: true, getDataListIsPage: true,
deleteURL: '/pli/power/changeWelfare', deleteURL: '/epmetuser/changeWelfare',
deleteIsBatch: true deleteIsBatch: true
}, },
dataForm: { dataForm: {
@ -206,7 +206,7 @@ export default {
id: this.rowData.id, id: this.rowData.id,
removeReason: this.removeReason removeReason: this.removeReason
} }
this.$http.post('/pli/power/changeWelfare/removeWelfare', params).then(({ data: res }) => { this.$http.post('/epmetuser/changeWelfare/removeWelfare', params).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }

2
src/views/modules/plugins/change/resichange.vue

@ -432,7 +432,7 @@ export default {
} }
console.log('----------8----------') console.log('----------8----------')
console.log(params) console.log(params)
this.$http.post('/pli/power/rentDeath/save', params).then(({ data: res }) => { this.$http.post('/epmetuser/rentDeath/save', params).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }

2
src/views/modules/plugins/change/resideath.vue

@ -429,7 +429,7 @@ export default {
joinReason: this.blacklistReason, joinReason: this.blacklistReason,
welfareFlag: this.welfareFlag welfareFlag: this.welfareFlag
} }
this.$http.post('/pli/power/rentDeath/save', params).then(({ data: res }) => { this.$http.post('/epmetuser/rentDeath/save', params).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }

2
src/views/modules/plugins/change/resiwelfare.vue

@ -426,7 +426,7 @@ export default {
userId: this.rowData.icResiUserId, userId: this.rowData.icResiUserId,
joinReason: this.blacklistReason joinReason: this.blacklistReason
} }
this.$http.post('/pli/power/changeWelfare/save', params).then(({ data: res }) => { this.$http.post('/epmetuser/changeWelfare/save', params).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }

Loading…
Cancel
Save