Browse Source

Merge remote-tracking branch 'origin/master'

master
fanzongzhe 7 months ago
parent
commit
489c8c46ad
  1. 7
      anrui-riskcenter-ui/src/api/deduct/deduct.js
  2. 49
      anrui-riskcenter-ui/src/views/deduct/deduct.vue
  3. 2
      yxt-as-ui/src/views/basicinformation/sparePartsCommissionFiling/sparePartsCommissionFilingAdd.vue
  4. 2
      yxt-as-ui/src/views/basicinformation/technicalTitleFiling/technicalTitleFilingAdd.vue
  5. 2
      yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue
  6. 2
      yxt-as-ui/src/views/workFlow/jishizhichengFlow/technicalTitleFilingEdit.vue
  7. 2
      yxt-as-ui/src/views/workFlow/peijianbeianFlow/sparePartsCommissionFilingEdit.vue

7
anrui-riskcenter-ui/src/api/deduct/deduct.js

@ -57,6 +57,13 @@ export default {
headers: { 'Content-Type': 'application/json' } headers: { 'Content-Type': 'application/json' }
}) })
}, },
buckleVoucherRePush: function(data) {
return request({
url: '/riskcenter/v1/loanbuckleapply/buckleVoucherRePush',
method: 'post',
params: data
})
},
// 提交流程 // 提交流程
submit: function(params) { submit: function(params) {
return request({ return request({

49
anrui-riskcenter-ui/src/views/deduct/deduct.vue

@ -122,6 +122,7 @@ import req from '@/api/deduct/deduct'
import { getStorage } from '@/utils/auth' import { getStorage } from '@/utils/auth'
import deductAdd from './deductAdd' import deductAdd from './deductAdd'
import deductInfo from './deductInfo' import deductInfo from './deductInfo'
import { getButtonPermissions } from '@/api/Common/dictcommons'
export default { export default {
name: 'Deduct', name: 'Deduct',
@ -139,6 +140,13 @@ export default {
centerDialogVisible: false, centerDialogVisible: false,
btndisabled: false, btndisabled: false,
btnList: [ btnList: [
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'toPush',
btnLabel: '重推'
},
{ {
type: 'danger', type: 'danger',
size: 'small', size: 'small',
@ -165,7 +173,7 @@ export default {
// //
listQuery: { listQuery: {
current: 1, current: 1,
size: 10, size: 5,
total: 0, total: 0,
params: { params: {
applyName: '', applyName: '',
@ -189,7 +197,18 @@ export default {
mounted() { mounted() {
// vuewindowpostMessagehandleMessage // vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage) window.addEventListener('message', this.handleMessage)
getButtonPermissions({ userSid: window.sessionStorage.getItem('userSid'), url: this.$route.path, type: 0 }).then((res) => {
if (res.success) {
for (var i = 0; i < res.data.length; i++) {
for (var k = 0; k < this.btnList.length; k++) {
if (res.data[i].buttonId === this.btnList[k].btnKey) {
this.btnList.splice(k, 1)
}
}
}
this.$refs['btnbar'].setButtonList(this.btnList) this.$refs['btnbar'].setButtonList(this.btnList)
}
})
}, },
methods: { methods: {
async handleMessage(event) { async handleMessage(event) {
@ -232,6 +251,9 @@ export default {
btnHandle(btnKey) { btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey) console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) { switch (btnKey) {
case 'toPush':
this.toPush()
break
case 'doDel': case 'doDel':
this.doDel() this.doDel()
break break
@ -282,7 +304,7 @@ export default {
handleReset() { handleReset() {
this.listQuery = { this.listQuery = {
current: 1, current: 1,
size: 10, size: 5,
total: 0, total: 0,
params: { params: {
applyName: '', applyName: '',
@ -307,6 +329,29 @@ export default {
this.viewState = 4 this.viewState = 4
this.$refs['divInfo'].showInfo(row) this.$refs['divInfo'].showInfo(row)
}, },
toPush() {
if (this.sids.length === 1) {
const loading = this.$loading({
lock: true,
text: '数据推送中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.buckleVoucherRePush({ sid: this.sids[0] }).then((resp) => {
if (resp.success) {
loading.close()
this.$message({ showClose: true, type: 'success', message: '重推成功' })
this.getList()
} else {
loading.close()
}
}).catch(() => {
loading.close()
})
} else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行重推操作' })
}
},
// //
doDel() { doDel() {
if (this.sids.length === 0) { if (this.sids.length === 0) {

2
yxt-as-ui/src/views/basicinformation/sparePartsCommissionFiling/sparePartsCommissionFilingAdd.vue

@ -5,7 +5,7 @@
<div>{{ viewTitle }}</div> <div>{{ viewTitle }}</div>
<div> <div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled">提交</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> <el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div> </div>
</div> </div>

2
yxt-as-ui/src/views/basicinformation/technicalTitleFiling/technicalTitleFilingAdd.vue

@ -5,7 +5,7 @@
<div>{{ viewTitle }}</div> <div>{{ viewTitle }}</div>
<div> <div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled">提交</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> <el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div> </div>
</div> </div>

2
yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue

@ -439,7 +439,7 @@ export default {
}, },
leaveFactory() { leaveFactory() {
if (this.sids.length === 1) { if (this.sids.length === 1) {
if (this.multipleSelection[0].subject === '保外' && this.multipleSelection[0].outDoorState === '0') { if (this.multipleSelection[0].subject === '保外' && this.multipleSelection[0].isOutFactory === '否') {
arrearsleavefactory.init(this.sids[0]).then((res) => { arrearsleavefactory.init(this.sids[0]).then((res) => {
if (res.success) { if (res.success) {
this.viewState = 5 this.viewState = 5

2
yxt-as-ui/src/views/workFlow/jishizhichengFlow/technicalTitleFilingEdit.vue

@ -5,7 +5,7 @@
<div>{{ viewTitle }}</div> <div>{{ viewTitle }}</div>
<div> <div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled">提交</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button>
</div> </div>
</div> </div>
<div class=""> <div class="">

2
yxt-as-ui/src/views/workFlow/peijianbeianFlow/sparePartsCommissionFilingEdit.vue

@ -5,7 +5,7 @@
<div>{{ viewTitle }}</div> <div>{{ viewTitle }}</div>
<div> <div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled">提交</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button>
</div> </div>
</div> </div>
<div class=""> <div class="">

Loading…
Cancel
Save