Commit 3d7c2c89 by 张权

逻辑完成

1 parent 2d1b70b6
......@@ -11,7 +11,7 @@
<img v-if="item.name === 'billInfo'" slot="default" :src="upload_img" alt="" />
<img v-if="item.name === 'idCard'" slot="default" :src="idCard" alt="" />
<img v-if="item.name === 'idCardBack'" slot="default" :src="idCardBack" alt="" />
<el-button v-if="item.name == 'otherInfo'" slot="default" size="small" class="el-icon-plus">上传文件</el-button>
<el-button v-if="item.name == 'otherInfo'" slot="default" :disabled="pageType == 2" size="small" class="el-icon-plus">上传文件</el-button>
<div slot="tip" class="remark" v-if="item.name == 'idCard'">身份证人像面</div>
<div slot="tip" class="remark" v-if="item.name == 'idCardBack'">身份证国徽面</div>
<div slot="tip" class="file-box" v-if="item.name == 'otherInfo'">
......@@ -49,7 +49,11 @@ export default {
// glsxCombiForm
},
props: {
materialForm: Object
materialForm: Object,
pageType: {
type: Number,
default: 1 // 1.新增 2.查看 3.重新提交 4.去处理
}
},
data() {
return {
......
......@@ -14,7 +14,7 @@
<p class="name">{{ item.name }}</p>
<div class="price-wrap">
<label for="">定损批准金额:</label>
<el-input @input="validPrice($event, index)" placeholder="请选择定损批准金额" v-model="item.price"></el-input>
<el-input clearable :disabled="pageType == 2" @input="validPrice($event, index)" placeholder="请选择定损批准金额" v-model="item.price"></el-input>
<!-- <el-input @input="validPrice($event, index)" placeholder="请选择定损批准金额" v-model="item.price"></el-input> -->
</div>
</div>
......@@ -32,8 +32,10 @@
</div>
<div class="collecter">
<label class="require" for="">收款对象:</label>
<el-radio v-model="accountForm.collectOwner" label="business">店面</el-radio>
<el-radio v-model="accountForm.collectOwner" label="other">其他</el-radio>
<el-radio-group :disabled="pageType == 2" v-model="accountForm.collectOwner" @change="changeOwner">
<el-radio label="business">店面</el-radio>
<el-radio label="other">其他</el-radio>
</el-radio-group>
</div>
<div class="account-info">
<glsx-combi-form ref="accountRef" :formRules="accountRule" labelWidth="144px" defaultWidth="320px" :formObj="accountForm" :formData="accountData"></glsx-combi-form>
......@@ -67,21 +69,14 @@ export default {
equityList: Array,
totalPrice:Number,
isGH: Boolean,
pageType: {
type: Number,
default: 1 // 1.新增 2.查看 3.重新提交 4.去处理
}
},
components: {
glsxCombiForm,
},
watch:{
'accountForm.collectOwner'(newVal, oldVal){
const item = this.accountData.find(item => {
return item.name == 'accountType'
})
item.isHide = newVal=='business'
if(newVal=='business'){
this.accountForm.accountType = 'company'
}
},
},
data() {
return {
accountData:[
......@@ -101,7 +96,8 @@ export default {
],
optionId: 'confId',
optionLabel: 'confName',
isHide:false
isHide:true,
isDisabled: this.pageType == 2
},
{
label: '开户行名称',
......@@ -118,18 +114,21 @@ export default {
},
],
optionId: 'confId',
optionLabel: 'confName'
optionLabel: 'confName',
isDisabled: this.pageType == 2
},
{
label: '账户名称',
name: 'collectName',
type: 'input'
type: 'input',
isDisabled: this.pageType == 2
},
{
label: '收款账号',
name: 'collectAccount',
type: 'input',
maxlength:19
maxlength:19,
isDisabled: this.pageType == 2
},
{
label: '收款账号所在省市',
......@@ -142,7 +141,8 @@ export default {
}
let nodesInfo = this.$refs.accountRef.$refs.cascader[0].getCheckedNodes()[0].pathLabels
this.currentAddress = nodesInfo
}
},
isDisabled: this.pageType == 2
},
{
label: '收款人证件类型',
......@@ -159,21 +159,24 @@ export default {
},
],
optionId: 'confId',
optionLabel: 'confName'
optionLabel: 'confName',
isDisabled: this.pageType == 2
},
{
label: '收款人证件号码',
name: 'collectCardNo',
type: 'input',
maxlength: 18,
isClear: true
isClear: true,
isDisabled: this.pageType == 2
},
{
label: '收款人联系电话',
name: 'collectPhone',
type: 'input',
maxlength: 11,
isClear: true
isClear: true,
isDisabled: this.pageType == 2
},
],
handlerForm: [
......@@ -181,14 +184,16 @@ export default {
label: '经办人',
name: 'handlerName',
type: 'input',
isClear: true
isClear: true,
isDisabled: this.pageType == 2
},
{
label: '经办人联系号码',
name: 'handlerPhone',
type: 'input',
maxlength: 11,
isClear: true
isClear: true,
isDisabled: this.pageType == 2
}
],
accountRule: {
......@@ -246,6 +251,15 @@ export default {
checkPlan = checkPlan.replace(/^()*(\d+)\.(\d\d).*$/, '$1$2.$3') // 只能输入两个小数
}
this.$set(this.equityList[id], 'price' , checkPlan)
},
changeOwner(newVal){
const item = this.accountData.find(item => {
return item.name == 'accountType'
})
item.isHide = newVal=='business'
if(newVal=='business'){
this.accountForm.accountType = 'company'
}
}
}
}
......
......@@ -2,7 +2,7 @@
<div class="report-components">
<div class="title">报案信息(客户提交)</div>
<glsxCombiForm class="edit-form-container " ref="editFormRefReport" labelWidth="144px" defaultWidth="320px" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div style="display:inline-block;" slot="syncBtn">
<div v-if="pageType != 2" style="display:inline-block;" slot="syncBtn">
<el-button style="margin:0 12px;" type="primary" @click="toSearchOrderDetail">同步</el-button>
<span style="font-weight: 400; color:#666;">同步合同中以下信息,同步后的信息可手动编辑</span>
</div>
......
......@@ -2,12 +2,17 @@
<template>
<div class="app">
<report ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report>
<repair ref="repairRef" :isGH="routeInfo.isGH" :equityList.sync="equityList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material ref="materialRef" :materialForm.sync="materialForm"></material>
<repair ref="repairRef" :isGH="routeInfo.isGH" :pageType="pageType" :equityList.sync="equityList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
<div class="footer operate-btn">
<el-button size="small" type="primary" @click="confirmSubmit(1)">确定</el-button>
<el-button size="small" type="primary" plain @click="confirmSubmit(2)">存草稿</el-button>
<el-button size="small" @click="handleCancel">取消</el-button>
<template v-if="pageType != 2">
<el-button size="small" type="primary" @click="confirmSubmit(1)">确定</el-button>
<el-button size="small" type="primary" plain @click="confirmSubmit(2)">存草稿</el-button>
<el-button size="small" @click="handleCancel">取消</el-button>
</template>
<template v-else>
<el-button size="small" type="primary" @click="handleCancel">返回</el-button>
</template>
</div>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!