admin-order-workOrder.f26f1aee.js 30 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["admin-order-workOrder"],{"0809":function(t,e,i){"use strict";var a=i("d669");i("dad1"),i("051d"),i("436b"),i("57af"),i("225b"),i("589a"),i("e978"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("bf4e"),i("a8e7"),i("0bb3");var n=a(i("da6a"));i("34b3"),i("b1d8");var o=a(i("6c85")),r=(i("7adc"),i("5f90")),s=i("ca00");function l(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=c(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var a=0,n=function(){};return{s:n,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,s=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return r=t.done,t},e:function(t){s=!0,o=t},f:function(){try{r||null==i.return||i.return()}finally{if(s)throw o}}}}function c(t,e){if(t){if("string"===typeof t)return u(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}function d(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function f(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?d(Object(i),!0).forEach((function(e){(0,o.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}e.default={data:function(){return{selectJobType:"bill",selectJobId:0,isCut:!1,productInfoList:[],classIndex:0,py:"",type:"",autoLoad:!0,allFilterProductInfo:"",globalClassItemList:"",top_list:"",scroll_into_view:"",timeFun:"",kdType:"HIT",checkStock:!0,isAddModel:!1,isAddInputFocus:!1,customData:{bigCount:0,smallCount:0,userPrice:0},globalItemList:[],globalUnitType:0}},onLoad:function(t){var e=t.selectJobType;e&&(this.selectJobType=e)},onUnload:function(){},computed:f(f({},(0,r.mapGetters)(["getSelectInfo"])),{},{selectList:function(){var t=this.getSelectInfo,e=t[this.selectJobType+"_"+this.selectJobId]||[],i=[];return this.$util.isEmpty(e)||e.forEach((function(t,e,a){var n=t.id;i[n]=t})),this.list&&this.list.data&&!this.$util.isEmpty(this.list.data)&&(this.list.data.forEach((function(t,e,a){var n=t.id;i[n]&&(t.bigCount=i[n].bigCount||0,t.userPrice=i[n].userPrice||0)})),this.$forceUpdate()),e},scrollClassId:function(){var t=this.productInfoList[this.classIndex];return t?"class_".concat(t.classId):""},allPrice:function(){var t=0;if(this.selectList){var e,i=l(this.selectList);try{for(i.s();!(e=i.n()).done;){var a=e.value,n=this.getSelectItemById(a.id,a.classId);t+=Number(a.bigCount)*Number(n.userPrice)}}catch(o){i.e(o)}finally{i.f()}}return Math.round(100*t)/100},allCount:function(){var t=0,e=0;if(this.selectList){var i,a=l(this.selectList);try{for(a.s();!(i=a.n()).done;){var n=i.value;t+=Number(n.bigCount),e+=Number(n.smallCount)}}catch(o){a.e(o)}finally{a.f()}}return{bigLength:t,smallLength:e}},hasNoStock:function(){var t=!1;if(this.selectList){var e,i=l(this.selectList);try{for(i.s();!(e=i.n()).done;){var a=e.value,n=a.bigCount,o=a.smallCount,r=a.bigNum,s=(a.bigUnit,a.smallNum),c=(a.smallUnit,a.ratio),u=Number(c);if(Number(n)*u+Number(o)>Number(r)*u+Number(s)){t=!0;break}}}catch(d){i.e(d)}finally{i.f()}}return t}}),onShow:function(){},methods:f(f({},(0,r.mapActions)(["setSelectInfo","reSetSelectInfo"])),{},{init:function(){this.initData()},pushToSave:function(t){this.setSelectInfo({selectJobType:this.selectJobType,info:t,selectJobId:this.selectJobId}),uni.setStorageSync("selectList_"+this.selectJobType+"_target_"+this.selectJobId,t)},removeFromSave:function(){var t=this;t.$util.confirmModal({content:"确认清除花材?"},(function(){t.removeFromSaveDirect(),t.$msg("已清除")}))},removeFromSaveDirect:function(){var t=this;uni.removeStorageSync("selectList_"+t.selectJobType+"_target_"+t.selectJobId),t.reSetSelectInfo({selectJobType:t.selectJobType,selectJobId:t.selectJobId}),this.list&&this.list.data&&!this.$util.isEmpty(this.list.data)&&(this.list.data.forEach((function(t){t.bigCount=null,t.userPrice=null})),this.$forceUpdate())},initData:function(){var t=(0,n.default)(regeneratorRuntime.mark((function t(e){var i,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:i=uni.getStorageSync("selectList_"+this.selectJobType+"_target_"+this.selectJobId),this.$util.isEmpty(i)||(i.forEach((function(t,e,i){var n=t.id;a.globalItemList[n]&&(i[e].bigPrice=a.globalItemList[n].bigPrice,i[e].smallPrice=a.globalItemList[n].smallPrice)})),this.setSelectInfo({selectJobType:this.selectJobType,info:i,selectJobId:this.selectJobId}));case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),scrollPushList:function(){var t=[];this.$util.isEmpty(this.selectList)||this.selectList.forEach((function(e){t[e.id]=e}));for(var e=(0,s.copyObject)(this.productInfoList),i=[],a=0;a<e.length;a++){if(!this.$util.isEmpty(e[a].child))for(var n=e[a].child,o=0;o<n.length;o++){var r=n[o],l=r.id,c=t[l]||[];this.$util.isEmpty(c)?(e[a].child[o].bigCount=0,e[a].child[o].userPrice=0,e[a].child[o].smallCount=0):(e[a].child[o].bigCount=c.bigCount||0,e[a].child[o].userPrice=c.userPrice||0,e[a].child[o].smallCount=c.smallCount||0)}a<2?i.push(f(f({},e[a]),{},{isActive:!0})):i.push(f(f({},e[a]),{},{isActive:!1}))}this.globalClassItemList=i},searchFn:function(){var t=this,e=this.globalItemList;if(this.$util.isEmpty(this.py))return this.globalClassItemList="",this.classIndex=0,this.scroll_into_view="class_0",void this.scrollPushList();if(!(this.py.length<=1)&&!(0==this.py.indexOf("fs")&&this.py.length<=2)&&!(0==this.py.indexOf("hs")&&this.py.length<=2)&&!(0==this.py.indexOf("zs")&&this.py.length<=2)&&!(0==this.py.indexOf("ls")&&this.py.length<=2)&&!(0==this.py.indexOf("bs")&&this.py.length<=2)&&!(0==this.py.indexOf("yj")&&this.py.length<=2)){var i=[];this.$util.isEmpty(this.selectList)||this.selectList.forEach((function(t){i[t.id]=t}));var a=[];e.forEach((function(e){var n=e.id,o=i[n]||[];t.$util.isEmpty(o)?(e.bigCount=0,e.userPrice=0,e.smallCount=0):(e.bigCount=o.bigCount||0,e.userPrice=o.userPrice||0,e.smallCount=o.smallCount||0);var r=e.py&&e.py.toLocaleUpperCase()||"",s=r.indexOf(t.py.toLocaleUpperCase())>=0;s&&(t.$util.isEmpty(a)?a=[{classId:e.classId,className:e.className,isActive:!0,child:[e]}]:a.forEach((function(t){t.classId==e.classId?t.child.push(e):a.push({classId:e.classId,className:e.className,isActive:!0,child:[e]})})))}));var n=this.$util.unique(a);this.globalClassItemList=n,this.classIndex=0,this.scroll_into_view="class_0"}},getSelectItemPrice:function(t){var e=0,i=t.bigCount,a=t.smallCount,n=t.bigPrice,o=t.smallPrice,r=Number(i)*Number(n)+Number(a)*Number(o);return e=Math.round(100*r)/100,e},getSelectItemById:function(t,e){var i={bigCount:null,smallCount:null,autoPrice:null,itemPrice:null},a=this.selectList&&this.selectList.find((function(i){return i.id==t&&i.classId==e}));return a&&(i=f(f({},a),{},{bigCount:Number(a.bigCount),smallCount:Number(a.smallCount),autoPrice:Number(a.autoPrice),itemPrice:Number(a.itemPrice)})),i},replaceItemFn:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"add",a=(0,s.copyObject)(t);0==e&&(Number(a.smallCount)>0?("add"==i&&a.smallCount++,"sub"==i&&a.smallCount--):("add"==i&&a.bigCount++,"sub"==i&&a.bigCount--));var n=this.selectList;if(this.checkStock&&Number(a.bigCount)*a.ratio+Number(a.smallCount)>Number(a.bigNum)*a.ratio+Number(a.smallNum))return this.$util.noStockRemind(),void this.$msg("库存不足哦");var o=n.findIndex((function(t){return t.id==a.id}));-1==o?Number(a.bigCount)>0&&((this.$util.isEmpty(a.userPrice)||0==Number(a.userPrice))&&(a.userPrice=a.bigPrice),n.push(a)):a.bigCount<=0?n.splice(o,1):(n[o].bigCount=a.bigCount,n[o].smallCount=a.smallCount,n[o].userPrice=a.userPrice),"HIT"==this.kdType&&0==e&&this.$util.hitRemind(),this.pushToSave(n)},switchGlobalUnitType:function(){0==this.globalUnitType?(this.globalUnitType=1,this.customData.userPrice=parseFloat(this.customData.smallPrice),this.customData.bigCount=null):(this.globalUnitType=0,this.customData.userPrice=parseFloat(this.customData.bigPrice),this.customData.smallCount=null)},showAddModelFn:function(t){var e=this;if(t.bigNum<=0&&t.smallNum<=0&&this.checkStock)return this.$util.noStockRemind(),this.$msg("库存不足哦.."),!1;Number(t.smallCount>0)?this.globalUnitType=1:this.globalUnitType=0,this.isAddModel=!0,this.customData=(0,s.copyObject)(t),this.isAddInputFocus=!1,this.$nextTick((function(){e.customData.smallCount=0==e.customData.smallCount?null:e.customData.smallCount,e.customData.bigCount=0==e.customData.bigCount?null:e.customData.bigCount,"bill"==e.selectJobType||"addOrder"==e.selectJobType?null!=e.customData.userPrice&&0!=e.customData.userPrice||(0==e.customData.property?e.customData.userPrice=parseFloat(e.customData.price):e.customData.userPrice=parseFloat(e.customData.bigPrice)):e.customData.userPrice=0==e.customData.userPrice?null:e.customData.userPrice,e.isAddInputFocus=!0}))},confirmAddItemModel:function(t){if(0===t.index)return this.addItemModelHidden(),!1;if(0!=/(^[1-9]\d*$)/.test(this.customData.bigCount)||0!=/(^[1-9]\d*$)/.test(this.customData.smallCount))if(/(^[1-9]\d*$)/.test(this.customData.bigCount)&&this.customData.bigCount<=0)uni.showToast({title:"数量要大于0",icon:"none"});else if(/(^[1-9]\d*$)/.test(this.customData.smallCount)&&this.customData.smallCount<=0)uni.showToast({title:"数量要大于0",icon:"none"});else{if("bill"==this.selectJobType||"purchase"==this.selectJobType||"cgPlant"==this.selectJobType||"addOrder"==this.selectJobType){if(0==/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.customData.userPrice))return void uni.showToast({title:"金额错误",icon:"none"});if(this.customData.userPrice<=0)return void uni.showToast({title:"金额要大于0",icon:"none"})}this.replaceItemFn(this.customData,1),this.addItemModelHidden()}else uni.showToast({title:"请填写数值",icon:"none"})},addItemModelHidden:function(){this.isAddModel=!1,this.customData={}}})}},"3ba3":function(t,e,i){"use strict";i.r(e);var a=i("4d7f"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"4d7f":function(t,e,i){"use strict";var a=i("d669");i("589a"),i("b1d8"),i("e978"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("0bb3");var n=a(i("da6a"));i("34b3");var o=a(i("6c85")),r=a(i("1861")),s=a(i("0809")),l=a(i("c7ce")),c=i("3a10"),u=i("5f90"),d=(i("db0d"),i("fa28")),f=a(i("21e8"));function m(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function b(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?m(Object(i),!0).forEach((function(e){(0,o.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}e.default={name:"plantConfirm",components:{TuiListCell:r.default,AppDeliveryModule:l.default,htzImageUpload:f.default},mixins:[s.default],data:function(){return{headers:{token:""},selectJobType:"addOrder",form:{fromType:"3",hasPay:1,payWay:0,sendCost:"",kindId:"",cover:[],num:1,flowerNum:""},goodsPrice:"",payWayindex:0,payWayList:[{name:"线下微信",id:0},{name:"线下支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}],kindListData:[],kindSelectedData:{},currentImgData:[],dj:"",numSelectedData:{num:0,name:0},flowerNumList:[{num:9,name:9},{num:11,name:11},{num:16,name:16},{num:33,name:33},{num:52,name:52},{num:66,name:66},{num:99,name:99}]}},onLoad:function(t){var e=uni.getStorageSync("token");this.headers.token=e},onShow:function(){},onUnload:function(){},computed:b(b({},(0,u.mapGetters)(["getLoginInfo"])),{},{orderTotalPrice:function(){var t=0;return Number(this.goodsPrice)>0&&Number(this.form.num)>0&&(t=Number(this.goodsPrice)*Number(this.form.num),t=parseFloat(t.toFixed(2))),t},debtFinalPrice:function(){var t=0;return Number(this.dj)>0&&Number(this.orderTotalPrice)&&(t=Number(this.orderTotalPrice)-Number(this.dj),t=parseFloat(t.toFixed(2))),t}}),methods:{setNum:function(t){this.form.flowerNum=t},imgUploadSuccess:function(t){var e=JSON.parse(t.data);1==e.code&&(this.currentImgData.push(e.data.smallUrl),this.form.cover.push(e.data.shortUrl))},imgDeleteFn:function(t){var e=t.index;this.form.cover.splice(e,1)},init:function(){this.getKindDataFn()},getKindDataFn:function(){var t=(0,n.default)(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,d.getAllKind)({flower:1}).then((function(t){if(e.$util.isEmpty(t.data))return!1;if(e.kindListData=t.data.list?t.data.list:[],e.kindListData&&e.kindListData[0]&&e.kindListData[0].id){e.form.kindId=e.kindListData[0].id||"";var i=e.kindListData[0].name||"";e.kindSelectedData={name:i}}}));case 2:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),changeKindFn:function(t){this.kindSelectedData=this.kindListData[t.detail.value],this.form.kindId=this.kindSelectedData.id},payWayChange:function(t){var e=t.detail.value;this.payWayindex=e,this.form.payWay=this.payWayList[e].id},confirmToSubmit:function(){var t=this,e=this;if(this.$util.isEmpty(this.goodsPrice)||Number(this.goodsPrice)<=0)return this.$msg("请输入单价"),!1;if(this.$util.isEmpty(this.form.cover)||Array.isArray(this.form.cover)&&(this.form.cover=this.form.cover[0]),this.$util.isEmpty(this.form.num)||Number(this.form.num)<0)return this.$msg("请填写数量"),!1;if(0==Number(this.orderTotalPrice))return this.$msg("请填写单价"),!1;if(Number(this.dj)>0&&Number(this.dj)>=Number(this.orderTotalPrice))return this.$msg("订金要小于总金额"),!1;if(this.$util.isEmpty(this.form.flowerNum)||Number(this.form.flowerNum)<=0)return this.$msg("请选择每份用材数量"),!1;if(this.$util.isEmpty(this.$refs.appDelivery.form.bookName))return this.$msg("请填写订花人姓名"),!1;var i=Number(this.goodsPrice)*Number(this.form.num);i=i.toFixed(2),e.form=b(b({},e.form),e.$refs.appDelivery.form),e.$util.confirmModal({content:"确认提交?"},(function(){uni.showLoading({mask:!0});var a=e.kindSelectedData.name?e.kindSelectedData.name:"";(0,c.createOrder)(b(b({},e.form),{},{unitGoodsPrice:t.goodsPrice,modifyPrice:i,dj:t.dj,name:a,kindName:a})).then((function(t){uni.hideLoading(),e.pageTo({url:"/admin/order/workOrderResult",type:2,query:{id:t.data.id}})}))}))}}}},"7adc":function(t,e,i){"use strict";var a=i("d669");Object.defineProperty(e,"__esModule",{value:!0}),e.updateProduct=e.py=e.pxClassUpdate=e.pxClassDetail=e.pxClassDel=e.pxClassAdd=e.productList=e.print=e.getPxClassDataApi=e.getProductDetail=e.getProductDataApi=e.getGoodsDataApi=e.getGhsProductListV2=e.getGhsProductList=e.getGhsProductDetail=e.getAllProductDataApi=e.generatePriceTable=e.changePriceByIdApi=e.batchChangePrice=e.batchChangeAddPrice=e.autoPriceByIdApi=e.addProduct=void 0;var n=a(i("14bf"));e.print=function(t){return n.default.get("/product/print",t)},e.batchChangeAddPrice=function(t){return n.default.post("/product/batch-change-add-price",t)},e.productList=function(t){return n.default.get("/product/list",t)},e.py=function(t){return n.default.get("/product/py",t)},e.getGhsProductDetail=function(t){return n.default.get("/product/ghs-product-detail",t)},e.getProductDataApi=function(t){return n.default.get("/product/index",t)},e.getAllProductDataApi=function(t){return n.default.get("/product/list",t)},e.autoPriceByIdApi=function(t){return n.default.post("/product/auto-price",t)},e.addProduct=function(t){return n.default.post("/product/add",t)},e.updateProduct=function(t){return n.default.post("/product/update",t)},e.changePriceByIdApi=function(t){return n.default.post("/product/change-price",t)},e.getPxClassDataApi=function(t){return n.default.get("/px-class/list",t)},e.getGoodsDataApi=function(t){return n.default.get("/goods/index",t)},e.pxClassDetail=function(t){return n.default.get("/px-class/detail",t)},e.pxClassUpdate=function(t){return n.default.get("/px-class/update",t)},e.pxClassAdd=function(t){return n.default.get("/px-class/add",t)},e.pxClassDel=function(t){return n.default.get("/px-class/del",t)},e.getGhsProductList=function(t){return n.default.get("/product/ghs-item",t)},e.getGhsProductListV2=function(t){return n.default.get("/product/ghs-item-v2",t)},e.getProductDetail=function(t){return n.default.get("/product/detail",t)},e.batchChangePrice=function(t){return n.default.post("/product/batch-change-price",t)},e.generatePriceTable=function(t){return n.default.get("/product/generate-price-table",t)}},"957d":function(t,e,i){var a=i("5acd");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/***\n全局scss 变量和方法 存放处\n */\n/* 引入minxin */\n/* 颜色变量 */\n/*图片地址*/\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.module-com[data-v-4bdfb05e]{margin-bottom:%?20?%;background-color:#fff;color:#666}.module-com .module-tit[data-v-4bdfb05e]{padding:%?20?% %?30?%;font-size:%?28?%}.module-com .module-det[data-v-4bdfb05e]{padding:0 %?30?%}.admin-button-com[data-v-4bdfb05e]{margin-right:%?20?%}.affirm-page[data-v-4bdfb05e]{position:relative;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.affirm-page .affirm-view[data-v-4bdfb05e]{-webkit-box-flex:1;-webkit-flex:1;flex:1;margin-bottom:%?90?%;padding:%?20?%;background-color:#f0f2f6}.affirm-page .affirm-view .commodity-view[data-v-4bdfb05e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.affirm-page .affirm-view .commodity-view .commodity-list[data-v-4bdfb05e]{padding:%?20?%}.affirm-page .affirm-view .commodity-view .commodity-list .commodity-item[data-v-4bdfb05e]{display:-webkit-box;display:-webkit-flex;display:flex;margin-bottom:%?20?%}.affirm-page .affirm-view .commodity-view .commodity-list .commodity-item .item-icon[data-v-4bdfb05e]{-webkit-flex-shrink:0;flex-shrink:0;width:%?140?%;height:%?140?%}.affirm-page .affirm-view .commodity-view .commodity-list .commodity-item .item-info[data-v-4bdfb05e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-flex:1;-webkit-flex:1;flex:1;margin-left:%?20?%}.affirm-page .affirm-view .commodity-view .commodity-list .commodity-item .item-info .info-line[data-v-4bdfb05e]{margin-bottom:%?20?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end}.affirm-page .affirm-view .commodity-view .commodity-list .commodity-item .item-info .info-line .item-name[data-v-4bdfb05e]{color:#666;font-size:%?28?%}.affirm-page .affirm-view .commodity-view .commodity-list .commodity-item .item-info .info-line .item-price[data-v-4bdfb05e]{color:#333;font-size:%?22?%}.affirm-page .affirm-view .commodity-view .commodity-list .commodity-item .item-info .info-line .item-price .price[data-v-4bdfb05e]{font-size:%?32?%;font-weight:700}.affirm-page .affirm-view .commodity-view .commodity-list .commodity-item .item-info .info-line .item-type[data-v-4bdfb05e]{color:#999;font-size:%?24?%}.affirm-page .affirm-view .commodity-view .commodity-list .commodity-item .item-info .info-line .item-count[data-v-4bdfb05e]{color:#666;font-size:%?24?%}.affirm-page .affirm-view .commodity-view .summary-bar[data-v-4bdfb05e]{padding:0 %?20?%;height:%?90?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-top:%?1?% solid #eee}.affirm-page .affirm-view .commodity-view .summary-bar .operate-view[data-v-4bdfb05e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#3385ff;font-size:%?26?%}.affirm-page .affirm-view .commodity-view .summary-bar .operate-view .iconfont[data-v-4bdfb05e]{margin-right:%?20?%;font-size:%?40?%}.affirm-page .affirm-view .commodity-view .summary-bar .describe-view[data-v-4bdfb05e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#333;font-size:%?24?%}.affirm-page .affirm-view .commodity-view .summary-bar .describe-view .price[data-v-4bdfb05e]{font-weight:700;font-size:%?36?%}.affirm-page .affirm-view .module-com[data-v-4bdfb05e]{background-color:#fff;margin-bottom:%?20?%;border-radius:%?10?%;overflow:hidden}.affirm-page .affirm-view .module-com .tab-box[data-v-4bdfb05e]{padding:%?10?% %?30?% %?30?%}.affirm-page .affirm-view .module-com .tab-box .tab[data-v-4bdfb05e]{width:49%;height:%?70?%;color:#a2a2a2;border:%?1?% solid #dcdcdc;border-radius:%?10?%;font-size:%?28?%;font-weight:700}.affirm-page .affirm-view .module-com .tab-box .tab.active[data-v-4bdfb05e]{color:#ff4d4d;border:%?1?% solid #ff4d4d}.affirm-page .affirm-view .module-com .member-wrap .member-det[data-v-4bdfb05e]{font-size:%?24?%;margin-left:%?20?%}.affirm-page .affirm-view .module-com .remark-wrap[data-v-4bdfb05e]{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.affirm-page .affirm-view .module-com .remark-wrap .remark[data-v-4bdfb05e]{height:%?240?%}.affirm-page .under-bar[data-v-4bdfb05e]{display:-webkit-box;display:-webkit-flex;display:flex;z-index:99999;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 %?20?%;position:fixed;bottom:0;\n /* 手机mobile屏幕小于1000px */\n /* 收银台cashier屏幕大于1000px */height:%?100?%;background-color:#fff;box-shadow:%?0?% %?-1?% %?6?% %?0?% rgba(4,0,0,.06)}@media screen and (max-width:%?1100?%){.affirm-page .under-bar[data-v-4bdfb05e]{width:100%}}@media screen and (min-width:%?1100?%){.affirm-page .under-bar[data-v-4bdfb05e]{width:40%}}.affirm-page .under-bar .price-view[data-v-4bdfb05e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?24?%}.affirm-page .under-bar .price-view .price-title[data-v-4bdfb05e]{color:#333}.affirm-page .under-bar .price-view .price-number[data-v-4bdfb05e]{margin:0 %?20?%;color:#ff2842}.affirm-page .under-bar .price-view .price-number .large[data-v-4bdfb05e]{font-size:%?40?%}.affirm-page .under-bar .admin-button-com[data-v-4bdfb05e]{width:%?200?%}',""]),t.exports=e},adaa:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={htzImageUpload:i("21e8").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"app-content"},[i("v-uni-view",{staticClass:"affirm-page"},[i("v-uni-view",{staticClass:"affirm-view overscroll"},[i("v-uni-form",[i("v-uni-view",{staticClass:"module-com input-line-wrap",staticStyle:{position:"relative"}},[i("tui-list-cell",{staticClass:"line-cell",attrs:{arrow:!0}},[i("v-uni-view",{staticClass:"tui-title required"},[t._v("品种")]),i("v-uni-picker",{staticClass:"tui-input",attrs:{mode:"selector",value:t.form.kindId,range:t.kindListData,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeKindFn.apply(void 0,arguments)}}},[i("v-uni-input",{attrs:{name:"kindId",type:"text",hidden:!0},model:{value:t.form.kindId,callback:function(e){t.$set(t.form,"kindId",e)},expression:"form.kindId"}}),t.form.kindId?i("v-uni-view",{staticStyle:{height:"45upx"}},[t._v(t._s(t.kindSelectedData.name))]):i("v-uni-view",{staticClass:"tui-placeholder",staticStyle:{height:"45upx"}},[t._v("请选择")])],1)],1),i("tui-list-cell",{staticClass:"line-cell",attrs:{hover:!1}},[i("v-uni-view",{staticClass:"tui-title required"},[t._v("数量")]),i("v-uni-input",{staticClass:"tui-input",attrs:{"placeholder-class":"phcolor",name:"num",placeholder:"填写数量",maxlength:"50",type:"number"},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.form.num=""}},model:{value:t.form.num,callback:function(e){t.$set(t.form,"num",e)},expression:"form.num"}})],1),i("tui-list-cell",{staticClass:"line-cell",attrs:{hover:!1,arrow:!1}},[i("v-uni-view",{staticClass:"tui-title required"},[t._v("单价")]),i("v-uni-input",{staticStyle:{width:"260upx"},attrs:{type:"digit",focus:!0,"placeholder-class":"tui-placeholder",placeholder:"填写金额"},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.goodsPrice=""}},model:{value:t.goodsPrice,callback:function(e){t.goodsPrice=e},expression:"goodsPrice"}}),i("v-uni-text",{staticStyle:{color:"#3385FF","font-weight":"bold"}},[t._v("合计 ¥"),i("v-uni-text",[t._v(t._s(t.orderTotalPrice))])],1)],1),3==t.form.fromType&&1==t.form.hasPay?i("tui-list-cell",{staticClass:"line-cell",attrs:{hover:!1,arrow:!1}},[i("v-uni-view",{staticClass:"tui-title"},[t._v("订金")]),i("v-uni-input",{staticStyle:{width:"260upx"},attrs:{type:"digit","placeholder-class":"tui-placeholder",placeholder:"选填"},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.dj=""}},model:{value:t.dj,callback:function(e){t.dj=e},expression:"dj"}}),Number(t.debtFinalPrice)>0?i("v-uni-text",{staticStyle:{color:"red","font-weight":"bold"}},[t._v("尾款 ¥"),i("v-uni-text",[t._v(t._s(t.debtFinalPrice))])],1):t._e()],1):t._e(),3==t.form.fromType?i("tui-list-cell",{staticClass:"line-cell",attrs:{hover:!1,arrow:!1}},[i("v-uni-view",{staticClass:"tui-title"},[t._v("收款方式")]),i("v-uni-button",{staticClass:"admin-button-com middle",class:1==t.form.hasPay?"blue":"default",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.form.hasPay=1}}},[t._v("线下")]),i("v-uni-button",{staticClass:"admin-button-com middle",class:2==t.form.hasPay?"blue":"default",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.form.hasPay=2}}},[t._v("赊账")])],1):t._e(),1==t.form.hasPay&&3==t.form.fromType?i("tui-list-cell",{staticClass:"line-cell",attrs:{arrow:!0}},[i("v-uni-view",{staticClass:"tui-title"},[t._v("线下渠道")]),i("v-uni-picker",{staticClass:"tui-input",attrs:{mode:"selector",value:t.form.payWay,range:t.payWayList,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.payWayChange.apply(void 0,arguments)}}},[i("v-uni-input",{attrs:{name:"payWay",type:"text",hidden:!0},model:{value:t.form.payWay,callback:function(e){t.$set(t.form,"payWay",e)},expression:"form.payWay"}}),i("v-uni-view",{staticStyle:{padding:"6upx 0 6upx 0"}},[t._v(t._s(t.payWayList[t.payWayindex].name))])],1)],1):t._e(),i("tui-list-cell",{staticClass:"line-cell",attrs:{arrow:!1,hover:!1}},[i("v-uni-view",{staticClass:"tui-title required",staticStyle:{"margin-bottom":"46upx"}},[t._v("每份支数")]),i("v-uni-input",{staticStyle:{width:"350upx","margin-bottom":"46upx"},attrs:{type:"number",name:"flowerNum","placeholder-class":"tui-placeholder",placeholder:"每份使用花材的支数"},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.form.flowerNum=""}},model:{value:t.form.flowerNum,callback:function(e){t.$set(t.form,"flowerNum",e)},expression:"form.flowerNum"}})],1),i("v-uni-view",{staticStyle:{position:"absolute",bottom:"1upx",left:"50upx"}},[t._l(t.flowerNumList,(function(e,a){return[i("v-uni-button",{key:a+"_0",staticClass:"admin-button-com mini-btn default",staticStyle:{"padding-top":"13upx","padding-bottom":"13upx"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.setNum(e.num)}}},[t._v(t._s(e.name))])]}))],2)],1),i("v-uni-view",{staticClass:"module-com input-line-wrap goods-wrap"},[i("v-uni-view",{staticClass:"module-tit"},[i("span",[t._v("图片")]),i("span",{staticClass:"app-color-3"})]),i("v-uni-view",{staticClass:"module-det"},[i("htz-image-upload",{attrs:{max:1,compress:!0,headers:t.headers,action:t.getLoginInfo.imgUploadApi},on:{uploadSuccess:function(e){arguments[0]=e=t.$handleEvent(e),t.imgUploadSuccess.apply(void 0,arguments)},imgDelete:function(e){arguments[0]=e=t.$handleEvent(e),t.imgDeleteFn.apply(void 0,arguments)}},model:{value:t.currentImgData,callback:function(e){t.currentImgData=e},expression:"currentImgData"}})],1)],1),i("app-delivery-module",{ref:"appDelivery",on:{changeAddress:function(e){arguments[0]=e=t.$handleEvent(e),t.changeAddress.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"under-bar"},[i("v-uni-view",{staticClass:"price-view"}),i("v-uni-button",{staticClass:"admin-button-com blue big",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmToSubmit.apply(void 0,arguments)}}},[t._v("提交")])],1)],1)],1)},o=[]},b920:function(t,e,i){"use strict";i.r(e);var a=i("adaa"),n=i("3ba3");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("bef1");var r,s=i("8aaf"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"4bdfb05e",null,!1,a["a"],r);e["default"]=l.exports},bef1:function(t,e,i){"use strict";var a=i("f233"),n=i.n(a);n.a},db0d:function(t,e,i){"use strict";var a=i("d669");Object.defineProperty(e,"__esModule",{value:!0}),e.getUserDistance=void 0;var n=a(i("14bf"));e.getUserDistance=function(t){return n.default.get("/express/get-user-distance",t)}},f233:function(t,e,i){var a=i("957d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("47af").default;n("a7dd41dc",a,!0,{sourceMap:!1,shadowMode:!1})},fa28:function(t,e,i){"use strict";var a=i("d669");Object.defineProperty(e,"__esModule",{value:!0}),e.getKindList=e.getAllKind=void 0;var n=a(i("14bf"));e.getKindList=function(t){return n.default.get("/kind/list",t)},e.getAllKind=function(t){return n.default.get("/kind/get-all-kind",t)}}}]);