Browse Source

表格行间距 验车表

master
Zhao Qiqi 3 years ago
parent
commit
f85de32ab4
  1. 2
      anrui-buscenter/anrui-buscenter-ui/src/styles/index.scss
  2. 30
      anrui-scm/anrui-scm-ui/src/api/cheliang/basevehicle.js
  3. 2
      anrui-scm/anrui-scm-ui/src/icons/svg/RMB.svg
  4. 2
      anrui-scm/anrui-scm-ui/src/icons/svg/exwarehouse.svg
  5. 6
      anrui-scm/anrui-scm-ui/src/styles/index.scss
  6. 65
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue
  7. 2
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue
  8. 216
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu.vue
  9. 13
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMai.vue

2
anrui-buscenter/anrui-buscenter-ui/src/styles/index.scss

@ -187,7 +187,7 @@ div:focus {
.search {
.tab-header {
.el-form-item {
margin-right: 30px;
margin-right: 16px;
.el-form-item__label {
font-size: 16px;

30
anrui-scm/anrui-scm-ui/src/api/cheliang/basevehicle.js

@ -125,3 +125,33 @@ export function fetchByUseOrgSid(data) {
params: data
})
}
// 出库
export function vehicleOutLibrary(data) {
return request({
url: '/base/v1/basevehicle/vehicleOutLibrary',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
}
// 销售专员
export function getUserByOrgSid(data) {
return request({
url: '/portal/v1/sysuser/getUserByOrgSid',
method: 'get',
params: data,
})
}
// 买断
export function vehicleBuyBreak(data) {
return request({
url: '/base/v1/basevehicle/vehicleBuyBreak',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
}

2
anrui-scm/anrui-scm-ui/src/icons/svg/RMB.svg

@ -0,0 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1659150238918" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4239" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M883 552.5v-87.7H617.8L864.9 107l-73-48-272.6 394.9L246 59.4 172.3 106l247.5 358.8H154.9v87.1h320v90.2h-320V731h320v234h88.7V729.8H883v-86.5H563.6v-89.5z" p-id="4240" fill="#ffffff"></path></svg>

After

Width:  |  Height:  |  Size: 888 B

2
anrui-scm/anrui-scm-ui/src/icons/svg/exwarehouse.svg

@ -0,0 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1659150062635" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2249" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M112.8 990.4h204.32a35.68 35.68 0 1 0 0-71.36H115.04V356.64l378.4-254.4 384 268v178.4a36.32 36.32 0 0 0 72.64 0V368.96a68.64 68.64 0 0 0-29.6-56.32L534.4 43.2a71.68 71.68 0 0 0-80-0.8l-380.64 256a68.8 68.8 0 0 0-30.56 57.12v565.76a69.44 69.44 0 0 0 69.6 69.12z" fill="#ffffff" p-id="2250"></path><path d="M867.2 808.8H486.08a35.04 35.04 0 1 1 0-70.08H867.2a35.04 35.04 0 0 1 0 70.08z" fill="#ffffff" p-id="2251"></path><path d="M749.92 981.28a34.88 34.88 0 0 1-25.44-58.88l140.96-150.72-148.16-145.28A35.04 35.04 0 0 1 766.4 576l172.48 169.6a35.04 35.04 0 0 1 1.12 48.96l-164.32 176a35.2 35.2 0 0 1-25.76 10.72z" fill="#ffffff" p-id="2252"></path></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

6
anrui-scm/anrui-scm-ui/src/styles/index.scss

@ -171,7 +171,7 @@ div:focus {
.search {
.tab-header {
.el-form-item {
margin-right: 30px;
margin-right: 16px;
.el-form-item__label {
font-size: 16px;
font-weight: 500;
@ -232,7 +232,9 @@ div:focus {
text-align: left;
color: #ffffff;
}
.first_row{
border-top: 1px solid $table-border-color;
}
.el-row {
display: flex;
flex-wrap: wrap;

65
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue

@ -105,6 +105,10 @@
<!-- 车型配置标准页面 -->
<vehicleconfiguration v-show="viewState == 5" ref="divPeizhi" @doback="resetState"/>
<!-- <changyongpeizhi-info v-show="viewState == 5" ref="divPeizhi" @doback="resetState"></changyongpeizhi-info>-->
<!-- 出库 -->
<cheliangtaizhang-chu v-show="viewState == 6" ref="divPeizhi" @doback="resetState" />
<!-- 买断 -->
<cheliangtaizhang-mai v-show="viewState == 7" ref="divPeizhi" @doback="resetState" />
</div>
</template>
@ -127,6 +131,8 @@ import vehicleconfiguration from '@/views/cheliang/cheliangtaizhang/relation/veh
import ButtonBar from '@/components/ButtonBar'
import Vehicle from '@/views/workFlow/weishoumaiduanFlow/weishoumaiduanguanli/vehicle'
import { getPathSidByUserSid } from '@/api/cheliang/basevehiclemodel'
import cheliangtaizhangChu from '@/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu'
import cheliangtaizhangMai from '@/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMai'
export default {
name: 'cheliangtaizhang',
@ -138,7 +144,9 @@ export default {
ButtonBar,
cheliangtaizhangAdd,
CheliangtaizhangInfo,
vehicleconfiguration
vehicleconfiguration,
cheliangtaizhangChu,
cheliangtaizhangMai
},
data() {
return {
@ -170,16 +178,16 @@ export default {
btnLabel: '删除'
},
{
type: 'danger',
type: 'primary',
size: 'small',
icon: '',
icon: 'exwarehouse',
btnKey: 'doChuku',
btnLabel: '出库'
},
{
type: 'danger',
type: 'primary',
size: 'small',
icon: '',
icon: 'RMB',
btnKey: 'doMaiduan',
btnLabel: '买断'
},
@ -432,6 +440,53 @@ export default {
// query: { sid: row.sid }
// })
},
//
doChuku(){
if (this.sids.length === 1) {
this.viewState = 6
const sid = this.sids[0]
// this.$refs['divchuku'].showChu(sid)
} else if (this.sids.length > 1) {
this.$notify({
title: '提示',
message: '不能选中多个车辆台账修改!!',
type: 'info',
duration: 2000
})
} else {
this.$notify({
title: '提示',
message: '没有选择车辆台账!!',
type: 'error',
duration: 2000
})
return
}
},
//
doMaiduan(){
if (this.sids.length === 1) {
this.viewState = 7
const sid = this.sids[0]
// this.$refs['divmaiduan'].showMai(sid)
} else if (this.sids.length > 1) {
this.$notify({
title: '提示',
message: '只可选择一条数据进行操作!',
type: 'info',
duration: 2000
})
} else {
this.$notify({
title: '提示',
message: '请选择一条数据进行操作!',
type: 'error',
duration: 2000
})
return
}
},
//
createData() {
// console.log('' + JSON.stringify(this.temp))

2
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue

@ -842,7 +842,7 @@ export default {
// if (this.vehiclePhoto_Images.length > 0) {
// for (var i = 0; i < this.vehiclePhoto_Images.length; i++) {
// var image_start = this.vehiclePhoto_Images.indexOf('/upload') + 8
// var image_url = this.vehiclePhoto_Images.substring(image_start)
// var image_url = his.vehiclePhoto_Images.substring(image_start)
// this.temp.vehiclePhoto.push(image_url)
// }
// }

216
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu.vue

@ -0,0 +1,216 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>车辆出库</div>
<div>
<el-button type="primary" size="small" :disabled="dialogFormVisible" @click="handleCreate()">保存</el-button>
<el-button type="info" size="small" :disabled="dialogFormVisible" @click="handleReturn()">返回</el-button>
</div>
</div>
<div class="listconadd">
<div class="titwu">车辆出库</div>
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" class="formadd" :rules="rules">
<el-row class="first_row">
<el-col :span="12">
<el-form-item prop="modelName">
<span slot="label">出库类型</span>
<el-select ref="config" v-model="temp.modelSid" class="addinputw" clearable placeholder=""
filterable
@change="modelSidChange">
<el-option v-for="(item,index) in modelName_list" :key="item.sid" :label="item.modelName"
:value="item.sid"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="modelConfigSid">
<span slot="label">常用配置</span>
<el-select ref="config" v-model="temp.modelConfigSid" class="addinputw" clearable placeholder=""
@change="modelConfigChange">
<el-option v-for="(item,index) in modelConfig_list" :key="item.sid" :label="item.configName"
:value="item.sid"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="vehicleState">
<span slot="label">库存状态</span>
<el-select v-model="temp.vehicleState" class="addinputw" clearable placeholder=""
@change="vehicleStateValueChange">
<el-option v-for="(item,index) in vehicleState_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<span slot="label">车架号</span>
<el-input v-model="temp.vinNo" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="">
<span slot="label">内部编码</span>
<el-input placeholder="" class="addinputw" v-model="temp.insideCode" clearable/>
</el-form-item>
<!-- <el-form-item prop="engineNo">-->
<!-- <span slot="label">发动机号/许可证号</span>-->
<!-- <el-input v-model="temp.engineNo" maxlength="125" placeholder="" class="addinputw" clearable/>-->
<!-- </el-form-item>-->
</el-col>
<el-col :span="12">
<el-form-item prop="orderingNo">
<span slot="label">厂家订单编码</span>
<el-input v-model="temp.orderingNo" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="manPurOrderTypeKey">
<span slot="label">厂家采购订单类型</span>
<el-select v-model="temp.manPurOrderTypeKey " class="addinputw" clearable placeholder=""
@change="manPurOrderTypeChange">
<el-option v-for="(item,index) in manPurOrderType_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="priceDate">
<span slot="label">厂家入库日期</span>
<el-date-picker v-model="temp.priceDate" type="date" format="yyyy-MM-dd" class="addinputw"
value-format="yyyy-MM-dd" placeholder="选择日期时间"/>
<!-- <el-input v-model="temp.manufactureDate" maxlength="125" placeholder="" class="addinputw" clearable /> -->
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="departureDate">
<span slot="label">发车日期</span>
<el-date-picker v-model="temp.departureDate" type="date" format="yyyy-MM-dd" class="addinputw"
value-format="yyyy-MM-dd" placeholder="选择日期时间"/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="arrivalDate">
<span slot="label">到货日期</span>
<el-date-picker v-model="temp.arrivalDate" type="date" format="yyyy-MM-dd" class="addinputw"
value-format="yyyy-MM-dd" placeholder="选择日期时间"/>
<!-- <el-input v-model="temp.manufactureDate" maxlength="125" placeholder="" class="addinputw" clearable /> -->
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import { getUserByOrgSid, vehicleOutLibrary } from '@/api/cheliang/basevehicle'
import { typeValues } from '@/api/cheliang/dictcommons'
export default {
name: 'cheliangtaizhangChu',
data() {
return {
temp: {
address: '',//
contractNo: '',//
customerName: '',//
customerType: '',// value
customerTypeKey: '',// key
idnumber: '', //
mobile: '',//
outLibraryValue: '',// value
salePrice: '',//
userSid: '',// userSid
vehicleSid: '',// sid
vehicleStateValue: '' // value
},
payType_list:[],
customertype_list:[],
person_list:[],
dialogFormVisible: false,
rules: {}
}
},
methods: {
getType() {
typeValues({
type:'payType'
}).then((res) => {
if (res.success){
this.payType_list = res.data
}
})
typeValues({
type:'customertype'
}).then((res) => {
if (res.success){
this.customertype_list = res.data
}
})
},
outLibraryChange(val) {
if (val) {
const choosetItem = this.payType_list.filter((item) => item.dictValue == val)
this.temp.outLibraryKey = choosetItem[0].dictKey
console.log('name:', this.temp.outLibraryValue, 'key:', this.temp.outLibraryKey)
}
},
customertypeChange(val) {
if (val) {
const choosetItem = this.customertype_list.filter((item) => item.dictKey == val)
this.temp.customerType = choosetItem[0].dictValue
console.log('name:', this.temp.customerType, 'key:', this.temp.customerTypeKey)
}
},
getUser() {
const data = {
orgSid: window.sessionStorage.getItem('orgSid'),
userSid: window.sessionStorage.getItem('userSid')
}
getUserByOrgSid(data).then((res) => {
if (res.success){
this.person_list = res.data
}
})
},
showChu(sid){
this.temp.vehicleSid = sid
this.getType()
this.getUser()
},
//
handleCreate() {
vehicleOutLibrary(this.temp).then((response) => {
this.FormLoading = false
if (response.code === '200') {
this.dialogFormVisible = false
this.handleReturn('true')
}
})
.catch(e => {
this.dialogFormVisible = false
})
},
//
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.temp = {}
this.$emit('doback')
// this.$router.go(-1)
}
}
}
</script>
<style scoped>
</style>

13
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMai.vue

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
name: 'cheliangtaizhangMai'
}
</script>
<style scoped>
</style>
Loading…
Cancel
Save