1 |
- (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 t=o(u("142c"));n.__webpack_require_UNI_MP_PLUGIN__=u,e(t.default)}).call(this,u("bc2e")["default"],u("543d")["createPage"])},"142c":function(n,e,u){"use strict";u.r(e);var o=u("37b0"),t=u("92dd");for(var i in t)["default"].indexOf(i)<0&&function(n){u.d(e,n,(function(){return t[n]}))}(i);u("3730");var r=u("f0c5"),a=Object(r["a"])(t["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"),t=u.n(o);t.a},"37b0":function(n,e,u){"use strict";u.d(e,"b",(function(){return t})),u.d(e,"c",(function(){return i})),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"))},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"))}},t=function(){var n=this.$createElement;this._self._c},i=[]},"92dd":function(n,e,u){"use strict";u.r(e);var o=u("bc9f"),t=u.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){u.d(e,n,(function(){return o[n]}))}(i);e["default"]=t.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],t=n.getStorageSync("MD_token")||"";n.uploadFile({url:n.baseUrl+"api/upload/cloud",filePath:o,name:"upload",formData:{token:t},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",t={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",t.id=e.form.id),n.api.cust[o](t).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"]]]);
|