(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["components-goods-sp-goods-group"],{1939:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-input[data-v-22f87c42]{display:flex;flex-direction:row;position:relative;flex:1}.tn-input__input[data-v-22f87c42]{font-size:%?28?%;color:#080808;flex:1}.tn-input__textarea[data-v-22f87c42]{width:auto;font-size:%?28?%;color:#080808;padding:%?10?% 0;line-height:normal;flex:1}.tn-input--border[data-v-22f87c42]{border-radius:%?6?%;border:%?2?% solid rgba(0,0,0,.1)}.tn-input--error[data-v-22f87c42]{border-color:#e83a30!important}.tn-input__right-icon[data-v-22f87c42]{line-height:1}.tn-input__right-icon .icon[data-v-22f87c42]{color:#aaa}.tn-input__right-icon__item[data-v-22f87c42]{margin-left:%?10?%}.tn-input__right-icon__clear .icon[data-v-22f87c42]{font-size:%?32?%}.tn-input__right-icon__select[data-v-22f87c42]{transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.tn-input__right-icon__select .icon[data-v-22f87c42]{font-size:%?26?%}.tn-input__right-icon__select--reverse[data-v-22f87c42]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}',""]),t.exports=e},2634:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ e.default=function(){return t};var t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(O){u=function(t,e,n){return t[e]=n}}function d(t,e,n,i){var a=e&&e.prototype instanceof h?e:h,o=Object.create(a.prototype),c=new k(i||[]);return r(o,"_invoke",{value:S(t,n,c)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=d;var p={};function h(){}function v(){}function m(){}var g={};u(g,c,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y($([])));b&&b!==n&&a.call(b,c)&&(g=b);var x=m.prototype=h.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var n;r(this,"_invoke",{value:function(r,o){function c(){return new e((function(n,c){(function n(r,o,c,l){var s=f(t[r],t,o);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==(0,i.default)(d)&&a.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,c,l)}),(function(t){n("throw",t,c,l)})):e.resolve(d).then((function(t){u.value=t,c(u)}),(function(t){return n("throw",t,c,l)}))}l(s.arg)})(r,o,n,c)}))}return n=n?n.then(c,c):c()}})}function S(t,e,n){var i="suspendedStart";return function(a,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===a)throw r;return I()}for(n.method=a,n.arg=r;;){var o=n.delegate;if(o){var c=C(o,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=f(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function C(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=f(i,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,p;var r=a.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function $(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var c=a.call(r,"catchLoc"),l=a.call(r,"finallyLoc");if(c&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var a=i.arg;L(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:$(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t},n("6a54"),n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("3872e"),n("4e9b"),n("114e"),n("c240"),n("926e"),n("7a76"),n("c9b5"),n("aa9c"),n("2797"),n("8a8d"),n("dc69"),n("f7a5");var i=function(t){return t&&t.__esModule?t:{default:t}}(n("fcf3"))},"2fdc":function(t,e,n){"use strict";function i(t,e,n,i,a,r,o){try{var c=t[r](o),l=c.value}catch(s){return void n(s)}c.done?e(l):Promise.resolve(l).then(i,a)}n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var o=t.apply(e,n);function c(t){i(o,a,r,c,l,"next",t)}function l(t){i(o,a,r,c,l,"throw",t)}c(void 0)}))}},n("bf0f")},"42ea":function(t,e,n){"use strict";n.r(e);var i=n("de52"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"502e":function(t,e,n){"use strict";n.r(e);var i=n("8687"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"57ff":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.addGroupList[data-v-92194152]{background-color:#f9f9f9;margin:%?20?% 0;border-radius:8px}.goods-material[data-v-92194152]{background:#f1f5f9;padding:0 %?38?% %?1?% %?38?%;border-radius:%?10?%;margin-bottom:%?24?%}.flex-center[data-v-92194152]{display:flex;justify-content:center;align-items:center}.font-blue[data-v-92194152]{color:#1398fd}.btns[data-v-92194152]{color:#1398fd;display:flex;align-items:center;justify-content:space-between}.btns .icon[data-v-92194152]{font-size:%?42?%;color:#1398fd}.btns uni-button[data-v-92194152]{font-size:%?32?%;background:none;margin:0;padding:0}.btns .confirm-btn[data-v-92194152]{width:%?120?%;height:%?64?%;background:#33aafc;border-radius:%?10?%;color:#fff}.btns .confirm-btn.disabled[data-v-92194152]{background:#c7c7c7}.group[data-v-92194152]:not(:last-child){border-bottom:1px solid #c7c7c7}.form-item[data-v-92194152]{display:flex;margin-bottom:%?30?%;align-items:center;margin-top:%?30?%;position:relative}.form-item .label[data-v-92194152]{font-size:%?26?%;color:#333;width:%?180?%;text-align:right}.form-item[data-v-92194152] .tn-input{width:%?454?%;height:%?88?%;background:#fff;border-radius:%?10?%;border:%?1?% solid #d9d9d9;color:#555;font-size:%?30?%;line-height:1;padding-left:%?28?%}.form-item[data-v-92194152] .tn-input uni-input{height:%?88?%;padding-left:%?20?%}.form-item .unit[data-v-92194152]{font-size:%?30?%;color:#333;position:absolute;top:%?24?%;right:%?28?%}',""]),t.exports=e},6864:function(t,e,n){"use strict";n.r(e);var i=n("a6a5"),a=n("502e");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("e370");var o=n("828b"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"22f87c42",null,!1,i["a"],void 0);e["default"]=c.exports},"750c":function(t,e,n){var i=n("1939");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("dce1f50a",i,!0,{sourceMap:!1,shadowMode:!1})},8687:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa"),n("0c26");var a=i(n("a7d1")),r={mixins:[a.default],name:"tn-input",props:{value:{type:[String,Number],default:""},type:{type:String,default:"text"},inputAlign:{type:String,default:"left"},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:"color: #AAAAAA"},disabled:{type:Boolean,default:!1},maxLength:{type:Number,default:255},height:{type:Number,default:0},autoHeight:{type:Boolean,default:!0},confirmType:{type:String,default:"done"},customStyle:{type:Object,default:function(){return{}}},fixed:{type:Boolean,default:!1},focus:{type:Boolean,default:!1},passwordIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#dcdfe6"},selectOpen:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},cursorSpacing:{type:Number,default:0},selectionStart:{type:Number,default:-1},selectionEnd:{type:Number,default:-1},trim:{type:Boolean,default:!0},showConfirmBar:{type:Boolean,default:!0},showRightIcon:{type:Boolean,default:!1},rightIcon:{type:String,default:""}},computed:{inputStyle:function(){var t={};return t.minHeight=this.height?this.height+"rpx":"textarea"===this.type?this.textareaHeight+"rpx":this.inputHeight+"rpx",t=Object.assign(t,this.customStyle),t},elSelectionStart:function(){return String(this.selectionStart)},elSelectionEnd:function(){return String(this.selectionEnd)}},data:function(){return{defaultValue:this.value,inputHeight:70,textareaHeight:100,validateState:!1,focused:!1,showPassword:!1,lastValue:""}},watch:{value:function(t,e){this.defaultValue=t,t!==e&&"select"===this.type&&this.handleInput({detail:{value:t}})}},created:function(){this.$on("on-form-item-error",this.onFormItemError)},methods:{handleInput:function(t){var e=this,n=t.detail.value;this.trim&&(n=this.$t.string.trim(n)),this.$emit("input",n),this.defaultValue=n,setTimeout((function(){e.dispatch("tn-form-item","on-form-change",n)}),40)},handleBlur:function(t){var e=this,n=t.detail.value;setTimeout((function(){e.focused=!1}),100),this.$emit("blur",n),setTimeout((function(){e.dispatch("tn-form-item","on-form-blur",n)}),40)},onFormItemError:function(t){this.validateState=t},onFocus:function(t){this.focused=!0,this.$emit("focus")},onConfirm:function(t){this.$emit("confirm",t.detail.value)},onClear:function(t){this.$emit("input","")},inputClick:function(){this.$emit("click")}}};e.default=r},a6a5:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"tn-input-class tn-input",class:{"tn-input--border":t.border,"tn-input--error":t.validateState},style:{padding:"0 "+(t.border?20:0)+"rpx",borderColor:t.borderColor,textAlign:t.inputAlign},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.inputClick.apply(void 0,arguments)}}},["textarea"===t.type?n("v-uni-textarea",{staticClass:"tn-input__input tn-input__textarea",style:[t.inputStyle],attrs:{value:t.defaultValue,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled||"select"===t.type,maxlength:t.maxLength,fixed:t.fixed,focus:t.focus,autoHeight:t.autoHeight,selectionStart:t.elSelectionStart,selectionEnd:t.elSelectionEnd,cursorSpacing:t.cursorSpacing,showConfirmBar:t.showConfirmBar},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}):n("v-uni-input",{staticClass:"tn-input__input",style:[t.inputStyle],attrs:{type:"password"===t.type?"text":t.type,value:t.defaultValue,password:"password"===t.type&&!t.showPassword,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled||"select"===t.type,maxlength:t.maxLength,focus:t.focus,confirmType:t.confirmType,selectionStart:t.elSelectionStart,selectionEnd:t.elSelectionEnd,cursorSpacing:t.cursorSpacing,showConfirmBar:t.showConfirmBar},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"tn-input__right-icon tn-flex tn-flex-col-center"},[t.clearable&&""!==t.value&&t.focused?n("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__clear",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClear.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"icon tn-icon-close"})],1):"text"===t.type&&!t.focused&&t.showRightIcon&&""!==t.rightIcon?n("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__clear"},[n("v-uni-view",{staticClass:"icon",class:["tn-icon-"+t.rightIcon]})],1):t._e(),t.passwordIcon&&"password"===t.type?n("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__clear",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPassword=!t.showPassword}}},[t.showPassword?n("v-uni-view",{staticClass:"icon tn-icon-eye"}):n("v-uni-view",{staticClass:"tn-icon-eye-hide"})],1):t._e(),"select"===t.type?n("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__select",class:{"tn-input__right-icon__select--reverse":t.selectOpen}},[n("v-uni-view",{staticClass:"icon tn-icon-up-triangle"})],1):t._e()],1)],1)},a=[]},a6c6:function(t,e,n){"use strict";var i=n("ac9a"),a=n.n(i);a.a},ac9a:function(t,e,n){var i=n("57ff");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("fa09bad0",i,!0,{sourceMap:!1,shadowMode:!1})},c6a1:function(t,e,n){"use strict";n.r(e);var i=n("ea4a3"),a=n("42ea");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("a6c6");var o=n("828b"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"92194152",null,!1,i["a"],void 0);e["default"]=c.exports},de52:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("39d8"));n("bf0f"),n("2797"),n("aa9c"),n("dd2b");var r={name:"sp-goods-group",props:{groupList:[Array],disabled:Boolean},data:function(){return{action:uni.getStorageSync("base_url")+"/api/upload/image",dataList:[],groupName:"分组名",editing:!1,typeList:[{id:2,name:"可选择",disabled:!1},{id:1,name:"包含(不可选)",disabled:!1}],groupType:1,materialImage:[]}},computed:{},watch:{groupList:function(t){var e=this;this.dataList=t,this.dataList&&Array.isArray(this.dataList)&&this.dataList.forEach((function(t,n){if(t.materials&&Array.isArray(t.materials)){var i=[];t.materials.forEach((function(t,e){t.image&&i.push({url:t.image})})),e.materialImage.push((0,a.default)({},n,i))}})),console.log("materialImage",this.materialImage)}},methods:{radioChange:function(t){},radioGroupChange:function(t){},editGroupName:function(){this.editing=!0},saveGroupName:function(){this.editing=!1},handleAdd:function(){this.dataList.push({id:0,title:"分组名称",type:1,max_quantity:1,min_quantity:1,materials:[{id:0,name:"小料名",price:0,image:""}]})},onDelGroup:function(t){this.dataList.splice(t,1)},addMaterial:function(t){console.log("groupIdx",this.dataList[t]),this.dataList[t]&&this.dataList[t].materials?this.dataList[t].materials.push({id:0,name:"小料名",price:0,image:""}):console.error("Group or materials is not defined")},removeMaterial:function(t,e){this.dataList[t].materials.splice(e,1),console.log("删除料品",this.dataList)},sucMaterial:function(t,e,n){this.dataList[t].materials[e].image=n.data.uri},reMaterial:function(t,e){this.dataList[t].materials[e].image=[],console.log("删除图片",this.dataList)}}};e.default=r},e370:function(t,e,n){"use strict";var i=n("750c"),a=n.n(i);a.a},ea4a3:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={tnRadioGroup:n("439e").default,tnRadio:n("bc0f").default,tnInput:n("6864").default,tnImageUpload:n("713d").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"goods-material"},[t.disabled?t._e():n("v-uni-view",{staticClass:"btns tn-flex tn-flex-col-center tn-flex-row-between"},[n("v-uni-button",{staticClass:"font-blue flex-center tn-flex tn-flex-col-center tn-flex-row-between",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleAdd.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"tn-icon-add-circle icon"}),n("v-uni-view",[t._v("添加加料分组")])],1),n("v-uni-button",{staticClass:"confirm-btn flex-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.updateData(t.dataList)}}},[t._v("保存")])],1),n("v-uni-view",{staticClass:"list"},t._l(t.dataList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"group"},[n("v-uni-view",{staticClass:"addGroupList"},[n("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center",staticStyle:{"background-color":"rgb(237, 240, 244)","border-radius":"8px 8px 0 0",padding:"15rpx","font-size":"14px"}},[t.editing?t._e():n("v-uni-view",[t._v(t._s(e.title)),n("v-uni-text",{staticClass:"tn-icon-write",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.editGroupName.apply(void 0,arguments)}}})],1),t.editing?n("v-uni-input",{attrs:{type:"text"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.saveGroupName.apply(void 0,arguments)},keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;arguments[0]=e=t.$handleEvent(e),t.saveGroupName.apply(void 0,arguments)}},model:{value:e.title,callback:function(n){t.$set(e,"title",n)},expression:"item.title"}}):t._e(),n("v-uni-view",{staticStyle:{color:"#fc6464"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onDelGroup(i)}}},[n("v-uni-text",{staticClass:"tn-icon-delete"}),t._v("删除分组")],1)],1),n("v-uni-view",{staticStyle:{padding:"15rpx"}},[n("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center tn-margin-bottom-xs"},[n("v-uni-view",{staticStyle:{"margin-right":"30rpx"}},[t._v("分组类型")]),n("v-uni-view",{staticStyle:{"flex-grow":"1"}},[n("tn-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.radioGroupChange.apply(void 0,arguments)}},model:{value:e.type,callback:function(n){t.$set(e,"type",n)},expression:"item.type"}},t._l(t.typeList,(function(e,i){return n("tn-radio",{key:i,attrs:{name:e.id,disabled:e.disabled,labelSize:25},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.radioChange.apply(void 0,arguments)}}},[t._v(t._s(e.name))])})),1)],1)],1),2==e.type?n("v-uni-view",{staticClass:"tn-flex tn-margin-bottom-xs"},[n("v-uni-view",{staticClass:"tn-flex tn-padding-xs tn-margin-right-sm tn-flex-1",staticStyle:{border:"1px solid #cbcbcb","border-radius":"4px"}},[n("v-uni-view",{staticClass:"tn-margin-right-sm tn-padding-left-sm tn-padding-right-sm tn-border-solid-right",staticStyle:{"border-radius":"0"}},[t._v("最多")]),n("tn-input",{attrs:{type:"number",placeholder:"输入个数",height:20},model:{value:e.max_quantity,callback:function(n){t.$set(e,"max_quantity",n)},expression:"item.max_quantity"}})],1),n("v-uni-view",{staticClass:"tn-flex tn-padding-xs tn-flex-1",staticStyle:{border:"1px solid #cbcbcb","border-radius":"4px"}},[n("v-uni-view",{staticClass:"tn-margin-right-sm tn-padding-left-sm tn-padding-right-sm tn-border-solid-right",staticStyle:{"border-radius":"0"}},[t._v("最少")]),n("tn-input",{attrs:{type:"number",placeholder:"输入个数",height:20},model:{value:e.min_quantity,callback:function(n){t.$set(e,"min_quantity",n)},expression:"item.min_quantity"}})],1)],1):t._e()],1),n("v-uni-view",{staticClass:"tn-margin-bottom-sm",staticStyle:{padding:"0 15rpx"}},[t._v("料品列表")]),n("v-uni-view",{staticStyle:{padding:"0 15rpx 15rpx 15rpx"}},[t._l(e.materials,(function(a,r){return n("v-uni-view",{key:r,staticClass:"tn-flex tn-flex-row-between"},[t.materialImage[i]&&t.materialImage[i][i]&&t.materialImage[i][i][r]?n("tn-image-upload",{attrs:{fileList:[t.materialImage[i][i][r]],maxCount:1,action:t.action,height:150,width:150},on:{"on-success":function(e){arguments[0]=e=t.$handleEvent(e),t.sucMaterial(i,r,e)},"on-remove":function(e){arguments[0]=e=t.$handleEvent(e),t.reMaterial(i,r)}}}):n("tn-image-upload",{attrs:{fileList:null,maxCount:1,action:t.action,height:150,width:150},on:{"on-success":function(e){arguments[0]=e=t.$handleEvent(e),t.sucMaterial(i,r,e)},"on-remove":function(e){arguments[0]=e=t.$handleEvent(e),t.reMaterial(i,r)}}}),n("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-between",staticStyle:{padding:"15rpx 0","flex-grow":"1"}},[n("v-uni-view",{staticClass:"tn-padding-xs",staticStyle:{border:"1px solid #cbcbcb","background-color":"#FFFFFF","border-radius":"4px"}},[n("tn-input",{attrs:{type:"text",placeholder:"输入料品名称",height:30},model:{value:a.name,callback:function(e){t.$set(a,"name",e)},expression:"material.name"}})],1),n("v-uni-view",{staticClass:"tn-flex tn-flex-col-center"},[n("v-uni-view",{staticClass:"tn-padding-xs tn-flex",staticStyle:{border:"1px solid #cbcbcb","background-color":"#FFFFFF","border-radius":"4px","flex-grow":"1"}},[t._v(t._s(t.CurrencyUnit)),n("tn-input",{attrs:{type:"number",placeholder:"输入料品价格",height:30},model:{value:a.price,callback:function(e){t.$set(a,"price",e)},expression:"material.price"}})],1),e.materials.length>1?n("v-uni-text",{staticClass:"tn-icon-delete",staticStyle:{color:"#fc6464"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.removeMaterial(i,r)}}}):t._e()],1)],1)],1)})),n("v-uni-view",{staticStyle:{width:"80%",margin:"auto","background-color":"#e7f1fa",color:"#3badfc","border-radius":"88px",padding:"20rpx 0","text-align":"center","margin-top":"12rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addMaterial(i)}}},[n("v-uni-text",{staticClass:"tn-icon-add-circle",staticStyle:{"margin-right":"8rpx"}}),t._v("继续添加料品")],1)],2)],1)],1)})),1)],1)},r=[]}}]);