|
@ -177,6 +177,32 @@ |
|
|
<el-form-item><span class="addinputInfo">{{ formobj.busSalesOrderPrice.plannedPickUpLocation }}</span></el-form-item> |
|
|
<el-form-item><span class="addinputInfo">{{ formobj.busSalesOrderPrice.plannedPickUpLocation }}</span></el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
<div v-if="isCarCost"> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
<div class="span-sty">厂家合同(结算)价(元/台)</div> |
|
|
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.vehicleCostObj.manufacturerSettleAmount }}</span></el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
<div class="span-sty">政策合计金额(元/台)</div> |
|
|
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.vehicleCostObj.policyAmount }}</span></el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<div class="span-sty">成本价(元/台)</div> |
|
|
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.vehicleCostObj.cost }}</span></el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
<div class="span-sty">政策明细</div> |
|
|
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.vehicleCostObj.policyDetails }}</span></el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="18"> |
|
|
|
|
|
<div class="span-sty">备注</div> |
|
|
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.vehicleCostObj.remarks }}</span></el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</div> |
|
|
<div v-if="formobj.isGc"> |
|
|
<div v-if="formobj.isGc"> |
|
|
<div class="title">挂车<span v-show="formobj.gc2.singleFinalPrice !== '' && formobj.gc2.singleFinalPrice !== null">1</span>(对应单台主车)</div> |
|
|
<div class="title">挂车<span v-show="formobj.gc2.singleFinalPrice !== '' && formobj.gc2.singleFinalPrice !== null">1</span>(对应单台主车)</div> |
|
|
<el-row> |
|
|
<el-row> |
|
@ -434,19 +460,57 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog :visible.sync="companyInvoicingVisible" width="60%"> |
|
|
<el-dialog :visible.sync="companyInvoicingVisible" width="60%"> |
|
|
<el-form class="formadd"> |
|
|
<el-form class="formaddcopy02"> |
|
|
<el-row style="border-top: 1px solid #e0e3eb"> |
|
|
<el-row style="border-top: 1px solid #e0e3eb" v-if="formobj.payTypeKey == '1'"> |
|
|
<el-col :span="6" class="tleftb"> |
|
|
<el-col :span="24"> |
|
|
<span><span class="icon">*</span>开票单位:</span> |
|
|
<div class="span-sty"><span class="icon">*</span>开票单位</div> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="18"> |
|
|
|
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-select v-model="linkByParameter.companyInvoicingName" placeholder="请选择" @change="changeCompanyInvoicing" clearable class=""> |
|
|
<el-select v-model="linkByParameter.companyInvoicingName" placeholder="请选择" @change="changeCompanyInvoicing" clearable class="addinputInfo addinputw"> |
|
|
<el-option v-for="item in companyInvoicing_list" :key="item.companyInvoicingSid" :label="item.companyInvoicingName" :value="item.companyInvoicingName"></el-option> |
|
|
<el-option v-for="item in companyInvoicing_list" :key="item.companyInvoicingSid" :label="item.companyInvoicingName" :value="item.companyInvoicingName"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
<el-row style="border-top: 1px solid #e0e3eb"> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<div class="span-sty">厂家合同(结算)价(元/台)</div> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-input class="addinputInfo addinputw" v-model="linkByParameter.manufacturerSettleAmount" @input="costTotal" @keyup.native="linkByParameter.manufacturerSettleAmount = getNumber(linkByParameter.manufacturerSettleAmount, 0)" clearable placeholder="" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<div class="span-sty">政策合计金额(元/台)</div> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-input class="addinputInfo addinputw" v-model="linkByParameter.policyAmount" @input="costTotal" @keyup.native="linkByParameter.policyAmount = getNumber(linkByParameter.policyAmount, 2)" clearable placeholder="" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<div class="span-sty">成本价(元/台)</div> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<span class="addinputInfo">{{ linkByParameter.cost }}</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<div class="span-sty">政策明细</div> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-input class="addinputInfo addinputw" v-model="linkByParameter.policyDetails" clearable placeholder="" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<div class="span-sty">备注</div> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-input class="addinputInfo addinputw" v-model="linkByParameter.remarks" clearable placeholder="" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
<div style="text-align:center;margin-top: 20px;"> |
|
|
<div style="text-align:center;margin-top: 20px;"> |
|
|
<el-button type="primary" size="mini" @click="confirm">确定</el-button> |
|
|
<el-button type="primary" size="mini" @click="confirm">确定</el-button> |
|
|
<el-button type="info " size="mini" @click="companyInvoicingVisible = false">取消</el-button> |
|
|
<el-button type="info " size="mini" @click="companyInvoicingVisible = false">取消</el-button> |
|
@ -458,7 +522,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import { fetchDetailsBySid, completeBy, breakProcess, reject, getNextNodesForSubmit, getPreviousNodesForReject, delegate, assignTask } from '@/api/salesManagement/orderManagement' |
|
|
import { fetchDetailsBySid, completeBy, breakProcess, reject, getNextNodesForSubmit, getPreviousNodesForReject, delegate, assignTask } from '@/api/salesManagement/orderManagement' |
|
|
import { getInvoicingList, selectStaffListss } from '@/api/dictcommons/dictcommons' |
|
|
import { getInvoicingList, selectStaffListss, getButtonPermissions } from '@/api/dictcommons/dictcommons' |
|
|
import financialschemeInfo from '../../publicPage/financialschemeInfo' |
|
|
import financialschemeInfo from '../../publicPage/financialschemeInfo' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
@ -474,6 +538,7 @@ export default { |
|
|
index: 0, |
|
|
index: 0, |
|
|
companyInvoicing_list: [], |
|
|
companyInvoicing_list: [], |
|
|
companyInvoicingVisible: false, |
|
|
companyInvoicingVisible: false, |
|
|
|
|
|
isCarCost: false, // 是否显示车辆成本信息(根据功能权限接口进行限制) |
|
|
formobj: { |
|
|
formobj: { |
|
|
affiliatedCompany: '', |
|
|
affiliatedCompany: '', |
|
|
affiliatedCompanySid: '', |
|
|
affiliatedCompanySid: '', |
|
@ -492,6 +557,7 @@ export default { |
|
|
busSalesVehicleOrderList: [], |
|
|
busSalesVehicleOrderList: [], |
|
|
gc1: {}, |
|
|
gc1: {}, |
|
|
gc2: {}, |
|
|
gc2: {}, |
|
|
|
|
|
vehicleCostObj: {}, |
|
|
concatNo: '', |
|
|
concatNo: '', |
|
|
createDate: '', |
|
|
createDate: '', |
|
|
customerName: '', |
|
|
customerName: '', |
|
@ -551,7 +617,12 @@ export default { |
|
|
companyInvoicingName: '', |
|
|
companyInvoicingName: '', |
|
|
companyInvoicingSid: '', |
|
|
companyInvoicingSid: '', |
|
|
purchaseSystemName: '', |
|
|
purchaseSystemName: '', |
|
|
purchaseSystemSid: '' |
|
|
purchaseSystemSid: '', |
|
|
|
|
|
manufacturerSettleAmount: '', |
|
|
|
|
|
policyAmount: '', |
|
|
|
|
|
cost: '', |
|
|
|
|
|
policyDetails: '', |
|
|
|
|
|
remarks: '' |
|
|
}, |
|
|
}, |
|
|
// 加签按钮或转办按钮所需参数 |
|
|
// 加签按钮或转办按钮所需参数 |
|
|
countersign: { |
|
|
countersign: { |
|
@ -596,6 +667,24 @@ export default { |
|
|
}, '*') |
|
|
}, '*') |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getNumber(val, limit) { |
|
|
|
|
|
val = val.replace(/[^0-9.]/g, '') // 保留数字 |
|
|
|
|
|
val = val.replace(/^00/, '0.') // 开头不能有两个0 |
|
|
|
|
|
val = val.replace(/^\./g, '0.') // 开头为小数点转换为0. |
|
|
|
|
|
val = val.replace(/\.{2,}/g, '.') // 两个以上的小数点转换成一个 |
|
|
|
|
|
val = val.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.'); // 只保留一个小数点 |
|
|
|
|
|
/^0\d+/.test(val) ? val = val.slice(1) : '' // 两位以上数字开头不能为0 |
|
|
|
|
|
const str = '^(\\d+)\\.(\\d{' + limit + '}).*$' |
|
|
|
|
|
const reg = new RegExp(str) |
|
|
|
|
|
if (limit === 0) { |
|
|
|
|
|
// 不需要小数点 |
|
|
|
|
|
val = val.replace(reg, '$1') |
|
|
|
|
|
} else { |
|
|
|
|
|
// 通过正则保留小数点后指定的位数 |
|
|
|
|
|
val = val.replace(reg, '$1.$2') |
|
|
|
|
|
} |
|
|
|
|
|
return val |
|
|
|
|
|
}, |
|
|
showInfo(sid) { |
|
|
showInfo(sid) { |
|
|
fetchDetailsBySid(sid).then((resp) => { |
|
|
fetchDetailsBySid(sid).then((resp) => { |
|
|
if (resp.success) { |
|
|
if (resp.success) { |
|
@ -643,6 +732,18 @@ export default { |
|
|
this.companyInvoicing_list = res.data |
|
|
this.companyInvoicing_list = res.data |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
getButtonPermissions({ userSid: window.sessionStorage.getItem('userSid'), url: '/xiaoshouguanli/dingdanxinxi', type: 0 }).then((resp) => { |
|
|
|
|
|
if (resp.success) { |
|
|
|
|
|
for (var i = 0; i < resp.data.length; i++) { |
|
|
|
|
|
if (resp.data[i].buttonId === 'car_cost_detail') { |
|
|
|
|
|
this.isCarCost = false |
|
|
|
|
|
return |
|
|
|
|
|
} else { |
|
|
|
|
|
this.isCarCost = true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
selectStaffListss().then((res) => { |
|
|
selectStaffListss().then((res) => { |
|
@ -651,6 +752,9 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
costTotal() { |
|
|
|
|
|
this.linkByParameter.cost = Math.round((parseFloat(this.linkByParameter.manufacturerSettleAmount !== '' ? this.linkByParameter.manufacturerSettleAmount : 0) - parseFloat(this.linkByParameter.policyAmount !== '' ? this.linkByParameter.policyAmount : 0)) * 100) / 100 |
|
|
|
|
|
}, |
|
|
handleLook() { |
|
|
handleLook() { |
|
|
this.viewState = 2 |
|
|
this.viewState = 2 |
|
|
this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo, '03') |
|
|
this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo, '03') |
|
@ -733,26 +837,19 @@ export default { |
|
|
// 同意 |
|
|
// 同意 |
|
|
openAgree(val) { |
|
|
openAgree(val) { |
|
|
this.operation = val |
|
|
this.operation = val |
|
|
if (this.formobj.payTypeKey === '1') { |
|
|
this.companyInvoicingVisible = true |
|
|
this.companyInvoicingVisible = true |
|
|
this.currentLink = false |
|
|
this.linkByParameter.companyInvoicingName = this.formobj.companyInvoicingName |
|
|
this.countersignLink = false |
|
|
this.linkByParameter.companyInvoicingSid = this.formobj.companyInvoicingSid |
|
|
this.linkByParameter.companyInvoicingName = this.formobj.companyInvoicingName |
|
|
} else { |
|
|
this.linkByParameter.companyInvoicingSid = this.formobj.companyInvoicingSid |
|
|
this.currentLink = true |
|
|
this.linkByParameter.manufacturerSettleAmount = this.formobj.vehicleCostObj.manufacturerSettleAmount |
|
|
this.countersignLink = false |
|
|
this.linkByParameter.policyAmount = this.formobj.vehicleCostObj.policyAmount |
|
|
this.dialogList.comment = '同意' |
|
|
this.linkByParameter.cost = this.formobj.vehicleCostObj.cost |
|
|
getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => { |
|
|
this.linkByParameter.policyDetails = this.formobj.vehicleCostObj.policyDetails |
|
|
if (resp.success) { |
|
|
this.linkByParameter.remarks = this.formobj.vehicleCostObj.remarks |
|
|
var arr = resp.data |
|
|
|
|
|
this.nextNode = arr[0] |
|
|
|
|
|
this.nodeDialogVisible = true |
|
|
|
|
|
} |
|
|
|
|
|
this.submitdisabled = false |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
confirm() { |
|
|
confirm() { |
|
|
if (this.linkByParameter.companyInvoicingName === '') { |
|
|
if (this.linkByParameter.companyInvoicingName === '' && this.formobj.payTypeKey === '1') { |
|
|
this.$message({ showClose: true, type: 'error', message: '开票单位不能为空' }) |
|
|
this.$message({ showClose: true, type: 'error', message: '开票单位不能为空' }) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
@ -961,10 +1058,14 @@ export default { |
|
|
border-top: 1px solid #E0E3EB; |
|
|
border-top: 1px solid #E0E3EB; |
|
|
} |
|
|
} |
|
|
.span-sty { |
|
|
.span-sty { |
|
|
width: 140px !important; |
|
|
width: 160px !important; |
|
|
} |
|
|
} |
|
|
.addinputInfo { |
|
|
.addinputInfo { |
|
|
margin-left: 130px !important; |
|
|
margin-left: 150px !important; |
|
|
|
|
|
} |
|
|
|
|
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
|
|
|
|
|
margin-left: 150px !important; |
|
|
|
|
|
width: calc(100% - 145px); |
|
|
} |
|
|
} |
|
|
.jinrong { |
|
|
.jinrong { |
|
|
padding: 7px; |
|
|
padding: 7px; |
|
|