crm_second_opening_mini/pagesA/business/advance.js

1 line
2.4 KiB
JavaScript

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/business/advance"],{5371:function(n,t,e){"use strict";(function(n,t){var i=e("4ea4");e("8886");i(e("66fd"));var c=i(e("dffb"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(c.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"5c27":function(n,t,e){},"5d12":function(n,t,e){"use strict";var i=e("5c27"),c=e.n(i);c.a},"8de8":function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){}));var i=function(){var n=this.$createElement;this._self._c},c=[]},c4e4:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=e("dc92"),c={components:{uploadImage:function(){e.e("components/uploadImg/index").then(function(){return resolve(e("8391"))}.bind(null,e)).catch(e.oe)},uploadFile:function(){e.e("components/uploadFile/index").then(function(){return resolve(e("9d85"))}.bind(null,e)).catch(e.oe)}},data:function(){return{noClick:!0,arr:["初期沟通","立项跟踪","方案/报价","谈判审核","赢单","输单","无效"],arrIndex:0,remark:"",imgList:[],fileList:[],id:""}},onLoad:function(n){this.id=n.id,this.arrIndex=n.status},methods:{changeArr:function(n){console.log(n,"==="),this.arrIndex=n.detail.value},uploadImg:function(n){this.imgList.push(n)},delImg:function(n){this.imgList.splice(n,1)},uploadFile:function(n){this.fileList.push(n)},delFile:function(n){this.fileList.splice(n,1)},toSave:function(){var t=[],e=this.imgList.concat(this.fileList);e.forEach((function(n){t.push(n.id)}));var c={id:this.id,type:this.arrIndex,remark:this.remark,file:t.join(",")};(0,i.netAdvanceBusiness)(c).then((function(t){n.showToast({title:t.msg,icon:"none"}),setTimeout((function(){n.navigateBack({delta:1})}),2e3)}))}}};t.default=c}).call(this,e("543d")["default"])},c8e6:function(n,t,e){"use strict";e.r(t);var i=e("c4e4"),c=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=c.a},dffb:function(n,t,e){"use strict";e.r(t);var i=e("8de8"),c=e("c8e6");for(var o in c)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return c[n]}))}(o);e("5d12");var u=e("f0c5"),a=Object(u["a"])(c["default"],i["b"],i["c"],!1,null,"78bf47b6",null,!1,i["a"],void 0);t["default"]=a.exports}},[["5371","common/runtime","common/vendor"]]]);