11 lines
5.9 KiB
JavaScript
11 lines
5.9 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/form/formitem"],{"1eba":function(t,e,i){"use strict";var n=i("735f"),a=i.n(n);a.a},"2d17":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uRate:function(){return i.e("uview-ui/components/u-rate/u-rate").then(i.bind(null,"71b2"))},tkiTree:function(){return i.e("components/tki-tree/tki-tree").then(i.bind(null,"91a3"))},uSelect:function(){return i.e("uview-ui/components/u-select/u-select").then(i.bind(null,"ef3c"))}},a=function(){var t=this,e=t.$createElement,i=(t._self._c,"checkbox"!=t.objInfo.component||1!=t.objInfo.config.required&&t.isNotRequired?null:t.__map(t.objInfo.config.content,(function(e,i){var n=t.__get_orig(e),a=t.objInfo.value.indexOf(e.value);return{$orig:n,g0:a}})));t.$mp.data=Object.assign({},{$root:{l0:i}})},o=[]},7303:function(t,e,i){"use strict";var n=i("8f1f"),a=i.n(n);a.a},"735f":function(t,e,i){},7697:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("c7eb"),a=(i("ab23"),{props:{objInfo:{type:Object,default:{}},isEdit:{type:Boolean,default:!0},height:{type:Number,default:300},autoHeight:{type:Boolean,default:!1},index:{type:Number,default:null},isNotRequired:{type:Boolean,default:!1}},components:{tkiTree:function(){i.e("components/tki-tree/tki-tree").then(function(){return resolve(i("91a3"))}.bind(null,i)).catch(i.oe)},uploadImage:function(){i.e("components/uploadImg/index").then(function(){return resolve(i("8391"))}.bind(null,i)).catch(i.oe)},uploadFile:function(){i.e("components/uploadFile/index").then(function(){return resolve(i("9d85"))}.bind(null,i)).catch(i.oe)}},data:function(){return{dateTimeArray:[],dateArr:[],dateTime:[],addressList:[],show:!1}},computed:{},watch:{},created:function(){"TimePicker"==this.objInfo.component&&this.initTime()},onShow:function(){},methods:{changeInput:function(t){var e=this.objInfo.id,i=t.detail.value;this.$emit("changeData",e,i,this.objInfo)},changeSelect:function(){this.isEdit&&this.$refs.tkitree._show()},selectTree:function(t){var e=[];t.forEach((function(t){e.push(t.label)}));var i=this.objInfo.id;this.$emit("changeData",i,e.join(","),this.objInfo)},changeRate:function(t){var e=t,i=this.objInfo.id;this.$emit("changeData",i,e,this.objInfo)},changeTextarea:function(t){var e=this.objInfo.id,i=t.detail.value;this.$emit("changeData",e,i,this.objInfo)},changeRadio:function(t){var e=t.detail.value,i=this.objInfo.id;this.$emit("changeData",i,e,this.objInfo)},changeCheckbox:function(t){var e=this.objInfo.id;this.$emit("changeCheckboxs",e,t.detail.value,this.objInfo)},changeAddress:function(t){var e=t.detail.value[0];if(-1!=e.indexOf("市")){var i=e.indexOf("市");e=e.substring(0,i)}var n=e+"/"+t.detail.value[1]+"/"+t.detail.value[2],a=this.objInfo.id;this.$emit("changeData",a,n,this.objInfo)},confirm:function(t){var e=t[0].label+t[1].label+t[2].label,i=this.objInfo.id;this.$emit("changeData",i,e,this.objInfo)},changeDate:function(t){var e=t.detail.value,i=this.objInfo.id;this.$emit("changeData",i,e,this.objInfo)},withData:function(t){return t<10?"0"+t:""+t},initTime:function(){var t=new Date,e=t.getFullYear(),i=this.withData(t.getMonth()+1),a=this.withData(t.getDate()),o=this.withData(t.getHours()),r=this.withData(t.getMinutes()),u=this.withData(t.getSeconds()),c={},s=e+"-"+i+"-"+a+" "+o+":"+r+":"+u;c="order_date"==this.objInfo.id?(0,n.dateTimePicker)(7,2015,e,s):(0,n.dateTimePicker)();c.dateTimeArray.pop(),c.dateTime.pop(),c.dateArray.pop();this.dateTimeArray=c.dateTimeArray,this.dateArr=c.dateArray,this.dateTime=c.dateTime},changeColumn:function(t){var e=t.detail.column,i=t.detail.value;if(1==e){var a=this.dateArr[e][i],o=new Date,r=o.getFullYear(),u=r+"-"+a+"-01 00:00:00",c={};c="order_date"==this.objInfo.id?(0,n.dateTimePicker)(7,2015,r,u):(0,n.dateTimePicker)();c.dateTimeArray.pop(),c.dateTime.pop(),c.dateArray.pop();this.dateTimeArray=c.dateTimeArray,this.dateArr=c.dateArray,this.dateTime=c.dateTime}},changeTime:function(e){var i=e.detail.value;if(i.includes(-1))t.showToast({title:"请选择正确的时间",icon:"none"});else{var n=this.handleTime(i),a=this.objInfo.id;this.$emit("changeData",a,n,this.objInfo,this.index)}},changeAlipayTime:function(t){var e=this.objInfo.id;this.$emit("changeData",e,t.detail.value,this.objInfo)},handleTime:function(t){var e=this.dateArr[0][t[0]],i=this.dateArr[1][t[1]],n=this.dateArr[2][t[2]],a=this.dateArr[3][t[3]],o=this.dateArr[4][t[4]],r=e+"-"+i+"-"+n+" "+a+":"+o;return r},uploadImg:function(t){var e=this.objInfo.id,i=this.objInfo.value?this.objInfo.value:[];i.push(t),this.$emit("changeData",e,i,this.objInfo)},delImg:function(t){var e=this.objInfo.id,i=this.objInfo.value;i.splice(t,1),this.$emit("changeData",e,i,this.objInfo)},uploadFile:function(t){var e=this.objInfo.id,i=this.objInfo.value?this.objInfo.value:[];i.push(t),this.$emit("changeData",e,i,this.objInfo)},delFile:function(t){var e=this.objInfo.id,i=this.objInfo.value;i.splice(t,1),this.$emit("changeData",e,i,this.objInfo)}}});e.default=a}).call(this,i("543d")["default"])},"8f1f":function(t,e,i){},d1b5:function(t,e,i){"use strict";i.r(e);var n=i("7697"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},d7bf:function(t,e,i){"use strict";i.r(e);var n=i("2d17"),a=i("d1b5");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7303"),i("1eba");var r=i("f0c5"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"09ea0031",null,!1,n["a"],void 0);e["default"]=u.exports}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/form/formitem-create-component',
|
|
{
|
|
'components/form/formitem-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('543d')['createComponent'](__webpack_require__("d7bf"))
|
|
})
|
|
},
|
|
[['components/form/formitem-create-component']]
|
|
]);
|