diff --git a/anrui-scm/anrui-scm-ui/src/api/cheliang/basemodelconfig.js b/anrui-scm/anrui-scm-ui/src/api/cheliang/basemodelconfig.js
index b8b0021345..addc5f3ff5 100644
--- a/anrui-scm/anrui-scm-ui/src/api/cheliang/basemodelconfig.js
+++ b/anrui-scm/anrui-scm-ui/src/api/cheliang/basemodelconfig.js
@@ -1,7 +1,7 @@
import request from '@/utils/request'
import qs from 'qs'
-// 车型关联表条件查询 已改
+// 车型与常用配置关联表条件查询 已改
export function pagerList(data) {
return request({
url: '/base/basevehmodelconfig/listPage', data,
@@ -10,6 +10,15 @@ export function pagerList(data) {
})
}
+// 常用配置
+export function getList(data) {
+ return request({
+ url: '/base/v1/basemodelconfig/pagerList', data,
+ method: 'post',
+ headers: { 'Content-Type': 'application/json' }
+ })
+}
+
// PC-车型与常用配置建立关联关系 已改
export function setRel(data) {
return request({
@@ -25,12 +34,31 @@ export function deleteRel(params) {
url: '/base/basevehmodelconfig/checkRelieve',
method: 'DELETE',
params: {
- modelSid:params.modelSid,
- configurationItemsSid:params.configurationItemsSid
+ modelSid: params.modelSid,
+ configurationItemsSid: params.configurationItemsSid
}
})
}
+// 价格维护修改回显 已改
+export function fetchBySid(data) {
+ return request({
+ url: '/base/basevehmodelconfig/fetchBySid/' + data,
+ method: 'get',
+ params: data
+ })
+}
+
+// 价格维护编辑保存
+export function update(data) {
+ return request({
+ url: '/base/basevehmodelconfig/update',
+ method: 'post',
+ data: data,
+ headers: { 'Content-Type': 'application/json' }
+ })
+}
+
//添加
export function SaveList(data) {
return request({
diff --git a/anrui-scm/anrui-scm-ui/src/api/cheliang/basevehiclemodel.js b/anrui-scm/anrui-scm-ui/src/api/cheliang/basevehiclemodel.js
index 3b87f9d787..b629b02cd3 100644
--- a/anrui-scm/anrui-scm-ui/src/api/cheliang/basevehiclemodel.js
+++ b/anrui-scm/anrui-scm-ui/src/api/cheliang/basevehiclemodel.js
@@ -27,7 +27,7 @@ export function deleteBySids(params) {
url: '/base/v1/basevehiclemodel/deleteBySids',
method: 'DELETE',
params: {
- sids:params
+ sids: params
}
})
}
@@ -41,6 +41,15 @@ export function details(data) {
})
}
+//编辑回显 已改
+export function getAll(data) {
+ return request({
+ url: '/base/v1/basevehiclemodel/getAll/' + data,
+ method: 'get',
+ params: data
+ })
+}
+
//车型列表导出
export function basefinbankExportExcel(data) {
return request({
diff --git a/anrui-scm/anrui-scm-ui/src/api/portal/Upload.js b/anrui-scm/anrui-scm-ui/src/api/portal/Upload.js
index dad59def38..906d19d80c 100644
--- a/anrui-scm/anrui-scm-ui/src/api/portal/Upload.js
+++ b/anrui-scm/anrui-scm-ui/src/api/portal/Upload.js
@@ -19,7 +19,7 @@ export const uploadFile = '/api/portal/file/upload'
// 移除图片
export function deleteFilesOss(data) {
return request({
- url: '/base/v1/baseVehicleAppendixs/deleteFilesOss',data,
+ url: '/base/v1/baseVehicleAppendixs/deleteFilesOss', // data,
method: 'post',
data: qs.stringify(data),
// headers: { 'Content-Type': 'multipart/form-data' }
diff --git a/anrui-scm/anrui-scm-ui/src/api/portal/Upload_chexing.js b/anrui-scm/anrui-scm-ui/src/api/portal/Upload_chexing.js
new file mode 100644
index 0000000000..96bf260c74
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/api/portal/Upload_chexing.js
@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+import qs from 'qs'
+// 统一请求路径前缀
+const base = process.env.VUE_APP_URL
+
+// 文件上传接口
+export const uploadFile = '/api/base/v1/basevehiclemodel/pictureUpload'
+
+// 上传图片
+// export function imageUpload(data) {
+// return request({
+// url: '/portal/file/upload',
+// method: 'post',
+// data,
+// headers: { 'Content-Type': 'multipart/form-data' }
+// })
+// }
+
+// 移除图片
+export function deleteFilesOss(data) {
+ return request({
+ url: '/base/v1/baseVehicleAppendixs/deleteFilesOss', // data,
+ method: 'post',
+ data: qs.stringify(data),
+ // headers: { 'Content-Type': 'multipart/form-data' }
+ })
+}
diff --git a/anrui-scm/anrui-scm-ui/src/components/uploadFile/upload.vue b/anrui-scm/anrui-scm-ui/src/components/uploadFile/upload.vue
index 2142df7797..a554e94db9 100644
--- a/anrui-scm/anrui-scm-ui/src/components/uploadFile/upload.vue
+++ b/anrui-scm/anrui-scm-ui/src/components/uploadFile/upload.vue
@@ -102,11 +102,11 @@
handler(newVal, oldVal) {
console.log('aaaa1', newVal)
this.files = newVal
- if (this.stateName = 'xunidingjinAdd') {
- if (this.files.length > 1) {
- this.files.splice(0, 1)
- }
- }
+ // if (this.stateName = 'xunidingjinAdd') {
+ // if (this.files.length > 1) {
+ // this.files.splice(0, 1)
+ // }
+ // }
console.log('aaaa2', this.files)
}
}
diff --git a/anrui-scm/anrui-scm-ui/src/components/uploadFile/uploadImg.vue b/anrui-scm/anrui-scm-ui/src/components/uploadFile/uploadImg.vue
index 23e148dc71..e7edfb4e0f 100644
--- a/anrui-scm/anrui-scm-ui/src/components/uploadFile/uploadImg.vue
+++ b/anrui-scm/anrui-scm-ui/src/components/uploadFile/uploadImg.vue
@@ -93,11 +93,11 @@
handler(newVal, oldVal) {
console.log('aaaa1', newVal)
this.files = newVal
- if (this.stateName = 'xunidingjinAdd') {
- if (this.files.length > 1) {
- this.files.splice(0, 1)
- }
- }
+ // if (this.stateName = 'xunidingjinAdd') {
+ // if (this.files.length > 1) {
+ // this.files.splice(0, 1)
+ // }
+ // }
console.log('aaaa2', this.files)
}
}
diff --git a/anrui-scm/anrui-scm-ui/src/components/uploadFile/upload_chexing.vue b/anrui-scm/anrui-scm-ui/src/components/uploadFile/upload_chexing.vue
new file mode 100644
index 0000000000..81f09b6872
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/components/uploadFile/upload_chexing.vue
@@ -0,0 +1,242 @@
+
+
+
+ 点击上传
+
+
+
+
+
+
+
diff --git a/anrui-scm/anrui-scm-ui/src/main.js b/anrui-scm/anrui-scm-ui/src/main.js
index 10f6174268..9f0893e298 100644
--- a/anrui-scm/anrui-scm-ui/src/main.js
+++ b/anrui-scm/anrui-scm-ui/src/main.js
@@ -77,6 +77,7 @@ function getUserInfo(){
window.sessionStorage.setItem('departmentSid',user.departmentSid);
})
}
+
getUserInfo();
function GetQueryString(name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)')
diff --git a/anrui-scm/anrui-scm-ui/src/styles/el-form.scss b/anrui-scm/anrui-scm-ui/src/styles/el-form.scss
index 0e470b2f02..e4c33ba95a 100644
--- a/anrui-scm/anrui-scm-ui/src/styles/el-form.scss
+++ b/anrui-scm/anrui-scm-ui/src/styles/el-form.scss
@@ -7,7 +7,7 @@
.listconadd .title {
text-align: center;
font-size: 28px;
- line-height: 90px;
+ //line-height: 90px;
}
.listaddtop {
@@ -23,12 +23,11 @@
}
}
-
.listconadd .demo-ruleForm {
padding: 22px 28px;
}
-.el-collapse-item__header{
+.el-collapse-item__header {
.el-icon-arrow-right:before {
content: "";
font-size: 20px;
@@ -60,8 +59,15 @@
}
}
-.tleftb, .trightb {
- border-top: 1px solid #e0e3eb !important;
+.tleftb {
+ text-align: right;
+ font-size: 14px;
+ color: #606266;
+ line-height: 40px !important;
+ font-weight: 600;
}
-
+.icon {
+ color: #e84026;
+ margin-right: 4px;
+}
diff --git a/anrui-scm/anrui-scm-ui/src/styles/index.scss b/anrui-scm/anrui-scm-ui/src/styles/index.scss
index 6c271bb2fa..c2959aa82a 100644
--- a/anrui-scm/anrui-scm-ui/src/styles/index.scss
+++ b/anrui-scm/anrui-scm-ui/src/styles/index.scss
@@ -69,11 +69,11 @@ div:focus {
}
// main-container global css
.container{
- min-height: 100%;
+ min-height: 100%;
height: 100%;
- background-color: #FFFFFF;
- box-sizing: border-box;
- padding: 10px 0;
+ background-color: #FFFFFF;
+ box-sizing: border-box;
+ padding: 10px 0;
}
.fl{
@@ -149,68 +149,68 @@ div:focus {
// .listeltable{overflow-y: auto;height: calc(100vh - 420px);}
.formadd {
- padding: 20px 0;
+ padding: 20px 0;
// height: calc(100vh - 200px);overflow-y: auto;
- .title {
- padding: 10px;font-weight: bold;
+ .title {
+ padding: 10px;font-weight: bold;
font-size: 20px;
background-color: $header-bg;
text-align: center;
color: #ffffff;
- }
+ }
.el-row {
- display:flex;
- flex-wrap: wrap;
- border-left: 1px solid $table-border-color;
- .el-col{
- border-right: 1px solid $table-border-color;
- border-bottom: 1px solid $table-border-color;
- padding: 5px 15px 5px 15px !important;
- min-height: 50px;
- line-height: 1;
- .el-form-item{
- margin-bottom: 0;
- // .addinputw{width: 400px;}
- .addinputw{width: 80%;}
- }
+ display:flex;
+ flex-wrap: wrap;
+ border-left: 1px solid $table-border-color;
+ .el-col{
+ border-right: 1px solid $table-border-color;
+ border-bottom: 1px solid $table-border-color;
+ padding: 5px 15px 5px 15px !important;
+ min-height: 50px;
+ line-height: 1;
+ .el-form-item{
+ margin-bottom: 0;
+ // .addinputw{width: 400px;}
+ .addinputw{width: 80%;}
}
+ }
- }
- .footer{margin: 20px;}
+ }
+ .footer{margin: 20px;}
}
.forminfo {
- padding: 20px 0;
- .title {
- padding: 10px;font-weight: bold;
+ padding: 20px 0;
+ .title {
+ padding: 10px;font-weight: bold;
font-size: 20px;
background-color: $header-bg;
text-align: center;
color: #ffffff;
- }
+ }
.el-row {
- display:flex;
- flex-wrap: wrap;
- border-left: 1px solid $table-border-color;
- .trightb{ text-align: right;font-weight: bold;color: #606266; }
- .tleft{ text-align: left; }
- .el-col{
- border-right: 1px solid $table-border-color;
- border-bottom: 1px solid $table-border-color;
- padding: 0px 15px 0px 15px !important;
- min-height: 50px;
- line-height: 50px;
- font-size: 14px;
-
- }
+ display:flex;
+ flex-wrap: wrap;
+ border-left: 1px solid $table-border-color;
+ .trightb{ text-align: right;font-weight: bold;color: #606266; }
+ .tleft{ text-align: left; }
+ .el-col{
+ border-right: 1px solid $table-border-color;
+ border-bottom: 1px solid $table-border-color;
+ padding: 0 15px 0 15px !important;
+ min-height: 50px;
+ line-height: 50px;
+ font-size: 14px;
+
+ }
- }
- .footer{margin: 20px;}
+ }
+ .footer{margin: 20px;}
}
.el-form-item__error {
- z-index: 100;
+ z-index: 100;
}
.bluezi{color: $header-bg; cursor: pointer}
// 经销商添加样式
@@ -218,30 +218,30 @@ div:focus {
display: flex;flex-direction: row;justify-content: space-around; background-color: #0294d7;flex: 3;
}
.titcon .title{
- padding: 10px;font-weight: bold;
- font-size: 20px;
- text-align: center;
- color: #ffffff;
+ padding: 10px;font-weight: bold;
+ font-size: 20px;
+ text-align: center;
+ color: #ffffff;
}
.titcon .baocun{text-align: right;flex: 2;padding: 5px 20px;}
.addinputwda{width: 600px;}
.searchcon{margin: 0px 0 10px 0;}
-.searchcon .searchbtn{margin: 10px 0;}
+.searchcon .searchbtn{margin: 10px 0;border: #2cab69 1px solid;color: #2cab69;}
// 弹出窗口按钮
.btnCancel{
- background: #e84026 !important;outline: none;border: none;color: #fff !important;
+ background: #e84026 !important;outline: none;border: none;color: #fff !important;
}
.btnCancel:hover{
- background: #ed6651 !important;
+ background: #ed6651 !important;
}
.btnFalses{
- background: #2cab69 !important;outline: none;border: none;
+ background: #2cab69 !important;outline: none;border: none;
}
.btnFalses:hover{
- background: #3dc47e !important;
+ background: #3dc47e !important;
}
.btntopblueline{background-color: #066bc9 !important;}
.btntopblueline:hover{background-color: #34a1db !important;}
diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue
index 953470dbd0..934dbb8d98 100644
--- a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue
@@ -51,19 +51,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.engineType }}
+ {{ scope.row.engineTypeValue }}
- {{ scope.row.otherConfig }}
+ {{ scope.row.vehicleTypeCode }}
查看
-
+
@@ -291,7 +280,8 @@
deleteBySids,
basefinbankExportExcel,
brandDown,
- pullDown
+ pullDown,
+ getAll
} from '@/api/cheliang/basevehiclemodel'
import { setMIng, getMIng, getCHeap, setCHeap } from '@/utils/baocun'
import Pagination from '@/components/pagination'
@@ -299,7 +289,7 @@
import chexingAdd from './chexingAdd'
import chexinglook from './chexinglook'
import chexingpeizhi from './relation/chexingguanlianchangyong'
- import upload from '../../../components/uploadFile/upload'
+ import upload from '../../../components/uploadFile/upload_chexing'
export default {
name: 'Pinpaiguanli',
@@ -604,13 +594,17 @@
console.log('图片列表', row.vehicleModelUrls)
this.srcList = row.vehicleModelUrls
},
- handleUpload() {
-
+ handleUpload(row) {
+ const sid = row.sid
+ // this.$refs.uploadMoreImg.uploadData.modelSid = 123456
+ // this.$refs['uploadMoreImg'].showImg(sid)
},
+
// 打开查看
handleCheck(row) {
this.viewState = 4
const sid = row.sid
+ console.log('详情sid', sid)
this.$refs['divinfo'].showInfo(sid, row)
},
// 根据本行ID删除数据
diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
index 5aa3e175df..bfe5392070 100644
--- a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
@@ -195,7 +195,7 @@
} from 'vuex'
import {
SaveList,
- details,
+ getAll,
getOrg,
selectByOrgSid,
namesDownBySid,
@@ -210,29 +210,7 @@
name: 'PinpaiAdd',
components: { Upload },
data() {
- // var validCascader = (rule, value, callback) => {
- // if (this.useOrgArry.length == 0) {
- // callback(new Error('请填写使用组织'))
- // } else {
- // callback()
- // }
- // }
return {
- baseVehicleModelAppendixDtos: {
- aa: {
- modelSid: '', // 车型sid
- filePath: '' // 图片路径
- },
- bb: {
- modelSid: '', // 车型sid
- filePath: '' // 图片路径
- },
- cc: {
- modelSid: '', // 车型sid
- filePath: '' // 图片路径
- }
- },
-
viewTitle: '',
// --字段展示-------
fieldShow: 0, // 0.所有 1.欧曼 2.陕汽
@@ -258,7 +236,7 @@
vehicleTypeCode: '', // 车型编码
carBrand: '', // 品牌
// carBrandValue:'',
- brandName:'',
+ brandName: '',
vehicleType: '', // 功能key
vehicleTypeValue: '', // 功能value值
modelName: '', // 车型名称
@@ -387,111 +365,90 @@
showEdit(sid, row) {
console.log(sid)
+ console.log('imgList', this.imgList)
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
this.viewTitle = '【修改】车型信息'
this.dialogStatus = 'update'
- this.temp.sid = sid
console.log('编辑回显', sid)
- details(sid).then(resp => {
+ getAll(sid).then(resp => {
const data = resp.data
this.temp = data
- // this.useOrgArry = data.useOrg
+ this.temp = JSON.parse(JSON.stringify(this.temp).replace(
+ /baseVehicleModelAppendixVos/g,
+ 'baseVehicleModelAppendixDtos'
+ )
+ )
+ this.temp.sid = sid
+ if (this.temp.baseVehicleModelAppendixDtos.length > 0) {
+ for (var i = 0; i < this.temp.baseVehicleModelAppendixDtos.length; i++) {
+ var imgName = this.temp.baseVehicleModelAppendixDtos[i].filePath.split('/')
+ this.imgList.push({
+ name: imgName[imgName.length - 1],
+ url: this.temp.baseVehicleModelAppendixDtos[i].filePath
+ })
+ }
+ console.log('123123', this.imgList)
+ }
})
},
- // 使用组织
- usrOrgArryChange(e) {
- console.log('选中结果:' + JSON.stringify(e))
- var result = ''
- var result_Sid = ''
- if (e.length > 0) {
- // 循环多选项
- e.forEach((item) => {
- var last_id = item[item.length - 1]
- // console.log('options:'+JSON.stringify(this.options))
- // 循环查找名字
- this.select_temp = '' // 临时遍历,用来保存选中结果
- this.select_temp_Sid = ''
- this.findOrgId(last_id, this.options)
- result = result + this.select_temp + ','
- result_Sid = result_Sid + this.select_temp_Sid + ','
+ // 提交添加数据
+ handleCreate() {
+ this.$refs['dataForm'].validate(valid => {
+ if (valid) {
+ this.FormLoading = true
+ if (this.dialogStatus === 'add') {
+ this.getUrl()
+ SaveList(this.temp).then(response => {
+ this.FormLoading = false
+ if (response.code === '200') {
+ this.dialogFormVisible = false
+ this.handleReturn('true')
+ } else {
- })
- }
- if (result !== '') {
- result = result.substring(0, result.length - 1)
- }
- if (result_Sid !== '') {
- result_Sid = result_Sid.substring(0, result_Sid.length - 1)
- }
- this.temp.useOrgName = result
- console.log('选中名称:' + this.temp.useOrgName)
- },
- // 创建组织
- createOrgChange(e) {
- console.log('选中结果:' + JSON.stringify(e))
- var result = ''
- var result_Sid = ''
- if (e.length > 0) {
- // 循环多选项
- e.forEach((item) => {
- var last_id = item[item.length - 1]
- // console.log('options:'+JSON.stringify(this.options))
- // 循环查找名字
- this.select_temp = '' // 临时遍历,用来保存选中结果
- this.select_temp_Sid = ''
- this.findOrgId(last_id, this.options)
- result = result + this.select_temp + ','
- result_Sid = result_Sid + this.select_temp_Sid + ','
+ }
+ })
+ } else {
+ const useOrg_array = this.temp.useOrg[0]
+ const useOrg_str = useOrg_array[useOrg_array.length - 1]
+ this.temp.useOrg = useOrg_str
+ this.updateUrl()
+ SaveList(this.temp).then(response => {
+ this.FormLoading = false
+ if (response.code === '200') {
+ this.dialogFormVisible = false
+ this.handleReturn('true')
+ } else {
- })
- }
- if (result !== '') {
- result = result.substring(0, result.length - 1)
- }
- if (result_Sid !== '') {
- result_Sid = result_Sid.substring(0, result_Sid.length - 1)
- }
- this.temp.useOrgName = result
- console.log('选中名称:' + this.temp.useOrgName)
- },
- // --- 循环查询
- findOrgId(id, options) {
- for (var i = 0; i < options.length; i++) {
- if (id == options[i].sid) {
- this.select_temp = options[i].name // 保存找到的内容
- return true
- } else {
- // 判断是否最后一级
- if (options[i].children !== undefined) {
- // 不是的话查询下一级
- if (this.findOrgId(id, options[i].children)) {
- return true
- }
+ }
+ })
}
}
- }
- },
- // 组织
- getZuZhi() {
- getOrg().then(res => {
- if (res.code === '200') {
- this.options = res.data
- this.zuzhi0(this.options)
- }
})
},
- zuzhi0(data) {
- data.forEach((e) => {
- if (e.children.length != 0) {
- this.zuzhi0(e.children)
- } else {
- delete e.children
- this.dataArr.push(e)
- return
- }
- })
+ getUrl() {
+ console.log('已有图片', this.imgList)
+ for (var i = 0; i < this.imgList.length; i++) {
+ console.log(this.temp)
+ this.temp.baseVehicleModelAppendixDtos.push({
+ modelSid: this.temp.sid,
+ filePath: this.imgList[i].url
+ })
+ console.log('保存的图片', this.temp.baseVehicleModelAppendixDtos)
+ }
+ },
+ updateUrl() {
+ console.log('回显', this.imgList)
+ for (var i = 0; i < this.imgList.length; i++) {
+ const img_file = []
+ img_file.push({
+ modelSid: this.temp.sid,
+ filePath: this.imgList[i].url
+ })
+ this.temp.baseVehicleModelAppendixDtos = img_file
+ console.log('保存的图片', this.temp.baseVehicleModelAppendixDtos)
+ }
},
// ----------------------------------方法--------------------
// 返回
@@ -500,7 +457,8 @@
this.temp = {
sid: '', // 车型sid
vehicleTypeCode: '', // 车型编码
- carBrandValue:'',
+ carBrandValue: '',
+ brandName: '',
carBrand: '', // 品牌
vehicleType: '', // 功能key
vehicleTypeValue: '', // 功能value值
@@ -673,51 +631,6 @@
state: '' // 状态
}
},
- // 提交添加数据
- handleCreate() {
- this.$refs['dataForm'].validate(valid => {
- if (valid) {
- this.FormLoading = true
- if (this.dialogStatus === 'add') {
- this.getUrl()
- SaveList(this.temp).then(response => {
- this.FormLoading = false
- if (response.code === '200') {
- this.dialogFormVisible = false
- this.handleReturn('true')
- } else {
-
- }
- })
- } else {
- this.getUrl()
- SaveList(this.temp).then(response => {
- this.FormLoading = false
- if (response.code === '200') {
- this.dialogFormVisible = false
- this.handleReturn('true')
- } else {
-
- }
- })
- }
- }
- })
- },
- getUrl() {
- console.log('已有图片', this.imgList)
- for (var i = 0; i < this.imgList.length; i++) {
- // var namese = this.imgList[i].name
- // var nameArr = namese.split('.')
- console.log(this.temp)
- this.temp.baseVehicleModelAppendixDtos.push({
- attachType: '0001',
- modelSid: this.temp.sid,
- filePath: this.imgList[i].url
- })
- console.log('保存的图片', this.temp.baseVehicleModelAppendixDtos)
- }
- },
getChang() {
selectByOrgSid().then(res => {
if (res.code === '200') {
@@ -725,36 +638,6 @@
}
})
},
- getPinPAi(sid) {
- let bb = {}
- this.facturer.forEach((e) => {
- // eslint-disable-next-line eqeqeq
- if (e.sid == sid) {
- bb = {
- name: e.manufacturerName,
- sid: e.sid
- }
- }
- })
- const manufacturer = bb.name
- switch (manufacturer) {
- case '欧曼':
- this.fieldShow = 1
- break
- case '陕西重汽':
- this.fieldShow = 2
- break
- default:
- this.fieldShow = 0
- }
- namesDownBySid({
- manufacturerSid: sid
- }).then(res => {
- if (res.code === '200') {
- this.Brand = res.data
- }
- })
- },
getGong(value) {
console.log('触发下拉框按钮', value)
let bb = {}
@@ -811,62 +694,7 @@
})
this.temp.marketSegmentsValue = bb.name
},
- getCheliang() {
- let bb = null
- this.cleType.forEach(e => {
- if (e.dictKey == value) {
- bb = {
- type: 'vehicleType',
- name: e.dictValue,
- vaule: e.dictKey
- }
- }
- })
- this.temp.vehicleTypeValue = bb.name
- if (this.temp.modelValue != undefined) {
- this.temp.modelValue.forEach((e, index) => {
- if (e.type == bb.type) {
- this.temp.modelValue.splice(index, 1)
- }
- })
- } else {
- this.temp.modelValue = []
- }
- this.temp.modelValue.push(bb)
- let ab = ''
- this.temp.modelValue.forEach((e, index) => {
- ab = ab + e.name
- })
- this.temp.modelName = ab
- },
- getChangpin(value) {
- let bb = null
- //循环遍历 取name value
- this.ctLine.forEach(e => {
- if (e.dictKey == value) {
- bb = {
- type: 'productLine',
- name: e.dictValue,
- vaule: e.dictKey
- }
- }
- })
- this.temp.productLineValue = bb.name
- //改变的时候先把旧值删掉
- this.temp.modelValue.forEach((e, index) => {
- if (e.type == bb.type) {
- this.temp.modelValue.splice(index, 1)
- }
- })
- this.temp.modelValue.push(bb)
- let ab = ''
- //往里面加值
- this.temp.modelValue.forEach((e, index) => {
- ab = ab + e.name
- })
- this.temp.modelName = ab
- },
getQudong(value) {
let bb = null
this.eForm.forEach(e => {
@@ -1061,6 +889,187 @@
// })
},
+
+ // ======== 暂无用代码 ========
+ // 组织
+ getZuZhi() {
+ getOrg().then(res => {
+ if (res.code === '200') {
+ this.options = res.data
+ this.zuzhi0(this.options)
+ }
+ })
+ },
+ zuzhi0(data) {
+ data.forEach((e) => {
+ if (e.children.length != 0) {
+ this.zuzhi0(e.children)
+ } else {
+ delete e.children
+ this.dataArr.push(e)
+ return
+ }
+ })
+ },
+ // 使用组织
+ usrOrgArryChange(e) {
+ console.log('选中结果:' + JSON.stringify(e))
+ var result = ''
+ var result_Sid = ''
+ if (e.length > 0) {
+ // 循环多选项
+ e.forEach((item) => {
+ var last_id = item[item.length - 1]
+ // console.log('options:'+JSON.stringify(this.options))
+ // 循环查找名字
+ this.select_temp = '' // 临时遍历,用来保存选中结果
+ this.select_temp_Sid = ''
+ this.findOrgId(last_id, this.options)
+ result = result + this.select_temp + ','
+ result_Sid = result_Sid + this.select_temp_Sid + ','
+
+ })
+ }
+ if (result !== '') {
+ result = result.substring(0, result.length - 1)
+ }
+ if (result_Sid !== '') {
+ result_Sid = result_Sid.substring(0, result_Sid.length - 1)
+ }
+ this.temp.useOrgName = result
+ console.log('选中名称:' + this.temp.useOrgName)
+ },
+ // 创建组织
+ createOrgChange(e) {
+ console.log('选中结果:' + JSON.stringify(e))
+ var result = ''
+ var result_Sid = ''
+ if (e.length > 0) {
+ // 循环多选项
+ e.forEach((item) => {
+ var last_id = item[item.length - 1]
+ // console.log('options:'+JSON.stringify(this.options))
+ // 循环查找名字
+ this.select_temp = '' // 临时遍历,用来保存选中结果
+ this.select_temp_Sid = ''
+ this.findOrgId(last_id, this.options)
+ result = result + this.select_temp + ','
+ result_Sid = result_Sid + this.select_temp_Sid + ','
+
+ })
+ }
+ if (result !== '') {
+ result = result.substring(0, result.length - 1)
+ }
+ if (result_Sid !== '') {
+ result_Sid = result_Sid.substring(0, result_Sid.length - 1)
+ }
+ this.temp.useOrgName = result
+ console.log('选中名称:' + this.temp.useOrgName)
+ },
+ // --- 循环查询
+ findOrgId(id, options) {
+ for (var i = 0; i < options.length; i++) {
+ if (id == options[i].sid) {
+ this.select_temp = options[i].name // 保存找到的内容
+ return true
+ } else {
+ // 判断是否最后一级
+ if (options[i].children !== undefined) {
+ // 不是的话查询下一级
+ if (this.findOrgId(id, options[i].children)) {
+ return true
+ }
+ }
+ }
+ }
+ },
+ getPinPAi(sid) {
+ let bb = {}
+ this.facturer.forEach((e) => {
+ // eslint-disable-next-line eqeqeq
+ if (e.sid == sid) {
+ bb = {
+ name: e.manufacturerName,
+ sid: e.sid
+ }
+ }
+ })
+ const manufacturer = bb.name
+ switch (manufacturer) {
+ case '欧曼':
+ this.fieldShow = 1
+ break
+ case '陕西重汽':
+ this.fieldShow = 2
+ break
+ default:
+ this.fieldShow = 0
+ }
+ namesDownBySid({
+ manufacturerSid: sid
+ }).then(res => {
+ if (res.code === '200') {
+ this.Brand = res.data
+ }
+ })
+ },
+ getCheliang() {
+ let bb = null
+ this.cleType.forEach(e => {
+ if (e.dictKey == value) {
+ bb = {
+ type: 'vehicleType',
+ name: e.dictValue,
+ vaule: e.dictKey
+ }
+ }
+ })
+ this.temp.vehicleTypeValue = bb.name
+ if (this.temp.modelValue != undefined) {
+ this.temp.modelValue.forEach((e, index) => {
+ if (e.type == bb.type) {
+ this.temp.modelValue.splice(index, 1)
+ }
+ })
+
+ } else {
+ this.temp.modelValue = []
+ }
+ this.temp.modelValue.push(bb)
+ let ab = ''
+ this.temp.modelValue.forEach((e, index) => {
+ ab = ab + e.name
+ })
+ this.temp.modelName = ab
+ },
+ getChangpin(value) {
+ let bb = null
+ //循环遍历 取name value
+ this.ctLine.forEach(e => {
+ if (e.dictKey == value) {
+ bb = {
+ type: 'productLine',
+ name: e.dictValue,
+ vaule: e.dictKey
+ }
+ }
+ })
+ this.temp.productLineValue = bb.name
+ //改变的时候先把旧值删掉
+ this.temp.modelValue.forEach((e, index) => {
+ if (e.type == bb.type) {
+ this.temp.modelValue.splice(index, 1)
+ }
+ })
+ this.temp.modelValue.push(bb)
+ let ab = ''
+ //往里面加值
+ this.temp.modelValue.forEach((e, index) => {
+ ab = ab + e.name
+ })
+ this.temp.modelName = ab
+ },
getXuanJia(value) {
let bb = null
this.pension.forEach(e => {
@@ -1145,6 +1154,7 @@
// })
// this.temp.speedRatio = cd
}
+
}
}
diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue
index 9cfdb667b8..bf58c9a399 100644
--- a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue
@@ -23,7 +23,7 @@
- {{temp.otherConfig}}
+ {{temp.vehicleTypeCode}}
@@ -33,7 +33,7 @@
- {{temp.vehicleFunction}}
+ {{temp.vehicleTypeValue}}
@@ -41,7 +41,7 @@
- {{temp.series}}
+ {{temp.productLineValue}}
@@ -161,7 +161,7 @@
- {{props.row.price}}
+ {{props.row.guidedPrice}}
@@ -293,6 +293,7 @@
index: 0,
listLoading: false,
temp: {}, // 添加和修改
+ list: [],
templook: { titlea: '00000112' }, // 查看实体
textMap: {
update: '修改',
@@ -328,6 +329,7 @@
// 返回
handleReturn() {
this.temp = {}
+ this.list = []
this.$emit('doback')
},
@@ -341,6 +343,7 @@
this.FormLoading = false
if (response.success) {
this.temp = response.data
+ this.list.push(response.data.baseModelConfigVo)
}
}).catch(() => {
diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue
index 6dc11e4cab..6efb69e846 100644
--- a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue
@@ -5,7 +5,7 @@