Browse Source

Merge remote-tracking branch 'origin/master'

zhanglei
God 2 years ago
parent
commit
5bc28fffe3
  1. 3
      anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/basevehicle/BaseVehicleMapper.xml
  2. 59
      anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js
  3. 49
      anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue
  4. 14
      anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue
  5. 6
      anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue
  6. 223
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanByFileInfo.vue
  7. 230
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanInfo.vue
  8. 97
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganYiBanInfo.vue
  9. 2
      anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/fincollectionconfirmation/AppFinCollectionConfirmationDto.java
  10. 3
      anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/fincollectionconfirmation/FinCollectionConfirmationFeign.java
  11. 2
      anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/finselectedreceivablesdetailed/AppFinSelectedReceivablesDetailedDto.java
  12. 200
      anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/fincollectionconfirmation/FinCollectionConfirmationService.java
  13. 80
      anrui-scm/anrui-scm-ui/src/views/othermenu/affichetype/gonggaoAdd.vue
  14. 34
      anrui-scm/anrui-scm-ui/src/views/othermenu/affichetype/gonggaoInfo.vue
  15. 2
      anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangguanli/shangzhuangAdd.vue
  16. 2
      anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangguanli/shangzhuangInfo.vue
  17. 2
      anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangguanli/shangzhuangguanli.vue
  18. 2
      anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangtaizhangguanli/shangzhangtaizhangInfo.vue
  19. 2
      anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangtaizhangguanli/shangzhuangpeizhijiansuo.vue
  20. 2
      anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangtaizhangguanli/shangzhuangtaizhangAdd.vue
  21. 2
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhi.vue
  22. 2
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhiAdd.vue
  23. 2
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhiInfo.vue
  24. 2
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/shangzhuangselect/shangzhuangpeizhiAdd.vue
  25. 2
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/shangzhuangselect/shangzhuangpeizhiInfo.vue
  26. 2
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/shangzhuangselect/shuangzhuangpeizhi.vue

3
anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/basevehicle/BaseVehicleMapper.xml

