Browse Source

修改车型查询,常用配置查询

zhanglei
yxt_djz 3 years ago
parent
commit
f757239baa
  1. 97
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplication.vue
  2. 268
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue
  3. 140
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationInfo.vue
  4. 241
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationvehicle.vue
  5. 207
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue
  6. 453
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue
  7. 192
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue

97
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplication.vue

@ -6,18 +6,15 @@
<el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{ isSearchShow ? '隐藏查询条件' : '显示查询条件' }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form :inline="true" class="tab-header">
<el-form-item label="申请编号"><el-input v-model="queryParams.params.applicationCode" placeholder="请输入申请编号" clearable /></el-form-item>
<el-form-item label="申请人姓名"><el-input v-model="queryParams.params.createByName" placeholder="请输入申请人姓名" clearable /></el-form-item>
<el-form-item label="申请日期"><el-input v-model="queryParams.params.applicationDate" placeholder="请输入申请日期" clearable /></el-form-item>
<el-form-item label="外采类型value"><el-input v-model="queryParams.params.externalMiningTypeValue" placeholder="请输入外采类型value" clearable /></el-form-item>
<el-form-item label="采购单位名称"><el-input v-model="queryParams.params.purchasingUnitName" placeholder="请输入采购单位名称" clearable /></el-form-item>
<el-form-item label="车型名称"><el-input v-model="queryParams.params.modelName" placeholder="请输入车型名称" clearable /></el-form-item>
<el-form-item label="常用配置名称"><el-input v-model="queryParams.params.configName" placeholder="请输入常用配置名称" clearable /></el-form-item>
<el-form-item label="采购价格"><el-input v-model="queryParams.params.purchasePrice" placeholder="请输入采购价格" clearable /></el-form-item>
<el-form-item label="销售指导价"><el-input v-model="queryParams.params.guidedPrice" placeholder="请输入销售指导价" clearable /></el-form-item>
<el-form-item label="厂家合同价"><el-input v-model="queryParams.params.manufactorSettlementPrice" placeholder="请输入厂家合同价" clearable /></el-form-item>
<el-form-item label="费用名称"><el-input v-model="queryParams.params.expenseName" placeholder="请输入费用名称" clearable /></el-form-item>
<el-form-item label="费用金额合计"><el-input v-model="queryParams.params.totalExpenseAmount" placeholder="请输入费用金额合计" clearable /></el-form-item>
<el-form-item label="申请日期:">
<el-date-picker v-model="queryParams.params.applicationStartDate" class="filter-item" type="date"
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="请选择"/>
<label></label>
<el-date-picker v-model="queryParams.params.applicationEndDate" class="filter-item" type="date"
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="请选择"/>
</el-form-item>
<el-form-item label="车型:">
<el-input v-model="queryParams.params.modelName" placeholder="请输入车型名称" clearable /></el-form-item>
<el-divider />
<div class="btn" style="text-align: center;">
<el-button type="primary" @click="dosearch">查询</el-button>
@ -34,25 +31,28 @@
<!-- End 项目列表头部 -->
<!-- Start 项目列表 -->
<div class="listcon">
<div class="listcon" style="height: 100%;">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column width="30px" type="selection" align="center" />
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center" />
<el-table-column prop="applicationCode" label="申请编号" align="center" />
<el-table-column prop="createByName" label="申请人姓名" align="center" />
<el-table-column prop="applicationDate" label="申请日期" align="center" />
<el-table-column prop="externalMiningTypeValue" label="外采类型value" align="center" />
<el-table-column prop="purchasingUnitName" label="采购单位名称" align="center" />
<el-table-column prop="modelName" label="车型名称" align="center" />
<el-table-column prop="configName" label="常用配置名称" align="center" />
<el-table-column prop="purchasePrice" label="采购价格" align="center" />
<el-table-column prop="guidedPrice" label="销售指导价" align="center" />
<el-table-column prop="manufactorSettlementPrice" label="厂家合同价" align="center" />
<el-table-column prop="num" label="台数" align="center" />
<el-table-column prop="deposit" label="订金" align="center" />
<el-table-column prop="expenseName" label="费用名称" align="center" />
<el-table-column prop="totalExpenseAmount" label="费用金额合计" align="center" />
<el-table-column prop="orgSid" label="部门sid" align="center" />
<el-table-column width="50px" label="序号" type="index" :index="indexMethod" align="center" />
<el-table-column width="150px" label="操作" align="center" >
<template slot-scope="scope">
<el-button v-if="scope.row.nodeState==''" type="primary" size="mini" @click="edit(scope.row)">办理</el-button>
<el-button v-else type="info" size="mini">办理</el-button>
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button></template>
</el-table-column>
<el-table-column prop="applicationCode" width="130px;" label="申请编号" align="center" />
<el-table-column prop="nodeState" width="80px;" label="状态" align="center" >
<template slot-scope="scope">
<span v-if="scope.row.nodeState==''">待提交</span>
<span v-else >scope.row.nodeState</span>
</template>
</el-table-column>
<el-table-column prop="applicationDate" width="110px;" label="申请日期" align="center" />
<el-table-column prop="modelName" label="车型" align="center" />
<el-table-column prop="num" width="60px;" label="台数" align="center" />
<el-table-column prop="purchasePrice" width="90px;" label="采购价格" align="center" />
<el-table-column prop="guidedPrice" width="90px;" label="指导价" align="center" />
</el-table>
</div>
<!-- End 项目列表 -->
@ -76,7 +76,7 @@
<!-- 详情部分组件 -->
<div-info v-show="viewState == 4" ref="divinfo" @doback="resetState" />
<div-info v-show="viewState == 5" ref="divinfo" @doback="resetState" />
<!--<div-info v-show="viewState == 5" ref="divinfo" @doback="resetState" />-->
</div>
</template>
@ -109,10 +109,13 @@ export default {
size: 10,
total: 0,
params: {
staffSid: window.sessionStorage.getItem('staffSid'),
sids: [], // SID
applicationCode: '', //
createByName: '', //
applicationDate: '', //
applicationStartDate:'',
applicationEndDate:'',
externalMiningTypeKey: '', // key
externalMiningTypeValue: '', // value
purchasingUnitSid: '', // sid
@ -168,19 +171,23 @@ export default {
this.viewState = 2
this.$refs['divadd'].showAdd()
},
toEdit() {
if (this.multipleSelection.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑' })
return
}
if (this.multipleSelection.length > 1) {
this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行编辑' })
return
}
this.viewState = 3
const row = this.multipleSelection[0]
this.$refs['divadd'].showEdit(row)
},
toEdit() {
if (this.multipleSelection.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑' })
return
}
if (this.multipleSelection.length > 1) {
this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行编辑' })
return
}
this.viewState = 3
const row = this.multipleSelection[0]
this.$refs['divadd'].showEdit(row)
},
edit(row) {
this.viewState = 3
this.$refs['divadd'].showEdit(row)
},
doSubmit(row) {
//
this.btndisabled = true
@ -316,9 +323,9 @@ export default {
return pageindex
},
toInfo(row) {
this.$refs['divinfo'].showInfo(row)
this.viewState = 4
}
this.$refs['divinfo'].showInfo(row)
}
}
}
</script>

