123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158 |
- <template>
- <div class="housedetailsedit">
- <div class="list">
- <div class="list-row" style="padding-top: 0; padding-bottom: 500rpx">
- <uni-collapse v-model="value" style="width: 100%">
- <uni-collapse-item title="基础信息">
- <div style="height: auto">
- <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.qymc"
- />
- </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.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">
- {{
- bizhongIndex == null
- ? "请选择"
- : 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 == null
- ? "请选择"
- : 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">法定代表人:</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.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.frEmail"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date"
- style="height: 194rpx"
- >
- <view class="input_title">法人身份证:</view>
- <view class="width100" style="position: relative">
- <van-icon
- v-if="
- form.frsfzh_zhenmian != '../../../static/idzhengmian.png'
- "
- @click="splicefrsfzh_zhenmian()"
- name="cross"
- style="
- position: absolute;
- top: -5rpx;
- left: 133rpx;
- font-size: 42rpx;
- "
- />
- <van-icon
- v-if="
- form.frsfzh_fanmian != '../../../static/idfanmian.png'
- "
- @click="splicefrsfzh_fanmian()"
- name="cross"
- style="
- position: absolute;
- top: -5rpx;
- left: 300rpx;
- font-size: 23px;
- "
- />
- <img
- @click="choosefrsfzh_zhenmian()"
- :src="
- form.frsfzh_zhenmian == '../../../static/idzhengmian.png'
- ? form.frsfzh_zhenmian
- : BASE_URI +
- '/FileController/download/' +
- form.frsfzh_zhenmian
- "
- class="idclass margin12rpx float_left"
- placeholder="请输入"
- />
- <img
- @click="choosefrsfzh_fanmian()"
- :src="
- form.frsfzh_fanmian == '../../../static/idfanmian.png'
- ? form.frsfzh_fanmian
- : BASE_URI +
- '/FileController/download/' +
- form.frsfzh_fanmian
- "
- class="idclass margin12rpx float_left"
- placeholder="请输入"
- />
- </view>
- </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">负责人电话:</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>
- <picker
- style="float: left; width: 300rpx; height: 40rpx; color: #777"
- @change="getSettleInType"
- range-key="label"
- :range="dic_SelectList.MNP_BUILDING_TYPE"
- >
- <span>
- {{
- settleInTypeIndex != -1
- ? dic_SelectList.MNP_BUILDING_TYPE[settleInTypeIndex]
- .label
- : "请选择"
- }}
- </span>
- </picker>
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height40rpx"
- >
- <view
- class="input_title float_left"
- @click="getSelectUserTwo('selectDengjiren')"
- >招商经理:</view
- >
- <input
- @click="getSelectUserTwo('selectDengjiren')"
- disabled="true"
- style="color: #777"
- class="input_value float_left"
- placeholder="暂无"
- v-model="form.investmentManagerName"
- />
- </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.area"
- />
- </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 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 list_date height300rpx">
- <view class="input_title mb16rpx">经营范围:</view>
- <textarea
- v-model="form.jyfw"
- :maxlength="2000"
- placeholder="请输入"
- type="textarea"
- style="
- height: 200rpx;
- 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;
- "
- >
- {{ form.jyfw.length }}/2000
- </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 != '../../../static/unuploadzhizhao.png'"
- @click="spliceYYZZFBZP()"
- name="cross"
- style="
- position: absolute;
- top: 0;
- left: 282rpx;
- font-size: 42rpx;
- "
- />
- <img
- @click="chooseYYZZFBZP()"
- :src="
- form.YYZZFBZP == '../../../static/unuploadzhizhao.png'
- ? form.YYZZFBZP
- : BASE_URI + '/FileController/download/' + form.YYZZFBZP
- "
- style="color: #777; width: 300rpx; height: 260rpx"
- placeholder="请输入"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
- >
- <view class="input_title float_left height80rpx">
- 全年研发投入:
- <br />
- (万元)
- </view>
- <input
- style="color: #777; height: 80rpx; line-height: 80rpx"
- class="input_value float_left"
- placeholder="暂无"
- v-model="form.rdInvestment"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
- >
- <view class="input_title float_left height80rpx"
- >全年技改投入:<br />(万元)</view
- >
- <input
- style="color: #777; height: 80rpx; line-height: 80rpx"
- class="input_value float_left"
- placeholder="暂无"
- v-model="form.jgInvestment"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
- >
- <view class="input_title float_left height80rpx"
- >拥有知识产权<br />(个数)</view
- >
- <input
- style="color: #777; height: 80rpx; line-height: 80rpx"
- class="input_value float_left"
- placeholder="暂无"
- v-model="form.zscqgs"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
- >
- <view class="input_title float_left"
- >四技合同金额:<br />(技术开发)(万元)</view
- >
- <input
- style="color: #777; height: 80rpx; line-height: 80rpx"
- class="input_value float_left"
- placeholder="暂无"
- v-model="form.fourOpennessAmount"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
- >
- <view class="input_title float_left"
- >四技合同金额:<br />(转让)(万元)</view
- >
- <input
- style="color: #777; height: 80rpx; line-height: 80rpx"
- class="input_value float_left"
- placeholder="暂无"
- v-model="form.fourTransferenceAmount"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
- >
- <view class="input_title float_left"
- >四技合同金额:<br />(服务)(万元)</view
- >
- <input
- style="color: #777; height: 80rpx; line-height: 80rpx"
- class="input_value float_left"
- placeholder="暂无"
- v-model="form.fourServiceAmount"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date height80rpx"
- >
- <view class="input_title float_left">
- 四技合同金额:<br />(咨询)(万元)
- </view>
- <input
- style="color: #777"
- class="input_value float_left"
- placeholder="暂无"
- v-model="form.fourConsultAmount"
- />
- </view>
- <view
- class="width100 mt24rpx padb24rpx border_bottom_ccc list_date"
- style="display: flex"
- @click="chosseAboutCompany()"
- >
- <view class="input_title float_left">关联企业:</view>
- <div style="color: #777; width: 60%" class="float_left">
- {{ form.associationCompanyName }}
- </div>
- </view>
- </div>
- </uni-collapse-item>
- </uni-collapse>
- </div>
- </div>
- <view class="‘btn-view‘">
- <button class="btn" @click="edit()">编辑</button>
- </view>
- <handle-report ref="handleReport" @changeActive="changeActive" />
- <select-dengjiren
- ref="selectDengjiren"
- :multiple="true"
- :range="range"
- :selectParent="true"
- :foldAll="true"
- rangeKey="name"
- idKey="id"
- @xiangmudengji="selectDengjiren"
- >
- </select-dengjiren>
- <multiple-select
- v-model="show"
- @getCompanyAll="getCompanyAll"
- :data="companyAllList"
- :default-selected="defaultSelected"
- @confirm="confirm"
- ref="multipleSelect"
- ></multiple-select>
- </div>
- </template>
-
- <script>
- const form = {
- id: "",
- YYZZFBZP: "../../../static/unuploadzhizhao.png",
- FRSFZHZM: "../../../static/idzhengmian.png",
- FRSFZHFM: "../../../static/idfanmian.png",
- frsfzh_zhenmian: "../../../static/idzhengmian.png",
- frsfzh_fanmian: "../../../static/idfanmian.png",
- RYXXZPList: [],
- id: "",
- qymc: "",
- shxydm: "",
- zczj: "",
- fddbr: "",
- lxdh: "",
- frsfzh: "",
- qylxr: "",
- lxdh: "",
- email: "",
- cwfzr: "",
- cwfzrdh: "",
- investmentManagerName: "",
- investmentManager: "",
- area: "",
- zcdz: "",
- jydz: "",
- ryxxzp: "",
- rdInvestment: "",
- jgInvestment: "",
- jgInvestment: "",
- fourOpennessAmount: "",
- fourTransferenceAmount: "",
- fourServiceAmount: "",
- fourConsultAmount: "",
- associationCompany: "",
- settleInType: "",
- frEmail: "",
- zscqgs: "",
- };
- import {
- getCompanyHouseDetails,
- getByCodes,
- companyECdit,
- interviewEscalationListAll,
- getSelectUserTwo,
- getCompanyAll,
- } from "@/js_sdk/http";
- // import multipleSelect from "../../subPackages/components/momo-multipleSelect/momo-multipleSelect";
- import multipleSelect from "./momo-multipleSelect.vue";
- import handleReport from "../companyreport/components/handlereport.vue";
- import selectDengjiren from "../../subPackages/components/select_dengjiren/tkitree.vue";
- import tools from "../../subPackages/components/tkitree/tools.js";
- export default {
- components: {
- handleReport,
- selectDengjiren,
- multipleSelect,
- },
- data() {
- return {
- show: false,
- bizhongIndex: null,
- BASE_URI: this.$constant.BASE_URI,
- range: [],
- companyAllList: [],
- settleInTypeIndex: null,
- id: "",
- interviewList: [],
- dic_key: [
- "MNP_BUILDING_TYPE",
- "SETTLE_IN_STATUS",
- "interviewType",
- "CURRENCY",
- ],
- dic_SelectList: {},
- activeNames: [],
- StatusBar: 0,
- search: {
- pageSize: 10,
- pageNum: 1,
- },
- form: {
- ...form,
- },
- value: true,
- value1: true,
- list: [],
- value: ["0"],
- modeIndex: -1,
- styleIndex: -1,
- current: 0,
- mode: "default",
- dotsStyles: {},
- swiperDotIndex: 0,
- };
- },
- onLoad(option) {
- this.id = option.id;
- this.getCompanyAll();
- this.getByCodes();
- },
- methods: {
- chosseAboutCompany() {
- this.show = true;
- this.$refs.multipleSelect.getAllList(this.companyAllList);
- },
- confirm(e) {
- console.log(e);
- var associationCompanyString = [];
- var associationCompany = [];
- for (var p in e) {
- associationCompanyString.push(e[p].label);
- associationCompany.push(e[p].value);
- }
- this.form.associationCompanyName = associationCompanyString.join(",");
- this.form.associationCompany = associationCompany.join(",");
- console.log(associationCompanyString.join(","));
- this.$forceUpdate();
- },
- async getCompanyAll() {
- let companyAllList = await getCompanyAll();
- this.companyAllList = companyAllList.map((e) => {
- return {
- label: e.qymc,
- value: e.id,
- };
- });
- },
- getBizhongtype(e) {
- let that = this;
- that.form.currency = that.dic_SelectList.CURRENCY[e.detail.value].value;
- that.bizhongIndex = e.detail.value;
- },
- 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,
- });
- that.$forceUpdate();
- },
- fail(res) {},
- });
- },
- splicefrsfzh_zhenmian() {
- this.form.frsfzh_zhenmian = form.FRSFZHZM;
- this.$forceUpdate();
- },
- splicefrsfzh_fanmian() {
- this.form.frsfzh_fanmian = form.FRSFZHFM;
- this.$forceUpdate();
- },
- choosefrsfzh_zhenmian() {
- let that = this;
- if (that.form.frsfzh_zhenmian == form.FRSFZHZM) {
- 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.frsfzh_zhenmian = data.data[0];
- that.$forceUpdate();
- },
- fail(res) {},
- });
- },
- });
- } else {
- uni.previewImage({
- urls: [
- that.BASE_URI +
- "/FileController/download/" +
- that.form.frsfzh_zhenmian,
- ],
- longPressActions: {
- itemList: ["发送给朋友", "保存图片", "收藏"],
- success: function (data) {},
- fail: function (err) {},
- },
- });
- }
- },
- getZcsj: function (e) {
- this.form.zcsj = e.detail.value;
- },
- chooseYYZZFBZP() {
- let that = this;
- if (that.form.YYZZFBZP == "../../../static/unuploadzhizhao.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.YYZZFBZP = data.data[0];
- that.$forceUpdate();
- },
- fail(res) {},
- });
- },
- });
- } else {
- uni.previewImage({
- urls: [
- this.BASE_URI + "/FileController/download/" + that.form.YYZZFBZP,
- ],
- longPressActions: {
- itemList: ["发送给朋友", "保存图片", "收藏"],
- success: function (data) {},
- fail: function (err) {},
- },
- });
- }
- },
- choosefrsfzh_fanmian() {
- let that = this;
- if (that.form.frsfzh_fanmian == form.FRSFZHFM) {
- 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.frsfzh_fanmian = data.data[0];
- that.$forceUpdate();
- },
- fail(res) {},
- });
- },
- });
- } else {
- uni.previewImage({
- urls: [
- that.BASE_URI +
- "/FileController/download/" +
- that.form.frsfzh_fanmian,
- ],
- longPressActions: {
- itemList: ["发送给朋友", "保存图片", "收藏"],
- success: function (data) {},
- fail: function (err) {},
- },
- });
- }
- },
- checkFormValue() {
- let that = this;
- if (that.form.zcsj == "") {
- 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.qylxr == "" || !that.form.qylxr) {
- that.$showToast("请输入企业联系人");
- return false;
- }
- if (that.form.email == "" || !that.form.email) {
- that.$showToast("请输入企业邮箱");
- return false;
- }
- if (that.form.cwfzr == "" || !that.form.cwfzr) {
- that.$showToast("请输入财务负责人");
- return false;
- }
- if (that.form.cwfzrdh == "" || !that.form.cwfzrdh) {
- that.$showToast("请输入负责人电话");
- return false;
- }
- return true;
- },
- selectDengjiren(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.investmentManagerName = names.join(",");
- this.form.investmentManager = ids.join(",");
- },
- async edit() {
- let that = this;
- if (!that.changeActive()) return;
- let formData = {
- id: that.form.id,
- qymc: that.form.qymc,
- shxydm: that.form.shxydm,
- zczj: that.form.zczj ? that.form.zczj : 0,
- fddbr: that.form.fddbr,
- lxdh: that.form.lxdh,
- frsfzh: that.form.frsfzh_zhenmian + "," + that.form.frsfzh_fanmian,
- qylxr: that.form.qylxr,
- lxdh: that.form.lxdh,
- email: that.form.email,
- cwfzr: that.form.cwfzr,
- cwfzrdh: that.form.cwfzrdh,
- investmentManagerName: that.form.investmentManagerName,
- investmentManager: that.form.investmentManager,
- area: that.form.area,
- zcdz: that.form.zcdz,
- jydz: that.form.jydz,
- ryxxzp: that.form.ryxxzp,
- rdInvestment: that.form.rdInvestment,
- jgInvestment: that.form.jgInvestment,
- jgInvestment: that.form.jgInvestment,
- fourOpennessAmount: that.form.fourOpennessAmount,
- fourTransferenceAmount: that.form.fourTransferenceAmount,
- fourServiceAmount: that.form.fourServiceAmount,
- fourConsultAmount: that.form.fourConsultAmount,
- associationCompany: that.form.associationCompany,
- settleInType: that.form.settleInType,
- zscqgs: !that.form.zscqgs ? 0 : that.form.zscqgs,
- frEmail: that.form.frEmail,
- };
- let RYXXZP = [];
- if (that.form.RYXXZPList.length > 0) {
- RYXXZP = that.form.RYXXZPList.map((e) => e.id);
- }
- formData.ryxxzp = RYXXZP.toString();
- let zm =
- that.form.frsfzh_zhenmian == form.FRSFZHZM
- ? ""
- : that.form.frsfzh_zhenmian;
- let fm =
- that.form.frsfzh_fanmian == form.FRSFZHFM
- ? ""
- : that.form.frsfzh_fanmian;
- that.form.yyzzfbzp = that.form.YYZZFBZP;
- formData.frsfzh = zm + "," + fm;
- if (!formData.rdInvestment) delete formData.rdInvestment;
- if (!formData.jgInvestment) delete formData.jgInvestment;
- if (!formData.fourOpennessAmount) delete formData.fourOpennessAmount;
- if (!formData.fourTransferenceAmount)
- delete formData.fourTransferenceAmount;
- if (!formData.fourServiceAmount) delete formData.fourServiceAmount;
- if (!formData.fourConsultAmount) delete formData.fourConsultAmount;
- let data = await companyECdit(formData);
- if (data.code == 200) {
- this.$showToast("修改成功");
- uni.navigateBack({});
- }
- },
- async getSelectUserTwo(key) {
- let that = this;
- let departmentList = await getSelectUserTwo("");
- that.range = tools.transData(
- departmentList.data,
- "id",
- "parentid",
- "children"
- );
- that.$refs[key]._show();
- },
- jumpEditCompanyDetails(e) {
- // uni.navigateTo({
- // url
- // })
- },
- jumpChosseTags() {
- uni.navigateTo({
- url: "/pages/subPackages/chooseCompanyTags/index",
- });
- },
- openHandleReportDialog(item) {
- let that = this;
- that.$refs.handleReport.openDianlog(item);
- },
- getSettleInType(e) {
- let that = this;
- that.form.settleInType =
- that.dic_SelectList.MNP_BUILDING_TYPE[e.detail.value].value;
- that.settleInTypeIndex = e.detail.value;
- },
- getDicTypeZoufang(value) {
- if (!value) return;
- let interviewType = this.dic_SelectList.interviewType;
- let index = interviewType.findIndex((e) => e.value == value);
- if (index != -1) return interviewType[index].label;
- },
- getDicType(type, value) {
- if (type == "type" && this.dic_SelectList.MNP_BUILDING_TYPE) {
- let MNP_BUILDING_TYPE = this.dic_SelectList.MNP_BUILDING_TYPE;
- let index = MNP_BUILDING_TYPE.findIndex((e) => e.value == value);
- if (index != -1) return MNP_BUILDING_TYPE[index].label;
- else return "暂无";
- }
- if (type == "zt" && this.dic_SelectList.SETTLE_IN_STATUS) {
- let SETTLE_IN_STATUS = this.dic_SelectList.SETTLE_IN_STATUS;
- let index = SETTLE_IN_STATUS.findIndex((e) => e.value == value);
- if (index != -1) return SETTLE_IN_STATUS[index].label;
- else return "暂无";
- }
- },
- async getByCodes() {
- this.search.pageNum = 1;
- let data = await getByCodes(JSON.stringify(this.dic_key));
- this.dic_SelectList = this.$common.handleDicList(data);
- this.getCompanyHouseDetails(this.id);
- },
- async changeActive() {
- let interviewList = await interviewEscalationListAll(this.id);
- this.interviewList = interviewList;
- },
- selectItems(e) {
- this.$nextTick(() => {
- this.$refs.collapse.resize();
- });
- },
- async getCompanyHouseDetails(e) {
- let that = this;
- try {
- let detail = await getCompanyHouseDetails(e);
- let index = that.dic_SelectList.MNP_BUILDING_TYPE.findIndex(
- (e) => e.value == detail.data.settleInType
- );
- that.settleInTypeIndex = index;
- that.form = detail.data;
- that.form.associationCompany = that.form.associationCompany.split(",");
- if (detail.data.ryxxzp.length > 0) {
- let ryxxzp = detail.data.ryxxzp.split(",");
- // this.form.RYXXZPList
- that.form.RYXXZPList = ryxxzp.map((e) => {
- return {
- imgUrl: "/FileController/download/" + e,
- id: e,
- url: that.$constant.BASE_URI + "/FileController/download/" + e,
- isImage: true,
- };
- });
- } else {
- that.form.RYXXZPList = [];
- }
- try {
- let bizhongIndex = this.dic_SelectList.CURRENCY.findIndex(
- (e) => e.value == detail.data.currency
- );
- that.bizhongIndex = bizhongIndex == -1 ? null : bizhongIndex;
- } catch (error) {}
- that.form.YYZZFBZP =
- !detail.data.yyzzfbzp || detail.data.yyzzfbzp == "undefined"
- ? form.YYZZFBZP
- : detail.data.yyzzfbzp;
- if (detail.data.frsfzh.length > 0 && detail.data.frsfzh != ",") {
- let sfzlist = detail.data.frsfzh.split(",");
- that.form.frsfzh_fanmian = sfzlist[0];
- that.form.frsfzh_zhenmian = sfzlist[1];
- } else {
- that.form.frsfzh_fanmian = form.FRSFZHFM;
- that.form.frsfzh_zhenmian = form.FRSFZHZM;
- }
- } catch (error) {}
- },
- onChange(event) {
- this.activeNames = event.detail;
- },
- },
- };
- </script>
- <style scoped lang="scss">
- .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;
- }
- .housedetailsedit {
- margin-bottom: 200rpx;
- }
- .housedetailsedit {
- .btn-view {
- width: 100%;
- height: 100rpx;
- padding: 20rpx 10%;
- background-color: #ffffff;
- position: fixed;
- bottom: 0;
- z-index: 100;
- left: 0;
- }
- .btn {
- width: 80%;
- height: 90rpx;
- border-radius: 50rpx 50rpx 50rpx 50rpx;
- background: #1d18bc;
- line-height: 90rpx;
- color: white;
- }
- .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">
- ::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;
- }
- .idclass {
- width: 147rpx;
- height: 100rpx;
- }
- </style>
|