|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-addGoods-modifyPrice"],{1839:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container[data-v-00596c7b]{padding-top:%?20?%;padding-bottom:%?140?%}.multiSpecifica_container[data-v-00596c7b]{width:%?710?%;margin:auto;border-radius:10px;margin-bottom:%?30?%}.multiSpecifica_container > uni-view[data-v-00596c7b]{padding:0 %?30?%;background:#fff}.multiSpecifica_container_imageItem[data-v-00596c7b]{display:flex;padding:%?17?% 0 %?15?% 0;border-bottom:1px solid #eee}.multiSpecifica_container_imageItem_label[data-v-00596c7b]{flex:0.25;white-space:nowrap;padding-top:%?10?%;display:flex;align-items:center}.multiSpecifica_container_imageItem_label .batchOperation > uni-view[data-v-00596c7b]{border:1px solid #ccc;border-radius:50%;width:%?38?%;height:%?38?%;margin-right:%?20?%;display:flex;align-items:center;justify-content:center}.multiSpecifica_container_imageItem_label .selectEd > uni-view[data-v-00596c7b]{border:none;border-radius:50%;width:%?38?%;height:%?38?%;margin-right:%?20?%;background:#e93323;color:#fff}.multiSpecifica_container_imageItem_value[data-v-00596c7b]{flex:0.75;overflow:hidden}.multiSpecifica_container_imageItem_value uni-image[data-v-00596c7b]{width:%?120?%;max-height:%?120?%;border-radius:%?8?%}.multiSpecifica_container .attributes[data-v-00596c7b]{display:inline-block;margin-right:%?3?%}.multiSpecifica_container .attributes[data-v-00596c7b]:not(:last-child):after{content:"/";display:inline-block}.multiSpecifica_container_item[data-v-00596c7b]{display:flex;align-items:center;padding:%?32?% 0;border-bottom:1px solid #eee}.multiSpecifica_container_item_label[data-v-00596c7b]{flex:0.25;white-space:nowrap}.multiSpecifica_container_item_value[data-v-00596c7b]{flex:0.75}.multiSpecifica_container_item_value uni-image[data-v-00596c7b]{width:%?120?%}.more_than[data-v-00596c7b]{display:flex;align-items:center;justify-content:center;margin:auto;margin-top:%?20?%;height:%?84?%;background:#fff;border-radius:%?10?%}.handle[data-v-00596c7b]{position:fixed;bottom:0;left:0;width:100%;height:%?126?%;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 %?30?%;z-index:10}.handle_button[data-v-00596c7b]{width:%?330?%;height:%?86?%;border-radius:%?43?%;background:#fd6523;color:#fff;font-size:%?32?%;display:flex;align-items:center;justify-content:center}.handle .save[data-v-00596c7b]{background:#e93323}.handle .select_all[data-v-00596c7b]{display:flex;align-items:center}.handle .select_all > uni-view[data-v-00596c7b]:nth-child(1){border:1px solid #ccc;border-radius:50%;width:%?38?%;height:%?38?%;margin-right:%?24?%;display:flex;align-items:center;justify-content:center}.handle .select_all > uni-view[data-v-00596c7b]:nth-child(2){color:#282828;font-size:%?28?%;font-weight:500}.handle .change[data-v-00596c7b]{display:flex;align-items:center;justify-content:center;color:#e93323;width:%?180?%;height:%?70?%;border:1px solid #e93323;border-radius:%?35?%;font-size:%?30?%}.handle .selectAllEd > uni-view[data-v-00596c7b]:nth-child(1){background:#e93323;border:none;color:#fff}.changePopup_container[data-v-00596c7b]{background:#fff;border-radius:%?16?% %?16?% 0 0}.changePopup_container .scrollViewCon[data-v-00596c7b]{max-height:%?668?%}.changePopup_container_title[data-v-00596c7b]{display:flex;justify-content:flex-end;padding:%?40?% %?20?%;position:relative}.changePopup_container_title > uni-view[data-v-00596c7b]:nth-child(1){position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.changePopup_container_title > uni-view[data-v-00596c7b]:nth-child(2){position:relative;z-index:10}.changePopup_container_content[data-v-00596c7b]{padding:0 %?30?%}.changePopup_container_content_item[data-v-00596c7b]{margin-bottom:%?20?%;height:%?80?%;background:#f5f5f5;border-radius:%?10?%;display:flex;align-items:center;padding:0 %?30?%}.changePopup_container_content_item_label[data-v-00596c7b]{flex:0.3;color:#666;font-size:%?26?%}.changePopup_container_content_item_value[data-v-00596c7b]{flex:0.7;display:flex;justify-content:flex-end}.changePopup_container_content_item_value uni-input[data-v-00596c7b]{text-align:right}.changePopup_container_content .popup_moreThan[data-v-00596c7b]{margin-top:%?18?%;display:flex;align-items:center;justify-content:flex-end;color:#e93323;padding-right:%?20?%}.changePopup_container_content .popup_moreThan > span[data-v-00596c7b]:nth-child(1){display:inline-block;margin-right:%?10?%;font-size:%?24?%}.changePopup_container .handle_popup[data-v-00596c7b]{height:%?126?%;background:#fff;display:flex;align-items:center;justify-content:center}.changePopup_container .handle_popup_button[data-v-00596c7b]{width:%?580?%;height:%?86?%;background:#e93323;border-radius:%?43?%;color:#fff;font-size:%?32?%;display:flex;justify-content:center;align-items:center}.hanlerImage[data-v-00596c7b]{position:relative;width:%?126?%;height:%?126?%;border:1px solid #ddd;display:flex;flex-direction:column;justify-content:center;border-radius:%?8?%;text-align:center}.hanlerImage > uni-image[data-v-00596c7b]{height:100%;margin:auto}.hanlerImage > uni-view[data-v-00596c7b]:nth-child(1){height:%?37?%;margin-bottom:%?8?%;display:flex;justify-content:center}.hanlerImage > uni-view:nth-child(1) uni-image[data-v-00596c7b]{width:%?45?%;display:block}.hanlerImage > uni-view[data-v-00596c7b]:nth-child(2){text-align:center;color:#bbb;font-size:%?24?%}',""]),t.exports=e},"1e3a":function(t,e){t.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ahnPvJI0Yr8Wphvdd133esw+v+va+799DT0kVw1j7jo/MlDTiVw1QgcFttO/0ENgx2bJAn17PKyRZVjrWOAg7V4JO/HrQyDASBhhR3I6g9eKJ6LwFYdB8vffHYzSFybHWBo0cNYWjgtb/WEdagOSDbpkAAAAASUVORK5CYII="},"5c8e":function(t,e,i){var a=i("1839");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("0d417b37",a,!0,{sourceMap:!1,shadowMode:!1})},"7c06":function(t,e,i){"use strict";i.r(e);var a=i("f302"),n=i.n(a);for(var c in a)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(c);e["default"]=n.a},a5eb:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionSheet=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(i,a){uni.showActionSheet({itemList:t,itemColor:e,success:function(t){i(t.tapIndex)},fail:function(t){a(t.errMsg)}})}))},e.Authorize=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(e,i){uni.authorize({scope:t,success:function(t){e(t)},fail:function(t){i(t)}})}))},e.GetUserInfo=function(){return new Promise((function(t,e){uni.getUserInfo({success:function(e){t(e)},fail:function(t){e(t)}})}))},e.Loading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,c.default)({title:t,mask:!0},e))},e.Modal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!";return new Promise((function(i,a){uni.showModal({title:t,content:e,success:function(t){t.confirm&&i(),t.cancel&&a()}})}))},e.ScrollTo=function(t){uni.pageScrollTo({scrollTop:t,duration:300})},e.Toast=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,n=(0,c.default)({title:t,duration:a,position:"center",mask:!0,icon:e||"none"},i);uni.showToast(n)},e.chooseImage=function(t){return new Promise((function(e,i){uni.chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(t){e(t)},fail:function(t){i(t)}})}))},e.clearStorage=function(){try{uni.clearStorageSync()}catch(t){throw new Error("处理失败")}},e.convertObj=o,e.formatDate=l,e.getQuarterStartDate=function(){var t=new Date(u,function(){var t=0;r<3&&(t=0);2<r&&r<6&&(t=3);5<r&&r<9&&(t=6);r>8&&(t=9);return t}(),1);return l(t,"yyyy-MM-dd")},e.getStorage=function(t){var e=uni.getStorageSync(t);try{"number"!=typeof JSON.parse(e)&&(e=JSON.parse(e))}catch(i){}return e},e.hideLoading=function(){try{uni.hideLoading()}catch(t){throw new Error("处理失败")}},e.navigateBack=function(t){uni.navigateBack({delta:t})},e.navigateTo=function(t,e,i){var a=e,n="navigateTo";switch(a=i?a+"?"+o(i):a,t){case 1:n="navigateTo";break;case 2:n="redirectTo";break;case 3:n="reLaunch";break;case 4:n="switchTab";break;default:n="navigateTo";break}uni[n]({url:a,animationType:"slide-in-right",animationDuration:200})},e.pathToBase64=function(t){return new Promise((function(e,i){if("object"===("undefined"===typeof window?"undefined":(0,n.default)(window))&&"document"in window){if("function"===typeof FileReader){var a=new XMLHttpRequest;return a.open("GET",t,!0),a.responseType="blob",a.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=i,t.readAsDataURL(this.response)}},a.onerror=i,void a.send()}var c=document.createElement("canvas"),o=c.getContext("2d"),l=new Image;return l.onload=function(){c.width=l.width,c.height=l.height,o.drawImage(l,0,0),e(c.toDataURL()),c.height=c.width=0},l.onerror=i,void(l.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,n.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,n.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){i(t)}}):i(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(t),(function(t){t.file((function(t){var a=new plus.io.FileReader;a.onload=function(t){e(t.target.result)},a.onerror=function(t){i(t)},a.readAsDataURL(t)}),(function(t){i(t)}))}),(function(t){i(t)}))}))},e.removeStorage=function(t){t&&uni.removeStorageSync(t)},e.serialize=function(t){if(null!=t&&""!=t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t instanceof Array?[]:{}}return t},e.setStorage=function(t,e){if("string"==typeof e)return uni.setStorageSync(t,e),e;uni.setStorageSync(t,JSON.stringify(e))},e.showMonthFirstDay=function(){var t=(new Date).setDate(1);return l(new Date(t).getTime(),"yyyy-MM-dd")},e.showWeekFirstDay=function(){var t=new Date,e=t.getDay()||7;return t.setDate(t.getDate()-e+1),l(t,"yyyy-MM-dd")},e.throttle=function(t,e){var i,a;e=e||200;return function(){for(var n=this,c=arguments.length,o=new Array(c),l=0;l<c;l++)o[l]=arguments[l];i=o,a||(a=setTimeout((function(){a=null,t.apply(n,i)}),e))}},e.unique=function(t){t=t||[];for(var e={},i=0;i<t.length;i++){var a=JSON.stringify(t[i]);"undefined"==typeof a&&(e[a]=1)}for(var i in t.length=0,e)t[t.length]=i;return t};var n=a(i("53ca")),c=a(i("5530"));function o(t){var e,i=[];return Object.keys(t).forEach((function(e){i.push("".concat(e,"=").concat(t[e]))})),e=i.join("&"),e}function l(t,e){return t?(e=e||"yyyy-MM-dd hh:mm:ss",new Date(t).format(e)):""}i("e9c4"),i("d9e2"),i("d401"),i("d3b7"),i("159b"),i("b64b"),i("14d9"),i("99af"),i("ac1f"),i("00b4"),i("5319"),i("4d63"),i("c607"),i("2c3e"),i("25f0"),Date.prototype.format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,String(this.getFullYear()).substr(4-RegExp.$1.length))),e)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[i]:("00"+e[i]).substr(String(e[i]).length)));return t};var s=new Date,r=s.getMonth(),u=s.getYear();u+=u<2e3?1900:0},bbaa:function(t,e,i){"use strict";var a=i("5c8e"),n=i.n(a);n.a},c8d8:function(t,e,i){"use strict";i.r(e);var a=i("eb01"),n=i("7c06");for(var c in n)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(c);i("bbaa");var o=i("f0c5"),l=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"00596c7b",null,!1,a["a"],void 0);e["default"]=l.exports},eb01:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){return a}));var a={uniPopup:i("59c7").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[t._l(t.multiSpecificationList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"multiSpecifica_container"},[a("v-uni-view",{staticStyle:{background:"#fff"}},[a("v-uni-view",{staticClass:"multiSpecifica_container_imageItem",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clk(n)}}},[a("v-uni-view",{staticClass:"multiSpecifica_container_imageItem_label"},[t.isBatchOperation?a("v-uni-view",{staticClass:"batchOperation",class:{selectEd:e.select},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.selectGoods(e)}}},[a("v-uni-view",[e.select?a("span",{staticClass:"iconfont"},[t._v("")]):t._e()])],1):t._e(),a("v-uni-view",[t._v("商品图")])],1),a("v-uni-view",{staticClass:"multiSpecifica_container_imageItem_value"},[e.image?a("v-uni-image",{staticClass:"myimg2",attrs:{src:e.image}}):a("v-uni-view",{staticClass:"hanlerImage"},[a("v-uni-view",[a("v-uni-image",{attrs:{src:i("1e3a"),mode:"widthFix"}})],1),a("v-uni-view",[t._v("添加图片")])],1)],1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[t._v("规格信息")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},t._l(Object.values(e.detail),(function(e,i){return a("v-uni-text",{key:i,staticClass:"attributes"},[t._v(t._s(e))])})),1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[t._v("售价")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品售价"},model:{value:e.price,callback:function(i){t.$set(e,"price",i)},expression:"item.price"}})],1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[t._v("成本价")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品成本价"},model:{value:e.cost,callback:function(i){t.$set(e,"cost",i)},expression:"item.cost"}})],1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[t._v("原价")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品原价"},model:{value:e.ot_price,callback:function(i){t.$set(e,"ot_price",i)},expression:"item.ot_price"}})],1)],1),e.more_thanFlag?a("v-uni-view",[a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[t._v("库存")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品库存"},model:{value:e.stock,callback:function(i){t.$set(e,"stock",i)},expression:"item.stock"}})],1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[t._v("商品编号")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请填写商品编号"},model:{value:e.bar_code,callback:function(i){t.$set(e,"bar_code",i)},expression:"item.bar_code"}})],1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[t._v("重量")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",value:"",placeholder:"请填写商品重量"},model:{value:e.weight,callback:function(i){t.$set(e,"weight",i)},expression:"item.weight"}})],1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[t._v("体积")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品体积"},model:{value:e.volume,callback:function(i){t.$set(e,"volume",i)},expression:"item.volume"}})],1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[t._v("佣金(一级)")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品佣金"},model:{value:e.extension_one,callback:function(i){t.$set(e,"extension_one",i)},expression:"item.extension_one"}})],1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[t._v("佣金(二级)")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品佣金"},model:{value:e.extension_two,callback:function(i){t.$set(e,"extension_two",i)},expression:"item.extension_two"}})],1)],1)],1):t._e()],1),e.more_thanFlag?t._e():a("v-uni-view",{staticClass:"more_than",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.moreThan(e)}}},[t._v("更多")])],1)})),t.isBatchOperation?a("v-uni-view",{staticClass:"handle"},[a("v-uni-view",{staticClass:"select_all",class:{selectAllEd:t.selectAllFlag},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectAll.apply(void 0,arguments)}}},[a("v-uni-view",[t.selectAllFlag?a("v-uni-text",{staticClass:"iconfont"},[t._v("")]):t._e()],1),a("v-uni-view",[t._v("全选")])],1),a("v-uni-view",{staticClass:"change",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openChangeModel.apply(void 0,arguments)}}},[t._v("修改")])],1):a("v-uni-view",{staticClass:"handle"},[a("v-uni-view",{staticClass:"handle_button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.batchOperation.apply(void 0,arguments)}}},[t._v("批量操作")]),a("v-uni-view",{staticClass:"handle_button save",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.saveAttrValue.apply(void 0,arguments)}}},[t._v("保存")])],1),a("uni-popup",{ref:"changePopup",attrs:{type:"bottom"}},[a("v-uni-view",{staticClass:"changePopup_container"},[a("v-uni-view",{staticClass:"changePopup_container_title"},[a("v-uni-view",[t._v("批量修改")]),a("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeChangePopup.apply(void 0,arguments)}}},[a("span",{staticClass:"iconfont"},[t._v("")])])],1),a("v-uni-scroll-view",{staticClass:"scrollViewCon",attrs:{"scroll-y":!0}},[a("v-uni-view",{staticClass:"changePopup_container_content"},[a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[t._v("售价")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"0.00"},model:{value:t.batchData.price,callback:function(e){t.$set(t.batchData,"price",e)},expression:"batchData.price"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[t._v("成本价")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"0.00"},model:{value:t.batchData.cost,callback:function(e){t.$set(t.batchData,"cost",e)},expression:"batchData.cost"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[t._v("原价")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"0.00"},model:{value:t.batchData.ot_price,callback:function(e){t.$set(t.batchData,"ot_price",e)},expression:"batchData.ot_price"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[t._v("库存")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"0.00"},model:{value:t.batchData.stock,callback:function(e){t.$set(t.batchData,"stock",e)},expression:"batchData.stock"}})],1)],1),t.popupOpenModel?t._e():a("v-uni-view",{staticClass:"popup_moreThan",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.popupOpenModel=!t.popupOpenModel}}},[a("v-uni-text",[t._v("展开")]),a("v-uni-text",{staticClass:"iconfont"},[t._v("")])],1),t.popupOpenModel?a("v-uni-view",[a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[t._v("商品编号")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"0.00"},model:{value:t.batchData.bar_code,callback:function(e){t.$set(t.batchData,"bar_code",e)},expression:"batchData.bar_code"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[t._v("重量")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"0.00"},model:{value:t.batchData.weight,callback:function(e){t.$set(t.batchData,"weight",e)},expression:"batchData.weight"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[t._v("体积")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"0.00"},model:{value:t.batchData.volume,callback:function(e){t.$set(t.batchData,"volume",e)},expression:"batchData.volume"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[t._v("佣金(一级)")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"0.00"},model:{value:t.batchData.extension_one,callback:function(e){t.$set(t.batchData,"extension_one",e)},expression:"batchData.extension_one"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[t._v("佣金(二级)")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"0.00"},model:{value:t.batchData.extension_two,callback:function(e){t.$set(t.batchData,"extension_two",e)},expression:"batchData.extension_two"}})],1)],1)],1):t._e()],1)],1),a("v-uni-view",{staticClass:"handle_popup"},[a("v-uni-view",{staticClass:"handle_popup_button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.saveBachData.apply(void 0,arguments)}}},[t._v("确认")])],1)],1)],1),a("avatar",{ref:"avatar",attrs:{quality:"1",selWidth:"250upx",selHeight:"250upx"},on:{upload:function(e){arguments[0]=e=t.$handleEvent(e),t.doUpload.apply(void 0,arguments)},getName:function(e){arguments[0]=e=t.$handleEvent(e),t.getImgName.apply(void 0,arguments)}}})],2)},c=[]},f302:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("ade3"));i("4de4"),i("d3b7"),i("159b"),i("b64b"),i("14d9"),i("07ac");var c=i("a5eb"),o=a(i("a208")),l=i("8342"),s=a(i("3f30")),r={components:{avatar:o.default},data:function(){return{popupOpenModel:!1,selectAllFlag:!1,isBatchOperation:!1,multiSpecificationList:[],addMultiSpecification:[],attrObj:{},index:0,imgName:"",batchData:{price:"",cost:"",ot_price:"",stock:"",bar_code:"",weight:"",volume:"",extension_one:"",extension_two:""}}},onLoad:function(t){this.attrObj=t},onShow:function(){this.initData()},watch:{multiSpecificationList:{handler:function(t){t.filter((function(t){return t.select})).length==t.length?this.selectAllFlag=!0:this.selectAllFlag=!1},deep:!0}},methods:{initData:function(){var t=this;(0,c.getStorage)("attrValue")?this.multiSpecificationList=(0,c.getStorage)("attrValue"):this.multiSpecificationList=this.attrFormat((0,c.getStorage)("modifyPriceData").template_value),this.multiSpecificationList.forEach((function(e){t.$set(e,"more_thanFlag",!1),t.$set(e,"select",!1)}))},selectImage:function(t){this.$util.uploadImageOne("upload/image",(function(e){t.image=e.data.path}))},clk:function(t){var e=this.$refs.avatar;this.index=t,e.fChooseImg(1,{selWidth:"350upx",selHeight:"350upx",inner:!0})},doUpload:function(t){var e=this;uni.uploadFile({url:l.HTTP_REQUEST_URL+"/api/upload/image/field",filePath:t.path,name:"field",formData:{filename:t.path,name:e.imgName},header:(0,n.default)({},l.TOKENNAME,"Bearer "+s.default.state.app.token),success:function(t){var i=JSON.parse(t.data);e.multiSpecificationList[e.index]["image"]=i.data.path},complete:function(t){}})},getImgName:function(t){this.imgName=t},moreThan:function(t){t.more_thanFlag=!0},batchOperation:function(){var t=this;this.isBatchOperation=!0,this.multiSpecificationList.forEach((function(e){t.$set(e,"select",!1)}))},selectAll:function(){var t=this;this.selectAllFlag=!this.selectAllFlag,this.multiSpecificationList.forEach((function(e){t.selectAllFlag?t.$set(e,"select",!0):t.$set(e,"select",!1)}))},selectGoods:function(t){t.select=!t.select},openChangeModel:function(){this.multiSpecificationList.filter((function(t){return t.select})).length?this.$refs.changePopup.open():(0,c.Toast)("请选择商品")},saveBachData:function(){var t=this;Object.keys(this.batchData).forEach((function(e){t.multiSpecificationList.forEach((function(i){i.select&&(i[e]=t.batchData[e])}))})),this.isBatchOperation=!1,this.$refs.changePopup.close()},saveAttrValue:function(){(0,c.setStorage)("attrValue",this.multiSpecificationList),(0,c.navigateBack)(1)},closeChangePopup:function(){this.$refs.changePopup.close()},attrFormat:function(t){var e=[],i=[];return function(t){if(t.length>1)t.forEach((function(a,n){0===n&&(e=t[n]["detail"]);var c=[];e.forEach((function(e){t[n+1]&&t[n+1]["detail"]&&t[n+1]["detail"].forEach((function(a){var o=(0!==n?"":t[n]["value"]+"_$_")+e+"-$-"+t[n+1]["value"]+"_$_"+a;if(c.push(o),n===t.length-2){var l={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var i=t.split("_$_");l["detail"]||(l["detail"]={}),l["detail"][i[0]]=i.length>1?i[1]:""})),Object.values(l.detail).forEach((function(t,e){l["value"+e]=t})),i.push(l)}}))})),e=c.length?c:[]}));else{var a=[];t.forEach((function(t,e){t["detail"].forEach((function(e,c){a[c]=t["value"]+"_"+e,i[c]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:(0,n.default)({},t["value"],e)},Object.values(i[c].detail).forEach((function(t,e){i[c]["value"+e]=t}))}))})),e.push(a.join("$&"))}return i}(t)}}};e.default=r}}]); |