硕顺crm后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesA-business-advance"],{"0221":function(t,i,e){"use strict";var a=e("4b79"),n=e.n(a);n.a},"0e45":function(t,i,e){var a=e("4eec");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("79e311f0",a,!0,{sourceMap:!1,shadowMode:!1})},"0e6a":function(t,i,e){"use strict";e.r(i);var a=e("f08d"),n=e.n(a);for(var o in a)"default"!==o&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=n.a},"10de":function(t,i,e){"use strict";var a;e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){return a}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[e("v-uni-view",{staticClass:"inp_warp"},[e("v-uni-view",{staticClass:"inp_title key"},[e("v-uni-text",{class:t.flag?"b_color":"bo_color"},[t._v("*")]),t._v(t._s(t.title)+":")],1),t.isEdit?e("v-uni-view",{staticClass:"form_right"},[e("v-uni-view",[t._v("上传图片")]),e("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1):t._e()],1),e("v-uni-view",{staticClass:"imglist"},[t._l(t.imgList,(function(i,a){return e("v-uni-view",{key:a,staticClass:"imgbox"},[t.isEdit?e("v-uni-image",{staticClass:"delimg",attrs:{src:t.BASE_IMG_URL+"/close.png"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.delImg(a)}}}):t._e(),e("v-uni-image",{staticClass:"selfimg_img",attrs:{src:i.file_path},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toPriveImg(a)}}})],1)})),t.imgList.length<t.single&&t.isEdit?e("v-uni-view",{staticClass:"imgbox_tow",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.uploadFiles.apply(void 0,arguments)}}},[e("v-uni-image",{staticClass:"selfimg",attrs:{src:t.BASE_IMG_URL+"/addfile.png"}})],1):t._e()],2)],1)},o=[]},"13e3":function(t,i,e){"use strict";e("4160"),e("a9e3"),e("d3b7"),e("3ca3"),e("159b"),e("ddb0"),e("2b3d"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=e("2345"),n=e("aa66"),o={props:{imgList:{type:Array,default:[]},flag:{type:Boolean,default:!0},title:{type:String,default:"附件"},single:{type:Number,default:9},istype:{type:String,default:"all"},isEdit:{type:Boolean,default:!0}},data:function(){return{BASE_IMG_URL:a.BASE_IMG_URL}},methods:{toPriveImg:function(t){this.openCommonImg(this.imgList,t)},uploadFiles:function(){var t=this,i=[];"all"==this.istype?i=["album","camera"]:"album"==this.istype?i=["album"]:"camera"==this.istype&&(i=["camera"]),uni.chooseImage({count:this.single,sourceType:i,sizeType:["compressed"],success:function(i){console.log(i,"====");var e=i.tempFilePaths;e.forEach((function(i){t.imgList.length<t.single&&t.toUpload(i)}))}})},toUpload:function(t){var i=this;uni.uploadFile({url:n.uploadUrl,name:"file",header:{token:uni.getStorageSync("token")},filePath:t,success:function(t){var e=JSON.parse(t.data);if(1==e.code){var a={id:e.data.id,file_path:e.data.url};i.$emit("uploadImg",a)}else uni.showToast({title:"上传失败",icon:"none"})},fail:function(t){console.log(t)}})},delImg:function(t){this.$emit("delImg",t)},getImageInfo:function(t){return new Promise((function(i,e){uni.showLoading({title:"压缩中...",icon:"none"}),uni.getImageInfo({src:t,success:function(t){console.log("压缩前",t);var e=t.width,a=t.height,n=new Image;n.src=t.path;var o=document.createElement("canvas"),r=o.getContext("2d");o.width=e/2,o.height=a/2,console.log(n),r.drawImage(n,0,0,e/2,a/2),o.toBlob((function(t){var e=window.URL.createObjectURL(t);console.log("压缩后",e),i(e),uni.hideLoading()}))}})}))}}};i.default=o},1430:function(t,i,e){"use strict";e.r(i);var a=e("10de"),n=e("4b21");for(var o in n)"default"!==o&&function(t){e.d(i,t,(function(){return n[t]}))}(o);e("0221");var r,l=e("f0c5"),s=Object(l["a"])(n["default"],a["b"],a["c"],!1,null,"780e565f",null,!1,a["a"],r);i["default"]=s.exports},"1b5f":function(t,i,e){"use strict";var a=e("c91e"),n=e.n(a);n.a},2394:function(t,i,e){"use strict";e.r(i);var a=e("fc19"),n=e.n(a);for(var o in a)"default"!==o&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=n.a},"24e3":function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.doc_item[data-v-649d1837]{display:flex;justify-content:space-between;align-items:center;padding:%?24?% %?35?%;background:#fff;border-bottom:%?1?% solid #ededed}.doc_item .remarkimg[data-v-649d1837]{width:%?31?%;height:%?33?%;margin-right:%?15?%}.doc_item .deleimg[data-v-649d1837]{width:%?44?%;height:%?44?%}.doc_item .doc_name[data-v-649d1837]{width:%?575?%;font-size:%?24?%;color:#333;overflow:hidden}.inp_warp[data-v-649d1837]{padding:%?30?%;background:#fff;display:flex;justify-content:space-between;align-items:center;border-bottom:%?1?% solid #ededed}.inp_warp .inp_title[data-v-649d1837]{font-size:%?32?%;color:#999}.inp_warp .form_right[data-v-649d1837]{display:flex;justify-content:flex-end;align-items:center;color:#999;min-width:%?450?%;text-align:right}.inp_warp .form_right uni-image[data-v-649d1837]{width:%?40?%;height:%?40?%;margin-left:%?24?%}.inp_warp .form_right .rightinput[data-v-649d1837]{width:100%;text-align:right}.inp_warp .add_in[data-v-649d1837]{display:flex;justify-content:flex-end;align-items:center;font-size:%?26?%;color:#ffa205}.inp_warp .add_in .icon-jiahaocu[data-v-649d1837]{font-size:%?28?%;color:#ffa205;margin-right:%?5?%}',""]),t.exports=i},"4b21":function(t,i,e){"use strict";e.r(i);var a=e("13e3"),n=e.n(a);for(var o in a)"default"!==o&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=n.a},"4b79":function(t,i,e){var a=e("c75c");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("1f93a234",a,!0,{sourceMap:!1,shadowMode:!1})},"4eec":function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.fllow_form[data-v-d0d532c2]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;border-bottom:%?1?% solid #eaeaea;padding:%?30?% %?20?%;color:#999;font-size:%?32?%}.fllow_form .form_right[data-v-d0d532c2]{display:flex;align-items:center;color:#999}.fllow_form .form_right[data-v-d0d532c2] :first-child{width:%?450?%;text-align:right}.fllow_form .form_right uni-image[data-v-d0d532c2]{width:%?40?%;height:%?40?%;margin:%?28?% %?5?% 0 0}.fllow_form .theme[data-v-d0d532c2]{color:#5ca9fe}.fllow_form uni-text[data-v-d0d532c2]{color:red;margin-left:%?10?%}.fllow_form .form_input uni-input[data-v-d0d532c2]{text-align:right;margin-right:%?10?%}.fllow_area[data-v-d0d532c2]{background-color:#fff;padding:%?30?% %?20?%;padding-bottom:%?30?%;color:#999;font-size:%?32?%}.fllow_area .area_head[data-v-d0d532c2]{margin-bottom:%?24?%;margin-left:%?15?%}.fllow_area uni-textarea[data-v-d0d532c2]{width:80%;height:%?300?%;padding:%?30?%;background:#f8f8f8;margin:0 auto}',""]),t.exports=i},"71bb":function(t,i,e){"use strict";e.r(i);var a=e("d91b"),n=e("0e6a");for(var o in n)"default"!==o&&function(t){e.d(i,t,(function(){return n[t]}))}(o);e("c25e");var r,l=e("f0c5"),s=Object(l["a"])(n["default"],a["b"],a["c"],!1,null,"d0d532c2",null,!1,a["a"],r);i["default"]=s.exports},"80b8":function(t,i,e){"use strict";e.r(i);var a=e("c20d7"),n=e("2394");for(var o in n)"default"!==o&&function(t){e.d(i,t,(function(){return n[t]}))}(o);e("1b5f");var r,l=e("f0c5"),s=Object(l["a"])(n["default"],a["b"],a["c"],!1,null,"649d1837",null,!1,a["a"],r);i["default"]=s.exports},c20d7:function(t,i,e){"use strict";var a;e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){return a}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{},[e("v-uni-view",{staticClass:"inp_warp"},[e("v-uni-view",{staticClass:"inp_title key"},[e("v-uni-text",{class:t.flag?"b_color":"bo_color"},[t._v("*")]),t._v(t._s(t.title)+":")],1),t.isEdit?e("v-uni-view",{staticClass:"form_right",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toUploadFile.apply(void 0,arguments)}}},[e("v-uni-view",[t._v("点击上传")]),e("v-uni-view",{staticClass:"iconfont icon-you"})],1):t._e()],1),t._l(t.fileList,(function(i,a){return e("v-uni-view",{key:a,staticClass:"doc_item"},[e("v-uni-image",{staticClass:"remarkimg",attrs:{src:t.BASE_IMG_URL+"/file-clip.png"}}),e("v-uni-view",{staticClass:"doc_name",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toLookFile(i)}}},[t._v(t._s(i.name))]),t.isEdit?e("v-uni-image",{staticClass:"deleimg",attrs:{src:t.BASE_IMG_URL+"/file_del.png"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.delFile(a)}}}):t._e()],1)}))],2)},o=[]},c25e:function(t,i,e){"use strict";var a=e("0e45"),n=e.n(a);n.a},c75c:function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.b_color[data-v-780e565f]{color:red}.bo_color[data-v-780e565f]{color:#fff}.imglist[data-v-780e565f]{padding:%?24?% %?34?%;background:#fff;border-bottom:%?1?% solid #ededed;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.imglist .imgbox[data-v-780e565f]{width:%?160?%;height:%?160?%;margin-right:%?14?%;position:relative;margin-bottom:%?24?%}.imglist .imgbox[data-v-780e565f]:nth-child(4n){margin-right:0}.imglist .imgbox .delimg[data-v-780e565f]{width:%?32?%;height:%?32?%;border-radius:50%;position:absolute;right:%?-16?%;top:%?-16?%;background:rgba(0,0,0,.5);z-index:2}.imglist .imgbox .selfimg_img[data-v-780e565f]{width:%?160?%;height:%?160?%}.imglist .imgbox_tow[data-v-780e565f]{width:%?75?%;height:%?75?%}.imglist .imgbox_tow .selfimg[data-v-780e565f]{width:%?75?%;height:%?75?%}.inp_warp[data-v-780e565f]{padding:%?30?%;background:#fff;display:flex;justify-content:space-between;align-items:center;border-bottom:%?1?% solid #ededed}.inp_warp .inp_title[data-v-780e565f]{font-size:%?32?%;color:#999}.inp_warp .form_right[data-v-780e565f]{display:flex;justify-content:flex-end;align-items:center;color:#999;min-width:%?450?%;text-align:right}',""]),t.exports=i},c91e:function(t,i,e){var a=e("24e3");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("cdb100fa",a,!0,{sourceMap:!1,shadowMode:!1})},d91b:function(t,i,e){"use strict";var a;e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){return a}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{},[e("v-uni-view",{staticClass:"fllow_form"},[e("v-uni-view",[e("v-uni-text",[t._v("*")]),t._v("商机阶段")],1),e("v-uni-picker",{attrs:{range:t.arr,value:t.arrIndex},on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.changeArr.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"form_right"},[e("v-uni-view",{class:t.arr[t.arrIndex]?"valueActive":""},[t._v(t._s(t.arr[t.arrIndex]?t.arr[t.arrIndex]:"商机阶段"))]),e("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1),e("v-uni-view",{staticClass:"fllow_area"},[e("v-uni-view",{staticClass:"area_head"},[t._v("备注")]),e("v-uni-textarea",{class:t.remark?"valueActive":"",attrs:{maxlength:"-1",placeholder:"备注","placeholder-style":"color:#999;font-size:32rpx;"},model:{value:t.remark,callback:function(i){t.remark=i},expression:"remark"}})],1),e("upload-image",{attrs:{imgList:t.imgList,flag:!1},on:{uploadImg:function(i){arguments[0]=i=t.$handleEvent(i),t.uploadImg.apply(void 0,arguments)},delImg:function(i){arguments[0]=i=t.$handleEvent(i),t.delImg.apply(void 0,arguments)}}}),t._e(),e("v-uni-view",{staticClass:"btn_g bg-blue button-hover round",attrs:{id:"btn"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.$noMultipleClicks(t.toSave)}}},[t._v("保存")])],1)},o=[]},f08d:function(t,i,e){"use strict";var a=e("4ea4");e("99af"),e("4160"),e("a434"),e("159b"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=a(e("1430")),o=a(e("80b8")),r=e("aa66"),l={components:{uploadImage:n.default,uploadFile:o.default},data:function(){return{noClick:!0,arr:["初期沟通","立项跟踪","方案/报价","谈判审核","赢单","输单","无效"],arrIndex:0,remark:"",imgList:[],fileList:[],id:""}},onLoad:function(t){this.id=t.id,this.arrIndex=t.status},methods:{changeArr:function(t){console.log(t,"==="),this.arrIndex=t.detail.value},uploadImg:function(t){this.imgList.push(t)},delImg:function(t){this.imgList.splice(t,1)},uploadFile:function(t){this.fileList.push(t)},delFile:function(t){this.fileList.splice(t,1)},toSave:function(){var t=[],i=this.imgList.concat(this.fileList);i.forEach((function(i){t.push(i.id)}));var e={id:this.id,type:this.arrIndex,remark:this.remark,file:t.join(",")};(0,r.netAdvanceBusiness)(e).then((function(t){uni.showToast({title:t.msg,icon:"none"}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)}))}}};i.default=l},fc19:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=e("2345"),n=e("aa66"),o={props:{title:{type:String,default:"附件"},flag:{type:Boolean,default:!1},fileList:{type:Array,default:[]},isEdit:{type:Boolean,default:!0}},data:function(){return{BASE_IMG_URL:a.BASE_IMG_URL}},methods:{toUploadFile:function(){var t=this;wx.chooseMessageFile({count:1,success:function(i){var e=i.tempFiles[0];t.Upload(e.path,e.name)}})},Upload:function(t,i){var e=this;uni.uploadFile({url:n.uploadUrl,name:"file",header:{token:uni.getStorageSync("token")},filePath:t,formData:{name:i},success:function(t){var a=JSON.parse(t.data);if(1==a.code){var n=a.data;n.name=i,n.file_path=n.url,console.log(n,"上传文件"),e.$emit("uploadFile",n)}else uni.showToast({title:"上传失败",icon:"none"})},fail:function(t){console.log(t)}})},toLookFile:function(t){this.openCommonFile(t)},delFile:function(t,i){console.log("删除文件"),this.$emit("delFile",i)}}};i.default=o}}]);