|
@@ -5,7 +5,7 @@
|
|
|
:close-on-click-modal="false"
|
|
|
v-dialogDrag
|
|
|
width="800px"
|
|
|
- @close="close"
|
|
|
+ @close="close,closeXTable"
|
|
|
@keyup.enter.native="doSubmit"
|
|
|
:visible.sync="visible">
|
|
|
<el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="method==='view'"
|
|
@@ -13,15 +13,17 @@
|
|
|
<el-row :gutter="15">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="客户名称" prop="name"
|
|
|
- :rules="[
|
|
|
- ]">
|
|
|
- <el-input v-model="inputForm.name" placeholder="请输入客户名称" ></el-input>
|
|
|
+ :rules="[
|
|
|
+ {required: true, message:'请输入客户名称', trigger:'blur'}
|
|
|
+ ]">
|
|
|
+ <el-input v-model="inputForm.name" placeholder="请输入客户名称"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="是否拥有信用代码" prop="hasUscc"
|
|
|
- :rules="[
|
|
|
+ :rules="[
|
|
|
+ {required: true, message:'请选择是否拥有信用代码', trigger:'blur'}
|
|
|
]">
|
|
|
<el-radio-group v-model="inputForm.hasUscc">
|
|
|
<el-radio v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value" :key="item.id">{{item.label}}</el-radio>
|
|
@@ -30,17 +32,19 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="统一社会信用代码" prop="uscCode"
|
|
|
- :rules="[
|
|
|
+ <el-form-item label="统一社会信用代码" prop="uscCode" v-if="inputForm.hasUscc === '1'"
|
|
|
+ :rules="[
|
|
|
+ {required: true, message:'请输入统一社会信用代码', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-input v-model="inputForm.uscCode" placeholder="请输入统一社会信用代码" ></el-input>
|
|
|
+ <el-input v-model="inputForm.uscCode" placeholder="请输入统一社会信用代码"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="客户性质" prop="companyType"
|
|
|
- :rules="[
|
|
|
- ]">
|
|
|
+ :rules="[
|
|
|
+ {required: true, message:'请选择客户性质', trigger:'blur'}
|
|
|
+ ]">
|
|
|
<el-select v-model="inputForm.companyType" placeholder="请选择" style="width:100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('customer_nature')"
|
|
@@ -54,8 +58,9 @@
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="所在行业" prop="companyIndustry"
|
|
|
- :rules="[
|
|
|
- ]">
|
|
|
+ :rules="[
|
|
|
+ {required: true, message:'请选择所在行业', trigger:'blur'}
|
|
|
+ ]">
|
|
|
<el-select v-model="inputForm.companyIndustry" placeholder="请选择" style="width:100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('industry')"
|
|
@@ -69,7 +74,8 @@
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="客户类型" prop="clientType"
|
|
|
- :rules="[
|
|
|
+ :rules="[
|
|
|
+ {required: true, message:'请选择客户类型', trigger:'blur'}
|
|
|
]">
|
|
|
<el-select v-model="inputForm.clientType" placeholder="请选择" style="width:100%;">
|
|
|
<el-option
|
|
@@ -85,64 +91,57 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="代表方" prop="deputy"
|
|
|
:rules="[
|
|
|
+ {required: true, message:'请选择代表方', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-select v-model="inputForm.deputy" placeholder="请选择" style="width:100%;">
|
|
|
+ <el-select v-model="inputForm.deputy" placeholder="请选择" multiple style="width:100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('representative')"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
:value="item.value">
|
|
|
- <el-checkbox v-model="item.check" @change="isChecked(item)">
|
|
|
- {{ item.label }}
|
|
|
- </el-checkbox>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="法人代表" prop="lawerPresint"
|
|
|
- :rules="[
|
|
|
- ]">
|
|
|
- <el-input v-model="inputForm.lawerPresint" placeholder="请填写法人代表" ></el-input>
|
|
|
+ <el-form-item label="法人代表" prop="lawerPresint">
|
|
|
+ <el-input v-model="inputForm.lawerPresint" placeholder="请填写法人代表"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="邮政编码" prop="zipCode"
|
|
|
- :rules="[
|
|
|
- ]">
|
|
|
- <el-input v-model="inputForm.zipCode" placeholder="请填写邮政编码" ></el-input>
|
|
|
+ <el-form-item label="邮政编码" prop="zipCode">
|
|
|
+ <el-input v-model="inputForm.zipCode" placeholder="请填写邮政编码"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="传真" prop="fax"
|
|
|
- :rules="[
|
|
|
- ]">
|
|
|
- <el-input v-model="inputForm.fax" placeholder="请填写传真" ></el-input>
|
|
|
+ <el-form-item label="传真" prop="fax">
|
|
|
+ <el-input v-model="inputForm.fax" placeholder="请填写传真"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="公司电话" prop="telephone"
|
|
|
:rules="[
|
|
|
- {required: true, message:'公司电话不能为空', trigger:'blur'}
|
|
|
+ {required: true, message:'请填写公司电话', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-input v-model="inputForm.telephone" placeholder="请填写公司电话" ></el-input>
|
|
|
+ <el-input v-model="inputForm.telephone" placeholder="请填写公司电话"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="公司网址" prop="companyUrl"
|
|
|
- :rules="[
|
|
|
- ]">
|
|
|
- <el-input v-model="inputForm.companyUrl" placeholder="请填写公司网址" ></el-input>
|
|
|
+ <el-form-item label="公司网址" prop="companyUrl">
|
|
|
+ <el-input v-model="inputForm.companyUrl" placeholder="请填写公司网址"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="归属区域" prop="inputForm.areaId">
|
|
|
+ <el-form-item label="归属区域" prop="areaId"
|
|
|
+ :rules="[
|
|
|
+ {required: true, message:'请选择归属区域', trigger:'blur'}
|
|
|
+ ]">
|
|
|
<SelectTree
|
|
|
ref="areaTree"
|
|
|
:props="{
|
|
@@ -160,17 +159,13 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="注册地址" prop="registerAddress"
|
|
|
- :rules="[
|
|
|
- ]">
|
|
|
- <el-input v-model="inputForm.registerAddress" placeholder="请填写注册地址" ></el-input>
|
|
|
+ <el-form-item label="注册地址" prop="registerAddress">
|
|
|
+ <el-input v-model="inputForm.registerAddress" placeholder="请填写注册地址"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="详细地址" prop="address"
|
|
|
- :rules="[
|
|
|
- ]">
|
|
|
+ <el-form-item label="详细地址" prop="address">
|
|
|
<el-input v-model="inputForm.address" placeholder="请填写详细地址"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -178,7 +173,6 @@
|
|
|
|
|
|
<el-form-item label="单位简介" prop="remarks">
|
|
|
<el-input v-model="inputForm.remarks"
|
|
|
- :disabled="isEdit"
|
|
|
type="textarea"
|
|
|
:rows="5"
|
|
|
maxlength="500"
|
|
@@ -187,57 +181,113 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="开户行信息" prop="bankInfons">
|
|
|
- <el-button type="primary" size="mini" @click="addRow(banInfos.length)">新增</el-button>
|
|
|
+ <el-form-item label="开户行信息" prop="bankInfos">
|
|
|
+ <vxe-toolbar>
|
|
|
+ <template #buttons>
|
|
|
+ <vxe-button size="mini" @click="insertEvent('bank')">新增</vxe-button>
|
|
|
+ </template>
|
|
|
+ </vxe-toolbar>
|
|
|
</el-form-item>
|
|
|
- <el-table :data="banInfos" style="width: 90%; margin-left: 5em" ref="tb" :row-class-name="tableRowClassName" @current-change="handleRadioChange">
|
|
|
- <el-table-column prop="ourBank" label="开户银行" >
|
|
|
- <el-input v-model="bankInfo.ourBank" placeholder="开户银行"></el-input>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="bankNumber" label="开户账号" >
|
|
|
- <el-input v-model="bankInfo.bankNumber" placeholder="开户账号"></el-input>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="remarks" label="备注信息" >
|
|
|
- <el-input v-model="bankInfo.remarks" placeholder="备注信息"></el-input>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column fixed="right" label="操作" >
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button @click.native.prevent="deleteRow(scope.$index, banInfos)" type="text" size="small">删除</el-button>
|
|
|
+
|
|
|
+ <vxe-table
|
|
|
+ border
|
|
|
+ show-overflow
|
|
|
+ ref="xTable1"
|
|
|
+ class="vxe-table-element"
|
|
|
+ height="200"
|
|
|
+ :data="bankInfos"
|
|
|
+ style="margin-left: 5em"
|
|
|
+ @cell-click="dbclickFun"
|
|
|
+ @edit-closed=""
|
|
|
+ highlight-current-row
|
|
|
+ :edit-config="{trigger: 'click', mode: 'row', showStatus: true, autoClear: true}"
|
|
|
+ >
|
|
|
+
|
|
|
+ <vxe-table-column field="ourBank" title="开户银行" :edit-render="{type: 'default'}">
|
|
|
+ <template v-slot:edit="scope" >
|
|
|
+ <el-input v-model="scope.row.ourBank" @input="$refs.xTable.updateStatus(scope)"></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column field="bankNumber" title="开户账号" :edit-render="{type: 'default'}">
|
|
|
+ <template v-slot:edit="scope" >
|
|
|
+ <el-input v-model="scope.row.bankNumber" @input="$refs.xTable.updateStatus(scope)"></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column field="remarks" title="备注信息" :edit-render="{type: 'default'}">
|
|
|
+ <template v-slot:edit="scope" >
|
|
|
+ <el-input v-model="scope.row.remarks" @input="$refs.xTable.updateStatus(scope)"></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column label="操作" width="100">
|
|
|
+ <template v-slot="scope">
|
|
|
+ <el-button size="mini" type="danger" @click="removeEvent(scope.row,scope.$rowIndex,'bank')">删除</el-button>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ </vxe-table-column>
|
|
|
+ </vxe-table>
|
|
|
|
|
|
<el-form-item label="联系人信息" prop="linkmanInfos">
|
|
|
- <el-button type="primary" size="mini" @click="addRow1(linkmanInfos.length)">新增</el-button>
|
|
|
- </el-form-item>
|
|
|
- <el-table :data="linkmanInfos" style="width: 90%; margin-left: 5em" ref="tb" :row-class-name="tableRowClassName" @current-change="handleRadioChange">
|
|
|
- <el-table-column prop="name" label="联系人姓名" >
|
|
|
- <el-input v-model="linkmanInfo.ourBank" placeholder="联系人姓名"></el-input>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="office" label="部门" >
|
|
|
- <el-input v-model="linkmanInfo.office" placeholder="部门"></el-input>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="position" label="职务" >
|
|
|
- <el-input v-model="linkmanInfo.position" placeholder="职务"></el-input>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="qq" label="QQ" >
|
|
|
- <el-input v-model="linkmanInfo.qq" placeholder="QQ"></el-input>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="linkPhone" label="联系方式1" >
|
|
|
- <el-input v-model="linkmanInfo.linkPhone" placeholder="联系方式1"></el-input>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="linkMobile" label="联系方式2" >
|
|
|
- <el-input v-model="linkmanInfo.linkMobile" placeholder="联系方式2"></el-input>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="email" label="E-mail" >
|
|
|
- <el-input v-model="linkmanInfo.email" placeholder="E-mail"></el-input>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column fixed="right" label="操作" >
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button @click.native.prevent="deleteRow1(scope.$index, linkmanInfos)" type="text" size="small">删除</el-button>
|
|
|
+ <vxe-toolbar>
|
|
|
+ <template #buttons>
|
|
|
+ <vxe-button size="mini" @click="insertEvent('linkman')">新增</vxe-button>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ </vxe-toolbar>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <vxe-table
|
|
|
+ border
|
|
|
+ show-overflow
|
|
|
+ ref="xTable2"
|
|
|
+ class="vxe-table-element"
|
|
|
+ height="200"
|
|
|
+ :data="linkmanInfos"
|
|
|
+ style="margin-left: 5em"
|
|
|
+ @cell-click="dbclickFun"
|
|
|
+ @edit-closed=""
|
|
|
+ highlight-current-row
|
|
|
+ :edit-config="{trigger: 'click', mode: 'row', showStatus: true, autoClear: true}"
|
|
|
+ >
|
|
|
+
|
|
|
+ <vxe-table-column field="name" title="联系人姓名" :edit-render="{type: 'default'}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.name" @input="$refs.xTable.updateStatus(scope)"></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column field="office" title="部门" :edit-render="{type: 'default'}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.office" @input="$refs.xTable.updateStatus(scope)"></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column field="position" title="职务" :edit-render="{type: 'default'}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.position" @input="$refs.xTable.updateStatus(scope)"></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column field="qq" title="QQ" :edit-render="{type: 'default'}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.qq" @input="$refs.xTable.updateStatus(scope)"></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column field="linkPhone" title="联系方式1" :edit-render="{type: 'default'}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.linkPhone" @input="$refs.xTable.updateStatus(scope)"></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column field="linkMobile" title="联系方式2" :edit-render="{type: 'default'}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.linkMobile" @input="$refs.xTable.updateStatus(scope)"></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column field="email" title="E-mail" :edit-render="{type: 'default'}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.email" @input="$refs.xTable.updateStatus(scope)"></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column label="操作" width="100">
|
|
|
+ <template v-slot="scope">
|
|
|
+ <el-button size="mini" type="danger" @click="removeEvent(scope.row,scope.$rowIndex,'linkman')">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ </vxe-table>
|
|
|
|
|
|
<el-upload ref="upload" style="display: inline-block; margin-left: 5em; :show-header='status'" action=""
|
|
|
:limit="999" :http-request="httpRequest"
|
|
@@ -257,7 +307,7 @@
|
|
|
border="inner"
|
|
|
auto-resize
|
|
|
resizable
|
|
|
- height="50px"
|
|
|
+ height="200px"
|
|
|
:loading="loading"
|
|
|
size="small"
|
|
|
ref="projectTable"
|
|
@@ -281,20 +331,20 @@
|
|
|
<vxe-column title="操作" width="200px" fixed="right" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" icon="el-icon-delete" size="small" v-if="inputForm.permissionFlag&&showVi" @click="deleteMsgById(scope.row, scope.$rowIndex)">删除</el-button>
|
|
|
- <el-button type="text" icon="el-icon-edit" size="small" @click="toHref(scope.row)" :disabled="none">下载</el-button>
|
|
|
+ <el-button type="text" icon="el-icon-edit" size="small" @click="toHref(scope.row)">下载</el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
|
</div>
|
|
|
-
|
|
|
</el-form>
|
|
|
+
|
|
|
<el-image-viewer
|
|
|
v-if="showViewer"
|
|
|
:on-close="closeViewer"
|
|
|
:url-list="[url]"
|
|
|
zIndex="9999"/>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="close()" icon="el-icon-circle-close">关闭</el-button>
|
|
|
+ <el-button size="small" @click="close(),closeXTable()" icon="el-icon-circle-close">关闭</el-button>
|
|
|
<el-button size="small" type="primary" v-if="method != 'view'" @click="doSubmit()" icon="el-icon-circle-check" v-noMoreClick>确定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
@@ -314,9 +364,11 @@
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
+ workClientInfo: '',
|
|
|
+ workClientBank: [],
|
|
|
+ workClientLinkman: [],
|
|
|
radio: 0,
|
|
|
tableData: [],
|
|
|
- //给一个默认行
|
|
|
dataList: [],
|
|
|
dataListNew: [],
|
|
|
title: '',
|
|
@@ -341,7 +393,7 @@
|
|
|
registerAddress: '',
|
|
|
address: ''
|
|
|
},
|
|
|
- banInfos: [],
|
|
|
+ bankInfos: [],
|
|
|
bankInfo: {
|
|
|
ourBank: '',
|
|
|
bankNumber: '',
|
|
@@ -364,7 +416,9 @@
|
|
|
url: '',
|
|
|
rowurl: '',
|
|
|
src: '',
|
|
|
- showVi: true
|
|
|
+ showVi: true,
|
|
|
+ onedit: false,
|
|
|
+ type: ''
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
@@ -427,59 +481,56 @@
|
|
|
this.ossService.findFileList(id).then(({data}) => {
|
|
|
data.forEach((item) => {
|
|
|
item.name = item.attachmentName
|
|
|
- // item.createBy = item.createBy
|
|
|
- // item.createDate = item.createDate
|
|
|
- // item.description = item.description
|
|
|
this.dataList.push(item)
|
|
|
this.dataListNew.push(item)
|
|
|
})
|
|
|
})
|
|
|
this.method = method
|
|
|
this.inputForm = {
|
|
|
- customerName: '',
|
|
|
- projectName: '',
|
|
|
- evaluationObjective: '',
|
|
|
- projectType: '',
|
|
|
- evaluationBaseDate: '',
|
|
|
- evaluationBaseDateUi: '',
|
|
|
- evaluationReportDate: '',
|
|
|
- evaluationReportDateUi: '',
|
|
|
- protocolNum: '',
|
|
|
- documentNum: '',
|
|
|
- projectHead: '',
|
|
|
- waystEvaluation: '',
|
|
|
- fixedAssetsEvaluation: '',
|
|
|
- netAssetsEvaluation: '',
|
|
|
- rentEvaluation: '',
|
|
|
- forensics: '',
|
|
|
- reportCharges: '',
|
|
|
- currentDisposePerson: '',
|
|
|
- isInvoice: '',
|
|
|
- invoiceDate: '',
|
|
|
- invoiceDateUi: '',
|
|
|
- actualCharges: '',
|
|
|
- isContractArchive: '',
|
|
|
- isPapersIntact: '',
|
|
|
- isPapersArchive: '',
|
|
|
- opsAmount: '',
|
|
|
- isOpsReimbursement: '',
|
|
|
- reimbursementAmount: '',
|
|
|
- unreimbursedAmount: '',
|
|
|
- reimbursementNum: '',
|
|
|
- reimbursementDate: '',
|
|
|
- reimbursementDateUi: '',
|
|
|
- evaluationPersonOne: '',
|
|
|
- evaluationPersonTwo: '',
|
|
|
- status: '',
|
|
|
- assessReportMessage: '',
|
|
|
- assessBaseMessage: '',
|
|
|
- invoiceMessage: '',
|
|
|
- isCommissionReimbursement: '',
|
|
|
- itemType: '',
|
|
|
- workAttachments: []
|
|
|
+ name: '',
|
|
|
+ hasUscc: '',
|
|
|
+ uscCode: '',
|
|
|
+ companyType: '',
|
|
|
+ companyIndustry: '',
|
|
|
+ clientType: '',
|
|
|
+ deputy: '',
|
|
|
+ lawerPresint: '',
|
|
|
+ zipCode: '',
|
|
|
+ fax: '',
|
|
|
+ telephone: '',
|
|
|
+ companyUrl: '',
|
|
|
+ areaId: '',
|
|
|
+ registerAddress: '',
|
|
|
+ address: '',
|
|
|
+ bankInfos: [],
|
|
|
+ bankInfo: {
|
|
|
+ ourBank: '',
|
|
|
+ bankNumber: '',
|
|
|
+ remarks: ''
|
|
|
+ },
|
|
|
+ linkmanInfos: [],
|
|
|
+ linkmanInfo: {
|
|
|
+ name: '',
|
|
|
+ office: '',
|
|
|
+ position: '',
|
|
|
+ qq: '',
|
|
|
+ linkPhone: '',
|
|
|
+ linkMobile: '',
|
|
|
+ email: ''
|
|
|
+ },
|
|
|
+ filesArra2: [],
|
|
|
+ fileList: [],
|
|
|
+ isFlag: true,
|
|
|
+ showViewer: false, // 显示查看器
|
|
|
+ url: '',
|
|
|
+ rowurl: '',
|
|
|
+ src: '',
|
|
|
+ showVi: true,
|
|
|
+ type: ''
|
|
|
}
|
|
|
this.inputForm.id = id
|
|
|
if (method === 'add') {
|
|
|
+ this.inputForm.hasUscc = '1'
|
|
|
this.inputForm.permissionFlag = true
|
|
|
this.title = `新建客户信息`
|
|
|
} else if (method === 'edit') {
|
|
@@ -491,20 +542,22 @@
|
|
|
this.visible = true
|
|
|
this.loading = false
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.upload.clearFiles()
|
|
|
+ // this.$refs.upload.clearFiles()
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
if (method === 'edit' || method === 'view') { // 修改或者查看
|
|
|
this.loading = true
|
|
|
this.workClientService.findById(this.inputForm.id).then(({data}) => {
|
|
|
- console.log('findById结果:', data)
|
|
|
- // this.inputForm = this.recover(this.inputForm, data)
|
|
|
- // this.inputForm.evaluationBaseDateUi = data.evaluationBaseDate
|
|
|
- // this.inputForm.evaluationReportDateUi = data.evaluationReportDate
|
|
|
- // this.inputForm.invoiceDateUi = data.invoiceDate
|
|
|
- // this.inputForm.reimbursementDateUi = data.reimbursementDate
|
|
|
- // this.inputForm.permissionFlag = data.permissionFlag
|
|
|
- // this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
- // this.loading = false
|
|
|
+ this.inputForm = this.recover(this.inputForm, data)
|
|
|
+ data.workClientBank.forEach(i => {
|
|
|
+ this.bankInfos.push(i)
|
|
|
+ })
|
|
|
+ data.workClientLinkman.forEach(i => {
|
|
|
+ this.linkmanInfos.push(i)
|
|
|
+ })
|
|
|
+ this.inputForm = data.workClientInfo
|
|
|
+ this.inputForm.permissionFlag = data.permissionFlag
|
|
|
+ this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -668,39 +721,59 @@
|
|
|
str = str.replace(/[^\d^]+/g, '') // 保留数字
|
|
|
return str
|
|
|
},
|
|
|
- tableRowClassName({
|
|
|
- row,
|
|
|
- rowIndex
|
|
|
- }) {
|
|
|
- row.index = rowIndex; //在原有的数据上加一个index
|
|
|
+ tableRowClassName ({row, rowIndex}) {
|
|
|
+ row.index = rowIndex
|
|
|
},
|
|
|
- handleRadioChange(val) {
|
|
|
+ handleRadioChange (val) {
|
|
|
if (val) {
|
|
|
console.log(val)
|
|
|
- this.radio = val.index;
|
|
|
+ this.radio = val.index
|
|
|
}
|
|
|
},
|
|
|
- // 增加一行
|
|
|
- addRow(length) {
|
|
|
- if (this.banInfos == undefined) {
|
|
|
- this.banInfos = new Array();
|
|
|
- }
|
|
|
- this.banInfos.push(this.bankInfo);
|
|
|
+
|
|
|
+ getAllFirm () {
|
|
|
+ this.rankSequenceService.queryAllFirm().then(({data}) => {
|
|
|
+ // 赋值的时候
|
|
|
+ this.bankInfo = JSON.parse(JSON.stringify(data))
|
|
|
+ this.bankInfos = JSON.parse(JSON.stringify(this.bankInfo))
|
|
|
+ })
|
|
|
},
|
|
|
- // 删除一行
|
|
|
- deleteRow(index) {
|
|
|
- this.banInfos.splice(index, 1)
|
|
|
+ // 点击修改
|
|
|
+ dbclickFun (cell) {
|
|
|
+ console.log('firm', this.bankInfo)
|
|
|
+ this.onedit = false
|
|
|
},
|
|
|
- // 增加一行
|
|
|
- addRow1(length) {
|
|
|
- if (this.linkmanInfos == undefined) {
|
|
|
- this.linkmanInfos = new Array();
|
|
|
+ // 删除
|
|
|
+ removeEvent (row, rowIndex, type) {
|
|
|
+ if (type === 'bank') {
|
|
|
+ console.log('rowIndex', rowIndex)
|
|
|
+ this.$refs.xTable1.remove(row)
|
|
|
+ this.bankInfos.splice(rowIndex, 1)
|
|
|
+ }
|
|
|
+ if (type === 'linkman') {
|
|
|
+ console.log('rowIndex', rowIndex)
|
|
|
+ this.$refs.xTable2.remove(row)
|
|
|
+ this.linkmanInfos.splice(rowIndex, 1)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 新增
|
|
|
+ // eslint-disable-next-line no-dupe-keys
|
|
|
+ async insertEvent (type) {
|
|
|
+ if (type === 'bank') {
|
|
|
+ const {row: newRow} = await this.$refs.xTable1.insertAt()
|
|
|
+ this.bankInfos.push(newRow)
|
|
|
+ await this.$refs.xTable.setEditCell(newRow, 'ourBank')
|
|
|
+ }
|
|
|
+ if (type === 'linkman') {
|
|
|
+ const {row: newRow} = await this.$refs.xTable2.insertAt()
|
|
|
+ this.linkmanInfos.push(newRow)
|
|
|
+ await this.$refs.xTable.setEditCell(newRow, 'name')
|
|
|
}
|
|
|
- this.linkmanInfos.push(this.linkmanInfo);
|
|
|
},
|
|
|
- // 删除一行
|
|
|
- deleteRow1(index) {
|
|
|
- this.linkmanInfos.splice(index, 1)
|
|
|
+ // 关闭窗口时调用
|
|
|
+ closeXTable () {
|
|
|
+ this.bankInfos = []
|
|
|
+ this.linkmanInfos = []
|
|
|
}
|
|
|
}
|
|
|
}
|