Browse Source

Merge remote-tracking branch 'origin/master'

master
ligaode 4 months ago
parent
commit
dd707e4de4
  1. 2
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholding.vue
  2. 9
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatecheck.vue
  3. 2
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatetobechecked.vue
  4. 4
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatedistribution.vue
  5. 14
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholding.vue
  6. 27
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholdingAdd.vue

2
anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholding.vue

@ -149,6 +149,7 @@ export default {
listQuery: { listQuery: {
params: { params: {
useOrgName: '', useOrgName: '',
createOrgSid: '',
deptName: '', deptName: '',
createByName: '', createByName: '',
billNo: '', billNo: '',
@ -281,6 +282,7 @@ export default {
this.listQuery = { this.listQuery = {
params: { params: {
useOrgName: '', useOrgName: '',
createOrgSid: '',
deptName: '', deptName: '',
createByName: '', createByName: '',
billNo: '', billNo: '',

9
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatecheck.vue

@ -181,7 +181,6 @@ export default {
code = event.data.params.code code = event.data.params.code
} }
if (code === 1) { if (code === 1) {
this.init()
this.centerDialogVisible = false this.centerDialogVisible = false
} else if (code === 2) { } else if (code === 2) {
this.dialogHeight = event.data.params.data this.dialogHeight = event.data.params.data
@ -204,14 +203,6 @@ export default {
} }
this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params))) this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
}, },
init() {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.listQuery.params.createOrgSid = resp.data
this.getList()
}
})
},
// //
clicksearchShow() { clicksearchShow() {
this.isSearchShow = !this.isSearchShow this.isSearchShow = !this.isSearchShow

2
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatetobechecked.vue

@ -491,7 +491,7 @@ export default {
}, },
handleClick() { handleClick() {
this.viewState = 2 this.viewState = 2
this.$refs['divCheck'].init() this.$refs['divCheck'].getList()
}, },
toAdd() { toAdd() {
this.viewState = 3 this.viewState = 3

4
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatedistribution.vue

@ -155,6 +155,7 @@ export default {
listQuery: { listQuery: {
params: { params: {
createOrgName: '', createOrgName: '',
createOrgSid: '',
deptName: '', deptName: '',
createByName: '', createByName: '',
billNo: '', billNo: '',
@ -283,6 +284,7 @@ export default {
this.listQuery = { this.listQuery = {
params: { params: {
createOrgName: '', createOrgName: '',
createOrgSid: '',
deptName: '', deptName: '',
createByName: '', createByName: '',
billNo: '', billNo: '',
@ -299,7 +301,7 @@ export default {
size: 5, size: 5,
total: 0 total: 0
} }
this.getList() this.init()
}, },
handleClick() { handleClick() {
this.$parent.resetState() this.$parent.resetState()

14
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholding.vue

@ -94,7 +94,6 @@ import req from '@/api/specialrebate/specialrebatewithholding'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar' import ButtonBar from '@/components/ButtonBar'
import { getOrgSidByPath } from '@/api/cheliang/dictcommons'
import specialrebatewithholdingAdd from './specialrebatewithholdingAdd' import specialrebatewithholdingAdd from './specialrebatewithholdingAdd'
import specialrebatewithholdingInfo from './specialrebatewithholdingInfo' import specialrebatewithholdingInfo from './specialrebatewithholdingInfo'
import { getStorage } from '@/utils/auth' import { getStorage } from '@/utils/auth'
@ -170,7 +169,7 @@ export default {
}, },
created() { created() {
// //
this.init() this.getList()
}, },
mounted() { mounted() {
// vuewindowpostMessagehandleMessage // vuewindowpostMessagehandleMessage
@ -184,7 +183,6 @@ export default {
code = event.data.params.code code = event.data.params.code
} }
if (code === 1) { if (code === 1) {
this.init()
this.centerDialogVisible = false this.centerDialogVisible = false
} else if (code === 2) { } else if (code === 2) {
this.dialogHeight = event.data.params.data this.dialogHeight = event.data.params.data
@ -207,14 +205,6 @@ export default {
} }
this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params))) this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
}, },
init() {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.listQuery.params.createOrgSid = resp.data
this.getList()
}
})
},
// //
clicksearchShow() { clicksearchShow() {
this.isSearchShow = !this.isSearchShow this.isSearchShow = !this.isSearchShow
@ -301,7 +291,7 @@ export default {
}, },
toAdd() { toAdd() {
this.viewState = 2 this.viewState = 2
this.$refs['divAdd'].showAdd(this.listQuery.params.createOrgSid) this.$refs['divAdd'].showAdd()
}, },
toEdit(row) { toEdit(row) {
this.viewState = 3 this.viewState = 3

27
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholdingAdd.vue

@ -81,7 +81,7 @@
<script> <script>
import req from '@/api/specialrebate/specialrebatewithholding' import req from '@/api/specialrebate/specialrebatewithholding'
import { fetchBySid } from '@/api/cheliang/dictcommons' import {fetchBySid, getOrgSidByPath} from '@/api/cheliang/dictcommons'
import zhuanxiangfanliselect from './relation/zhuanxiangfanliselect' import zhuanxiangfanliselect from './relation/zhuanxiangfanliselect'
import zhuanxiangfanliAdd from './relation/zhuanxiangfanliAdd' import zhuanxiangfanliAdd from './relation/zhuanxiangfanliAdd'
@ -123,14 +123,6 @@ export default {
} }
}, },
methods: { methods: {
init() {
fetchBySid(this.formobj.createOrgSid).then((res) => {
if (res.success) {
this.formobj.createOrgName = res.data.name
this.formobj.useOrgName = res.data.name
}
})
},
// //
newDate() { newDate() {
let date = new Date() let date = new Date()
@ -142,17 +134,14 @@ export default {
} }
this.formobj.withApply = year + '年' + month + '月' this.formobj.withApply = year + '年' + month + '月'
}, },
showAdd(createOrgSid) { showAdd() {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['form_obj'].clearValidate() this.$refs['form_obj'].clearValidate()
this.init()
this.newDate() this.newDate()
}) })
this.dialogStatus = 'add' this.dialogStatus = 'add'
this.formobj.createBySid = window.sessionStorage.getItem('userSid') this.formobj.createBySid = window.sessionStorage.getItem('userSid')
this.formobj.createByName = window.sessionStorage.getItem('name') this.formobj.createByName = window.sessionStorage.getItem('name')
this.formobj.createOrgSid = createOrgSid
this.formobj.useOrgSid = createOrgSid
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath') this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1)
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1)
@ -163,6 +152,18 @@ export default {
day: nowDate.getDate() day: nowDate.getDate()
} }
this.formobj.createTime = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) this.formobj.createTime = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day)
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.formobj.createOrgSid = resp.data
this.formobj.useOrgSid = resp.data
fetchBySid(this.formobj.createOrgSid).then((res) => {
if (res.success) {
this.formobj.createOrgName = res.data.name
this.formobj.useOrgName = res.data.name
}
})
}
})
this.viewTitle = '【新增】专项返利预提申请' this.viewTitle = '【新增】专项返利预提申请'
}, },
showEdit(row) { showEdit(row) {

Loading…
Cancel
Save