| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477 |
- <template>
- <div class="addcompany">
- <div class="list">
- <div class="list-row" style="padding-top: 0">
- <div style="height: auto" class="width100">
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">
- <span style="color: red">* </span> 企业名称</view
- >
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.qymc"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view
- class="input_title float_left"
- style="width: 41%; white-space: break-spaces"
- ><span style="color: red">* </span>统一社会信用代码:</view
- >
- <input
- style="color: #777; width: 59%"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.shxydm"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">注册资金(万元):</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.zczj"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">币别</view>
- <picker
- style="float: left; width: 360rpx; height: 40rpx; color: #777"
- @change="getBizhongtype"
- range-key="label"
- :range="dic_SelectList.CURRENCY"
- >
- <div style="width: 315rpx; float: left">
- {{ dic_SelectList.CURRENCY[bizhongIndex].label }}
- </div>
- <img
- class="height40rpx width40rpx float_left"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </picker>
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left"> 注册时间: </view>
- <picker
- style="float: left; width: 360rpx; height: 40rpx; color: #777"
- mode="date"
- :value="form.zcsj"
- @change="getZcsj"
- >
- <div style="width: 315rpx; float: left">
- {{ form.zcsj == "" ? "请选择" : form.zcsj }}
- </div>
- <img
- class="height40rpx width40rpx float_left"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </picker>
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">
- <span style="color: red">* </span> 法定代表人:</view
- >
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.fddbr"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left"> 法人电话 :</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.legalPersonPhone"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">法人邮箱 :</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.frEmail"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">企业联系人</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.qylxr"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">联系人手机:</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.lxdh"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">联系人邮箱:</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.email"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">财务负责人:</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.cwfzr"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left"
- ><span style="color: red">* </span>负责人电话:</view
- >
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.cwfzrdh"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">其他联系方式:</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.otherContact"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">股票代码:</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.shareCertificateCode"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">土地面积:</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.leaseArea"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">注册地址:</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.zcdz"
- />
- </view>
- <!-- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view class="input_title float_left">经营地址:</view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="请输入"
- v-model="form.jydz"
- />
- </view> -->
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date"
- style="display: flex; align-items: center"
- >
- <view class="input_title float_left">
- <span style="color: red">* </span> 主营业务:</view
- >
- <div>
- <div
- style="display: flex"
- v-for="(item, index) in form.jyfwAry"
- :key="index"
- >
- <input
- style="color: #050505; width: 80%"
- class="input_value"
- placeholder="请输入"
- v-model="item.name"
- />
- <van-button
- v-if="index == 0"
- type="default"
- size="mini"
- color="#1f1fbe"
- @click="addJyfw()"
- >添加</van-button
- >
- <van-button
- v-if="index != 0"
- type="default"
- size="mini"
- color="rgba(236, 128, 141, 1)"
- @click="deleteJyfw(index)"
- >删除</van-button
- >
- </div>
- </div>
- </view>
- <view class="width100 mt24rpx list_date height40rpx">
- <view class="input_title float_left" style="width: 52%"
- >营业执照副本:(限1张)</view
- >
- </view>
- <view class="custom-image-box" style="position: relative">
- <van-icon
- v-if="form.YYZZFBZP"
- @click="spliceYYZZFBZP()"
- name="cross"
- style="position: absolute; top: 0; left: 282rpx; font-size: 42rpx"
- />
- <img
- v-if="form.YYZZFBZP"
- @click="chooseYYZZFBZP()"
- :src="BASE_URI + '/FileController/download/' + form.YYZZFBZP"
- style="color: #777; width: 300rpx; height: 260rpx"
- placeholder="请输入"
- />
- <img
- v-else
- @click="chooseYYZZFBZP()"
- src="../../../static/unuploadzhizhao.png"
- style="color: #777; width: 300rpx; height: 260rpx"
- placeholder="请输入"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height300rpxs"
- >
- <view class="input_title float_left">荣誉信息(限6张)</view>
- <textarea
- :maxlength="2000"
- placeholder="请输入"
- v-model="form.honorInformation"
- type="textarea"
- style="
- height: 270rpx;
- background: rgba(249, 249, 249, 1);
- padding: 20rpx;
- width: calc(100% - 40rpx);
- "
- />
- <div
- style="
- background: rgba(249, 249, 249, 1);
- text-align: right;
- padding-right: 10px;
- padding-bottom: 10rpx;
- margi-bottom: 10rpx;
- "
- >
- {{ form.honorInformation.length }}/2000
- </div>
- <view class="custom-image-box" style="margin-top: 20rpx">
- <van-uploader
- :max-count="6"
- @delete="deleteRYXXZP"
- :file-list="form.RYXXZPList"
- @after-read="uploadRYXXZP"
- :show-upload="true"
- />
- </view>
- </view>
- <!-- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height300rpxs"
- style="height: 170rpx"
- >
- <view class="input_title float_left" style="width: 100%"
- >法人身份证</view
- >
- <view class="width100" style="position: relative">
- <van-icon
- v-if="form.FRSFZHZM != '../../../static/idzhengmian.png'"
- @click="spliceFRSFZHZM()"
- name="cross"
- style="
- position: absolute;
- top: 32rpx;
- left: 133rpx;
- font-size: 42rpx;
- "
- />
- <van-icon
- v-if="form.FRSFZHFM != '../../../static/idfanmian.png'"
- @click="spliceFRSFZHFM()"
- name="cross"
- style="
- position: absolute;
- top: 32rpx;
- left: 300rpx;
- font-size: 23px;
- "
- />
- <img
- @click="chooseFRSFZHZM()"
- :src="
- form.FRSFZHZM == '../../../static/idzhengmian.png'
- ? form.FRSFZHZM
- : BASE_URI + '/FileController/download/' + form.FRSFZHZM
- "
- class="idclass margin12rpx float_left"
- placeholder="请输入"
- />
- <img
- @click="chooseFRSFZHFM()"
- :src="
- form.FRSFZHFM == '../../../static/idfanmian.png'
- ? form.FRSFZHFM
- : BASE_URI + '/FileController/download/' + form.FRSFZHFM
- "
- class="idclass margin12rpx float_left"
- placeholder="请输入"
- />
- </view>
- </view> -->
- </div>
- </div>
- <div class="form">
- <div
- class="form_row pdt32 pdb32 border_bottom_ccc width100"
- @click="chosseAboutCompany()"
- >
- <div class="float_left width30 first_title height50rpx">关联企业</div>
- <div
- class="float_left width60 whitespacenowrap first_title height50rpx font28rpx color292d98"
- >
- {{
- form.associationCompanyString
- ? form.associationCompanyString
- : "暂无"
- }}
- </div>
- <img
- class="height40rpx width40rpx float_right"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </div>
- <div
- class="form_row pdt32 pdb32 border_bottom_ccc width100"
- @click="getSelectUserTwo('selectDengjiyuan')"
- >
- <div class="float_left width30 first_title height50rpx">招商经理</div>
- <div
- class="float_left width60 whitespacenowrap first_title height50rpx font28rpx color292d98"
- >
- {{ form.investmentManagerString }}
- </div>
- <img
- class="height40rpx width40rpx float_right"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </div>
- <div class="form_row pdt32 pdb32 border_bottom_ccc width100">
- <div class="float_left width30 first_title height50rpx">入驻类型</div>
- <div
- class="float_left width60 whitespacenowrap first_title height50rpx font28rpx color292d98"
- >
- <picker
- style="float: left; width: 300rpx; height: 40rpx; color: #777"
- @change="getSettleInType"
- range-key="label"
- :range="dic_SelectList.MNP_BUILDING_TYPE"
- >
- <span style="color: #292d98">
- {{ dic_SelectList.MNP_BUILDING_TYPE[settleInTypeIndex].label }}
- </span>
- </picker>
- </div>
- <img
- class="height40rpx width40rpx float_right"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </div>
- <!-- <div class="form_row pdt32 pdb32 border_bottom_ccc width100">
- <div class="float_left width30 first_title height50rpx">入驻类型</div>
- <div
- class="float_left width60 whitespacenowrap first_title height50rpx font28rpx color292d98"
- >
- <picker
- style="float: left; width: 300rpx; height: 40rpx; color: #777"
- @change="getSettleInType"
- range-key="label"
- :range="dic_SelectList.MNP_BUILDING_TYPE"
- >
- <span style="color: #292d98">
- {{ dic_SelectList.MNP_BUILDING_TYPE[settleInTypeIndex].label }}
- </span>
- </picker>
- </div>
- <img
- class="height40rpx width40rpx float_right"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </div> -->
- </div>
- <div class="form">
- <div class="height50rpx first_title">附件:</div>
- <div class="fujian">
- <van-uploader
- accept="all"
- :max-count="6"
- :file-list="form.fileList"
- @after-read="uploadFileList"
- :show-upload="false"
- >
- <van-button type="primary" size="small" style="margin-bottom: 15rpx"
- >文件选择</van-button
- >
- </van-uploader>
- <div
- @click="openFile(item)"
- class="file"
- v-for="(item, index) in form.fileList"
- :key="index"
- >
- <div class="filename">{{ item.name }}</div>
- <uni-icons
- type="closeempty"
- size="20"
- @click="deleteFileList(index)"
- ></uni-icons>
- </div>
- </div>
- </div>
- <div class="form">
- <div class="first_title" style="height: auto">关联社会载体:</div>
- <div
- class="form_row pdt32 pdb32 border_bottom_ccc width100"
- style="display: flex; height: auto; align-items: center"
- >
- <div class="width30 first_title" style="height: auto">自有:</div>
- <div
- @click="jumpChosseHouse('自有')"
- style="width: 65%"
- class="float_left font28rpx color292d98"
- >
- {{
- form.socialCarrierStrName ? form.socialCarrierStrName : "请选择"
- }}
- </div>
- <img
- class="height40rpx width40rpx"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </div>
- <div
- class="form_row pdt32 pdb32 border_bottom_ccc width100"
- style="display: flex; height: auto; align-items: center"
- >
- <div class="width30 first_title" style="height: auto">租赁:</div>
- <div
- @click="jumpChosseHouse('租赁')"
- style="width: 65%"
- class="float_left font28rpx color292d98"
- >
- {{
- form.socialCarrierLeaseStrName
- ? form.socialCarrierLeaseStrName
- : "请选择"
- }}
- </div>
- <img
- class="height40rpx width40rpx"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </div>
- <div
- class="form_row pdt32 pdb32 border_bottom_ccc width100"
- style="display: flex; height: auto; align-items: center"
- >
- <div class="width30 first_title" style="height: auto">未确定:</div>
- <div
- @click="jumpChosseHouse('未确定')"
- style="width: 65%"
- class="float_left font28rpx color292d98"
- >
- {{
- form.socialCarrierNoTrueName
- ? form.socialCarrierNoTrueName
- : "请选择"
- }}
- </div>
- <img
- class="height40rpx width40rpx"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </div>
- <!-- <div
- style="height: 45px; width: 500px; background: black"
-
- ></div> -->
- </div>
- <div class="form">
- <div class="first_title" style="height: auto">关联自有载体:</div>
- <!-- <div
- class="form_row pdt32 pdb32 border_bottom_ccc width100"
- style="display: flex; height: auto; align-items: center"
- >
- <div class="width30 first_title" style="height: auto">
- 有合同
- <br />
- <van-button
- type="default"
- size="mini"
- color="#1f1fbe"
- @click="jumpAddZati()"
- >添加</van-button
- >
- </div>
- <div
- @click="jumpChosseHouse('有合同')"
- style="width: 65%"
- class="float_left font28rpx color292d98"
- >
- {{ form.socialCarrierName ? form.socialCarrierName : "请选择载体" }}
- </div>
- <img
- class="height40rpx width40rpx"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </div> -->
- <div
- class="form_row pdt32 pdb32 border_bottom_ccc width100"
- style="display: flex; height: auto; align-items: center"
- >
- <div class="width30 first_title" style="height: auto">无合同:</div>
- <div
- @click="jumpChosseHouse('无合同')"
- style="width: 65%"
- class="float_left font28rpx color292d98"
- >
- {{
- form.contractCarrierNoStrName
- ? form.contractCarrierNoStrName
- : "请选择"
- }}
- </div>
- <img
- class="height40rpx width40rpx"
- src="../../../static/mine/youjiantou.png"
- alt=""
- />
- </div>
- <!-- <div
- style="height: 45px; width: 500px; background: black"
-
- ></div> -->
- </div>
- <div class="save_button" @click="save()">保存</div>
- </div>
- <tki-tree
- ref="selectDengjiyuan"
- :multiple="true"
- :range="range"
- :selectParent="true"
- :foldAll="true"
- rangeKey="name"
- idKey="id"
- @confirm="selectDengjiyuan"
- >
- </tki-tree>
- <uni-file-picker v-show="false" ref="files" :auto-upload="false" />
- <multiple-select
- v-model="show"
- @getCompanyAll="getCompanyAll"
- :data="companyAllList"
- :default-selected="defaultSelected"
- @confirm="confirm"
- ref="multipleSelect"
- />
- </div>
- </template>
-
- <script>
- const form = {
- socialCarrierLeaseStr: "",
- socialCarrierLeaseStrName: "",
- socialCarrierNoTrue: "",
- socialCarrierNoTrueName: "",
- socialCarrierStr: "",
- socialCarrierName: "",
- socialCarrierStrName: "",
- settleInType: null,
- FRSFZHZM: "../../../static/idzhengmian.png",
- FRSFZHFM: "../../../static/idfanmian.png",
- YYZZFBZP: "",
- investmentManagerString: "",
- investmentManager: "",
- associationCompanyString: "",
- associationCompany: "",
- zcsj: "",
- createdBy: "",
- projectType: 1,
- successTime: "",
- companyId: null,
- xiangguanren: "",
- xinxidengji: "",
- xiangmudengji: "",
- relevantUserId: "",
- manageMessengerId: "",
- xiangmudengjiIds: "",
- genzongbumen: "",
- genzongbumenIds: "",
- xiangguanbumen: "",
- relevantDepId: "",
- fangyuanlistIds: "",
- zaitilistIds: "",
- projectManager: "",
- managerPhone: "",
- projectName: "",
- projectInfo: "",
- projectRemark: "",
- honorInformation: "",
- jyfwAry: [{ name: "" }],
- RYXXZPList: [],
- RYXXZP: "",
- fileList: [],
- file: "",
- frEmail: "",
- zscqgs: "",
- fddbr: "",
- };
- import multipleSelect from "./momo-multipleSelect";
- import tkiTree from "../../subPackages/components/tkitree/tkitree.vue";
- import tools from "../../subPackages/components/tkitree/tools.js";
- import {
- companyExamineAdd,
- getSelectUserTwo,
- getSelectDeptTwo,
- getByCodes,
- getCompanyAll,
- getUserLocalStorageInfo,
- findRoomInfoListByIds,
- } from "@/js_sdk/http";
- export default {
- components: {
- multipleSelect,
- tkiTree,
- },
- data() {
- return {
- treeData6: [],
- treeData4: [],
- BASE_URI: this.$constant.BASE_URI,
- companyAllList: [],
- defaultSelected: [],
- show: false,
- bizhongIndex: 0,
- settleInTypeIndex: 0,
- range: [],
- zaitiList: [],
- imageStyles: {},
- listStyles: {},
- fileLists: [],
- activeNames: [],
- StatusBar: 0,
- dic_key: [
- "PROPERTY_NATURE",
- "HOUSE_USAGE",
- "CURRENCY",
- "MNP_BUILDING_TYPE",
- ],
- dic_SelectList: {},
- search: {
- pageSize: 10,
- pageNum: 1,
- },
- zaitikey: "",
- form: { ...form },
- companyAllList: [],
- value: ["0"],
- modeIndex: -1,
- styleIndex: -1,
- current: 0,
- mode: "default",
- dotsStyles: {},
- swiperDotIndex: 0,
- };
- },
- onLoad() {
- this.getByCodes();
- this.getCompanyAll();
- },
- onShow() {
- let that = this;
- uni.$on("getuser", function (e) {
- console.log(e);
- findRoomInfoListByIds(e.result.join(",")).then((data) => {
- let roomString = data.map((e) => {
- return e.roomString;
- });
- let ids = data.map((e) => {
- return e.id;
- });
- if (e.housetype == "自有") {
- that.form.socialCarrierStr = ids.join(",");
- that.form.socialCarrierStrName = roomString.join(",");
- }
- if (e.housetype == "租赁") {
- that.form.socialCarrierLeaseStr = ids.join(",");
- that.form.socialCarrierLeaseStrName = roomString.join(",");
- console.log(roomString);
- }
- if (e.housetype == "未确定") {
- that.form.socialCarrierNoTrue = ids.join(",");
- that.form.socialCarrierNoTrueName = roomString.join(",");
- console.log(roomString);
- }
- if (e.housetype == "无合同") {
- that.form.contractCarrierNoStr = ids.join(",");
- that.form.contractCarrierNoStrName = roomString.join(",");
- console.log(
- "that.form.contractCarrierNoStr",
- that.form.contractCarrierNoStr
- );
- console.log(
- "that.form.contractCarrierNoStrName",
- that.form.contractCarrierNoStrName
- );
- }
- if (e.housetype == "有合同") {
- that.form.socialCarrierStr = ids.join(",");
- that.form.socialCarrierName = roomString.join(",");
- }
- that.form = { ...that.form };
- this.$forceUpdate();
- });
- });
- },
- methods: {
- openFile(item) {
- uni.downloadFile({
- url: item.url,
- success: function (res) {
- var filePath = res.tempFilePath;
- console.log("下载文件:", res);
- uni.openDocument({
- filePath: filePath,
- success: function (res) {
- console.log("打开文档成功");
- },
- fail: function (res) {
- console.log("uni.openDocument,fail");
- console.log(res);
- },
- complete: function (res) {
- console.log("uni.openDocument,complete");
- console.log(res);
- },
- });
- },
- fail: function (res) {
- console.log("uni.downloadFile,fail");
- console.log(res);
- },
- complete: function (res) {
- console.log("uni.downloadFile,complete");
- console.log(res);
- },
- });
- console.log(item);
- },
- jumpChosseHouse(e) {
- uni.navigateTo({
- url: "/pages/subPackages/chosseHouse/chosseHouse?housetype=" + e,
- });
- },
- async openZaitiTree() {
- this.$refs.zaitiTree._show();
- },
- jumpAddZati() {
- uni.navigateTo({
- url: "/pages/subPackages/addZaiti/index",
- });
- },
- addJyfw() {
- console.log(this.form.jyfwAry);
- this.form.jyfwAry = [...this.form.jyfwAry, { name: "" }];
- },
- deleteJyfw(i) {
- this.form.jyfwAry.splice(i, 1);
- },
- async selectZaiti(e) {
- console.log(e);
- let ids = [];
- let names = [];
- for (let i = 0; i < e.length; i++) {
- ids.push(e[i].id);
- names.push(e[i].label);
- }
- this.form.socialCarrierStr = ids.join(",");
- this.form.socialCarrierName = names.join(",");
- },
- selectZaiti4(e) {
- console.log(e);
- let ids = [];
- let names = [];
- for (let i = 0; i < e.length; i++) {
- ids.push(e[i].id);
- names.push(e[i].label);
- }
- this.form[this.zaitiKey] = ids.join(",");
- this.form[this.zaitiName] = names.join(",");
- },
- selectZaiti1(e) {
- console.log(e);
- let ids = [];
- let names = [];
- for (let i = 0; i < e.length; i++) {
- if (e[i].id) {
- ids.push(e[i].id);
- }
- names.push(e[i].label);
- }
- this.form[this.zaitiKey] = ids.join(",");
- this.form[this.zaitiName] = names.join(",");
- },
- chooseFRSFZHFM() {
- let that = this;
- if (that.form.FRSFZHFM == "../../../static/idfanmian.png") {
- uni.chooseImage({
- count: 1, //默认9
- sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
- success: function (res) {
- uni.uploadFile({
- url: that.$constant.BASE_URI + "/wx/fileController/upload",
- filePath: res.tempFilePaths[0],
- name: "file",
- formData: { user: "test" },
- success(res) {
- // 上传完成需要更新 fileList
- let data = JSON.parse(res.data);
- that.form.FRSFZHFM = data.data[0];
- },
- fail(res) {},
- });
- },
- });
- } else {
- uni.previewImage({
- urls: [
- this.BASE_URI + "/FileController/download/" + that.form.FRSFZHFM,
- ],
- longPressActions: {
- itemList: ["发送给朋友", "保存图片", "收藏"],
- success: function (data) {},
- fail: function (err) {},
- },
- });
- }
- },
- spliceFRSFZHZM() {
- this.form.FRSFZHZM = "../../../static/idzhengmian.png";
- },
- spliceFRSFZHFM() {
- this.form.FRSFZHFM = "../../../static/idfanmian.png";
- },
- chooseFRSFZHZM() {
- let that = this;
- if (that.form.FRSFZHZM == "../../../static/idzhengmian.png") {
- uni.chooseImage({
- count: 1, //默认9
- sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
- success: function (res) {
- uni.uploadFile({
- url: that.$constant.BASE_URI + "/wx/fileController/upload",
- filePath: res.tempFilePaths[0],
- name: "file",
- formData: { user: "test" },
- success(res) {
- // 上传完成需要更新 fileList
- let data = JSON.parse(res.data);
- that.form.FRSFZHZM = data.data[0];
- },
- fail(res) {},
- });
- },
- });
- } else {
- uni.previewImage({
- urls: [
- this.BASE_URI + "/FileController/download/" + that.form.FRSFZHZM,
- ],
- longPressActions: {
- itemList: ["发送给朋友", "保存图片", "收藏"],
- success: function (data) {},
- fail: function (err) {},
- },
- });
- }
- },
- deleteRYXXZP(event) {
- this.form.RYXXZPList.splice(event.detail.index, 1);
- },
- deleteFileList(event) {
- this.form.fileList.splice(event.detail.index, 1);
- },
- uploadFileList(event) {
- let that = this;
- that.form.fileList = !that.form.fileList ? [] : that.form.fileList;
- const { file } = event.detail;
- uni.uploadFile({
- url: that.$constant.BASE_URI + "/wx/fileController/upload2",
- filePath: file.url,
- name: "file",
- formData: { user: "test" },
- success(res) {
- // 上传完成需要更新 fileList
- let data = JSON.parse(res.data);
- that.form.fileList.push({
- name: JSON.parse(data.data[0]).name,
- size: JSON.parse(data.data[0]).size,
- imgUrl: "/FileController/download/" + data.data[1],
- id: data.data[1],
- url:
- that.$constant.BASE_URI +
- "/FileController/download/" +
- data.data[1],
- });
- },
- fail(res) {},
- });
- },
- uploadRYXXZP(event) {
- let that = this;
- const { file } = event.detail;
- uni.uploadFile({
- url: that.$constant.BASE_URI + "/wx/fileController/upload",
- filePath: file.url,
- name: "file",
- formData: { user: "test" },
- success(res) {
- // 上传完成需要更新 fileList
- let data = JSON.parse(res.data);
- that.form.RYXXZPList.push({
- imgUrl: "/FileController/download/" + data.data[0],
- id: data.data[0],
- url:
- that.$constant.BASE_URI +
- "/FileController/download/" +
- data.data[0],
- isImage: true,
- });
- },
- fail(res) {},
- });
- },
- spliceYYZZFBZP() {
- this.form.YYZZFBZP = null;
- },
- chooseYYZZFBZP() {
- let that = this;
- if (!that.form.YYZZFBZP) {
- uni.chooseImage({
- count: 1, //默认9
- sizeType: "original", //可以指定是原图还是压缩图,默认二者都有
- success: function (res) {
- uni.uploadFile({
- url: that.$constant.BASE_URI + "/wx/fileController/upload",
- filePath: res.tempFilePaths[0],
- name: "file",
- formData: { user: "test" },
- success(res) {
- // 上传完成需要更新 fileList
- let data = JSON.parse(res.data);
- that.form.YYZZFBZP = data.data[0];
- },
- fail(res) {},
- });
- },
- });
- } else {
- uni.previewImage({
- urls: [
- this.BASE_URI + "/FileController/download/" + that.form.YYZZFBZP,
- ],
- longPressActions: {
- itemList: ["发送给朋友", "保存图片", "收藏"],
- success: function (data) {},
- fail: function (err) {},
- },
- });
- }
- },
- confirm(e) {
- var associationCompanyString = [];
- var associationCompany = [];
- for (var p in e) {
- associationCompanyString.push(e[p].label);
- associationCompany.push(e[p].value);
- }
- this.form.associationCompanyString = associationCompanyString.join(",");
- this.form.associationCompany = associationCompany.join(",");
- },
- chosseAboutCompany() {
- this.show = true;
- this.$refs.multipleSelect.getAllList(this.companyAllList);
- },
- async getCompanyAll(e) {
- let name = e ? e : "";
- let companyAllList = await getCompanyAll(name);
- this.companyAllList = companyAllList.map((e) => {
- return {
- label: e.qymc,
- value: e.id,
- };
- });
- this.$refs.multipleSelect.getAllList(this.companyAllList);
- },
- async getByCodes() {
- let data = await getByCodes(JSON.stringify(this.dic_key));
- this.dic_SelectList = this.$common.handleDicList(data);
- this.form.settleInType = this.dic_SelectList.MNP_BUILDING_TYPE[0].value;
- this.form.currency = this.dic_SelectList.CURRENCY[0].value;
- this.bizhongIndex = 0;
- },
- getjieduan(e) {},
- getZcsj: function (e) {
- this.form.zcsj = e.detail.value;
- },
- async addyixiang() {
- let data = await addyixiang(this.form);
- if (data.code == 200) {
- uni.navigateBack({});
- }
- },
- getQymc(index) {
- let that = this;
- that.form.companyId = that.companyList[index].id;
- return that.companyList[index].qymc;
- },
- getBizhongtype(e) {
- let that = this;
- that.form.currency = that.dic_SelectList.CURRENCY[e.detail.value].value;
- that.bizhongIndex = e.detail.value;
- },
- getSettleInType(e) {
- let that = this;
- that.form.settleInType =
- that.dic_SelectList.MNP_BUILDING_TYPE[e.detail.value].value;
- that.settleInTypeIndex = e.detail.value;
- },
- async findCompanyList() {
- let data = await findCompanyList();
- this.companyList = data;
- this.companyList[0].id;
- },
- zaitiListSplice(index) {
- this.zaitiList.splice(index, 1);
- },
- // /wx/SaleController/findRoomInfoListByIds
- async findRoomInfoListByIds() {
- let data = await findRoomInfoListByIds(ids);
- return data;
- },
- xiangmudengji(e) {
- var names = [];
- var ids = [];
- for (var p in e) {
- if (e[p].type == "u") {
- names.push(e[p].name);
- ids.push(e[p].id);
- }
- }
- this.form.xiangmudengji = names.join(",");
- this.form.xiangmudengjiIds = ids.join(",");
- },
- selectGenzongDep(e) {
- var names = [];
- var ids = [];
- for (var p in e) {
- names.push(e[p].name);
- ids.push(e[p].id);
- }
- this.form.genzongbumen = names.join(",");
- this.form.genzongbumenIds = ids.join(",");
- },
- selectXiangguanDep(e) {
- var names = [];
- var ids = [];
- for (var p in e) {
- names.push(e[p].name);
- ids.push(e[p].id);
- }
- this.form.xiangguanbumen = names.join(",");
- this.form.relevantDepId = ids.join(",");
- },
- selectDengjiyuan(e) {
- var names = [];
- var ids = [];
- for (var p in e) {
- if (e[p].type == "u") {
- names.push(e[p].name);
- ids.push(e[p].id);
- }
- }
- this.form.investmentManagerString = names.join(",");
- this.form.investmentManager = ids.join(",");
- },
- userSelectorConfirm(e) {
- var names = [];
- var ids = [];
- for (var p in e) {
- if (e[p].type == "u") {
- names.push(e[p].name);
- ids.push(e[p].id);
- }
- }
- this.form.xiangguanren = names.join(",");
- this.form.relevantUserId = ids.join(",");
- },
- // 取消回调事件
- treeCancel(e) {},
- // openZaitiTree
- async getSelectUserTwo(key) {
- let that = this;
- let departmentList = await getSelectUserTwo("");
- that.range = tools.transData(
- departmentList.data,
- "id",
- "parentid",
- "children"
- );
- that.$refs[key]._show();
- },
- async getSelectDeptTwo(key) {
- let that = this;
- let departmentList = await getSelectDeptTwo("");
- that.range = tools.transData(
- departmentList.data,
- "id",
- "parentid",
- "children"
- );
- that.$refs[key]._show();
- },
- binddata() {},
- submit() {},
- checkFormValue() {
- let that = this;
- // if (that.form.zcsj == "") {
- // that.$showToast("请选择注册时间");
- // return false;
- // }
- if (that.form.fddbr == "" || !that.form.fddbr) {
- that.$showToast("请输入法人电话");
- return false;
- }
- if (that.form.fddbr == "" || !that.form.fddbr) {
- that.$showToast("请输入法定代表人");
- return false;
- }
- if (that.form.jyfwAry.length == 0 || !that.form.fddbr) {
- that.$showToast("请输入主营业务");
- return false;
- }
- if (that.form.qymc == "" || !that.form.qymc) {
- that.$showToast("请输入企业名称");
- return false;
- }
- if (that.form.shxydm == "" || !that.form.shxydm) {
- that.$showToast("请输入社会统一信用代码");
- return false;
- }
- if (that.form.cwfzrdh == "" || !that.form.cwfzrdh) {
- that.$showToast("请输入负责人电话");
- return false;
- }
- return true;
- },
- async save() {
- let that = this;
- if (!this.checkFormValue()) return; //判断一下有没有没填的字段
- let RYXXZP = [];
- let fileList = [];
- let jyfwAry = [];
- if (that.form.RYXXZPList.length > 0) {
- RYXXZP = that.form.RYXXZPList.map((e) => e.id);
- }
- if (that.form.fileList.length > 0) {
- fileList = that.form.fileList.map((e) => e.id);
- }
- if (that.form.jyfwAry.length > 0) {
- jyfwAry = that.form.jyfwAry.map((e) => e.name);
- }
- that.form.ryxxzp = RYXXZP.toString();
- that.form.file = fileList.toString();
- let zm = that.form.FRSFZHZM == form.FRSFZHZM ? "" : that.form.FRSFZHZM;
- let fm = that.form.FRSFZHFM == form.FRSFZHFM ? "" : that.form.FRSFZHFM;
- that.form.frsfzh = zm + "," + fm;
- that.form.jyfw = jyfwAry.join(",");
- that.form.yyzzfbzp = that.form.YYZZFBZP;
- that.form.czr = getUserLocalStorageInfo().user.truename;
- that.form.czrid = getUserLocalStorageInfo().user.id;
- let data = await companyExamineAdd(that.form);
- if (data.code == 200) {
- that.$showToast("新增成功");
- uni.navigateBack({});
- } else {
- that.$showToast(data.msg);
- }
- },
- chossseFile() {
- this.$refs.files.upload();
- },
- onChange(event) {
- this.activeNames = event.detail;
- },
- },
- };
- </script>
- <style scoped lang="scss" scpoed>
- .save_button {
- width: calc(100% - 64rpx);
- margin: 64rpx 32rpx 0 32rpx;
- background: #1d18bc;
- border-radius: 50rpx;
- height: 88rpx;
- color: white;
- text-align: center;
- line-height: 88rpx;
- }
- .form {
- width: calc(100% - 64rpx);
- background: #ffffff;
- padding: 32rpx;
- margin-top: 64rpx;
- .label {
- height: 53rpx;
- line-height: 53rpx;
- }
- }
- .form_row {
- height: 40rpx;
- font-weight: 400;
- font-size: 24rpx;
- }
- .zaiti_list {
- width: 100%;
- height: 50rpx;
- line-height: 50rpx;
- }
- .idclass {
- width: 147rpx;
- height: 100rpx;
- }
- .dengjibutton {
- margin-top: 24rpx;
- margin-left: 60rpx;
- margin-right: 60rpx;
- width: calc(100% - 120rpx);
- height: 60rpx;
- text-align: center;
- background: #1d18bc;
- color: white;
- line-height: 60rpx;
- }
- .addcompany {
- margin-bottom: 200rpx;
- }
- .addcompany {
- .detailstitle {
- height: 42rpx;
- font-size: 30rpx;
- font-weight: 500;
- color: #333333;
- padding-bottom: 16rpx;
- }
- .typestitle {
- height: 42rpx;
- font-size: 24rpx;
- font-weight: 500;
- padding-bottom: 16rpx;
- margin-bottom: 16rpx;
- }
- }
- </style>
- <style lang="scss">
- .fujian {
- .van-uploader__preview {
- display: none;
- }
- }
- .file {
- display: flex;
- width: 100%;
- flex: 1;
- font-size: 14px;
- color: #666;
- /* margin-right: 25px; */
- word-break: break-all;
- word-wrap: break-word;
- margin-bottom: 15rpx;
- align-items: center;
- justify-content: space-between;
- }
- .filename {
- width: 80%;
- overflow: hidden;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- ::v-deep .is-open + .uni-collapse-item__wrap {
- height: auto !important;
- }
- ::v-deep .uni-collapse-item__wrap-content {
- height: auto !important;
- }
- .pageconfig {
- background: #ffffff;
- padding: 32rpx;
- }
- .input_title {
- width: 40%;
- font-size: 28rpx;
- height: 40rpx;
- line-height: 40rpx;
- color: #333333;
- }
- .input_value {
- width: 60%;
- font-size: 28rpx;
- height: 40rpx;
- line-height: 40rpx;
- color: #777777;
- }
- .uni-collapse-item__title-box {
- padding: 0 !important;
- }
- .uni-collapse-item__title-text {
- color: #1d18bc !important;
- font-size: 32rpx !important;
- }
- </style>
- <style lang="scss">
- .example-body {
- padding: 10px;
- padding-top: 0;
- }
- .custom-image-box {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- }
- .text {
- font-size: 14px;
- color: #333;
- }
- .uni-file-picker__item {
- display: none;
- }
- .uploadbutton {
- width: 162rpx;
- height: 44rpx;
- }
- </style>
|