1 line
30 KiB
JavaScript
1 line
30 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-addGoods-modifyPrice"],{"0d0b":function(e,t,i){"use strict";var a=i("11aa"),n=i.n(a);n.a},"11aa":function(e,t,i){var a=i("fa4b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("62b0307e",a,!0,{sourceMap:!1,shadowMode:!1})},5786:function(e,t,i){"use strict";i.r(t);var a=i("f9ba"),n=i("d29b");for(var c in n)["default"].indexOf(c)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(c);i("0d0b");var o=i("f0c5"),l=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"19f6de6d",null,!1,a["a"],void 0);t["default"]=l.exports},b90b:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABKCAYAAAA7fkOZAAAAAXNSR0IArs4c6QAABo5JREFUeF7tXO1xHDcMJSuIXUGUCixVYHEbiFxBlAqiVBClgkgVxKogcgMLuYLIFUSpIHIFzLwd8IbHw2o/Dvw4+fhHM7r9IB+xD8AjSGsyNyL6zRhzYYw5zfyqtY9/NMY8GGN+d849r33I1H126oJ9fieivxjkfR5T6l4A7nKBnQ1oIroyxvxRCiWl99w55y6VnrX1mCxAE9EbY8w/xhj8HZr3/osxJtunuRYca+375N4fnHNPa583dl8uoFNrBv9da3de43nCl5fFqnMBDWs+YUv+2nXdxrI1wNF+Rt/3T9ba76Pnqlu1OtBEhAgDTjC0Zq05dJCIwMt/Rn1Wt+ocQJMx5jyndWhbNHyK9x5W/R0/G74EVq3mU0aBJiLEvT+tiH9jkNUtQxvkyKrhQxDzh4ZwbwnQuB7jxd+dtgM0EQEovDAGbO34EJciGWi+ERF8CnzLvi0kP1vj3gJa4KrVL/Xef+66TmOyVvdh6Y1E9JG/4qW3StdfOeduww8boF9KMJbGwNZafHLXY5+RxihyPIPj/xvv/RAxzW1CLB5u/dk5h8kzA9BMF3Bim+a9/9dai1m5n/vCb/k6RFve+5skTAQkA30GoP9OnN6dMQYgL3EG3zLOw9jDF5HQz6Nz7symcS9oouu6VpW2g5jMvu8frbXvos5+ANCpAziYSKFV1AUqvgPQG9oAL3ddt8gRtDrY2v1K0vpHAO1Dpw4xJKsN6Nj7+75/iKORI9CZZuoIdCZg08ceHNAs+Lyz1sJ3pP7jicWgL9qhKEdjceQQsHyOM76Dpg7WHX7k9ca5aTy0BSRXn/ZdIZESuATQW+ccFjdGW9MWzQOEYrjvuh1CVoAhKmlT7DG13jknaGgSaM6osJC7L8AphgD816W0wnSFqGGHOrz3X621l1PSRHNAsxVjRWZsuesTUwIWTMGPg5WyXo57wNtY1QHVSA0ywofScm1TQI/JsmsFrReEHUzARkmbog6N35sBWuJBBhjy6iAtrm2YQO/9taCkFQO7CaAlS4aDsdZeLOXTsclgnr0XtOIiYFcHeiR0yra2OLJqkl04qwq0VMHEC5ra0caWoQtgq69yN5UZEtGNMeaXSMQqpn0LGvFk0rHWR+C+ahadrjJzPHqixclToAi1G7hFvSIp9KMm0OkCQxGnFE9AqTq7ahbN3PxfRBnVFhiEOru3Ob6qKhYthHPFrTlMcqm+1AIaqlqcImexoime5tQdafvm62K1Dym8aqsFNAY2aBlzlC/VEQsPS0CAfvJW+53FgWbxBwvAoVUv4yWitKDxbK2kOjZBNYCGcB9XQUFJq1r9JNRwq2eKNYBOt1moD2rpZy/IAOrOuQbQ6WeaLUmYC7hQoqtOZy0Arc6HcwGOQjyUvGX1GzWATveHHKkjR+gl8OHRGWYCOt2yoM6HK6gju98oTh0ssDxHO56GeuGl4GhenxR2ZtkHWQVoIkpT8GqRhxBxoODm1aTgqUOsRh9CVqgeQ1eTSQX6yL6UJFFNupSGxYdc26erUAerZqkDKm7VgjVn60NNoKVtwIipV9XHLXWOLG5BcwkqIkq7si2lVQN6xKqznvoSZYIAF5lgXPabzZqrcnQYtLAa/QCzXmqhS64noq2DAErsPKtq0WzVJ957bA8LJwng31ksm50fQN5s5+PV99N9a6inJro60Ax2qlHj36gWRXquwtnMyahSTXcJFNFamgCawU5j62AkKLJZfTQaWzFOZ5Aq8rPEzJJ1NwM0g33qvUfBd0wj+AlxNupARs+/SAcXnS+CCdyqtWa6ONf6WqZoowlnKAAEzkbVp7QxJ1AKUvhncHt0WMkbay24F6AihRY3osLxcZWq+slfLwHelEXHHUUVEdc0p9Y9x4B2rmErRq01qKh4axZophJYJwC/FIrIZ4HFxeygnZscFUizOlGzyHFuB6MkA3Rw7r2/mAKdwQW9ICavusIe5QuHuUWZV2p25qv0JqC5BtM0dcwdxCFcdwS60Cwdga4FdImCv0Jja+o1RLRV2InzOrb2lZTe+NgUOkqdEWqwbwF0WrVTZZlJaYzVHzOy8+xsOI4tJW6WLaGkFU1bq6O0ZwfYaHFqbyzLDidahnPvJI0Yr8Wphvdd133esw+v+va+799DT0kVw1j7jo/MlDTiVw1QgcFttO/0ENgx2bJAn17PKyRZVjrWOAg7V4JO/HrQyDASBhhR3I6g9eKJ6LwFYdB8vffHYzSFybHWBo0cNYWjgtb/WEdagOSDbpkAAAAASUVORK5CYII="},d0f5:function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(i("ade3"));i("4de4"),i("d3b7"),i("159b"),i("b64b"),i("14d9"),i("07ac");var c=i("f89e"),o=a(i("ed4b")),l=i("3093"),s=a(i("e9c8")),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:"",bar_code:"",weight:"",volume:"",extension_one:"",extension_two:""},a:{}}},onLoad:function(e){this.attrObj=e.code},onShow:function(){this.initData()},watch:{multiSpecificationList:{handler:function(e){e.filter((function(e){return e.select})).length==e.length?this.selectAllFlag=!0:this.selectAllFlag=!1},deep:!0},batchData:{handler:function(e){this.multiSpecificationList.bar_code=this.attrObj,(0,c.setStorage)("attrValue",this.multiSpecificationList)},deep:!0}},methods:{initData:function(){var e=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(t){e.$set(t,"more_thanFlag",!1),e.$set(t,"select",!1),e.$set(t,"bar_code",e.attrObj)}))},selectImage:function(e){this.$util.uploadImageOne("upload/image",(function(t){e.image=t.data.path}))},clk:function(e){(0,c.setStorage)("attrValue",this.multiSpecificationList);var t=this.$refs.avatar;this.index=e,t.fChooseImg(1,{selWidth:"350upx",selHeight:"350upx",inner:!0})},doUpload:function(e){var t=this;uni.uploadFile({url:l.HTTP_REQUEST_URL+"/api/upload/image/field",filePath:e.path,name:"field",formData:{filename:e.path,name:t.imgName},header:(0,n.default)({},l.TOKENNAME,"Bearer "+s.default.state.app.token),success:function(e){var i=JSON.parse(e.data);t.multiSpecificationList[t.index]["image"]=i.data.path},complete:function(e){}})},getImgName:function(e){this.imgName=e},moreThan:function(e){e.more_thanFlag=!0},batchOperation:function(){var e=this;this.isBatchOperation=!0,this.multiSpecificationList.forEach((function(t){e.$set(t,"select",!1)}))},selectAll:function(){var e=this;this.selectAllFlag=!this.selectAllFlag,this.multiSpecificationList.forEach((function(t){e.selectAllFlag?e.$set(t,"select",!0):e.$set(t,"select",!1)}))},selectGoods:function(e){e.select=!e.select},openChangeModel:function(){this.multiSpecificationList.filter((function(e){return e.select})).length?this.$refs.changePopup.open():(0,c.Toast)("请选择商品")},saveBachData:function(){var e=this;Object.keys(this.batchData).forEach((function(t){e.multiSpecificationList.forEach((function(i){i.select&&(i[t]=e.batchData[t])}))})),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(e){var t=[],i=[];return function(e){if(e.length>1)e.forEach((function(a,n){0===n&&(t=e[n]["detail"]);var c=[];t.forEach((function(t){e[n+1]&&e[n+1]["detail"]&&e[n+1]["detail"].forEach((function(a){var o=(0!==n?"":e[n]["value"]+"_$_")+t+"-$-"+e[n+1]["value"]+"_$_"+a;if(c.push(o),n===e.length-2){var l={image:"",price:0,cost:0,ot_price:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(e,t){var i=e.split("_$_");l["detail"]||(l["detail"]={}),l["detail"][i[0]]=i.length>1?i[1]:""})),Object.values(l.detail).forEach((function(e,t){l["value"+t]=e})),i.push(l)}}))})),t=c.length?c:[]}));else{var a=[];e.forEach((function(e,t){e["detail"].forEach((function(t,c){a[c]=e["value"]+"_"+t,i[c]={image:"",price:0,cost:0,ot_price:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:(0,n.default)({},e["value"],t)},Object.values(i[c].detail).forEach((function(e,t){i[c]["value"+t]=e}))}))})),t.push(a.join("$&"))}return i}(e)}}};t.default=r},d29b:function(e,t,i){"use strict";i.r(t);var a=i("d0f5"),n=i.n(a);for(var c in a)["default"].indexOf(c)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(c);t["default"]=n.a},f89e:function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.ActionSheet=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(i,a){uni.showActionSheet({itemList:e,itemColor:t,success:function(e){i(e.tapIndex)},fail:function(e){a(e.errMsg)}})}))},t.Authorize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(t,i){uni.authorize({scope:e,success:function(e){t(e)},fail:function(e){i(e)}})}))},t.GetUserInfo=function(){return new Promise((function(e,t){uni.getUserInfo({success:function(t){e(t)},fail:function(e){t(e)}})}))},t.Loading=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,c.default)({title:e,mask:!0},t))},t.Modal=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{showCancel:!0,cancelText:"取消",confirmText:"确定"};return new Promise((function(a,n){uni.showModal((0,c.default)((0,c.default)({},i),{},{title:e,content:t,success:function(e){e.confirm&&a(),e.cancel&&n()}}))}))},t.ScrollTo=function(e){uni.pageScrollTo({scrollTop:e,duration:300})},t.Toast=function(e){var t=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:e,duration:a,position:"center",mask:!0,icon:t||"none"},i);uni.showToast(n)},t.chooseImage=function(e){return new Promise((function(t,i){uni.chooseImage({count:e,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(e){t(e)},fail:function(e){i(e)}})}))},t.clearStorage=function(){try{uni.clearStorageSync()}catch(e){throw new Error("处理失败")}},t.convertObj=o,t.formatDate=l,t.getQuarterStartDate=function(){var e=new Date(u,function(){var e=0;r<3&&(e=0);2<r&&r<6&&(e=3);5<r&&r<9&&(e=6);r>8&&(e=9);return e}(),1);return l(e,"yyyy-MM-dd")},t.getStorage=function(e){var t=uni.getStorageSync(e);try{"number"!=typeof JSON.parse(t)&&(t=JSON.parse(t))}catch(i){}return t},t.hideLoading=function(){try{uni.hideLoading()}catch(e){throw new Error("处理失败")}},t.navigateBack=function(e){uni.navigateBack({delta:e})},t.navigateTo=function(e,t,i){var a=t,n="navigateTo";switch(a=i?a+"?"+o(i):a,e){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})},t.pathToBase64=function(e){return new Promise((function(t,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",e,!0),a.responseType="blob",a.onload=function(){if(200===this.status){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=i,e.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),t(c.toDataURL()),c.height=c.width=0},l.onerror=i,void(l.src=e)}"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:e,encoding:"base64",success:function(e){t("data:image/png;base64,"+e.data)},fail:function(e){i(e)}}):i(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(e),(function(e){e.file((function(e){var a=new plus.io.FileReader;a.onload=function(e){t(e.target.result)},a.onerror=function(e){i(e)},a.readAsDataURL(e)}),(function(e){i(e)}))}),(function(e){i(e)}))}))},t.removeStorage=function(e){e&&uni.removeStorageSync(e)},t.serialize=function(e){if(null!=e&&""!=e)try{return JSON.parse(JSON.stringify(e))}catch(t){return e instanceof Array?[]:{}}return e},t.setStorage=function(e,t){if("string"==typeof t)return uni.setStorageSync(e,t),t;uni.setStorageSync(e,JSON.stringify(t))},t.showMonthFirstDay=function(){var e=(new Date).setDate(1);return l(new Date(e).getTime(),"yyyy-MM-dd")},t.showWeekFirstDay=function(){var e=new Date,t=e.getDay()||7;return e.setDate(e.getDate()-t+1),l(e,"yyyy-MM-dd")},t.throttle=function(e,t){var i,a;t=t||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,e.apply(n,i)}),t))}},t.unique=function(e){e=e||[];for(var t={},i=0;i<e.length;i++){var a=JSON.stringify(e[i]);"undefined"==typeof a&&(t[a]=1)}for(var i in e.length=0,t)e[e.length]=i;return e};var n=a(i("53ca")),c=a(i("5530"));function o(e){var t,i=[];return Object.keys(e).forEach((function(t){i.push("".concat(t,"=").concat(e[t]))})),t=i.join("&"),t}function l(e,t){return e?(t=t||"yyyy-MM-dd hh:mm:ss",new Date(e).format(t)):""}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(e){var t={"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(e)&&(e=e.replace(RegExp.$1,String(this.getFullYear()).substr(4-RegExp.$1.length))),t)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[i]:("00"+t[i]).substr(String(t[i]).length)));return e};var s=new Date,r=s.getMonth(),u=s.getYear();u+=u<2e3?1900:0},f9ba:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return c})),i.d(t,"a",(function(){return a}));var a={uniPopup:i("523b").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"container"},[e._l(e.multiSpecificationList,(function(t,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(t){arguments[0]=t=e.$handleEvent(t),e.clk(n)}}},[a("v-uni-view",{staticClass:"multiSpecifica_container_imageItem_label"},[e.isBatchOperation?a("v-uni-view",{staticClass:"batchOperation",class:{selectEd:t.select},on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.selectGoods(t)}}},[a("v-uni-view",[t.select?a("span",{staticClass:"iconfont"},[e._v("")]):e._e()])],1):e._e(),a("v-uni-view",[e._v("商品图")])],1),a("v-uni-view",{staticClass:"multiSpecifica_container_imageItem_value"},[t.image?a("v-uni-image",{staticClass:"myimg2",attrs:{src:t.image}}):a("v-uni-view",{staticClass:"hanlerImage"},[a("v-uni-view",[a("v-uni-image",{attrs:{src:i("b90b"),mode:"widthFix"}})],1),a("v-uni-view",[e._v("添加图片")])],1)],1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[e._v("规格信息")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},e._l(Object.values(t.detail),(function(t,i){return a("v-uni-text",{key:i,staticClass:"attributes"},[e._v(e._s(t))])})),1)],1),a("v-uni-view",{staticClass:"multiSpecifica_container_item"},[a("v-uni-view",{staticClass:"multiSpecifica_container_item_label flex-start"},[e._v("售价")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品售价"},model:{value:t.price,callback:function(i){e.$set(t,"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"},[e._v("成本价")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品成本价"},model:{value:t.cost,callback:function(i){e.$set(t,"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"},[e._v("原价")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品原价"},model:{value:t.ot_price,callback:function(i){e.$set(t,"ot_price",i)},expression:"item.ot_price"}})],1)],1),t.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"},[e._v("商品条码")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请填写商品条码"},model:{value:t.bar_code,callback:function(i){e.$set(t,"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"},[e._v("重量")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",value:"",placeholder:"请填写商品重量"},model:{value:t.weight,callback:function(i){e.$set(t,"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"},[e._v("体积")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品体积"},model:{value:t.volume,callback:function(i){e.$set(t,"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"},[e._v("佣金(一级)")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品佣金"},model:{value:t.extension_one,callback:function(i){e.$set(t,"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"},[e._v("佣金(二级)")]),a("v-uni-view",{staticClass:"multiSpecifica_container_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写商品佣金"},model:{value:t.extension_two,callback:function(i){e.$set(t,"extension_two",i)},expression:"item.extension_two"}})],1)],1)],1):e._e()],1),t.more_thanFlag?e._e():a("v-uni-view",{staticClass:"more_than",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.moreThan(t)}}},[e._v("更多")])],1)})),e.isBatchOperation?a("v-uni-view",{staticClass:"handle"},[a("v-uni-view",{staticClass:"select_all",class:{selectAllEd:e.selectAllFlag},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectAll.apply(void 0,arguments)}}},[a("v-uni-view",[e.selectAllFlag?a("v-uni-text",{staticClass:"iconfont"},[e._v("")]):e._e()],1),a("v-uni-view",[e._v("全选")])],1),a("v-uni-view",{staticClass:"change",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openChangeModel.apply(void 0,arguments)}}},[e._v("修改")])],1):a("v-uni-view",{staticClass:"handle"},[a("v-uni-view",{staticClass:"handle_button",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.batchOperation.apply(void 0,arguments)}}},[e._v("批量操作")]),a("v-uni-view",{staticClass:"handle_button save",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.saveAttrValue.apply(void 0,arguments)}}},[e._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",[e._v("批量修改")]),a("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closeChangePopup.apply(void 0,arguments)}}},[a("span",{staticClass:"iconfont"},[e._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"},[e._v("售价")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"0.00"},model:{value:e.batchData.price,callback:function(t){e.$set(e.batchData,"price",t)},expression:"batchData.price"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[e._v("成本价")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"0.00"},model:{value:e.batchData.cost,callback:function(t){e.$set(e.batchData,"cost",t)},expression:"batchData.cost"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[e._v("原价")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"number",placeholder:"0.00"},model:{value:e.batchData.ot_price,callback:function(t){e.$set(e.batchData,"ot_price",t)},expression:"batchData.ot_price"}})],1)],1),e.popupOpenModel?e._e():a("v-uni-view",{staticClass:"popup_moreThan",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.popupOpenModel=!e.popupOpenModel}}},[a("v-uni-text",[e._v("展开")]),a("v-uni-text",{staticClass:"iconfont"},[e._v("")])],1),e.popupOpenModel?a("v-uni-view",[a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[e._v("商品条码")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"0.00"},model:{value:e.batchData.bar_code,callback:function(t){e.$set(e.batchData,"bar_code",t)},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"},[e._v("重量")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"0.00"},model:{value:e.batchData.weight,callback:function(t){e.$set(e.batchData,"weight",t)},expression:"batchData.weight"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[e._v("体积")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"0.00"},model:{value:e.batchData.volume,callback:function(t){e.$set(e.batchData,"volume",t)},expression:"batchData.volume"}})],1)],1),a("v-uni-view",{staticClass:"changePopup_container_content_item"},[a("v-uni-view",{staticClass:"changePopup_container_content_item_label"},[e._v("佣金(一级)")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"0.00"},model:{value:e.batchData.extension_one,callback:function(t){e.$set(e.batchData,"extension_one",t)},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"},[e._v("佣金(二级)")]),a("v-uni-view",{staticClass:"changePopup_container_content_item_value"},[a("v-uni-input",{attrs:{type:"text",placeholder:"0.00"},model:{value:e.batchData.extension_two,callback:function(t){e.$set(e.batchData,"extension_two",t)},expression:"batchData.extension_two"}})],1)],1)],1):e._e()],1)],1),a("v-uni-view",{staticClass:"handle_popup"},[a("v-uni-view",{staticClass:"handle_popup_button",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.saveBachData.apply(void 0,arguments)}}},[e._v("确认")])],1)],1)],1),a("avatar",{ref:"avatar",attrs:{quality:"1",selWidth:"250upx",selHeight:"250upx"},on:{upload:function(t){arguments[0]=t=e.$handleEvent(t),e.doUpload.apply(void 0,arguments)},getName:function(t){arguments[0]=t=e.$handleEvent(t),e.getImgName.apply(void 0,arguments)}}})],2)},c=[]},fa4b:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.container[data-v-19f6de6d]{padding-top:%?20?%;padding-bottom:%?140?%}.multiSpecifica_container[data-v-19f6de6d]{width:%?710?%;margin:auto;border-radius:10px;margin-bottom:%?30?%}.multiSpecifica_container > uni-view[data-v-19f6de6d]{padding:0 %?30?%;background:#fff}.multiSpecifica_container_imageItem[data-v-19f6de6d]{display:flex;padding:%?17?% 0 %?15?% 0;border-bottom:1px solid #eee}.multiSpecifica_container_imageItem_label[data-v-19f6de6d]{flex:0.25;white-space:nowrap;padding-top:%?10?%;display:flex;align-items:center}.multiSpecifica_container_imageItem_label .batchOperation > uni-view[data-v-19f6de6d]{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-19f6de6d]{border:none;border-radius:50%;width:%?38?%;height:%?38?%;margin-right:%?20?%;background:#e93323;color:#fff}.multiSpecifica_container_imageItem_value[data-v-19f6de6d]{flex:0.75;overflow:hidden}.multiSpecifica_container_imageItem_value uni-image[data-v-19f6de6d]{width:%?120?%;max-height:%?120?%;border-radius:%?8?%}.multiSpecifica_container .attributes[data-v-19f6de6d]{display:inline-block;margin-right:%?3?%}.multiSpecifica_container .attributes[data-v-19f6de6d]:not(:last-child):after{content:"/";display:inline-block}.multiSpecifica_container_item[data-v-19f6de6d]{display:flex;align-items:center;padding:%?32?% 0;border-bottom:1px solid #eee}.multiSpecifica_container_item_label[data-v-19f6de6d]{flex:0.25;white-space:nowrap}.multiSpecifica_container_item_value[data-v-19f6de6d]{flex:0.75}.multiSpecifica_container_item_value uni-image[data-v-19f6de6d]{width:%?120?%}.more_than[data-v-19f6de6d]{display:flex;align-items:center;justify-content:center;margin:auto;margin-top:%?20?%;height:%?84?%;background:#fff;border-radius:%?10?%}.handle[data-v-19f6de6d]{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-19f6de6d]{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-19f6de6d]{background:#e93323}.handle .select_all[data-v-19f6de6d]{display:flex;align-items:center}.handle .select_all > uni-view[data-v-19f6de6d]: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-19f6de6d]:nth-child(2){color:#282828;font-size:%?28?%;font-weight:500}.handle .change[data-v-19f6de6d]{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-19f6de6d]:nth-child(1){background:#e93323;border:none;color:#fff}.changePopup_container[data-v-19f6de6d]{background:#fff;border-radius:%?16?% %?16?% 0 0}.changePopup_container .scrollViewCon[data-v-19f6de6d]{max-height:%?668?%}.changePopup_container_title[data-v-19f6de6d]{display:flex;justify-content:flex-end;padding:%?40?% %?20?%;position:relative}.changePopup_container_title > uni-view[data-v-19f6de6d]: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-19f6de6d]:nth-child(2){position:relative;z-index:10}.changePopup_container_content[data-v-19f6de6d]{padding:0 %?30?%}.changePopup_container_content_item[data-v-19f6de6d]{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-19f6de6d]{flex:0.3;color:#666;font-size:%?26?%}.changePopup_container_content_item_value[data-v-19f6de6d]{flex:0.7;display:flex;justify-content:flex-end}.changePopup_container_content_item_value uni-input[data-v-19f6de6d]{text-align:right}.changePopup_container_content .popup_moreThan[data-v-19f6de6d]{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-19f6de6d]:nth-child(1){display:inline-block;margin-right:%?10?%;font-size:%?24?%}.changePopup_container .handle_popup[data-v-19f6de6d]{height:%?126?%;background:#fff;display:flex;align-items:center;justify-content:center}.changePopup_container .handle_popup_button[data-v-19f6de6d]{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-19f6de6d]{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-19f6de6d]{height:100%;margin:auto}.hanlerImage > uni-view[data-v-19f6de6d]:nth-child(1){height:%?37?%;margin-bottom:%?8?%;display:flex;justify-content:center}.hanlerImage > uni-view:nth-child(1) uni-image[data-v-19f6de6d]{width:%?45?%;display:block}.hanlerImage > uni-view[data-v-19f6de6d]:nth-child(2){text-align:center;color:#bbb;font-size:%?24?%}',""]),e.exports=t}}]); |