1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4f12aa78"],{"0a49":function(t,e,n){var r=n("9b43"),i=n("626a"),a=n("4bf8"),o=n("9def"),u=n("cd1c");t.exports=function(t,e){var n=1==t,s=2==t,c=3==t,l=4==t,d=6==t,f=5==t||d,p=e||u;return function(e,u,h){for(var m,v,y=a(e),b=i(y),g=r(u,h,3),x=o(b.length),w=0,k=n?p(e,x):s?p(e,0):void 0;x>w;w++)if((f||w in b)&&(m=b[w],v=g(m,w,y),t))if(n)k[w]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(l)return!1;return d?-1:c||l?l:k}}},1169:function(t,e,n){var r=n("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"5f9c":function(t,e,n){"use strict";var r=n("9fef"),i=n.n(r);i.a},7514:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),a="find",o=!0;a in[]&&Array(1)[a](function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(a)},"8b9b":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"qiuzu-add"},[n("div",{staticClass:"form"},[n("div",{staticClass:"form-item",staticStyle:{display:"flex",padding:"20px 0px"},on:{click:function(e){return t.openParkSelect("parkInfo")}}},[t._m(0),n("div",[t._v(t._s(t.parkInfo.text?t.parkInfo.text:"请选择"))])]),n("div",{staticClass:"form-item",staticStyle:{display:"flex",padding:"20px 0px"},on:{click:function(e){return t.openZhaozuType()}}},[t._m(1),0==t.zhaozuType.length?n("div",[t._v("请选择")]):n("div",t._l(t.zhaozuType,function(e){return n("span",[t._v(t._s(e.label+","))])}),0)]),n("div",{staticClass:"form-item"},[t._m(2),n("div",{staticStyle:{"margin-top":"8px"}},[n("van-field",{attrs:{autosize:"",maxlength:"50",placeholder:"请输入留言",rows:"2","show-word-limit":"",type:"textarea"},model:{value:t.info,callback:function(e){t.info=e},expression:"info"}})],1)]),n("div",{staticClass:"form-item",staticStyle:{padding:"20px 0px"}},[t._m(3),n("van-uploader",{attrs:{"after-read":t.afterRead,"before-delete":t.beforeDelete,"max-count":6,multiple:!0},model:{value:t.componentsFileUrlList,callback:function(e){t.componentsFileUrlList=e},expression:"componentsFileUrlList"}})],1),n("div",{staticClass:"form-item",staticStyle:{display:"flex",padding:"20px 0px"}},[t._m(4),n("input",{directives:[{name:"model",rawName:"v-model",value:t.connectName,expression:"connectName"}],attrs:{placeholder:"请输入",type:"text"},domProps:{value:t.connectName},on:{input:function(e){e.target.composing||(t.connectName=e.target.value)}}})]),n("div",{staticClass:"form-item",staticStyle:{display:"flex",padding:"20px 0px"}},[t._m(5),n("input",{directives:[{name:"model",rawName:"v-model",value:t.connectPhone,expression:"connectPhone"}],attrs:{placeholder:"请输入",type:"text"},domProps:{value:t.connectPhone},on:{input:function(e){e.target.composing||(t.connectPhone=e.target.value)}}})])]),n("div",{staticClass:"btn-view"},[n("button",{staticClass:"btn btn1",on:{click:function(e){return t.$router.go(-1)}}},[t._v("关闭")]),n("button",{staticClass:"btn btn2",on:{click:function(e){return t.submitData(0)}}},[t._v("提交")])]),n("current-select",{ref:"currentSelect",attrs:{columns:t.yuanquList},on:{getAboultPark:t.getAboultPark}}),n("zhaozu-select",{ref:"zhaozuSelect",attrs:{columns:t.dc_data.sunan_renting_type},on:{getZhaozuType:t.getZhaozuType}})],1)},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-label width30 ws"},[n("span",{staticClass:" required"},[t._v("*")]),t._v("关联园区:\n\t\t\t")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-label width30 ws"},[n("span",{staticClass:" required"},[t._v("*")]),t._v("招租类别:\n\t\t\t")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-label",staticStyle:{padding:"5px 0px"}},[n("span",{staticClass:" required"},[t._v("*")]),t._v("招租描述:\n\t\t\t")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-label width30 ws"},[n("span",{staticClass:" required"},[t._v("*")]),t._v("招租图片:\n\t\t\t")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-label width30 ws"},[n("span",{staticClass:" required"},[t._v("*")]),t._v("联系人:\n\t\t\t")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-label width30 ws"},[n("span",{staticClass:" required"},[t._v("*")]),t._v("联系电话:\n\t\t\t")])}],a=n("795b"),o=n.n(a),u=(n("6b54"),n("96cf"),n("3b8d")),s=(n("28a5"),n("7514"),n("3089")),c=n("da5e"),l=n("c961"),d=n("ff4f"),f=n("06a8"),p=n("5cab"),h={name:"qiuzu-add",components:{zhaozuSelect:d["a"],Form:s["Form"],Field:s["Field"],currentSelect:c["a"]},mixins:[f["a"]],data:function(){return{yuanquList:[],active:"",form:{},dc_key:["sunan_renting_type"],fileList:[],zhaozuType:[],parkInfo:{},info:"",connectName:"",connectPhone:"",componentsFileUrlList:[],myFileList:[],id:null}},mounted:function(){var t=this;this.id=this.$route.query.id,console.log(this.$route.params.id),this.initDict(this.dc_key).then(function(e){t.findYuanQuList(),t.$forceUpdate()})},methods:{getById:function(){var t=this;Object(l["f"])(this.id).then(function(e){t.parkInfo.value=e.yuanquId,console.log(t.yuanquList),console.log(t.yuanquList.find(function(t){return t.value==e.yuanquId})),t.parkInfo.text=t.yuanquList.find(function(t){return t.value==e.yuanquId}).text,t.id=e.id;var n=e.types.split();t.zhaozuType=n.map(function(t){return{label:t,value:t}}),console.log(t.zhaozuType),t.info=e.info;var r=e.pictureUrl.split(",");t.myFileList=r,t.componentsFileUrlList=r.map(function(t){return{url:"https://www.idea-co-sf.com/industryParkApi/FileController/download/"+t,isImage:!0}}),t.connectPhone=e.connectPhone,t.connectName=e.connectName})},submitData:function(){var t=Object(u["a"])(regeneratorRuntime.mark(function t(e){var n,r,i;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(this.parkInfo.text){t.next=2;break}return t.abrupt("return",Object(s["Toast"])("请选择关联园区"));case 2:if(0!=this.zhaozuType.length){t.next=4;break}return t.abrupt("return",Object(s["Toast"])("请选择招租类别"));case 4:if(0!=this.info.length){t.next=6;break}return t.abrupt("return",Object(s["Toast"])("请填写招租需求"));case 6:if(0!=this.myFileList.length){t.next=8;break}return t.abrupt("return",Object(s["Toast"])("请上传招租图片"));case 8:if(0!=this.connectName.length){t.next=10;break}return t.abrupt("return",Object(s["Toast"])("请填写联系人"));case 10:if(0!=this.connectPhone.length){t.next=12;break}return t.abrupt("return",Object(s["Toast"])("请填写联系电话"));case 12:return n=this.zhaozuType.map(function(t){return t.value}),r={yuanquId:this.parkInfo.value,types:n.toString(),pictureUrl:this.myFileList.join(","),connectName:this.connectName,connectPhone:this.connectPhone,info:this.info,createdBy:p["a"].currUser().id,status:e,id:this.id},t.next=16,Object(l["b"])(r);case 16:i=t.sent,200==i.code&&0==e?(this.$router.go(-1),Object(s["Toast"])("提交成功")):Object(s["Toast"])("保存成功");case 18:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),findYuanQuList:function(){var t=Object(u["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["e"])();case 2:e=t.sent,e=e.map(function(t){return{text:t.groupName,value:t.id}}),this.yuanquList=e,this.getById();case 6:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),getZhaozuType:function(t){console.log(t),this.zhaozuType=t,console.log(this.zhaozuType),this.$forceUpdate()},openZhaozuType:function(){this.$refs.zhaozuSelect.setVisible(!0)},beforeDelete:function(t,e){console.log(t,e);var n=this;return n.myFileList.splice(e.index,1),function(t,r){var i=r.index;n.myFileList[e.index].splice(i,1)}},afterRead:function(){var t=Object(u["a"])(regeneratorRuntime.mark(function t(e){var n,r;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return[],t.next=3,this.$common.uploadImg(e);case 3:for(n=t.sent,r=0;r<n.length;r++)this.myFileList.push(n[r]);this.$forceUpdate();case 6:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),getAboultPark:function(t,e){console.log(t),this[e]=t,this.$forceUpdate()},openParkSelect:function(t){this.$refs.currentSelect.setVisible(!0,{},t)},asyncValidator:function(t){return new o.a(function(e){s["Toast"].loading("验证中..."),setTimeout(function(){s["Toast"].clear(),e(/\d{6}/.test(t))},1e3)})},validator:function(t){return/1\d{10}/.test(t)},onFailed:function(t){console.log("failed",t)}}},m=h,v=(n("5f9c"),n("2877")),y=Object(v["a"])(m,r,i,!1,null,null,null);e["default"]=y.exports},"9fef":function(t,e,n){},c961:function(t,e,n){"use strict";n.d(e,"e",function(){return o}),n.d(e,"a",function(){return u}),n.d(e,"b",function(){return s}),n.d(e,"g",function(){return c}),n.d(e,"d",function(){return l}),n.d(e,"h",function(){return d}),n.d(e,"l",function(){return f}),n.d(e,"f",function(){return p}),n.d(e,"c",function(){return h}),n.d(e,"i",function(){return m}),n.d(e,"k",function(){return v}),n.d(e,"j",function(){return y});var r=n("8982"),i="/industryParkApi",a="/wx/CommonController";function o(){return Object(r["a"])({url:i+a+"/findYuanQuList",method:"post",data:{}})}function u(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/add",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/add",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/getTmpInfoByUserId",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanYuanquInfoManagementController/findTypeListByYuanQuId",method:"post",data:{id:t}})}function d(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/list",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/list",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/getById",method:"post",data:{id:t}})}function h(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanYuanquInfoManagementController/findListByYuanQuIdAndType",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/pushDown",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/remove",method:"post",data:t})}function y(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/pushUp",method:"post",data:t})}},cd1c:function(t,e,n){var r=n("e853");t.exports=function(t,e){return new(r(t))(e)}},e853:function(t,e,n){var r=n("d3f4"),i=n("1169"),a=n("2b4c")("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&(e=e[a],null===e&&(e=void 0))),void 0===e?Array:e}}}]);
|