12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/contractDetail/contractDetail"],{296:function(n,t,e){"use strict";(function(n,t){var i=e(4);e(26);i(e(25));var o=i(e(297));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e(1)["default"],e(2)["createPage"])},297:function(n,t,e){"use strict";e.r(t);var i=e(298),o=e(300);for(var a in o)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(a);e(302);var c,r=e(32),u=Object(r["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],c);u.options.__file="pages/contractDetail/contractDetail.vue",t["default"]=u.exports},298:function(n,t,e){"use strict";e.r(t);var i=e(299);e.d(t,"render",(function(){return i["render"]})),e.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(t,"components",(function(){return i["components"]}))},299:function(n,t,e){"use strict";var i;e.r(t),e.d(t,"render",(function(){return o})),e.d(t,"staticRenderFns",(function(){return c})),e.d(t,"recyclableRender",(function(){return a})),e.d(t,"components",(function(){return i}));try{i={uvSticky:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uv-sticky/components/uv-sticky/uv-sticky")]).then(e.bind(null,565))},uvTabs:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uv-tabs/components/uv-tabs/uv-tabs")]).then(e.bind(null,573))},uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,412))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,t=n.$createElement,e=(n._self._c,n.detail.id&&1===n.tab.id&&n.detail.data&&"[]"!=n.detail.data?JSON.parse(n.detail.data):null),i=n.detail.id&&2===n.tab.id?n.__map(n.detail.clauseList,(function(t,e){var i=n.__get_orig(t),o=n.clauseList.find((function(n){return n.id===t.type})),a=n.clauseList.find((function(n){return n.id===t.type})).size||26,c=n.clauseList.find((function(n){return n.id===t.type}));return{$orig:i,g0:o,g1:a,g2:c}})):null;n.$mp.data=Object.assign({},{$root:{l0:e,l1:i}})},a=!1,c=[];o._withStripped=!0},300:function(n,t,e){"use strict";e.r(t);var i=e(301),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(a);t["default"]=o.a},301:function(n,t,e){"use strict";var i=e(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=e(277),a=i(e(44)),c=function(){e.e("components/contract/clauseDetail").then(function(){return resolve(e(582))}.bind(null,e)).catch(e.oe)},r=function(){Promise.all([e.e("common/vendor"),e.e("components/common/upload")]).then(function(){return resolve(e(548))}.bind(null,e)).catch(e.oe)},u=function(){Promise.all([e.e("common/vendor"),e.e("components/contract/steps")]).then(function(){return resolve(e(587))}.bind(null,e)).catch(e.oe)},d={data:function(){return{list:[{id:1,name:"基本信息"},{id:2,name:"费用条款"},{id:3,name:"合同文本"},{id:4,name:"合同节点"}],tab:{id:1,name:"基本信息"},clauseList:[{id:1,name:"租期条款",iconfont:"icon-zulinguihuan_fu"},{id:2,name:"保证金条款",iconfont:"icon-baozhengjin",size:"22"},{id:3,name:"递增条款",iconfont:"icon-dengdaiwenjian"},{id:4,name:"优惠条款",iconfont:"icon-bianjiwenjian"}],detail:{},contractId:"",documentFileList:{document:[],attachment:[]}}},onLoad:function(n){n.contractId&&(this.contractId=n.contractId),this.init()},methods:{init:function(){var n=this;this.contractId&&(0,o.getContractDetailById)(this.contractId).then((function(t){200===t.code&&(n.detail=t.data,n.documentFileList={document:n.detail.document?JSON.parse(n.detail.document):[],attachment:n.detail.attachment?JSON.parse(n.detail.attachment):[]})}))},changeTab:function(n){this.tab=this.list[n.index]},openDocument:function(n){if(this.detail.status>1){var t=a.default.baseUrl+"/file/archived/"+n.id+"/pdf.pdf";this.$navigateTo("/pages/pdf/pdf?fileUrl="+t+"&titleName="+n.name)}else this.$navigateTo("/pages/webview/webview?id="+n.id+"&contractId="+this.detail.id)}},components:{clauseDetail:c,upload:r,steps:u}};t.default=d},302:function(n,t,e){"use strict";e.r(t);var i=e(303),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(a);t["default"]=o.a},303:function(n,t,e){}},[[296,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/contractDetail/contractDetail.js.map
|