Browse Source

车辆台账---出库,车辆台账---买断

master
Zhao Qiqi 3 years ago
parent
commit
cb05ebd592
  1. 6
      anrui-buscenter/anrui-buscenter-ui/src/router/index.js
  2. 65
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue
  3. 103
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue
  4. 19
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue
  5. 54
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue
  6. 209
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu.vue
  7. 125
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMai.vue
  8. 1
      anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanliAdd.vue

6
anrui-buscenter/anrui-buscenter-ui/src/router/index.js

@ -455,13 +455,13 @@ export const constantRoutes = [
}
]
},
// 车型查询
// 车型简介
{
path: '/chexingchaxun',
component: Layout,
redirect: '/chexingchaxun',
meta: {
title: '车型查询'
title: '车型简介'
},
children: [
{
@ -470,7 +470,7 @@ export const constantRoutes = [
import('@/views/chexingchaxun/modelinquire/modellibrary.vue'),
name: 'chexingchaxun',
meta: {
title: '车型查询'
title: '车型简介'
}
}
]

65
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue

@ -14,10 +14,9 @@
</div>
<!-- 标题按钮部分结束 -->
<div>
<el-form ref="form_obj" :model="formobj" label-position="right" class="formadd" >
<div class="wlInfo" style="text-align: center;"><span style="font-size:28px;">外采申请表</span></div>
<div class="titwu">外采申请表</div>
<el-form ref="form_obj" :model="formobj" label-position="right" class="formadd">
<div class="wlInfo" style="text-align: right;"><span style="font-size:14px;">金额单位</span></div>
<br><br>
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="3" class="tleftb">分公司名称</el-col>
<el-col :span="5" class="trightb">
@ -33,15 +32,21 @@
<el-form-item prop="applicationDate"><span>{{ formobj.applicationDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">车型名称</el-col>
<el-col :span="21" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.modelName }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">常用配置名称</el-col>
<el-col :span="21" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.configName }}</span></el-form-item></el-col>
</el-row>
<!-- <el-row>
<el-col :span="3" class="tleftb">采购单位名称</el-col>
<el-col :span="21" class="trightb"><el-form-item prop="purchasingUnitName"><span>{{ formobj.purchasingUnitName }}</span></el-form-item></el-col>
</el-row>-->
<el-row>
<el-col :span="3" class="tleftb">车型名称</el-col>
<el-col :span="21" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.modelName }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">常用配置</el-col>
<el-col :span="21" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.configName }}</span></el-form-item></el-col>
</el-row>
<!-- <el-row><el-col :span="3" class="tleftb">采购价格</el-col>
<el-col :span="9" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.purchasePrice }}</span></el-form-item></el-col>
-->
<el-row>
<el-col :span="3" class="tleftb">销售指导价</el-col>
<el-col :span="7" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.guidedPrice }}</span></el-form-item></el-col>
@ -107,7 +112,7 @@
</el-row>
<el-row >
<el-col :span="3" class="tleftb">
<span>备注</span>
<span><span class="icon">*</span>备注</span>
</el-col>
<el-col :span="21" class="trightb">
<el-form-item prop="remarks">
@ -120,9 +125,8 @@
</el-col>
<el-col :span="21">
<el-form-item>
<span v-show="formobj.contract !== null"
class="bluezi" @click="handleDown(formobj.contract)">{{formobj.contract.fileName}}</span>
<span v-show="formobj.contract !== null"
class="bluezi" @click="handleDown(formobj.contract)">{{formobj.contract.fileName}}</span>
</el-form-item>
</el-col>
</el-row>
@ -135,7 +139,7 @@
<el-table-column prop="vinNo" label="车架号" align="center" />
</el-table>
</div>
</el-form>
</el-form>>
</div>
<!-- 选择待办人 的弹出框-->
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
@ -199,14 +203,13 @@
<script>
import req from '@/api/baseoutsourcingapplication/baseoutsourcingapplication'
import {getStorage} from "@/utils/auth";
export default {
name: 'BaseOutsourcingApplicationInfo',
components: {
import { getStorage } from '@/utils/auth'
},
data() {
return {
export default {
name: 'BaseOutsourcingApplicationInfo',
components: {},
data() {
return {
accessToken: {
token: getStorage()
},
@ -531,15 +534,7 @@ export default {
</script>
<style scoped>
.tleftb{
font-size: 12px;
}
.trightb{
font-size: 12px;
}
.box-card {
width: 100%;
margin-bottom: 20px;
}
/*.formadd .el-row .el-col /deep/ .el-form-item .addinputw{*/
/* width: 100%;*/
/*}*/
</style>

103
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue

@ -17,36 +17,52 @@
<!-- 标题按钮部分结束 -->
<!-- Start 新增修改部分 -->
<div>
<div class="titwu">外采申请表</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" label-position="right" class="formadd">
<div class="wlInfo" style="text-align: center;"><span style="font-size:28px;">外采申请表</span></div>
<div class="wlInfo" style="text-align: right;"><span style="font-size:14px;">金额单位</span></div>
<br><br>
<el-row style="border-top: 1px solid #e0e3eb">
<el-row class="first_row">
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>分公司名称</span>
</el-col>
<el-col :span="5" class="trightb">
<el-form-item prop="applicationCode">{{ formobj.useOrgName }}</el-form-item>
<el-form-item prop="applicationCode">{{formobj.useOrgName}}</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>申请人</span>
</el-col>
<el-col :span="5" class="trightb">
<el-form-item prop="createByName">{{ formobj.createByName }}</el-form-item>
<el-form-item prop="createByName">{{formobj.createByName}}</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>申请日期</span>
</el-col>
<el-col :span="5" class="trightb">
<el-form-item prop="applicationDate">{{ formobj.applicationDate }}</el-form-item>
<el-form-item prop="applicationDate">{{formobj.applicationDate}}</el-form-item>
</el-col>
</el-row>
<!-- <el-row>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>外采类型</span>
</el-col>
<el-col :span="21" class="trightb" >
<el-radio v-model="formobj.externalMiningTypeKey" label="1">直接外采</el-radio>
<el-radio v-model="formobj.externalMiningTypeKey" label="2">政策外采</el-radio>
</el-col>
</el-row>-->
<!--<el-row style="border-left: none; ">
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>采购单位</span>
</el-col>
<el-col :span="21" class="trightb">
<el-form-item prop="purchasingUnitName"><el-input size="small" v-model="formobj.purchasingUnitName" placeholder="采购单位" class="addinputw" clearable /></el-form-item>
</el-col>
</el-row>-->
<el-row>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>车型</span>
</el-col>
<el-col :span="19" class="trightb">
<el-form-item prop="modelName">{{ formobj.modelName }}</el-form-item>
<el-form-item prop="modelName">{{formobj.modelName}}</el-form-item>
</el-col>
<el-col :span="2" class="trightb">
<!--<button type="primary" size="small" @click="saveOrUpdate">选择</button>-->
@ -55,25 +71,31 @@
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>常用配置名称</span>
<span><span class="icon">*</span>常用配置</span>
</el-col>
<el-col :span="21" class="trightb">
<el-form-item prop="configName">{{ formobj.configName }}</el-form-item>
<el-form-item prop="configName">{{formobj.configName}}</el-form-item>
</el-col>
</el-row>
<el-row>
<!-- <el-col :span="3" class="tleftb">
<span><span class="icon">*</span>采购价格</span>
</el-col>
<el-col :span="9" class="trightb">
<el-form-item prop="purchasePrice"><el-input size="small" v-model="formobj.purchasePrice" placeholder="采购价格" class="addinputw" clearable /></el-form-item>
</el-col>-->
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>销售指导价</span>
</el-col>
<el-col :span="9" class="trightb">
<el-col :span="7" class="trightb">
<el-form-item v-show="formobj.externalMiningTypeKey==1" prop="guidedPrice">{{formobj.guidedPrice}}</el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2" prop="guidedPrice">{{formobj.guidedPrice}}</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>厂家合同价</span>
</el-col>
<el-col :span="9" class="trightb">
<el-form-item v-show="formobj.externalMiningTypeKey==1" prop="manufactorSettlementPrice">{{formobj.manufactorSettlementPrice}}</el-form-item>
<el-col :span="11" class="trightb">
<el-form-item v-show="formobj.externalMiningTypeKey==1" prop="manufactorSettlementPrice"> {{formobj.manufactorSettlementPrice}}</el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2" prop="manufactorSettlementPrice">{{formobj.manufactorSettlementPrice}}</el-form-item>
</el-col>
</el-row>
@ -81,59 +103,65 @@
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>采购单位</span>
</el-col>
<el-col :span="9" class="trightb">
<el-col :span="7" class="trightb">
<el-form-item prop="purchasingUnitName"><el-input size="small" v-model="formobj.purchasingUnitName" placeholder="采购单位" class="addinputw" clearable /></el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>开户银行</span>
</el-col>
<el-col :span="3" class="trightb">
<el-form-item prop="purchasingUnitName"><el-input size="small" v-model="formobj.depositBankName" placeholder="开户银行" class="addinputw" clearable /></el-form-item>
<el-col :span="4" class="trightb">
<el-form-item prop="depositBankName"><el-input size="small" v-model="formobj.depositBankName" placeholder="开户银行" class="addinputw" clearable /></el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>银行账号</span>
</el-col>
<el-col :span="3" class="trightb">
<el-form-item prop="purchasingUnitName"><el-input size="small" v-model="formobj.bankAccount" placeholder="银行账号" class="addinputw" clearable /></el-form-item>
<el-col :span="4" class="trightb">
<el-form-item prop="bankAccount"><el-input size="small" v-model="formobj.bankAccount" placeholder="银行账号" class="addinputw" clearable /></el-form-item>
</el-col>
<!-- <el-col :span="3" class="tleftb">
<span><span class="icon">*</span>台数</span>
</el-col>
<el-col :span="9" class="trightb">
<el-form-item v-show="formobj.externalMiningTypeKey==1" prop="num"><el-input size="small" v-model="formobj.num" placeholder="台数" class="addinputw" clearable /></el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2" prop="num">{{formobj.num}}</el-form-item>
</el-col>-->
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>采购价格</span>
</el-col>
<el-col :span="9" class="trightb">
<el-col :span="7" class="trightb">
<el-form-item prop="purchasePrice"><el-input size="small" v-model="formobj.purchasePrice" placeholder="采购价格" class="addinputw" clearable /></el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>台数</span>
</el-col>
<el-col :span="3" class="trightb">
<el-col :span="4" class="trightb">
<el-form-item v-show="formobj.externalMiningTypeKey==1" prop="num"><el-input size="small" v-model="formobj.num" placeholder="台数" class="addinputw" clearable /></el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2" prop="num">{{formobj.num}}</el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>订金</span>
</el-col>
<el-col :span="3" class="trightb">
<el-col :span="4" class="trightb">
<el-form-item prop="deposit"><el-input size="small" style="height:10px;" v-model="formobj.deposit" placeholder="订金" class="addinputw" clearable /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>其他费用名称</span>
<span>其他费用名称</span>
</el-col>
<el-col :span="9" class="trightb">
<el-col :span="7" class="trightb">
<el-form-item prop="expenseName"><el-input size="small" v-model="formobj.expenseName" placeholder="费用名称" class="addinputw" clearable /></el-form-item>
</el-col>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>费用合计</span>
<span>费用合计</span>
</el-col>
<el-col :span="9" class="trightb">
<el-col :span="11" class="trightb">
<el-form-item prop="totalExpenseAmount"><el-input size="small" v-model="formobj.totalExpenseAmount" placeholder="费用金额合计" class="addinputw" clearable /></el-form-item>
</el-col>
</el-row>
<el-row >
<el-row>
<el-col :span="3" class="tleftb">
<span>备注</span>
</el-col>
@ -141,7 +169,7 @@
<el-form-item prop="remarks"><el-input size="small" v-model="formobj.remarks" placeholder="备注" class="addinputw" clearable /></el-form-item>
</el-col>
</el-row>
<el-row >
<el-row>
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>合同附件</span>
</el-col>
@ -156,9 +184,9 @@
:on-success="uploadSuccessHetong"
:limit="1"
:file-list="fileList"
class="upload-demo"
:on-preview = 'handleDown'
><!--:show-file-list="false"-->
class="upload-demo"
>
<el-button size="small" type="primary">合同上传</el-button>
</el-upload>
</el-form-item>
@ -179,7 +207,7 @@
<el-table-column prop="vinNo" label="车架号" align="center"/>
</el-table>
</div>
</el-form>
</el-form>>
</div>
</div><!-- End 添加修改部分 -->
<!-- 车型配置分页列表 -->
@ -601,18 +629,7 @@ export default {
</script>
<style scoped>
/*.tleftb{
text-align: right;
font-size: 14px;
color: #606266;
line-height: 20px !important;
font-weight: 600;
.formadd .el-row .el-col /deep/ .el-form-item .addinputw{
width: 100%;
}
.formadd .el-row .el-col {
border-right: 1px solid #e0e3eb;
border-bottom: 1px solid #e0e3eb;
padding: 0px 15px 0px 15px !important;
!* min-height: 50px; *!
line-height: 1;
}*/
</style>

19
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue

@ -11,10 +11,9 @@
</div>
<!-- 标题按钮部分结束 -->
<div >
<el-form ref="form_obj" :model="formobj" label-position="right" class="formadd">
<div class="wlInfo" style="text-align: center;"><span style="font-size:28px;">外采申请表</span></div>
<div class="titwu">外采申请表</div>
<el-form ref="form_obj" :model="formobj" label-position="right" class="formadd">
<div class="wlInfo" style="text-align: right;"><span style="font-size:14px;">金额单位</span></div>
<br><br>
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="3" class="tleftb">分公司名称</el-col>
<el-col :span="5" class="trightb">
@ -30,12 +29,16 @@
<el-form-item prop="applicationDate"><span>{{ formobj.applicationDate }}</span></el-form-item>
</el-col>
</el-row>
<!-- <el-row>
<el-col :span="3" class="tleftb">采购单位名称</el-col>
<el-col :span="21" class="trightb"><el-form-item prop="purchasingUnitName"><span>{{ formobj.purchasingUnitName }}</span></el-form-item></el-col>
</el-row>-->
<el-row>
<el-col :span="3" class="tleftb">车型名称</el-col>
<el-col :span="21" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.modelName }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb">常用配置名称</el-col>
<el-col :span="3" class="tleftb">常用配置</el-col>
<el-col :span="21" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.configName }}</span></el-form-item></el-col>
</el-row>
<!-- <el-row><el-col :span="3" class="tleftb">采购价格</el-col>
@ -106,7 +109,7 @@
</el-row>
<el-row >
<el-col :span="3" class="tleftb">
<span>备注</span>
<span><span class="icon">*</span>备注</span>
</el-col>
<el-col :span="21" class="trightb">
<el-form-item prop="remarks">
@ -119,8 +122,8 @@
</el-col>
<el-col :span="21">
<el-form-item>
<span v-show="formobj.contract !== null"
class="bluezi" @click="handleDown(formobj.contract)">{{formobj.contract.fileName}}</span>
<span v-show="formobj.contract !== null"
class="bluezi" @click="handleDown(formobj.contract)">{{formobj.contract.fileName}}</span>
</el-form-item>
</el-col>
</el-row>
@ -133,7 +136,7 @@
<el-table-column prop="vinNo" label="车架号" align="center" />
</el-table>
</div>
</el-form>
</el-form>>
</div>
</div>
</template>

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

@ -106,9 +106,9 @@
<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-chu v-show="viewState == 6" ref="divChu" @doback="resetState"/>
<!-- 买断 -->
<cheliangtaizhang-mai v-show="viewState == 7" ref="divPeizhi" @doback="resetState" />
<cheliangtaizhang-mai v-show="viewState == 7" ref="divMai" @doback="resetState"/>
</div>
</template>
@ -306,6 +306,12 @@ export default {
case 'doDel':
this.doDel()
break
case 'doChuku':
this.doChuku()
break
case 'doMaiduan':
this.doMaiduan()
break
case 'doExport':
this.doExport()
break
@ -445,44 +451,36 @@ export default {
if (this.sids.length === 1) {
this.viewState = 6
const sid = this.sids[0]
// this.$refs['divchuku'].showChu(sid)
this.$refs['divChu'].showChu(sid)
} else if (this.sids.length > 1) {
this.$notify({
title: '提示',
message: '不能选中多个车辆台账修改!!',
type: 'info',
duration: 2000
this.$message({
showClose: true,
message: '请选择一台车辆进行出库!',
type: 'error'
})
} else {
this.$notify({
title: '提示',
message: '没有选择车辆台账!!',
type: 'error',
duration: 2000
this.$message({
showClose: true,
message: '仅可选择一台车辆进行出库!',
type: 'error'
})
return
}
},
//
doMaiduan(){
if (this.sids.length === 1) {
if (this.sids.length > 0) {
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
const bb = []
this.multipleSelection.forEach((element) => {
bb.push(element.vinNo)
})
this.$refs['divMai'].showMai(this.sids, bb)
} else {
this.$notify({
title: '提示',
message: '请选择一条数据进行操作!',
type: 'error',
duration: 2000
this.$message({
showClose: true,
message: '请选择车辆进行买断!',
type: 'error'
})
return
}

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

@ -4,16 +4,20 @@
<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>
<el-button type="info" size="small" @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-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
<el-row class="first_row">
<el-col :span="12">
<el-form-item prop="modelName">
<span slot="label">出库类型</span>
<el-col :span="4">
<el-form-item>
<span>出库类型</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="outLibraryValue">
<el-select ref="config" v-model="temp.outLibraryValue" class="addinputw" clearable placeholder=""
filterable
@change="outLibraryChange">
@ -22,87 +26,100 @@
</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"
<el-col :span="4">
<el-form-item>
<span>销售专员</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="person">
<el-select ref="config" v-model="temp.person" class="addinputw" clearable placeholder="">
<el-option v-for="(item,index) in person_list" :key="item.sid" :label="item.namePath"
: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-col :span="4">
<el-form-item>
<span>合同编号</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="contractNo">
<el-input v-model="temp.contractNo" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="4">
<el-form-item>
<span slot="label">车架号</span>
<el-input v-model="temp.vinNo" maxlength="125" placeholder="" class="addinputw" clearable/>
<span>成交价()</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-input v-model="temp.salePrice" maxlength="125" placeholder="" class="addinputw" clearable
@keyup.native="temp.salePrice = oninput(temp.salePrice,2)"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-col :span="4">
<el-form-item prop="">
<span slot="label">内部编码</span>
<el-input placeholder="" class="addinputw" v-model="temp.insideCode" clearable/>
<span>客户类型</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="customerTypeKey">
<el-select v-model="temp.customerTypeKey" class="addinputw" clearable placeholder=""
@change="customertypeChange">
<el-option v-for="(item,index) in customertype_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<span>客户姓名</span>
</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-col :span="8">
<el-form-item prop="customerName">
<el-input v-model="temp.customerName" 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-col :span="4">
<el-form-item>
<span>手机号码</span>
</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-col :span="8">
<el-form-item prop="mobile">
<el-input v-model="temp.mobile" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<span>身份证号码</span>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="idnumber">
<el-input v-model="temp.idnumber" 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-col :span="4">
<el-form-item>
<span>联系地址</span>
</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-col :span="20">
<el-form-item prop="address">
<el-input v-model="temp.address" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
@ -118,8 +135,35 @@ import { typeValues } from '@/api/cheliang/dictcommons'
export default {
name: 'cheliangtaizhangChu',
data() {
var checkSubmit = (rule, value, callback) => {
const Submit =
/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/
if (value) {
//
if (!Submit.test(value)) {
callback(new Error('请输入正确的手机号'))
}
callback()
} else {
callback()
}
}
var identitycard = (rules, value, callback) => {
const card =
/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
if (value) {
//
if (!card.test(value)) {
callback(new Error('请输入正确的身份证号'))
}
callback()
} else {
callback()
}
}
return {
temp: {
person:'',
address: '',//
contractNo: '',//
customerName: '',//
@ -137,10 +181,44 @@ export default {
customertype_list:[],
person_list:[],
dialogFormVisible: false,
rules: {}
rules: {
mobile: [
{
required: true,
validator: checkSubmit,
trigger: 'blur',
},
],
idnumber: [
{
required: true,
validator: identitycard,
trigger: 'blur',
},
]
}
}
},
methods: {
//
oninput(val, limit = 0) {
val = val.replace(/[^\d.]/g, ""); //
val = val.replace(/^00/, "0."); //0
val = val.replace(/^\./g, "0."); //0.
val = val.replace(/\.{2,}/g, "."); //
val = val.replace(".", "$#$").replace(/\./g, "").replace("$#$", "."); //
/^0\d+/.test(val) ? val = val.slice(1) : ''; //0
const str = '^(\\d+)\\.(\\d{' + limit + '}).*$'
const reg = new RegExp(str)
if (limit === 0) {
//
val = val.replace(reg, '$1')
} else {
//
val = val.replace(reg, '$1.$2')
}
return val
},
getType() {
typeValues({
type:'payType'
@ -191,11 +269,13 @@ export default {
},
//
handleCreate() {
this.dialogFormVisible = true
vehicleOutLibrary(this.temp).then((response) => {
this.FormLoading = false
if (response.code === '200') {
this.dialogFormVisible = false
this.handleReturn('true')
}else {
this.dialogFormVisible = false
}
})
.catch(e => {
@ -214,5 +294,12 @@ export default {
</script>
<style scoped>
/deep/ .el-col-4 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
}
</style>

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

@ -1,10 +1,131 @@
<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" @click="handleReturn()">返回</el-button>
</div>
</div>
<div class="listconadd">
<div class="titwu">车辆买断</div>
<el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
<el-row class="first_row">
<el-col :span="4">
<el-form-item>
<span>车架号</span>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ temp.vinNo }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<el-form-item>
<span>买断日期</span>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item prop="solidDate">
<el-date-picker v-model="temp.solidDate" type="date" format="yyyy-MM-dd" class="addinputw"
value-format="yyyy-MM-dd" placeholder="选择日期时间"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<el-form-item>
<span>上传买断证明</span>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<upload ref="uploadImg" v-model="imgList" :limit="1" bucket="map" :upload-data="{type:'0001'}"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import { vehicleBuyBreak } from '@/api/cheliang/basevehicle'
import Upload from '@/components/uploadFile/uploadImg.vue'
export default {
name: 'cheliangtaizhangMai'
name: 'cheliangtaizhangMai',
components: {
Upload
},
data() {
return {
temp: {
vinNo: '',
baseVehicleBuyBlank:{
commonAppendix:[],
updateBySid: window.sessionStorage.getItem('userSid'),
},
},
dialogFormVisible: false,
imgList: [],
rules: {}
}
},
methods: {
showMai(sids, vinNos) {
this.temp.vehicleSid = sids
this.temp.vinNo = vinNos.toString()
},
getUrl() {
if (this.imgList.length > 0) {
console.log('imgList', this.imgList)
const img01_list = []
for (var i = 0; i < this.imgList.length; i++) {
const type = this.imgList[i].name.split('.')
img01_list.push({
attachType: type[type.length - 1],
createBySid: window.sessionStorage.getItem('userSid'),
fileName: this.imgList[i].name,
filePath: this.imgList[i].url,
fileSize: this.imgList[i].size,
fileType: type[type.length - 1]
})
}
this.temp.baseVehicleBuyBlank.commonAppendix = img01_list
} else {
this.temp.baseVehicleBuyBlank.commonAppendix = []
}
},
//
handleCreate() {
this.dialogFormVisible = true
this.getUrl()
vehicleBuyBreak(this.temp).then((response) => {
if (response.code === '200') {
this.dialogFormVisible = false
this.handleReturn('true')
} else {
this.dialogFormVisible = false
}
})
.catch(e => {
this.dialogFormVisible = false
})
},
//
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.temp = {
vinNo: '',
commonAppendix: []
}
this.$emit('doback')
}
}
}
</script>

1
anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanliAdd.vue

@ -308,7 +308,6 @@ export default {
} else {
this.temp.factoryImage = []
}
},
// ------------------------------------------------------
//

Loading…
Cancel
Save