Browse Source

完善车辆台账--销售出库

master
yunuo970428 2 years ago
parent
commit
757a777f83
  1. 52
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangChu.vue

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

@ -177,6 +177,34 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>{{ name }}</span>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ temp.trailerOrInstall }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span><span class="icon">*</span>{{ name }}成交价</span>
</el-col>
<el-col :span="8">
<el-form-item prop="trailerOrInstallDealPrice">
<el-input v-model="temp.trailerOrInstallDealPrice" placeholder="" clearable class="addinputw"/>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>总成交价</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ totalDealPrice() }}</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<el-dialog :visible.sync="dialogVisible" width="40%" :close-on-click-modal="false">
@ -244,6 +272,7 @@ export default {
},
dialogVisible: false,
disabledBtn: false,
name: '',
temp: {
vinNo: '',
vinSid: '',
@ -273,7 +302,10 @@ export default {
typeKey: '', // Key
createOrgSid: '',
remarks: '',
isUpdateOrInsertCrm: ''
isUpdateOrInsertCrm: '',
trailerOrInstall: '',
trailerOrInstallDealPrice: '',
totalDealPrice: ''
},
payType_list: [], //
org_list: [], //
@ -289,6 +321,7 @@ export default {
concatNo: [{ required: true, message: '合同编号不能为空', trigger: 'blur' }],
isTerminal: [{ required: true, message: '是否为终端客户不能为空', trigger: 'change' }],
customerName: [{ required: true, message: '客户名称不能为空', trigger: 'change' }],
trailerOrInstallDealPrice: [{ required: true, message: '成交价不能为空', trigger: 'change' }]
}
}
},
@ -370,6 +403,9 @@ export default {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
this.name = multipleSelection[0].szOrGC
this.temp.trailerOrInstall = multipleSelection[0].trailerOrInstall
this.temp.trailerOrInstallDealPrice = multipleSelection[0].trailerOrInstallDealPrice
this.temp.vinNo = multipleSelection[0].vinNo
this.temp.vinSid = multipleSelection[0].sid
this.temp.createOrgSid = createOrgSid
@ -379,6 +415,14 @@ export default {
this.temp.salesAllowance = '0'
this.getType()
},
totalDealPrice() {
if (this.temp.trailerOrInstallDealPrice !== '' && this.temp.price !== '') {
this.temp.totalDealPrice = parseFloat(this.temp.price) + parseFloat(this.temp.trailerOrInstallDealPrice)
} else {
this.temp.totalDealPrice = ''
}
return this.temp.totalDealPrice
},
//
handleCreate() {
if (this.temp.giftsDescription !== '' && this.temp.giftsDescription !== '0' && this.temp.remarks === '') {
@ -465,8 +509,12 @@ export default {
type: '', //
typeKey: '', // Key
createOrgSid: '',
isUpdateOrInsertCrm: ''
isUpdateOrInsertCrm: '',
trailerOrInstall: '',
trailerOrInstallDealPrice: '',
totalDealPrice: ''
}
this.name = ''
this.disabledBtn = false
this.$refs['dataForm'].resetFields()
this.$emit('doback')

Loading…
Cancel
Save