(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/groupCompany/attachment/attachment"],{1258:function(t,e,i){"use strict";i.r(e);var n=i("248e"),a=i.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(c);e["default"]=a.a},"248e":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i("db68");var n=i("76dd"),a=i("0c59"),c={data:function(){return{file_list:[],BASE_IMG_URL:a.BASE_IMG_URL,id:"",contract_id:"",types:Number,type:1}},onLoad:function(t){this.id=t.id,this.types=t.types,this.type=t.type},onShow:function(){this.getFile()},created:function(){},methods:{getFile:function(){var t=this;if(2==this.types){var e={customer_id:this.id};(0,n.netKehuFileList)(e).then((function(e){e.data.forEach((function(t){t.disabled=!0,t.focus=!1})),t.file_list=e.data}))}else{var i={contract_id:this.id};(0,n.netContractFileList)(i).then((function(e){e.data.forEach((function(t){t.disabled=!0,t.focus=!1})),t.file_list=e.data}))}},lookDetail:function(e){-1!=e.types.indexOf("image")?t.previewImage({urls:[e.file_path]}):t.downloadFile({url:e.file_path,success:function(e){t.openDocument({filePath:e.tempFilePath,success:function(t){return console.log("成功打开文档")}})},fail:function(t){console.log(t,"shibai")}})},edit:function(t){var e=this.file_list[t];e.disabled=!1,e.focus=!0,this.file_list[t]=e},changeName:function(e){var i=this,a=(e.detail.value,e.currentTarget.dataset.index),c={id:this.file_list[a].id,name:this.file_list[a].name};(0,n.netEditFileName)(c).then((function(e){t.showToast({title:e.msg,icon:"none"}),setTimeout((function(){i.getFile()}),2e3)}))}}};e.default=c}).call(this,i("543d")["default"])},"25c7":function(t,e,i){"use strict";var n=i("35ee"),a=i.n(n);a.a},"35ee":function(t,e,i){},"87f9":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},a=[]},aefc:function(t,e,i){"use strict";(function(t,e){var n=i("4ea4");i("8886");n(i("66fd"));var a=n(i("cdef"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},cdef:function(t,e,i){"use strict";i.r(e);var n=i("87f9"),a=i("1258");for(var c in a)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(c);i("25c7");var o=i("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"71101391",null,!1,n["a"],void 0);e["default"]=u.exports}},[["aefc","common/runtime","common/vendor"]]]);