(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/recommend/check"],{1759:function(e,n,t){},"7e00":function(e,n,t){"use strict";(function(e,n){var r=t("4ea4");t("2ab2");r(t("66fd"));var o=r(t("d4f7"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},ad8d:function(e,n,t){"use strict";var r=t("1759"),o=t.n(r);o.a},d4f7:function(e,n,t){"use strict";t.r(n);var r=t("eec9"),o=t("daeb");for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);t("ad8d");var i=t("f0c5"),a=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=a.exports},daeb:function(e,n,t){"use strict";t.r(n);var r=t("ee50"),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=o.a},ee50:function(e,n,t){"use strict";(function(e){var r=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t("9523"));function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,o.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var a={data:function(){return{otherRemark:"",eId:"",curName:"",curId:"",form:{report_code:null,report_state:"1"}}},onLoad:function(e){this.curId=e.id,this.eId=e.eid,this.curName=e.name},onReady:function(){this.$refs.uForm.setRules(this.rules)},methods:{setDefaultImg:function(){this.form.report_code="https://img.fangpiaovip.com/20230209031226-7200.png"},getTime:function(e){var n=e?new Date(e):new Date,t=n.getFullYear(),r=n.getMonth()+1;r=r>9?r:"0"+r;var o=n.getDate();o=o>9?o:"0"+o;var u=n.getHours();u=u>9?u:"0"+u;var i=n.getMinutes();i=i>9?i:"0"+i;var a=n.getSeconds();return a=a>9?a:"0"+a,"".concat(t,"-").concat(r,"-").concat(o," ").concat(u,":").concat(i,":").concat(a)},uploadImgHandle:function(n){e.chooseImage({count:1,sizeType:["compressed"],success:function(t){var r=t.tempFilePaths[0],o=e.getStorageSync("MD_token")||"";e.uploadFile({url:e.baseUrl+"api/upload/cloud",filePath:r,name:"upload",formData:{token:o},success:function(t){var r=JSON.parse(t.data);0===r.errno?n&&"function"===typeof n&&n(r.data):e.$msg(r.errmsg||"未知错误-".concat(r.errno))}})}})},uploadImage:function(){var e=this;this.uploadImgHandle((function(n){e.form.report_code=n.url}))},submitHandle:function(){var n=this.form.remark||"";if("其他原因"===n&&(n=this.otherRemark),1==this.form.report_state){if(2!=this.eId&&!this.form.report_code)return void e.$msg("非江投项目，请上传报备二维码~")}else if(!n)return void e.$msg("报备无效请备注原因");var t=this;this.$refs.uForm.validate((function(r){if(r){var o=i(i({},t.form),{},{id:t.curId,report_at:t.getTime(),remark:n});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=a}).call(this,t("543d")["default"])},eec9:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){return r}));var r={uForm:function(){return t.e("uni_modules/vk-uview-ui/components/u-form/u-form").then(t.bind(null,"e893"))},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,"a81d"))},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,"830c"))},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,"f0c0"))},uRadio:function(){return t.e("uni_modules/vk-uview-ui/components/u-radio/u-radio").then(t.bind(null,"79d4"))},uIcon:function(){return t.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(t.bind(null,"ccaa"))},uGap:function(){return t.e("uni_modules/vk-uview-ui/components/u-gap/u-gap").then(t.bind(null,"9db7"))},uButton:function(){return t.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(t.bind(null,"51b1b"))}},o=function(){var e=this.$createElement;this._self._c},u=[]}},[["7e00","common/runtime","common/vendor"]]]);