|
|
@ -54,20 +54,12 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> |
|
|
|
<span>移库原因</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="21"> |
|
|
|
<el-input v-model="temp.changeReason" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> |
|
|
|
<span><span class="icon">*</span>车架号</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="21"> |
|
|
|
<el-form-item prop="vinNo"> |
|
|
|
<el-form-item> |
|
|
|
<span>{{ temp.vinNo }}</span> |
|
|
|
<el-button size="small" type="primary" @click="selectVinNo" class="selectVinNoBtn">选择</el-button> |
|
|
|
<!-- <el-select v-model="temp.vinNo" placeholder="请选择" filterable clearable class="addinputw">--> |
|
|
@ -78,24 +70,30 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> |
|
|
|
<span>申请费用</span> |
|
|
|
<span>变更原因</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="21"> |
|
|
|
<el-input v-model="temp.applicantFunds" maxlength="125" placeholder="" class="addinputw" clearable |
|
|
|
@keyup.native="temp.applicantFunds = oninput(temp.applicantFunds,2)"/> |
|
|
|
<el-input v-model="temp.changeReason" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> <!--<span class="icon">*</span>--> |
|
|
|
<span>移库操作人</span> |
|
|
|
<el-col :span="3"> |
|
|
|
<span><span class="icon">*</span>经办人</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item prop="operator"> |
|
|
|
<el-input v-model="temp.operator" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
|
<el-input v-model="temp.operator" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
<span>申请费用(元)</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-input v-model="temp.applicantFunds" maxlength="125" placeholder="" class="addinputw" clearable |
|
|
|
@keyup.native="temp.applicantFunds = oninput(temp.applicantFunds,2)"/> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> |
|
|
|
<span>保险状态</span> |
|
|
|
<span><span class="icon">*</span>保险状态</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item prop="InsuranceStateKey"> |
|
|
@ -103,6 +101,12 @@ |
|
|
|
<el-radio v-model="temp.InsuranceStateKey" label="1">是</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
<span>临牌</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-input v-model="temp.temporaryCard" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row v-show="temp.InsuranceStateKey == '1'"> |
|
|
|
<el-col :span="3"> |
|
|
@ -113,12 +117,7 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> |
|
|
|
<span>临牌</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="21"> |
|
|
|
<el-input v-model="temp.temporaryCard" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
@ -250,7 +249,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
vinNo: [{ required: true, message: '车架号不能为空', trigger: 'change' }], |
|
|
|
// vinNo: [{ required: true, message: '车架号不能为空', trigger: 'change' }], |
|
|
|
operator: [{ required: true, message: '经办人不能为空', trigger: 'change' }], |
|
|
|
InsuranceStateKey: [{ required: true, message: '保险状态不能为空', trigger: 'blur' }], |
|
|
|
location: [{ required: true, message: '现存放地点不能为空', trigger: 'change' }], |
|
|
@ -514,6 +513,17 @@ export default { |
|
|
|
}, |
|
|
|
// 提交添加数据 |
|
|
|
handleCreate() { |
|
|
|
if (this.temp.vinNo == ''){ |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '车架号不能为空!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.temp.applicantFunds == ''){ |
|
|
|
this.temp.applicantFunds = '0' |
|
|
|
} |
|
|
|
if (this.temp.InsuranceStateKey == '0') { |
|
|
|
this.temp.InsuranceState = '否' |
|
|
|
this.temp.policyImage = [] |
|
|
@ -551,6 +561,25 @@ export default { |
|
|
|
}, |
|
|
|
handleSubmit() { |
|
|
|
const _this = this |
|
|
|
if (this.temp.vinNo == ''){ |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '车架号不能为空!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.temp.applicantFunds == ''){ |
|
|
|
this.temp.applicantFunds = '0' |
|
|
|
} |
|
|
|
if (this.temp.InsuranceStateKey == '0') { |
|
|
|
this.temp.InsuranceState = '否' |
|
|
|
this.temp.policyImage = [] |
|
|
|
this.imgList = [] |
|
|
|
} |
|
|
|
if (this.temp.InsuranceStateKey == '1') { |
|
|
|
this.temp.InsuranceState = '是' |
|
|
|
} |
|
|
|
this.getUrl() |
|
|
|
this.$refs['dataForm'].validate(valid => { |
|
|
|
if (valid) { |
|
|
@ -629,8 +658,10 @@ export default { |
|
|
|
font-size: 14px; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.title{ |
|
|
|
.titwu{ |
|
|
|
font-size: 28px; |
|
|
|
text-align: center; |
|
|
|
padding: 30px 0 20px 0; |
|
|
|
} |
|
|
|
|
|
|
|
.selectVinNoBtn { |
|
|
|