|
@@ -3,7 +3,10 @@
|
|
|
<el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="formReadOnly"
|
|
|
label-width="150px">
|
|
|
|
|
|
- <el-divider content-position="left"><i class="el-icon-document"></i> 客户信息</el-divider>
|
|
|
+ <el-divider v-if="formReadOnly && commonJS.isNotEmpty(inputForm.customerId)" content-position="left">
|
|
|
+ <el-link type="primary" :underline="false" icon="el-icon-document" @click="viewClient(inputForm.customerId)"><b>查看客户详情</b></el-link>
|
|
|
+ </el-divider>
|
|
|
+ <el-divider v-else content-position="left"><i class="el-icon-document"></i> 客户信息</el-divider>
|
|
|
<el-row :gutter="0">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="委托方联系人" prop="clientContacts"
|
|
@@ -295,6 +298,7 @@
|
|
|
zIndex="9999"/>
|
|
|
<WorkClientChooseForm ref="workClientChooseForm" @getWorkClientChoose="getWorkClientChoose"></WorkClientChooseForm>
|
|
|
<WorkClientChooseRadio ref="workClientChooseRadio" @getWorkClientRadioChoose="getWorkClientChoose2"></WorkClientChooseRadio>
|
|
|
+ <WorkClientForm ref="workClientForm" @refreshList=""></WorkClientForm>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -305,6 +309,7 @@
|
|
|
import WorkClientChooseForm from '../workClientInfo/WorkClientChooseForm'
|
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
|
import WorkClientChooseRadio from '../workClientInfo/WorkClientChooseRadio'
|
|
|
+ import WorkClientForm from '../workClientInfo/WorkClientForm'
|
|
|
import OSSSerive, {
|
|
|
httpRequest,
|
|
|
toHref,
|
|
@@ -425,7 +430,8 @@
|
|
|
UpLoadComponent,
|
|
|
WorkClientChooseForm,
|
|
|
SelectTree,
|
|
|
- WorkClientChooseRadio
|
|
|
+ WorkClientChooseRadio,
|
|
|
+ WorkClientForm
|
|
|
},
|
|
|
ossService: null,
|
|
|
// workContractService: null,
|
|
@@ -1022,6 +1028,10 @@
|
|
|
this.$message.warning(`合同终止日期要大于合同开始日期`)
|
|
|
this.inputForm.closingDate = ''
|
|
|
}
|
|
|
+ },
|
|
|
+ // 查看客户信息详情
|
|
|
+ viewClient (id) {
|
|
|
+ this.$refs.workClientForm.init('view', id)
|
|
|
}
|
|
|
}
|
|
|
}
|