From cb62980b0f1a2ec400905c0a6de0de59e86f777e Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 26 Oct 2022 09:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=BD=A6=E8=BE=86=E5=A4=96?= =?UTF-8?q?=E9=87=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/cheliang/basevehicle.js | 11 ++ .../baseoutsourcingapplicationAdd.vue | 148 ++++++++++++++---- .../baseoutsourcingapplicationInfo.vue | 30 +++- .../chexingbyconfiguration.vue | 25 ++- .../workflow/baseoutsourcingapplication.vue | 30 +++- .../baseoutsourcingapplicationAdd.vue | 128 +++++++++++++-- .../baseoutsourcingapplicationInfo.vue | 30 +++- .../workflow/chexingbyconfiguration.vue | 25 ++- 8 files changed, 331 insertions(+), 96 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/api/cheliang/basevehicle.js b/anrui-scm/anrui-scm-ui/src/api/cheliang/basevehicle.js index 5ea0307695..a812cf111d 100644 --- a/anrui-scm/anrui-scm-ui/src/api/cheliang/basevehicle.js +++ b/anrui-scm/anrui-scm-ui/src/api/cheliang/basevehicle.js @@ -1,5 +1,6 @@ import request from '@/utils/request' import qs from 'qs' +import {data} from "autoprefixer"; // 条件查询 export function pagerList(data) { @@ -217,3 +218,13 @@ export function pagerListByOrgSidPath(data) { headers: { 'Content-Type': 'application/json' } }) } + +// 查询供应商 +export function selectSupplier(data) { + return request({ + url: '/base/v1/basemanufacturer/selectSupplier', + method: 'get', + params: data + }) +} + diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue index f8598f1bc6..973f40efb9 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue @@ -14,22 +14,32 @@
金额单位:元
- + 分公司名称 - + {{ formobj.useOrgName }} - + + *采购系统 + + + + + + + + + 申请人 - + {{ formobj.createByName }} - + 申请日期 - + {{ formobj.applicationDate }} @@ -43,10 +53,20 @@ --> + + *品牌 + + + + + + + + *车型 - + {{ formobj.modelName }} @@ -91,7 +111,7 @@ *外采供应商 - + @@ -107,6 +127,16 @@ + + *订金使用规则 + + + + + + + + @@ -147,7 +177,7 @@ 剩余车款 - + {{ ShengYuMoney() }} @@ -246,18 +276,7 @@ - + 合同上传 @@ -293,7 +312,7 @@ import modellibrary from '@/views/baseoutsourcingapplication/relation/modellibra import req from '@/api/baseoutsourcingapplication/baseoutsourcingapplication' import configuration from './chexingbyconfiguration' import { getStorage } from '@/utils/auth' -import { getPathSidByUserSid } from '@/api/cheliang/basevehiclemodel' +import { getPathSidByUserSid, brandDown, selectOrgLists, typeValues } from '@/api/cheliang/dictcommons' export default { name: 'BaseOutsourcingApplicationAdd', @@ -320,11 +339,15 @@ export default { uploadAction: process.env.VUE_APP_BASE_API + '/base/file/upload', filType: '.pdf,.docx,.doc', fileList: [], + orgDept_list: [], + carBrand_list: [], + depositUseRule_list: [], wcgys_list: [], // 外采供应商 account_list: [], formobj: { remarks: '', useOrgName: '', + useOrgSid: '', accountName: '', depositBankName: '', bankAccount: '', @@ -362,11 +385,20 @@ export default { businessSid: '', taskId: '', instanceId: '', - modelId: '' + modelId: '', + carBrandName: '', + carBrandSid: '', + purchaseSystemSid: '', + purchaseSystemName: '', + depositUseRuleValue: '', + depositUseRuleKey: '', + vehicleTypeKey: '' }, rules: { + purchaseSystemName: [{ required: true, message: '采购系统不能为空', trigger: 'change' }], // 采购系统名称 purchasingUnitName: [{ required: true, message: '外采供应商不能为空', trigger: 'change' }], // 采购单位名称 - accountName: [{ required: true, message: '车款账户不能为空', trigger: 'blur' }], // 车款账户 + carBrandName: [{ required: true, message: '品牌不能为空', trigger: 'change' }], // 品牌名称 + accountName: [{ required: true, message: '车款账户不能为空', trigger: 'change' }], // 车款账户 purchasePrice: [{ required: true, message: '采购价格不能为空', trigger: 'blur' }], // 采购价格 num: [{ required: true, message: '台数不能为空', trigger: 'blur' }], // 台数 deposit: [{ required: true, message: '订金不能为空', trigger: 'blur' }] // 订金 @@ -409,13 +441,29 @@ export default { xhr.send() }, init() { + typeValues({ type: 'depositUseRule' }).then((res) => { + if (res.success) { + this.depositUseRule_list = res.data + } + }) + selectOrgLists({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => { + if (res.success) { + this.orgDept_list = res.data + } + }) getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => { if (res.success) { + this.formobj.useOrgSid = res.data req.fetchOrgBySid(res.data).then((resp) => { if (resp.success) { this.formobj.useOrgName = resp.data.name } }) + brandDown({ useOrg: res.data }).then((resp) => { + if (resp.success) { + this.carBrand_list = resp.data + } + }) req.wcgysNamesDown(res.data).then((response) => { if (response.success) { this.wcgys_list = response.data @@ -435,8 +483,12 @@ export default { this.viewState = 1 }, selectModel() { + if (this.formobj.carBrandName === '') { + this.$message({ showClose: true, type: 'error', message: '请先选择品牌' }) + return + } this.viewState = 2 - this.$refs['divconfiguration'].showData(this.formobj.baseOutsourcingApplicationVehicleDtos) + this.$refs['divconfiguration'].showData(this.formobj.baseOutsourcingApplicationVehicleDtos, this.formobj.carBrandSid) }, selectChexing(info) { this.viewState = '1' @@ -444,8 +496,9 @@ export default { this.formobj.modelName = info[0].vehicleAlias // 车型名称 this.formobj.configName = info[0].configName // 常用配置名称 this.formobj.configSid = info[0].configSid // 常用配置sid - this.formobj.guidedPrice = info[0].guidedPrice// 销售指导价 - this.formobj.insideCode = info[0].insideCode// 内部编码 + this.formobj.guidedPrice = info[0].guidedPrice // 销售指导价 + this.formobj.insideCode = info[0].insideCode // 内部编码 + this.formobj.vehicleTypeKey = info[0].vehicleTypeKey // 车辆类型Key }, selectVehicleDialog() { var objs = this.formobj.baseOutsourcingApplicationVehicleDtos @@ -532,12 +585,27 @@ export default { this.formobj.expenseName = vdata.expenseName // 费用名称 this.formobj.totalExpenseAmount = vdata.totalExpenseAmount // 费用金额合计 this.formobj.orgSid = vdata.orgSid // 部门sid + this.formobj.carBrandName = vdata.carBrandName + this.formobj.carBrandSid = vdata.carBrandSid + this.formobj.purchaseSystemName = vdata.purchaseSystemName + this.formobj.purchaseSystemSid = vdata.purchaseSystemSid + this.formobj.depositUseRuleValue = vdata.depositUseRuleValue + this.formobj.depositUseRuleKey = vdata.depositUseRuleKey + this.formobj.vehicleTypeKey = vdata.vehicleTypeKey this.formobj.baseOutsourcingApplicationVehicleDtos = vdata.baseOutsourcingApplicationVehicleVos // 部门sid } }).catch(e => { console.log(e) }) }, + changeOrgDept(value) { + const choosetItem = this.orgDept_list.filter((item) => item.orgDeptName === value) + this.formobj.purchaseSystemSid = choosetItem[0].orgDeptSid + }, + carBrandChange(value) { + const choosetItem = this.carBrand_list.filter((item) => item.brandName === value) + this.formobj.carBrandSid = choosetItem[0].sid + }, changeWcgys(value) { let bb = null this.wcgys_list.forEach((e) => { @@ -561,6 +629,10 @@ export default { } }) }, + depositUseRuleChange(value) { + const choosetItem = this.depositUseRule_list.filter((item) => item.dictValue === value) + this.formobj.depositUseRuleKey = choosetItem[0].dictKey + }, changeAccountName(value) { let bb = null this.account_list.forEach((e) => { @@ -596,15 +668,20 @@ export default { saveOrUpdate() { this.formobj.userSid = window.sessionStorage.getItem('userSid') this.formobj.orgSid = this.$store.getters.orgSid - if (this.formobj.externalMiningTypeKey == '1') { + if (this.formobj.externalMiningTypeKey === '1') { this.formobj.externalMiningTypeValue = '直接外采' - } else if (this.formobj.externalMiningTypeKey == '2') { + } else if (this.formobj.externalMiningTypeKey === '2') { this.formobj.externalMiningTypeValue = '政策外采' } if (this.formobj.modelName === '' || this.formobj.modelName === null) { this.$message({ showClose: true, type: 'error', message: '车型不能为空,请选择车型' }) return } + console.log((parseInt(this.formobj.deposit) - parseInt(this.formobj.purchasePrice))) + if ((parseInt(this.formobj.deposit) - parseInt(this.formobj.purchasePrice)) > 0 && this.formobj.depositUseRuleKey !== '002') { + this.$message({ showClose: true, type: 'error', message: '因其中订金大于采购单价,订金使用规则请选择均分使用' }) + return + } this.$refs['form_obj'].validate(valid => { if (valid) { this.submitdisabled = true @@ -638,6 +715,11 @@ export default { this.$message({ showClose: true, type: 'error', message: '车型不能为空,请选择车型' }) return } + console.log((parseInt(this.formobj.deposit) - parseInt(this.formobj.purchasePrice))) + if ((parseInt(this.formobj.deposit) - parseInt(this.formobj.purchasePrice)) > 0 && this.formobj.depositUseRuleKey !== '002') { + this.$message({ showClose: true, type: 'error', message: '因其中订金大于采购单价,订金使用规则请选择均分使用' }) + return + } // 提交的代码 // this.submitdisabled = true this.formobj.userSid = window.sessionStorage.getItem('userSid') @@ -681,6 +763,7 @@ export default { handleReturn(isreload) { if (isreload === 'true') this.$emit('reloadlist') this.formobj.id = '' + this.formobj.useOrgSid = '' this.formobj.insideCode = '' this.formobj.accountName = '' this.formobj.depositBankName = '' @@ -709,6 +792,13 @@ export default { this.formobj.modelBankAccount = '' this.formobj.modelAccountName = '' this.formobj.remarks = '' + this.formobj.carBrandName = '' + this.formobj.carBrandSid = '' + this.formobj.purchaseSystemName = '' + this.formobj.purchaseSystemSid = '' + this.formobj.depositUseRuleValue = '' + this.formobj.depositUseRuleKey = '' + this.formobj.vehicleTypeKey = '' this.$refs['form_obj'].resetFields() this.$emit('doback') } diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationInfo.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationInfo.vue index 757f37e204..f329ae6415 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationInfo.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationInfo.vue @@ -16,23 +16,31 @@
金额单位:元
- 分公司名称 - + 分公司名称 + {{ formobj.useOrgName }} - 申请人姓名 - + 采购系统 + + {{ formobj.purchaseSystemName }} + + 申请人姓名 + {{ formobj.createByName }} - 申请日期 - + 申请日期 + {{ formobj.applicationDate }} + 品牌 + + {{ formobj.carBrandName }} + 车型名称 - + {{ formobj.modelName }} @@ -62,7 +70,7 @@
外采供应商 - + {{ formobj.purchasingUnitName }} @@ -70,6 +78,12 @@ {{ formobj.isBeforePayment === '1' ? '是' : '否' }} + + 订金使用规则 + + + {{ formobj.depositUseRuleValue }} + diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/chexingbyconfiguration.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/chexingbyconfiguration.vue index 88a1a898be..4b0d3078cf 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/chexingbyconfiguration.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/chexingbyconfiguration.vue @@ -84,6 +84,7 @@ export default { configName: '', useOrgSid: '', vehicleStateValue: '', + carBrandSid: '', sidList: [] }, total: 1 @@ -135,18 +136,12 @@ export default { }, // 重置按钮 handresetting() { - this.listQuery = { - current: 1, - size: 5, - params: { - vehicleAlias: '', - configName: '', - useOrgSid: '', - vehicleStateValue: '', - sidList: [] - }, - total: 0 - } + this.listQuery.current = 1 + this.listQuery.total = 0 + this.listQuery.size = 5 + this.listQuery.params.vehicleAlias = '' + this.listQuery.params.configName = '' + this.listQuery.params.vehicleStateValue = '' this.getPathSid() }, handleSelectionChange(row) { @@ -160,12 +155,13 @@ export default { configSid: element.configSid, guidedPrice: element.guidedPrice, manufactorSettlementPrice: element.manufactorSettlementPrice, - insideCode: element.insideCode + insideCode: element.insideCode, + vehicleTypeKey: element.vehicleTypeKey }) }) this.sids = aa }, - showData(value) { + showData(value, carBrandSid) { const aa = [] if (value.length > 0) { for (var i = 0; i < value.length; i++) { @@ -181,6 +177,7 @@ export default { this.listQuery.current = 1 this.listQuery.total = 0 this.listQuery.size = 5 + this.listQuery.params.carBrandSid = carBrandSid this.getPathSid() }, // 添加修改返回 diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue index 3467e9a212..b7e09ed110 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue @@ -18,23 +18,31 @@
金额单位:元
- 分公司名称 - + 分公司名称 + {{ formobj.useOrgName }} - 申请人姓名 - + 采购系统 + + {{ formobj.purchaseSystemName }} + + 申请人姓名 + {{ formobj.createByName }} - 申请日期 - + 申请日期 + {{ formobj.applicationDate }} + 品牌 + + {{ formobj.carBrandName }} + 车型名称 - + {{ formobj.modelName }} @@ -64,7 +72,7 @@
外采供应商 - + {{ formobj.purchasingUnitName }} @@ -72,6 +80,12 @@ {{ formobj.isBeforePayment === '1' ? '是' : '否' }} + + 订金使用规则 + + + {{ formobj.depositUseRuleValue }} + diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue index 908b97956b..112029f970 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue @@ -14,22 +14,32 @@
金额单位:元
- + *分公司名称 - + {{ formobj.useOrgName }} - + + *采购系统 + + + + + + + + + *申请人 - + {{ formobj.createByName }} - + *申请日期 - + {{ formobj.applicationDate }} @@ -43,10 +53,20 @@
--> + + *品牌 + + + + + + + + *车型 - + {{ formobj.modelName }} @@ -91,7 +111,7 @@ *外采供应商 - + @@ -107,6 +127,16 @@ + + *订金使用规则 + + + + + + + + @@ -147,7 +177,7 @@ 剩余车款 - + {{ ShengYuMoney() }} @@ -293,7 +323,7 @@ import modellibrary from '@/views/baseoutsourcingapplication/relation/modellibra import req from '@/api/baseoutsourcingapplication/baseoutsourcingapplication' import configuration from './chexingbyconfiguration' import { getStorage } from '@/utils/auth' -import { getPathSidByUserSid } from '@/api/cheliang/basevehiclemodel' +import { getPathSidByUserSid, brandDown, selectOrgLists, typeValues } from '@/api/cheliang/dictcommons' export default { name: 'BaseOutsourcingApplicationAdd', @@ -319,11 +349,15 @@ export default { uploadAction: process.env.VUE_APP_BASE_API + '/base/file/upload', filType: '.pdf,.docx', fileList: [], + orgDept_list: [], + carBrand_list: [], + depositUseRule_list: [], wcgys_list: [], account_list: [], formobj: { remarks: '', useOrgName: '', + useOrgSid: '', accountName: '', isBeforePayment: '', depositBankName: '', @@ -355,7 +389,14 @@ export default { taskId: '', businessSid: '', instanceId: '', - modelId: '' + modelId: '', + carBrandName: '', + carBrandSid: '', + purchaseSystemSid: '', + purchaseSystemName: '', + depositUseRuleValue: '', + depositUseRuleKey: '', + vehicleTypeKey: '' }, stopList: { // 终止列表 businessSid: '', @@ -366,8 +407,10 @@ export default { }, obj: {}, rules: { + purchaseSystemName: [{ required: true, message: '采购系统不能为空', trigger: 'change' }], // 采购系统名称 purchasingUnitName: [{ required: true, message: '外采供应商不能为空', trigger: 'change' }], // 采购单位名称 - accountName: [{ required: true, message: '车款账户不能为空', trigger: 'blur' }], // 车款账户 + carBrandName: [{ required: true, message: '品牌不能为空', trigger: 'change' }], // 品牌名称 + accountName: [{ required: true, message: '车款账户不能为空', trigger: 'change' }], // 车款账户 purchasePrice: [{ required: true, message: '采购价格不能为空', trigger: 'blur' }], // 采购价格 num: [{ required: true, message: '台数不能为空', trigger: 'blur' }], // 台数 deposit: [{ required: true, message: '订金不能为空', trigger: 'blur' }] // 订金 @@ -406,13 +449,29 @@ export default { }, methods: { init() { + typeValues({ type: 'depositUseRule' }).then((res) => { + if (res.success) { + this.depositUseRule_list = res.data + } + }) + selectOrgLists({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => { + if (res.success) { + this.orgDept_list = res.data + } + }) getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => { if (res.success) { + this.formobj.useOrgSid = res.data req.fetchOrgBySid(res.data).then((resp) => { if (resp.success) { this.formobj.useOrgName = resp.data.name } }) + brandDown({ useOrg: res.data }).then((resp) => { + if (resp.success) { + this.carBrand_list = resp.data + } + }) req.wcgysNamesDown(res.data).then((response) => { if (response.success) { this.wcgys_list = response.data @@ -462,8 +521,9 @@ export default { this.formobj.modelName = info[0].vehicleAlias // 车型名称 this.formobj.configName = info[0].configName // 常用配置名称 this.formobj.configSid = info[0].configSid // 常用配置sid - this.formobj.guidedPrice = info[0].guidedPrice// 销售指导价 - this.formobj.insideCode = info[0].insideCode// 内部编码 + this.formobj.guidedPrice = info[0].guidedPrice // 销售指导价 + this.formobj.insideCode = info[0].insideCode // 内部编码 + this.formobj.vehicleTypeKey = info[0].vehicleTypeKey // 车辆类型Key }, handleSubmit() { // var contract = this.formobj.contract @@ -479,6 +539,10 @@ export default { this.$message({ showClose: true, type: 'error', message: '车型不能为空,请选择车型' }) return } + if ((parseInt(this.formobj.deposit) - parseInt(this.formobj.purchasePrice)) > 0 && this.formobj.depositUseRuleKey !== '002') { + this.$message({ showClose: true, type: 'error', message: '因其中订金大于采购单价,订金使用规则请选择均分使用' }) + return + } // 提交的代码 this.submitdisabled = true this.formobj.userSid = window.sessionStorage.getItem('userSid') @@ -508,8 +572,12 @@ export default { this.viewState = 1 }, selectModel() { + if (this.formobj.carBrandName === '') { + this.$message({ showClose: true, type: 'error', message: '请先选择品牌' }) + return + } this.viewState = 2 - this.$refs['divconfiguration'].showData(this.formobj.baseOutsourcingApplicationVehicleDtos) + this.$refs['divconfiguration'].showData(this.formobj.baseOutsourcingApplicationVehicleDtos, this.formobj.carBrandSid) }, selectVehicleDialog() { var objs = this.formobj.baseOutsourcingApplicationVehicleDtos @@ -547,6 +615,13 @@ export default { this.expenseName = '' // 费用名称 this.totalExpenseAmount = '' // 费用金额合计 this.$store.getters.userInfo.orgSid, this.orgSid = '' + this.formobj.carBrandName = '' + this.formobj.carBrandSid = '' + this.formobj.purchaseSystemName = '' + this.formobj.purchaseSystemSid = '' + this.formobj.depositUseRuleValue = '' + this.formobj.depositUseRuleKey = '' + this.formobj.vehicleTypeKey = '' window.parent.postMessage({ cmd: 'returnHeight', params: { @@ -606,6 +681,13 @@ export default { this.formobj.totalExpenseAmount = vdata.totalExpenseAmount // 费用金额合计 this.formobj.orgSid = vdata.orgSid // 部门sid this.formobj.useOrgSid = vdata.useOrgSid + this.formobj.carBrandName = vdata.carBrandName + this.formobj.carBrandSid = vdata.carBrandSid + this.formobj.purchaseSystemName = vdata.purchaseSystemName + this.formobj.purchaseSystemSid = vdata.purchaseSystemSid + this.formobj.depositUseRuleValue = vdata.depositUseRuleValue + this.formobj.depositUseRuleKey = vdata.depositUseRuleKey + this.formobj.vehicleTypeKey = vdata.vehicleTypeKey this.formobj.baseOutsourcingApplicationVehicleDtos = vdata.baseOutsourcingApplicationVehicleVos // 部门sid } else { // 根据resp.code进行异常情况处理 @@ -614,6 +696,14 @@ export default { this.formobj = {} }) }, + changeOrgDept(value) { + const choosetItem = this.orgDept_list.filter((item) => item.orgDeptName === value) + this.formobj.purchaseSystemSid = choosetItem[0].orgDeptSid + }, + carBrandChange(value) { + const choosetItem = this.carBrand_list.filter((item) => item.brandName === value) + this.formobj.carBrandSid = choosetItem[0].sid + }, changeWcgys(value) { let bb = null this.wcgys_list.forEach((e) => { @@ -637,6 +727,10 @@ export default { } }) }, + depositUseRuleChange(value) { + const choosetItem = this.depositUseRule_list.filter((item) => item.dictValue === value) + this.formobj.depositUseRuleKey = choosetItem[0].dictKey + }, changeAccountName(value) { let bb = null this.account_list.forEach((e) => { @@ -676,6 +770,10 @@ export default { this.$message({ showClose: true, type: 'error', message: '车型不能为空,请选择车型' }) return } + if ((parseInt(this.formobj.deposit) - parseInt(this.formobj.purchasePrice)) > 0 && this.formobj.depositUseRuleKey !== '002') { + this.$message({ showClose: true, type: 'error', message: '因其中订金大于采购单价,订金使用规则请选择均分使用' }) + return + } this.$refs['form_obj'].validate(valid => { if (valid) { this.submitdisabled = true diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue index 42d15cfa0b..6340aff20a 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue @@ -11,23 +11,31 @@
金额单位:元
- 分公司名称 - + 分公司名称 + {{ formobj.useOrgName }} - 申请人姓名 - + 采购系统 + + {{ formobj.purchaseSystemName }} + + 申请人姓名 + {{ formobj.createByName }} - 申请日期 - + 申请日期 + {{ formobj.applicationDate }} + 品牌 + + {{ formobj.carBrandName }} + 车型名称 - + {{ formobj.modelName }} @@ -57,7 +65,7 @@
外采供应商 - + {{ formobj.purchasingUnitName }} @@ -65,6 +73,12 @@ {{ formobj.isBeforePayment === '1' ? '是' : '否' }} + + 订金使用规则 + + + {{ formobj.depositUseRuleValue }} + diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/chexingbyconfiguration.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/chexingbyconfiguration.vue index ec97405b5d..a2c377074b 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/chexingbyconfiguration.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/chexingbyconfiguration.vue @@ -84,6 +84,7 @@ export default { configName: '', useOrgSid: '', vehicleStateValue: '', + carBrandSid: '', sidList: [] }, total: 0 @@ -135,18 +136,12 @@ export default { }, // 重置按钮 handresetting() { - this.listQuery = { - current: 1, - size: 5, - params: { - vehicleAlias: '', - configName: '', - useOrgSid: '', - vehicleStateValue: '', - sidList: [] - }, - total: 1 - } + this.listQuery.current = 1 + this.listQuery.total = 0 + this.listQuery.size = 5 + this.listQuery.params.vehicleAlias = '' + this.listQuery.params.configName = '' + this.listQuery.params.vehicleStateValue = '' this.getPathSid() }, handleSelectionChange(row) { @@ -160,12 +155,13 @@ export default { configSid: element.configSid, guidedPrice: element.guidedPrice, manufactorSettlementPrice: element.manufactorSettlementPrice, - insideCode: element.insideCode + insideCode: element.insideCode, + vehicleTypeKey: element.vehicleTypeKey }) }) this.sids = aa }, - showData(value) { + showData(value, carBrandSid) { const aa = [] if (value.length > 0) { for (var i = 0; i < value.length; i++) { @@ -181,6 +177,7 @@ export default { this.listQuery.current = 1 this.listQuery.total = 0 this.listQuery.size = 5 + this.listQuery.params.carBrandSid = carBrandSid this.getPathSid() }, // 添加修改返回