移动端
 
 
 
 
 

1 lines
22 KiB

{"version":3,"sources":["uni-app:///main.js",null,"webpack:////Users/zxx/Documents/工作/昊鼎科技/智慧环保/huanbao/pages/index/ent_reg.vue?ecd6","webpack:////Users/zxx/Documents/工作/昊鼎科技/智慧环保/huanbao/pages/index/ent_reg.vue?353a","webpack:////Users/zxx/Documents/工作/昊鼎科技/智慧环保/huanbao/pages/index/ent_reg.vue?bd1b","uni-app:///pages/index/ent_reg.vue","webpack:////Users/zxx/Documents/工作/昊鼎科技/智慧环保/huanbao/pages/index/ent_reg.vue?8098","webpack:////Users/zxx/Documents/工作/昊鼎科技/智慧环保/huanbao/pages/index/ent_reg.vue?fd83"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","form","name","type","info","addr","photo","manager","phone","regtime","hblicense","pwlicense","defTime","showType","showRegtime","types","rules","required","message","trigger","min","zzform","zzList","isEdit","methods","submit","uni","typeSelect","addPhoto","url","delPhoto","uploadPhoto","i","filePath","res","console","savazz","onReady"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,gBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoH;AACpH;AAC2D;AACL;AACc;;;AAGpE;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,kFAAM;AACR,EAAE,2FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,uSAEN;AACP,KAAK;AACL;AACA,aAAa,+TAEN;AACP,KAAK;AACL;AACA,aAAa,uSAEN;AACP,KAAK;AACL;AACA,aAAa,6SAEN;AACP,KAAK;AACL;AACA,aAAa,iSAEN;AACP,KAAK;AACL;AACA,aAAa,+TAEN;AACP,KAAK;AACL;AACA,aAAa,6SAEN;AACP,KAAK;AACL;AACA,aAAa,mWAEN;AACP,KAAK;AACL;AACA,aAAa,iVAEN;AACP,KAAK;AACL;AACA,aAAa,6SAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC5FA;AAAA;AAAA;AAAA;AAAm2B,CAAgB,qyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCgGv3B;EACAC;IACA;MACAC;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;MACA;;MACAC;MAAA;MACAC;MACAC;MACAC;QACAb;MACA,GACA;QACAA;MACA,GACA;QACAA;MACA,EACA;MAEAc;QACAd;UACAe;UACAC;UACAC;QACA;QACAhB;UACAA;UACAc;UACAC;UACAC;QACA;QACAf;UACAD;UACAiB;UACAH;UACAC;UACAC;QACA;QACAd;UACAY;UACAC;UACAC;QACA;QACAZ;UACAU;UACAC;UACAC;QACA;QACAX;UACAS;UACAC;UACAC;QACA;MACA;MACAE;MACAC;MACAC;IACA;EACA;EACAC;IACA;IACAC;MAAA;MACA;QACAC;QACA;QACA;MACA;QACAA;MACA;IACA;IACA;IACAjB;MACA;MACA;IACA;IACA;IACAkB;MACA;MACA;IACA;IACA;IACAC;MACA;QACA;UACAC;QACA;MACA;IACA;IACA;IACAC;MACA;IACA;IACA;IACAC;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEAC;cAAA;gBAAA;kBAAA;kBAAA;gBAAA;gBAAA;gBAEA;gBACAH;gBAAA;gBAAA,OACAH;kBACAO;kBACA/B;gBACA;cAAA;gBAHAgC;gBAIAC;gBAAA;gBAAA;cAAA;gBAAA;gBAAA;gBAEAA;cAAA;gBAVAH;gBAAA;gBAAA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAaA;IACAI;MACA;MACApC;MACA;IACA;EACA;EACAqC;IACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACjOA;AAAA;AAAA;AAAA;AAA0lD,CAAgB,o6CAAG,EAAC,C;;;;;;;;;;;ACA9mD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/ent_reg.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/ent_reg.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./ent_reg.vue?vue&type=template&id=0a56d9da&\"\nvar renderjs\nimport script from \"./ent_reg.vue?vue&type=script&lang=js&\"\nexport * from \"./ent_reg.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ent_reg.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/ent_reg.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./ent_reg.vue?vue&type=template&id=0a56d9da&\"","var components\ntry {\n components = {\n \"u-Form\": function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u--form/u--form\" */ \"@/uni_modules/uview-ui/components/u--form/u--form.vue\"\n )\n },\n uFormItem: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-form-item/u-form-item\" */ \"@/uni_modules/uview-ui/components/u-form-item/u-form-item.vue\"\n )\n },\n uInput: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-input/u-input\" */ \"@/uni_modules/uview-ui/components/u-input/u-input.vue\"\n )\n },\n \"u-Input\": function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u--input/u--input\" */ \"@/uni_modules/uview-ui/components/u--input/u--input.vue\"\n )\n },\n uIcon: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-icon/u-icon\" */ \"@/uni_modules/uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n \"u-Textarea\": function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u--textarea/u--textarea\" */ \"@/uni_modules/uview-ui/components/u--textarea/u--textarea.vue\"\n )\n },\n uUpload: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-upload/u-upload\" */ \"@/uni_modules/uview-ui/components/u-upload/u-upload.vue\"\n )\n },\n uDatetimePicker: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-datetime-picker/u-datetime-picker\" */ \"@/uni_modules/uview-ui/components/u-datetime-picker/u-datetime-picker.vue\"\n )\n },\n uActionSheet: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-action-sheet/u-action-sheet\" */ \"@/uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue\"\n )\n },\n uButton: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-button/u-button\" */ \"@/uni_modules/uview-ui/components/u-button/u-button.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.showType = true\n }\n _vm.e1 = function ($event) {\n _vm.showRegtime = true\n }\n _vm.e2 = function ($event) {\n _vm.showRegtime = false\n }\n _vm.e3 = function ($event) {\n _vm.showType = false\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./ent_reg.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./ent_reg.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"wrap\">\r\n\t\t<view class=\"form\">\r\n\t\t\t<u--form :model=\"form\" ref=\"uForm\" labelWidth=\"80\">\r\n\t\t\t\t<!-- 企业名称 -->\r\n\t\t\t\t<u-form-item label=\"企业名称\" prop=\"name\" borderBottom>\r\n\t\t\t\t\t<u-input v-model=\"form.name\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t</u-form-item>\r\n\t\t\t\t<!-- 企业类型 -->\r\n\t\t\t\t<u-form-item label=\"企业类型\" prop=\"type\" borderBottom @tap=\"showType = true;\">\r\n\t\t\t\t\t<u--input v-model=\"form.type\" placeholder=\"请选择\" border=\"none\"></u--input>\r\n\t\t\t\t\t<u-icon slot=\"right\" name=\"arrow-right\"></u-icon>\r\n\t\t\t\t</u-form-item>\r\n\t\t\t\t<!-- 企业地址 -->\r\n\t\t\t\t<u-form-item label=\"企业地址\" prop=\"addr\" borderBottom>\r\n\t\t\t\t\t<u-input v-model=\"form.addr\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t</u-form-item>\r\n\t\t\t\t<!-- 企业简介 -->\r\n\t\t\t\t<u-form-item label=\"企业简介\" prop=\"info\" borderBottom>\r\n\t\t\t\t\t<u--textarea v-model=\"form.info\" placeholder=\"请输入\" border=\"none\" count=\"true\"></u--textarea>\r\n\t\t\t\t</u-form-item>\r\n\t\t\t\t<!-- 企业照片 -->\r\n\t\t\t\t<u-form-item label=\"企业照片\" borderBottom>\r\n\t\t\t\t\t<u-upload :fileList=\"form.photo\" @afterRead=\"addPhoto\" @delete=\"delPhoto\" multiple\r\n\t\t\t\t\t\t:maxCount=\"6\"></u-upload>\r\n\t\t\t\t</u-form-item>\r\n\t\t\t\t<!-- 环保负责人 -->\r\n\t\t\t\t<u-form-item label=\"环保负责人\" prop=\"manager\" borderBottom>\r\n\t\t\t\t\t<u-input v-model=\"form.manager\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t</u-form-item>\r\n\t\t\t\t<!-- 联系方式 -->\r\n\t\t\t\t<u-form-item label=\"联系方式\" prop=\"phone\" borderBottom>\r\n\t\t\t\t\t<u-input v-model=\"form.phone\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t</u-form-item>\r\n\r\n\t\t\t\t<!-- 成立时间 -->\r\n\t\t\t\t<u-form-item label=\"成立时间\" prop=\"regtime\" borderBottom @tap=\"showRegtime = true\">\r\n\t\t\t\t\t<u-datetime-picker :show=\"showRegtime\" v-model=\"defTime\" mode=\"date\" @confirm=\"regtime\"\r\n\t\t\t\t\t\t@cancel=\"showRegtime = false\"></u-datetime-picker>\r\n\t\t\t\t\t<u-input :value=\"form.regtime\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t\t<u-icon slot=\"right\" name=\"arrow-right\"></u-icon>\r\n\t\t\t\t</u-form-item>\r\n\r\n\r\n\t\t\t\t<u-form-item label=\"zzlx\" prop=\"hblicense\" borderBottom labelPosition=\"top\">\r\n\t\t\t\t\t<u-input v-model=\"form.hblicense\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t</u-form-item>\r\n\r\n\t\t\t\t<u-form-item label=\"bh\" prop=\"pwlicense\" borderBottom labelPosition=\"top\">\r\n\t\t\t\t\t<u-input v-model=\"form.pwlicense\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t</u-form-item>\r\n\r\n\t\t\t\t<u-form-item label=\"bh\" prop=\"pwlicense\" borderBottom labelPosition=\"top\">\r\n\t\t\t\t\t<u-input v-model=\"form.pwlicense\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t</u-form-item>\r\n\r\n\r\n\t\t\t</u--form>\r\n\r\n\t\t\t<!-- <view v-if='isEdit'>\r\n\t\t\t\t<view class=\"\" v-for=\"zz in zzlist\" :key=\"zz.uid\" @tap=\"edit(zz)\">\r\n\t\t\t\t\t<view class=\"\">\r\n\t\t\t\t\t\t<label for=\"\">zzlx</label><text>{{zz.zzlx}}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view> -->\r\n\r\n\t\t\t<!-- <u--form :model=\"zzform\" v-else>\r\n\t\t\t\t\r\n\t\t\r\n\t\t\t\t<u-form-item label=\"zzlx\" prop=\"hblicense\" borderBottom labelPosition=\"top\">\r\n\t\t\t\t\t<u-input v-model=\"form.hblicense\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t</u-form-item>\r\n\t\t\r\n\t\t\t\t<u-form-item label=\"bh\" prop=\"pwlicense\" borderBottom labelPosition=\"top\">\r\n\t\t\t\t\t<u-input v-model=\"form.pwlicense\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t</u-form-item>\r\n\t\t\t\t<u-form-item label=\"sj\" prop=\"pwlicense\" borderBottom labelPosition=\"top\">\r\n\t\t\t\t\t<u-input v-model=\"form.pwlicense\" border=\"none\" placeholder=\"请输入\" />\r\n\t\t\t\t</u-form-item>\r\n\t\t\t\t<u-form-item>\r\n\t\t\t\t\t<button @tap='savazz'>save</button>\r\n\t\t\t\t</u-form-item>\r\n\t\t\t</u--form> -->\r\n\r\n\t\t\t<u-action-sheet :show=\"showType\" :actions=\"types\" title=\"请选择企业类型\" @close=\"showType = false\"\r\n\t\t\t\t@select=\"typeSelect\">\r\n\t\t\t</u-action-sheet>\r\n\r\n\t\t</view>\r\n\t\t<u-button @tap=\"submit\">提交</u-button>\r\n\t</view>\r\n\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tform: {\r\n\t\t\t\t\tname: '', // 企业名称\r\n\t\t\t\t\ttype: '', // 企业类型\r\n\t\t\t\t\tinfo: '', // 企业地址\r\n\t\t\t\t\taddr: '', // 企业简介\r\n\t\t\t\t\tphoto: [], // 企业照片\r\n\t\t\t\t\tmanager: '', // 环保负责人\r\n\t\t\t\t\tphone: '', // 联系方式\r\n\t\t\t\t\tregtime: '', // 成立时间\r\n\t\t\t\t\thblicense: '', // 环保许可证\r\n\t\t\t\t\tpwlicense: '', // 排污许可证\r\n\t\t\t\t},\r\n\t\t\t\tdefTime: Number(new Date()), // 初始化日期\r\n\t\t\t\tshowType: false,\r\n\t\t\t\tshowRegtime: false,\r\n\t\t\t\ttypes: [{\r\n\t\t\t\t\t\tname: '小型',\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: '中型',\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: '大型',\r\n\t\t\t\t\t},\r\n\t\t\t\t],\r\n\r\n\t\t\t\trules: {\r\n\t\t\t\t\tname: {\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请输入企业名称',\r\n\t\t\t\t\t\ttrigger: ['blur']\r\n\t\t\t\t\t},\r\n\t\t\t\t\ttype: {\r\n\t\t\t\t\t\ttype: 'string',\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请选择企业类型',\r\n\t\t\t\t\t\ttrigger: ['blur']\r\n\t\t\t\t\t},\r\n\t\t\t\t\tinfo: {\r\n\t\t\t\t\t\ttype: 'string',\r\n\t\t\t\t\t\tmin: 3,\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '不低于3个字',\r\n\t\t\t\t\t\ttrigger: ['change']\r\n\t\t\t\t\t},\r\n\t\t\t\t\taddr: {\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请输入企业地址',\r\n\t\t\t\t\t\ttrigger: ['blur']\r\n\t\t\t\t\t},\r\n\t\t\t\t\tmanager: {\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请输入环保负责人',\r\n\t\t\t\t\t\ttrigger: ['blur']\r\n\t\t\t\t\t},\r\n\t\t\t\t\tphone: {\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请输入联系方式',\r\n\t\t\t\t\t\ttrigger: ['blur']\r\n\t\t\t\t\t},\r\n\t\t\t\t},\r\n\t\t\t\tzzform: {},\r\n\t\t\t\tzzList: [],\r\n\t\t\t\tisEdit: false\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 提交数据\r\n\t\t\tsubmit() {\r\n\t\t\t\tthis.$refs.uForm.validate().then(res => {\r\n\t\t\t\t\tuni.$u.toast('校验通过')\r\n\t\t\t\t\t// 提交时上传照片\r\n\t\t\t\t\tthis.uploadPhoto(this.form.photo)\r\n\t\t\t\t}).catch(errors => {\r\n\t\t\t\t\tuni.$u.toast('校验失败')\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 企业成立时间\r\n\t\t\tregtime(e) {\r\n\t\t\t\tthis.form.regtime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd');\r\n\t\t\t\tthis.showRegtime = false\r\n\t\t\t},\r\n\t\t\t// 选择企业类型\r\n\t\t\ttypeSelect(e) {\r\n\t\t\t\tthis.form.type = e.name\r\n\t\t\t\tthis.$refs.uForm.validateField('type')\r\n\t\t\t},\r\n\t\t\t// 新增图片\r\n\t\t\taddPhoto(e) {\r\n\t\t\t\tthis.form.photo = e.file.map(item => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\turl: item.url\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t// 删除图片\r\n\t\t\tdelPhoto(e) {\r\n\t\t\t\tthis.form.photo.splice(e.index, 1);\r\n\t\t\t},\r\n\t\t\t// 提交时上传图片\r\n\t\t\tasync uploadPhoto(photo) {\r\n\t\t\t\t// 遍历图片数组并上传每张图片\r\n\t\t\t\tfor (let i = 0; i < photo.length; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t// 获取每张图片的 URL\r\n\t\t\t\t\t\tconst url = photo[i].url;\r\n\t\t\t\t\t\tconst res = await uni.$u.http.upload('http://192.168.2.101:8080/api/common_file/upload', {\r\n\t\t\t\t\t\t\tfilePath: url,\r\n\t\t\t\t\t\t\tname: 'file',\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tconsole.log(`照片 ${i + 1} 上传结果`, res);\r\n\t\t\t\t\t} catch (err) {\r\n\t\t\t\t\t\tconsole.log(`上传照片 ${i + 1} 失败`, err);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tsavazz() {\r\n\t\t\t\tconst data = this.zzform\r\n\t\t\t\tdata.uid = ''\r\n\t\t\t\tthis.zzList.push(data)\r\n\t\t\t}\r\n\t\t},\r\n\t\tonReady() {\r\n\t\t\t//如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则。\r\n\t\t\tthis.$refs.uForm.setRules(this.rules)\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t.wrap {\r\n\t\tbackground-color: #F9F9F9;\r\n\t\tmin-height: 100vh;\r\n\r\n\t\t.form {\r\n\t\t\tpadding: 48rpx;\r\n\r\n\t\t\t.u-textarea {\r\n\t\t\t\tbackground-color: inherit;\r\n\t\t\t\tpadding: 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./ent_reg.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./ent_reg.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1737189904365\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"/\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}