268
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue

@ -8,6 +8,7 @@
<!-- start 添加修改按钮 -->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="doSubmit">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div>
<!-- end 添加修改按钮 -->
@ -19,183 +20,210 @@
<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>
<br><br>
<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="5" class="trightb">
<el-form-item prop="applicationCode"></el-form-item>
<el-form-item prop="applicationCode">{{formobj.applicationCode}}</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">张三</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"></el-form-item>
<el-form-item prop="applicationDate">{{formobj.applicationDate}}</el-form-item>
</el-col>
</el-row>
<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-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>
<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="purchasingUnitSid"><el-input v-model="formobj.purchasingUnitSid" placeholder="采购单位" class="addinputw" clearable /></el-form-item>
<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-row style="border-left: none;">
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>车型</span>
</el-col>
<el-col :span="19" class="trightb">
<el-form-item prop="modelSid"></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>-->
<el-button type="primary" size="small" @click="selectModel">选择</el-button>
</el-col>
</el-row>
<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="configName"></el-form-item>
<el-form-item prop="configName">{{formobj.configName}}</el-form-item>
</el-col>
</el-row>
<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="9" class="trightb">
<el-form-item prop="purchasePrice"><el-input v-model="formobj.purchasePrice" placeholder="采购价格" class="addinputw" clearable /></el-form-item>
<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-form-item v-show="formobj.externalMiningTypeKey==1" prop="guidedPrice"><el-input v-model="formobj.guidedPrice" placeholder="销售指导价" class="addinputw" clearable /></el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2"prop="guidedPrice">10000</el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==1" prop="guidedPrice"><el-input size="small" v-model="formobj.guidedPrice" placeholder="销售指导价" class="addinputw" clearable /></el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2" prop="guidedPrice">{{formobj.guidedPrice}}</el-form-item>
</el-col>
</el-row>
<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="9" class="trightb">
<el-form-item v-show="formobj.externalMiningTypeKey==1" prop="manufactorSettlementPrice"><el-input v-model="formobj.manufactorSettlementPrice" placeholder="厂家合同价" class="addinputw" clearable /></el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2" prop="manufactorSettlementPrice">10000</el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==1" prop="manufactorSettlementPrice"><el-input size="small" v-model="formobj.manufactorSettlementPrice" placeholder="厂家合同价" class="addinputw" clearable /></el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2" prop="manufactorSettlementPrice">{{formobj.manufactorSettlementPrice}}</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 v-model="formobj.num" placeholder="台数" class="addinputw" clearable /></el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2" prop="num">2</el-form-item>
<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="21" class="trightb">
<el-form-item prop="deposit"><el-input v-model="formobj.deposit" placeholder="订金" class="addinputw" clearable /></el-form-item>
</el-col>
</el-row>
<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="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 style="border-left: none;">
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>费用名称</span>
</el-col>
<el-col :span="9" class="trightb">
<el-form-item prop="expenseName"><el-input v-model="formobj.expenseName" placeholder="费用名称" class="addinputw" clearable /></el-form-item>
<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>
</el-col>
<el-col :span="9" class="trightb">
<el-form-item prop="totalExpenseAmount"><el-input v-model="formobj.totalExpenseAmount" placeholder="费用金额合计" class="addinputw" clearable /></el-form-item>
<el-form-item prop="totalExpenseAmount"><el-input size="small" v-model="formobj.totalExpenseAmount" placeholder="费用金额合计" class="addinputw" clearable /></el-form-item>
</el-col>
</el-row>
<div class="listcon" v-show="formobj.externalMiningTypeKey==2">
<el-table v-loading="tableLoading" :data="formobj.baseOutsourcingApplicationVehicleDtos" border style="width: 100%" >
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center" />
<el-table-column width="80px" label="操作" type="index" align="center" >
<div style="border:1px solid #c0c0c0;padding:5px 5px 5px 5px;">
车辆列表 <el-button type="primary" size="small" @click="selectVehicleDialog">选择车辆</el-button>
</div>
<el-table :data="formobj.baseOutsourcingApplicationVehicleDtos" border style="width: 100%" >
<el-table-column width="60px" label="序号" type="index" align="center" />
<el-table-column label="操作" align="center" >
<template slot-scope="scope">
1235
<el-button type="danger" size="small" @click="deleteVehicle(scope.row)">删除</el-button>
</template>
</el-table-column>
<el-table-column prop="applicationCode" label="车架号" align="center" />
<el-table-column prop="vinNo" label="车架号" align="center" />
</el-table>
</div>
</el-form>
</div>
</div><!-- End 添加修改部分 -->
<!-- 车型配置分页列表 -->
<configuration v-show="viewState == 2" ref="divConfiguration" @doback="resetState"/>
<modellibrary v-show="viewState == 3" ref="modellibrary" @doback="resetState"/>
<el-dialog
title="车型库"
:visible.sync="dialogVisible"
width="90%"
show-close="false"
:before-close="handleClose">
<modellibrary ref="modellibrary" @doback="resetState"/>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="queding(this)"> </el-button>
</span>
</el-dialog>
<!-- 车型配置分页列表 -->
<el-dialog
title="车辆列表"
:visible.sync="vehicleDialogVisible"
width="90%"
show-close="false"
:before-close="handleClose">
<vehicle ref="vehicle" @doback="resetState" :selectedSids="selectedSids"
:modelSid="formobj.modelSid"
:configSid="formobj.configSid"/>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="quedingVehicle(this)"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import configuration from '@/views/chexingchaxun/modelinquire/vehiclelibraryconfiguration.vue'
import modellibrary from '@/views/chexingchaxun/modelinquire/modellibrary.vue'
import req from '@/api/baseoutsourcingapplication/baseoutsourcingapplication'
import vehicle from '@/views/baseoutsourcingapplication/baseoutsourcingapplicationvehicle.vue'
export default {
name: 'BaseOutsourcingApplicationAdd',
components:{
configuration,modellibrary
modellibrary,vehicle
},
data() {
return {
viewState:'1',
selectedSids:'',
vehicleDialogVisible: false,
dialogVisible: false,
viewState: '1',
submitdisabled: false,
viewTitle: '',
formobj: {
sid: '',
staffSid: window.sessionStorage.getItem('staffSid'),
applicationCode: '', //
createByName: '', //
createByName: window.sessionStorage.getItem('name'), //
applicationDate: '', //
externalMiningTypeKey: '1', // key
externalMiningTypeValue: '', // value
purchasingUnitSid: '', // sid
purchasingUnitName: '', //
modelSid: '', // sid
modelName: '', //
configName: '', //
configSid: '', // sid
purchasePrice: '', //
guidedPrice: '', //
manufactorSettlementPrice: '', //
num: '', //
num: '0', //
deposit: '', //
expenseName: '', //
totalExpenseAmount: '', //
orgSid: '', // sid
orgSid: '', // sid
baseOutsourcingApplicationVehicleDtos:[]
},
rules: {
applicationCode: [{ required: true, message: '申请编号不能为空', trigger: 'blur' }], //
createByName: [{ required: true, message: '申请人姓名不能为空', trigger: 'blur' }], //
applicationDate: [{ required: true, message: '申请日期不能为空', trigger: 'blur' }], //
externalMiningTypeKey: [{ required: true, message: '外采类型key不能为空', trigger: 'blur' }], // key
externalMiningTypeValue: [{ required: true, message: '外采类型value不能为空', trigger: 'blur' }], // value
purchasingUnitSid: [{ required: true, message: '采购单位sid不能为空', trigger: 'blur' }], // sid
purchasingUnitName: [{ required: true, message: '采购单位名称不能为空', trigger: 'blur' }], //
modelSid: [{ required: true, message: '车型sid不能为空', trigger: 'blur' }], // sid
modelName: [{ required: true, message: '车型名称不能为空', trigger: 'blur' }], //
configName: [{ required: true, message: '常用配置名称不能为空', trigger: 'blur' }], //
modelSid: [{ required: true, message: '车型不能为空', trigger: 'blur' }], // sid
configSid: [{ required: true, message: '常用配置不能为空', trigger: 'blur' }], //
purchasePrice: [{ required: true, message: '采购价格不能为空', trigger: 'blur' }], //
guidedPrice: [{ required: true, message: '销售指导价不能为空', trigger: 'blur' }], //
manufactorSettlementPrice: [{ required: true, message: '厂家合同价不能为空', trigger: 'blur' }], //
@ -207,16 +235,65 @@ export default {
}
}
},
created() {},
created() {
},
methods: {
quedingVehicle(){
var obj = this.$refs['vehicle'].getSids();
var length = obj.length;
if(length < 1){
alert('必须选择一条数据!');
return ;
}
this.formobj.num=length;
this.formobj.baseOutsourcingApplicationVehicleDtos = obj;
this.vehicleDialogVisible = false
},
queding(dialog) {
var obj = this.$refs['modellibrary'].getConfigDataList();
var length = obj.configs.length;
if (length > 1) {
alert('只能选择一条数据!');
return ;
} else if(length < 1){
alert('必须选择一条数据!');
return ;
}
this.formobj.modelName = obj.model.vehicleAlias
this.formobj.modelSid = obj.model.sid
this.formobj.configName = obj.configs[0].configName
this.formobj.configSid = obj.configs[0].sid
this.formobj.guidedPrice = obj.configs[0].guidedPrice //
this.formobj.manufactorSettlementPrice = obj.configs[0].manufactorSettlementPrice //
this.formobj.baseOutsourcingApplicationVehicleDtos = [];
this.formobj.num=0;
this.dialogVisible = false
},
resetState() {
this.viewState = 1
this.handReset()
},
selectModel(){
/* this.$router.push({ path: '/chexingchaxun/modelinquire/modellibrary' });*/
this.viewState = 3
this.$refs['modellibrary'].showData('123456');
/* this.viewState = 3
this.$refs['modellibrary'].showData('123456');*/
this.dialogVisible = true;
},
selectVehicleDialog(){
var objs = this.formobj.baseOutsourcingApplicationVehicleDtos
var s = "";
for(var i=0; i<objs.length; i++){
if(i==objs.length-1){
s =s+ objs[i].sid;
}else{
s =s+ objs[i].sid+",";
}
}
this.selectedSids = s;
this.vehicleDialogVisible = true;
this.$refs['vehicle'].loadList();
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
@ -227,7 +304,6 @@ export default {
this.applicationDate = '' //
this.externalMiningTypeKey = '' // key
this.externalMiningTypeValue = '' // value
this.purchasingUnitSid = '' // sid
this.purchasingUnitName = '' //
this.modelSid = '' // sid
this.modelName = '' //
@ -238,8 +314,8 @@ export default {
this.num = '' //
this.deposit = '' //
this.expenseName = '' //
this.totalExpenseAmount = '' //
this.orgSid = '' // sid
this.totalExpenseAmount = '' // this.$store.getters.userInfo.orgSid,
this.orgSid = ''
this.$refs['form_obj'].resetFields()
this.$emit('doback')
@ -256,20 +332,17 @@ export default {
})
this.viewTitle = '【修改】外采申请表'
const _this = this
_this.formobj.sid = row.sid // SID
req
.fetchBySid(row.sid)
.then(resp => {
if (resp.sucess) {
if (resp.success) {
const vdata = resp.data
_this.formobj.id = vdata.id
_this.formobj.sid = vdata.sid // SID
_this.formobj.applicationCode = vdata.applicationCode //
_this.formobj.createByName = vdata.createByName //
_this.formobj.applicationDate = vdata.applicationDate //
_this.formobj.externalMiningTypeKey = vdata.externalMiningTypeKey // key
_this.formobj.externalMiningTypeValue = vdata.externalMiningTypeValue // value
_this.formobj.purchasingUnitSid = vdata.purchasingUnitSid // sid
_this.formobj.purchasingUnitName = vdata.purchasingUnitName //
_this.formobj.modelSid = vdata.modelSid // sid
_this.formobj.modelName = vdata.modelName //
@ -281,7 +354,8 @@ export default {
_this.formobj.deposit = vdata.deposit //
_this.formobj.expenseName = vdata.expenseName //
_this.formobj.totalExpenseAmount = vdata.totalExpenseAmount //
_this.formobj.orgSid = vdata.orgSid // sid
_this.formobj.orgSid = vdata.orgSid // sid
_this.formobj.baseOutsourcingApplicationVehicleDtos = vdata.baseOutsourcingApplicationVehicleVos // sid
} else {
// resp.code
}
@ -290,9 +364,38 @@ export default {
this.formobj = row
})
},
handleClose(){
this.vehicleDialogVisible = false
this.dialogVisible=false
},
indexMethod(index){
/* var pagestart=(this.queryParams.current-1) * this.queryParams.size;
var pageindex=index+1+pagestart;
return pageindex;*/
},
doSubmit(row) {
//
this.submitdisabled = true
this.formobj.userSid = window.sessionStorage.getItem('userSid');
this.formobj.orgSid = this.$store.getters.orgSid;
req
.doSubmit(this.formobj)
.then(resp => {
this.submitdisabled = false
if (resp.success) {
//
} else {
// resp.code
}
})
.catch(() => {
this.submitdisabled = false
})
},
saveOrUpdate() {
const _this = this
this.formobj.userSid = window.sessionStorage.getItem('userSid');
this.formobj.orgSid = this.$store.getters.orgSid;
this.$refs['form_obj'].validate(valid => {
if (valid) {
this.submitdisabled = true
@ -314,9 +417,42 @@ export default {
return false
}
})
}
},
deleteVehicle(row){
var arr=this.formobj.baseOutsourcingApplicationVehicleDtos;
const tip = '请确认是否删除车架号为'+row.vinNo+'记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=>{
for(var i=0;i<arr.length;i++){
if(row.vinNo==arr[i].vinNo){
arr.splice(i,1);
}
}
this.formobj.num=this.formobj.num-1;
}).catch(() => {})
}
}
}
</script>
<style scoped></style>
<style scoped>
/*.tleftb{
text-align: right;
font-size: 14px;
color: #606266;
line-height: 20px !important;
font-weight: 600;
}
.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>

140
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationInfo.vue

@ -10,81 +10,68 @@
</div>
<!-- 标题按钮部分结束 -->
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" label-position="right" class="formadd">
<div class="wlInfo"><span>外采申请表</span></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>
<el-row>
<el-col :span="4" class="tleftb">申请编号</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.applicationCode }}</span></el-form-item></el-col>
<el-col :span="3" class="tleftb">申请编号</el-col>
<el-col :span="5" class="trightb"><el-form-item prop="applicationCode">
<span>{{ formobj.applicationCode }}</span></el-form-item></el-col>
<el-col :span="3" class="tleftb">申请人姓名</el-col>
<el-col :span="5" class="trightb"><el-form-item prop="createByName"><span>{{ formobj.createByName }}</span></el-form-item></el-col>
<el-col :span="3" class="tleftb">申请日期</el-col>
<el-col :span="5" class="trightb"><el-form-item prop="applicationDate"><span>{{ formobj.applicationDate }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">申请人姓名</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.createByName }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">申请日期</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.applicationDate }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">外采类型key</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.externalMiningTypeKey }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">外采类型value</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.externalMiningTypeValue }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">采购单位sid</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.purchasingUnitSid }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">采购单位名称</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.purchasingUnitName }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">车型sid</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.modelSid }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">车型名称</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.modelName }}</span></el-form-item></el-col>
<el-row>
<el-col :span="3" class="tleftb">外采类型</el-col>
<el-col :span="21" class="trightb">
<el-form-item prop="externalMiningTypeValue">
<span v-show="formobj.externalMiningTypeKey==2">政策外采</span>
<span v-show="formobj.externalMiningTypeKey==1">直接外采</span>
</el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">常用配置名称</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.configName }}</span></el-form-item></el-col>
<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="4" class="tleftb">采购价格</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.purchasePrice }}</span></el-form-item></el-col>
<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-col :span="4" class="tleftb">销售指导价</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.guidedPrice }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">厂家合同价</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.manufactorSettlementPrice }}</span></el-form-item></el-col>
</el-row>
<el-row>
</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.manufactorSettlementPrice }}</span></el-form-item></el-col>
<el-col :span="4" class="tleftb">台数</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.num }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">订金</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.deposit }}</span></el-form-item></el-col>
</el-row>
<el-row>
</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.deposit }}</span></el-form-item></el-col>
<el-col :span="4" class="tleftb">费用名称</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.expenseName }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">费用金额合计</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.totalExpenseAmount }}</span></el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">部门sid</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.orgSid }}</span></el-form-item></el-col>
</el-row>
</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.totalExpenseAmount }}</span></el-form-item></el-col>
</el-row>
<div class="listcon" v-show="formobj.externalMiningTypeKey==2">
<div style="border:1px solid #c0c0c0;padding:5px 5px 5px 5px;">
车辆列表
</div>
<el-table :data="formobj.baseOutsourcingApplicationVehicleDtos" border style="width: 100%" >
<el-table-column width="60px" label="序号" type="index" align="center" />
<el-table-column prop="vinNo" label="车架号" align="center" />
</el-table>
</div>
</el-form>
</div>
</div>
</template>
@ -95,22 +82,44 @@ export default {
name: 'BaseOutsourcingApplicationInfo',
data() {
return {
formobj: {}
formobj: {
sid: '',
applicationCode: '123456', //
createByName: window.sessionStorage.getItem('name'), //
applicationDate: '', //
externalMiningTypeKey: '1', // key
externalMiningTypeValue: '', // value
purchasingUnitName: '', //
modelSid: '', // sid
modelName: '', //
configName: '', //
configSid: '', // sid
purchasePrice: '', //
guidedPrice: '', //
manufactorSettlementPrice: '', //
num: '0', //
deposit: '', //
expenseName: '', //
totalExpenseAmount: '', //
orgSid: '', // sid
baseOutsourcingApplicationVehicleDtos:[]
}
}
},
methods: {
handleReturn() {
this.formobj = {}
this.$emit('doback')
},
showInfo(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
const _this = this
req
.fetchBySid(row.sid)
.then(resp => {
if (resp.success) {
const vdata = resp.data
_this.formobj.id = vdata.id
_this.formobj.sid = vdata.sid // SID
_this.formobj.applicationCode = vdata.applicationCode //
_this.formobj.createByName = vdata.createByName //
_this.formobj.applicationDate = vdata.applicationDate //
@ -122,13 +131,14 @@ export default {
_this.formobj.modelName = vdata.modelName //
_this.formobj.configName = vdata.configName //
_this.formobj.purchasePrice = vdata.purchasePrice //
_this.formobj.guidedPrice = vdata.guidedPrice //
_this.formobj.guidedPrice = vdata.guidedPrice //
_this.formobj.manufactorSettlementPrice = vdata.manufactorSettlementPrice //
_this.formobj.num = vdata.num //
_this.formobj.deposit = vdata.deposit //
_this.formobj.expenseName = vdata.expenseName //
_this.formobj.totalExpenseAmount = vdata.totalExpenseAmount //
_this.formobj.orgSid = vdata.orgSid // sid
_this.formobj.baseOutsourcingApplicationVehicleDtos = vdata.baseOutsourcingApplicationVehicleVos
}
})
.catch(e => {

241
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationvehicle.vue

@ -1,12 +1,10 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<button-bar view-title="外采申请车辆列表" :btndisabled="btndisabled" @btnhandle="btnHandle" />
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="isSearchShow = !isSearchShow">{{ isSearchShow ? '隐藏查询条件' : '显示查询条件' }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form :inline="true" class="tab-header">
<el-form-item label="外采申请单sid"><el-input v-model="queryParams.params.outAppSid" placeholder="请输入外采申请单sid" clearable /></el-form-item>
<el-form-item label="车架号"><el-input v-model="queryParams.params.VIN" placeholder="请输入车架号" clearable /></el-form-item>
<el-divider />
<div class="btn" style="text-align: center;">
@ -16,26 +14,43 @@
</el-form>
</div>
</div>
<!-- Start 项目列表头部 -->
<div class="listtop">
<div class="tit">外采申请车辆列表列表</div>
<pageye v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" :limit.sync="queryParams.size" class="pagination" @pagination="loadList" />
</div>
<!-- End 项目列表头部 -->
<!-- Start 项目列表 -->
<div class="listcon">
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column width="50px" type="selection" align="center" />
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center" />
<el-table-column label="SID" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="toInfo(scope.row)">{{ scope.row.sid }}</span>
</template>
</el-table-column>
<el-table-column prop="outAppSid" label="外采申请单sid" align="center" />
<el-table-column prop="VIN" label="车架号" align="center" />
</el-table>
<el-table ref="multipleTable" :key="tableKey" v-loading="listLoading" :data="dataList" border style="width: 100%"
@selection-change="handleSelectionChange">
<el-table-column width="50px" type="selection" align="center"/>
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="品牌" align="center">
<template slot-scope="scope">
<span>{{ scope.row.brandName }}</span>
</template>
</el-table-column>
<el-table-column label="车型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vehicleAlias }}</span>
</template>
</el-table-column>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="颜色" align="center">
<template slot-scope="scope">
<span>{{ scope.row.color }}</span>
</template>
</el-table-column>
<el-table-column label="存放地点" align="center">
<template slot-scope="scope">
<span>{{ scope.row.location }}</span>
</template>
</el-table-column>
<el-table-column label="销售指导价(万元)" align="center">
<template slot-scope="scope">
<span>{{ scope.row.guidedPrice }}</span>
</template>
</el-table-column>
</el-table>
</div>
<!-- End 项目列表 -->
<div class="pages">
@ -51,13 +66,6 @@
/>
</div>
</div>
<!-- End 查询和其列表部分 -->
<!-- 新增修改部分组件 -->
<div-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="loadList" />
<!-- 详情部分组件 -->
<div-info v-show="viewState == 4" ref="divinfo" @doback="resetState" />
</div>
</template>
@ -66,31 +74,47 @@ import req from '@/api/baseoutsourcingapplication/baseoutsourcingapplicationvehi
import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import divAdd from './baseoutsourcingapplicationvehicleAdd'
import divInfo from './baseoutsourcingapplicationvehicleInfo'
export default {
name: 'BaseOutsourcingApplicationVehicleIndex',
components: {
ButtonBar,
Pagination,
pageye,
divAdd,
divInfo
pageye
},
props:{
selectedSids:{
type:String,
required:true
},
modelSid:{
type:String,
required:true
},
configSid:{
type:String,
required:true
}
},
data() {
return {
btndisabled: false,
viewState: 1, // 1 2 3 4
isSearchShow: true,
isSearchShow: false,
tableLoading: false,
dataList: [],
list: [],
tableKey:0,
listLoading: false,
sids: [],
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
sids: [], // SID
modelSid:"",
configSid:"",
vehicleSid: "", // SID
outAppSid: '', // sid
VIN: '' //
}
@ -102,159 +126,28 @@ export default {
this.loadList()
},
methods: {
getSids(){
return this.multipleSelection;
},
resetState() {
this.viewState = 1
},
btnHandle(btnKey) {
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doSubmit':
this.doSubmit()
break
case 'doDel':
this.doDel()
break
case 'doImport':
this.doImport()
break
case 'doExport':
this.doExport()
break
default:
break
}
},
toAdd(row) {
this.viewState = 2
this.$refs['divadd'].showAdd()
},
toEdit() {
if (this.multipleSelection.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑' })
return
}
if (this.multipleSelection.length > 1) {
this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行编辑' })
return
}
this.viewState = 3
const row = this.multipleSelection[0]
this.$refs['divadd'].showEdit(row)
},
doSubmit(row) {
//
this.btndisabled = true
req
.doSubmit(this.queryParams.params)
.then(resp => {
console.log(resp)
this.btndisabled = false
if (resp.success) {
//
} else {
// resp.code
}
})
.catch(() => {
this.btndisabled = false
})
},
doDel(row) {
if (this.multipleSelection.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return
}
const _this = this
const sids = []
this.multipleSelection.forEach(row => {
sids.push(row.sid)
})
const tip = '请确认是否删除所选 ' + this.multipleSelection.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req
.delBySids(sids)
.then(resp => {
loading.close()
if (resp.success) {
_this.$message({ type: 'success', message: resp.msg, showClose: true })
_this.loadList()
} else {
// resp.code
}
})
.catch(e => {
loading.close()
})
})
.catch(() => {})
},
doImport(row) {
//
req
.importExcel(this.queryParams.params)
.then(resp => {
if (resp.success) {
console.log(resp)
}
})
.catch(() => {})
},
doExport(row) {
//
const sids = []
this.multipleSelection.forEach(row => {
sids.push(row.sid)
})
this.queryParams.params.sids = sids
req
.exportExcel(this.queryParams.params)
.then(resp => {
if (resp.success) {
var map = resp.data
const fileName = map.filename //
// // <a> Firefox Chrome download
// // IE10blobdownload
const link = document.createElement('a') // a
link.download = fileName // a
link.style.display = 'none'
link.href = map.downurl
document.body.appendChild(link)
link.click() //
URL.revokeObjectURL(link.href) // url
document.body.removeChild(link) //
}
})
.catch(() => {})
},
dosearch() {
this.queryParams.current = 1
this.loadList()
},
resetQuery() {
this.queryParams.params = {}
this.queryParams.params.sid = '' // sid
this.queryParams.params.name = '' //
this.queryParams.params.vehicleSid = ''
this.queryParams.params.modelSid = ''
this.queryParams.params.configSid = ''
this.dosearch()
},
loadList() {
const _this = this
this.tableLoading = true
this.queryParams.params.vehicleSid = this.selectedSids
this.queryParams.params.modelSid = this.modelSid
this.queryParams.params.configSid = this.configSid
req
.listPage(this.queryParams)
.then(resp => {

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

@ -0,0 +1,207 @@
<template>
<div>
<!-- 标题按钮部分开始 -->
<div class="tab-header webtop">
<!-- 标题 -->
<div>外采申请表详情</div>
<!-- start 详情按钮 -->
<div>
<el-button type="primary" @click="openAgree"> </el-button>
<el-button type="danger" @click="openReject"> </el-button>
<el-button type="danger" @click="openStop"> </el-button>
</div>
<!-- end 详情按钮 -->
</div>
<!-- 标题按钮部分结束 -->
<div class="listconadd">
<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>
<el-row>
<el-col :span="3" class="tleftb">申请编号</el-col>
<el-col :span="5" class="trightb"><el-form-item prop="applicationCode">
<span>{{ formobj.applicationCode }}</span></el-form-item></el-col>
<el-col :span="3" class="tleftb">申请人姓名</el-col>
<el-col :span="5" class="trightb"><el-form-item prop="createByName"><span>{{ formobj.createByName }}</span></el-form-item></el-col>
<el-col :span="3" class="tleftb">申请日期</el-col>
<el-col :span="5" class="trightb"><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="externalMiningTypeValue">
<span v-show="formobj.externalMiningTypeKey==2">政策外采</span>
<span v-show="formobj.externalMiningTypeKey==1">直接外采</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-col :span="4" class="tleftb">销售指导价</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.guidedPrice }}</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.manufactorSettlementPrice }}</span></el-form-item></el-col>
<el-col :span="4" class="tleftb">台数</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.num }}</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.deposit }}</span></el-form-item></el-col>
<el-col :span="4" class="tleftb">费用名称</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.expenseName }}</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.totalExpenseAmount }}</span></el-form-item></el-col>
</el-row>
<div class="listcon" v-show="formobj.externalMiningTypeKey==2">
<div style="border:1px solid #c0c0c0;padding:5px 5px 5px 5px;">
车辆列表
</div>
<el-table :data="formobj.baseOutsourcingApplicationVehicleDtos" border style="width: 100%" >
<el-table-column width="60px" label="序号" type="index" align="center" />
<el-table-column prop="vinNo" label="车架号" align="center" />
</el-table>
</div>
</el-form>
</div>
</div>
</template>
<script>
import req from '@/api/baseoutsourcingapplication/baseoutsourcingapplication'
export default {
name: 'BaseOutsourcingApplicationInfo',
data() {
return {
formobj: {
sid: '',
applicationCode: '123456', //
createByName: window.sessionStorage.getItem('name'), //
applicationDate: '', //
externalMiningTypeKey: '1', // key
externalMiningTypeValue: '', // value
purchasingUnitName: '', //
modelSid: '', // sid
modelName: '', //
configName: '', //
configSid: '', // sid
purchasePrice: '', //
guidedPrice: '', //
manufactorSettlementPrice: '', //
num: '0', //
deposit: '', //
expenseName: '', //
totalExpenseAmount: '', //
orgSid: '', // sid
baseOutsourcingApplicationVehicleDtos:[]
}
}
},
methods: {
//
openStop() {
this.$confirm('是否确认执行终止操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.handleStop()
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消终止'
})
})
},
//
openReject() {
this.$confirm('是否确认执行驳回操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.handleReject()
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消驳回'
})
})
},
//
openAgree() {
this.$confirm('是否确认执行同意操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.handleAgree()
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消同意'
})
})
},
handleReturn() {
this.$emit('doback')
},
showInfo(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
const _this = this
req
.fetchBySid(row.sid)
.then(resp => {
if (resp.success) {
const vdata = resp.data
_this.formobj.applicationCode = vdata.applicationCode //
_this.formobj.createByName = vdata.createByName //
_this.formobj.applicationDate = vdata.applicationDate //
_this.formobj.externalMiningTypeKey = vdata.externalMiningTypeKey // key
_this.formobj.externalMiningTypeValue = vdata.externalMiningTypeValue // value
_this.formobj.purchasingUnitSid = vdata.purchasingUnitSid // sid
_this.formobj.purchasingUnitName = vdata.purchasingUnitName //
_this.formobj.modelSid = vdata.modelSid // sid
_this.formobj.modelName = vdata.modelName //
_this.formobj.configName = vdata.configName //
_this.formobj.purchasePrice = vdata.purchasePrice //
_this.formobj.guidedPrice = vdata.guidedPrice //
_this.formobj.manufactorSettlementPrice = vdata.manufactorSettlementPrice //
_this.formobj.num = vdata.num //
_this.formobj.deposit = vdata.deposit //
_this.formobj.expenseName = vdata.expenseName //
_this.formobj.totalExpenseAmount = vdata.totalExpenseAmount //
_this.formobj.orgSid = vdata.orgSid // sid
_this.formobj.baseOutsourcingApplicationVehicleDtos = vdata.baseOutsourcingApplicationVehicleVos
}
})
.catch(e => {
_this.formobj = row
})
}
}
}
</script>
<style scoped></style>

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

@ -0,0 +1,453 @@
<template>
<div>
<div v-show="viewState == 1">
<!-- 标题按钮部分开始 -->
<div class="tab-header webtop">
<!-- 标题 -->
<div>{{ viewTitle }}</div>
<!-- start 添加修改按钮 -->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSubmit">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div>
<!-- end 添加修改按钮 -->
<!-- end 详情按钮 -->
</div>
<!-- 标题按钮部分结束 -->
<!-- Start 新增修改部分 -->
<div class="listconadd">
<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>
<br><br>
<el-row style="border-left: none;">
<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.applicationCode}}</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-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-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-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 style="border-left: none;">
<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-col>
<el-col :span="2" class="trightb">
<!--<button type="primary" size="small" @click="saveOrUpdate">选择</button>-->
<el-button type="primary" size="small" @click="selectModel">选择</el-button>
</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="configName">{{formobj.configName}}</el-form-item>
</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="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-form-item v-show="formobj.externalMiningTypeKey==1" prop="guidedPrice"><el-input size="small" v-model="formobj.guidedPrice" placeholder="销售指导价" class="addinputw" clearable /></el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2" prop="guidedPrice">{{formobj.guidedPrice}}</el-form-item>
</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="9" class="trightb">
<el-form-item v-show="formobj.externalMiningTypeKey==1" prop="manufactorSettlementPrice"><el-input size="small" v-model="formobj.manufactorSettlementPrice" placeholder="厂家合同价" class="addinputw" clearable /></el-form-item>
<el-form-item v-show="formobj.externalMiningTypeKey==2" prop="manufactorSettlementPrice">{{formobj.manufactorSettlementPrice}}</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 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="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 style="border-left: none;">
<el-col :span="3" class="tleftb">
<span><span class="icon">*</span>费用名称</span>
</el-col>
<el-col :span="9" 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>
</el-col>
<el-col :span="9" 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>
<div class="listcon" v-show="formobj.externalMiningTypeKey==2">
<div style="border:1px solid #c0c0c0;padding:5px 5px 5px 5px;">
车辆列表 <el-button type="primary" size="small" @click="selectVehicleDialog">选择车辆</el-button>
</div>
<el-table :data="formobj.baseOutsourcingApplicationVehicleDtos" border style="width: 100%" >
<el-table-column width="60px" label="序号" type="index" align="center" />
<el-table-column label="操作" align="center" >
<template slot-scope="scope">
<el-button type="danger" size="small" @click="deleteVehicle(scope.row)">删除</el-button>
</template>
</el-table-column>
<el-table-column prop="vinNo" label="车架号" align="center" />
</el-table>
</div>
</el-form>
</div>
</div><!-- End 添加修改部分 -->
<!-- 车型配置分页列表 -->
<el-dialog
title="车型库"
:visible.sync="dialogVisible"
width="90%"
show-close="false"
:before-close="handleClose">
<modellibrary ref="modellibrary" @doback="resetState"/>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="queding(this)"> </el-button>
</span>
</el-dialog>
<!-- 车型配置分页列表 -->
<el-dialog
title="车辆列表"
:visible.sync="vehicleDialogVisible"
width="90%"
show-close="false"
:before-close="handleClose">
<vehicle ref="vehicle" @doback="resetState" :selectedSids="selectedSids" :modelName="formobj.modelName"/>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="quedingVehicle(this)"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import modellibrary from '@/views/chexingchaxun/modelinquire/modellibrary.vue'
import req from '@/api/baseoutsourcingapplication/baseoutsourcingapplication'
import vehicle from '@/views/baseoutsourcingapplication/baseoutsourcingapplicationvehicle.vue'
export default {
name: 'BaseOutsourcingApplicationAdd',
components:{
modellibrary,vehicle
},
data() {
return {
selectedSids:'',
vehicleDialogVisible: false,
dialogVisible: false,
viewState: '1',
submitdisabled: false,
viewTitle: '',
formobj: {
sid: '',
applicationCode: '', //
createByName: window.sessionStorage.getItem('name'), //
applicationDate: '', //
externalMiningTypeKey: '1', // key
externalMiningTypeValue: '', // value
purchasingUnitName: '', //
modelSid: '', // sid
modelName: '', //
configName: '', //
configSid: '', // sid
purchasePrice: '', //
guidedPrice: '', //
manufactorSettlementPrice: '', //
num: '0', //
deposit: '', //
expenseName: '', //
totalExpenseAmount: '', //
orgSid: '', // sid
baseOutsourcingApplicationVehicleDtos:[]
},
rules: {
createByName: [{ required: true, message: '申请人姓名不能为空', trigger: 'blur' }], //
externalMiningTypeKey: [{ required: true, message: '外采类型key不能为空', trigger: 'blur' }], // key
externalMiningTypeValue: [{ required: true, message: '外采类型value不能为空', trigger: 'blur' }], // value
purchasingUnitName: [{ required: true, message: '采购单位名称不能为空', trigger: 'blur' }], //
modelSid: [{ required: true, message: '车型不能为空', trigger: 'blur' }], // sid
configSid: [{ required: true, message: '常用配置不能为空', trigger: 'blur' }], //
purchasePrice: [{ required: true, message: '采购价格不能为空', trigger: 'blur' }], //
guidedPrice: [{ required: true, message: '销售指导价不能为空', trigger: 'blur' }], //
manufactorSettlementPrice: [{ required: true, message: '厂家合同价不能为空', trigger: 'blur' }], //
num: [{ required: true, message: '台数不能为空', trigger: 'blur' }], //
deposit: [{ required: true, message: '订金不能为空', trigger: 'blur' }], //
expenseName: [{ required: true, message: '费用名称不能为空', trigger: 'blur' }], //
totalExpenseAmount: [{ required: true, message: '费用金额合计不能为空', trigger: 'blur' }], //
orgSid: [{ required: true, message: '部门sid不能为空', trigger: 'blur' }] // sid
}
}
},
created() {
},
methods: {
handleSubmit() {
const _this = this
this.$refs['form_obj'].validate(valid => {
if (valid) {
this.submitdisabled = true
req.submitVehicleReturn(this.formobj).then(resp => {
this.submitdisabled = false
if (resp.success) {
_this.handleReturn('true')
}
}).catch(() => {
this.submitdisabled = false
})
} else {
return false
}
})
},
quedingVehicle(){
var obj = this.$refs['vehicle'].getSids();
var length = obj.length;
if(length < 1){
alert('必须选择一条数据!');
return ;
}
this.formobj.num=length;
this.formobj.baseOutsourcingApplicationVehicleDtos = obj;
this.vehicleDialogVisible = false
},
queding(dialog) {
var obj = this.$refs['modellibrary'].getConfigDataList();
var length = obj.configs.length;
if (length > 1) {
alert('只能选择一条数据!');
return ;
} else if(length < 1){
alert('必须选择一条数据!');
return ;
}
this.formobj.modelName = obj.model.vehicleAlias
this.formobj.modelSid = obj.model.sid
this.formobj.configName = obj.configs[0].configName
this.formobj.configSid = obj.configs[0].sid
this.formobj.guidedPrice = obj.configs[0].guidedPrice //
this.formobj.manufactorSettlementPrice = 1;// obj.configs[0].manufactorSettlementPrice //
this.formobj.baseOutsourcingApplicationVehicleDtos = [];
this.formobj.num=0;
this.dialogVisible = false
},
resetState() {
this.viewState = 1
this.handReset()
},
selectModel(){
/* this.$router.push({ path: '/chexingchaxun/modelinquire/modellibrary' });*/
/* this.viewState = 3
this.$refs['modellibrary'].showData('123456');*/
this.dialogVisible = true;
},
selectVehicleDialog(){
var objs = this.formobj.baseOutsourcingApplicationVehicleDtos
var s = "";
for(var i=0; i<objs.length; i++){
if(i==objs.length-1){
s =s+ objs[i].sid;
}else{
s =s+ objs[i].sid+",";
}
}
this.selectedSids = s;
this.vehicleDialogVisible = true;
this.$refs['vehicle'].loadList();
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj.id = ''
this.formobj.sid = '' // SID
this.applicationCode = '' //
this.createByName = '' //
this.applicationDate = '' //
this.externalMiningTypeKey = '' // key
this.externalMiningTypeValue = '' // value
this.purchasingUnitName = '' //
this.modelSid = '' // sid
this.modelName = '' //
this.configName = '' //
this.purchasePrice = '' //
this.guidedPrice = '' //
this.manufactorSettlementPrice = '' //
this.num = '' //
this.deposit = '' //
this.expenseName = '' //
this.totalExpenseAmount = '' // this.$store.getters.userInfo.orgSid,
this.orgSid = ''
this.$refs['form_obj'].resetFields()
this.$emit('doback')
},
showAdd() {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.viewTitle = '【新增】外采申请表'
},
showEdit(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.viewTitle = '【修改】外采申请表'
const _this = this
_this.formobj.sid = row.sid // SID
req
.fetchBySid(row.sid)
.then(resp => {
if (resp.success) {
const vdata = resp.data
_this.formobj.applicationCode = vdata.applicationCode //
_this.formobj.createByName = vdata.createByName //
_this.formobj.applicationDate = vdata.applicationDate //
_this.formobj.externalMiningTypeKey = vdata.externalMiningTypeKey // key
_this.formobj.externalMiningTypeValue = vdata.externalMiningTypeValue // value
_this.formobj.purchasingUnitName = vdata.purchasingUnitName //
_this.formobj.modelSid = vdata.modelSid // sid
_this.formobj.modelName = vdata.modelName //
_this.formobj.configName = vdata.configName //
_this.formobj.purchasePrice = vdata.purchasePrice //
_this.formobj.guidedPrice = vdata.guidedPrice //
_this.formobj.manufactorSettlementPrice = vdata.manufactorSettlementPrice //
_this.formobj.num = vdata.num //
_this.formobj.deposit = vdata.deposit //
_this.formobj.expenseName = vdata.expenseName //
_this.formobj.totalExpenseAmount = vdata.totalExpenseAmount //
_this.formobj.orgSid = vdata.orgSid // sid
_this.formobj.baseOutsourcingApplicationVehicleDtos = vdata.baseOutsourcingApplicationVehicleVos // sid
} else {
// resp.code
}
})
.catch(e => {
this.formobj = row
})
},
handleClose(){
this.vehicleDialogVisible = false
this.dialogVisible=false
},
indexMethod(index){
/* var pagestart=(this.queryParams.current-1) * this.queryParams.size;
var pageindex=index+1+pagestart;
return pageindex;*/
},
saveOrUpdate() {
const _this = this
this.formobj.userSid = window.sessionStorage.getItem('userSid');
this.formobj.orgSid = this.$store.getters.orgSid;
this.$refs['form_obj'].validate(valid => {
if (valid) {
this.submitdisabled = true
req
.saveOrUpdate(this.formobj)
.then(resp => {
this.submitdisabled = false
if (resp.success) {
_this.$message({ showClose: true, type: 'success', message: resp.msg })
_this.handleReturn('true')
} else {
// resp.code
}
})
.catch(() => {
this.submitdisabled = false
})
} else {
return false
}
})
},
deleteVehicle(row){
var arr=this.formobj.baseOutsourcingApplicationVehicleDtos;
const tip = '请确认是否删除车架号为'+row.vinNo+'记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=>{
for(var i=0;i<arr.length;i++){
if(row.vinNo==arr[i].vinNo){
arr.splice(i,1);
}
}
this.formobj.num=this.formobj.num-1;
}).catch(() => {})
}
}
}
</script>
<style scoped>
/*.tleftb{
text-align: right;
font-size: 14px;
color: #606266;
line-height: 20px !important;
font-weight: 600;
}
.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>

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

@ -0,0 +1,192 @@
<template>
<div>
<!-- 标题按钮部分开始 -->
<div class="tab-header webtop">
<!-- 标题 -->
<div>外采申请表详情</div>
<!--start 添加修改按钮-->
<div v-show="isBtnShow">
<el-button type="danger" @click="openRevoke"> </el-button>
</div>
<!-- start 详情按钮 -->
<div><el-button itype="info" size="small" @click="handleReturn()">返回</el-button></div>
<!-- end 详情按钮 -->
</div>
<!-- 标题按钮部分结束 -->
<div class="listconadd">
<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>
<el-row>
<el-col :span="3" class="tleftb">申请编号</el-col>
<el-col :span="5" class="trightb"><el-form-item prop="applicationCode">
<span>{{ formobj.applicationCode }}</span></el-form-item></el-col>
<el-col :span="3" class="tleftb">申请人姓名</el-col>
<el-col :span="5" class="trightb"><el-form-item prop="createByName"><span>{{ formobj.createByName }}</span></el-form-item></el-col>
<el-col :span="3" class="tleftb">申请日期</el-col>
<el-col :span="5" class="trightb"><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="externalMiningTypeValue">
<span v-show="formobj.externalMiningTypeKey==2">政策外采</span>
<span v-show="formobj.externalMiningTypeKey==1">直接外采</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-col :span="4" class="tleftb">销售指导价</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.guidedPrice }}</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.manufactorSettlementPrice }}</span></el-form-item></el-col>
<el-col :span="4" class="tleftb">台数</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.num }}</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.deposit }}</span></el-form-item></el-col>
<el-col :span="4" class="tleftb">费用名称</el-col>
<el-col :span="8" class="trightb"><el-form-item prop="useOrg"><span>{{ formobj.expenseName }}</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.totalExpenseAmount }}</span></el-form-item></el-col>
</el-row>
<div class="listcon" v-show="formobj.externalMiningTypeKey==2">
<div style="border:1px solid #c0c0c0;padding:5px 5px 5px 5px;">
车辆列表
</div>
<el-table :data="formobj.baseOutsourcingApplicationVehicleDtos" border style="width: 100%" >
<el-table-column width="60px" label="序号" type="index" align="center" />
<el-table-column prop="vinNo" label="车架号" align="center" />
</el-table>
</div>
</el-form>
</div>
</div>
</template>
<script>
import req from '@/api/baseoutsourcingapplication/baseoutsourcingapplication'
import request from "@/api/flow/vehicleReturn";
export default {
name: 'BaseOutsourcingApplicationInfo',
data() {
return {
formobj: {
sid: '',
applicationCode: '123456', //
createByName: window.sessionStorage.getItem('name'), //
applicationDate: '', //
externalMiningTypeKey: '1', // key
externalMiningTypeValue: '', // value
purchasingUnitName: '', //
modelSid: '', // sid
modelName: '', //
configName: '', //
configSid: '', // sid
purchasePrice: '', //
guidedPrice: '', //
manufactorSettlementPrice: '', //
num: '0', //
deposit: '', //
expenseName: '', //
totalExpenseAmount: '', //
orgSid: '', // sid
baseOutsourcingApplicationVehicleDtos:[]
}
}
},
methods: {
//
openRevoke() {
this.$confirm('是否确认执行撤回操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.handleRevoke()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
},
/** 撤回任务 */
handleRevoke() {
request.revokeTask(this.revokeList).then((response) => {
if (response.code === '200') {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
} else {
this.$notify({
title: '提示',
message: '执行失败',
type: 'error',
duration: 2000
})
}
})
},
handleReturn() {
this.$emit('doback')
},
showInfo(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
const _this = this
req
.fetchBySid(row.sid)
.then(resp => {
if (resp.success) {
const vdata = resp.data
_this.formobj.applicationCode = vdata.applicationCode //
_this.formobj.createByName = vdata.createByName //
_this.formobj.applicationDate = vdata.applicationDate //
_this.formobj.externalMiningTypeKey = vdata.externalMiningTypeKey // key
_this.formobj.externalMiningTypeValue = vdata.externalMiningTypeValue // value
_this.formobj.purchasingUnitSid = vdata.purchasingUnitSid // sid
_this.formobj.purchasingUnitName = vdata.purchasingUnitName //
_this.formobj.modelSid = vdata.modelSid // sid
_this.formobj.modelName = vdata.modelName //
_this.formobj.configName = vdata.configName //
_this.formobj.purchasePrice = vdata.purchasePrice //
_this.formobj.guidedPrice = vdata.guidedPrice //
_this.formobj.manufactorSettlementPrice = vdata.manufactorSettlementPrice //
_this.formobj.num = vdata.num //
_this.formobj.deposit = vdata.deposit //
_this.formobj.expenseName = vdata.expenseName //
_this.formobj.totalExpenseAmount = vdata.totalExpenseAmount //
_this.formobj.orgSid = vdata.orgSid // sid
_this.formobj.baseOutsourcingApplicationVehicleDtos = vdata.baseOutsourcingApplicationVehicleVos
}
})
.catch(e => {
_this.formobj = row
})
}
}
}
</script>
<style scoped></style>
Loading…
Cancel
Save