1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/recommend/check"],{"44de":function(e,n,t){"use strict";(function(e){t("3690");u(t("66fd"));var n=u(t("e9f6"));function u(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},"45e1":function(e,n,t){},"70b3":function(e,n,t){"use strict";var u=t("45e1"),o=t.n(u);o.a},bc4d:function(e,n,t){"use strict";t.r(n);var u=t("e709"),o=t.n(u);for(var r in u)"default"!==r&&function(e){t.d(n,e,(function(){return u[e]}))}(r);n["default"]=o.a},e19b:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return u}));var u={uForm:function(){return t.e("uni_modules/vk-uview-ui/components/u-form/u-form").then(t.bind(null,"ce96"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/vk-uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"23cb"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(t.bind(null,"6943"))},uRadioGroup:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group")]).then(t.bind(null,"9183"))},uRadio:function(){return t.e("uni_modules/vk-uview-ui/components/u-radio/u-radio").then(t.bind(null,"0505"))},uIcon:function(){return t.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(t.bind(null,"ba35"))},uGap:function(){return t.e("uni_modules/vk-uview-ui/components/u-gap/u-gap").then(t.bind(null,"dc7f"))},uButton:function(){return t.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(t.bind(null,"ce9e"))}},o=function(){var e=this,n=e.$createElement;e._self._c},r=[]},e709:function(e,n,t){"use strict";(function(e){function t(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);n&&(u=u.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,u)}return t}function u(e){for(var n=1;n<arguments.length;n++){var u=null!=arguments[n]?arguments[n]:{};n%2?t(Object(u),!0).forEach((function(n){o(e,n,u[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(u)):t(Object(u)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(u,n))}))}return e}function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={data:function(){return{curName:"",curId:"",form:{report_code:null,report_state:"1"}}},onLoad:function(e){this.curId=e.id,this.curName=e.name},onReady:function(){this.$refs.uForm.setRules(this.rules)},methods:{getTime:function(e){var n=e?new Date(e):new Date,t=n.getFullYear(),u=n.getMonth()+1;u=u>9?u:"0"+u;var o=n.getDate();o=o>9?o:"0"+o;var r=n.getHours();r=r>9?r:"0"+r;var i=n.getMinutes();i=i>9?i:"0"+i;var c=n.getSeconds();return c=c>9?c:"0"+c,"".concat(t,"-").concat(u,"-").concat(o," ").concat(r,":").concat(i,":").concat(c)},uploadImgHandle:function(n){e.chooseImage({count:1,sizeType:["compressed"],success:function(t){var u=t.tempFilePaths[0],o=e.getStorageSync("MD_token")||"";e.uploadFile({url:e.baseUrl+"api/upload/cloud",filePath:u,name:"upload",formData:{token:o},success:function(e){var t=JSON.parse(e.data);0===t.errno?n&&"function"===typeof n&&n(t.data):uin.$msg(t.errmsg||"未知错误-".concat(t.errno))}})}})},uploadImage:function(){var e=this;this.uploadImgHandle((function(n){e.form.report_code=n.url}))},submitHandle:function(){var n=this;this.$refs.uForm.validate((function(t){if(t){var o=u(u({},n.form),{},{id:n.curId,report_at:n.getTime()});e.api.cust.apireportverify(o).then((function(n){e.$msgConfirm("编辑成功",(function(){e.reLaunch({url:"/pages/agent/recommend/list"})}),(function(){e.reLaunch({url:"/pages/agent/recommend/list"})}))}))}}))},getFormatDate:function(e){if(void 0==e||""==e)return"";var n=e;return parseInt(e)<10&&(n="0"+e),n}}};n.default=r}).call(this,t("543d")["default"])},e9f6:function(e,n,t){"use strict";t.r(n);var u=t("e19b"),o=t("bc4d");for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t("70b3");var i,c=t("f0c5"),a=Object(c["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],i);n["default"]=a.exports}},[["44de","common/runtime","common/vendor"]]]);
|