|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="app-container"> |
|
|
|
<div v-show="viewState == 1"> |
|
|
|
<!-- 标题按钮部分开始 --> |
|
|
|
<div class="tab-header webtop"> |
|
|
@ -9,7 +9,7 @@ |
|
|
|
<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> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
<!-- end 添加修改按钮 --> |
|
|
|
<!-- end 详情按钮 --> |
|
|
@ -54,7 +54,7 @@ |
|
|
|
<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-form-item prop="purchasingUnitName"><el-input v-model="formobj.purchasingUnitName" placeholder="采购单位" class="addinputw" clearable /></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row>--> |
|
|
|
<el-row> |
|
|
@ -66,7 +66,9 @@ |
|
|
|
</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-form-item> |
|
|
|
<el-button type="primary" size="small" @click="selectModel">选择</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
@ -78,16 +80,10 @@ |
|
|
|
</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> |
|
|
|
</el-col> |
|
|
|
<el-col :span="7" class="trightb"> |
|
|
|
<el-col :span="5" 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 }} |
|
|
@ -96,20 +92,43 @@ |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>厂家合同价</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" 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-col :span="5" class="trightb"> |
|
|
|
<el-form-item prop="manufactorSettlementPrice"> |
|
|
|
<el-input v-model="formobj.manufactorSettlementPrice" class="addinputw" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>内部编码</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-form-item prop=""> |
|
|
|
<span>{{formobj.insideCode}}</span> |
|
|
|
<span>{{ formobj.insideCode }}</span> |
|
|
|
</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="5" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="formobj.modelAccountName" 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="5" class="trightb"> |
|
|
|
<el-form-item prop="modelBankName"> |
|
|
|
<el-input size="small" v-model="formobj.modelBankName" 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="5" class="trightb"> |
|
|
|
<el-form-item prop="modelBankAccount"> |
|
|
|
<el-input v-model="formobj.modelBankAccount" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -117,81 +136,79 @@ |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>采购单位</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="7" class="trightb"> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-form-item prop="purchasingUnitName"> |
|
|
|
<el-input size="small" v-model="formobj.purchasingUnitName" placeholder="采购单位" class="addinputw" |
|
|
|
clearable/> |
|
|
|
<el-input 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> |
|
|
|
<span><span class="icon">*</span>车款开户银行</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-form-item prop="depositBankName"> |
|
|
|
<el-input size="small" v-model="formobj.depositBankName" placeholder="开户银行" class="addinputw" |
|
|
|
clearable/> |
|
|
|
<el-input 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> |
|
|
|
<span><span class="icon">*</span>车款银行账号</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-form-item prop="bankAccount"> |
|
|
|
<el-input size="small" v-model="formobj.bankAccount" placeholder="银行账号" class="addinputw" clearable/> |
|
|
|
<el-input 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="7" class="trightb"> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-form-item prop="purchasePrice"> |
|
|
|
<el-input size="small" v-model="formobj.purchasePrice" placeholder="采购价格" class="addinputw" clearable/> |
|
|
|
<el-input 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="4" class="trightb"> |
|
|
|
<el-col :span="5" 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-input 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="4" class="trightb"> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-form-item prop="deposit"> |
|
|
|
<el-input size="small" style="height:10px;" v-model="formobj.deposit" placeholder="订金" class="addinputw" |
|
|
|
clearable/> |
|
|
|
<el-input 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> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-form-item prop="isBeforePayment"> |
|
|
|
<el-radio v-model="formobj.isBeforePayment" label="0">否</el-radio> |
|
|
|
<el-radio v-model="formobj.isBeforePayment" label="1">是</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>其他费用名称</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="7" class="trightb"> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-form-item prop="expenseName"> |
|
|
|
<el-input size="small" v-model="formobj.expenseName" placeholder="费用名称" class="addinputw" clearable/> |
|
|
|
<el-input v-model="formobj.expenseName" placeholder="费用名称" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>费用合计</span> |
|
|
|
<span>其他费用合计</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="11" class="trightb"> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-form-item prop="totalExpenseAmount"> |
|
|
|
<el-input size="small" v-model="formobj.totalExpenseAmount" placeholder="费用金额合计" class="addinputw" |
|
|
|
clearable/> |
|
|
|
<el-input v-model="formobj.totalExpenseAmount" placeholder="费用金额合计" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -201,7 +218,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="21" class="trightb"> |
|
|
|
<el-form-item prop="remarks"> |
|
|
|
<el-input size="small" v-model="formobj.remarks" placeholder="备注" class="addinputw" clearable/> |
|
|
|
<el-input v-model="formobj.remarks" placeholder="备注" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -253,12 +270,10 @@ |
|
|
|
width="90%" |
|
|
|
:show-close="true" |
|
|
|
:before-close="handleClose"> |
|
|
|
<vehicle ref="cheliang" @doback="resetState" :selectedSids="selectedSids" |
|
|
|
:modelSid="formobj.modelSid" |
|
|
|
:configSid="formobj.configSid"/> |
|
|
|
<vehicle ref="cheliang" @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-button type="primary" @click="quedingVehicle(this)">确 定</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 选择待办人 --> |
|
|
@ -291,8 +306,7 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="24" class="trightb"> |
|
|
|
<el-radio-group v-model="userSid"> |
|
|
|
<el-radio v-for="item in item.users" :key="item.sid" :label="item.sid" |
|
|
|
@change="checkedUser(item)">{{ item.name }} |
|
|
|
<el-radio v-for="item in item.users" :key="item.sid" :label="item.sid" @change="checkedUser(item)">{{ item.name }} |
|
|
|
</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-col> |
|
|
@ -324,17 +338,17 @@ export default { |
|
|
|
accessToken: { |
|
|
|
token: getStorage() |
|
|
|
}, |
|
|
|
//第一个环节 |
|
|
|
// 第一个环节 |
|
|
|
firstNode: {}, |
|
|
|
//下一个环节 |
|
|
|
// 下一个环节 |
|
|
|
nextNode: {}, |
|
|
|
//角色sid |
|
|
|
// 角色sid |
|
|
|
roleSid: '', |
|
|
|
//可选择的下一环节的用户集合 |
|
|
|
// 可选择的下一环节的用户集合 |
|
|
|
users: [], |
|
|
|
//点击提交按钮显示弹框 |
|
|
|
// 点击提交按钮显示弹框 |
|
|
|
nodeDialogVisible: false, |
|
|
|
//选择用户弹框 |
|
|
|
// 选择用户弹框 |
|
|
|
nodeUserDialogVisible: false, |
|
|
|
selectedSids: '', |
|
|
|
vehicleDialogVisible: false, |
|
|
@ -355,11 +369,15 @@ export default { |
|
|
|
depositBankName: '', |
|
|
|
bankAccount: '', |
|
|
|
contract: {}, |
|
|
|
//下一环节的用户sid |
|
|
|
// 下一环节的用户sid |
|
|
|
nextUserSid: '', |
|
|
|
sid: '', |
|
|
|
insideCode:"", |
|
|
|
insideCode: '', |
|
|
|
userSid: '', |
|
|
|
isBeforePayment: '', |
|
|
|
modelBankName: '', |
|
|
|
modelAccountName: '', |
|
|
|
modelBankAccount: '', |
|
|
|
staffSid: window.sessionStorage.getItem('staffSid'), |
|
|
|
applicationCode: '', // 申请编号 |
|
|
|
createByName: window.sessionStorage.getItem('name'), // 申请人姓名 |
|
|
@ -391,13 +409,15 @@ export default { |
|
|
|
externalMiningTypeKey: [{ required: true, message: '外采类型key不能为空', trigger: 'blur' }], // 外采类型key |
|
|
|
externalMiningTypeValue: [{ required: true, message: '外采类型value不能为空', trigger: 'blur' }], // 外采类型value |
|
|
|
purchasingUnitName: [{ required: true, message: '采购单位不能为空', trigger: 'blur' }], // 采购单位名称 |
|
|
|
depositBankName: [{ required: true, message: '开户银行不能为空', trigger: 'blur' }], // 采购单位名称 |
|
|
|
bankAccount: [{ required: true, message: '银行账号不能为空', trigger: 'blur' }], // 采购单位名称 |
|
|
|
depositBankName: [{ required: true, message: '车款开户银行不能为空', trigger: 'blur' }], // 采购单位名称 |
|
|
|
bankAccount: [{ required: true, message: '车款银行账号不能为空', trigger: 'blur' }], // 采购单位名称 |
|
|
|
modelBankName: [{ required: true, message: '订金开户银行不能为空', trigger: 'blur' }], // 采购单位名称 |
|
|
|
modelBankAccount: [{ 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' }], // 厂家合同价 |
|
|
|
manufactorSettlementPrice: [{ required: true, message: '厂家合同价不能为空', trigger: 'blur' }], // 厂家合同价 |
|
|
|
num: [{ required: true, message: '台数不能为空', trigger: 'blur' }], // 台数 |
|
|
|
deposit: [{ required: true, message: '订金不能为空', trigger: 'blur' }], // 订金 |
|
|
|
// expenseName: [{ required: true, message: '费用名称不能为空', trigger: 'blur' }], // 费用名称 |
|
|
@ -417,21 +437,21 @@ export default { |
|
|
|
xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + row.url + '&outFileName=' + row.name, true) |
|
|
|
xhr.setRequestHeader('token', getStorage()) |
|
|
|
xhr.responseType = 'blob' |
|
|
|
xhr.onload = function(e) { |
|
|
|
//如果请求执行成功 |
|
|
|
xhr.onload = function (e) { |
|
|
|
// 如果请求执行成功 |
|
|
|
var blob = this.response |
|
|
|
var filename = row.name |
|
|
|
var a = document.createElement('a') |
|
|
|
//blob.type="application/octet-stream"; |
|
|
|
//创键临时url对象 |
|
|
|
// blob.type="application/octet-stream"; |
|
|
|
// 创键临时url对象 |
|
|
|
var url = URL.createObjectURL(blob) |
|
|
|
a.href = url |
|
|
|
a.download = filename |
|
|
|
a.click() |
|
|
|
//释放之前创建的URL对象 |
|
|
|
// 释放之前创建的URL对象 |
|
|
|
window.URL.revokeObjectURL(url) |
|
|
|
} |
|
|
|
//发送请求 |
|
|
|
// 发送请求 |
|
|
|
xhr.send() |
|
|
|
}, |
|
|
|
// 孟哲接口 |
|
|
@ -439,7 +459,7 @@ export default { |
|
|
|
const userSid = window.sessionStorage.getItem('userSid') |
|
|
|
getPathSidByUserSid({ userSid: userSid }).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
//this.listQuery.params.createOrgSId = res.data |
|
|
|
// this.listQuery.params.createOrgSId = res.data |
|
|
|
req.fetchOrgBySid(res.data).then((ress) => { |
|
|
|
this.formobj.useOrgName = ress.data.name |
|
|
|
}) |
|
|
@ -474,7 +494,7 @@ export default { |
|
|
|
}, |
|
|
|
selectModel() { |
|
|
|
this.viewState = '1.2' |
|
|
|
//this.viewState = 2 |
|
|
|
// this.viewState = 2 |
|
|
|
this.$refs['divconfiguration'].showData(this.formobj.baseOutsourcingApplicationVehicleDtos) |
|
|
|
// this.$refs['chexingxuanze'].showChexing() |
|
|
|
}, |
|
|
@ -486,7 +506,7 @@ export default { |
|
|
|
this.formobj.configSid = info[0].configSid // 常用配置sid |
|
|
|
this.formobj.guidedPrice = info[0].guidedPrice// 销售指导价 |
|
|
|
this.formobj.insideCode = info[0].insideCode// 内部编码 |
|
|
|
this.formobj.manufactorSettlementPrice = info[0].manufactorSettlementPrice// 厂家合同价 |
|
|
|
// this.formobj.manufactorSettlementPrice = info[0].manufactorSettlementPrice// 厂家合同价 |
|
|
|
}, |
|
|
|
selectVehicleDialog() { |
|
|
|
var objs = this.formobj.baseOutsourcingApplicationVehicleDtos |
|
|
@ -523,7 +543,10 @@ export default { |
|
|
|
this.expenseName = '' // 费用名称 |
|
|
|
this.totalExpenseAmount = '' // 费用金额合计 this.$store.getters.userInfo.orgSid, |
|
|
|
this.orgSid = '' |
|
|
|
|
|
|
|
this.formobj.isBeforePayment = '' |
|
|
|
this.formobj.modelBankName = '' |
|
|
|
this.formobj.modelBankAccount = '' |
|
|
|
this.formobj.modelAccountName = '' |
|
|
|
this.$refs['form_obj'].resetFields() |
|
|
|
this.$emit('doback') |
|
|
|
}, |
|
|
@ -552,17 +575,14 @@ export default { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.viewTitle = '【修改】外采申请表' |
|
|
|
const _this = this |
|
|
|
_this.formobj.sid = row.sid // SID |
|
|
|
_this.businessSid = row.sid // SID |
|
|
|
req |
|
|
|
.fetchBySid(row.sid) |
|
|
|
.then(resp => { |
|
|
|
this.formobj.sid = row.sid // SID |
|
|
|
this.businessSid = row.sid // SID |
|
|
|
req.fetchBySid(row.sid).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
const vdata = resp.data |
|
|
|
_this.fileList = [] |
|
|
|
if(vdata.contract!=null){ |
|
|
|
_this.fileList.push({ |
|
|
|
this.fileList = [] |
|
|
|
if (vdata.contract !== null) { |
|
|
|
this.fileList.push({ |
|
|
|
name: vdata.contract.fileName, |
|
|
|
url: vdata.contract.filePath |
|
|
|
}) |
|
|
@ -573,40 +593,44 @@ export default { |
|
|
|
filePath: vdata.contract.filePath, |
|
|
|
fileSize: vdata.contract.fileSize |
|
|
|
}*/ |
|
|
|
_this.formobj.remarks = vdata.remarks |
|
|
|
_this.formobj.insideCode = vdata.insideCode |
|
|
|
_this.formobj.businessSid = row.sid |
|
|
|
_this.formobj.taskId = vdata.taskId |
|
|
|
_this.formobj.instanceId = vdata.procInstSid |
|
|
|
_this.formobj.modelId = vdata.procDefId |
|
|
|
_this.formobj.useOrgName = vdata.useOrgName |
|
|
|
_this.formobj.depositBankName = vdata.depositBankName |
|
|
|
_this.formobj.bankAccount = vdata.bankAccount |
|
|
|
_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.configSid = vdata.configSid // 常用配置sid |
|
|
|
_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 |
|
|
|
this.formobj.remarks = vdata.remarks |
|
|
|
this.formobj.insideCode = vdata.insideCode |
|
|
|
this.formobj.businessSid = row.sid |
|
|
|
this.formobj.taskId = vdata.taskId |
|
|
|
this.formobj.instanceId = vdata.procInstSid |
|
|
|
this.formobj.modelId = vdata.procDefId |
|
|
|
this.formobj.useOrgName = vdata.useOrgName |
|
|
|
this.formobj.modelBankName = vdata.modelBankName |
|
|
|
this.formobj.modelBankAccount = vdata.modelBankAccount |
|
|
|
this.formobj.isBeforePayment = vdata.isBeforePayment |
|
|
|
this.formobj.modelAccountName = vdata.modelAccountName |
|
|
|
this.formobj.depositBankName = vdata.depositBankName |
|
|
|
this.formobj.bankAccount = vdata.bankAccount |
|
|
|
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.configSid = vdata.configSid // 常用配置sid |
|
|
|
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 => { |
|
|
|
console.log(e) |
|
|
|
console.log(e) |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleClose() { |
|
|
@ -618,68 +642,69 @@ export default { |
|
|
|
var pageindex=index+1+pagestart; |
|
|
|
return pageindex;*/ |
|
|
|
}, |
|
|
|
//打开选择用户的弹框,并且根据角色查询用户列表 |
|
|
|
// 打开选择用户的弹框,并且根据角色查询用户列表 |
|
|
|
/* selectUser() { |
|
|
|
this.nodeUserDialogVisible = true; |
|
|
|
req.getUsers( this.roleSid ).then(res => { |
|
|
|
this.users = res.data |
|
|
|
}) |
|
|
|
},*/ |
|
|
|
//选择下一环节的用户 |
|
|
|
// 选择下一环节的用户 |
|
|
|
/* checkedUser(val) { |
|
|
|
|
|
|
|
this.userName = val.name |
|
|
|
this.formobj.nextUserSid =val.sid |
|
|
|
this.nodeUserDialogVisible = false |
|
|
|
},*/ |
|
|
|
doSubmit(row) { |
|
|
|
var contract=this.formobj.contract; |
|
|
|
if(!contract.fileName){ |
|
|
|
alert('合同附件不能为空!'); |
|
|
|
return false; |
|
|
|
doSubmit() { |
|
|
|
var contract = this.formobj.contract |
|
|
|
if (contract.fileName === '' || contract.fileName === null || contract.fileName === undefined) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '合同附件不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.isBeforePayment === '' || this.formobj.isBeforePayment === null) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请检查是否先付款已选择' }) |
|
|
|
return |
|
|
|
} |
|
|
|
// 提交的代码 |
|
|
|
//this.submitdisabled = true |
|
|
|
// this.submitdisabled = true |
|
|
|
this.formobj.userSid = window.sessionStorage.getItem('userSid') |
|
|
|
this.formobj.orgSid = this.$store.getters.orgSid |
|
|
|
//查验下一环节要用到,流程定义的id |
|
|
|
// 查验下一环节要用到,流程定义的id |
|
|
|
|
|
|
|
this.agree() |
|
|
|
/*req.getNextNodesForSubmit(this.formobj).then(resp=>{ |
|
|
|
this.agree() |
|
|
|
// req.getNextNodesForSubmit(this.formobj).then(resp=>{ |
|
|
|
// if (resp.success) { |
|
|
|
// //第一个环节 |
|
|
|
// this.firstNode=resp.data[0]; |
|
|
|
// //下一环节 |
|
|
|
// this.nextNode=resp.data[1]; |
|
|
|
// //环节上配置的角色 |
|
|
|
// var candidateGroups=this.nextNode.candidateGroups; |
|
|
|
// this.roleSid=candidateGroups[0]; |
|
|
|
// req.getNextUserSids( this.formobj.orgSid,this.roleSid ).then(res => { |
|
|
|
// /!*this.users = res.data*!/ |
|
|
|
// this.formobj.nextUserSid =res.data |
|
|
|
// }) |
|
|
|
// // this.nodeDialogVisible = true |
|
|
|
// } |
|
|
|
// this.submitdisabled = false |
|
|
|
// }) |
|
|
|
}, |
|
|
|
// 选择用户后点击确定/同意时向后台传递数据,启动流程,并从第一个环节流转到下一个环节 |
|
|
|
agree() { |
|
|
|
req.doSubmit(this.formobj).then(resp => { |
|
|
|
this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
//第一个环节 |
|
|
|
this.firstNode=resp.data[0]; |
|
|
|
//下一环节 |
|
|
|
this.nextNode=resp.data[1]; |
|
|
|
//环节上配置的角色 |
|
|
|
var candidateGroups=this.nextNode.candidateGroups; |
|
|
|
this.roleSid=candidateGroups[0]; |
|
|
|
req.getNextUserSids( this.formobj.orgSid,this.roleSid ).then(res => { |
|
|
|
/!*this.users = res.data*!/ |
|
|
|
this.formobj.nextUserSid =res.data |
|
|
|
}) |
|
|
|
// this.nodeDialogVisible = true |
|
|
|
// 加提交后的逻辑 |
|
|
|
this.$message({ showClose: true, type: 'success', message: resp.msg }) |
|
|
|
this.handleReturn('true') |
|
|
|
} else { |
|
|
|
// 根据resp.code进行异常情况处理 |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
this.submitdisabled = false |
|
|
|
});*/ |
|
|
|
}, |
|
|
|
//选择用户后点击确定/同意时向后台传递数据,启动流程,并从第一个环节流转到下一个环节 |
|
|
|
agree() { |
|
|
|
req |
|
|
|
.doSubmit(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 |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
saveOrUpdate() { |
|
|
|
const _this = this |
|
|
@ -693,20 +718,17 @@ export default { |
|
|
|
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 |
|
|
|
}) |
|
|
|
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 |
|
|
|
} |
|
|
@ -717,7 +739,6 @@ export default { |
|
|
|
}, |
|
|
|
deleteVehicle(row) { |
|
|
|
var arr = this.formobj.baseOutsourcingApplicationVehicleDtos |
|
|
|
|
|
|
|
const tip = '请确认是否删除车架号为' + row.vinNo + '记录?' |
|
|
|
this.$confirm(tip, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
@ -732,7 +753,6 @@ export default { |
|
|
|
this.formobj.num = this.formobj.num - 1 |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|