(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/trade/recordedit"],{"03ce":function(n,e,u){},"0ed3":function(n,e,u){"use strict";(function(n,e){var o=u("4ea4");u("2ab2");o(u("66fd"));var i=o(u("142c"));n.__webpack_require_UNI_MP_PLUGIN__=u,e(i.default)}).call(this,u("bc2e")["default"],u("543d")["createPage"])},"142c":function(n,e,u){"use strict";u.r(e);var o=u("3b61"),i=u("92dd");for(var t in i)["default"].indexOf(t)<0&&function(n){u.d(e,n,(function(){return i[n]}))}(t);u("3730");var r=u("f0c5"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=a.exports},3730:function(n,e,u){"use strict";var o=u("03ce"),i=u.n(o);i.a},"3b61":function(n,e,u){"use strict";u.d(e,"b",(function(){return i})),u.d(e,"c",(function(){return t})),u.d(e,"a",(function(){return o}));var o={uForm:function(){return u.e("uni_modules/vk-uview-ui/components/u-form/u-form").then(u.bind(null,"e893"))},uFormItem:function(){return Promise.all([u.e("common/vendor"),u.e("uni_modules/vk-uview-ui/components/u-form-item/u-form-item")]).then(u.bind(null,"a81d"))},uInput:function(){return Promise.all([u.e("common/vendor"),u.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(u.bind(null,"830c"))},uRadioGroup:function(){return Promise.all([u.e("common/vendor"),u.e("uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group")]).then(u.bind(null,"f0c0"))},uRadio:function(){return u.e("uni_modules/vk-uview-ui/components/u-radio/u-radio").then(u.bind(null,"79d4"))},uIcon:function(){return u.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(u.bind(null,"ccaa"))},uGap:function(){return u.e("uni_modules/vk-uview-ui/components/u-gap/u-gap").then(u.bind(null,"9db7"))},uButton:function(){return u.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(u.bind(null,"51b1b"))},uToast:function(){return u.e("uni_modules/vk-uview-ui/components/u-toast/u-toast").then(u.bind(null,"9568"))},uCalendar:function(){return u.e("uni_modules/vk-uview-ui/components/u-calendar/u-calendar").then(u.bind(null,"6028"))}},i=function(){var n=this.$createElement;this._self._c},t=[]},"92dd":function(n,e,u){"use strict";u.r(e);var o=u("bc9f"),i=u.n(o);for(var t in o)["default"].indexOf(t)<0&&function(n){u.d(e,n,(function(){return o[n]}))}(t);e["default"]=i.a},bc9f:function(n,e,u){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;u("66f6");var o={data:function(){return{info1Show:!1,form:{info1:"",info2:"",info3:"1",info4:null,remark:null},trade_id:null,rules:{remark:[{required:!0,message:"备注不能为空",trigger:["change"]}]},remarkTips:"请输入"}},onLoad:function(n){this.trade_id=n.id},created:function(){},onReady:function(){this.$refs.uForm.setRules(this.rules)},methods:{uploadImgHandle:function(e){n.chooseImage({count:1,sizeType:["compressed"],success:function(u){var o=u.tempFilePaths[0],i=n.getStorageSync("MD_token")||"";n.uploadFile({url:n.baseUrl+"api/upload/cloud",filePath:o,name:"upload",formData:{token:i},success:function(u){var o=JSON.parse(u.data);0===o.errno?e&&"function"===typeof e&&e(o.data):n.$msg(o.errmsg||"未知错误-".concat(o.errno))}})}})},uploadInfo4Image:function(){var n=this;this.uploadImgHandle((function(e){n.form.info4=e.url,n.info4=e.url}))},openinfo1Popoup:function(){this.info1Show=!0},info1Change:function(n){this.form.info1=n.result||""},submitHandle:function(){var e=this;this.$refs.uForm.validate((function(u){if(u){var o="apitraderecordadd",i={remark:e.form.remark,info1:e.form.info1||"",info2:e.form.info2||"",info3:e.form.info3||"1",info4:e.form.info4||"",trade_id:e.trade_id};e.isEdit&&(o="apitraderecordedit",i.id=e.form.id),n.api.cust[o](i).then((function(u){e.isEdit?n.$msgConfirm("编辑成功",(function(){n.navigateBack()}),(function(){n.navigateBack()})):n.$msgConfirm("添加跟进记录成功,是否前往列表？",(function(){n.navigateBack()}),(function(){e.imgArr=[],e.form={remark:null}}))}))}else console.log("验证失败")}))}}};e.default=o}).call(this,u("543d")["default"])}},[["0ed3","common/runtime","common/vendor"]]]);