@ -1349,6 +1349,9 @@
from base_vehicle bv
<where>
${ew.sqlSegment}
<if test="names != null and names != ''">
and bv.vinNo LIKE concat('%', #{names}, '%')
</if>
</where>
</select>

59
anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js

@ -57,6 +57,65 @@ export function basefinbankExportExcel(data) {
})
}
// 提交流程
export function submitVehicleApply(params) {
return request({
url: '/base/v1/commoncontract/submitCarSaleContractApprove',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
}
// 流程审批(同意)
export function complete(params) {
return request({
url: '/base/v1/commoncontract/complete',
method: 'post',
data: params
})
}
// 流程审批(驳回)
export function reject(params) {
return request({
url: '/base/v1/commoncontract/reject',
method: 'post',
data: params
})
}
// 流程审批(终止)
export function breakProcess(params) {
return request({
url: '/base/v1/commoncontract/breakProcess',
method: 'post',
data: params
})
}
// 流程审批(撤回)
export function revokeProcess(params) {
return request({
url: '/base/v1/commoncontract/revokeProcess',
method: 'post',
data: params
})
}
// 审批流程(同意)获取下一环节
export function getNextNodesForSubmit(data) {
return request({
url: '/base/v1/commoncontract/getNextNodesForSubmit',
method: 'get',
params: data
})
}
// 审批流程(驳回)获取上一环节
export function getPreviousNodesForReject(data) {
return request({
url: '/base/v1/commoncontract/getPreviousNodesForReject',
method: 'get',
params: data
})
}
// ----合同模板
export function getTemplatePageList(data) {
return request({

49
anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue

@ -44,12 +44,13 @@
<el-table-column width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column width="100" label="操作" align="center">
<template slot-scope="scope">
<el-button size="small" type="primary" @click="toEdit(scope.row)">办理</el-button>
<el-button size="small" type="primary" @click="toEdit(scope.row)" :disabled="scope.row.nodeState =='发起申请' ? false : scope.row.nodeState == '待提交' ? false : true">办理</el-button>
</template>
</el-table-column>
<el-table-column label="状态" align="center">
<el-table-column label="状态" width="180px" header-align="center">
<template slot-scope="scope">
<span>{{ scope.row.nodeState }}</span>
<span v-if="scope.row.nodeState=='待提交'" type="primary" size="mini">待提交</span>
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column label="合同编号" align="center">
@ -79,7 +80,7 @@
</el-table-column>
<el-table-column label="经办人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.creatName }}</span>
<span>{{ scope.row.staffName }}</span>
</template>
</el-table-column>
<el-table-column label="签订日期" align="center">
@ -123,14 +124,15 @@
</div>
<hetongdanganguanli-add ref="divAdd" v-show="viewState == 2 || viewState == 3" @handleReturn="resetState" @reloadlist="getList"/>
<hetongdanganguanli-info ref="divInfo" v-show="viewState == 4" @handleReturn="resetState"/>
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center>
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe>
</el-dialog>
<div class="dialogStyle">
<el-dialog title="查看" :visible.sync="dialogVisible" width="45%" height="320">
<embed v-show="pdfShow" id="plugin" width="100%" height="600" name="plugin" :src="contractPdf" type="application/pdf" internalinstanceid="119">
<el-image v-for="url in pictureUrls" v-show="imageShow" :key="url" :src="url" lazy style="width:200px;height:200px" :preview-src-list="pictureUrls"/>
</el-dialog>
</div>
</div>
</template>
@ -142,6 +144,7 @@ import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import hetongdanganguanliAdd from './hetongdanganguanliAdd.vue'
import hetongdanganguanliInfo from './hetongdanganguanliInfo.vue'
import { getStorage } from '@/utils/auth'
export default {
name: 'HeTongDangAnGuanLi',
@ -154,6 +157,9 @@ export default {
},
data() {
return {
url: '',
dialogHeight: '80%',
centerDialogVisible: false,
btndisabled: false,
btnList: [
{
@ -211,12 +217,43 @@ export default {
}
},
mounted() {
// vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
},
created() {
this.init()
},
methods: {
async handleMessage(event) {
var code = ''
if (event.data.params !== null && event.data.params !== undefined) {
code = event.data.params.code
}
if (code === 1) {
this.init()
this.centerDialogVisible = false
} else if (code === 2) {
this.dialogHeight = event.data.params.data
this.setIframeHeight(document.getElementById('iframe'))
}
},
closeIt() {
this.url = ''
this.centerDialogVisible = false
},
setIframeHeight(iframe) {
iframe.height = this.dialogHeight
},
flowRecord(row) {
this.centerDialogVisible = true
var params = {
deployId: row.procDefId,
procInsId: row.procInstId,
token: getStorage()
}
this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow

14
anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue

@ -113,7 +113,7 @@
</template>
<script>
import { saveContract, getOneContract, updateContract, download, deleteFilesOss } from '@/api/jichuxinxi/contract'
import { saveContract, getOneContract, updateContract, submitVehicleApply } from '@/api/jichuxinxi/contract'
import Upload from '@/components/uploadFile/upload.vue' //
import { typeValues } from '@/api/dictcommons/dictcommons'
@ -154,7 +154,7 @@ export default {
pcCommonAppendixDtoList: [],
remarks: '',
sceneSignUrl: '',
sceneSignUrlList: '',
sceneSignUrlList: [],
sid: '',
staffName: '',
staffSid: ''
@ -221,6 +221,16 @@ export default {
this.$refs['temp_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
submitVehicleApply(this.temp).then((resp) => {
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '提交成功'})
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},

6
anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue

@ -112,7 +112,11 @@ export default {
computed: {},
methods: {
showInfo(row) {
getOneContract(row.sid).then((resp) => {
if (resp.success) {
this.temp = resp.data
}
})
},
//
handleReturn() {

223
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanByFileInfo.vue

@ -3,10 +3,12 @@
<div class="tab-header webtop">
<div>XXX合同详情</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
<el-button type="primary" size="small" @click="openAgree('同意')"> </el-button>
<el-button type="danger" size="small" @click="openReject('驳回')"> </el-button>
<el-button type="danger" size="small" @click="openStop('终止')"> </el-button>
</div>
</div>
<div class="listconadd">
<div class="">
<div class="titwu">XXX合同</div>
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" class="formadd">
<el-row class="bordertopline">
@ -97,15 +99,40 @@
</el-row>
</el-form>
</div>
<!-- 选择待办人 的弹出框-->
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
<el-form class="formadd" >
<el-row v-show="currentLink" style="border-top: 1px solid #e0e3eb">
<el-col :span="4" class="tleftb">
<span>当前环节:</span>
</el-col>
<el-col :span="20">
<el-form-item><span>{{ current.taskName }}->{{ nextNode.name }}</span></el-form-item>
</el-col>
</el-row>
<el-row :class="{rowClass:!currentLink}">
<el-col :span="4" class="tleftb">
<span>意见:</span>
</el-col>
<el-col :span="20">
<el-form-item><el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw" type="textarea" :autosize="{ minRows: 1, maxRows: 10}" clearable ></el-input></el-form-item>
</el-col>
</el-row>
<div style="text-align:center;margin-top: 20px;">
<el-button type="primary" size="mini" @click="reject"> </el-button>
<el-button type="info " size="mini" @click="nodeDialogVisible = false"> </el-button>
</div>
</el-form>
</el-dialog>
</div>
</template>
<script>
import { getOneContract } from '@/api/jichuxinxi/contract'
import { getOneContract, getNextNodesForSubmit, getPreviousNodesForReject, complete, reject, breakProcess } from '@/api/jichuxinxi/contract'
import Upload from '@/components/uploadFile/upload.vue' //
export default {
name: 'HeTongDangAnDaiiBanInfo',
name: 'HeTongDangAnDaiBanByFileInfo',
components: {
Upload
},
@ -114,17 +141,186 @@ export default {
temp: {},
list2: [],
list3: [],
list1: []
list1: [],
operation: '', //
dialogList: {
comment: ''
},
current: {
taskDefKey: '',
taskName: '' //
},
nextNode: {}, //
nodeDialogVisible: false,
currentLink: true,
//
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
}
}
},
computed: {},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
console.log('iframe页面获取的obj:', obj)
//
this.linkByParameter.businessSid = obj.businessSid
this.linkByParameter.instanceId = obj.instanceId
this.linkByParameter.taskId = obj.taskId
this.linkByParameter.taskDefKey = obj.taskDefKey
this.linkByParameter.orgSidPath = window.sessionStorage.getItem('orgSidPath')
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
this.current.taskDefKey = obj.taskDefKey
this.current.taskName = obj.taskName
//
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 450 + 'px'
}
}, '*')
},
methods: {
showInfo(row) {
showInfo(sid) {
getOneContract(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
//
openAgree(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = '同意'
getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openReject(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = ''
getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openStop(val) {
this.operation = val
this.currentLink = false
this.dialogList.comment = ''
this.nodeDialogVisible = true
},
//
handleReturn() {
this.$emit('handleReturn')
reject() {
if (this.operation === '同意') {
this.handleAgree()
} else if (this.operation === '驳回') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleReject()
}
} else if (this.operation === '终止') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleStop()
}
}
},
/** 同意任务 */
handleAgree() {
this.linkByParameter.comment = this.dialogList.comment
complete(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 驳回任务 */
handleReject() {
this.linkByParameter.comment = this.dialogList.comment
reject(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 终止任务 */
handleStop() {
this.linkByParameter.comment = this.dialogList.comment
breakProcess(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
}
}
@ -133,4 +329,9 @@ export default {
.imgcontent {
display: inline-block;
}
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
</style>

230
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganDaiBanInfo.vue

@ -3,10 +3,12 @@
<div class="tab-header webtop">
<div>XXX合同详情</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
<el-button type="primary" size="small" @click="openAgree('同意')"> </el-button>
<el-button type="danger" size="small" @click="openReject('驳回')"> </el-button>
<el-button type="danger" size="small" @click="openStop('终止')"> </el-button>
</div>
</div>
<div class="listconadd">
<div class="">
<div class="titwu">XXX合同</div>
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" class="formadd">
<el-row class="bordertopline">
@ -93,30 +95,231 @@
</el-row>
</el-form>
</div>
<!-- 选择待办人 的弹出框-->
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
<el-form class="formadd" >
<el-row v-show="currentLink" style="border-top: 1px solid #e0e3eb">
<el-col :span="4" class="tleftb">
<span>当前环节:</span>
</el-col>
<el-col :span="20">
<el-form-item><span>{{ current.taskName }}->{{ nextNode.name }}</span></el-form-item>
</el-col>
</el-row>
<el-row :class="{rowClass:!currentLink}">
<el-col :span="4" class="tleftb">
<span>意见:</span>
</el-col>
<el-col :span="20">
<el-form-item><el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw" type="textarea" :autosize="{ minRows: 1, maxRows: 10}" clearable ></el-input></el-form-item>
</el-col>
</el-row>
<div style="text-align:center;margin-top: 20px;">
<el-button type="primary" size="mini" @click="reject"> </el-button>
<el-button type="info " size="mini" @click="nodeDialogVisible = false"> </el-button>
</div>
</el-form>
</el-dialog>
</div>
</template>
<script>
import { getOneContract } from '@/api/jichuxinxi/contract'
import {
breakProcess,
complete,
getNextNodesForSubmit,
getOneContract,
getPreviousNodesForReject,
reject
} from '@/api/jichuxinxi/contract'
export default {
name: 'HeTongDangAnDaiiBanInfo',
name: 'HeTongDangAnDaiBanInfo',
data() {
return {
temp: {},
list2: [],
list3: [],
list1: []
list1: [],
operation: '', //
dialogList: {
comment: ''
},
current: {
taskDefKey: '',
taskName: '' //
},
nextNode: {}, //
nodeDialogVisible: false,
currentLink: true,
//
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
}
}
},
computed: {},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
console.log('iframe页面获取的obj:', obj)
//
this.linkByParameter.businessSid = obj.businessSid
this.linkByParameter.instanceId = obj.instanceId
this.linkByParameter.taskId = obj.taskId
this.linkByParameter.taskDefKey = obj.taskDefKey
this.linkByParameter.orgSidPath = window.sessionStorage.getItem('orgSidPath')
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
this.current.taskDefKey = obj.taskDefKey
this.current.taskName = obj.taskName
//
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 450 + 'px'
}
}, '*')
},
methods: {
showInfo(row) {
showInfo(sid) {
getOneContract(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
//
openAgree(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = '同意'
getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openReject(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = ''
getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true
}
this.submitdisabled = false
})
},
//
openStop(val) {
this.operation = val
this.currentLink = false
this.dialogList.comment = ''
this.nodeDialogVisible = true
},
//
handleReturn() {
this.$emit('handleReturn')
reject() {
if (this.operation === '同意') {
this.handleAgree()
} else if (this.operation === '驳回') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleReject()
}
} else if (this.operation === '终止') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleStop()
}
}
},
/** 同意任务 */
handleAgree() {
this.linkByParameter.comment = this.dialogList.comment
complete(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 驳回任务 */
handleReject() {
this.linkByParameter.comment = this.dialogList.comment
reject(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
},
/** 终止任务 */
handleStop() {
this.linkByParameter.comment = this.dialogList.comment
breakProcess(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
}
}
@ -125,4 +328,9 @@ export default {
.imgcontent {
display: inline-block;
}
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
</style>

97
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganYiBanInfo.vue

@ -3,10 +3,10 @@
<div class="tab-header webtop">
<div>XXX合同详情</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
<el-button type="danger" size="small" @click="openRevoke()">撤回</el-button>
</div>
</div>
<div class="listconadd">
<div class="">
<div class="titwu">XXX合同</div>
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" class="formadd">
<el-row class="bordertopline">
@ -97,7 +97,7 @@
</template>
<script>
import { getOneContract } from '@/api/jichuxinxi/contract'
import { getOneContract, revokeProcess } from '@/api/jichuxinxi/contract'
export default {
name: 'HeTongDangAnYiBanInfo',
@ -106,17 +106,89 @@ export default {
temp: {},
list2: [],
list3: [],
list1: []
list1: [],
//
linkByParameter: {
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
orgSidPath: '',
taskDefKey: '',
userSid: ''
}
}
},
computed: {},
created() {
console.log('url:' + window.location.href)
var one = window.location.href.indexOf('&data') + 6
const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data))
console.log('iframe页面获取的obj:', obj)
//
this.linkByParameter.businessSid = obj.businessSid
this.linkByParameter.instanceId = obj.instanceId
this.linkByParameter.taskId = obj.taskId
this.linkByParameter.taskDefKey = obj.taskDefKey
this.linkByParameter.orgSidPath = window.sessionStorage.getItem('orgSidPath')
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
//
this.showInfo(obj.businessSid)
},
mounted() {
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 2,
data: 450 + 'px'
}
}, '*')
},
methods: {
showInfo(row) {
showInfo(sid) {
getOneContract(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
//
handleReturn() {
this.$emit('handleReturn')
/** 确认撤回任务 */
openRevoke() {
this.$confirm('是否确认执行撤回操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.handleRevoke()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消撤回'
})
})
},
/** 撤回任务 */
handleRevoke() {
revokeProcess(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
}
}
@ -125,4 +197,9 @@ export default {
.imgcontent {
display: inline-block;
}
.titwu {
font-size: 28px;
text-align: center;
padding: 30px 0 20px 0;
}
</style>

2
anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/fincollectionconfirmation/AppFinCollectionConfirmationDto.java

@ -6,6 +6,7 @@ import com.yxt.common.core.dto.Dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.Valid;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
@ -71,6 +72,7 @@ public class AppFinCollectionConfirmationDto implements Dto {
private List<String> payFiles;
@ApiModelProperty("款项明细")
@Valid
private List<AppFinSelectedReceivablesDetailedDto> contractList;
@ApiModelProperty("申请部门")

3
anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/fincollectionconfirmation/FinCollectionConfirmationFeign.java

@ -37,6 +37,7 @@ import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.List;
/**
@ -113,7 +114,7 @@ public interface FinCollectionConfirmationFeign {
@ApiOperation("手机端—提交款项确认申请")
@PostMapping("/submitCollectionConfirm")
public ResultBean submitCollectionConfirm(@RequestBody AppFinCollectionConfirmationDto dto);
public ResultBean submitCollectionConfirm(@Valid @RequestBody AppFinCollectionConfirmationDto dto);
@ApiOperation("手机端—删除收款确认单")
@DeleteMapping("/deleteCollectionConfirm")

2
anrui-fin/anrui-fin-api/src/main/java/com/yxt/anrui/fin/api/finselectedreceivablesdetailed/AppFinSelectedReceivablesDetailedDto.java

@ -31,6 +31,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
/**
@ -55,6 +56,7 @@ public class AppFinSelectedReceivablesDetailedDto implements Dto {
@ApiModelProperty("车架号")
private String vin;
@ApiModelProperty("认款金额")
@NotNull(message = "认款金额不允许为空")
private BigDecimal confirmMoney;
@ApiModelProperty("合同号")
private String contractId;

200
anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/fincollectionconfirmation/FinCollectionConfirmationService.java

@ -32,7 +32,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxt.anrui.base.api.basepurchasesystem.BasePurchaseSystemDetailsVo;
import com.yxt.anrui.base.api.basepurchasesystem.BasePurchaseSystemFeign;
import com.yxt.anrui.base.api.basevehicle.BaseVehicle;
import com.yxt.anrui.base.api.basevehicle.BaseVehicleFeign;
import com.yxt.anrui.base.api.basevehicletempstate.BaseVehicleTempstate;
import com.yxt.anrui.base.api.basevehicletempstate.BaseVehicleTempstateDto;
@ -777,6 +776,10 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl
finCollectionConfirmation.setCreateDate(DateUtil.today());
finCollectionConfirmation.setCreateBySid(dto.getUserSid());
finCollectionConfirmation.setCreateDeptSid(createDeptSid);
finCollectionConfirmation.setStaffName(createName);
finCollectionConfirmation.setStaffUserSid(dto.getUserSid());
finCollectionConfirmation.setStaffDeptSid(createDeptSid);
finCollectionConfirmation.setStaffDeptName(deptName);
//添加单据编号
String billNo = getApplyCode(finCollectionConfirmation.getUseOrgSid());
finCollectionConfirmation.setBillNo(billNo);
@ -986,162 +989,26 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl
finSelectedReceivablesDetailed.setCreateByName(finCollectionConfirmation.getCreateByName());
finSelectedReceivablesDetailedService.save(finSelectedReceivablesDetailed);
//车辆状态表锁定
BaseVehicleTempstateDto baseVehicleTempstateDto = new BaseVehicleTempstateDto();
baseVehicleTempstateDto.setTempStateKey(VehicleStateTempOrLast.PaymentEnum.FIN_PAYMENT.getCode());
baseVehicleTempstateDto.setTempStateValue(VehicleStateTempOrLast.PaymentEnum.FIN_PAYMENT.getRemarks());
baseVehicleTempstateDto.setTempKey("0001");
baseVehicleTempstateDto.setTempValue("待审核");
baseVehicleTempstateDto.setBusSid(paymentDetail.getReceivablesSid());
baseVehicleTempstateDto.setVinNo(finSelectedReceivablesDetailed.getVIN());
BaseVehicle baseVehicle = baseVehicleFeign.selectByVinNoAndOrgSid(finSelectedReceivablesDetailed.getVIN(), finCollectionConfirmation.getUseOrgSid()).getData();
if (baseVehicle != null) {
baseVehicleTempstateDto.setVehSid(baseVehicle.getSid());
if ("车款".equals(finSelectedReceivablesDetailed.getReceivablesName())) {
baseVehicleTempstateDto.setTempKey("001");
baseVehicleTempstateDto.setTempValue("车款");
}
baseVehicleTempstateFeign.save(baseVehicleTempstateDto);
}
// String userOrgSid = sysStaffOrgFeign.getPathSidByUserSid(dto.getUserSid()).getData();
// List<AppFinSelectedReceivablesDetailedDto> paymentDetails = dto.getContractList();
/* CommonAppendixDto commonAppendixDto = new CommonAppendixDto();
if (StringUtils.isBlank(dto.getCollectionBillSid())) {
FinCollectionConfirmation finCollectionConfirmation = new FinCollectionConfirmation();
BeanUtil.copyProperties(dto, finCollectionConfirmation);
for (AppFinSelectedReceivablesDetailedDto paymentDetail : paymentDetails) {
FinSelectedReceivablesDetailed finSelectedReceivablesDetailed = new FinSelectedReceivablesDetailed();
finSelectedReceivablesDetailed.setCurrentReceivableMoney(paymentDetail.getReceivable());
finSelectedReceivablesDetailed.setVIN(paymentDetail.getVin());
finSelectedReceivablesDetailed.setSubscriptionMoney(paymentDetail.getConfirmMoney());
finSelectedReceivablesDetailed.setContractNo(paymentDetail.getContractId());
finSelectedReceivablesDetailed.setReceivablesName(paymentDetail.getProjectName());
finSelectedReceivablesDetailed.setContractSid(paymentDetail.getContractSid());
finSelectedReceivablesDetailed.setCustomerName(paymentDetail.getName());
finSelectedReceivablesDetailed.setCustomerPhone(paymentDetail.getMobile());
finSelectedReceivablesDetailed.setSubscriptionDate(paymentDetail.getConfirmDate());
finSelectedReceivablesDetailed.setCollSid(dto.getCollectionBillSid());
finSelectedReceivablesDetailed.setAuditState(1);
finSelectedReceivablesDetailed.setReceivablesSid(finCollectionConfirmation.getSid());
finSelectedReceivablesDetailedService.save(finSelectedReceivablesDetailed);
//已选应收款项-车架号
String vin = finSelectedReceivablesDetailed.getVIN();
//已选应收款项-应收项目名称
String receivablesName = finSelectedReceivablesDetailed.getReceivablesName();
FinUncollectedReceivablesDetailedVo finUncollectedReceivablesDetailedVo = finUncollectedReceivablesDetailedService.fetchByVinAndRecName(vin, receivablesName);
//应收未收款项-当前应收金额
BigDecimal currentReceivableMoney = new BigDecimal(finUncollectedReceivablesDetailedVo.getCurrentReceivableMoney());
//已选应收款项-认款金额
BigDecimal subscriptionMoney = finSelectedReceivablesDetailed.getSubscriptionMoney();
BigDecimal subtract = currentReceivableMoney.subtract(subscriptionMoney);
// if (subtract.compareTo(BigDecimal.ZERO) < 0) {
// return rb.setMsg("认款金额超出应收金额,请重新输入");
// }
if (subtract.compareTo(BigDecimal.ZERO) != 0) {
return rb.setMsg("该确认单应收金额总额还剩余" + subtract + ",请继续核对");
}
finUncollectedReceivablesDetailedVo.setCurrentReceivableMoney(String.format("%.0f", subtract));
FinUncollectedReceivablesDetailedDto finUncollectedReceivablesDetailedDto = new FinUncollectedReceivablesDetailedDto();
BeanUtil.copyProperties(finUncollectedReceivablesDetailedVo, finUncollectedReceivablesDetailedDto);
finUncollectedReceivablesDetailedService.updateBySid(finUncollectedReceivablesDetailedDto, finUncollectedReceivablesDetailedDto.getSid());
//车辆状态表锁定
BaseVehicleTempstateDto baseVehicleTempstateDto = new BaseVehicleTempstateDto();
baseVehicleTempstateDto.setTempStateKey(VehicleStateTempOrLast.PaymentEnum.FIN_PAYMENT.getCode());
baseVehicleTempstateDto.setTempStateValue(VehicleStateTempOrLast.PaymentEnum.FIN_PAYMENT.getRemarks());
baseVehicleTempstateDto.setTempKey("0001");
baseVehicleTempstateDto.setTempValue("待审核");
baseVehicleTempstateDto.setBusSid(finSelectedReceivablesDetailed.getSid());
baseVehicleTempstateDto.setVinNo(finSelectedReceivablesDetailed.getVIN());
BaseVehicle baseVehicle = baseVehicleFeign.selectByVinNoAndOrgSid(finSelectedReceivablesDetailed.getVIN(), userOrgSid).getData();
if (baseVehicle != null) {
baseVehicleTempstateDto.setVehSid(baseVehicle.getSid());
}
baseVehicleTempstateFeign.save(baseVehicleTempstateDto);
}
List<String> payConfirmFiles = dto.getPayConfirmFiles();
String remFilePath = "";
for (String payFilePath : payConfirmFiles) {
if (payFilePath != null) {
remFilePath = payFilePath.replace(fileUploadComponent.getUrlPrefix(), "");
commonAppendixDto.setLinkSid(dto.getCollectionBillSid());
commonAppendixDto.setFilePath(remFilePath);
commonAppendixDto.setCreateBySid(staffSid);
commonAppendixDto.setFileName("汇款确认");
commonAppendixDto.setAttachType(CommonAttachTypeEnum.REMITTAN_CECONFIRMATION.getAttachType());
commonAppendixFeign.save(commonAppendixDto);
}
remFilePath += remFilePath + ",";
if ("订金".equals(finSelectedReceivablesDetailed.getReceivablesName())) {
baseVehicleTempstateDto.setTempKey("002");
baseVehicleTempstateDto.setTempValue("订金");
}
finCollectionConfirmation.setRemittanceConfirmationUrl(remFilePath);
finCollectionConfirmation.setAuditState(1);
finCollectionConfirmation.setCreateBySid(dto.getUserSid());
save(finCollectionConfirmation);
} else {
FinCollectionConfirmation finCollectionConfirmation = fetchBySid(dto.getCollectionBillSid());
BeanUtil.copyProperties(dto, finCollectionConfirmation, "sid");
finSelectedReceivablesDetailedService.deleteByCollSid(dto.getCollectionBillSid());
for (AppFinSelectedReceivablesDetailedDto paymentDetail : paymentDetails) {
FinSelectedReceivablesDetailed finSelectedReceivablesDetailed = new FinSelectedReceivablesDetailed();
finSelectedReceivablesDetailed.setCurrentReceivableMoney(paymentDetail.getReceivable());
finSelectedReceivablesDetailed.setVIN(paymentDetail.getVin());
finSelectedReceivablesDetailed.setSubscriptionMoney(paymentDetail.getConfirmMoney());
finSelectedReceivablesDetailed.setContractNo(paymentDetail.getContractId());
finSelectedReceivablesDetailed.setReceivablesName(paymentDetail.getProjectName());
finSelectedReceivablesDetailed.setContractSid(paymentDetail.getContractSid());
finSelectedReceivablesDetailed.setCustomerName(paymentDetail.getName());
finSelectedReceivablesDetailed.setCustomerPhone(paymentDetail.getMobile());
finSelectedReceivablesDetailed.setSubscriptionDate(paymentDetail.getConfirmDate());
finSelectedReceivablesDetailed.setCollSid(dto.getCollectionBillSid());
finSelectedReceivablesDetailed.setAuditState(1);
finSelectedReceivablesDetailedService.save(finSelectedReceivablesDetailed);
//已选应收款项-车架号
String vin = finSelectedReceivablesDetailed.getVIN();
//已选应收款项-应收项目名称
String receivablesName = finSelectedReceivablesDetailed.getReceivablesName();
FinUncollectedReceivablesDetailedVo finUncollectedReceivablesDetailedVo = finUncollectedReceivablesDetailedService.fetchByVinAndRecName(vin, receivablesName);
//应收未收款项-当前应收金额
BigDecimal currentReceivableMoney = new BigDecimal(finUncollectedReceivablesDetailedVo.getCurrentReceivableMoney());
//已选应收款项-认款金额
BigDecimal subscriptionMoney = finSelectedReceivablesDetailed.getSubscriptionMoney();
BigDecimal subtract = currentReceivableMoney.subtract(subscriptionMoney);
if (subtract.compareTo(BigDecimal.ZERO) < 0) {
return rb.setMsg("认款金额超出应收金额,请重新输入");
}
finUncollectedReceivablesDetailedVo.setCurrentReceivableMoney(String.format("%.0f", subtract));
FinUncollectedReceivablesDetailedDto finUncollectedReceivablesDetailedDto = new FinUncollectedReceivablesDetailedDto();
BeanUtil.copyProperties(finUncollectedReceivablesDetailedVo, finUncollectedReceivablesDetailedDto);
finUncollectedReceivablesDetailedService.updateBySid(finUncollectedReceivablesDetailedDto, finUncollectedReceivablesDetailedDto.getSid());
//车辆状态表锁定
BaseVehicleTempstateDto baseVehicleTempstateDto = new BaseVehicleTempstateDto();
baseVehicleTempstateDto.setTempStateKey(VehicleStateTempOrLast.PaymentEnum.FIN_PAYMENT.getCode());
baseVehicleTempstateDto.setTempStateValue(VehicleStateTempOrLast.PaymentEnum.FIN_PAYMENT.getRemarks());
baseVehicleTempstateDto.setTempKey("0001");
baseVehicleTempstateDto.setTempValue("待审核");
baseVehicleTempstateDto.setBusSid(finSelectedReceivablesDetailed.getSid());
baseVehicleTempstateDto.setVinNo(finSelectedReceivablesDetailed.getVIN());
BaseVehicle baseVehicle = baseVehicleFeign.selectByVinNoAndOrgSid(finSelectedReceivablesDetailed.getVIN(), userOrgSid).getData();
if (baseVehicle != null) {
baseVehicleTempstateDto.setVehSid(baseVehicle.getSid());
}
baseVehicleTempstateFeign.save(baseVehicleTempstateDto);
}
commonAppendixFeign.delFilesByLinkSidAndAttachType(dto.getCollectionBillSid(), CommonAttachTypeEnum.REMITTAN_CECONFIRMATION.getAttachType());
List<String> payConfirmFiles = dto.getPayConfirmFiles();
String remFilePath = "";
for (String payFilePath : payConfirmFiles) {
if (payFilePath != null) {
remFilePath = payFilePath.replace(fileUploadComponent.getUrlPrefix(), "");
commonAppendixDto.setLinkSid(dto.getCollectionBillSid());
commonAppendixDto.setFilePath(remFilePath);
commonAppendixDto.setCreateBySid(staffSid);
commonAppendixDto.setFileName("汇款确认");
commonAppendixDto.setAttachType(CommonAttachTypeEnum.REMITTAN_CECONFIRMATION.getAttachType());
commonAppendixFeign.save(commonAppendixDto);
}
remFilePath += remFilePath + ",";
baseVehicleTempstateDto.setBusSid(finCollectionConfirmation.getSid());
//根据合同编号和车架号查询该合同的车辆sid
ResultBean<String> resultBean = busSalesOrderFeign.getVinSidByConSid(finSelectedReceivablesDetailed.getContractNo(), finSelectedReceivablesDetailed.getVIN());
if (resultBean.getSuccess()) {
baseVehicleTempstateDto.setVehSid(resultBean.getData());
}
finCollectionConfirmation.setRemittanceConfirmationUrl(remFilePath);
finCollectionConfirmation.setAuditState(1);
updateById(finCollectionConfirmation);
}*/
ResultBean vehicleStateResult = baseVehicleTempstateFeign.save(baseVehicleTempstateDto);
}
return rb.success();
}
@ -1189,18 +1056,6 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl
qw.notIn("sid", params.getSidList());
}
qw.ne("currentReceivableMoney", 0);//应收金额
/* List<String> vinNoList = new ArrayList<>();
List<BaseVehicleTempstateVo> baseVehicleTempstateVos = baseVehicleTempstateFeign.selectAll(VehicleStateTempOrLast.PaymentEnum.FIN_PAYMENT.getCode()).getData();
for (BaseVehicleTempstateVo baseVehicleTempstateVo : baseVehicleTempstateVos) {
String vehSid = baseVehicleTempstateVo.getVehSid();
if (StringUtils.isNotBlank(vehSid)) {
BaseVehicleSelectVo baseVehicleSelectVo = baseVehicleFeign.details(vehSid).getData();
vinNoList.add(baseVehicleSelectVo.getVinNo());
}
}
if (vinNoList.size() > 0) {
qw.notIn("VIN", vinNoList);
}*/
ResultBean<List<BaseVehicleTempstate>> baseVehicleTempstateFeignList = baseVehicleTempstateFeign.getList(VehicleStateTempOrLast.PaymentEnum.FIN_PAYMENT.getCode());
List<BaseVehicleTempstate> baseVehicleTempstates = baseVehicleTempstateFeignList.getData();
if (baseVehicleTempstates.size() > 0) {
@ -1284,25 +1139,6 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl
collList = Stream.of(collList, cll).flatMap(Collection::stream).collect(Collectors.toList());
}
}
// List<AppFinUncollectedReceivablesDetailedVo> records = collectionConfirmList.getRecords();
/* for (AppFinUncollectedReceivablesDetailedVo record : collList) {
record.setConfirmDate(dateFormat.format(new Date()));
String busVinSid = record.getBusVinSid();
ResultBean<BusSalesOrderVehicle> resultBean = busSalesOrderVehicleFeign.details(busVinSid);
if (resultBean.getData() != null) {
String vinNo = resultBean.getData().getLinkNo();
String vinSid = resultBean.getData().getLinkSid();
String temporaryNo = resultBean.getData().getTemporaryNo();
record.setVin(vinNo);
if (StringUtils.isNotBlank(vinNo)) {
record.setVin(vinNo.substring(vinNo.length() - 8));
} else {
if ("2".equals(record.getPayTypeKey())) {
record.setVin(temporaryNo.substring(temporaryNo.length() - 2));
}
}
}
}*/
//分页
IPage<AppFinUncollectedReceivablesDetailedVo> page1 = new Page<>();

80
anrui-scm/anrui-scm-ui/src/views/othermenu/affichetype/gonggaoAdd.vue

@ -18,6 +18,18 @@
<div class="titwu"><span>公告型号</span></div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="4" class="tleftb">
<span>车辆名称</span>
</el-col>
<el-col :span="20">
<el-form-item>
<el-select v-model="formobj.vehNameValue" placeholder="请选择" filterable style="width: 20%" @change="changeCar">
<el-option v-for="item in car_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>公告型号</span>
</el-col>
@ -36,46 +48,68 @@
<div class="title">
<div>公告型号列表</div>
<div>
<el-button type="primary" size="mini" icon="el-icon-plus" @click="add()">添加</el-button>
<el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="add()">添加</el-button>
</div>
</div>
<el-table :key="tableKey" :data="formobj.baseAnnouncementmodelParams" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed prop="name" label="操作" width="100px" align="center" header-align="center">
<template slot-scope="scope">
<el-button size="mini" type="danger" @click="dataDelete(scope.$index)">删除
</el-button>
</template>
</el-table-column>
<el-table-column label="整车外观尺寸(长*宽*高(mm))" align="center">
<el-table-column label="整车外观尺寸(长*宽*高(mm))" align="center" width="230">
<template slot-scope="scope">
<el-input v-model="scope.row.vehAppeSize" clearable placeholder="" class="addinputw"></el-input>
</template>
</el-table-column>
<el-table-column label="准牵引总质量(Kg)" align="center">
<el-table-column label="货箱内部尺寸(长*宽*高(mm))" align="center" width="230">
<template slot-scope="scope">
<el-input v-model="scope.row.boxInsideSize" clearable placeholder="" class="addinputw"></el-input>
</template>
</el-table-column>
<el-table-column label="货厢底板到仓栅顶部高(mm)" align="center" width="230">
<template slot-scope="scope">
<el-input v-model="scope.row.boxFloorReaGraTopHigh" clearable placeholder="" class="addinputw"></el-input>
</template>
</el-table-column>
<el-table-column label="准牵引总质量(Kg)" align="center" width="160">
<template slot-scope="scope">
<el-input v-model="scope.row.accTowTotalMass" clearable placeholder="" class="addinputw"></el-input>
</template>
</el-table-column>
<el-table-column label="整备质量(Kg)" align="center">
<el-table-column label="整备质量(Kg)" align="center" width="140">
<template slot-scope="scope">
<el-input v-model="scope.row.preparationMass" clearable placeholder="" class="addinputw"></el-input>
</template>
</el-table-column>
<el-table-column label="悬架" align="center" width="200">
<el-table-column label="额定载质量(Kg)" align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.ratedLoadQuality" clearable placeholder="" class="addinputw"></el-input>
</template>
</el-table-column>
<el-table-column label="悬架" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.plateReedNumValue" placeholder="请选择" class="addinputw" @change="changePlateReedNum($event, scope.row)">
<el-option v-for="item in plateReedNum_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</template>
</el-table-column>
<el-table-column label="轮胎" align="center" width="200">
<el-table-column label="轮胎" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.tyreValue" placeholder="请选择" class="addinputw" @change="changeTyre($event, scope.row)">
<el-option v-for="item in tyre_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</template>
</el-table-column>
<el-table-column label="轴距" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.wheelbaseValue" placeholder="请选择" class="addinputw" @change="changeWheelbase($event, scope.row)">
<el-option v-for="item in wheelbase_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</template>
</el-table-column>
</el-table>
</el-form>
</div>
@ -89,17 +123,21 @@ import req from '@/api/othermenu/gonggaoxinghao'
import { getOrgSidByPath, typeValues } from '@/api/cheliang/dictcommons'
export default {
name: 'gongggaoxinghaoAdd',
name: 'GongGaoXingHaoAdd',
data() {
return {
viewTitle: '',
index: 0,
tableKey: 0,
car_list: [],
plateReedNum_list: [],
tyre_list: [],
wheelbase_list: [],
//
formobj: {
sid: '', // sid
vehNameValue: '',
vehNameKey: '',
announcementmodelName: '',
createOrgSid: '',
useOrgSid: '',
@ -123,6 +161,11 @@ export default {
this.tyre_list = res.data
}
})
typeValues({ type: 'wheelbase' }).then((res) => {
if (res.success) {
this.wheelbase_list = res.data
}
})
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.formobj.createOrgSid = resp.data
@ -162,7 +205,12 @@ export default {
sid: '',
vehAppeSize: '',
tyre: '',
tyreValue: ''
tyreValue: '',
boxInsideSize: '',
ratedLoadQuality: '',
wheelbaseValue: '',
wheelbaseKey: '',
boxFloorReaGraTopHigh: ''
})
},
//
@ -193,6 +241,18 @@ export default {
})
row.tyre = bb.key
},
changeWheelbase(value, row) {
let bb = null
this.wheelbase_list.forEach((e) => {
if (e.dictValue === value) {
bb = {
value: e.dictValue,
key: e.dictKey
}
}
})
row.wheelbaseKey = bb.key
},
save() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
@ -221,6 +281,8 @@ export default {
//
this.formobj = {
sid: '', // sid
vehNameValue: '',
vehNameKey: '',
announcementmodelName: '',
createOrgSid: '',
useOrgSid: '',

34
anrui-scm/anrui-scm-ui/src/views/othermenu/affichetype/gonggaoInfo.vue

@ -16,6 +16,14 @@
<div class="titwu"><span>公告型号</span></div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="4" class="tleftb">
<span>车辆名称</span>
</el-col>
<el-col :span="20">
<el-form-item><span>{{ formobj.vehNameValue }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>公告型号</span>
</el-col>
@ -36,21 +44,36 @@
</div>
<el-table :key="tableKey" :data="formobj.baseAnnouncementmodelParams" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="整车外观尺寸(长*宽*高(mm))" align="center">
<el-table-column label="整车外观尺寸(长*宽*高(mm))" align="center" width="230">
<template slot-scope="scope">
<span>{{ scope.row.vehAppeSize }}</span>
</template>
</el-table-column>
<el-table-column label="准牵引总质量(Kg)" align="center">
<el-table-column label="货箱内部尺寸(长*宽*高(mm))" align="center" width="230">
<template slot-scope="scope">
<span>{{ scope.row.boxInsideSize }}</span>
</template>
</el-table-column>
<el-table-column label="货厢底板到仓栅顶部高(mm)" align="center" width="230">
<template slot-scope="scope">
<span>{{ scope.row.boxFloorReaGraTopHigh }}</span>
</template>
</el-table-column>
<el-table-column label="准牵引总质量(Kg)" align="center" width="160">
<template slot-scope="scope">
<span>{{ scope.row.accTowTotalMass }}</span>
</template>
</el-table-column>
<el-table-column label="整备质量(Kg)" align="center">
<el-table-column label="整备质量(Kg)" align="center" width="130">
<template slot-scope="scope">
<span>{{ scope.row.preparationMass }}</span>
</template>
</el-table-column>
<el-table-column label="额定载质量(Kg)" align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.ratedLoadQuality }}</span>
</template>
</el-table-column>
<el-table-column label="悬架" align="center">
<template slot-scope="scope">
<span>{{ scope.row.plateReedNumValue }}</span>
@ -61,6 +84,11 @@
<span>{{ scope.row.tyreValue }}</span>
</template>
</el-table-column>
<el-table-column label="轴距" align="center">
<template slot-scope="scope">
<span>{{ scope.row.wheelbaseValue }}</span>
</template>
</el-table-column>
</el-table>
</el-form>
</div>

2
anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangguanli/shangzhuangAdd.vue

@ -53,7 +53,7 @@
</el-row>
<el-row>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span><span class="icon">*</span>外廓尺寸</span></div>
<div class="span-sty spanOneWidth"><span><span class="icon">*</span>货箱内部尺寸</span></div>
<el-form-item>
<div class="addinputw" style="display: inline-block;margin-left: 120px;">
<span></span><el-input size="mini" @keyup.native="UpNumber" @keydown.native="UpNumber" v-model="formobj.wk_long" placeholder="" class="inputStyle"/>mm,

2
anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangguanli/shangzhuangInfo.vue

@ -31,7 +31,7 @@
</el-row>
<el-row>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>外廓尺寸</span></div>
<div class="span-sty spanOneWidth"><span>货箱内部尺寸</span></div>
<el-form-item>
<div class="addinputInfo addinputwOne">
<span class="inputStyle">{{ formobj.wk_long }}</span>mm,

2
anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangguanli/shangzhuangguanli.vue

@ -74,7 +74,7 @@
<el-table-column prop="installNameValue" width="110" label="上装名称" align="center"/>
<el-table-column prop="refitMethodValue" width="110" label="委改方式" align="center"/>
<el-table-column prop="refitFactory" width="110" label="供应商" align="center"/>
<el-table-column prop="wk" label="外廓尺寸" header-align="center" align="left" width="250"/>
<el-table-column prop="wk" label="货箱内部尺寸" header-align="center" align="left" width="250"/>
<el-table-column prop="colorValue" width="110" label="颜色" align="center"/>
<el-table-column prop="plateMaterialValue" width="110" label="板材材质" align="center"/>
<el-table-column prop="plateThickness" label="板材厚度" header-align="center" align="left" width="250"/>

2
anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangtaizhangguanli/shangzhangtaizhangInfo.vue

@ -30,7 +30,7 @@
</el-row>
<el-row>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>外廓尺寸</span></div>
<div class="span-sty spanOneWidth"><span>货箱内部尺寸</span></div>
<el-form-item>
<div class="addinputInfo addinputwOne" style="display: inline-block;margin-left: 120px;">
<span class="inputStyle">{{ formobj.baseVehinstallmodel.wk_long }}</span>mm,

2
anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangtaizhangguanli/shangzhuangpeizhijiansuo.vue

@ -71,7 +71,7 @@
<el-table-column prop="installNameValue" label="上装名称" align="center"/>
<el-table-column prop="refitMethodValue" label="委改方式" align="center"/>
<el-table-column prop="refitFactory" label="供应商" align="center"/>
<el-table-column prop="wk" label="外廓尺寸" header-align="center" align="left" width="200"/>
<el-table-column prop="wk" label="货箱内部尺寸" header-align="center" align="left" width="200"/>
<el-table-column prop="colorValue" label="颜色" align="center"/>
<el-table-column prop="plateMaterialValue" label="板材材质" align="center"/>
<el-table-column prop="plateThickness" label="板材厚度" header-align="center" align="left" width="150"/>

2
anrui-scm/anrui-scm-ui/src/views/shangzhuang/shangzhuangtaizhangguanli/shangzhuangtaizhangAdd.vue

@ -38,7 +38,7 @@
</el-row>
<el-row>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>外廓尺寸</span></div>
<div class="span-sty spanOneWidth"><span>货箱内部尺寸</span></div>
<el-form-item>
<div class="addinputInfo addinputwOne">
<span class="inputStyle">{{ formobj.baseVehinstallmodel.wk_long }}</span>mm,

2
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhi.vue

@ -70,7 +70,7 @@
<el-table-column prop="installNameValue" label="上装名称" align="center" width="200"/>
<el-table-column prop="refitMethodValue" label="委改方式" align="center" width="200"/>
<el-table-column prop="refitFactory" label="委改厂" align="center" width="200"/>
<el-table-column prop="wk" label="外廓尺寸" header-align="center" align="left" width="250"/>
<el-table-column prop="wk" label="货箱内部尺寸" header-align="center" align="left" width="250"/>
<el-table-column prop="colorValue" label="颜色" align="center" width="200"/>
<el-table-column prop="plateMaterialValue" label="板材材质" align="center" width="200"/>
<el-table-column prop="plateThickness" label="板材厚度" header-align="center" align="left" width="250"/>

2
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhiAdd.vue

@ -32,7 +32,7 @@
</el-row>
<el-row>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>外廓尺寸</span></div>
<div class="span-sty spanOneWidth"><span>货箱内部尺寸</span></div>
<el-form-item prop="installNameValue"><span class="addinputInfo addinputwOne">{{ formobj.overallDimension }}</span></el-form-item>
</el-col>
<el-col :span="12">

2
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhiInfo.vue

@ -31,7 +31,7 @@
</el-row>
<el-row>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>外廓尺寸</span></div>
<div class="span-sty spanOneWidth"><span>货箱内部尺寸</span></div>
<el-form-item prop="installNameValue"><span class="addinputInfo addinputwOne">{{ formobj.overallDimension }}</span></el-form-item>
</el-col>
<el-col :span="12">

2
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/shangzhuangselect/shangzhuangpeizhiAdd.vue

@ -32,7 +32,7 @@
</el-row>
<el-row>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>外廓尺寸</span></div>
<div class="span-sty spanOneWidth"><span>货箱内部尺寸</span></div>
<el-form-item prop="installNameValue"><span class="addinputInfo addinputwOne">{{ formobj.overallDimension }}</span></el-form-item>
</el-col>
<el-col :span="12">

2
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/shangzhuangselect/shangzhuangpeizhiInfo.vue

@ -31,7 +31,7 @@
</el-row>
<el-row>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>外廓尺寸</span></div>
<div class="span-sty spanOneWidth"><span>货箱内部尺寸</span></div>
<el-form-item prop="installNameValue"><span class="addinputInfo addinputwOne">{{ formobj.overallDimension }}</span></el-form-item>
</el-col>
<el-col :span="12">

2
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/shangzhuangselect/shuangzhuangpeizhi.vue

@ -70,7 +70,7 @@
<el-table-column prop="installNameValue" label="上装名称" align="center" width="200"/>
<el-table-column prop="refitMethodValue" label="委改方式" align="center" width="200"/>
<el-table-column prop="refitFactory" label="委改厂" align="center" width="200"/>
<el-table-column prop="wk" label="外廓尺寸" header-align="center" align="left" width="250"/>
<el-table-column prop="wk" label="货箱内部尺寸" header-align="center" align="left" width="250"/>
<el-table-column prop="colorValue" label="颜色" align="center" width="200"/>
<el-table-column prop="plateMaterialValue" label="板材材质" align="center" width="200"/>
<el-table-column prop="plateThickness" label="板材厚度" header-align="center" align="left" width="250"/>

Loading…
Cancel
Save