crm_second_opening_mini/pagesA/work/approve/approveDetail.js

1 line
2.6 KiB
JavaScript

require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/work/approve/approveDetail"],{"402c":function(t,n,e){},"69e3":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},i=[]},7994:function(t,n,e){"use strict";e.r(n);var a=e("9b33"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},"9b33":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e("dc92"),i=e("0c59"),o={components:{formItem:function(){Promise.all([e.e("common/vendor"),e.e("components/form/formitem")]).then(function(){return resolve(e("d7bf"))}.bind(null,e)).catch(e.oe)},approvalStatus:function(){e.e("components/approvalStatus").then(function(){return resolve(e("b975"))}.bind(null,e)).catch(e.oe)}},data:function(){return{BASE_IMG_URL:i.BASE_IMG_URL,noClick:!0,id:"",formid:"",detail:{},info:{},listForm:[],payment_approval:{}}},onLoad:function(t){this.id=t.id},onShow:function(){this.getDetail(),this.getApprovalList()},methods:{getApprovalList:function(){var t=this,n={type:"approval",relation_id:this.id};(0,a.netApprovalDetail)(n).then((function(n){t.payment_approval=n.data}))},getDetail:function(){var n=this;(0,a.netWorkExamineDetail)({id:this.id}).then((function(e){n.detail=e.data,n.info=e.data.content,t.setNavigationBarTitle({title:e.data.formapproval.name}),n.getForm()}))},getForm:function(){var t=this;(0,a.netWorkExamineForm)({id:this.detail.formapproval.id}).then((function(n){console.log(n),n=n.data.data,n.forEach((function(n){n.value=t.info[n.id]})),t.listForm=n}))},toPass:function(n){t.navigateTo({url:"/pages/examine/examine?status=1&id="+this.id+"&type=approval"})},toRefuse:function(){t.navigateTo({url:"/pages/examine/examine?status=2&id="+this.id+"&type=approval"})},toPriveImg:function(n,e){t.previewImage({urls:n,current:e})}}};n.default=o}).call(this,e("543d")["default"])},d103:function(t,n,e){"use strict";(function(t,n){var a=e("4ea4");e("8886");a(e("66fd"));var i=a(e("dc3b"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},dc3b:function(t,n,e){"use strict";e.r(n);var a=e("69e3"),i=e("7994");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("f9b1");var r=e("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"7d16d13c",null,!1,a["a"],void 0);n["default"]=c.exports},f9b1:function(t,n,e){"use strict";var a=e("402c"),i=e.n(a);i.a}},[["d103","common/runtime","common/vendor"]]]);