1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c540b91"],{"0a49":function(t,n,e){var r=e("9b43"),i=e("626a"),a=e("4bf8"),o=e("9def"),u=e("cd1c");t.exports=function(t,n){var e=1==t,s=2==t,c=3==t,l=4==t,d=6==t,f=5==t||d,p=n||u;return function(n,u,m){for(var h,v,y=a(n),b=i(y),g=r(u,m,3),x=o(b.length),w=0,k=e?p(n,x):s?p(n,0):void 0;x>w;w++)if((f||w in b)&&(h=b[w],v=g(h,w,y),t))if(e)k[w]=v;else if(v)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:k.push(h)}else if(l)return!1;return d?-1:c||l?l:k}}},1169:function(t,n,e){var r=e("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},7514:function(t,n,e){"use strict";var r=e("5ca1"),i=e("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)}}),e("9c6c")(a)},"7b80":function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"qiuzu-add"},[e("div",{staticClass:"form"},[e("div",{staticClass:"form-item",staticStyle:{display:"flex",padding:"20px 0px"},on:{click:function(n){return t.openParkSelect("parkInfo")}}},[t._m(0),e("div",[t._v(t._s(t.parkInfo.text?t.parkInfo.text:"请选择"))])]),e("div",{staticClass:"form-item",staticStyle:{display:"flex",padding:"20px 0px"},on:{click:function(n){return t.openZhaozuType()}}},[t._m(1),0==t.zhaozuType.length?e("div",[t._v("请选择")]):e("div",t._l(t.zhaozuType,function(n){return e("span",[t._v(t._s(n.label))])}),0)]),e("div",{staticClass:"form-item"},[t._m(2),e("div",{staticStyle:{"margin-top":"8px"}},[e("van-field",{attrs:{autosize:"",maxlength:"5000",placeholder:"请输入留言",rows:"2","show-word-limit":"",type:"textarea"},model:{value:t.info,callback:function(n){t.info=n},expression:"info"}})],1)]),e("div",{staticClass:"form-item",staticStyle:{padding:"20px 0px"}},[t._m(3),e("div",{staticStyle:{color:"#cccccc",padding:"5px","font-size":"14px"}},[t._v("拍照或上传图片,支持png、jpg格式,最多九张,单张不超过10M\n\t\t\t")]),e("van-uploader",{attrs:{"after-read":t.afterRead,"before-delete":t.beforeDelete,"max-count":6,multiple:!0},model:{value:t.componentsFileUrlList,callback:function(n){t.componentsFileUrlList=n},expression:"componentsFileUrlList"}})],1),e("div",{staticClass:"form-item",staticStyle:{display:"flex",padding:"20px 0px"}},[t._m(4),e("input",{directives:[{name:"model",rawName:"v-model",value:t.connectName,expression:"connectName"}],attrs:{placeholder:"请输入",type:"text"},domProps:{value:t.connectName},on:{input:function(n){n.target.composing||(t.connectName=n.target.value)}}})]),e("div",{staticClass:"form-item",staticStyle:{display:"flex",padding:"20px 0px"}},[t._m(5),e("input",{directives:[{name:"model",rawName:"v-model",value:t.connectPhone,expression:"connectPhone"}],attrs:{placeholder:"请输入",type:"text"},domProps:{value:t.connectPhone},on:{input:function(n){n.target.composing||(t.connectPhone=n.target.value)}}})])]),e("div",{staticClass:"btn-view"},[e("button",{staticClass:"btn btn1",on:{click:function(n){return t.goBack()}}},[t._v("关闭")]),e("button",{staticClass:"btn btn2",on:{click:function(n){return t.submitData(2)}}},[t._v("暂存")]),e("button",{staticClass:"btn btn2",on:{click:function(n){return t.submitData(0)}}},[t._v("提交")])]),e("current-select",{ref:"currentSelect",attrs:{columns:t.yuanquList},on:{getAboultPark:t.getAboultPark}}),e("zhaozu-select",{ref:"zhaozuSelect",attrs:{columns:t.dc_data.sunan_renting_type},on:{getZhaozuType:t.getZhaozuType}})],1)},i=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"form-label width30 ws"},[e("span",{staticClass:" required"},[t._v("*")]),t._v("关联园区:\n\t\t\t")])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"form-label width30 ws"},[e("span",{staticClass:" required"},[t._v("*")]),t._v("招租类别:\n\t\t\t")])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"form-label",staticStyle:{padding:"5px 0px"}},[e("span",{staticClass:" required"},[t._v("*")]),t._v("招租描述:\n\t\t\t")])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"form-label width30 ws"},[e("span",{staticClass:" required"},[t._v("*")]),t._v("招租图片:\n\t\t\t")])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"form-label width30 ws"},[e("span",{staticClass:" required"},[t._v("*")]),t._v("联系人:\n\t\t\t")])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"form-label width30 ws"},[e("span",{staticClass:" required"},[t._v("*")]),t._v("联系电话:\n\t\t\t")])}],a=e("795b"),o=e.n(a),u=(e("6b54"),e("96cf"),e("3b8d")),s=(e("28a5"),e("7514"),e("3089")),c=e("da5e"),l=e("c961"),d=e("ff4f"),f=e("06a8"),p=e("5cab"),m={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.initDict(this.dc_key).then(function(n){t.findYuanQuList(),t.$forceUpdate()})},methods:{goBack:function(){this.$router.go(-1)},getTmpInfoByUserId:function(){var t=this;Object(l["g"])({id:p["a"].currUser().id}).then(function(n){if(console.log(1==n.data),200==n.code&&n.data){var e=n.data;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 r=e.types.split();t.zhaozuType=r.map(function(t){return{label:t,value:t}}),console.log(t.zhaozuType),t.info=e.info;var i=e.pictureUrl.split(",");console.log("res.pictureUrl.split(',')",e.pictureUrl.split(",")),t.myFileList=i,t.componentsFileUrlList=i.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(n){var e,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 e=this.zhaozuType.map(function(t){return t.value}),console.log(this.myFileList),r={yuanquId:this.parkInfo.value,types:e.toString(),pictureUrl:this.myFileList.join(","),connectName:this.connectName,connectPhone:this.connectPhone,info:this.info,createdBy:p["a"].currUser().id,status:n,id:this.id},t.next=17,Object(l["a"])(r);case 17:i=t.sent,200==i.code&&0==n?(Object(s["Toast"])("提交成功"),this.$router.go(-1)):(this.getTmpInfoByUserId(),Object(s["Toast"])("保存成功"));case 19:case"end":return t.stop()}},t,this)}));function n(n){return t.apply(this,arguments)}return n}(),findYuanQuList:function(){var t=Object(u["a"])(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["e"])();case 2:n=t.sent,n=n.map(function(t){return{text:t.groupName,value:t.id}}),this.getTmpInfoByUserId(),this.yuanquList=n;case 6:case"end":return t.stop()}},t,this)}));function n(){return t.apply(this,arguments)}return n}(),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,n){console.log(t,n);var e=this;return e.myFileList.splice(n.index,1),function(t,r){var i=r.index;e.myFileList[n.index].splice(i,1)}},afterRead:function(){var t=Object(u["a"])(regeneratorRuntime.mark(function t(n){var e,r;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$common.uploadImg(n);case 2:for(e=t.sent,r=0;r<e.length;r++)console.log(r),this.myFileList.push(e[r]);case 4:case"end":return t.stop()}},t,this)}));function n(n){return t.apply(this,arguments)}return n}(),getAboultPark:function(t,n){console.log(t),this[n]=t,this.$forceUpdate()},openParkSelect:function(t){this.$refs.currentSelect.setVisible(!0,{},t)},asyncValidator:function(t){return new o.a(function(n){s["Toast"].loading("验证中..."),setTimeout(function(){s["Toast"].clear(),n(/\d{6}/.test(t))},1e3)})},validator:function(t){return/1\d{10}/.test(t)},onFailed:function(t){console.log("failed",t)}}},h=m,v=(e("cfd4"),e("2877")),y=Object(v["a"])(h,r,i,!1,null,null,null);n["default"]=y.exports},c961:function(t,n,e){"use strict";e.d(n,"e",function(){return o}),e.d(n,"a",function(){return u}),e.d(n,"b",function(){return s}),e.d(n,"g",function(){return c}),e.d(n,"d",function(){return l}),e.d(n,"h",function(){return d}),e.d(n,"l",function(){return f}),e.d(n,"f",function(){return p}),e.d(n,"c",function(){return m}),e.d(n,"i",function(){return h}),e.d(n,"k",function(){return v}),e.d(n,"j",function(){return y});var r=e("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 m(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanYuanquInfoManagementController/findListByYuanQuIdAndType",method:"post",data:t})}function h(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})}},c96c:function(t,n,e){},cd1c:function(t,n,e){var r=e("e853");t.exports=function(t,n){return new(r(t))(n)}},cfd4:function(t,n,e){"use strict";var r=e("c96c"),i=e.n(r);i.a},e853:function(t,n,e){var r=e("d3f4"),i=e("1169"),a=e("2b4c")("species");t.exports=function(t){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&(n=n[a],null===n&&(n=void 0))),void 0===n?Array:n}}}]);
|