Commit 58b0cd89 by 萱草

update: bug修复

parent 3c5eb09d
.transfer-trigger[data-v-291fc1e2]{margin-left:10px;width:160px}.transfer-trigger[data-v-291fc1e2]:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;background:transparent;cursor:pointer}.transfer-trigger[data-v-291fc1e2]:focus{outline:none}.transfer-trigger.is-focus[data-v-291fc1e2] .el-input__inner{border-color:#2f54eb;-webkit-box-shadow:0 0 0 2px rgba(47,84,237,.2);box-shadow:0 0 0 2px rgba(47,84,237,.2)}.transfer-trigger.is-focus .el-input__icon[data-v-291fc1e2]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.transfer[data-v-291fc1e2] .el-transfer-panel__item{padding-top:8px;padding-bottom:8px;width:100%;height:auto;line-height:normal}.transfer[data-v-291fc1e2] .el-transfer-panel__item .el-checkbox__input{top:10px}.transfer[data-v-291fc1e2] .el-transfer-panel__empty:before{content:"";display:block;margin:0 auto;width:30px;height:30px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDoxNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RTkwMDRBMDMyODdGMTFFQjk3RTdCOTlERjdFREE2Q0YiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RTkwMDRBMDQyODdGMTFFQjk3RTdCOTlERjdFREE2Q0YiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpFOTAwNEEwMTI4N0YxMUVCOTdFN0I5OURGN0VEQTZDRiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpFOTAwNEEwMjI4N0YxMUVCOTdFN0I5OURGN0VEQTZDRiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvTlQnQAAATgSURBVHja7JxNiBtlGIDfb2aS7CTZNNv96W5La6sgKloPpUcrvUjxsoJFRNCLiCKC4A9Fr4oW600UvHioBw+iuCdFTxa9CHuwgoiIPyva2Gy72SSTyUw23/i+dVbjNptmdud/3hdevvxNPr4n79/3MxGO4wDLzkVhBAyQASZZxG4uNk3zcWzeQN0bp0H1+xKaLfPT/Qsz98cWIMI7gs1PcbRiAlirr0NJLywtzE8/EFcXvjPuIcAwrcVLtSufxBWgmoQYdQ3ipdUPOInsBmLXfjgoiJnJwkFBzFQZEwTEzNWBfkPMZCHtJ8RUAhQiPIgptUARmiWmEqCiCFBFOBBTGwOr1RIoXiDWrny4k360tAKcKORgYV8V+lICOGN5/WkGOGy+qQTrZLweyAAZIANkgCwMkAEmVAKvAyUWslEffhA4I6HpXeIArq61wLI2YmEpU3uKUNQLyXFh2lqMC7xr892OnawYqKoK5LT4bNzpei55Ljw7XUFL7EPU579oVYZ+0MQBpNUkTUvE9jGXMQyQAXIh7Ul+XqmduvnQ/MjPrLdM6HQsb9lbU2B6qhz4QmikAD/67MILjVb7yZF1IM5A2kbX+8yl1wfDsKAyqafThRHeS9icG6t02OH0KZ+LJnPj2J4J1AKxg7PYnBl3/jk3UwHL3gAvdwJoqgr5fGRbNW/hGMsPnjpx1leA+KVkSm+iPufJvDGO6RP5pOWF13G8GkJ81RcXduG94xVewuUV19t2Z4H4JRSM3kN9LIMVyhmyRGxfRGt0PFuge/H5jMLblOfJ+1wvHB8gXkCB62PUR7hUhqdQ33W98cYu/MVXy5O23VuSUp4cGTwxW9Ka3+hUTOWMAkJEM3JK/tIZ82gHlU/athHtCUVV5pYv/vjQsaO32iMB5nPaPUcOLJwcp0O6F2OcepCK4lKxECo8A2dATZwJSQ8l1O23HB719uLlq43j2H4d6lyYBtBodkJdnaa+qE/p+2aMIyJbTOiYFqSxr9AAbkgJaewrNIC9Xh+kDH5xn/qgviIDmFNVI5iMSLHQgCDvkKfvXlsPto8bz0SECOznM7s9sO11KORzIPxe70O37do96Mtwt7BCX/agAXa6NqRFeEnfb4CqolqMZbgMY3MdwOlqpc6ohsswNuzCHAMZIANkgCwMkAEyQAbIshuAhmEWUU/P7t1zjrEMF2JDjIjV5mvChbeIzdM0W6Hnf9Ubd0vH0RjZgKUJsbFvtvqt+/Qq6tulkr4kEN6z+OTRwQ+32t35dsc8wNj+k1JR/6NSnqhtefl9AvjNkFgoGk3joNm1Zxkd0AGperVS+h2u32GW5KbLqMe3vOHgBStFfaJu2b2KIx01i+CEIvqFfK6Zz6nmNh9ZJgss44OXUe9jW/Mkn6O+Jgay8F3wz0GiE5CQ/waMQGi/6ALqeUwg3/2bhQcFQU5hc68L8hjFz4xDM9wwR+C+RHBr/3PzkVcaJiWX21CPot7hPr4pxRZKFvYb6g+o36NepMcIbdudes/nphAqJZ79qIdRD6HSn9EeRJ1zNe5nemlL8LKrlFl/QV1B/RX1T4Tl6RCP7wfPEPAkNjNUuLstadkNBeUtWnKtuThg1XRb5XZHuWhTpzdgLR23JTdrb9HN11Zdpf2MVQTU8jVT83/p82ICA2SAGZa/BRgARSLTLswzY7YAAAAASUVORK5CYII=) 50% no-repeat;background-size:contain}.transfer[data-v-291fc1e2] .el-transfer-panel__header{pointer-events:none}.transfer[data-v-291fc1e2] .el-transfer-panel__header .el-checkbox__input{display:none}.transfer .transfer-item[data-v-291fc1e2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.transfer .transfer-item .store-name[data-v-291fc1e2]{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:400;color:#303133;line-height:22px}.transfer .transfer-item .store-code[data-v-291fc1e2]{font-size:12px;font-weight:400;color:#303133;line-height:16px}.transfer[data-v-291fc1e2] .el-transfer__buttons .el-button{padding:0;width:24px;min-width:24px}.transfer[data-v-291fc1e2] .el-transfer__buttons .el-button:first-child{margin-bottom:0;-webkit-transform:translateY(calc(100% + 4px));transform:translateY(calc(100% + 4px))}.transfer[data-v-291fc1e2] .el-transfer__buttons .el-button:last-child{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.pickup-upload[data-v-291fc1e2]{display:inline-block;vertical-align:top;margin-left:10px}.pickup-upload .upload-trigger[data-v-291fc1e2]{border-style:dashed}.pickup-upload .upload-trigger .upload-icon[data-v-291fc1e2]{font-size:14px}.pickup-upload .upload-tip[data-v-291fc1e2]{display:inline-block}.pickup-upload .pickup-list[data-v-291fc1e2]{margin-top:18px}.pickup-upload .pickup-list .pickup-list-name[data-v-291fc1e2]{font-size:14px;font-weight:400;color:#303133;line-height:20px}.pickup-upload .pickup-list .pickup-list-name .file-icon[data-v-291fc1e2]{font-size:14px}.pickup-upload .pickup-list .download-pickup[data-v-291fc1e2]{margin-left:8px}.pickup-upload .pickup-list .pickup-list-total[data-v-291fc1e2]{margin-top:8px;font-size:12px;font-weight:400;color:#909399;line-height:17px}.pickup-upload .pickup-list .pickup-list-total .pickup-list-error[data-v-291fc1e2],.pickup-upload .pickup-list .pickup-list-total .pickup-list-number[data-v-291fc1e2],.pickup-upload .pickup-list .pickup-list-total .pickup-list-success[data-v-291fc1e2]{padding:0 5px}.pickup-upload .pickup-list .pickup-list-total .pickup-list-number[data-v-291fc1e2]{color:#303133}.pickup-upload .pickup-list .pickup-list-total .pickup-list-success[data-v-291fc1e2]{color:#33af4a}.pickup-upload .pickup-list .pickup-list-total .pickup-list-error[data-v-291fc1e2]{color:#f5222d}.upload-tip-text[data-v-291fc1e2]{width:308px}.upload-tip-text p[data-v-291fc1e2]{font-size:12px;font-weight:400;color:#303133;line-height:16px}.upload-tip-text p+p[data-v-291fc1e2]{margin-top:9px}.error-item[data-v-291fc1e2]{font-size:14px;font-weight:400;color:#303133;line-height:20px}.error-item+.error-item[data-v-291fc1e2]{margin-top:10px}.error-list[data-v-291fc1e2] .el-dialog__body{max-height:400px;overflow-y:auto}.upload-popper{padding:10px 12px!important}.transfer-tip{width:auto!important}.dash-style[data-v-3312e15c]{border-bottom:1px dashed #2f54eb}.w-630[data-v-3312e15c]{width:630px}.w-480[data-v-3312e15c]{width:480px}.w-350[data-v-3312e15c]{width:350px}.w-900[data-v-3312e15c]{width:900px}.mb56[data-v-3312e15c]{margin-bottom:56px}.add-sku-content[data-v-3312e15c]{border:1px solid #e4e7ed}.add-sku-content .add-sku[data-v-3312e15c]{margin:10px 13px;padding-top:12px;padding-left:12px;padding-bottom:12px;background:#f7f8fa}.add-sku-content .add-sku .add-sku-button[data-v-3312e15c]{width:110px;height:32px;background:#fff;border-radius:2px;border:1px dashed #c4c6cf;text-align:center}.from-content[data-v-3312e15c]{position:relative}.from-content .demo-ruleForm .form-section[data-v-3312e15c]{padding:30px 20px}.from-content .demo-ruleForm .form-section h3[data-v-3312e15c]{color:#303133;font-size:14px;font-weight:700;margin-bottom:31px;margin-left:20px;padding-bottom:9px;border-bottom:1px solid #dfdfdf}.from-content .demo-ruleForm .form-section h3[data-v-3312e15c]:before{clear:both;content:"";display:inline-block;overflow:hidden;width:3px;height:12px;line-height:14px;margin-right:8px;background:#2f54eb}.from-content .demo-ruleForm .form-section .tip-warm[data-v-3312e15c]{color:#909399;font-size:12px}.from-content .demo-ruleForm .form-section .tip-warm i[data-v-3312e15c]{color:#faad14;margin-right:5px}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list[data-v-3312e15c]{margin:10px 13px 10px 13px}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item[data-v-3312e15c]{width:100%}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .sku-name[data-v-3312e15c]{padding:8px;background:#f3f6f9;position:relative}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .sku-name .sku-title[data-v-3312e15c]{color:#303133;margin-right:7px}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .sku-name .sku-value-title[data-v-3312e15c]{color:#303133;width:55px}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .sku-name .delete-btn[data-v-3312e15c]{color:#909399;font-size:14px;position:absolute;right:20px;cursor:pointer}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .sku-name .delete-btn[data-v-3312e15c]:hover{color:#2f54ed}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content[data-v-3312e15c]{padding:15px 8px 15px 8px;display:-webkit-box;display:-ms-flexbox;display:flex}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content .sku-value-title[data-v-3312e15c]{color:#303133;width:55px}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content .value-list[data-v-3312e15c]{display:inline-block;-webkit-box-flex:1;-ms-flex:1;flex:1}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content .value-list .value-item[data-v-3312e15c]{display:inline-block;margin-right:10px;position:relative}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content .value-list .value-item .el-icon-error[data-v-3312e15c]{font-size:16px;position:absolute;right:-7px;top:-7px;color:#c0c4cc;display:none;cursor:pointer}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content .value-list .value-item:hover .el-icon-error[data-v-3312e15c]{display:inline-block;color:#909399}.from-content .demo-ruleForm .form-section .standard-info .sku-table-content[data-v-3312e15c]{padding:10px;width:900px;border:1px solid #dcdfe6;border-radius:2px}.from-content .demo-ruleForm .form-section .standard-info .sku-table-content .batch-box[data-v-3312e15c]{padding-left:130px;font-size:0;height:40px}.from-content .demo-ruleForm .fixed-btn[data-v-3312e15c]{width:100%;height:56px;position:fixed;bottom:0;left:200px;background:#fff;border-top:1px solid #e4e7ed;text-align:center;margin-left:-100px;z-index:2;font-size:0}.from-content .demo-ruleForm .fixed-btn .el-button[data-v-3312e15c]{margin-top:12px}.from-content .anchor-link[data-v-3312e15c]{width:120px;position:fixed;right:24px;top:180px;background:#fff}.from-content .anchor-link .link-item[data-v-3312e15c]{height:24px;line-height:24px;color:#606266;font-size:12px;border-left:2px solid #ebeef5;padding-left:18px;cursor:pointer}.from-content .see-btn[data-v-3312e15c]{color:#909399;margin-left:15px}.from-content .see-btn[data-v-3312e15c]:hover{color:#2f54ed}.ml20[data-v-3312e15c]{margin-left:20px}.mr10[data-v-3312e15c]{margin-right:10px}.mr16[data-v-3312e15c]{margin-right:16px}.table-img[data-v-3312e15c]{cursor:pointer;position:absolute;top:44px;left:0;width:90px;height:90px;background:#fff;border-radius:4px;border:1px solid #ff5152}.table-img .avatar-uploader[data-v-3312e15c]{z-index:2;text-align:center}.table-img .avatar-uploader .avatar-uploader-icon[data-v-3312e15c]{margin-top:30px}.table-img .triangle[data-v-3312e15c]{position:absolute;top:-6px;left:36px;width:0;height:0;border-width:0 6.5px 6px;border-style:solid;border-color:transparent transparent #ff5152}.table-img .triangle[data-v-3312e15c]:after{content:"";position:absolute;top:2px;left:-4.5px;border-width:0 4.5px 4px;border-style:solid;border-color:transparent transparent #fff}.table-img img[data-v-3312e15c]{width:88px;height:88px;border-radius:4px}.table-img[data-v-3312e15c]:hover{border:1px dashed #2f54ed}.table-img:hover .triangle[data-v-3312e15c]{border-color:transparent transparent #2f54ed}.img-modal[data-v-3312e15c]{width:89px;height:89px;position:absolute;left:-1px;top:-1px;background:rgba(0,0,0,.5);display:none;cursor:pointer;border-radius:4px;text-align:center}.img-modal .el-icon-delete[data-v-3312e15c]{color:#fff;margin-top:42px}.table-img:hover .img-modal[data-v-3312e15c]{display:inline-block}.tips-content[data-v-3312e15c]{position:absolute;left:-4px;top:8px}.store-tips[data-v-3312e15c]{width:200px;position:absolute;left:-10px}.add-sku-button .el-button--text{color:#303133}.sku-table th.star div:before{content:"*";color:red}.right-border{border-right:1px solid #ebeef5}.sku-table-content .sku-table th{line-height:17px!important}.hidden-limit .dm-input__counter{display:none} .transfer-trigger[data-v-291fc1e2]{margin-left:10px;width:160px}.transfer-trigger[data-v-291fc1e2]:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;background:transparent;cursor:pointer}.transfer-trigger[data-v-291fc1e2]:focus{outline:none}.transfer-trigger.is-focus[data-v-291fc1e2] .el-input__inner{border-color:#2f54eb;-webkit-box-shadow:0 0 0 2px rgba(47,84,237,.2);box-shadow:0 0 0 2px rgba(47,84,237,.2)}.transfer-trigger.is-focus .el-input__icon[data-v-291fc1e2]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.transfer[data-v-291fc1e2] .el-transfer-panel__item{padding-top:8px;padding-bottom:8px;width:100%;height:auto;line-height:normal}.transfer[data-v-291fc1e2] .el-transfer-panel__item .el-checkbox__input{top:10px}.transfer[data-v-291fc1e2] .el-transfer-panel__empty:before{content:"";display:block;margin:0 auto;width:30px;height:30px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDoxNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RTkwMDRBMDMyODdGMTFFQjk3RTdCOTlERjdFREE2Q0YiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RTkwMDRBMDQyODdGMTFFQjk3RTdCOTlERjdFREE2Q0YiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpFOTAwNEEwMTI4N0YxMUVCOTdFN0I5OURGN0VEQTZDRiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpFOTAwNEEwMjI4N0YxMUVCOTdFN0I5OURGN0VEQTZDRiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvTlQnQAAATgSURBVHja7JxNiBtlGIDfb2aS7CTZNNv96W5La6sgKloPpUcrvUjxsoJFRNCLiCKC4A9Fr4oW600UvHioBw+iuCdFTxa9CHuwgoiIPyva2Gy72SSTyUw23/i+dVbjNptmdud/3hdevvxNPr4n79/3MxGO4wDLzkVhBAyQASZZxG4uNk3zcWzeQN0bp0H1+xKaLfPT/Qsz98cWIMI7gs1PcbRiAlirr0NJLywtzE8/EFcXvjPuIcAwrcVLtSufxBWgmoQYdQ3ipdUPOInsBmLXfjgoiJnJwkFBzFQZEwTEzNWBfkPMZCHtJ8RUAhQiPIgptUARmiWmEqCiCFBFOBBTGwOr1RIoXiDWrny4k360tAKcKORgYV8V+lICOGN5/WkGOGy+qQTrZLweyAAZIANkgCwMkAEmVAKvAyUWslEffhA4I6HpXeIArq61wLI2YmEpU3uKUNQLyXFh2lqMC7xr892OnawYqKoK5LT4bNzpei55Ljw7XUFL7EPU579oVYZ+0MQBpNUkTUvE9jGXMQyQAXIh7Ul+XqmduvnQ/MjPrLdM6HQsb9lbU2B6qhz4QmikAD/67MILjVb7yZF1IM5A2kbX+8yl1wfDsKAyqafThRHeS9icG6t02OH0KZ+LJnPj2J4J1AKxg7PYnBl3/jk3UwHL3gAvdwJoqgr5fGRbNW/hGMsPnjpx1leA+KVkSm+iPufJvDGO6RP5pOWF13G8GkJ81RcXduG94xVewuUV19t2Z4H4JRSM3kN9LIMVyhmyRGxfRGt0PFuge/H5jMLblOfJ+1wvHB8gXkCB62PUR7hUhqdQ33W98cYu/MVXy5O23VuSUp4cGTwxW9Ka3+hUTOWMAkJEM3JK/tIZ82gHlU/athHtCUVV5pYv/vjQsaO32iMB5nPaPUcOLJwcp0O6F2OcepCK4lKxECo8A2dATZwJSQ8l1O23HB719uLlq43j2H4d6lyYBtBodkJdnaa+qE/p+2aMIyJbTOiYFqSxr9AAbkgJaewrNIC9Xh+kDH5xn/qgviIDmFNVI5iMSLHQgCDvkKfvXlsPto8bz0SECOznM7s9sO11KORzIPxe70O37do96Mtwt7BCX/agAXa6NqRFeEnfb4CqolqMZbgMY3MdwOlqpc6ohsswNuzCHAMZIANkgCwMkAEyQAbIshuAhmEWUU/P7t1zjrEMF2JDjIjV5mvChbeIzdM0W6Hnf9Ubd0vH0RjZgKUJsbFvtvqt+/Qq6tulkr4kEN6z+OTRwQ+32t35dsc8wNj+k1JR/6NSnqhtefl9AvjNkFgoGk3joNm1Zxkd0AGperVS+h2u32GW5KbLqMe3vOHgBStFfaJu2b2KIx01i+CEIvqFfK6Zz6nmNh9ZJgss44OXUe9jW/Mkn6O+Jgay8F3wz0GiE5CQ/waMQGi/6ALqeUwg3/2bhQcFQU5hc68L8hjFz4xDM9wwR+C+RHBr/3PzkVcaJiWX21CPot7hPr4pxRZKFvYb6g+o36NepMcIbdudes/nphAqJZ79qIdRD6HSn9EeRJ1zNe5nemlL8LKrlFl/QV1B/RX1T4Tl6RCP7wfPEPAkNjNUuLstadkNBeUtWnKtuThg1XRb5XZHuWhTpzdgLR23JTdrb9HN11Zdpf2MVQTU8jVT83/p82ICA2SAGZa/BRgARSLTLswzY7YAAAAASUVORK5CYII=) 50% no-repeat;background-size:contain}.transfer[data-v-291fc1e2] .el-transfer-panel__header{pointer-events:none}.transfer[data-v-291fc1e2] .el-transfer-panel__header .el-checkbox__input{display:none}.transfer .transfer-item[data-v-291fc1e2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.transfer .transfer-item .store-name[data-v-291fc1e2]{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:400;color:#303133;line-height:22px}.transfer .transfer-item .store-code[data-v-291fc1e2]{font-size:12px;font-weight:400;color:#303133;line-height:16px}.transfer[data-v-291fc1e2] .el-transfer__buttons .el-button{padding:0;width:24px;min-width:24px}.transfer[data-v-291fc1e2] .el-transfer__buttons .el-button:first-child{margin-bottom:0;-webkit-transform:translateY(calc(100% + 4px));transform:translateY(calc(100% + 4px))}.transfer[data-v-291fc1e2] .el-transfer__buttons .el-button:last-child{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.pickup-upload[data-v-291fc1e2]{display:inline-block;vertical-align:top;margin-left:10px}.pickup-upload .upload-trigger[data-v-291fc1e2]{border-style:dashed}.pickup-upload .upload-trigger .upload-icon[data-v-291fc1e2]{font-size:14px}.pickup-upload .upload-tip[data-v-291fc1e2]{display:inline-block}.pickup-upload .pickup-list[data-v-291fc1e2]{margin-top:18px}.pickup-upload .pickup-list .pickup-list-name[data-v-291fc1e2]{font-size:14px;font-weight:400;color:#303133;line-height:20px}.pickup-upload .pickup-list .pickup-list-name .file-icon[data-v-291fc1e2]{font-size:14px}.pickup-upload .pickup-list .download-pickup[data-v-291fc1e2]{margin-left:8px}.pickup-upload .pickup-list .pickup-list-total[data-v-291fc1e2]{margin-top:8px;font-size:12px;font-weight:400;color:#909399;line-height:17px}.pickup-upload .pickup-list .pickup-list-total .pickup-list-error[data-v-291fc1e2],.pickup-upload .pickup-list .pickup-list-total .pickup-list-number[data-v-291fc1e2],.pickup-upload .pickup-list .pickup-list-total .pickup-list-success[data-v-291fc1e2]{padding:0 5px}.pickup-upload .pickup-list .pickup-list-total .pickup-list-number[data-v-291fc1e2]{color:#303133}.pickup-upload .pickup-list .pickup-list-total .pickup-list-success[data-v-291fc1e2]{color:#33af4a}.pickup-upload .pickup-list .pickup-list-total .pickup-list-error[data-v-291fc1e2]{color:#f5222d}.upload-tip-text[data-v-291fc1e2]{width:308px}.upload-tip-text p[data-v-291fc1e2]{font-size:12px;font-weight:400;color:#303133;line-height:16px}.upload-tip-text p+p[data-v-291fc1e2]{margin-top:9px}.error-item[data-v-291fc1e2]{font-size:14px;font-weight:400;color:#303133;line-height:20px}.error-item+.error-item[data-v-291fc1e2]{margin-top:10px}.error-list[data-v-291fc1e2] .el-dialog__body{max-height:400px;overflow-y:auto}.upload-popper{padding:10px 12px!important}.transfer-tip{width:auto!important}.dash-style[data-v-5321a154]{border-bottom:1px dashed #2f54eb}.w-630[data-v-5321a154]{width:630px}.w-480[data-v-5321a154]{width:480px}.w-350[data-v-5321a154]{width:350px}.w-900[data-v-5321a154]{width:900px}.mb56[data-v-5321a154]{margin-bottom:56px}.add-sku-content[data-v-5321a154]{border:1px solid #e4e7ed}.add-sku-content .add-sku[data-v-5321a154]{margin:10px 13px;padding-top:12px;padding-left:12px;padding-bottom:12px;background:#f7f8fa}.add-sku-content .add-sku .add-sku-button[data-v-5321a154]{width:110px;height:32px;background:#fff;border-radius:2px;border:1px dashed #c4c6cf;text-align:center}.from-content[data-v-5321a154]{position:relative}.from-content .demo-ruleForm .form-section[data-v-5321a154]{padding:30px 20px}.from-content .demo-ruleForm .form-section h3[data-v-5321a154]{color:#303133;font-size:14px;font-weight:700;margin-bottom:31px;margin-left:20px;padding-bottom:9px;border-bottom:1px solid #dfdfdf}.from-content .demo-ruleForm .form-section h3[data-v-5321a154]:before{clear:both;content:"";display:inline-block;overflow:hidden;width:3px;height:12px;line-height:14px;margin-right:8px;background:#2f54eb}.from-content .demo-ruleForm .form-section .tip-warm[data-v-5321a154]{color:#909399;font-size:12px}.from-content .demo-ruleForm .form-section .tip-warm i[data-v-5321a154]{color:#faad14;margin-right:5px}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list[data-v-5321a154]{margin:10px 13px 10px 13px}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item[data-v-5321a154]{width:100%}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .sku-name[data-v-5321a154]{padding:8px;background:#f3f6f9;position:relative}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .sku-name .sku-title[data-v-5321a154]{color:#303133;margin-right:7px}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .sku-name .sku-value-title[data-v-5321a154]{color:#303133;width:55px}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .sku-name .delete-btn[data-v-5321a154]{color:#909399;font-size:14px;position:absolute;right:20px;cursor:pointer}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .sku-name .delete-btn[data-v-5321a154]:hover{color:#2f54ed}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content[data-v-5321a154]{padding:15px 8px 15px 8px;display:-webkit-box;display:-ms-flexbox;display:flex}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content .sku-value-title[data-v-5321a154]{color:#303133;width:55px}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content .value-list[data-v-5321a154]{display:inline-block;-webkit-box-flex:1;-ms-flex:1;flex:1}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content .value-list .value-item[data-v-5321a154]{display:inline-block;margin-right:10px;position:relative}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content .value-list .value-item .el-icon-error[data-v-5321a154]{font-size:16px;position:absolute;right:-7px;top:-7px;color:#c0c4cc;display:none;cursor:pointer}.from-content .demo-ruleForm .form-section .standard-info .add-sku-list .add-sku-item .value-content .value-list .value-item:hover .el-icon-error[data-v-5321a154]{display:inline-block;color:#909399}.from-content .demo-ruleForm .form-section .standard-info .sku-table-content[data-v-5321a154]{padding:10px;width:900px;border:1px solid #dcdfe6;border-radius:2px}.from-content .demo-ruleForm .form-section .standard-info .sku-table-content .batch-box[data-v-5321a154]{padding-left:130px;font-size:0;height:40px}.from-content .demo-ruleForm .fixed-btn[data-v-5321a154]{width:100%;height:56px;position:fixed;bottom:0;left:200px;background:#fff;border-top:1px solid #e4e7ed;text-align:center;margin-left:-100px;z-index:2;font-size:0}.from-content .demo-ruleForm .fixed-btn .el-button[data-v-5321a154]{margin-top:12px}.from-content .anchor-link[data-v-5321a154]{width:120px;position:fixed;right:24px;top:180px;background:#fff}.from-content .anchor-link .link-item[data-v-5321a154]{height:24px;line-height:24px;color:#606266;font-size:12px;border-left:2px solid #ebeef5;padding-left:18px;cursor:pointer}.from-content .see-btn[data-v-5321a154]{color:#909399;margin-left:15px}.from-content .see-btn[data-v-5321a154]:hover{color:#2f54ed}.ml20[data-v-5321a154]{margin-left:20px}.mr10[data-v-5321a154]{margin-right:10px}.mr16[data-v-5321a154]{margin-right:16px}.table-img[data-v-5321a154]{cursor:pointer;position:absolute;top:44px;left:0;width:90px;height:90px;background:#fff;border-radius:4px;border:1px solid #ff5152}.table-img .avatar-uploader[data-v-5321a154]{z-index:2;text-align:center}.table-img .avatar-uploader .avatar-uploader-icon[data-v-5321a154]{margin-top:30px}.table-img .triangle[data-v-5321a154]{position:absolute;top:-6px;left:36px;width:0;height:0;border-width:0 6.5px 6px;border-style:solid;border-color:transparent transparent #ff5152}.table-img .triangle[data-v-5321a154]:after{content:"";position:absolute;top:2px;left:-4.5px;border-width:0 4.5px 4px;border-style:solid;border-color:transparent transparent #fff}.table-img img[data-v-5321a154]{width:88px;height:88px;border-radius:4px}.table-img[data-v-5321a154]:hover{border:1px dashed #2f54ed}.table-img:hover .triangle[data-v-5321a154]{border-color:transparent transparent #2f54ed}.img-modal[data-v-5321a154]{width:89px;height:89px;position:absolute;left:-1px;top:-1px;background:rgba(0,0,0,.5);display:none;cursor:pointer;border-radius:4px;text-align:center}.img-modal .el-icon-delete[data-v-5321a154]{color:#fff;margin-top:42px}.table-img:hover .img-modal[data-v-5321a154]{display:inline-block}.tips-content[data-v-5321a154]{position:absolute;left:-4px;top:8px}.store-tips[data-v-5321a154]{width:200px;position:absolute;left:-10px}.add-sku-button .el-button--text{color:#303133}.sku-table th.star div:before{content:"*";color:red}.right-border{border-right:1px solid #ebeef5}.sku-table-content .sku-table th{line-height:17px!important}.hidden-limit .dm-input__counter{display:none}
\ No newline at end of file \ No newline at end of file
.step-text[data-v-59c95538]{color:#000;font-size:14px}.dash-style[data-v-59c95538]{border-bottom:1px dashed #2f54eb}.upload-btn[data-v-59c95538]{height:40px;border:1px dashed #c0c4cc;display:inline-block;font-size:14px;color:#c0c4cc;cursor:pointer;margin-right:10px;width:250px;border-radius:4px}.upload-btn .el-icon-upload2[data-v-59c95538]{font-size:18px;color:#c0c4cc}.upload-btn[data-v-59c95538]:hover{border-color:#1890ff}.upload-ele .el-button[data-v-59c95538]{border:none;color:#c0c4cc}.upload-ele .el-button--small[data-v-59c95538]{padding:0}.w-630[data-v-59c95538]{width:630px}.mb56[data-v-59c95538]{margin-bottom:56px}.from-content[data-v-59c95538]{position:relative}.from-content .demo-ruleForm .form-section[data-v-59c95538]{padding:30px 20px}.from-content .demo-ruleForm .form-section h3[data-v-59c95538]{color:#303133;font-size:14px;font-weight:700;margin-bottom:31px;margin-left:20px;padding-bottom:9px;border-bottom:1px solid #dfdfdf}.from-content .demo-ruleForm .form-section h3[data-v-59c95538]:before{clear:both;content:"";display:inline-block;overflow:hidden;width:3px;height:12px;line-height:14px;margin-right:8px;background:#2f54eb}.from-content .demo-ruleForm .form-section .tip-warm[data-v-59c95538]{color:#909399;font-size:12px}.from-content .demo-ruleForm .form-section .tip-warm i[data-v-59c95538]{color:#faad14;margin-right:5px}.from-content .demo-ruleForm .fixed-btn[data-v-59c95538]{width:100%;height:56px;position:fixed;bottom:0;left:200px;background:#fff;border-top:1px solid #e4e7ed;text-align:center;margin-left:-100px;z-index:2;font-size:0}.from-content .demo-ruleForm .fixed-btn .el-button[data-v-59c95538]{margin-top:12px}.from-content .anchor-link[data-v-59c95538]{width:120px;position:fixed;right:24px;top:180px;background:#fff}.from-content .anchor-link .link-item[data-v-59c95538]{height:24px;line-height:24px;color:#606266;font-size:12px;border-left:2px solid #ebeef5;padding-left:18px;cursor:pointer}.from-content .see-btn[data-v-59c95538]{color:#909399;margin-left:15px}.from-content .see-btn[data-v-59c95538]:hover{color:#2f54ed}.ml20[data-v-59c95538]{margin-left:20px}.mr10[data-v-59c95538]{margin-right:10px}.tips-content[data-v-59c95538]{position:absolute;left:-4px;top:6px}.store-tips[data-v-59c95538]{width:200px;position:absolute;left:-10px}.underline[data-v-59c95538]{text-decoration:underline}.pickup-upload[data-v-59c95538]{display:inline-block;vertical-align:top;margin-left:10px}.pickup-upload .upload-trigger[data-v-59c95538]{border-style:dashed}.pickup-upload .upload-trigger .upload-icon[data-v-59c95538]{font-size:14px}.pickup-upload .pickup-list[data-v-59c95538]{margin-top:18px}.pickup-upload .pickup-list .pickup-list-name[data-v-59c95538]{font-size:14px;font-weight:400;color:#303133;line-height:20px}.pickup-upload .pickup-list .pickup-list-name .file-icon[data-v-59c95538]{font-size:14px}.right-border{border-right:1px solid #ebeef5}.step-style .el-step.is-vertical .el-step__line{top:30px;left:8px;-webkit-transform:scaleX(.5);transform:scaleX(.5)}.step-style .el-step__head.is-finish{color:#2f54eb;border-color:#2f54eb}.step-style .el-step__icon.is-text{border:1px solid}.step-style .el-step__icon{width:16px;height:16px}.step-style .el-step__icon-inner{font-size:12px}
\ No newline at end of file
.step-text[data-v-b6d548a4]{color:#000;font-size:14px}.dash-style[data-v-b6d548a4]{border-bottom:1px dashed #2f54eb}.upload-btn[data-v-b6d548a4]{height:40px;border:1px dashed #c0c4cc;display:inline-block;font-size:14px;color:#c0c4cc;cursor:pointer;margin-right:10px;width:250px;border-radius:4px}.upload-btn .el-icon-upload2[data-v-b6d548a4]{font-size:18px;color:#c0c4cc}.upload-btn[data-v-b6d548a4]:hover{border-color:#1890ff}.upload-ele .el-button[data-v-b6d548a4]{border:none;color:#c0c4cc}.upload-ele .el-button--small[data-v-b6d548a4]{padding:0}.w-630[data-v-b6d548a4]{width:630px}.mb56[data-v-b6d548a4]{margin-bottom:56px}.from-content[data-v-b6d548a4]{position:relative}.from-content .demo-ruleForm .form-section[data-v-b6d548a4]{padding:30px 20px}.from-content .demo-ruleForm .form-section h3[data-v-b6d548a4]{color:#303133;font-size:14px;font-weight:700;margin-bottom:31px;margin-left:20px;padding-bottom:9px;border-bottom:1px solid #dfdfdf}.from-content .demo-ruleForm .form-section h3[data-v-b6d548a4]:before{clear:both;content:"";display:inline-block;overflow:hidden;width:3px;height:12px;line-height:14px;margin-right:8px;background:#2f54eb}.from-content .demo-ruleForm .form-section .tip-warm[data-v-b6d548a4]{color:#909399;font-size:12px}.from-content .demo-ruleForm .form-section .tip-warm i[data-v-b6d548a4]{color:#faad14;margin-right:5px}.from-content .demo-ruleForm .fixed-btn[data-v-b6d548a4]{width:100%;height:56px;position:fixed;bottom:0;left:200px;background:#fff;border-top:1px solid #e4e7ed;text-align:center;margin-left:-100px;z-index:2;font-size:0}.from-content .demo-ruleForm .fixed-btn .el-button[data-v-b6d548a4]{margin-top:12px}.from-content .anchor-link[data-v-b6d548a4]{width:120px;position:fixed;right:24px;top:180px;background:#fff}.from-content .anchor-link .link-item[data-v-b6d548a4]{height:24px;line-height:24px;color:#606266;font-size:12px;border-left:2px solid #ebeef5;padding-left:18px;cursor:pointer}.from-content .see-btn[data-v-b6d548a4]{color:#909399;margin-left:15px}.from-content .see-btn[data-v-b6d548a4]:hover{color:#2f54ed}.ml20[data-v-b6d548a4]{margin-left:20px}.mr10[data-v-b6d548a4]{margin-right:10px}.tips-content[data-v-b6d548a4]{position:absolute;left:-4px;top:6px}.store-tips[data-v-b6d548a4]{width:200px;position:absolute;left:-10px}.underline[data-v-b6d548a4]{text-decoration:underline}.pickup-upload[data-v-b6d548a4]{display:inline-block;vertical-align:top;margin-left:10px}.pickup-upload .upload-trigger[data-v-b6d548a4]{border-style:dashed}.pickup-upload .upload-trigger .upload-icon[data-v-b6d548a4]{font-size:14px}.pickup-upload .pickup-list[data-v-b6d548a4]{margin-top:18px}.pickup-upload .pickup-list .pickup-list-name[data-v-b6d548a4]{font-size:14px;font-weight:400;color:#303133;line-height:20px}.pickup-upload .pickup-list .pickup-list-name .file-icon[data-v-b6d548a4]{font-size:14px}.right-border{border-right:1px solid #ebeef5}.step-style .el-step.is-vertical .el-step__line{top:30px;left:8px;-webkit-transform:scaleX(.5);transform:scaleX(.5)}.step-style .el-step__head.is-finish{color:#2f54eb;border-color:#2f54eb}.step-style .el-step__icon.is-text{border:1px solid}.step-style .el-step__icon{width:16px;height:16px}.step-style .el-step__icon-inner{font-size:12px}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/welfare/favicon2.ico><link rel=stylesheet href=/welfare/static/css/index.css><link href=https://cdn.bootcss.com/element-ui/2.12.0/theme-chalk/index.css rel=stylesheet><link href=//at.alicdn.com/t/font_1434755_89ndzcq2ndm.css rel=stylesheet><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1418963_hrpaaxicjis.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1393418_z4h4445tiwe.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_2349215_zw94rco4ss.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1418963_8ssgac9p1n7.css><script src=//at.alicdn.com/t/font_1418963_8ssgac9p1n7.js></script><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.58.3.css><script src=//at.alicdn.com/t/font_1418963_hrpaaxicjis.js></script><link href=/welfare/css/card-package.d0bf2b76.css rel=prefetch><link href=/welfare/css/card-package~gic-card.223f94e1.css rel=prefetch><link href=/welfare/css/chunk-08b2d41b.3fcf9c04.css rel=prefetch><link href=/welfare/css/chunk-12a2bbcb.bde4bb10.css rel=prefetch><link href=/welfare/css/chunk-28cb370c.c4067039.css rel=prefetch><link href=/welfare/css/chunk-2a7f1670.66a05070.css rel=prefetch><link href=/welfare/css/chunk-3ab2cf8c.111b794e.css rel=prefetch><link href=/welfare/css/chunk-3deefcb9.439cdc24.css rel=prefetch><link href=/welfare/css/chunk-474caa97.19a10178.css rel=prefetch><link href=/welfare/css/chunk-51f3e04f.c1d0a988.css rel=prefetch><link href=/welfare/css/chunk-5ed58741.c94169a0.css rel=prefetch><link href=/welfare/css/chunk-e34bb126.fd1824c3.css rel=prefetch><link href=/welfare/css/chunk-f803170c.9190ad7d.css rel=prefetch><link href=/welfare/css/gic-card.0d217467.css rel=prefetch><link href=/welfare/js/card-package.22b8ce87.js rel=prefetch><link href=/welfare/js/card-package~gic-card.2fb62c5d.js rel=prefetch><link href=/welfare/js/chunk-08b2d41b.f1758858.js rel=prefetch><link href=/welfare/js/chunk-0d4ebdfa.fc3e1ce1.js rel=prefetch><link href=/welfare/js/chunk-12a2bbcb.2af2690d.js rel=prefetch><link href=/welfare/js/chunk-28cb370c.79486b7e.js rel=prefetch><link href=/welfare/js/chunk-2a7f1670.06dc2761.js rel=prefetch><link href=/welfare/js/chunk-34bff564.5c41d86f.js rel=prefetch><link href=/welfare/js/chunk-3ab2cf8c.d19411fe.js rel=prefetch><link href=/welfare/js/chunk-3deefcb9.b5829a10.js rel=prefetch><link href=/welfare/js/chunk-474caa97.4c5f1cad.js rel=prefetch><link href=/welfare/js/chunk-51f3e04f.2d2f2d18.js rel=prefetch><link href=/welfare/js/chunk-5ed58741.64dd7151.js rel=prefetch><link href=/welfare/js/chunk-6287d3af.fa4fbc54.js rel=prefetch><link href=/welfare/js/chunk-bb542da4.261bc160.js rel=prefetch><link href=/welfare/js/chunk-e34bb126.e0a0ddf9.js rel=prefetch><link href=/welfare/js/chunk-f803170c.62835622.js rel=prefetch><link href=/welfare/js/gic-card.b4587236.js rel=prefetch><link href=/welfare/css/app.1531f837.css rel=preload as=style><link href=/welfare/js/app.4b10f0a9.js rel=preload as=script><link href=/welfare/js/chunk-vendors.e1d4da3a.js rel=preload as=script><link href=/welfare/css/app.1531f837.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue-router/3.0.3/vue-router.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/base.1.0.0.17.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.59.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.20.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-select.1.1.92.js></script><script src=//web-1251519181.file.myqcloud.com/components/goods-selector.1.0.51.js></script><script src=//web-1251519181.file.myqcloud.com/components/card-select.1.0.34.js></script><script src=//web-1251519181.file.myqcloud.com/components/link-tools.2.1.21.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.1.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/integral-select.1.0.26.js></script><script src=//web-1251519181.file.myqcloud.com/components/rule-engine.1.0.86.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/steps.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-picture.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-file.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/app-info.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/preview-img.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.1.1.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/input-number.1.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/welfare-selector.0.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/acc-group-select.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.13.js></script><script src=/welfare/js/chunk-vendors.e1d4da3a.js></script><script src=/welfare/js/app.4b10f0a9.js></script></body></html> <!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/welfare/favicon2.ico><link rel=stylesheet href=/welfare/static/css/index.css><link href=https://cdn.bootcss.com/element-ui/2.12.0/theme-chalk/index.css rel=stylesheet><link href=//at.alicdn.com/t/font_1434755_89ndzcq2ndm.css rel=stylesheet><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1418963_hrpaaxicjis.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1393418_z4h4445tiwe.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_2349215_zw94rco4ss.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1418963_8ssgac9p1n7.css><script src=//at.alicdn.com/t/font_1418963_8ssgac9p1n7.js></script><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.58.3.css><script src=//at.alicdn.com/t/font_1418963_hrpaaxicjis.js></script><link href=/welfare/css/card-package.d0bf2b76.css rel=prefetch><link href=/welfare/css/card-package~gic-card.223f94e1.css rel=prefetch><link href=/welfare/css/chunk-0185feca.344f98f2.css rel=prefetch><link href=/welfare/css/chunk-08b2d41b.3fcf9c04.css rel=prefetch><link href=/welfare/css/chunk-12a2bbcb.bde4bb10.css rel=prefetch><link href=/welfare/css/chunk-28cb370c.c4067039.css rel=prefetch><link href=/welfare/css/chunk-3ab2cf8c.111b794e.css rel=prefetch><link href=/welfare/css/chunk-3deefcb9.439cdc24.css rel=prefetch><link href=/welfare/css/chunk-474caa97.19a10178.css rel=prefetch><link href=/welfare/css/chunk-51f3e04f.c1d0a988.css rel=prefetch><link href=/welfare/css/chunk-9e7ba7ac.e2d1f57b.css rel=prefetch><link href=/welfare/css/chunk-e34bb126.fd1824c3.css rel=prefetch><link href=/welfare/css/chunk-f803170c.9190ad7d.css rel=prefetch><link href=/welfare/css/gic-card.0d217467.css rel=prefetch><link href=/welfare/js/card-package.22b8ce87.js rel=prefetch><link href=/welfare/js/card-package~gic-card.b57979aa.js rel=prefetch><link href=/welfare/js/chunk-0185feca.10204cb8.js rel=prefetch><link href=/welfare/js/chunk-08b2d41b.f1758858.js rel=prefetch><link href=/welfare/js/chunk-0d4ebdfa.45e74929.js rel=prefetch><link href=/welfare/js/chunk-12a2bbcb.2af2690d.js rel=prefetch><link href=/welfare/js/chunk-28cb370c.6af1998c.js rel=prefetch><link href=/welfare/js/chunk-34bff564.d2801cb5.js rel=prefetch><link href=/welfare/js/chunk-3ab2cf8c.9f2d6619.js rel=prefetch><link href=/welfare/js/chunk-3deefcb9.b5829a10.js rel=prefetch><link href=/welfare/js/chunk-474caa97.4c5f1cad.js rel=prefetch><link href=/welfare/js/chunk-51f3e04f.9dd8de95.js rel=prefetch><link href=/welfare/js/chunk-6287d3af.e3fbaa92.js rel=prefetch><link href=/welfare/js/chunk-9e7ba7ac.11fc726d.js rel=prefetch><link href=/welfare/js/chunk-bb542da4.261bc160.js rel=prefetch><link href=/welfare/js/chunk-e34bb126.31fe8694.js rel=prefetch><link href=/welfare/js/chunk-f803170c.62835622.js rel=prefetch><link href=/welfare/js/gic-card.b4587236.js rel=prefetch><link href=/welfare/css/app.1531f837.css rel=preload as=style><link href=/welfare/js/app.796c63f1.js rel=preload as=script><link href=/welfare/js/chunk-vendors.e1d4da3a.js rel=preload as=script><link href=/welfare/css/app.1531f837.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue-router/3.0.3/vue-router.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/base.1.0.0.17.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.59.js></script><script src=//web-1251519181.file.myqcloud.com/components/input.2.0.20.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-select.1.1.92.js></script><script src=//web-1251519181.file.myqcloud.com/components/goods-selector.1.0.51.js></script><script src=//web-1251519181.file.myqcloud.com/components/card-select.1.0.34.js></script><script src=//web-1251519181.file.myqcloud.com/components/link-tools.2.1.21.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.1.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/integral-select.1.0.26.js></script><script src=//web-1251519181.file.myqcloud.com/components/rule-engine.1.0.86.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/steps.1.0.1.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-picture.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/upload-file.1.0.6.js></script><script src=//web-1251519181.file.myqcloud.com/components/app-info.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/preview-img.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.1.1.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/input-number.1.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/welfare-selector.0.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/acc-group-select.1.0.5.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.13.js></script><script src=/welfare/js/chunk-vendors.e1d4da3a.js></script><script src=/welfare/js/app.796c63f1.js></script></body></html>
\ No newline at end of file \ No newline at end of file
(function(e){function t(t){for(var r,a,o=t[0],u=t[1],s=t[2],d=0,l=[];d<o.length;d++)a=o[d],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&l.push(c[a][0]),c[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);p&&p(t);while(l.length)l.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var o=n[a];0!==c[o]&&(r=!1)}r&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},c={app:0},i=[];function o(e){return u.p+"js/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"2fb62c5d","card-package":"22b8ce87","gic-card":"b4587236","chunk-08b2d41b":"f1758858","chunk-0d4ebdfa":"fc3e1ce1","chunk-12a2bbcb":"2af2690d","chunk-28cb370c":"79486b7e","chunk-2a7f1670":"06dc2761","chunk-34bff564":"5c41d86f","chunk-3ab2cf8c":"d19411fe","chunk-3deefcb9":"b5829a10","chunk-474caa97":"4c5f1cad","chunk-51f3e04f":"2d2f2d18","chunk-5ed58741":"64dd7151","chunk-6287d3af":"fa4fbc54","chunk-bb542da4":"261bc160","chunk-e34bb126":"e0a0ddf9","chunk-f803170c":"62835622"}[e]+".js"}function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"card-package~gic-card":1,"card-package":1,"gic-card":1,"chunk-08b2d41b":1,"chunk-12a2bbcb":1,"chunk-28cb370c":1,"chunk-2a7f1670":1,"chunk-3ab2cf8c":1,"chunk-3deefcb9":1,"chunk-474caa97":1,"chunk-51f3e04f":1,"chunk-5ed58741":1,"chunk-e34bb126":1,"chunk-f803170c":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"223f94e1","card-package":"d0bf2b76","gic-card":"0d217467","chunk-08b2d41b":"3fcf9c04","chunk-0d4ebdfa":"31d6cfe0","chunk-12a2bbcb":"bde4bb10","chunk-28cb370c":"c4067039","chunk-2a7f1670":"66a05070","chunk-34bff564":"31d6cfe0","chunk-3ab2cf8c":"111b794e","chunk-3deefcb9":"439cdc24","chunk-474caa97":"19a10178","chunk-51f3e04f":"c1d0a988","chunk-5ed58741":"c94169a0","chunk-6287d3af":"31d6cfe0","chunk-bb542da4":"31d6cfe0","chunk-e34bb126":"fd1824c3","chunk-f803170c":"9190ad7d"}[e]+".css",c=u.p+r,i=document.getElementsByTagName("link"),o=0;o<i.length;o++){var s=i[o],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===r||d===c))return t()}var l=document.getElementsByTagName("style");for(o=0;o<l.length;o++){s=l[o],d=s.getAttribute("data-href");if(d===r||d===c)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var r=t&&t.target&&t.target.src||c,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],p.parentNode.removeChild(p),n(i)},p.href=c;var f=document.getElementsByTagName("head")[0];f.appendChild(p)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=i);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,u.nc&&d.setAttribute("nonce",u.nc),d.src=o(e);var l=new Error;s=function(t){d.onerror=d.onload=null,clearTimeout(p);var n=c[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",l.name="ChunkLoadError",l.type=r,l.request=a,n[1](l)}c[e]=void 0}};var p=setTimeout((function(){s({type:"timeout",target:d})}),12e4);d.onerror=d.onload=s,document.head.appendChild(d)}return Promise.all(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/welfare/",u.oe=function(e){throw e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],d=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var p=d;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"0ae1":function(e,t,n){e.exports=n.p+"img/app.ab4c23ff.svg"},1921:function(e,t,n){},"1f99":function(e,t,n){},2934:function(e,t,n){"use strict";n("8e6e"),n("ac6a"),n("456d");var r=n("ade3"),a=n("71f6"),c=n("f121");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={loginUserMenu:"/login-user-menu",loginUserMenuOfApp:"/login-user-menu-of-app"},s={getSubappList:"/area/member-cards",getAppList:"/stock/application-list",getStockList:{url:"/stock/stock-list",method:"post",useFormData:!0},getStockActivityStatistics:"/stock/activity-statistics",getRelationId:"/gift/get-gift-id",virtualUploadLog:{url:"/gift/vir-card-log-page",method:"post"},virtualErrorPage:"/gift/vir-card-error-page",getWelfareAppList:"/gift/get-welfare-application-list"},d={getAppInfo:{url:"/enterprise-serve-info",alertError:!1},getMallShopList:"/outer/all-mall-shop",activityList:"/activity/list-marketing-page",getActivityInfo:"/activity/get-marketing-activity"};s=Object(a["a"])(s,c["f"]),u=Object(a["a"])(u,c["b"]),d=Object(a["a"])(d,c["d"]),t["a"]=o(o(o({},u),d),s);c["d"]},"3ba8":function(e,t,n){},4360:function(e,t,n){"use strict";n("96cf");var r=n("1da1"),a=(n("7514"),n("20d6"),n("8bbf")),c=n.n(a),i=n("5880"),o=n.n(i),u=n("cf45");c.a.use(o.a),t["a"]=new o.a.Store({state:{lock:!1,loading:!1,defaultAreaId:"",currentAreaName:"",currentAreaId:"",deleteFlag:!1,areaSubList:[],moduleCode:"welfare",project:"",menu:{},extraHideLeft:"",mainHeight:0,routePath:[],showCornerCanUseApp:!1},mutations:{updateShowCornerCanUseApp:function(e,t){e.showCornerCanUseApp=t},updateRoutePath:function(e,t){e.routePath=t},updateMainHeight:function(e,t){e.mainHeight=t},updateLock:function(e,t){e.lock=t},updateAreaName:function(e,t){var n=t.areaId,r=t.areaName,a=e.areaSubList.findIndex((function(e){return e.areaId===n}));-1!==a&&(e.areaSubList[a].areaName=r,e.currentAreaId===n&&(e.currentAreaName=r))},setSubAppList:function(e,t){e.areaSubList=t},setDefaultSubAppId:function(e,t){},setCurrentSubApp:function(e,t){var n=e.areaSubList.find((function(e){return e.areaId===t}))||{};Object(u["b"])(e.moduleCode,"set",t),e.currentAreaId=n.areaId||"",e.currentAreaName=n.areaName||"",e.deleteFlag=n.deleteFlag||!1},setProject:function(e,t){e.project=t||""},updateExtraHideLeft:function(e,t){e.extraHideLeft=t||""}},actions:{setDefaultAppId:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.commit("setDefaultSubAppId",n);case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},plugins:[]})},"4c57":function(e,t,n){e.exports=n.p+"img/w-real-gifts.a8edb5c6.svg"},"56d7":function(e,t,n){"use strict";n.r(t);n("7f7f"),n("ac6a"),n("456d"),n("cadf"),n("551c"),n("f751"),n("097d"),n("1f99"),n("88ed"),n("6861");var r=n("5c96"),a=n.n(r),c=n("cebe"),i=n.n(c),o=n("8bbf"),u=n.n(o),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dm-reset",attrs:{id:"app"}},[n("router-view")],1)},d=[],l=(n("28a5"),{name:"App",data:function(){return{isRouterAlive:!0}},mounted:function(){this.$store.commit("updateMainHeight",document.body.offsetHeight-180)},watch:{$route:{handler:function(e){e.path.split("/")[1]&&this.$store.commit("setProject",window.location.pathname.split("/")[2])},deep:!0,immediate:!0}}}),p=l,f=n("2877"),h=Object(f["a"])(p,s,d,!1,null,null,null),m=h.exports,g=n("a18c"),b=n("d046"),v=(n("6c7b"),n("c5f6"),n("ed08")),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"¥",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=Number(e);return isNaN(a)?e:"".concat(r?t:"").concat(Object(v["d"])(a,n))},w={amountFormat:y},k={computed:{currentAreaId:function(){return this.$store.state.currentAreaId},currentAreaIds:function(){return this.$store.state.currentAreaId?[this.$store.state.currentAreaId]:[]},currentAreaDelete:function(){return this.$store.state.delete_flag}}},O=n("4360"),j=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("dm-perm-button",{attrs:{"perm-tip":e.permTip,"perm-tip-placement":e.permTipPlacement,size:e.size,type:e.type,plain:e.plain,round:e.round,loading:e.loading,disabled:e.disabled,icon:e.icon,autofocus:e.autofocus,"native-type":e.nativeType},nativeOn:{click:function(t){return e.handleClick(t)}}},[e._t("default")],2)},C=[],S={name:"MkButton",props:{effect:{type:String,default:"dark"},delayTimes:{type:Number,default:300},permTipPlacement:{type:String,default:"top"},size:String,type:String,plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:String,autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button"},option:{type:Object,default:function(){return{}}}},data:function(){return{permTip:"",disabled:!1}},mounted:function(){return this.option.perm?(this.permTip="您无该操作权限,请联系超管!",void(this.disabled=!0)):this.option.deleteFlag?(this.disabled=!0,void(this.permTip=this.option.deleteRemark||"域已被删除")):void 0},methods:{handleClick:function(){this.disabled||this.$emit("click")}}},x=S,P=Object(f["a"])(x,j,C,!1,null,null,null),A=P.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"member-info",style:"height:"+e.height+"px"},[n("dm-preview-img",{staticClass:"img",attrs:{img:e.memberImage,width:e.width,height:e.height}}),n("p",{class:e.hidePhone?"pt10":""},[e._v(e._s(e.memberName||"--"))]),e.hidePhone?e._e():n("p",{class:e.memberPhone?"":"hide"},[e._v(e._s(e.showPhoneTip?"手机号码:":"")+e._s(e.memberPhone||"--"))])],1)},_=[],L={name:"Memberinfo",props:{memberName:{type:String},memberImage:{type:String},memberPhone:{type:String},showPhoneTip:{type:Boolean,default:!1},width:{type:[String,Number],default:40},height:{type:[String,Number],default:40},hidePhone:{type:Boolean,default:!1}},data:function(){return{}}},E=L,D=(n("89c4"),Object(f["a"])(E,I,_,!1,null,"e0d88100",null)),$=D.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-image",{attrs:{src:e.src,fit:e.fit,lazy:e.lazy,"scroll-container":e.scrollContainer,"preview-src-list":e.previewSrcList,"z-index":e.zIndex},on:{click:e.viewClick},scopedSlots:e._u([{key:"error",fn:function(){return[e._t("error")]},proxy:!0}],null,!0)})},U=[],M={name:"DmElImageView",props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},methods:{viewClick:function(){this.$emit("click"),document.body.style=""}}},T=M,F=Object(f["a"])(T,N,U,!1,null,null,null),H=F.exports,B={gicCardFormAdd:"gicCardFormAdd",gicCardFormCopy:"gicCardFormCopy",gicCardFormInfo:"gicCardFormInfo",gicCardFormEdit:"gicCardFormEdit",gicCardFormDel:"gicCardFormDel",gicCardGroupBtn:"gicCardGroupBtn",gicCardMemberGetExport:"gicCardMemberGetExport",gicCardGiveLogExport:"gicCardGiveLogExport",gicCardGroupSendForm:"gicCardGroupSendForm",gicCardGroupSendInfo:"gicCardGroupSendInfo",gicCardGroupSendInfoLog:"gicCardGroupSendInfoLog",gicCardStopGroupSend:"gicCardStopGroupSend",gicCardSyncStock:"gicCardSyncStock",gicCardDestory:"gicCardDestory",gicCardDestoryExport:"gicCardDestoryExport",gicAddPackage:"gicAddPackage",gicEditPackage:"gicEditPackage",gicDeletePackage:"gicDeletePackage",gicSyncStockPack:"gicSyncStockPack",gicAdjustStockPack:"gicAdjustStockPack",gicCardShelfLogExportBtn:"gicCardShelfLogExportBtn"},R=(n("a481"),n("96cf"),n("1da1")),G=(n("5df3"),n("b775")),z="",V=[],W=[],q={},J=K();function K(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}function Y(){return Object(G["a"])({url:"/gic-auth-web/get-login-user-info"})}function Q(){var e=Object(G["a"])({url:"/gic-auth-web/login-user-menu"}).then((function(e){W=ee(e.result||[])})),t=Object(G["a"])({url:"/gic-auth-web/login-user-operation-item"}).then((function(e){q=te(e.result||[])}));return Promise.all([e,t])}function X(e){return Z.apply(this,arguments)}function Z(){return Z=Object(R["a"])(regeneratorRuntime.mark((function e(t){var n,r,a,c,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="",e.next=3,Object(G["a"])({url:"/gic-auth-web/get-app-by-code"},{menuCode:t}).then((function(e){n=e.result}));case 3:return r={menu:["/gic-auth-web/login-user-menu-of-app","/gic-auth-web/login-collaborator-menu-of-app"],opera:["/gic-auth-web/login-user-operation-item-of-app","/gic-auth-web/login-collaborator-operation-item"]},a=0,e.next=7,Object(G["a"])({url:"/application-center-web/business/cooperation-application/find-list"}).then((function(e){var t=e.result||[];t.some((function(e){return e.applicationId==n}))&&(a=1)}));case 7:return c=Object(G["a"])({url:r.menu[a]},{appId:n}).then((function(e){W=ee(e.result||[]),O["a"].commit("updateRoutePath",e.result?e.result[0].children:[])})),i=Object(G["a"])({url:r.opera[a]},{appId:n}).then((function(e){q=te(e.result||[])})),e.abrupt("return",Promise.all([c,i]));case 10:case"end":return e.stop()}}),e)}))),Z.apply(this,arguments)}function ee(e){var t=[];return e.forEach((function(e){e.projectUrlForWeb==z&&e.menuUrl&&t.push(e.menuUrl),Array.isArray(e.children)&&(t=t.concat(ee(e.children)))})),t}function te(e){var t={};return e.forEach((function(e){t[e.menuCode]=!0})),t}function ne(e){var t=[];return e.forEach((function(e){Array.isArray(e.children)&&(t=t.concat(ne(e.children))),t.push(e.path)})),t}function re(e,t,n){var r=W.some((function(t){return t.indexOf("/#")>=0?t=="/#".concat(e.path):t==e.path}));if(r)return Object.assign(i.a.defaults.headers.common,{route:e.path}),n();V.some((function(t){return t==e.path}))||0==W.length?window.location.href="".concat(J,"/damo-system/no-access"):(Object.assign(i.a.defaults.headers.common,{route:W[0]}),n(W[0]))}function ae(e){return!!q[e]}var ce=function(e){var t=e.projectPath,n=e.isApp,r=e.writeRoute,a=e.router,c=e.routes,o=e.createApp,s=e.menuCode,d=u.a.prototype.$loading({lock:!0,customClass:"medium"});z=t,window.addEventListener("load",Object(R["a"])(regeneratorRuntime.mark((function e(){var u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=window.location.pathname,-1!=u.indexOf("/login")){e.next=11;break}return e.next=4,Y().then((function(e){var n=e.result||{},r=n.enterpriseId;Object.assign(i.a.defaults.headers.common,{sign:r,project:t.replace(/^\//,""),route:u.replace(t,"")})}));case 4:if(!n){e.next=9;break}return e.next=7,X(s);case 7:e.next=11;break;case 9:return e.next=11,Q();case 11:Array.isArray(r)&&(W=W.concat(r)),Array.isArray(c)&&(V=ne(c)),a.beforeEach(re),"function"==typeof o&&(d.close(),o());case 15:case"end":return e.stop()}}),e)}))))};u.a.use(a.a),i.a.defaults.withCredentials=!0,u.a.prototype.axios=i.a,u.a.config.productionTip=!1,Object.keys(w).map((function(e){return u.a.filter(e,w[e])})),u.a.mixin(k),u.a.component("mk-button",A),u.a.component(H.name,H),u.a.component("member-info",$),u.a.prototype.axios.interceptors.request.use((function(e){return e.headers["isControl"]=!0,e})),u.a.prototype.$tips=Object(v["b"])(r["Message"],1500),u.a.prototype.$itemCode=B,u.a.prototype.$itemPerm=ae,u.a.config.devtools=!1,window.Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},ce({router:g["a"],routes:b["a"],projectPath:"/welfare",writeRoute:["/index"],menuCode:"welfare",isApp:!0,createApp:function(){new u.a({router:g["a"],store:O["a"],render:function(e){return e(m)}}).$mount("#app")}})},5880:function(e,t){e.exports=Vuex},6389:function(e,t){e.exports=VueRouter},6861:function(e,t,n){},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("ac6a"),n("456d");var r=n("b775");function a(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var a=e[n];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[n]=function(e,t){return Object(r["a"])(a,e,t)}})),e}},"87d1":function(e,t,n){"use strict";n("f8f5")},"88ed":function(e,t,n){},"89c4":function(e,t,n){"use strict";n("3ba8")},"8bbf":function(e,t){e.exports=Vue},"903e":function(e,t,n){e.exports=n.p+"img/w-gic-card.d0646eb3.svg"},"961e":function(e,t,n){"use strict";n("b021")},a18c:function(e,t,n){"use strict";var r=n("6389"),a=n.n(r),c=n("d046"),i=new a.a({mode:"history",base:"/welfare/",routes:c["a"],scrollBehavior:function(e,t,n){if(n&&e.meta.keepAlive)return n;document.documentElement.scrollTop=0}});t["a"]=i},b021:function(e,t,n){},b775:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n("a481"),n("ac6a"),n("456d");var r=n("cebe"),a=n.n(r),c=n("4328"),i=n.n(c),o=n("5c96"),u=n("f121");function s(e){switch(e){case 404:window.location.href=u["e"]+"/damo-system/404";break;case 403:window.location.href=u["e"]+"/damo-system/403";break;case 500:window.location.href=u["e"]+"/damo-system/500";break}}a.a.defaults.baseURL=u["e"];var d=function(e,t,n){if(t=Object.assign({},t),e=Object.assign({},e),e.rest){delete e.rest;var r=e.url;Object.keys(n).map((function(e){r=r.replace("{".concat(e,"}"),n[e])})),e.url=r}var c=void 0===e.alertError||e.alertError;delete e.alertError;var d={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};if(d=Object.assign(d,e),e.export)d.params=t.listParams,d.data=t.excel;else if(e.file){var l=new FormData;Object.keys(t).forEach((function(e){l.append(e,t[e])})),d.data=l}else switch(d.useFormData&&(t=i.a.stringify(t)),d.method.toLowerCase()){case"get":d.params=t;break;case"post":d.data=t;break;default:d.data=t;break}return new Promise((function(e,t){a()(d).then((function(n){var r=n.data;if("6666"==r.code){var a=window.location.origin;(a.indexOf("localhost")>=0||a.indexOf("192.168")>=0)&&(a="https://four.gicdev.com"),window.location.href="".concat(a,"/damo-system/login")}if(d.useIntercept&&r.code!=u["a"])return c&&Object(o["Message"])({message:(r.message||"数据加载失败").slice(0,300),type:"warning"}),t(r);e(r)})).catch((function(e){e&&s(e.response.status),Object(o["Message"])({message:(e.response.data.message||"数据加载失败").slice(0,300),type:"warning"}),t(e)}))}))}},bf71:function(e,t,n){e.exports=n.p+"img/more.1d0456f8.svg"},cebe:function(e,t){e.exports=axios},cf45:function(e,t,n){"use strict";n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return g}));n("8e6e"),n("ac6a"),n("456d"),n("c5f6"),n("20d6"),n("28a5"),n("6762"),n("2fdb");var r=n("ade3"),a=n("5c96"),c=n("4360"),i=n("f121"),o=n("4328"),u=n.n(o);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=i["c"],p=function(e,t,n,r){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i="top-icon",o=c.dangerouslyUseHTMLString,u=void 0===o||o,s=c.title,l=void 0===s?"":s,p=c.showClose,f=void 0!==p&&p,h=c.confirmButtonText,m=void 0===h?"确认":h,g=c.cancelButtonText,b=void 0===g?"取消":g,v=c.distinguishCancelAndClose,y=void 0!==v&&v;l&&(i+=" show-title"),a["MessageBox"].confirm(e,l,{customClass:i,showClose:f,dangerouslyUseHTMLString:u,confirmButtonText:m,cancelButtonText:b,distinguishCancelAndClose:y,type:"warning"}).then((function(){t&&t(n)})).catch((function(e){r&&r(d(d({},n),{},{action:e}))}))},f=function(e){var t=e.config,n=e.listParams,r=e.fieldList,a=e.path,i=e.pathName,o=e.query,s={},p=d({},t),f=r.filter((function(e){return t.fields.includes(e.value)}))||[],h=u.a.stringify(o);return p.sensKeys=f.filter((function(e){return e.sensKey})).map((function(e){return e.value})),p.fieldKeys=f.map((function(e){return e.value})),p.fieldNames=f.map((function(e){return e.label})),p.dataUrl="".concat(l.api,"/welfare").concat(a).concat(h?"?"+h:""),p.dataContent=i,delete p.fields,s.excel=p,"wechat"==c["a"].state.project?n.wechatId=c["a"].state.currentAreaId:n.memberCardId=c["a"].state.currentAreaId,s.listParams=n,s},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",n=arguments.length>2?arguments[2]:void 0,r=window.localStorage.getItem("welfare-ct-id")||"{}";if(r=JSON.parse(r),"get"===t)return r[e];"set"===t&&(r[e]=n,window.localStorage.setItem("welfare-ct-id",JSON.stringify(r)))},m=function(e,t){var n=e?new Date(e):new Date;return 1==t&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),2==t&&(n.setHours(23),n.setMinutes(59),n.setSeconds(59),n.setMilliseconds(999)),n.getTime()},g=function(e){isNaN(e)||(e=Number(e));var t=new Date(e),n=t.getHours();n>=10&&(n="0"+n);var r=t.getMinutes();r>=10&&(r="0"+r);var a=t.getSeconds();return a>=10&&(a="0"+a),n+":"+r+":"+a}},d046:function(e,t,n){"use strict";n.d(t,"a",(function(){return G}));var r=n("2909"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("dm-layout",{class:{"hide-left":!e.showLeft},attrs:{"is-app":"","first-menu-code":e.menuCode,"force-show-aside":e.showLeft}},[n("div",{attrs:{slot:"maside"},slot:"maside"},[e.project.includes("card")?n("el-dropdown",{staticClass:"m-title",attrs:{"hide-on-click":!1}},[n("div",{staticClass:"el-dropdown-link"},[n("div",[n("p",{staticClass:"ellipsis"},[e._v(e._s(e.currentAreaName||"未选择域"))]),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),n("el-dropdown-menu",{staticClass:"m-title-menu",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.areaSubList,(function(t,r){return n("el-dropdown-item",{key:t.areaId+"-"+r,class:{checked:t.areaId===e.currentAreaId}},[n("dl",{on:{click:function(n){return e.setCurrentApp(t)}}},[n("dd",[n("span",[e._v(e._s(t.areaName))]),t.deleteFlag?n("el-tag",{staticClass:"ml5",attrs:{effect:"plain",type:"info"}},[e._v("已删除")]):e._e()],1)]),n("i",{staticClass:"el-icon-check select-icon"})])})),1)],1):e._e(),n("aside-menu",{ref:"asideMenu"})],1),n("div",{attrs:{slot:"bread"},slot:"bread"},[n("app-info",{attrs:{code:e.moduleCode}})],1)]),n("el-dialog",{attrs:{visible:e.noAreaWarnVisible&&e.project.includes("card"),"append-to-body":"",width:"500px","close-on-press-escape":!1,"close-on-click-modal":!0,"show-close":!1,"lock-scroll":""}},[n("div",{staticClass:"text-center"},[n("p",{staticClass:"gray02 fz16",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[n("i",{staticClass:"el-icon-warning fz30 mr5 warning-color"}),e._v("暂无资源权限")]),n("p",{staticClass:"fz13 gray03 mt20"},[e._v("没有资源权限,如:可操作的会员卡、服务号等,请联系管理员进行配置")])]),n("span",{attrs:{slot:"footer"},slot:"footer"},[n("div",{staticClass:"text-center pb20"},[n("el-button",{on:{click:function(t){return e.$router.push("/index")}}},[e._v("返回首页")])],1)])]),n("switch-page")],1)},c=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),o=(n("6762"),n("2fdb"),n("96cf"),n("1da1")),u=(n("28a5"),n("5880")),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{ref:"asideMenu",attrs:{"default-active":e.activeIndex},on:{select:e.handleSelect}},[e._l(e.menu,(function(t){return[0!=t.isShow&&Array.isArray(t.children)&&t.children.filter((function(e){return e.isShow})).length>0?n("el-submenu",{key:t.menuId,attrs:{"popper-class":"dm-menu-submenu",index:""+t.menuId}},[n("template",{slot:"title"},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text"},[e._v(e._s(t.menuName))])]),e._l(t.children,(function(r){return[0!=r.isShow?n("el-menu-item",{key:r.menuId,attrs:{index:t.menuId+"-"+r.menuId}},[n("i",{class:["menu-icon",r.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(r.menuName))])]):e._e()]}))],2):0!=t.isShow?n("el-menu-item",{key:t.menuId,attrs:{index:""+t.menuId}},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.menuName))])]):e._e()]}))],2)},d=[];n("7514"),n("a481");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={name:"AsideMenu",data:function(){return{menuFlat:[],parentdIds:[],activeIndex:""}},methods:{flat:function(e){var t=this;e.forEach((function(e){t.menuFlat.push(e),Array.isArray(e.children)&&e.children.length>0&&t.flat(e.children)}))},handleSelect:function(e){var t=this,n=window.location.pathname;n=n.split("/")[1],n="/".concat(n);var r=e.split("-"),a=r.length>1?r[1]:r[0],c=this.menuFlat.filter((function(e){return e.menuId==a}))[0]||{},i=c.menuUrl||"",o=c.projectUrlForWeb;if(r.length>1){var u=c.children||[];u[0]&&u[0].menuUrl&&(i=u[0].menuUrl,o=u[0].projectUrlForWeb)}this.menu.map((function(e){Array.isArray(e.children)&&e.children.length>0&&e.menuId!=r[0]&&e.children.some((function(e){return e.isShow}))&&t.$refs.asideMenu.close("".concat(e.menuId))})),n===o?this.$router.push(i.replace("/#","")):window.location.href="".concat(o).concat(i)},getActiveIndex:function(){var e=this,t=this.menu.find((function(t){if(!t.children||!t.children.filter((function(e){return e.isShow})).length)return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path;var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));return!!n||void 0}));if(t)if(t.children&&t.children.filter((function(e){return e.isShow})).length){var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));this.activeIndex="".concat(t.menuId,"-").concat(n.menuId)}else this.activeIndex="".concat(t.menuId)}},computed:p(p({},Object(u["mapState"])(["routePath","menuCode","project"])),{},{menu:function(){var e=this.project;if(""==e||"index"==e)return[];var t=e.includes("card")?"card":"gift",n=this.routePath.filter((function(e){return e.menuCode.includes(t)}));return n||[]}}),watch:{menu:{handler:function(){this.flat(this.menu.slice()),this.getActiveIndex()},deep:!0,immediate:!0},"$route.path":{handler:function(){this.getActiveIndex()}}}},h=f,m=n("2877"),g=Object(m["a"])(h,s,d,!1,null,null,null),b=g.exports,v=function(){var e=this,t=e.$createElement,r=e._self._c||t;return""!=e.project&&"index"!=e.project?r("div",{staticClass:"switch-page"},[r("el-popover",{attrs:{placement:"left-end","open-delay":"200",width:"143",trigger:"hover","popper-class":"sw-page-pop"}},[r("div",[r("ul",{staticClass:"toggle"},[r("li",{directives:[{name:"show",rawName:"v-show",value:!e.project.includes("gift"),expression:"!project.includes('gift')"}]},[r("router-link",{attrs:{to:"/gift-manage/real-gift"}},[r("img",{attrs:{src:n("4c57"),width:"16"}}),e._v("礼品")])],1),r("li",{directives:[{name:"show",rawName:"v-show",value:!e.project.includes("card"),expression:"!project.includes('card')"}]},[r("router-link",{attrs:{to:"/gic-card/list"}},[r("img",{attrs:{src:n("903e"),width:"16"}}),e._v("卡券")])],1)])]),r("div",{staticClass:"s-icon mb10",attrs:{slot:"reference"},slot:"reference"},[r("img",{attrs:{src:n("bf71"),width:"30",height:"30"}})])]),r("el-popover",{attrs:{"open-delay":"200",placement:"left-end",width:"365",trigger:"hover","popper-class":"sw-page-pop"},on:{hide:e.close},model:{value:e.showCanUseApp,callback:function(t){e.showCanUseApp=t},expression:"showCanUseApp"}},[r("div",{staticClass:"pl15"},[r("div",{staticClass:"text-right"},[r("i",{staticClass:"el-dialog__close el-icon el-icon-close mr10 cursor",on:{click:e.close}})]),r("ul",{staticClass:"app-list"},[e._l(e.appList,(function(t,n){return r("li",{key:n,on:{click:function(n){return e.goLink(t)}}},[r("div",[r("img",{attrs:{src:t.iconUrl,draggable:"false"}}),r("p",{staticClass:"ellipsis-100",attrs:{title:t.appName}},[e._v(e._s(t.appName))])])])})),0==e.appList.length?r("div",{staticClass:"empty_block"}):e._e()],2)]),r("div",{staticClass:"s-icon",attrs:{slot:"reference"},slot:"reference"},[r("img",{attrs:{src:n("0ae1"),width:"30",height:"30"}})])])],1):e._e()},y=[],w=n("2934"),k=w["a"].getWelfareAppList,O={name:"SwitchPage",data:function(){return{showCanUseApp:!1,appList:[]}},mounted:function(){this.getAppList()},methods:{close:function(){this.showCanUseApp=!1,this.$store.commit("updateShowCornerCanUseApp",!1)},getAppList:function(){var e=this;k().then((function(t){e.appList=t.result||[]}))},goLink:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:localStorage.setItem("appApplicationId",t.applicationId),window.open(t.authorizeUrl,"_blank","noopener");case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},computed:{project:function(){return this.$store.state.project},showCornerCanUseApp:function(){return this.$store.state.showCornerCanUseApp}},watch:{showCornerCanUseApp:function(e){e&&(this.showCanUseApp=!0)}}},j=O,C=(n("f602"),n("87d1"),Object(m["a"])(j,v,y,!1,null,"c66389e8",null)),S=C.exports,x=n("ed08"),P=n("cf45");function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=w["a"].getSubappList,L={name:"Layout",components:{asideMenu:b,switchPage:S},data:function(){return{noAreaWarnVisible:!1}},mounted:function(){this.init()},methods:{handleSubApp:function(e){var t=e.type,n=e.areaId,r=e.reason;this.addSubResVisible=!0,this.$refs.addSubRes.setData({type:t,areaId:n,reason:r})},addSubApp:function(){this.subAppDialogVisible=!0},setCurrentApp:function(e){var t=e.areaId;this.$router.push("/"+this.$route.path.split("/")[1]),this.$store.commit("setCurrentSubApp",t)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.moduleCode,e.next=3,_();case 3:if(n=e.sent,this.$store.commit("setSubAppList",n.result.result||[]),!this.areaSubList.length){e.next=20;break}if(e.prev=6,r=this.$route.query.areaId||"",!r||!this.areaSubList.map((function(e){return e.areaId})).includes(r)){e.next=11;break}return this.$store.commit("setCurrentSubApp",r),e.abrupt("return");case 11:a=Object(P["b"])(t),a&&this.areaSubList.some((function(e){return e.areaId==a}))?this.$store.commit("setCurrentSubApp",a):this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](6),this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId);case 18:e.next=21;break;case 20:this.noAreaWarnVisible=!0;case 21:case"end":return e.stop()}}),e,this,[[6,15]])})));function t(){return e.apply(this,arguments)}return t}()},computed:I(I({},Object(u["mapState"])(["default_areaId","currentAreaName","currentAreaId","areaSubList","project","menu","extraHideLeft","appInfo","lock","moduleCode"])),{},{showLeft:function(){return!(""==this.project||"index"==this.project)}}),watch:{currentAreaId:function(e,t){Object(x["h"])()}}},E=L,D=(n("961e"),Object(m["a"])(E,a,c,!1,null,"7f0f39b3",null)),$=D.exports,N=[{path:"/gic-card",component:$,redirect:"/gic-card/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"ea75"))}},{path:"member-get",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"3d96"))},meta:{path:"/gic-card/list"}},{path:"stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"7e3b"))},meta:{path:"/gic-card/list"}},{path:"stock-upload-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"ac7c"))}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"6106"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"add",path:"/gic-card/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"copy",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"copy",path:"/gic-card/list"}},{path:"info",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"903ea"))},meta:{type:"info",path:"/gic-card/list"}},{path:"info-edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"903ea"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"destory-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"e2d0"))}}]}],U=[{path:"/card-package",component:$,redirect:"/card-package/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"3c64"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"0c0e"))},meta:{type:"add",path:"/card-package/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"0c0e"))},meta:{type:"edit",path:"/card-package/list"}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"b79b"))}},{path:"stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"af2d"))},meta:{path:"/card-package/list"}}]}],M=[{path:"/gift-manage",component:$,redirect:"/gift-manage/real-gift",children:[{path:"real-gift",component:function(){return n.e("chunk-51f3e04f").then(n.bind(null,"e6de"))}},{path:"real-gift-detail",component:function(){return n.e("chunk-2a7f1670").then(n.bind(null,"ffec"))},meta:{path:"/gift-manage/real-gift"}},{path:"real-stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"e9f5"))},meta:{path:"/gift-manage/list"}}]}],T=[{path:"/gift-manage",component:$,redirect:"/gift-manage/virtual-gift",children:[{path:"virtual-gift",component:function(){return n.e("chunk-e34bb126").then(n.bind(null,"f011"))}},{path:"virtual-gift-detail",component:function(){return n.e("chunk-5ed58741").then(n.bind(null,"a0f2"))},meta:{path:"/gift-manage/virtual-gift"}},{path:"virtual-stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"1672"))},meta:{path:"/gift-manage/list"}}]}],F=[{path:"/gift-manage",component:$,redirect:"/gift-manage/stock-record",children:[{path:"stock-record",component:function(){return n.e("chunk-3deefcb9").then(n.bind(null,"bf73"))}}]},{path:"/setting",component:$,redirect:"/setting/sales-return-setting",children:[{path:"sales-return-setting",component:function(){return n.e("chunk-6287d3af").then(n.bind(null,"fa56"))}},{path:"address-lib-list",component:function(){return n.e("chunk-0d4ebdfa").then(n.bind(null,"48c3"))}},{path:"address-lib-add",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"add",path:"/settinge/address-lib-list"}},{path:"address-lib-edit",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"edit",path:"/settinge/address-lib-list"}},{path:"pickup-list",component:function(){return n.e("chunk-28cb370c").then(n.bind(null,"e54f"))}},{path:"pickup-add",component:function(){return n.e("chunk-3ab2cf8c").then(n.bind(null,"1420"))},meta:{type:"add",path:"/setting/pickup-list"}},{path:"pickup-edit",component:function(){return n.e("chunk-3ab2cf8c").then(n.bind(null,"1420"))},meta:{type:"edit",path:"/setting/pickup-list"}}]},{path:"/card-setting",component:$,redirect:"/setting/sales-return-setting",children:[{path:"custom",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"a0f4"))}}]}],H=[{path:"/gift-performance",component:$,redirect:"//gift-performance/delivery",children:[{path:"delivery",component:function(){return n.e("chunk-12a2bbcb").then(n.bind(null,"1e5b"))}},{path:"delivery-detail",component:function(){return n.e("chunk-474caa97").then(n.bind(null,"de2d"))},meta:{path:"/gift-performance/delivery"}},{path:"refund",component:function(){return n.e("chunk-08b2d41b").then(n.bind(null,"7211"))}},{path:"record",component:function(){return n.e("chunk-bb542da4").then(n.bind(null,"0035"))}}]}],B=[].concat(Object(r["a"])(N),Object(r["a"])(U),Object(r["a"])(M),Object(r["a"])(T),Object(r["a"])(F),Object(r["a"])(H)),R=[{path:"/",component:$,redirect:"/gic-card/list",children:[{path:"/index",component:function(){return n.e("chunk-f803170c").then(n.bind(null,"1e4b"))}}]},{path:"*",redirect:"/index"}],G=[].concat(R,Object(r["a"])(B))},ed08:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return m}));n("8e6e"),n("2909"),n("5df3"),n("4f7f"),n("34ef"),n("28a5"),n("386d"),n("4917"),n("3b2b");var r=n("ade3"),a=(n("53ca"),n("456d"),n("ac6a"),n("a481"),n("6b54"),n("a18c"));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o=function(e,t){var n,r=t||200;return function(){var t=this,a=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,e.apply(t,a)}),r)}},u=function(e,t){var n=null,r=new Date;return function(){var a=new Date,c=a-r,i=arguments,o=this;c>=t?(n&&clearTimeout(n),e.apply(o,i),r=a):n||(n=setTimeout((function(){e.apply(o,i),r=new Date}),t-c))}},s=function(e){return e*=1,e<10?"0"+e:e},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd-HH-mm-ss",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return n?{y:"",h:""}:"";"number"!==typeof e&&"string"!==typeof e||(e=new Date(e));try{if("string"===typeof e)return n?{y:e,h:""}:e;var r=t.indexOf("yyyy")>=0?s(e.getFullYear()):"",a=t.indexOf("MM")>=0?"-"+s(e.getMonth()+1):"",c=t.indexOf("dd")>=0?"-"+s(e.getDate()):"",i=t.indexOf("HH")>=0?" "+s(e.getHours()):"",o=t.indexOf("mm")>=0?":"+s(e.getMinutes()):"",u=t.indexOf("ss")>=0?":"+s(e.getSeconds()):"";return n?{y:r+a+c,h:i+o+u}:r+a+c+i+o+u}catch(d){return n?{y:e,h:""}:e}},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;try{t>0&&(e=e.toFixed(t))}catch(a){return e}var n=e.toString(),r=n.indexOf(".")>-1?/(\d)(?=(\d{3})+\.)/g:/(\d)(?=(?:\d{3})+$)/g;return n.replace(r,"$1,")},p=function(e){return e?'<p class="cell-time">'.concat(d(e,"yyyy-MM-dd-HH-mm-ss",!0).y,'</p>\n <p class="cell-time">').concat(d(e,"yyyy-MM-dd-HH-mm-ss",!0).h,"</p>\n "):"--"},f=function(){var e=a["a"].app._route,t=i({},e.query);delete t.areaId;var n=i(i({},t),{},{timestamp:(new Date).getTime()});a["a"].push({path:e.fullPath,query:n})},h=function(e){return JSON.parse(JSON.stringify(e))},m=function(e){return""===e||null==e}},f121:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"f",(function(){return u}));var r="0000";function a(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t["c"]={api:window.location.protocol+"//"+window.location.host||""};var c=a(),i=("four.gicdev.com"===window.location.host||window.location.origin,"/api-marketing"),o="/gic-auth-web",u="/api-welfare"},f602:function(e,t,n){"use strict";n("1921")},f8f5:function(e,t,n){}}); (function(e){function t(t){for(var r,a,o=t[0],u=t[1],s=t[2],l=0,d=[];l<o.length;l++)a=o[l],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&d.push(c[a][0]),c[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);p&&p(t);while(d.length)d.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var o=n[a];0!==c[o]&&(r=!1)}r&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},c={app:0},i=[];function o(e){return u.p+"js/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"b57979aa","card-package":"22b8ce87","gic-card":"b4587236","chunk-0185feca":"10204cb8","chunk-08b2d41b":"f1758858","chunk-0d4ebdfa":"45e74929","chunk-12a2bbcb":"2af2690d","chunk-28cb370c":"6af1998c","chunk-34bff564":"d2801cb5","chunk-3ab2cf8c":"9f2d6619","chunk-3deefcb9":"b5829a10","chunk-474caa97":"4c5f1cad","chunk-51f3e04f":"9dd8de95","chunk-6287d3af":"e3fbaa92","chunk-9e7ba7ac":"11fc726d","chunk-bb542da4":"261bc160","chunk-e34bb126":"31fe8694","chunk-f803170c":"62835622"}[e]+".js"}function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"card-package~gic-card":1,"card-package":1,"gic-card":1,"chunk-0185feca":1,"chunk-08b2d41b":1,"chunk-12a2bbcb":1,"chunk-28cb370c":1,"chunk-3ab2cf8c":1,"chunk-3deefcb9":1,"chunk-474caa97":1,"chunk-51f3e04f":1,"chunk-9e7ba7ac":1,"chunk-e34bb126":1,"chunk-f803170c":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({"card-package~gic-card":"card-package~gic-card","card-package":"card-package","gic-card":"gic-card"}[e]||e)+"."+{"card-package~gic-card":"223f94e1","card-package":"d0bf2b76","gic-card":"0d217467","chunk-0185feca":"344f98f2","chunk-08b2d41b":"3fcf9c04","chunk-0d4ebdfa":"31d6cfe0","chunk-12a2bbcb":"bde4bb10","chunk-28cb370c":"c4067039","chunk-34bff564":"31d6cfe0","chunk-3ab2cf8c":"111b794e","chunk-3deefcb9":"439cdc24","chunk-474caa97":"19a10178","chunk-51f3e04f":"c1d0a988","chunk-6287d3af":"31d6cfe0","chunk-9e7ba7ac":"e2d1f57b","chunk-bb542da4":"31d6cfe0","chunk-e34bb126":"fd1824c3","chunk-f803170c":"9190ad7d"}[e]+".css",c=u.p+r,i=document.getElementsByTagName("link"),o=0;o<i.length;o++){var s=i[o],l=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===r||l===c))return t()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){s=d[o],l=s.getAttribute("data-href");if(l===r||l===c)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var r=t&&t.target&&t.target.src||c,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],p.parentNode.removeChild(p),n(i)},p.href=c;var f=document.getElementsByTagName("head")[0];f.appendChild(p)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=i);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,u.nc&&l.setAttribute("nonce",u.nc),l.src=o(e);var d=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(p);var n=c[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",d.name="ChunkLoadError",d.type=r,d.request=a,n[1](d)}c[e]=void 0}};var p=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/welfare/",u.oe=function(e){throw e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var d=0;d<s.length;d++)t(s[d]);var p=l;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"0ae1":function(e,t,n){e.exports=n.p+"img/app.ab4c23ff.svg"},1921:function(e,t,n){},"1f99":function(e,t,n){},2934:function(e,t,n){"use strict";n("8e6e"),n("ac6a"),n("456d");var r=n("ade3"),a=n("71f6"),c=n("f121");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={loginUserMenu:"/login-user-menu",loginUserMenuOfApp:"/login-user-menu-of-app"},s={getSubappList:"/area/member-cards",getAppList:"/stock/application-list",getStockList:{url:"/stock/stock-list",method:"post",useFormData:!0},getStockActivityStatistics:"/stock/activity-statistics",getRelationId:"/gift/get-gift-id",virtualUploadLog:{url:"/gift/vir-card-log-page",method:"post"},virtualErrorPage:"/gift/vir-card-error-page",getWelfareAppList:"/gift/get-welfare-application-list"},l={getAppInfo:{url:"/enterprise-serve-info",alertError:!1},getMallShopList:"/outer/all-mall-shop",activityList:"/activity/list-marketing-page",getActivityInfo:"/activity/get-marketing-activity"};s=Object(a["a"])(s,c["f"]),u=Object(a["a"])(u,c["b"]),l=Object(a["a"])(l,c["d"]),t["a"]=o(o(o({},u),l),s);c["d"]},"3ba8":function(e,t,n){},4360:function(e,t,n){"use strict";n("96cf");var r=n("1da1"),a=(n("7514"),n("20d6"),n("8bbf")),c=n.n(a),i=n("5880"),o=n.n(i),u=n("cf45");c.a.use(o.a),t["a"]=new o.a.Store({state:{lock:!1,loading:!1,defaultAreaId:"",currentAreaName:"",currentAreaId:"",deleteFlag:!1,areaSubList:[],moduleCode:"welfare",project:"",menu:{},extraHideLeft:"",mainHeight:0,routePath:[],showCornerCanUseApp:!1},mutations:{updateShowCornerCanUseApp:function(e,t){e.showCornerCanUseApp=t},updateRoutePath:function(e,t){e.routePath=t},updateMainHeight:function(e,t){e.mainHeight=t},updateLock:function(e,t){e.lock=t},updateAreaName:function(e,t){var n=t.areaId,r=t.areaName,a=e.areaSubList.findIndex((function(e){return e.areaId===n}));-1!==a&&(e.areaSubList[a].areaName=r,e.currentAreaId===n&&(e.currentAreaName=r))},setSubAppList:function(e,t){e.areaSubList=t},setDefaultSubAppId:function(e,t){},setCurrentSubApp:function(e,t){var n=e.areaSubList.find((function(e){return e.areaId===t}))||{};Object(u["b"])(e.moduleCode,"set",t),e.currentAreaId=n.areaId||"",e.currentAreaName=n.areaName||"",e.deleteFlag=n.deleteFlag||!1},setProject:function(e,t){e.project=t||""},updateExtraHideLeft:function(e,t){e.extraHideLeft=t||""}},actions:{setDefaultAppId:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.commit("setDefaultSubAppId",n);case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},plugins:[]})},"4c57":function(e,t,n){e.exports=n.p+"img/w-real-gifts.a8edb5c6.svg"},"56d7":function(e,t,n){"use strict";n.r(t);n("7f7f"),n("ac6a"),n("456d"),n("cadf"),n("551c"),n("f751"),n("097d"),n("1f99"),n("88ed"),n("6861");var r=n("5c96"),a=n.n(r),c=n("cebe"),i=n.n(c),o=n("8bbf"),u=n.n(o),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dm-reset",attrs:{id:"app"}},[n("router-view")],1)},l=[],d=(n("28a5"),{name:"App",data:function(){return{isRouterAlive:!0}},mounted:function(){this.$store.commit("updateMainHeight",document.body.offsetHeight-180)},watch:{$route:{handler:function(e){e.path.split("/")[1]&&this.$store.commit("setProject",window.location.pathname.split("/")[2])},deep:!0,immediate:!0}}}),p=d,f=n("2877"),h=Object(f["a"])(p,s,l,!1,null,null,null),m=h.exports,g=n("a18c"),b=n("d046"),v=(n("6c7b"),n("c5f6"),n("ed08")),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"¥",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=Number(e);return isNaN(a)?e:"".concat(r?t:"").concat(Object(v["d"])(a,n))},w={amountFormat:y},k={computed:{currentAreaId:function(){return this.$store.state.currentAreaId},currentAreaIds:function(){return this.$store.state.currentAreaId?[this.$store.state.currentAreaId]:[]},currentAreaDelete:function(){return this.$store.state.delete_flag}}},O=n("4360"),j=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("dm-perm-button",{attrs:{"perm-tip":e.permTip,"perm-tip-placement":e.permTipPlacement,size:e.size,type:e.type,plain:e.plain,round:e.round,loading:e.loading,disabled:e.disabled,icon:e.icon,autofocus:e.autofocus,"native-type":e.nativeType},nativeOn:{click:function(t){return e.handleClick(t)}}},[e._t("default")],2)},C=[],S={name:"MkButton",props:{effect:{type:String,default:"dark"},delayTimes:{type:Number,default:300},permTipPlacement:{type:String,default:"top"},size:String,type:String,plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:String,autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button"},option:{type:Object,default:function(){return{}}}},data:function(){return{permTip:"",disabled:!1}},mounted:function(){return this.option.perm?(this.permTip="您无该操作权限,请联系超管!",void(this.disabled=!0)):this.option.deleteFlag?(this.disabled=!0,void(this.permTip=this.option.deleteRemark||"域已被删除")):void 0},methods:{handleClick:function(){this.disabled||this.$emit("click")}}},x=S,P=Object(f["a"])(x,j,C,!1,null,null,null),A=P.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"member-info",style:"height:"+e.height+"px"},[n("dm-preview-img",{staticClass:"img",attrs:{img:e.memberImage,width:e.width,height:e.height}}),n("p",{class:e.hidePhone?"pt10":""},[e._v(e._s(e.memberName||"--"))]),e.hidePhone?e._e():n("p",{class:e.memberPhone?"":"hide"},[e._v(e._s(e.showPhoneTip?"手机号码:":"")+e._s(e.memberPhone||"--"))])],1)},_=[],L={name:"Memberinfo",props:{memberName:{type:String},memberImage:{type:String},memberPhone:{type:String},showPhoneTip:{type:Boolean,default:!1},width:{type:[String,Number],default:40},height:{type:[String,Number],default:40},hidePhone:{type:Boolean,default:!1}},data:function(){return{}}},E=L,D=(n("89c4"),Object(f["a"])(E,I,_,!1,null,"e0d88100",null)),$=D.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-image",{attrs:{src:e.src,fit:e.fit,lazy:e.lazy,"scroll-container":e.scrollContainer,"preview-src-list":e.previewSrcList,"z-index":e.zIndex},on:{click:e.viewClick},scopedSlots:e._u([{key:"error",fn:function(){return[e._t("error")]},proxy:!0}],null,!0)})},U=[],M={name:"DmElImageView",props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},methods:{viewClick:function(){this.$emit("click"),document.body.style=""}}},T=M,F=Object(f["a"])(T,N,U,!1,null,null,null),H=F.exports,B={gicCardFormAdd:"gicCardFormAdd",gicCardFormCopy:"gicCardFormCopy",gicCardFormInfo:"gicCardFormInfo",gicCardFormEdit:"gicCardFormEdit",gicCardFormDel:"gicCardFormDel",gicCardGroupBtn:"gicCardGroupBtn",gicCardMemberGetExport:"gicCardMemberGetExport",gicCardGiveLogExport:"gicCardGiveLogExport",gicCardGroupSendForm:"gicCardGroupSendForm",gicCardGroupSendInfo:"gicCardGroupSendInfo",gicCardGroupSendInfoLog:"gicCardGroupSendInfoLog",gicCardStopGroupSend:"gicCardStopGroupSend",gicCardSyncStock:"gicCardSyncStock",gicCardDestory:"gicCardDestory",gicCardDestoryExport:"gicCardDestoryExport",gicAddPackage:"gicAddPackage",gicEditPackage:"gicEditPackage",gicDeletePackage:"gicDeletePackage",gicSyncStockPack:"gicSyncStockPack",gicAdjustStockPack:"gicAdjustStockPack",gicCardShelfLogExportBtn:"gicCardShelfLogExportBtn"},R=(n("a481"),n("96cf"),n("1da1")),G=(n("5df3"),n("b775")),z="",V=[],W=[],q={},J=K();function K(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}function Y(){return Object(G["a"])({url:"/gic-auth-web/get-login-user-info"})}function Q(){var e=Object(G["a"])({url:"/gic-auth-web/login-user-menu"}).then((function(e){W=ee(e.result||[])})),t=Object(G["a"])({url:"/gic-auth-web/login-user-operation-item"}).then((function(e){q=te(e.result||[])}));return Promise.all([e,t])}function X(e){return Z.apply(this,arguments)}function Z(){return Z=Object(R["a"])(regeneratorRuntime.mark((function e(t){var n,r,a,c,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="",e.next=3,Object(G["a"])({url:"/gic-auth-web/get-app-by-code"},{menuCode:t}).then((function(e){n=e.result}));case 3:return r={menu:["/gic-auth-web/login-user-menu-of-app","/gic-auth-web/login-collaborator-menu-of-app"],opera:["/gic-auth-web/login-user-operation-item-of-app","/gic-auth-web/login-collaborator-operation-item"]},a=0,e.next=7,Object(G["a"])({url:"/application-center-web/business/cooperation-application/find-list"}).then((function(e){var t=e.result||[];t.some((function(e){return e.applicationId==n}))&&(a=1)}));case 7:return c=Object(G["a"])({url:r.menu[a]},{appId:n}).then((function(e){W=ee(e.result||[]),O["a"].commit("updateRoutePath",e.result?e.result[0].children:[])})),i=Object(G["a"])({url:r.opera[a]},{appId:n}).then((function(e){q=te(e.result||[])})),e.abrupt("return",Promise.all([c,i]));case 10:case"end":return e.stop()}}),e)}))),Z.apply(this,arguments)}function ee(e){var t=[];return e.forEach((function(e){e.projectUrlForWeb==z&&e.menuUrl&&t.push(e.menuUrl),Array.isArray(e.children)&&(t=t.concat(ee(e.children)))})),t}function te(e){var t={};return e.forEach((function(e){t[e.menuCode]=!0})),t}function ne(e){var t=[];return e.forEach((function(e){Array.isArray(e.children)&&(t=t.concat(ne(e.children))),t.push(e.path)})),t}function re(e,t,n){var r=W.some((function(t){return t.indexOf("/#")>=0?t=="/#".concat(e.path):t==e.path}));if(r)return Object.assign(i.a.defaults.headers.common,{route:e.path}),n();V.some((function(t){return t==e.path}))||0==W.length?window.location.href="".concat(J,"/damo-system/no-access"):(Object.assign(i.a.defaults.headers.common,{route:W[0]}),n(W[0]))}function ae(e){return!!q[e]}var ce=function(e){var t=e.projectPath,n=e.isApp,r=e.writeRoute,a=e.router,c=e.routes,o=e.createApp,s=e.menuCode,l=u.a.prototype.$loading({lock:!0,customClass:"medium"});z=t,window.addEventListener("load",Object(R["a"])(regeneratorRuntime.mark((function e(){var u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=window.location.pathname,-1!=u.indexOf("/login")){e.next=11;break}return e.next=4,Y().then((function(e){var n=e.result||{},r=n.enterpriseId;Object.assign(i.a.defaults.headers.common,{sign:r,project:t.replace(/^\//,""),route:u.replace(t,"")})}));case 4:if(!n){e.next=9;break}return e.next=7,X(s);case 7:e.next=11;break;case 9:return e.next=11,Q();case 11:Array.isArray(r)&&(W=W.concat(r)),Array.isArray(c)&&(V=ne(c)),a.beforeEach(re),"function"==typeof o&&(l.close(),o());case 15:case"end":return e.stop()}}),e)}))))};u.a.use(a.a),i.a.defaults.withCredentials=!0,u.a.prototype.axios=i.a,u.a.config.productionTip=!1,Object.keys(w).map((function(e){return u.a.filter(e,w[e])})),u.a.mixin(k),u.a.component("mk-button",A),u.a.component(H.name,H),u.a.component("member-info",$),u.a.prototype.axios.interceptors.request.use((function(e){return e.headers["isControl"]=!0,e})),u.a.prototype.$tips=Object(v["b"])(r["Message"],1500),u.a.prototype.$itemCode=B,u.a.prototype.$itemPerm=ae,u.a.config.devtools=!1,window.Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},ce({router:g["a"],routes:b["a"],projectPath:"/welfare",writeRoute:["/index"],menuCode:"welfare",isApp:!0,createApp:function(){new u.a({router:g["a"],store:O["a"],render:function(e){return e(m)}}).$mount("#app")}})},5880:function(e,t){e.exports=Vuex},6389:function(e,t){e.exports=VueRouter},6861:function(e,t,n){},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("ac6a"),n("456d");var r=n("b775");function a(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var a=e[n];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[n]=function(e,t){return Object(r["a"])(a,e,t)}})),e}},"87d1":function(e,t,n){"use strict";n("f8f5")},"88ed":function(e,t,n){},"89c4":function(e,t,n){"use strict";n("3ba8")},"8bbf":function(e,t){e.exports=Vue},"903e":function(e,t,n){e.exports=n.p+"img/w-gic-card.d0646eb3.svg"},"961e":function(e,t,n){"use strict";n("b021")},a18c:function(e,t,n){"use strict";var r=n("6389"),a=n.n(r),c=n("d046"),i=new a.a({mode:"history",base:"/welfare/",routes:c["a"],scrollBehavior:function(e,t,n){if(n&&e.meta.keepAlive)return n;document.documentElement.scrollTop=0}});t["a"]=i},b021:function(e,t,n){},b775:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("a481"),n("ac6a"),n("456d");var r=n("cebe"),a=n.n(r),c=n("4328"),i=n.n(c),o=n("5c96"),u=n("f121");function s(e){switch(e){case 404:window.location.href=u["e"]+"/damo-system/404";break;case 403:window.location.href=u["e"]+"/damo-system/403";break;case 500:window.location.href=u["e"]+"/damo-system/500";break}}a.a.defaults.baseURL=u["e"];var l=function(e,t,n){if(t=Object.assign({},t),e=Object.assign({},e),e.rest){delete e.rest;var r=e.url;Object.keys(n).map((function(e){r=r.replace("{".concat(e,"}"),n[e])})),e.url=r}var c=void 0===e.alertError||e.alertError;delete e.alertError;var l={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};if(l=Object.assign(l,e),e.export)l.params=t.listParams,l.data=t.excel;else if(e.file){var d=new FormData;Object.keys(t).forEach((function(e){d.append(e,t[e])})),l.data=d}else switch(l.useFormData&&(t=i.a.stringify(t)),l.method.toLowerCase()){case"get":l.params=t;break;case"post":l.data=t;break;default:l.data=t;break}return new Promise((function(e,t){a()(l).then((function(n){var r=n.data;if("6666"==r.code){var a=window.location.origin;(a.indexOf("localhost")>=0||a.indexOf("192.168")>=0)&&(a="https://four.gicdev.com"),window.location.href="".concat(a,"/damo-system/login")}if(l.useIntercept&&r.code!=u["a"])return c&&Object(o["Message"])({message:(r.message||"数据加载失败").slice(0,300),type:"warning"}),t(r);e(r)})).catch((function(e){e&&s(e.response.status),Object(o["Message"])({message:(e.response.data.message||"数据加载失败").slice(0,300),type:"warning"}),t(e)}))}))}},bf71:function(e,t,n){e.exports=n.p+"img/more.1d0456f8.svg"},cebe:function(e,t){e.exports=axios},cf45:function(e,t,n){"use strict";n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return g}));n("8e6e"),n("ac6a"),n("456d"),n("c5f6"),n("20d6"),n("28a5"),n("6762"),n("2fdb");var r=n("ade3"),a=n("5c96"),c=n("4360"),i=n("f121"),o=n("4328"),u=n.n(o);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=i["c"],p=function(e,t,n,r){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i="top-icon",o=c.dangerouslyUseHTMLString,u=void 0===o||o,s=c.title,d=void 0===s?"":s,p=c.showClose,f=void 0!==p&&p,h=c.confirmButtonText,m=void 0===h?"确认":h,g=c.cancelButtonText,b=void 0===g?"取消":g,v=c.distinguishCancelAndClose,y=void 0!==v&&v;d&&(i+=" show-title"),a["MessageBox"].confirm(e,d,{customClass:i,showClose:f,dangerouslyUseHTMLString:u,confirmButtonText:m,cancelButtonText:b,distinguishCancelAndClose:y,type:"warning"}).then((function(){t&&t(n)})).catch((function(e){r&&r(l(l({},n),{},{action:e}))}))},f=function(e){var t=e.config,n=e.listParams,r=e.fieldList,a=e.path,i=e.pathName,o=e.query,s={},p=l({},t),f=r.filter((function(e){return t.fields.includes(e.value)}))||[],h=u.a.stringify(o);return p.sensKeys=f.filter((function(e){return e.sensKey})).map((function(e){return e.value})),p.fieldKeys=f.map((function(e){return e.value})),p.fieldNames=f.map((function(e){return e.label})),p.dataUrl="".concat(d.api,"/welfare").concat(a).concat(h?"?"+h:""),p.dataContent=i,delete p.fields,s.excel=p,"wechat"==c["a"].state.project?n.wechatId=c["a"].state.currentAreaId:n.memberCardId=c["a"].state.currentAreaId,s.listParams=n,s},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",n=arguments.length>2?arguments[2]:void 0,r=window.localStorage.getItem("welfare-ct-id")||"{}";if(r=JSON.parse(r),"get"===t)return r[e];"set"===t&&(r[e]=n,window.localStorage.setItem("welfare-ct-id",JSON.stringify(r)))},m=function(e,t){var n=e?new Date(e):new Date;return 1==t&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),2==t&&(n.setHours(23),n.setMinutes(59),n.setSeconds(59),n.setMilliseconds(999)),n.getTime()},g=function(e){isNaN(e)||(e=Number(e));var t=new Date(e),n=t.getHours();n>=10&&(n="0"+n);var r=t.getMinutes();r>=10&&(r="0"+r);var a=t.getSeconds();return a>=10&&(a="0"+a),n+":"+r+":"+a}},d046:function(e,t,n){"use strict";n.d(t,"a",(function(){return G}));var r=n("2909"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("dm-layout",{class:{"hide-left":!e.showLeft},attrs:{"is-app":"","first-menu-code":e.menuCode,"force-show-aside":e.showLeft}},[n("div",{attrs:{slot:"maside"},slot:"maside"},[e.project.includes("card")?n("el-dropdown",{staticClass:"m-title",attrs:{"hide-on-click":!1}},[n("div",{staticClass:"el-dropdown-link"},[n("div",[n("p",{staticClass:"ellipsis"},[e._v(e._s(e.currentAreaName||"未选择域"))]),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),n("el-dropdown-menu",{staticClass:"m-title-menu",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.areaSubList,(function(t,r){return n("el-dropdown-item",{key:t.areaId+"-"+r,class:{checked:t.areaId===e.currentAreaId}},[n("dl",{on:{click:function(n){return e.setCurrentApp(t)}}},[n("dd",[n("span",[e._v(e._s(t.areaName))]),t.deleteFlag?n("el-tag",{staticClass:"ml5",attrs:{effect:"plain",type:"info"}},[e._v("已删除")]):e._e()],1)]),n("i",{staticClass:"el-icon-check select-icon"})])})),1)],1):e._e(),n("aside-menu",{ref:"asideMenu"})],1),n("div",{attrs:{slot:"bread"},slot:"bread"},[n("app-info",{attrs:{code:e.moduleCode}})],1)]),n("el-dialog",{attrs:{visible:e.noAreaWarnVisible&&e.project.includes("card"),"append-to-body":"",width:"500px","close-on-press-escape":!1,"close-on-click-modal":!0,"show-close":!1,"lock-scroll":""}},[n("div",{staticClass:"text-center"},[n("p",{staticClass:"gray02 fz16",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[n("i",{staticClass:"el-icon-warning fz30 mr5 warning-color"}),e._v("暂无资源权限")]),n("p",{staticClass:"fz13 gray03 mt20"},[e._v("没有资源权限,如:可操作的会员卡、服务号等,请联系管理员进行配置")])]),n("span",{attrs:{slot:"footer"},slot:"footer"},[n("div",{staticClass:"text-center pb20"},[n("el-button",{on:{click:function(t){return e.$router.push("/index")}}},[e._v("返回首页")])],1)])]),n("switch-page")],1)},c=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),o=(n("6762"),n("2fdb"),n("96cf"),n("1da1")),u=(n("28a5"),n("5880")),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{ref:"asideMenu",attrs:{"default-active":e.activeIndex},on:{select:e.handleSelect}},[e._l(e.menu,(function(t){return[0!=t.isShow&&Array.isArray(t.children)&&t.children.filter((function(e){return e.isShow})).length>0?n("el-submenu",{key:t.menuId,attrs:{"popper-class":"dm-menu-submenu",index:""+t.menuId}},[n("template",{slot:"title"},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text"},[e._v(e._s(t.menuName))])]),e._l(t.children,(function(r){return[0!=r.isShow?n("el-menu-item",{key:r.menuId,attrs:{index:t.menuId+"-"+r.menuId}},[n("i",{class:["menu-icon",r.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(r.menuName))])]):e._e()]}))],2):0!=t.isShow?n("el-menu-item",{key:t.menuId,attrs:{index:""+t.menuId}},[n("i",{class:["menu-icon",t.iconUrl]}),n("span",{staticClass:"menu-text",attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.menuName))])]):e._e()]}))],2)},l=[];n("7514"),n("a481");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={name:"AsideMenu",data:function(){return{menuFlat:[],parentdIds:[],activeIndex:""}},methods:{flat:function(e){var t=this;e.forEach((function(e){t.menuFlat.push(e),Array.isArray(e.children)&&e.children.length>0&&t.flat(e.children)}))},handleSelect:function(e){var t=this,n=window.location.pathname;n=n.split("/")[1],n="/".concat(n);var r=e.split("-"),a=r.length>1?r[1]:r[0],c=this.menuFlat.filter((function(e){return e.menuId==a}))[0]||{},i=c.menuUrl||"",o=c.projectUrlForWeb;if(r.length>1){var u=c.children||[];u[0]&&u[0].menuUrl&&(i=u[0].menuUrl,o=u[0].projectUrlForWeb)}this.menu.map((function(e){Array.isArray(e.children)&&e.children.length>0&&e.menuId!=r[0]&&e.children.some((function(e){return e.isShow}))&&t.$refs.asideMenu.close("".concat(e.menuId))})),n===o?this.$router.push(i.replace("/#","")):window.location.href="".concat(o).concat(i)},getActiveIndex:function(){var e=this,t=this.menu.find((function(t){if(!t.children||!t.children.filter((function(e){return e.isShow})).length)return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path;var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));return!!n||void 0}));if(t)if(t.children&&t.children.filter((function(e){return e.isShow})).length){var n=t.children.find((function(t){return t.menuUrl===e.$route.path||t.menuUrl===e.$route.meta.path}));this.activeIndex="".concat(t.menuId,"-").concat(n.menuId)}else this.activeIndex="".concat(t.menuId)}},computed:p(p({},Object(u["mapState"])(["routePath","menuCode","project"])),{},{menu:function(){var e=this.project;if(""==e||"index"==e)return[];var t=e.includes("card")?"card":"gift",n=this.routePath.filter((function(e){return e.menuCode.includes(t)}));return n||[]}}),watch:{menu:{handler:function(){this.flat(this.menu.slice()),this.getActiveIndex()},deep:!0,immediate:!0},"$route.path":{handler:function(){this.getActiveIndex()}}}},h=f,m=n("2877"),g=Object(m["a"])(h,s,l,!1,null,null,null),b=g.exports,v=function(){var e=this,t=e.$createElement,r=e._self._c||t;return""!=e.project&&"index"!=e.project?r("div",{staticClass:"switch-page"},[r("el-popover",{attrs:{placement:"left-end","open-delay":"200",width:"143",trigger:"hover","popper-class":"sw-page-pop"}},[r("div",[r("ul",{staticClass:"toggle"},[r("li",{directives:[{name:"show",rawName:"v-show",value:!e.project.includes("gift"),expression:"!project.includes('gift')"}]},[r("router-link",{attrs:{to:"/gift-manage/real-gift"}},[r("img",{attrs:{src:n("4c57"),width:"16"}}),e._v("礼品")])],1),r("li",{directives:[{name:"show",rawName:"v-show",value:!e.project.includes("card"),expression:"!project.includes('card')"}]},[r("router-link",{attrs:{to:"/gic-card/list"}},[r("img",{attrs:{src:n("903e"),width:"16"}}),e._v("卡券")])],1)])]),r("div",{staticClass:"s-icon mb10",attrs:{slot:"reference"},slot:"reference"},[r("img",{attrs:{src:n("bf71"),width:"30",height:"30"}})])]),r("el-popover",{attrs:{"open-delay":"200",placement:"left-end",width:"365",trigger:"hover","popper-class":"sw-page-pop"},on:{hide:e.close},model:{value:e.showCanUseApp,callback:function(t){e.showCanUseApp=t},expression:"showCanUseApp"}},[r("div",{staticClass:"pl15"},[r("div",{staticClass:"text-right"},[r("i",{staticClass:"el-dialog__close el-icon el-icon-close mr10 cursor",on:{click:e.close}})]),r("ul",{staticClass:"app-list"},[e._l(e.appList,(function(t,n){return r("li",{key:n,on:{click:function(n){return e.goLink(t)}}},[r("div",[r("img",{attrs:{src:t.iconUrl,draggable:"false"}}),r("p",{staticClass:"ellipsis-100",attrs:{title:t.appName}},[e._v(e._s(t.appName))])])])})),0==e.appList.length?r("div",{staticClass:"empty_block"}):e._e()],2)]),r("div",{staticClass:"s-icon",attrs:{slot:"reference"},slot:"reference"},[r("img",{attrs:{src:n("0ae1"),width:"30",height:"30"}})])])],1):e._e()},y=[],w=n("2934"),k=w["a"].getWelfareAppList,O={name:"SwitchPage",data:function(){return{showCanUseApp:!1,appList:[]}},mounted:function(){this.getAppList()},methods:{close:function(){this.showCanUseApp=!1,this.$store.commit("updateShowCornerCanUseApp",!1)},getAppList:function(){var e=this;k().then((function(t){e.appList=t.result||[]}))},goLink:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:localStorage.setItem("appApplicationId",t.applicationId),window.open(t.authorizeUrl,"_blank","noopener");case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},computed:{project:function(){return this.$store.state.project},showCornerCanUseApp:function(){return this.$store.state.showCornerCanUseApp}},watch:{showCornerCanUseApp:function(e){e&&(this.showCanUseApp=!0)}}},j=O,C=(n("f602"),n("87d1"),Object(m["a"])(j,v,y,!1,null,"c66389e8",null)),S=C.exports,x=n("ed08"),P=n("cf45");function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=w["a"].getSubappList,L={name:"Layout",components:{asideMenu:b,switchPage:S},data:function(){return{noAreaWarnVisible:!1}},mounted:function(){this.init()},methods:{handleSubApp:function(e){var t=e.type,n=e.areaId,r=e.reason;this.addSubResVisible=!0,this.$refs.addSubRes.setData({type:t,areaId:n,reason:r})},addSubApp:function(){this.subAppDialogVisible=!0},setCurrentApp:function(e){var t=e.areaId;this.$router.push("/"+this.$route.path.split("/")[1]),this.$store.commit("setCurrentSubApp",t)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.moduleCode,e.next=3,_();case 3:if(n=e.sent,this.$store.commit("setSubAppList",n.result.result||[]),!this.areaSubList.length){e.next=20;break}if(e.prev=6,r=this.$route.query.areaId||"",!r||!this.areaSubList.map((function(e){return e.areaId})).includes(r)){e.next=11;break}return this.$store.commit("setCurrentSubApp",r),e.abrupt("return");case 11:a=Object(P["b"])(t),a&&this.areaSubList.some((function(e){return e.areaId==a}))?this.$store.commit("setCurrentSubApp",a):this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](6),this.$store.commit("setCurrentSubApp",this.areaSubList[0].areaId);case 18:e.next=21;break;case 20:this.noAreaWarnVisible=!0;case 21:case"end":return e.stop()}}),e,this,[[6,15]])})));function t(){return e.apply(this,arguments)}return t}()},computed:I(I({},Object(u["mapState"])(["default_areaId","currentAreaName","currentAreaId","areaSubList","project","menu","extraHideLeft","appInfo","lock","moduleCode"])),{},{showLeft:function(){return!(""==this.project||"index"==this.project)}}),watch:{currentAreaId:function(e,t){Object(x["h"])()}}},E=L,D=(n("961e"),Object(m["a"])(E,a,c,!1,null,"7f0f39b3",null)),$=D.exports,N=[{path:"/gic-card",component:$,redirect:"/gic-card/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"ea75"))}},{path:"member-get",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"3d96"))},meta:{path:"/gic-card/list"}},{path:"stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"7e3b"))},meta:{path:"/gic-card/list"}},{path:"stock-upload-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"ac7c"))}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"6106"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"add",path:"/gic-card/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"copy",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"b2c7"))},meta:{type:"copy",path:"/gic-card/list"}},{path:"info",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"903ea"))},meta:{type:"info",path:"/gic-card/list"}},{path:"info-edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"903ea"))},meta:{type:"edit",path:"/gic-card/list"}},{path:"destory-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"e2d0"))}}]}],U=[{path:"/card-package",component:$,redirect:"/card-package/list",children:[{path:"list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"3c64"))}},{path:"add",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"0c0e"))},meta:{type:"add",path:"/card-package/list"}},{path:"edit",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"0c0e"))},meta:{type:"edit",path:"/card-package/list"}},{path:"send-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"b79b"))}},{path:"stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("card-package")]).then(n.bind(null,"af2d"))},meta:{path:"/card-package/list"}}]}],M=[{path:"/gift-manage",component:$,redirect:"/gift-manage/real-gift",children:[{path:"real-gift",component:function(){return n.e("chunk-51f3e04f").then(n.bind(null,"e6de"))}},{path:"real-gift-detail",component:function(){return n.e("chunk-0185feca").then(n.bind(null,"ffec"))},meta:{path:"/gift-manage/real-gift"}},{path:"real-stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"e9f5"))},meta:{path:"/gift-manage/list"}}]}],T=[{path:"/gift-manage",component:$,redirect:"/gift-manage/virtual-gift",children:[{path:"virtual-gift",component:function(){return n.e("chunk-e34bb126").then(n.bind(null,"f011"))}},{path:"virtual-gift-detail",component:function(){return n.e("chunk-9e7ba7ac").then(n.bind(null,"a0f2"))},meta:{path:"/gift-manage/virtual-gift"}},{path:"virtual-stock-list",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"1672"))},meta:{path:"/gift-manage/list"}}]}],F=[{path:"/gift-manage",component:$,redirect:"/gift-manage/stock-record",children:[{path:"stock-record",component:function(){return n.e("chunk-3deefcb9").then(n.bind(null,"bf73"))}}]},{path:"/setting",component:$,redirect:"/setting/sales-return-setting",children:[{path:"sales-return-setting",component:function(){return n.e("chunk-6287d3af").then(n.bind(null,"fa56"))}},{path:"address-lib-list",component:function(){return n.e("chunk-0d4ebdfa").then(n.bind(null,"48c3"))}},{path:"address-lib-add",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"add",path:"/setting/address-lib-list"}},{path:"address-lib-edit",component:function(){return n.e("chunk-34bff564").then(n.bind(null,"f283"))},meta:{type:"edit",path:"/setting/address-lib-list"}},{path:"pickup-list",component:function(){return n.e("chunk-28cb370c").then(n.bind(null,"e54f"))}},{path:"pickup-add",component:function(){return n.e("chunk-3ab2cf8c").then(n.bind(null,"1420"))},meta:{type:"add",path:"/setting/pickup-list"}},{path:"pickup-edit",component:function(){return n.e("chunk-3ab2cf8c").then(n.bind(null,"1420"))},meta:{type:"edit",path:"/setting/pickup-list"}}]},{path:"/card-setting",component:$,redirect:"/setting/sales-return-setting",children:[{path:"custom",component:function(){return Promise.all([n.e("card-package~gic-card"),n.e("gic-card")]).then(n.bind(null,"a0f4"))}}]}],H=[{path:"/gift-performance",component:$,redirect:"//gift-performance/delivery",children:[{path:"delivery",component:function(){return n.e("chunk-12a2bbcb").then(n.bind(null,"1e5b"))}},{path:"delivery-detail",component:function(){return n.e("chunk-474caa97").then(n.bind(null,"de2d"))},meta:{path:"/gift-performance/delivery"}},{path:"refund",component:function(){return n.e("chunk-08b2d41b").then(n.bind(null,"7211"))}},{path:"record",component:function(){return n.e("chunk-bb542da4").then(n.bind(null,"0035"))}}]}],B=[].concat(Object(r["a"])(N),Object(r["a"])(U),Object(r["a"])(M),Object(r["a"])(T),Object(r["a"])(F),Object(r["a"])(H)),R=[{path:"/",component:$,redirect:"/gic-card/list",children:[{path:"/index",component:function(){return n.e("chunk-f803170c").then(n.bind(null,"1e4b"))}}]},{path:"*",redirect:"/index"}],G=[].concat(R,Object(r["a"])(B))},ed08:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return m}));n("8e6e"),n("2909"),n("5df3"),n("4f7f"),n("34ef"),n("28a5"),n("386d"),n("4917"),n("3b2b");var r=n("ade3"),a=(n("53ca"),n("456d"),n("ac6a"),n("a481"),n("6b54"),n("a18c"));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o=function(e,t){var n,r=t||200;return function(){var t=this,a=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,e.apply(t,a)}),r)}},u=function(e,t){var n=null,r=new Date;return function(){var a=new Date,c=a-r,i=arguments,o=this;c>=t?(n&&clearTimeout(n),e.apply(o,i),r=a):n||(n=setTimeout((function(){e.apply(o,i),r=new Date}),t-c))}},s=function(e){return e*=1,e<10?"0"+e:e},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd-HH-mm-ss",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return n?{y:"",h:""}:"";"number"!==typeof e&&"string"!==typeof e||(e=new Date(e));try{if("string"===typeof e)return n?{y:e,h:""}:e;var r=t.indexOf("yyyy")>=0?s(e.getFullYear()):"",a=t.indexOf("MM")>=0?"-"+s(e.getMonth()+1):"",c=t.indexOf("dd")>=0?"-"+s(e.getDate()):"",i=t.indexOf("HH")>=0?" "+s(e.getHours()):"",o=t.indexOf("mm")>=0?":"+s(e.getMinutes()):"",u=t.indexOf("ss")>=0?":"+s(e.getSeconds()):"";return n?{y:r+a+c,h:i+o+u}:r+a+c+i+o+u}catch(l){return n?{y:e,h:""}:e}},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;try{t>0&&(e=e.toFixed(t))}catch(a){return e}var n=e.toString(),r=n.indexOf(".")>-1?/(\d)(?=(\d{3})+\.)/g:/(\d)(?=(?:\d{3})+$)/g;return n.replace(r,"$1,")},p=function(e){return e?'<p class="cell-time">'.concat(l(e,"yyyy-MM-dd-HH-mm-ss",!0).y,'</p>\n <p class="cell-time">').concat(l(e,"yyyy-MM-dd-HH-mm-ss",!0).h,"</p>\n "):"--"},f=function(){var e=a["a"].app._route,t=i({},e.query);delete t.areaId;var n=i(i({},t),{},{timestamp:(new Date).getTime()});a["a"].push({path:e.fullPath,query:n})},h=function(e){return JSON.parse(JSON.stringify(e))},m=function(e){return""===e||null==e}},f121:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"f",(function(){return u}));var r="0000";function a(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t["c"]={api:window.location.protocol+"//"+window.location.host||""};var c=a(),i=("four.gicdev.com"===window.location.host||window.location.origin,"/api-marketing"),o="/gic-auth-web",u="/api-welfare"},f602:function(e,t,n){"use strict";n("1921")},f8f5:function(e,t,n){}});
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["card-package~gic-card"],{"0717":function(t,e,a){},3548:function(t,e,a){"use strict";var d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.title,visible:t.show,width:t.width,"before-close":t.close,"append-to-body":""},on:{"update:visible":function(e){t.show=e}}},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{prop:"stock",label:"可占库存"}},[a("el-select",{staticClass:"prepend-select w100",attrs:{placeholder:"请选择"},model:{value:t.ruleForm.type,callback:function(e){t.$set(t.ruleForm,"type",e)},expression:"ruleForm.type"}},[a("el-option",{attrs:{label:"增加",value:1}}),a("el-option",{attrs:{label:"减少",value:2}})],1),a("el-input-number",{staticClass:"w140 block-center insert-input",attrs:{placeholder:"请输入","controls-position":"right",precision:0,min:1,max:t.max,size:"small"},model:{value:t.ruleForm.stock,callback:function(e){t.$set(t.ruleForm,"stock",e)},expression:"ruleForm.stock"}})],1),a("el-form-item",{attrs:{prop:"remark",label:"调整备注"}},[a("el-input",{staticClass:"w260",attrs:{type:"textarea",maxlength:"240","show-word-limit":"",placeholder:"",rows:4},model:{value:t.ruleForm.remark,callback:function(e){t.$set(t.ruleForm,"remark",e)},expression:"ruleForm.remark"}})],1)],1),t._t("default"),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.close}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.submit}},[t._v("确认")])],1)],2)},i=[],c=(a("c5f6"),{name:"AdjustStock",props:{totalCount:{type:Number,default:0},show:{type:Boolean,default:!1},title:{type:String,default:"调整库存"},width:{type:String,default:"500px"}},data:function(){var t=this,e=function(e,a,d){var i=t.ruleForm.stock;""===i||void 0==i?d(new Error("请输入库存值")):d()};return{ruleForm:{stock:0,type:1,remark:""},rules:{stock:{required:!0,validator:e,trigger:"change"},remark:{required:!0,message:"请输入备注",trigger:"change"}},loading:!1}},methods:{close:function(){this.loading=!1,this.$emit("update:show",!1),this.ruleForm.type=1,this.ruleForm.stock=0,this.ruleForm.remark="",this.$refs.ruleForm.resetFields()},submit:function(){var t=this;this.$refs.ruleForm.validate((function(e){if(e){var a={optType:t.ruleForm.type,count:t.ruleForm.stock};t.$emit("handleSubmit",a)}}))}}}),o=c,l=(a("8a52"),a("2877")),r=Object(l["a"])(o,d,i,!1,null,"a5a3177c",null);e["a"]=r.exports},5761:function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return u})),a.d(e,"c",(function(){return p}));a("8e6e"),a("ac6a"),a("456d");var d=a("ade3"),i=a("71f6"),c=a("f121");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);e&&(d=d.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,d)}return a}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach((function(e){Object(d["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var r={cardList:{url:"/coupon/coupon-page",method:"post",useFormData:!0},addCard:{url:"/coupon/save-coupon",method:"post",useFormData:!0},updateCard:{url:"/coupon/edit-coupon",method:"post",useFormData:!0},copyCard:"/coupon/copy-coupon",cardInfo:"/coupon/coupon-detail",updateCardStock:"/coupon/update-coupon-stock",deleteCard:"/coupon/delete-coupon",disableCard:"/coupon/disable-coupon",couponLogPage:"/coupon/coupon-log-page",giveLogList:"/coupon-log/coupon-give-log-page",checkDemoCode:{url:"/coupon/check-demo-code",alertError:!1},getMallShopList:"/area/all-mall-shop",couponlogList:{url:"/coupon-log/coupon-log-page",method:"post"},couponStockInfo:"/stock/coupon-stock-info"},n={saveCoupDestoryPlan:{url:"/destroy-plugin/save-destroy-plan",method:"post",useFormData:!0},cardDestoryList:"/destroy-plugin/destroy-plan-page",getDestroyDetail:"/destroy-plugin/get-destroy-detail",couponConsumeOrder:"/coupon-log/coupon-consume-order",couponConsume:"/coupon-log/coupon-consume",couponDestroy:"/coupon-log/coupon-destroy",importCode:{url:"/coupon/import-custom-code",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0}};r=Object(i["a"])(r,c["f"]),n=Object(i["a"])(n,c["f"]),e["a"]=l(l({},r),n);var s=c["c"].api+c["f"]+"/destroy-plugin/download-destroy-code-template",u=c["f"]+"/destroy-plugin/import-destroy-code",p=c["c"].api+c["f"]+"/coupon/download-code-template"},"872f":function(t){t.exports=JSON.parse('{"day":{"day_0":{"dictId":"01b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_0","dictValue":null,"dictName":"0","dictSort":1},"day_1":{"dictId":"02b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_1","dictValue":null,"dictName":"1","dictSort":2},"day_2":{"dictId":"03b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_2","dictValue":null,"dictName":"2","dictSort":3},"day_3":{"dictId":"04b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_3","dictValue":null,"dictName":"3","dictSort":4},"day_4":{"dictId":"05b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_4","dictValue":null,"dictName":"4","dictSort":5},"day_5":{"dictId":"06b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_5","dictValue":null,"dictName":"5","dictSort":6},"day_6":{"dictId":"07b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_6","dictValue":null,"dictName":"6","dictSort":7},"day_7":{"dictId":"08b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_7","dictValue":null,"dictName":"7","dictSort":8},"day_8":{"dictId":"09b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_8","dictValue":null,"dictName":"8","dictSort":9},"day_9":{"dictId":"10b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_9","dictValue":null,"dictName":"9","dictSort":10},"day_10":{"dictId":"11b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_10","dictValue":null,"dictName":"10","dictSort":11},"day_11":{"dictId":"12b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_11","dictValue":null,"dictName":"11","dictSort":12},"day_12":{"dictId":"13b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_12","dictValue":null,"dictName":"12","dictSort":13},"day_13":{"dictId":"14b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_13","dictValue":null,"dictName":"13","dictSort":14},"day_14":{"dictId":"15b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_14","dictValue":null,"dictName":"14","dictSort":15},"day_15":{"dictId":"16b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_15","dictValue":null,"dictName":"15","dictSort":16},"day_16":{"dictId":"17b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_16","dictValue":null,"dictName":"16","dictSort":17},"day_17":{"dictId":"18b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_17","dictValue":null,"dictName":"17","dictSort":18},"day_18":{"dictId":"19b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_18","dictValue":null,"dictName":"18","dictSort":19},"day_19":{"dictId":"20b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_19","dictValue":null,"dictName":"19","dictSort":20},"day_20":{"dictId":"21b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_20","dictValue":null,"dictName":"20","dictSort":21},"day_21":{"dictId":"22b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_21","dictValue":null,"dictName":"21","dictSort":22},"day_22":{"dictId":"23b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_22","dictValue":null,"dictName":"22","dictSort":23},"day_23":{"dictId":"24b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_23","dictValue":null,"dictName":"23","dictSort":24},"day_24":{"dictId":"25b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_24","dictValue":null,"dictName":"24","dictSort":25},"day_25":{"dictId":"26b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_25","dictValue":null,"dictName":"25","dictSort":26},"day_26":{"dictId":"27b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_26","dictValue":null,"dictName":"26","dictSort":27},"day_27":{"dictId":"28b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_27","dictValue":null,"dictName":"27","dictSort":28},"day_28":{"dictId":"29b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_28","dictValue":null,"dictName":"28","dictSort":29},"day_29":{"dictId":"30b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_29","dictValue":null,"dictName":"29","dictSort":30},"day_30":{"dictId":"31b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_30","dictValue":null,"dictName":"30","dictSort":31},"day_31":{"dictId":"32b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_31","dictValue":null,"dictName":"31","dictSort":32},"day_32":{"dictId":"33b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_32","dictValue":null,"dictName":"32","dictSort":33},"day_33":{"dictId":"34b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_33","dictValue":null,"dictName":"33","dictSort":34},"day_34":{"dictId":"35b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_34","dictValue":null,"dictName":"34","dictSort":35},"day_35":{"dictId":"36b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_35","dictValue":null,"dictName":"35","dictSort":36},"day_36":{"dictId":"37b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_36","dictValue":null,"dictName":"36","dictSort":37},"day_37":{"dictId":"38b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_37","dictValue":null,"dictName":"37","dictSort":38},"day_38":{"dictId":"39b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_38","dictValue":null,"dictName":"38","dictSort":39},"day_39":{"dictId":"40b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_39","dictValue":null,"dictName":"39","dictSort":40},"day_40":{"dictId":"41b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_40","dictValue":null,"dictName":"40","dictSort":41},"day_41":{"dictId":"42b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_41","dictValue":null,"dictName":"41","dictSort":42},"day_42":{"dictId":"43b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_42","dictValue":null,"dictName":"42","dictSort":43},"day_43":{"dictId":"44b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_43","dictValue":null,"dictName":"43","dictSort":44},"day_44":{"dictId":"45b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_44","dictValue":null,"dictName":"44","dictSort":45},"day_45":{"dictId":"46b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_45","dictValue":null,"dictName":"45","dictSort":46},"day_46":{"dictId":"47b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_46","dictValue":null,"dictName":"46","dictSort":47},"day_47":{"dictId":"48b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_47","dictValue":null,"dictName":"47","dictSort":48},"day_48":{"dictId":"49b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_48","dictValue":null,"dictName":"48","dictSort":49},"day_49":{"dictId":"50b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_49","dictValue":null,"dictName":"49","dictSort":50},"day_50":{"dictId":"51b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_50","dictValue":null,"dictName":"50","dictSort":51},"day_51":{"dictId":"52b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_51","dictValue":null,"dictName":"51","dictSort":52},"day_52":{"dictId":"53b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_52","dictValue":null,"dictName":"52","dictSort":53},"day_53":{"dictId":"54b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_53","dictValue":null,"dictName":"53","dictSort":54},"day_54":{"dictId":"55b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_54","dictValue":null,"dictName":"54","dictSort":55},"day_55":{"dictId":"56b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_55","dictValue":null,"dictName":"55","dictSort":56},"day_56":{"dictId":"57b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_56","dictValue":null,"dictName":"56","dictSort":57},"day_57":{"dictId":"58b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_57","dictValue":null,"dictName":"57","dictSort":58},"day_58":{"dictId":"59b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_58","dictValue":null,"dictName":"58","dictSort":59},"day_59":{"dictId":"60b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_59","dictValue":null,"dictName":"59","dictSort":60},"day_60":{"dictId":"61b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_60","dictValue":null,"dictName":"60","dictSort":61},"day_61":{"dictId":"62b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_61","dictValue":null,"dictName":"61","dictSort":62},"day_62":{"dictId":"63b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_62","dictValue":null,"dictName":"62","dictSort":63},"day_63":{"dictId":"64b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_63","dictValue":null,"dictName":"63","dictSort":64},"day_64":{"dictId":"65b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_64","dictValue":null,"dictName":"64","dictSort":65},"day_65":{"dictId":"66b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_65","dictValue":null,"dictName":"65","dictSort":66},"day_66":{"dictId":"67b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_66","dictValue":null,"dictName":"66","dictSort":67},"day_67":{"dictId":"68b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_67","dictValue":null,"dictName":"67","dictSort":68},"day_68":{"dictId":"69b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_68","dictValue":null,"dictName":"68","dictSort":69},"day_69":{"dictId":"70b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_69","dictValue":null,"dictName":"69","dictSort":70},"day_70":{"dictId":"71b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_70","dictValue":null,"dictName":"70","dictSort":71},"day_71":{"dictId":"72b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_71","dictValue":null,"dictName":"71","dictSort":72},"day_72":{"dictId":"73b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_72","dictValue":null,"dictName":"72","dictSort":73},"day_73":{"dictId":"74b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_73","dictValue":null,"dictName":"73","dictSort":74},"day_74":{"dictId":"75b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_74","dictValue":null,"dictName":"74","dictSort":75},"day_75":{"dictId":"76b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_75","dictValue":null,"dictName":"75","dictSort":76},"day_76":{"dictId":"77b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_76","dictValue":null,"dictName":"76","dictSort":77},"day_77":{"dictId":"78b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_77","dictValue":null,"dictName":"77","dictSort":78},"day_78":{"dictId":"79b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_78","dictValue":null,"dictName":"78","dictSort":79},"day_79":{"dictId":"80b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_79","dictValue":null,"dictName":"79","dictSort":80},"day_80":{"dictId":"81b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_80","dictValue":null,"dictName":"80","dictSort":81},"day_81":{"dictId":"82b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_81","dictValue":null,"dictName":"81","dictSort":82},"day_82":{"dictId":"83b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_82","dictValue":null,"dictName":"82","dictSort":83},"day_83":{"dictId":"84b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_83","dictValue":null,"dictName":"83","dictSort":84},"day_84":{"dictId":"85b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_84","dictValue":null,"dictName":"84","dictSort":85},"day_85":{"dictId":"86b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_85","dictValue":null,"dictName":"85","dictSort":86},"day_86":{"dictId":"87b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_86","dictValue":null,"dictName":"86","dictSort":87},"day_87":{"dictId":"88b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_87","dictValue":null,"dictName":"87","dictSort":88},"day_88":{"dictId":"89b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_88","dictValue":null,"dictName":"88","dictSort":89},"day_89":{"dictId":"90b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_89","dictValue":null,"dictName":"89","dictSort":90}},"month":{"month_0":{"dictId":"01b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_0","dictValue":null,"dictName":"0","dictSort":1},"month_1":{"dictId":"02b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_1","dictValue":null,"dictName":"1","dictSort":2},"month_2":{"dictId":"03b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_2","dictValue":null,"dictName":"2","dictSort":3},"month_3":{"dictId":"04b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_3","dictValue":null,"dictName":"3","dictSort":4},"month_4":{"dictId":"05b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_4","dictValue":null,"dictName":"4","dictSort":5},"month_5":{"dictId":"06b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_5","dictValue":null,"dictName":"5","dictSort":6},"month_6":{"dictId":"07b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_6","dictValue":null,"dictName":"6","dictSort":7},"month_7":{"dictId":"08b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_7","dictValue":null,"dictName":"7","dictSort":8},"month_8":{"dictId":"09b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_8","dictValue":null,"dictName":"8","dictSort":9},"month_9":{"dictId":"10b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_9","dictValue":null,"dictName":"9","dictSort":10},"month_10":{"dictId":"11b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_10","dictValue":null,"dictName":"10","dictSort":11},"month_11":{"dictId":"12b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_11","dictValue":null,"dictName":"11","dictSort":12}}}')},"8a52":function(t,e,a){"use strict";a("d1fd")},"9b93":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"d",(function(){return c})),a.d(e,"b",(function(){return o})),a.d(e,"f",(function(){return l})),a.d(e,"e",(function(){return r})),a.d(e,"i",(function(){return n})),a.d(e,"g",(function(){return s})),a.d(e,"h",(function(){return u})),a.d(e,"c",(function(){return p}));a("ac6a"),a("456d");var d=a("872f"),i={1:"未生效",2:"使用中",3:"已过期",4:"已禁用","-1":"已删除"},c=["#3970b5","#d9b46a","#2baca7","#dd5c53","#1a1a1a"],o={0:{label:"抵金券",value:0},1:{label:"折扣券",value:1},2:{label:"兑换券",value:2}},l={1:{label:"转赠中",value:1,cl:"state-point-loading-scale"},2:{label:"已撤回",value:1,cl:"state-point-warning"},3:{label:"已完成",value:3,cl:"state-point-success"}},r={3:{label:"待领取",cl:"state-point-warning",value:3},4:{label:"待核销",cl:"state-point-warning",value:4},5:{label:"已核销",cl:"state-point-success",value:5},6:{label:"已到期",cl:"state-point-default",value:6},7:{label:"已销毁",cl:"state-point-default",value:7},8:{label:"已占用",cl:"state-point-error",value:8},9:{label:"转赠中",cl:"state-point-loading-scale",value:9},10:{label:"已转赠",cl:"state-point-success",value:10}},n={1:{label:"线下订单",value:1},2:{label:"达摩微商城",value:2},3:{label:"微盟微商城",value:3}},s=Object.keys(d.day).map((function(t){var e={label:"第"+(1*d.day[t].dictName+1)+"天",value:parseInt(d.day[t].dictName)+1};return"0"==d.day[t].dictName&&(e.label="当日"),"1"==d.day[t].dictName&&(e.label="次日"),e})),u=Object.keys(d.month).map((function(t){var e={label:"第"+(1*d.month[t].dictName+1)+"个月",value:parseInt(d.month[t].dictName)+1};return"0"==d.month[t].dictName&&(e.label="当月"),"1"==d.month[t].dictName&&(e.label="次月"),e})),p=function(t){var e=t.statusFlag,a=t.cardEffectiveMode,d=t.expireDate,i=t.startDate,c=-1;return 2==e?c=4:(0===a&&d<Date.now()&&(c=3),0===a&&i>Date.now()&&(c=1),c=2),t._status=c,t}},a68a:function(t,e,a){"use strict";var d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[a("div",{staticClass:"clearfix flex-center"},[a("welfare-item",{attrs:{"welfare-id":t.$route.query.id,type:t.type},on:{updateSkulist:function(e){t.skuList=e}}})],1),a("div",{staticClass:"bg-color mb20",staticStyle:{height:"20px",width:"calc(100% + 40px)",position:"relative",left:"-20px"}}),a("div",[t._m(0),a("div",{staticClass:"mb20"},[1==t.type?a("el-select",{staticClass:"mr10 w160",attrs:{clearable:"",placeholder:"全部SKU"},on:{change:t.refresh},model:{value:t.listParams.name,callback:function(e){t.$set(t.listParams,"name",e)},expression:"listParams.name"}},t._l(t.skuList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.giftSkuName,value:t.giftSkuId}})})),1):t._e(),a("el-select",{staticClass:"mr10 w160",attrs:{clearable:"",placeholder:"全部操作类型"},on:{change:t.refresh},model:{value:t.listParams.modifyType,callback:function(e){t.$set(t.listParams,"modifyType",e)},expression:"listParams.modifyType"}},t._l(t.stockAdjustType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-select",{staticClass:"w160 mr10",attrs:{multiple:"",placeholder:"全部来源",clearable:""},on:{change:t.changeAppCode},model:{value:t.appCodes,callback:function(e){t.appCodes=e},expression:"appCodes"}},t._l(t.appList,(function(t){return a("el-option",{key:t.appCode,attrs:{label:t.appName,value:t.appCode}})})),1),a("el-input",{staticClass:"mr10 w260",attrs:{clearable:"",placeholder:"请输入活动名称搜索"},on:{change:t.refresh},model:{value:t.listParams.activityName,callback:function(e){t.$set(t.listParams,"activityName",e)},expression:"listParams.activityName"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),a("el-date-picker",{staticClass:"w350 mr10",attrs:{type:"daterange","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.refresh},model:{value:t.dateTime,callback:function(e){t.dateTime=e},expression:"dateTime"}})],1)]),a("el-table",{staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.tableList}},[a("el-table-column",{attrs:{prop:"modifyTime",label:"操作时间","min-width":"120",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return a("span",{domProps:{innerHTML:t._s(t.listTime(e.row.modifyTime))}})}}])}),1==t.type||2==t.type?a("el-table-column",{attrs:{prop:"name",label:"调整对象","min-width":"120"}}):t._e(),a("el-table-column",{attrs:{label:"调整类型","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return a("span",{},[t._v(t._s(t._f("fType")(e.row.modifyType)))])}}])}),a("el-table-column",{attrs:{prop:"modifyStock",label:"调整数量","min-width":"120"}}),a("el-table-column",{attrs:{prop:"afterRemainedStock",label:"可占库存","min-width":"120"}}),a("el-table-column",{attrs:{prop:"creatorName",label:"操作人","min-width":"120"}}),a("el-table-column",{attrs:{prop:"appName",label:"调整应用","min-width":"120"}}),a("el-table-column",{attrs:{prop:"activityName",label:"活动名称","min-width":"120"}}),a("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"140","show-overflow-tooltip":""}})],1),a("div",{staticClass:"clearfix"},[t.tableList.length?a("dm-pagination",{staticClass:"fr mb0",attrs:{background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",{staticClass:"fray01 fw500 mb15"},[t._v("操作记录"),a("span",{staticClass:"fz12 ml15 gray03 fw400"},[t._v("主要对手动调整库存,应用占用库存,应用释放库存的场景下对福利“可占库存”引起变更进行记录")])])}],c=(a("ac6a"),a("456d"),a("c5f6"),a("fab6")),o=a("ed08"),l=a("2934"),r=a("9b93"),n=a("f9e4"),s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"welfare-item"},[a("div",{staticClass:"head"},[a("el-tag",{attrs:{effect:"plain"}},[t._v(t._s(t.fUseStatus(t.info.useStatus)))]),a("label",[t._v("福利ID:")]),a("span",[t._v(t._s(t.welfareId))]),a("label",[t._v("更新时间:")]),a("span",{domProps:{innerHTML:t._s(t.formatDateTimeByType(t.info.updateTime))}}),a("label",[t._v("创建时间:")]),a("span",{domProps:{innerHTML:t._s(t.formatDateTimeByType(t.info.createTime))}}),a("span",{staticClass:"btn",on:{click:function(e){t.dialogVisible=!0}}},[t._v("活动记录"),a("i",{staticClass:"el-icon-arrow-right ml5"})])],1),a("div",{staticClass:"content"},[a("div",{staticClass:"f1"},[a("div",{staticClass:"detail"},[a("p",[t._v(t._s(t.info.name||"--"))]),a("p",{staticClass:"gray03 fz12"},[1==t.type||2==t.type?[t._v("礼品编码:")]:t._e(),t._v(t._s(t.info.remarkName||"--"))],2),a("img",{attrs:{src:t.info.imgUrl,draggable:"false"}})]),a("p",[t._v("成本(元)"),a("span",[t._v("¥"+t._s(t.info.costPrice||0))])]),a("p",[t._v("可占库存"),a("span",[t._v(t._s(t.info.remainedStock||0))])])]),a("div",{staticClass:"f2"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticClass:"mb20",attrs:{span:12}},[t._v("已占用:"),a("span",[t._v(t._s(t.info.occupyStock||0))])]),a("el-col",{staticClass:"mb20",attrs:{span:12}},[t._v("总库存:"),a("span",[t._v(t._s(t.info.totalStock||0))])]),a("el-col",{attrs:{span:12}},[t._v("已履约:"),a("span",[t._v(t._s(t.info.outStock||0))])]),1==t.type||2==t.type?a("el-col",{attrs:{span:12}},[t._v("待履约:"),a("span",[t._v(t._s(t.info.preStock||0))])]):t._e()],1)],1)]),1==t.type?a("el-table",{staticClass:"ml20 mr20 mb10 el-table-list-mini-empty",staticStyle:{width:"calc(100% - 40px)"},attrs:{data:t.skuList,"max-height":"200"}},[a("el-table-column",{attrs:{prop:"giftSkuName",label:"SKU信息","min-width":"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("img",{staticClass:"mr10",attrs:{src:e.row.giftSkuImgUrl,width:"40",height:"40"}}),a("span",[t._v(t._s(e.row.giftSkuName||"--"))])])]}}],null,!1,4173144523)}),a("el-table-column",{attrs:{prop:"giftSkuId",label:"SKU编码","min-width":"150"}}),a("el-table-column",{attrs:{prop:"totalStock",label:"总库存","min-width":"150"}}),a("el-table-column",{attrs:{prop:"occupyStock",label:"已占用","min-width":"150"}}),a("el-table-column",{attrs:{prop:"remainedStock",label:"可占库存","min-width":"150"}}),a("el-table-column",{attrs:{prop:"outStock",label:"已履约","min-width":"150"}})],1):t._e(),a("act-dialog",{attrs:{"dialog-visible":t.dialogVisible,"welfare-id":t.$route.query.id},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e}}})],1)},u=[],p=(a("7f7f"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"活动统计",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.close}},[a("div",{staticClass:"mb20"},[a("el-select",{staticClass:"w140 mr10",attrs:{multiple:"",placeholder:"全部来源",clearable:""},on:{change:t.changeAppCode},model:{value:t.appCodes,callback:function(e){t.appCodes=e},expression:"appCodes"}},t._l(t.appList,(function(t){return a("el-option",{key:t.appCode,attrs:{label:t.appName,value:t.appCode}})})),1),a("el-input",{staticClass:"mr10 w300",attrs:{clearable:"",placeholder:"请输入活动名称搜索"},on:{change:t.refresh},model:{value:t.listParams.activityName,callback:function(e){t.$set(t.listParams,"activityName",e)},expression:"listParams.activityName"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{"max-height":"500","tooltip-effect":"dark",data:t.tableList}},[a("el-table-column",{attrs:{prop:"appName",label:"活动应用名称","min-width":"120"}}),a("el-table-column",{attrs:{prop:"activityName",label:"活动名称","min-width":"180"}}),a("el-table-column",{attrs:{prop:"remainedStock",label:"可用库存","min-width":"120"}}),1==t.type||2==t.type?a("el-table-column",{attrs:{prop:"preStock",label:"待履约库存","min-width":"120"}}):t._e(),a("el-table-column",{attrs:{prop:"outStock",label:"历史履约库存","min-width":"120"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("关闭")])],1)],1)}),f=[],y=(a("8e6e"),a("ade3"));function m(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);e&&(d=d.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,d)}return a}function _(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?m(Object(a),!0).forEach((function(e){Object(y["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):m(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var b=l["a"].getStockActivityStatistics,g=l["a"].getAppList,h={mixins:[c["c"]],props:{dialogVisible:{default:!1,type:Boolean},welfareId:{type:String,required:!0},type:{type:[Number,String],required:!0}},data:function(){return{loading:!1,listParams:{appCode:"",activityName:"",currentPage:1,pageSize:20},total:0,tableList:[],appList:[],appCodes:""}},methods:{close:function(){this.$emit("update:dialogVisible",!1),this.tableList=[],this.appCodes="",this.listParams.appCode="",this.listParams.activityName="",this.listParams.currentPage=1},changeAppCode:function(t){this.listParams.appCodes=t.join(","),this.refresh()},getAppList:function(){var t=this;g().then((function(e){t.appList=e.result||[]}))},getTableList:function(){var t=this;this.loading=!0,b(_({welfareId:this.welfareId},this.listParams)).then((function(e){t.loading=!1;var a=e.result.page.result||[];if(a.length){var d=e.result.page.result.reduce((function(t,e){t.remainedStock+=e.remainedStock,t.preStock+=e.preStock,t.outStock+=e.outStock}),{appName:"合计",activityName:"",remainedStock:0,preStock:0,outStock:0});a=a.unshift(d)}t.tableList=a})).catch((function(){t.loading=!1}))}},watch:{dialogVisible:function(t){t&&(this.getTableList(),this.getAppList())}}},S=h,v=a("2877"),C=Object(v["a"])(S,p,f,!1,null,null,null),k=C.exports,T=a("cdc8"),N=a("5761"),I=T["a"].giftGet,w=N["a"].couponStockInfo,V={name:"WelfareItem",components:{actDialog:k},props:{welfareId:{type:String,required:!0},type:{type:[Number,String],required:!0}},data:function(){return{info:{},dialogVisible:!1,skuList:[]}},methods:{formatDateTimeByType:o["e"],getWelfareInfo:function(){var t=this;1!=this.type&&2!=this.type||I({id:this.welfareId}).then((function(e){var a=e.result,d=a.giftImages,i=a.updateTime,c=a.createTime,o=a.giftName,l=a.giftNo,r=a.virCostPrice,n=a.outStock,s=a.preStock,u=a.occupyStock,p=a.remainedStock,f=a.totalStock,y=a.useStatus;t.info={imgUrl:d,updateTime:i,createTime:c,name:o,remarkName:l,costPrice:r,outStock:n,preStock:s,occupyStock:u,remainedStock:p,totalStock:f,useStatus:y},1==t.type&&(t.skuList=e.result.skuList||[],t.$emit("updateSkulist",t.skuList))})),3!=this.type&&4!=this.type||w({welfareId:this.welfareId,type:3==this.type?1:2}).then((function(e){var a=e.result,d=a.imgUrl,i=a.updateTime,c=a.createTime,o=a.name,l=a.remarkName,r=a.costPriceRemark,n=a.outStock,s=a.preStock,u=a.occupyStock,p=a.remainedStock,f=a.totalStock,y=a.useStatus;t.info={imgUrl:d,updateTime:i,createTime:c,name:o,remarkName:l,costPrice:r,outStock:n,preStock:s,occupyStock:u,remainedStock:p,totalStock:f,useStatus:y}}))},fUseStatus:function(t){var e={1:"正常",2:"仅隐藏",3:"正常"},a={0:"未生效",1:"已生效",2:"已过期",3:"已禁用"};return(1==this.type||2==this.type?e[t]:a[t])||"--"}},watch:{welfareId:{handler:function(){this.getWelfareInfo()},immediate:!0}}},P=V,O=(a("ab17"),Object(v["a"])(P,s,u,!1,null,null,null)),j=O.exports,L=l["a"].getStockList,x=l["a"].getAppList,D={name:"StockList",components:{welfareItem:j},mixins:[c["c"],c["a"]],props:{welfareId:{type:String,required:!0},type:{type:[Number,String],required:!0}},data:function(){return{loading:!1,dateTime:[,],listParams:{welfareId:this.welfareId,modifyType:"",startDate:"",endDate:"",activityName:"",appCodes:"",currentPage:1,pageSize:20},stockAdjustType:Object.keys(n["a"]).map((function(t){return{label:n["a"][t],value:t}})),total:0,tableList:[],appList:[],appCodes:[],skuList:[]}},mounted:function(){this.welfareId&&(this.getAppList(),this.getTableList())},methods:{listTime:o["g"],formatCardType:function(t){return r["b"][t.cardType].label},changeAppCode:function(t){this.listParams.appCodes=t.join(","),this.refresh()},getAppList:function(){var t=this;x().then((function(e){t.appList=e.result||[]}))},getTableList:function(){var t=this;this.loading||(this.formatterTimeFunc("startDate","endDate","yyyy-MM-dd","dateTime"),this.loading=!0,L(this.listParams).then((function(e){t.loading=!1;var a=e.result;t.tableList=a.result||[],t.total=a.totalCount,0===t.tableList.length&&1!==t.listParams.currentPage&&(t.listParams.currentPage-=1,t.getTableList())})).finally((function(){t.loading=!1})))}},filters:{fType:function(t){return n["a"][t]||"--"}}},F=D,A=Object(v["a"])(F,d,i,!1,null,null,null);e["a"]=A.exports},ab17:function(t,e,a){"use strict";a("0717")},cdc8:function(t,e,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var d=a("ade3"),i=a("71f6"),c=a("f121");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);e&&(d=d.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,d)}return a}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach((function(e){Object(d["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var r={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},n={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};r=Object(i["a"])(r,c["f"]),n=Object(i["a"])(n,c["f"]),e["a"]=l(l({},r),n);c["c"].api,c["b"],c["c"].api,c["f"]},d1fd:function(t,e,a){},e747:function(t,e,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var d=a("ade3"),i=a("71f6"),c=a("f121");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);e&&(d=d.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,d)}return a}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach((function(e){Object(d["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var r={addPackages:{url:"/coupon-package/save-package",method:"post",useFormData:!0},editPackages:"/coupon-package/edit-package",pageCouponPackage:"/coupon-package/page-package",pagePackageLog:"/coupon-package/page-package-log",getPackageDetail:"/coupon-package/package-detail",deletePackage:"/coupon-package/batch-del-package",updatePackageStock:"/coupon-package/update-package-stock",addPackageItem:"/coupon-package/add-package-item",delPackageItem:"/coupon-package/del-package-item",listCouponByPackageId:"/coupon-package/list-coupon-log",checkCustomSetting:"/setting/get-setting",saveCustomSetting:"/setting/save-setting"};r=Object(i["a"])(r,c["f"]),e["a"]=l({},r)},f9e4:function(t,e,a){"use strict";a.d(e,"b",(function(){return d})),a.d(e,"a",(function(){return i}));a("6c7b"),Array(31).fill().map((function(t,e){return{label:"".concat(e+1,"号"),value:"".concat(e+1)}})),Array(28).fill().map((function(t,e){return{label:"".concat(e+1,"号"),value:"".concat(e+1)}})).concat({label:"月底",value:"0"}),Array(12).fill().map((function(t,e){return{label:"".concat(e+1,"月"),value:"".concat(e+1)}}));var d=[{title:"实物礼品",target:"/gift-manage/real-gift",code:"w-real-gifts"},{title:"虚拟礼品",target:"/gift-manage/virtual-gift",code:"w-virtual-gifts"},{title:"GIC 卡券",target:"/gic-card/list",code:"w-gic-card"},{title:"GIC 卡券包",target:"/card-package/list",code:"w-card-package"}],i={1:"增加",2:"减少"}},fab6:function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return c})),a.d(e,"b",(function(){return o}));var d=a("ed08"),i={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.listParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.listParams.currentPage=t,this.getTableList()}}},c={methods:{formatterTimeFunc:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[i]?(this.listParams[t]=Object(d["e"])(this[i][0],a),this.listParams[e]=Object(d["e"])(this[i][1],a)):this.listParams[t]=this.listParams[e]=""}}},o={methods:{mainHeight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-t}}}}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["card-package~gic-card"],{"0717":function(t,e,a){},3548:function(t,e,a){"use strict";var d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.title,visible:t.show,width:t.width,"before-close":t.close,"append-to-body":""},on:{"update:visible":function(e){t.show=e}}},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{prop:"stock",label:"可占库存"}},[a("el-select",{staticClass:"prepend-select w100",attrs:{placeholder:"请选择"},model:{value:t.ruleForm.type,callback:function(e){t.$set(t.ruleForm,"type",e)},expression:"ruleForm.type"}},[a("el-option",{attrs:{label:"增加",value:1}}),a("el-option",{attrs:{label:"减少",value:2}})],1),a("el-input-number",{staticClass:"w140 block-center insert-input",attrs:{placeholder:"请输入","controls-position":"right",precision:0,min:1,max:t.max,size:"small"},model:{value:t.ruleForm.stock,callback:function(e){t.$set(t.ruleForm,"stock",e)},expression:"ruleForm.stock"}})],1),a("el-form-item",{attrs:{prop:"remark",label:"调整备注"}},[a("el-input",{staticClass:"w260",attrs:{type:"textarea",maxlength:"240","show-word-limit":"",placeholder:"",rows:4},model:{value:t.ruleForm.remark,callback:function(e){t.$set(t.ruleForm,"remark",e)},expression:"ruleForm.remark"}})],1)],1),t._t("default"),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.close}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.submit}},[t._v("确认")])],1)],2)},i=[],c=(a("c5f6"),{name:"AdjustStock",props:{totalCount:{type:Number,default:0},show:{type:Boolean,default:!1},title:{type:String,default:"调整库存"},width:{type:String,default:"500px"}},data:function(){var t=this,e=function(e,a,d){var i=t.ruleForm.stock;""===i||void 0==i?d(new Error("请输入库存值")):d()};return{ruleForm:{stock:0,type:1,remark:""},rules:{stock:{required:!0,validator:e,trigger:"change"},remark:{required:!0,message:"请输入备注",trigger:"change"}},loading:!1}},methods:{close:function(){this.loading=!1,this.$emit("update:show",!1),this.ruleForm.type=1,this.ruleForm.stock=0,this.ruleForm.remark="",this.$refs.ruleForm.resetFields()},submit:function(){var t=this;this.$refs.ruleForm.validate((function(e){if(e){var a={optType:t.ruleForm.type,count:t.ruleForm.stock};t.$emit("handleSubmit",a)}}))}}}),o=c,l=(a("8a52"),a("2877")),r=Object(l["a"])(o,d,i,!1,null,"a5a3177c",null);e["a"]=r.exports},5761:function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return u})),a.d(e,"c",(function(){return p}));a("8e6e"),a("ac6a"),a("456d");var d=a("ade3"),i=a("71f6"),c=a("f121");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);e&&(d=d.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,d)}return a}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach((function(e){Object(d["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var r={cardList:{url:"/coupon/coupon-page",method:"post",useFormData:!0},addCard:{url:"/coupon/save-coupon",method:"post",useFormData:!0},updateCard:{url:"/coupon/edit-coupon",method:"post",useFormData:!0},copyCard:"/coupon/copy-coupon",cardInfo:"/coupon/coupon-detail",updateCardStock:"/coupon/update-coupon-stock",deleteCard:"/coupon/delete-coupon",disableCard:"/coupon/disable-coupon",couponLogPage:"/coupon/coupon-log-page",giveLogList:"/coupon-log/coupon-give-log-page",checkDemoCode:{url:"/coupon/check-demo-code",alertError:!1},getMallShopList:"/area/all-mall-shop",couponlogList:{url:"/coupon-log/coupon-log-page",method:"post"},couponStockInfo:"/stock/coupon-stock-info"},n={saveCoupDestoryPlan:{url:"/destroy-plugin/save-destroy-plan",method:"post",useFormData:!0},cardDestoryList:"/destroy-plugin/destroy-plan-page",getDestroyDetail:"/destroy-plugin/get-destroy-detail",couponConsumeOrder:"/coupon-log/coupon-consume-order",couponConsume:"/coupon-log/coupon-consume",couponDestroy:"/coupon-log/coupon-destroy",importCode:{url:"/coupon/import-custom-code",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0}};r=Object(i["a"])(r,c["f"]),n=Object(i["a"])(n,c["f"]),e["a"]=l(l({},r),n);var s=c["c"].api+c["f"]+"/destroy-plugin/download-destroy-code-template",u=c["f"]+"/destroy-plugin/import-destroy-code",p=c["c"].api+c["f"]+"/coupon/download-code-template"},"872f":function(t){t.exports=JSON.parse('{"day":{"day_0":{"dictId":"01b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_0","dictValue":null,"dictName":"0","dictSort":1},"day_1":{"dictId":"02b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_1","dictValue":null,"dictName":"1","dictSort":2},"day_2":{"dictId":"03b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_2","dictValue":null,"dictName":"2","dictSort":3},"day_3":{"dictId":"04b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_3","dictValue":null,"dictName":"3","dictSort":4},"day_4":{"dictId":"05b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_4","dictValue":null,"dictName":"4","dictSort":5},"day_5":{"dictId":"06b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_5","dictValue":null,"dictName":"5","dictSort":6},"day_6":{"dictId":"07b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_6","dictValue":null,"dictName":"6","dictSort":7},"day_7":{"dictId":"08b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_7","dictValue":null,"dictName":"7","dictSort":8},"day_8":{"dictId":"09b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_8","dictValue":null,"dictName":"8","dictSort":9},"day_9":{"dictId":"10b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_9","dictValue":null,"dictName":"9","dictSort":10},"day_10":{"dictId":"11b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_10","dictValue":null,"dictName":"10","dictSort":11},"day_11":{"dictId":"12b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_11","dictValue":null,"dictName":"11","dictSort":12},"day_12":{"dictId":"13b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_12","dictValue":null,"dictName":"12","dictSort":13},"day_13":{"dictId":"14b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_13","dictValue":null,"dictName":"13","dictSort":14},"day_14":{"dictId":"15b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_14","dictValue":null,"dictName":"14","dictSort":15},"day_15":{"dictId":"16b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_15","dictValue":null,"dictName":"15","dictSort":16},"day_16":{"dictId":"17b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_16","dictValue":null,"dictName":"16","dictSort":17},"day_17":{"dictId":"18b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_17","dictValue":null,"dictName":"17","dictSort":18},"day_18":{"dictId":"19b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_18","dictValue":null,"dictName":"18","dictSort":19},"day_19":{"dictId":"20b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_19","dictValue":null,"dictName":"19","dictSort":20},"day_20":{"dictId":"21b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_20","dictValue":null,"dictName":"20","dictSort":21},"day_21":{"dictId":"22b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_21","dictValue":null,"dictName":"21","dictSort":22},"day_22":{"dictId":"23b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_22","dictValue":null,"dictName":"22","dictSort":23},"day_23":{"dictId":"24b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_23","dictValue":null,"dictName":"23","dictSort":24},"day_24":{"dictId":"25b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_24","dictValue":null,"dictName":"24","dictSort":25},"day_25":{"dictId":"26b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_25","dictValue":null,"dictName":"25","dictSort":26},"day_26":{"dictId":"27b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_26","dictValue":null,"dictName":"26","dictSort":27},"day_27":{"dictId":"28b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_27","dictValue":null,"dictName":"27","dictSort":28},"day_28":{"dictId":"29b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_28","dictValue":null,"dictName":"28","dictSort":29},"day_29":{"dictId":"30b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_29","dictValue":null,"dictName":"29","dictSort":30},"day_30":{"dictId":"31b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_30","dictValue":null,"dictName":"30","dictSort":31},"day_31":{"dictId":"32b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_31","dictValue":null,"dictName":"31","dictSort":32},"day_32":{"dictId":"33b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_32","dictValue":null,"dictName":"32","dictSort":33},"day_33":{"dictId":"34b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_33","dictValue":null,"dictName":"33","dictSort":34},"day_34":{"dictId":"35b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_34","dictValue":null,"dictName":"34","dictSort":35},"day_35":{"dictId":"36b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_35","dictValue":null,"dictName":"35","dictSort":36},"day_36":{"dictId":"37b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_36","dictValue":null,"dictName":"36","dictSort":37},"day_37":{"dictId":"38b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_37","dictValue":null,"dictName":"37","dictSort":38},"day_38":{"dictId":"39b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_38","dictValue":null,"dictName":"38","dictSort":39},"day_39":{"dictId":"40b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_39","dictValue":null,"dictName":"39","dictSort":40},"day_40":{"dictId":"41b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_40","dictValue":null,"dictName":"40","dictSort":41},"day_41":{"dictId":"42b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_41","dictValue":null,"dictName":"41","dictSort":42},"day_42":{"dictId":"43b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_42","dictValue":null,"dictName":"42","dictSort":43},"day_43":{"dictId":"44b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_43","dictValue":null,"dictName":"43","dictSort":44},"day_44":{"dictId":"45b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_44","dictValue":null,"dictName":"44","dictSort":45},"day_45":{"dictId":"46b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_45","dictValue":null,"dictName":"45","dictSort":46},"day_46":{"dictId":"47b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_46","dictValue":null,"dictName":"46","dictSort":47},"day_47":{"dictId":"48b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_47","dictValue":null,"dictName":"47","dictSort":48},"day_48":{"dictId":"49b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_48","dictValue":null,"dictName":"48","dictSort":49},"day_49":{"dictId":"50b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_49","dictValue":null,"dictName":"49","dictSort":50},"day_50":{"dictId":"51b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_50","dictValue":null,"dictName":"50","dictSort":51},"day_51":{"dictId":"52b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_51","dictValue":null,"dictName":"51","dictSort":52},"day_52":{"dictId":"53b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_52","dictValue":null,"dictName":"52","dictSort":53},"day_53":{"dictId":"54b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_53","dictValue":null,"dictName":"53","dictSort":54},"day_54":{"dictId":"55b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_54","dictValue":null,"dictName":"54","dictSort":55},"day_55":{"dictId":"56b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_55","dictValue":null,"dictName":"55","dictSort":56},"day_56":{"dictId":"57b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_56","dictValue":null,"dictName":"56","dictSort":57},"day_57":{"dictId":"58b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_57","dictValue":null,"dictName":"57","dictSort":58},"day_58":{"dictId":"59b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_58","dictValue":null,"dictName":"58","dictSort":59},"day_59":{"dictId":"60b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_59","dictValue":null,"dictName":"59","dictSort":60},"day_60":{"dictId":"61b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_60","dictValue":null,"dictName":"60","dictSort":61},"day_61":{"dictId":"62b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_61","dictValue":null,"dictName":"61","dictSort":62},"day_62":{"dictId":"63b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_62","dictValue":null,"dictName":"62","dictSort":63},"day_63":{"dictId":"64b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_63","dictValue":null,"dictName":"63","dictSort":64},"day_64":{"dictId":"65b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_64","dictValue":null,"dictName":"64","dictSort":65},"day_65":{"dictId":"66b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_65","dictValue":null,"dictName":"65","dictSort":66},"day_66":{"dictId":"67b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_66","dictValue":null,"dictName":"66","dictSort":67},"day_67":{"dictId":"68b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_67","dictValue":null,"dictName":"67","dictSort":68},"day_68":{"dictId":"69b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_68","dictValue":null,"dictName":"68","dictSort":69},"day_69":{"dictId":"70b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_69","dictValue":null,"dictName":"69","dictSort":70},"day_70":{"dictId":"71b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_70","dictValue":null,"dictName":"70","dictSort":71},"day_71":{"dictId":"72b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_71","dictValue":null,"dictName":"71","dictSort":72},"day_72":{"dictId":"73b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_72","dictValue":null,"dictName":"72","dictSort":73},"day_73":{"dictId":"74b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_73","dictValue":null,"dictName":"73","dictSort":74},"day_74":{"dictId":"75b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_74","dictValue":null,"dictName":"74","dictSort":75},"day_75":{"dictId":"76b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_75","dictValue":null,"dictName":"75","dictSort":76},"day_76":{"dictId":"77b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_76","dictValue":null,"dictName":"76","dictSort":77},"day_77":{"dictId":"78b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_77","dictValue":null,"dictName":"77","dictSort":78},"day_78":{"dictId":"79b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_78","dictValue":null,"dictName":"78","dictSort":79},"day_79":{"dictId":"80b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_79","dictValue":null,"dictName":"79","dictSort":80},"day_80":{"dictId":"81b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_80","dictValue":null,"dictName":"80","dictSort":81},"day_81":{"dictId":"82b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_81","dictValue":null,"dictName":"81","dictSort":82},"day_82":{"dictId":"83b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_82","dictValue":null,"dictName":"82","dictSort":83},"day_83":{"dictId":"84b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_83","dictValue":null,"dictName":"83","dictSort":84},"day_84":{"dictId":"85b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_84","dictValue":null,"dictName":"84","dictSort":85},"day_85":{"dictId":"86b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_85","dictValue":null,"dictName":"85","dictSort":86},"day_86":{"dictId":"87b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_86","dictValue":null,"dictName":"86","dictSort":87},"day_87":{"dictId":"88b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_87","dictValue":null,"dictName":"87","dictSort":88},"day_88":{"dictId":"89b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_88","dictValue":null,"dictName":"88","dictSort":89},"day_89":{"dictId":"90b6a523f8ae11e6af47e435c87f077a","dictType":"card_day","dictCode":"day_89","dictValue":null,"dictName":"89","dictSort":90}},"month":{"month_0":{"dictId":"01b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_0","dictValue":null,"dictName":"0","dictSort":1},"month_1":{"dictId":"02b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_1","dictValue":null,"dictName":"1","dictSort":2},"month_2":{"dictId":"03b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_2","dictValue":null,"dictName":"2","dictSort":3},"month_3":{"dictId":"04b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_3","dictValue":null,"dictName":"3","dictSort":4},"month_4":{"dictId":"05b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_4","dictValue":null,"dictName":"4","dictSort":5},"month_5":{"dictId":"06b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_5","dictValue":null,"dictName":"5","dictSort":6},"month_6":{"dictId":"07b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_6","dictValue":null,"dictName":"6","dictSort":7},"month_7":{"dictId":"08b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_7","dictValue":null,"dictName":"7","dictSort":8},"month_8":{"dictId":"09b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_8","dictValue":null,"dictName":"8","dictSort":9},"month_9":{"dictId":"10b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_9","dictValue":null,"dictName":"9","dictSort":10},"month_10":{"dictId":"11b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_10","dictValue":null,"dictName":"10","dictSort":11},"month_11":{"dictId":"12b6a523f8ae11e6af47e435c87f077b","dictType":"card_month","dictCode":"month_11","dictValue":null,"dictName":"11","dictSort":12}}}')},"8a52":function(t,e,a){"use strict";a("d1fd")},"9b93":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"d",(function(){return c})),a.d(e,"b",(function(){return o})),a.d(e,"f",(function(){return l})),a.d(e,"e",(function(){return r})),a.d(e,"i",(function(){return n})),a.d(e,"g",(function(){return s})),a.d(e,"h",(function(){return u})),a.d(e,"c",(function(){return p}));a("ac6a"),a("456d");var d=a("872f"),i={1:"未生效",2:"使用中",3:"已过期",4:"已禁用","-1":"已删除"},c=["#3970b5","#d9b46a","#2baca7","#dd5c53","#1a1a1a"],o={0:{label:"抵金券",value:0},1:{label:"折扣券",value:1},2:{label:"兑换券",value:2}},l={1:{label:"转赠中",value:1,cl:"state-point-loading-scale"},2:{label:"已撤回",value:1,cl:"state-point-warning"},3:{label:"已完成",value:3,cl:"state-point-success"}},r={3:{label:"待领取",cl:"state-point-warning",value:3},4:{label:"待核销",cl:"state-point-warning",value:4},5:{label:"已核销",cl:"state-point-success",value:5},6:{label:"已到期",cl:"state-point-default",value:6},7:{label:"已销毁",cl:"state-point-default",value:7},8:{label:"已占用",cl:"state-point-error",value:8},9:{label:"转赠中",cl:"state-point-loading-scale",value:9},10:{label:"已转赠",cl:"state-point-success",value:10}},n={1:{label:"线下订单",value:1},2:{label:"达摩微商城",value:2},3:{label:"微盟微商城",value:3}},s=Object.keys(d.day).map((function(t){var e={label:"第"+(1*d.day[t].dictName+1)+"天",value:parseInt(d.day[t].dictName)+1};return"0"==d.day[t].dictName&&(e.label="当日"),"1"==d.day[t].dictName&&(e.label="次日"),e})),u=Object.keys(d.month).map((function(t){var e={label:"第"+(1*d.month[t].dictName+1)+"个月",value:parseInt(d.month[t].dictName)+1};return"0"==d.month[t].dictName&&(e.label="当月"),"1"==d.month[t].dictName&&(e.label="次月"),e})),p=function(t){var e=t.statusFlag,a=t.cardEffectiveMode,d=t.expireDate,i=t.startDate,c=-1;return 2==e?c=4:(0===a&&d<Date.now()&&(c=3),0===a&&i>Date.now()&&(c=1),c=2),t._status=c,t}},a68a:function(t,e,a){"use strict";var d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[a("div",{staticClass:"clearfix flex-center"},[a("welfare-item",{attrs:{"welfare-id":t.$route.query.id,type:t.type},on:{updateSkulist:function(e){t.skuList=e}}})],1),a("div",{staticClass:"bg-color mb20",staticStyle:{height:"20px",width:"calc(100% + 40px)",position:"relative",left:"-20px"}}),a("div",[t._m(0),a("div",{staticClass:"mb20"},[1==t.type?a("el-select",{staticClass:"mr10 w160",attrs:{clearable:"",placeholder:"全部SKU"},on:{change:t.refresh},model:{value:t.listParams.name,callback:function(e){t.$set(t.listParams,"name",e)},expression:"listParams.name"}},t._l(t.skuList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.giftSkuName,value:t.giftSkuId}})})),1):t._e(),a("el-select",{staticClass:"mr10 w160",attrs:{clearable:"",placeholder:"全部操作类型"},on:{change:t.refresh},model:{value:t.listParams.modifyType,callback:function(e){t.$set(t.listParams,"modifyType",e)},expression:"listParams.modifyType"}},t._l(t.stockAdjustType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-select",{staticClass:"w160 mr10",attrs:{multiple:"",placeholder:"全部来源",clearable:""},on:{change:t.changeAppCode},model:{value:t.appCodes,callback:function(e){t.appCodes=e},expression:"appCodes"}},t._l(t.appList,(function(t){return a("el-option",{key:t.appCode,attrs:{label:t.appName,value:t.appCode}})})),1),a("el-input",{staticClass:"mr10 w260",attrs:{clearable:"",placeholder:"请输入活动名称搜索"},on:{change:t.refresh},model:{value:t.listParams.activityName,callback:function(e){t.$set(t.listParams,"activityName",e)},expression:"listParams.activityName"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),a("el-date-picker",{staticClass:"w350 mr10",attrs:{type:"daterange","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.refresh},model:{value:t.dateTime,callback:function(e){t.dateTime=e},expression:"dateTime"}})],1)]),a("el-table",{staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.tableList}},[a("el-table-column",{attrs:{prop:"modifyTime",label:"操作时间","min-width":"120",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return a("span",{domProps:{innerHTML:t._s(t.listTime(e.row.modifyTime))}})}}])}),1==t.type||2==t.type?a("el-table-column",{attrs:{prop:"name",label:"调整对象","min-width":"120"}}):t._e(),a("el-table-column",{attrs:{label:"调整类型","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return a("span",{},[t._v(t._s(t._f("fType")(e.row.modifyType)))])}}])}),a("el-table-column",{attrs:{prop:"modifyStock",label:"调整数量","min-width":"120"}}),a("el-table-column",{attrs:{prop:"afterRemainedStock",label:"可占库存","min-width":"120"}}),a("el-table-column",{attrs:{prop:"creatorName",label:"操作人","min-width":"120"}}),a("el-table-column",{attrs:{prop:"appName",label:"调整应用","min-width":"120"}}),a("el-table-column",{attrs:{prop:"activityName",label:"活动名称","min-width":"120"}}),a("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"140","show-overflow-tooltip":""}})],1),a("div",{staticClass:"clearfix"},[t.tableList.length?a("dm-pagination",{staticClass:"fr mb0",attrs:{background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",{staticClass:"fray01 fw500 mb15"},[t._v("操作记录"),a("span",{staticClass:"fz12 ml15 gray03 fw400"},[t._v("主要对手动调整库存,应用占用库存,应用释放库存的场景下对福利“可占库存”引起变更进行记录")])])}],c=(a("ac6a"),a("456d"),a("c5f6"),a("fab6")),o=a("ed08"),l=a("2934"),r=a("9b93"),n=a("f9e4"),s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"welfare-item"},[a("div",{staticClass:"head"},[a("el-tag",{attrs:{effect:"plain"}},[t._v(t._s(t.fUseStatus(t.info.useStatus)))]),a("label",[t._v("福利ID:")]),a("span",[t._v(t._s(t.welfareId))]),a("label",[t._v("更新时间:")]),a("span",{domProps:{innerHTML:t._s(t.formatDateTimeByType(t.info.updateTime))}}),a("label",[t._v("创建时间:")]),a("span",{domProps:{innerHTML:t._s(t.formatDateTimeByType(t.info.createTime))}}),a("span",{staticClass:"btn",on:{click:function(e){t.dialogVisible=!0}}},[t._v("活动记录"),a("i",{staticClass:"el-icon-arrow-right ml5"})])],1),a("div",{staticClass:"content"},[a("div",{staticClass:"f1"},[a("div",{staticClass:"detail"},[a("p",[t._v(t._s(t.info.name||"--"))]),a("p",{staticClass:"gray03 fz12"},[1==t.type||2==t.type?[t._v("礼品编码:")]:t._e(),t._v(t._s(t.info.remarkName||"--"))],2),a("img",{attrs:{src:t.info.imgUrl,draggable:"false"}})]),a("p",[t._v("成本(元)"),a("span",[t._v("¥"+t._s(t.info.costPrice||0))])]),a("p",[t._v("可占库存"),a("span",[t._v(t._s(t.info.remainedStock||0))])])]),a("div",{staticClass:"f2"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticClass:"mb20",attrs:{span:12}},[t._v("已占用:"),a("span",[t._v(t._s(t.info.occupyStock||0))])]),a("el-col",{staticClass:"mb20",attrs:{span:12}},[t._v("总库存:"),a("span",[t._v(t._s(t.info.totalStock||0))])]),a("el-col",{attrs:{span:12}},[t._v("已履约:"),a("span",[t._v(t._s(t.info.outStock||0))])]),1==t.type||2==t.type?a("el-col",{attrs:{span:12}},[t._v("待履约:"),a("span",[t._v(t._s(t.info.preStock||0))])]):t._e()],1)],1)]),1==t.type&&t.goodsStandardInfo.length>0?a("el-table",{staticClass:"ml20 mr20 mb10 el-table-list-mini-empty",staticStyle:{width:"calc(100% - 40px)"},attrs:{data:t.skuList,"max-height":"200"}},[a("el-table-column",{attrs:{prop:"giftSkuName",label:"SKU信息","min-width":"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("img",{staticClass:"mr10",attrs:{src:e.row.giftSkuImgUrl,width:"40",height:"40"}}),a("span",[t._v(t._s(e.row.giftSkuName||"--"))])])]}}],null,!1,4173144523)}),a("el-table-column",{attrs:{prop:"giftSkuId",label:"SKU编码","min-width":"150"}}),a("el-table-column",{attrs:{prop:"totalStock",label:"总库存","min-width":"150"}}),a("el-table-column",{attrs:{prop:"occupyStock",label:"已占用","min-width":"150"}}),a("el-table-column",{attrs:{prop:"remainedStock",label:"可占库存","min-width":"150"}}),a("el-table-column",{attrs:{prop:"outStock",label:"已履约","min-width":"150"}})],1):t._e(),a("act-dialog",{attrs:{"dialog-visible":t.dialogVisible,"welfare-id":t.$route.query.id},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e}}})],1)},u=[],p=(a("7f7f"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"活动统计",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.close}},[a("div",{staticClass:"mb20"},[a("el-select",{staticClass:"w140 mr10",attrs:{multiple:"",placeholder:"全部来源",clearable:""},on:{change:t.changeAppCode},model:{value:t.appCodes,callback:function(e){t.appCodes=e},expression:"appCodes"}},t._l(t.appList,(function(t){return a("el-option",{key:t.appCode,attrs:{label:t.appName,value:t.appCode}})})),1),a("el-input",{staticClass:"mr10 w300",attrs:{clearable:"",placeholder:"请输入活动名称搜索"},on:{change:t.refresh},model:{value:t.listParams.activityName,callback:function(e){t.$set(t.listParams,"activityName",e)},expression:"listParams.activityName"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{"max-height":"500","tooltip-effect":"dark",data:t.tableList}},[a("el-table-column",{attrs:{prop:"appName",label:"活动应用名称","min-width":"120"}}),a("el-table-column",{attrs:{prop:"activityName",label:"活动名称","min-width":"180"}}),a("el-table-column",{attrs:{prop:"remainedStock",label:"可用库存","min-width":"120"}}),1==t.type||2==t.type?a("el-table-column",{attrs:{prop:"preStock",label:"待履约库存","min-width":"120"}}):t._e(),a("el-table-column",{attrs:{prop:"outStock",label:"历史履约库存","min-width":"120"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("关闭")])],1)],1)}),f=[],y=(a("8e6e"),a("ade3"));function m(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);e&&(d=d.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,d)}return a}function _(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?m(Object(a),!0).forEach((function(e){Object(y["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):m(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var b=l["a"].getStockActivityStatistics,g=l["a"].getAppList,h={mixins:[c["c"]],props:{dialogVisible:{default:!1,type:Boolean},welfareId:{type:String,required:!0},type:{type:[Number,String],required:!0}},data:function(){return{loading:!1,listParams:{appCode:"",activityName:"",currentPage:1,pageSize:20},total:0,tableList:[],appList:[],appCodes:""}},methods:{close:function(){this.$emit("update:dialogVisible",!1),this.tableList=[],this.appCodes="",this.listParams.appCode="",this.listParams.activityName="",this.listParams.currentPage=1},changeAppCode:function(t){this.listParams.appCodes=t.join(","),this.refresh()},getAppList:function(){var t=this;g().then((function(e){t.appList=e.result||[]}))},getTableList:function(){var t=this;this.loading=!0,b(_({welfareId:this.welfareId},this.listParams)).then((function(e){t.loading=!1;var a=e.result.page.result||[];if(a.length){var d=e.result.page.result.reduce((function(t,e){t.remainedStock+=e.remainedStock,t.preStock+=e.preStock,t.outStock+=e.outStock}),{appName:"合计",activityName:"",remainedStock:0,preStock:0,outStock:0});a=a.unshift(d)}t.tableList=a})).catch((function(){t.loading=!1}))}},watch:{dialogVisible:function(t){t&&(this.getTableList(),this.getAppList())}}},S=h,v=a("2877"),C=Object(v["a"])(S,p,f,!1,null,null,null),k=C.exports,T=a("cdc8"),N=a("5761"),I=T["a"].giftGet,w=N["a"].couponStockInfo,V={name:"WelfareItem",components:{actDialog:k},props:{welfareId:{type:String,required:!0},type:{type:[Number,String],required:!0}},data:function(){return{info:{},dialogVisible:!1,skuList:[],goodsStandardInfo:[]}},methods:{formatDateTimeByType:o["e"],getWelfareInfo:function(){var t=this;1!=this.type&&2!=this.type||I({id:this.welfareId}).then((function(e){var a=e.result,d=a.giftImages,i=a.updateTime,c=a.createTime,o=a.giftName,l=a.giftNo,r=a.virCostPrice,n=a.outStock,s=a.preStock,u=a.occupyStock,p=a.remainedStock,f=a.totalStock,y=a.useStatus;t.info={imgUrl:d,updateTime:i,createTime:c,name:o,remarkName:l,costPrice:r,outStock:n,preStock:s,occupyStock:u,remainedStock:p,totalStock:f,useStatus:y},1==t.type&&(t.skuList=e.result.skuList||[],t.goodsStandardInfo=e.result.giftSpecInfo?JSON.parse(e.result.giftSpecInfo):[],t.$emit("updateSkulist",t.skuList))})),3!=this.type&&4!=this.type||w({welfareId:this.welfareId,type:3==this.type?1:2}).then((function(e){var a=e.result,d=a.imgUrl,i=a.updateTime,c=a.createTime,o=a.name,l=a.remarkName,r=a.costPriceRemark,n=a.outStock,s=a.preStock,u=a.occupyStock,p=a.remainedStock,f=a.totalStock,y=a.useStatus;t.info={imgUrl:d,updateTime:i,createTime:c,name:o,remarkName:l,costPrice:r,outStock:n,preStock:s,occupyStock:u,remainedStock:p,totalStock:f,useStatus:y}}))},fUseStatus:function(t){var e={1:"正常",2:"仅隐藏",3:"正常"},a={0:"未生效",1:"已生效",2:"已过期",3:"已禁用"};return(1==this.type||2==this.type?e[t]:a[t])||"--"}},watch:{welfareId:{handler:function(){this.getWelfareInfo()},immediate:!0}}},P=V,O=(a("ab17"),Object(v["a"])(P,s,u,!1,null,null,null)),j=O.exports,L=l["a"].getStockList,x=l["a"].getAppList,D={name:"StockList",components:{welfareItem:j},mixins:[c["c"],c["a"]],props:{welfareId:{type:String,required:!0},type:{type:[Number,String],required:!0}},data:function(){return{loading:!1,dateTime:[,],listParams:{welfareId:this.welfareId,modifyType:"",startDate:"",endDate:"",activityName:"",appCodes:"",currentPage:1,pageSize:20},stockAdjustType:Object.keys(n["a"]).map((function(t){return{label:n["a"][t],value:t}})),total:0,tableList:[],appList:[],appCodes:[],skuList:[]}},mounted:function(){this.welfareId&&(this.getAppList(),this.getTableList())},methods:{listTime:o["g"],formatCardType:function(t){return r["b"][t.cardType].label},changeAppCode:function(t){this.listParams.appCodes=t.join(","),this.refresh()},getAppList:function(){var t=this;x().then((function(e){t.appList=e.result||[]}))},getTableList:function(){var t=this;this.loading||(this.formatterTimeFunc("startDate","endDate","yyyy-MM-dd","dateTime"),this.loading=!0,L(this.listParams).then((function(e){t.loading=!1;var a=e.result;t.tableList=a.result||[],t.total=a.totalCount,0===t.tableList.length&&1!==t.listParams.currentPage&&(t.listParams.currentPage-=1,t.getTableList())})).finally((function(){t.loading=!1})))}},filters:{fType:function(t){return n["a"][t]||"--"}}},F=D,A=Object(v["a"])(F,d,i,!1,null,null,null);e["a"]=A.exports},ab17:function(t,e,a){"use strict";a("0717")},cdc8:function(t,e,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var d=a("ade3"),i=a("71f6"),c=a("f121");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);e&&(d=d.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,d)}return a}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach((function(e){Object(d["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var r={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},n={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"/address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};r=Object(i["a"])(r,c["f"]),n=Object(i["a"])(n,c["f"]),e["a"]=l(l({},r),n);c["c"].api,c["b"],c["c"].api,c["f"]},d1fd:function(t,e,a){},e747:function(t,e,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var d=a("ade3"),i=a("71f6"),c=a("f121");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);e&&(d=d.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,d)}return a}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach((function(e){Object(d["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var r={addPackages:{url:"/coupon-package/save-package",method:"post",useFormData:!0},editPackages:"/coupon-package/edit-package",pageCouponPackage:"/coupon-package/page-package",pagePackageLog:"/coupon-package/page-package-log",getPackageDetail:"/coupon-package/package-detail",deletePackage:"/coupon-package/batch-del-package",updatePackageStock:"/coupon-package/update-package-stock",addPackageItem:"/coupon-package/add-package-item",delPackageItem:"/coupon-package/del-package-item",listCouponByPackageId:"/coupon-package/list-coupon-log",checkCustomSetting:"/setting/get-setting",saveCustomSetting:"/setting/save-setting"};r=Object(i["a"])(r,c["f"]),e["a"]=l({},r)},f9e4:function(t,e,a){"use strict";a.d(e,"b",(function(){return d})),a.d(e,"a",(function(){return i}));a("6c7b"),Array(31).fill().map((function(t,e){return{label:"".concat(e+1,"号"),value:"".concat(e+1)}})),Array(28).fill().map((function(t,e){return{label:"".concat(e+1,"号"),value:"".concat(e+1)}})).concat({label:"月底",value:"0"}),Array(12).fill().map((function(t,e){return{label:"".concat(e+1,"月"),value:"".concat(e+1)}}));var d=[{title:"实物礼品",target:"/gift-manage/real-gift",code:"w-real-gifts"},{title:"虚拟礼品",target:"/gift-manage/virtual-gift",code:"w-virtual-gifts"},{title:"GIC 卡券",target:"/gic-card/list",code:"w-gic-card"},{title:"GIC 卡券包",target:"/card-package/list",code:"w-card-package"}],i={1:"增加",2:"减少"}},fab6:function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return c})),a.d(e,"b",(function(){return o}));var d=a("ed08"),i={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.listParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.listParams.currentPage=t,this.getTableList()}}},c={methods:{formatterTimeFunc:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[i]?(this.listParams[t]=Object(d["e"])(this[i][0],a),this.listParams[e]=Object(d["e"])(this[i][1],a)):this.listParams[t]=this.listParams[e]=""}}},o={methods:{mainHeight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-t}}}}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0185feca"],{1087:function(t,e,s){t.exports=s.p+"img/eg2.b6ed585a.png"},"1c4c":function(t,e,s){"use strict";var a=s("9b43"),o=s("5ca1"),i=s("4bf8"),r=s("1fa8"),l=s("33a4"),n=s("9def"),c=s("f1ae"),d=s("27ee");o(o.S+o.F*!s("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,s,o,u,p=i(t),f="function"==typeof this?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h,k=0,S=d(p);if(m&&(h=a(h,g>2?arguments[2]:void 0,2)),void 0==S||f==Array&&l(S))for(e=n(p.length),s=new f(e);e>k;k++)c(s,k,m?h(p[k],k):p[k]);else for(u=S.call(p),s=new f;!(o=u.next()).done;k++)c(s,k,m?r(u,h,[o.value,k],!0):o.value);return s.length=k,s}})},2671:function(t,e,s){"use strict";s("872d")},"364c":function(t,e,s){"use strict";s("4e5b")},"37c8":function(t,e,s){e.f=s("2b4c")},"3a72":function(t,e,s){var a=s("7726"),o=s("8378"),i=s("2d00"),r=s("37c8"),l=s("86cc").f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:a.Symbol||{});"_"==t.charAt(0)||t in e||l(e,t,{value:r.f(t)})}},"4e5b":function(t,e,s){},"7bbc":function(t,e,s){var a=s("6821"),o=s("9093").f,i={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(t){try{return o(t)}catch(e){return r.slice()}};t.exports.f=function(t){return r&&"[object Window]"==i.call(t)?l(t):o(a(t))}},"872d":function(t,e,s){},"8a81":function(t,e,s){"use strict";var a=s("7726"),o=s("69a8"),i=s("9e1e"),r=s("5ca1"),l=s("2aba"),n=s("67ab").KEY,c=s("79e5"),d=s("5537"),u=s("7f20"),p=s("ca5a"),f=s("2b4c"),g=s("37c8"),h=s("3a72"),m=s("d4c0"),k=s("1169"),S=s("cb7c"),b=s("d3f4"),v=s("4bf8"),y=s("6821"),C=s("6a99"),O=s("4630"),I=s("2aeb"),j=s("7bbc"),w=s("11e9"),F=s("2621"),L=s("86cc"),x=s("0d58"),P=w.f,N=L.f,_=j.f,D=a.Symbol,T=a.JSON,V=T&&T.stringify,$="prototype",B=f("_hidden"),A=f("toPrimitive"),U={}.propertyIsEnumerable,E=d("symbol-registry"),z=d("symbols"),G=d("op-symbols"),M=Object[$],J="function"==typeof D&&!!F.f,q=a.QObject,W=!q||!q[$]||!q[$].findChild,Z=i&&c((function(){return 7!=I(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a}))?function(t,e,s){var a=P(M,e);a&&delete M[e],N(t,e,s),a&&t!==M&&N(M,e,a)}:N,R=function(t){var e=z[t]=I(D[$]);return e._k=t,e},H=J&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},K=function(t,e,s){return t===M&&K(G,e,s),S(t),e=C(e,!0),S(s),o(z,e)?(s.enumerable?(o(t,B)&&t[B][e]&&(t[B][e]=!1),s=I(s,{enumerable:O(0,!1)})):(o(t,B)||N(t,B,O(1,{})),t[B][e]=!0),Z(t,e,s)):N(t,e,s)},Q=function(t,e){S(t);var s,a=m(e=y(e)),o=0,i=a.length;while(i>o)K(t,s=a[o++],e[s]);return t},Y=function(t,e){return void 0===e?I(t):Q(I(t),e)},X=function(t){var e=U.call(this,t=C(t,!0));return!(this===M&&o(z,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,B)&&this[B][t])||e)},tt=function(t,e){if(t=y(t),e=C(e,!0),t!==M||!o(z,e)||o(G,e)){var s=P(t,e);return!s||!o(z,e)||o(t,B)&&t[B][e]||(s.enumerable=!0),s}},et=function(t){var e,s=_(y(t)),a=[],i=0;while(s.length>i)o(z,e=s[i++])||e==B||e==n||a.push(e);return a},st=function(t){var e,s=t===M,a=_(s?G:y(t)),i=[],r=0;while(a.length>r)!o(z,e=a[r++])||s&&!o(M,e)||i.push(z[e]);return i};J||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(s){this===M&&e.call(G,s),o(this,B)&&o(this[B],t)&&(this[B][t]=!1),Z(this,t,O(1,s))};return i&&W&&Z(M,t,{configurable:!0,set:e}),R(t)},l(D[$],"toString",(function(){return this._k})),w.f=tt,L.f=K,s("9093").f=j.f=et,s("52a7").f=X,F.f=st,i&&!s("2d00")&&l(M,"propertyIsEnumerable",X,!0),g.f=function(t){return R(f(t))}),r(r.G+r.W+r.F*!J,{Symbol:D});for(var at="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ot=0;at.length>ot;)f(at[ot++]);for(var it=x(f.store),rt=0;it.length>rt;)h(it[rt++]);r(r.S+r.F*!J,"Symbol",{for:function(t){return o(E,t+="")?E[t]:E[t]=D(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in E)if(E[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),r(r.S+r.F*!J,"Object",{create:Y,defineProperty:K,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:st});var lt=c((function(){F.f(1)}));r(r.S+r.F*lt,"Object",{getOwnPropertySymbols:function(t){return F.f(v(t))}}),T&&r(r.S+r.F*(!J||c((function(){var t=D();return"[null]"!=V([t])||"{}"!=V({a:t})||"{}"!=V(Object(t))}))),"JSON",{stringify:function(t){var e,s,a=[t],o=1;while(arguments.length>o)a.push(arguments[o++]);if(s=e=a[1],(b(e)||void 0!==t)&&!H(t))return k(e)||(e=function(t,e){if("function"==typeof s&&(e=s.call(this,t,e)),!H(e))return e}),a[1]=e,V.apply(T,a)}}),D[$][A]||s("32e9")(D[$],A,D[$].valueOf),u(D,"Symbol"),u(Math,"Math",!0),u(a.JSON,"JSON",!0)},"91ef":function(t,e,s){},ac4d:function(t,e,s){s("3a72")("asyncIterator")},cbbc:function(t,e,s){"use strict";s("ea8a")},cdc8:function(t,e,s){"use strict";s("8e6e"),s("ac6a"),s("456d");var a=s("ade3"),o=s("71f6"),i=s("f121");function r(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function l(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?r(Object(s),!0).forEach((function(e){Object(a["a"])(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var n={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"/address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};n=Object(o["a"])(n,i["f"]),c=Object(o["a"])(c,i["f"]),e["a"]=l(l({},n),c);i["c"].api,i["b"],i["c"].api,i["f"]},d4c0:function(t,e,s){var a=s("0d58"),o=s("2621"),i=s("52a7");t.exports=function(t){var e=a(t),s=o.f;if(s){var r,l=s(t),n=i.f,c=0;while(l.length>c)n.call(t,r=l[c++])&&e.push(r)}return e}},ea8a:function(t,e,s){},fdf5:function(t,e,s){"use strict";s("91ef")},ffec:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"from-content"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"goodsForm",staticClass:"demo-ruleForm",attrs:{model:t.goodsForm,rules:t.goodsRules,"label-width":"150px","label-position":"right"}},[a("div",{staticClass:"form-section"},[a("h3",[t._v("基础信息")]),a("el-form-item",{staticClass:"w-630",attrs:{label:"福利渠道"}},[t._v(t._s(t.enterpriseName))]),a("el-form-item",{staticClass:"w-630",attrs:{label:"礼品名称",prop:"giftName"}},[a("dm-input",{attrs:{"byte-type":1,type:"text","show-word-limit":"",maxlength:30,placeholder:"请输入礼品名称"},model:{value:t.goodsForm.giftName,callback:function(e){t.$set(t.goodsForm,"giftName",e)},expression:"goodsForm.giftName"}})],1),a("el-form-item",{attrs:{label:"礼品主图",required:""}},[a("div",{staticClass:"member-upload-image"},[a("div",{staticClass:"member-upload-image"},[a("dm-upload-picture",{attrs:{"action-url":t.actionUrl,"image-list":t.image,"max-image-length":t.maxlength,accept:"image/jpeg, image/jpg, image/png, image/gif","before-upload":t.beforeUpload},on:{uploadOnSuccess:t.uploadOnSuccess,deleteImage:t.deleteImage}})],1),a("span",{staticClass:"tip-warm",staticStyle:{display:"block"}},[t._v("图片建议尺寸800*800px,格式jpg/png/gif,大小1MB以内,你可以拖拽图片调整顺序,最多上传 5 张")])])]),a("el-form-item",{attrs:{label:"礼品详情"}},[a("dm-editor",{attrs:{width:t.editorWidth,value:t.goodsForm.giftDescrption},on:{change:t.handleChange}})],1)],1),a("div",{staticClass:"form-section"},[a("h3",[t._v("规格/库存信息")]),a("el-form-item",{attrs:{label:"礼品规格"}},[a("div",{staticClass:"standard-info"},[a("div",{staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"add-sku-content"},[t.goodsStandardInfo.length?a("div",{staticClass:"add-sku-list"},t._l(t.goodsStandardInfo,(function(e,s){return a("div",{key:s,staticClass:"add-sku-item"},[a("div",{staticClass:"sku-name"},[a("span",{staticClass:"sku-title"},[t._v("规格名:")]),a("span",{staticStyle:{display:"none"}},[t._v(t._s(t.refash))]),a("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start"},on:{command:function(s){return t.getSelected(s,e)}}},[a("el-input",{staticStyle:{width:"100px"},attrs:{size:"smalll",placeholder:"请选择"},on:{input:function(s){return t.spliceStandard(s,e)},focus:function(s){return t.getStdList(e)},blur:function(s){return t.addStandard(e)}},model:{value:e.specName,callback:function(s){t.$set(e,"specName",s)},expression:"item.specName"}}),a("el-dropdown-menu",{staticStyle:{height:"300px","overflow-y":"auto","min-width":"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.standardList,(function(e){return a("el-dropdown-item",{key:e.specId,staticStyle:{width:"200px"},attrs:{command:e}},[t._v(t._s(e.specName))])})),1)],1),s?t._e():a("el-checkbox",{staticClass:"ml20",on:{change:t.stdImgUpload},model:{value:t.isStdImg,callback:function(e){t.isStdImg=e},expression:"isStdImg"}},[t._v("添加规格图片")]),a("span",{staticClass:"delete-btn",on:{click:function(e){return t.deleteSku(s)}}},[a("i",{staticClass:"el-icon-error inline-block",staticStyle:{width:"14px",height:"14px"}})])],1),e.specName?a("div",{staticClass:"value-content"},[a("span",{staticClass:"sku-value-title"},[t._v("规格值:")]),a("span",{staticStyle:{display:"none"}},[t._v(t._s(t.refash))]),a("div",{staticClass:"value-list"},[t._l(e.valueList,(function(o,i){return a("div",{key:i,staticClass:"value-item"},[a("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start"},on:{command:function(s){return t.getSelectedValue(s,e,i)}}},[a("el-input",{staticStyle:{width:"160px"},attrs:{size:"smalll",placeholder:"请选择"},on:{input:function(s){return t.spliceStandardValue(s,e)},focus:function(s){return t.getStdValueList(t.value,e)},blur:function(s){return t.addStandardValue(e,i)}},model:{value:o.specStandardValueName,callback:function(e){t.$set(o,"specStandardValueName",e)},expression:"v.specStandardValueName"}}),a("el-dropdown-menu",{staticStyle:{height:"300px","overflow-y":"auto","min-width":"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.standardValueList,(function(e){return a("el-dropdown-item",{key:e.specValueId,staticStyle:{width:"200px"},attrs:{command:e}},[t._v(t._s(e.specValue))])})),1)],1),!s&&t.isStdImg?a("div",{staticClass:"table-img"},[a("div",{staticClass:"triangle"}),a("el-upload",{staticClass:"avatar-uploader",attrs:{action:t.uploadAction,"show-file-list":!1,"with-credentials":"","on-success":function(e,s,a){return t.tableUploadSuccess(e,s,a,o)},"before-upload":t.tableBeforeUpload}},[o.propImg?a("img",{staticClass:"avatar",attrs:{src:o.propImg}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon",staticStyle:{"font-size":"28px"}})]),o.propImg?a("p",{staticClass:"img-modal"},[a("i",{staticClass:"el-icon-delete",on:{click:function(e){return t.deleteImg(o)}}})]):t._e(),a("p",{staticStyle:{"font-size":"12px",color:"#FF5152",position:"absolute",bottom:"-32px"}},[t._v("请添加规格图片")])],1):t._e(),a("span",{staticClass:"el-icon-error",on:{click:function(a){return t.deleteValue(e,o,s,i)}}})],1)})),a("el-button",{attrs:{type:"text"},on:{click:function(s){return t.addValue(e)}}},[t._v("添加规格值")]),!s&&t.isStdImg?a("p",{staticStyle:{"font-size":"12px",color:"rgb(144, 147, 153)","margin-top":"129px"}},[t._v("仅支持为第一组规格设置规格图片,买家选择不同规格会看到对应规格图片,建议尺寸 800*800px。")]):t._e()],2)]):t._e()])})),0):t._e(),a("div",{staticClass:"add-sku"},[a("div",{staticClass:"add-sku-button"},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.goodsStandardInfo.length<3,expression:"goodsStandardInfo.length < 3"}],attrs:{type:"text"},on:{click:t.addSku}},[t._v("添加规格项目")])],1)])]),a("p",{staticClass:"tip-warm w-900"},[t._v("如有颜色、尺码等多种规格参数,请添加商品规格")])]),t.goodsSkuList.length>0&&t.goodsStandardInfo.length>0?a("div",{staticClass:"sku-table-content"},[a("el-table",{staticClass:"sku-table",attrs:{data:t.goodsSkuList,"span-method":t.objectSpanMethod,"header-cell-class-name":t.starAdd}},[t._l(t.skuCols,(function(e,s){return a("el-table-column",{key:e,attrs:{label:e,"class-name":s==t.skuCols.length-1?"pad-l-20":"right-border"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.cols[s]))]}}],null,!0)},[a("span",{staticStyle:{display:"none"}},[t._v(t._s(t.refash))])])})),a("el-table-column",{attrs:{label:"成本",width:"145px;"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"el-form-item",class:t.skuSellObj[e.row.mapId].giftSkuCostPriceStatus?"":"is-error"},[t.skuSellObj[e.row.mapId]?a("dm-input-amount",{staticClass:"input-number mr10",attrs:{width:"125px",max:999999.99,min:0,precision:2,"controls-position":"right"},on:{blur:function(s){return t.handleValidIntegral(t.skuSellObj[e.row.mapId].giftSkuCostPrice,e.row.mapId,2)}},model:{value:t.skuSellObj[e.row.mapId].giftSkuCostPrice,callback:function(s){t.$set(t.skuSellObj[e.row.mapId],"giftSkuCostPrice","string"===typeof s?s.trim():s)},expression:"skuSellObj[scope.row.mapId].giftSkuCostPrice"}}):t._e()],1)]}},{key:"header",fn:function(){return[a("span",[t._v("成本")]),a("el-popover",{ref:"popover3",attrs:{placement:"top",trigger:"click"}},[a("div",[a("dm-input-amount",{staticStyle:{"margin-left":"-2px"},attrs:{width:"140","controls-position":"right",precision:"2",min:0,max:999999.99},model:{value:t.handleData.giftSkuCostPrice,callback:function(e){t.$set(t.handleData,"giftSkuCostPrice","string"===typeof e?e.trim():e)},expression:"handleData.giftSkuCostPrice"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover3.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleCostPrice}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0}],null,!1,1062755650)}),a("el-table-column",{attrs:{label:"可占库存",width:"190px;"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"el-form-item",class:t.skuSellObj[e.row.mapId].stockStatus?"":"is-error"},[t.skuSellObj[e.row.mapId]?a("dm-input-number",{staticClass:"input-number mr10",attrs:{width:"125px",max:999999,min:0,precision:0,"controls-position":"right"},on:{input:t.handleSpuStock,blur:function(s){return t.handleValidStock(t.skuSellObj[e.row.mapId].stock,e.row.mapId,2)}},model:{value:t.skuSellObj[e.row.mapId].stock,callback:function(s){t.$set(t.skuSellObj[e.row.mapId],"stock","string"===typeof s?s.trim():s)},expression:"skuSellObj[scope.row.mapId].stock"}}):t._e()],1)]}},{key:"header",fn:function(){return[a("span",[t._v("可占库存")]),a("el-popover",{ref:"popover2",attrs:{placement:"top",trigger:"click"}},[a("div",[a("dm-input-number",{staticStyle:{"margin-left":"-2px"},attrs:{width:"140","controls-position":"right",precision:"0",min:0,max:999999},model:{value:t.handleData.stock,callback:function(e){t.$set(t.handleData,"stock","string"===typeof e?e.trim():e)},expression:"handleData.stock"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover2.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleStock}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0}],null,!1,279664430)}),a("el-table-column",{attrs:{label:"sku编码"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.skuSellObj[e.row.mapId]?a("el-input",{attrs:{type:"text",placeholder:"请输入"},on:{blur:function(s){return t.handleValiedSkuCode(t.skuSellObj[e.row.mapId].giftSkuCode,e.row.mapId,2)}},model:{value:t.skuSellObj[e.row.mapId].giftSkuCode,callback:function(s){t.$set(t.skuSellObj[e.row.mapId],"giftSkuCode","string"===typeof s?s.trim():s)},expression:"skuSellObj[scope.row.mapId].giftSkuCode"}}):t._e()]}},{key:"header",fn:function(){return[a("span",[t._v("sku编码")]),a("el-popover",{ref:"popover1",attrs:{placement:"top",trigger:"click"}},[a("div",[a("el-input",{staticClass:"hidden-limit",staticStyle:{"margin-left":"-2px"},attrs:{width:"140"},on:{blur:function(e){return t.handleValiedSkuCode(t.handleData.giftSkuCode,"",1)}},model:{value:t.handleData.giftSkuCode,callback:function(e){t.$set(t.handleData,"giftSkuCode","string"===typeof e?e.trim():e)},expression:"handleData.giftSkuCode"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover1.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleSkuCode}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0}],null,!1,2978947314)}),a("el-table-column",{staticStyle:{width:"120px"},attrs:{label:"礼品条形码"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.skuSellObj[e.row.mapId]?a("el-input",{attrs:{type:"text",placeholder:"请输入"},on:{blur:function(s){return t.handleValiedskuBarCode(t.skuSellObj[e.row.mapId].skuBarCode,e.row.mapId,2)}},model:{value:t.skuSellObj[e.row.mapId].skuBarCode,callback:function(s){t.$set(t.skuSellObj[e.row.mapId],"skuBarCode","string"===typeof s?s.trim():s)},expression:"skuSellObj[scope.row.mapId].skuBarCode"}}):t._e()]}},{key:"header",fn:function(){return[a("span",[t._v("礼品条形码")]),a("el-popover",{ref:"popover",attrs:{placement:"top",trigger:"click"}},[a("div",[a("el-input",{staticClass:"hidden-limit",staticStyle:{"margin-left":"-2px"},attrs:{width:"140"},on:{blur:function(e){return t.handleValiedskuBarCode(t.handleData.skuBarCode,"",1)}},model:{value:t.handleData.skuBarCode,callback:function(e){t.$set(t.handleData,"skuBarCode","string"===typeof e?e.trim():e)},expression:"handleData.skuBarCode"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleBarCode}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0}],null,!1,1879306251)})],2)],1):t._e()])]),a("el-form-item",{staticClass:"w-630",attrs:{label:"成本",prop:"costPrice"}},[a("dm-input-amount",{attrs:{width:"180",min:0,max:999999.99,precision:2,disabled:t.goodsStandardInfo.length>0},model:{value:t.goodsForm.costPrice,callback:function(e){t.$set(t.goodsForm,"costPrice",e)},expression:"goodsForm.costPrice"}})],1),a("el-form-item",{staticClass:"w-630",attrs:{label:"可占用库存",prop:"stock"}},[a("dm-input-number",{attrs:{width:"180",min:0,max:999999,precision:0,disabled:t.goodsStandardInfo.length>0},model:{value:t.goodsForm.stock,callback:function(e){t.$set(t.goodsForm,"stock",e)},expression:"goodsForm.stock"}})],1),a("el-form-item",{attrs:{prop:"marketPrice",label:"市场价:"}},[a("dm-input-amount",{attrs:{width:"180",min:0,max:999999.99,precision:2},model:{value:t.goodsForm.marketPrice,callback:function(e){t.$set(t.goodsForm,"marketPrice",e)},expression:"goodsForm.marketPrice"}}),a("div",[a("span",{staticClass:"tip-warm"},[t._v("市场价在礼品详情会以划线形式显示。")]),a("el-popover",{attrs:{placement:"top-start",width:"395",trigger:"hover"}},[a("img",{staticStyle:{width:"360px"},attrs:{src:s("1087"),alt:""}}),a("el-button",{staticStyle:{"margin-left":"15px"},attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看示例")])],1)],1)],1),a("el-form-item",{staticClass:"w-630",attrs:{label:"礼品编码",prop:"giftNo",rules:[{validator:t.validateGoodsCode,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入"},model:{value:t.goodsForm.giftNo,callback:function(e){t.$set(t.goodsForm,"giftNo",e)},expression:"goodsForm.giftNo"}})],1),a("el-form-item",{staticClass:"w-630",attrs:{label:"礼品条形码",prop:"giftBarNo",rules:[{validator:t.validateGoodsBarCode,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入"},model:{value:t.goodsForm.giftBarNo,callback:function(e){t.$set(t.goodsForm,"giftBarNo",e)},expression:"goodsForm.giftBarNo"}})],1)],1),a("div",{staticClass:"form-section"},[a("h3",[t._v("福利设置")]),a("el-form-item",{attrs:{label:"配送方式",prop:"deliveryList"}},[[a("el-checkbox-group",{on:{change:t.changeDelivery},model:{value:t.goodsForm.deliveryList,callback:function(e){t.$set(t.goodsForm,"deliveryList",e)},expression:"goodsForm.deliveryList"}},[a("el-checkbox",{attrs:{label:"1"}},[t._v("快递发货")]),a("el-checkbox",{attrs:{label:"2"}},[t._v("门店自提")])],1)]],2),2==t.goodsForm.deliveryType||2==t.goodsForm.deliveryList.length?a("el-form-item",{attrs:{label:"设置自提点"}},[[a("select-pickup-store",{attrs:{"gift-id":t.giftId,"is-edit":t.isEdit,data:t.diliveryData},on:{change:t.changeStoreSelect}})]],2):t._e(),a("el-form-item",{attrs:{label:"库存消耗方式",prop:"checkList"}},[[a("el-checkbox-group",{attrs:{disabled:t.isEdit},on:{change:t.changeStockUse},model:{value:t.goodsForm.checkList,callback:function(e){t.$set(t.goodsForm,"checkList",e)},expression:"goodsForm.checkList"}},[a("el-checkbox",{attrs:{label:"0"}},[a("el-tooltip",{staticClass:"tips-content",attrs:{effect:"dark","open-delay":"200","popper-class":"store-tips",placement:"top-start"}},[a("div",{staticStyle:{width:"245px"},attrs:{slot:"content"},slot:"content"},[t._v("固定库存:通过占用的方式获得固定可用库存,不会被其他应用/活动所消耗。")]),a("span",{staticClass:"inline-block ml30 dash-style"},[t._v("固定库存")])])],1),a("el-checkbox",{staticStyle:{"margin-left":"50px"},attrs:{label:"1"}},[a("el-tooltip",{staticClass:"tips-content",attrs:{effect:"dark","open-delay":"200","popper-class":"store-tips",placement:"top-start"}},[a("div",{staticStyle:{width:"245px"},attrs:{slot:"content"},slot:"content"},[t._v("实时库存:不占用库存,使用福利中心“可占库存”,与其他应用使用同个库存。")]),a("span",{staticClass:"inline-block ml30 dash-style"},[t._v("实时库存")])])],1)],1)]],2)],1),a("div",{staticClass:"form-section"},[a("h3",[t._v("售后服务")]),a("el-form-item",{attrs:{prop:"refundFlag",label:"支持申请退货"}},[[a("div",[a("el-radio",{attrs:{label:1},model:{value:t.goodsForm.refundFlag,callback:function(e){t.$set(t.goodsForm,"refundFlag",e)},expression:"goodsForm.refundFlag"}},[t._v("是")]),a("el-radio",{attrs:{label:0},model:{value:t.goodsForm.refundFlag,callback:function(e){t.$set(t.goodsForm,"refundFlag",e)},expression:"goodsForm.refundFlag"}},[t._v("否")])],1),a("span",{staticClass:"tip-warm",staticStyle:{display:"block"}},[t._v("若商品不支持退货,则该礼品出库后不支持生成退货单")])]],2)],1),a("div",{staticClass:"form-section mb56"},[a("h3",[t._v("权限设置")]),a("el-form-item",{attrs:{label:"操作人权限",required:""}},[a("dm-acc-group-select",{attrs:{etype:t.goodsForm.operAuthType,"group-ids":t.goodsForm.operAuthPre},on:{"update:etype":function(e){return t.$set(t.goodsForm,"operAuthType",e)},"update:groupIds":function(e){return t.$set(t.goodsForm,"operAuthPre",e)},"update:group-ids":function(e){return t.$set(t.goodsForm,"operAuthPre",e)},change:t.updateGroupList}})],1)],1),a("div",{staticClass:"fixed-btn"},[t.isEdit?a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("goodsForm")}}},[t._v("保存")]):a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("goodsForm")}}},[t._v("确认新建")])],1)])],1)])},o=[],i=(s("ac4d"),s("8a81"),s("5df3"),s("1c4c"),s("7f7f"),s("6b54"),s("456d"),s("7514"),s("c5f6"),s("ac6a"),s("28a5"),s("b775")),r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-select",{staticStyle:{width:"160px"},attrs:{value:isNaN(Number(t.data.shopSelectType))?"":Number(t.data.shopSelectType)},on:{change:t.onTypeChange}},t._l(t.pickupType,(function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),1==t.data.shopSelectType?s("el-popover",{attrs:{placement:"bottom-start",trigger:"click"},model:{value:t.isFocus,callback:function(e){t.isFocus=e},expression:"isFocus"}},[s("el-input",{class:["transfer-trigger",{"is-focus":t.isFocus}],attrs:{slot:"reference",placeholder:"请选择自提点",value:t.data.shopCodeList.length>0?"已选择 "+t.data.shopCodeList.length+" 家":""},slot:"reference"},[s("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})]),s("el-transfer",{staticClass:"transfer",attrs:{filterable:"","filter-placeholder":"请输入门店名称/code",value:t.data.shopCodeList,titles:["所有门店","已选门店"],"filter-method":t.onFilterStore,props:{key:"storeCode",label:"name"},data:t.pickupList},on:{change:t.onTransferChange},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.option;return s("div",{staticClass:"transfer-item"},[a.nameIsOverflow?s("el-tooltip",{attrs:{"popper-class":"transfer-tip",content:a.name,placement:"top-start"}},[s("p",{staticClass:"store-name"},[t._v(t._s(a.name))])]):s("p",{staticClass:"store-name"},[t._v(t._s(a.name||"--"))]),s("p",{staticClass:"store-code"},[t._v(t._s(a.storeCode||"--"))])],1)}}],null,!1,4285914963)})],1):t._e(),2==t.data.shopSelectType?s("div",{staticClass:"pickup-upload"},[s("dm-upload-file",{attrs:{accept:".xls,.xlsx","with-credentials":"",action:t.api.giftShopListUpload,headers:{isControl:!0},data:{giftId:t.giftId},"show-file-list":!1,"before-upload":t.onBeforeUpload,"on-success":t.onUploadSucc},scopedSlots:t._u([{key:"file-item",fn:function(e){var a=e.fileData;return s("div",{},[t._v(t._s(a.name))])}}],null,!1,3425605837)},[s("el-button",{staticClass:"upload-trigger"},[s("i",{staticClass:"iconfont-components4 icon-cp-shangc upload-icon"}),t._v(" 上传")]),s("div",{staticClass:"upload-tip",attrs:{slot:"tip"},slot:"tip"},[s("el-button",{staticStyle:{"margin-right":"30px"},attrs:{type:"text"},on:{click:t.onDownloadTemplate}},[t._v("下载文件模板")]),s("el-popover",{attrs:{trigger:"click",placement:"right","popper-class":"upload-popper"}},[s("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看导入规则")]),s("div",{staticClass:"upload-tip-text"},[s("p",[t._v("1. 自提点code请至自提设置中导出;"),s("el-button",{attrs:{type:"text"},on:{click:t.toSetting}},[t._v("前去设置")])],1),s("p",[t._v("2. 重新导入后将会覆盖原有全部门店;")]),s("p",[t._v("3. 上传完整仅支持.xlsx .xls文件的导入,填充数据不超过“5000”条。")])])],1)],1)],1),t.isEdit&&0==t.uploadFile.status?s("div",{staticClass:"pickup-list"},[s("p",{staticClass:"pickup-list-total"},[t._v("\n 共上传"),s("span",{staticClass:"pickup-list-number"},[t._v(t._s(t.data.shopNum||0))]),t._v("个自提点\n "),s("el-button",{staticClass:"download-pickup",attrs:{type:"text"},on:{click:t.downloadPickup}},[s("i",{staticClass:"iconfont-welfare4 icon-xiazai download-icon"})])],1)]):t._e(),1==t.uploadFile.status?s("div",{staticClass:"pickup-list"},[s("p",{staticClass:"pickup-list-name"},[s("i",{staticClass:"iconfont-welfare4 icon-wenjian1 file-icon"}),t._v("\n "+t._s(t.uploadFile.name)+"\n "),s("el-button",{staticClass:"download-pickup",attrs:{type:"text"},on:{click:t.downloadPickup}},[s("i",{staticClass:"iconfont-welfare4 icon-xiazai download-icon"})])],1),s("p",{staticClass:"pickup-list-total"},[t._v("\n 成功"),s("span",{staticClass:"pickup-list-success"},[t._v(t._s(t.uploadFile.successNum||0))]),t._v("个,失败"),s("span",{staticClass:"pickup-list-error"},[t._v(t._s(t.uploadFile.errorNum||0))]),t._v("个。\n "),t.uploadFile.errorNum?s("el-button",{attrs:{type:"text"},on:{click:function(e){t.showErrorList=!0}}},[t._v("查看失败原因")]):t._e()],1)]):t._e()],1):t._e(),s("el-dialog",{staticClass:"error-list",attrs:{title:"查看失败原因",visible:t.showErrorList,width:"500"},on:{"update:visible":function(e){t.showErrorList=e}}},t._l(t.uploadFile.errorList,(function(e,a){return s("div",{key:a,staticClass:"error-item"},[t._v(t._s(e))])})),0)],1)},l=[],n=s("f121"),c=s("cdc8"),d=c["a"].getPickupList,u={name:"SelectPickupStore",props:{isEdit:{type:Boolean,default:!1},giftId:String,data:{type:Object,default:function(){return{shopSelectType:"",shopCodeList:[],shopNum:""}}}},data:function(){return{api:{giftShopListUpload:"".concat(n["f"],"/gift/gift-shop-list-upload"),giftShopListDownload:"".concat(n["f"],"/gift/gift-shop-list-download"),downloadGiftTemplate:"/static/自提点模板.xlsx"},pickupType:[{label:"所有门店",value:0},{label:"部分门店",value:1},{label:"批量导入",value:2}],isFocus:!1,pickupList:[],uploadFile:{status:0,name:"text",successNum:0,errorNum:0,errorList:[]},showErrorList:!1}},created:function(){this.init()},mounted:function(){document.addEventListener("click",this.onClosePopover,!0),document.addEventListener("visibilitychange",this.init)},beforeDestroy:function(){document.removeEventListener("click",this.onClosePopover,!0),document.removeEventListener("visibilitychange",this.init)},methods:{init:function(){var t=this;if("visible"==document.visibilityState){this.pickupList=[];var e=function e(s){d({currentPage:s,pageSize:20}).then((function(a){var o=a.result||{},i=o.result;Array.isArray(i)&&i.length>0&&(t.pickupList=t.pickupList.concat(i.map((function(e){return e.nameIsOverflow=t.getOffsetWidth(e.name)>129,e}))),e(s+1))}))};e(1)}},getOffsetWidth:function(t){var e=document.createElement("span");e.style.position="fixed",e.style.top="-100%",e.style.left="-100%",e.style.zIndex=-1,e.style.opacity=0,e.innerHTML=t,document.body.appendChild(e);var s=e.offsetWidth;return document.body.removeChild(e),s},onTypeChange:function(t){this.isFocus=!1,this.$emit("change",Object.assign({},this.data,{shopSelectType:t,shopCodeList:[],shopImportUuid:""}))},onTransferChange:function(t){this.$emit("change",Object.assign({},this.data,{shopCodeList:t}))},onFilterStore:function(t,e){return"string"==typeof e.name&&e.name.indexOf(t)>=0||e.storeCode.toString().indexOf(t)>=0},onClosePopover:function(t){var e=t.target.parentNode;e&&e.parentNode.className.indexOf("el-select")>=0&&(this.isFocus=!1)},toSetting:function(){window.open("".concat(n["e"],"/welfare/setting/pickup-list"))},onDownloadTemplate:function(){var t="/welfare";window.location.href="".concat(t).concat(this.api.downloadGiftTemplate)},onBeforeUpload:function(t){this.uploadFile.name=t.name,this.uploadFile.status=2},onUploadSucc:function(t){var e=t.result,s=e.successNum,a=e.errorNum,o=e.errorList;while(o.length<5)o.push("第一行:code 填入值格式不合法");Object.assign(this.uploadFile,{status:1,successNum:s,errorNum:a,errorList:o})},downloadPickup:function(){window.location.href="".concat(n["e"]).concat(this.api.giftShopListDownload,"?giftId=").concat(this.giftId)}}},p=u,f=(s("cbbc"),s("364c"),s("2877")),g=Object(f["a"])(p,r,l,!1,null,"291fc1e2",null),h=g.exports,m=s("ed08"),k=s("2934");function S(t,e){var s;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(s=b(t))||e&&t&&"number"===typeof t.length){s&&(t=s);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}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 i,r=!0,l=!1;return{s:function(){s=t[Symbol.iterator]()},n:function(){var t=s.next();return r=t.done,t},e:function(t){l=!0,i=t},f:function(){try{r||null==s.return||s.return()}finally{if(l)throw i}}}}function b(t,e){if(t){if("string"===typeof t)return v(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=new Array(e);s<e;s++)a[s]=t[s];return a}var y=c["a"].giftStandardList,C=c["a"].giftStandardNew,O=c["a"].giftStandardValueList,I=c["a"].giftStandardValueNew,j=c["a"].giftGet,w=c["a"].giftUpdate,F=c["a"].giftSave,L=c["a"].getGiftId,x=c["a"].getGiftShopList,P={components:{selectPickupStore:h},data:function(){var t=function(t,e,s){if(e){if(e.split("").length>32)return s(new Error("礼品编码最多32位"));var a=/^[A-Za-z0-9\-\—]{1,32}$/;if(!a.test(e))return s(new Error("礼品编码只支持数字或字母或-或—"));s()}else s()},e=function(t,e,s){if(e){if(e.split("").length>32)return s(new Error("礼品条形码最多32位"));var a=/^[a-zA-Z0-9]{1,32}$/;if(!a.test(e))return s(new Error("礼品条形码只能是数字或字母"));s()}else s()};return{uploadUrl:k["a"],bread:[{breadName:"福利中心"},{breadName:"礼品管理"},{breadPath:"/gift-manage/real-gift",breadName:"实物礼品"},{breadName:"新建礼品"}],banthStockType:0,goodsForm:{enterpriseName:"",giftName:"",marketPrice:"",spuList:[{giftNo:"",costPrice:void 0,stock:void 0,giftBarNo:""}],giftImages:"",giftDescrption:"",limitTimeBegin:"",checkList:[],refundFlag:0,operAuthType:"",operAuth:"",operAuthPre:[],shopCodeList:[],deliveryType:[],stockUseType:"",deliveryList:[],costPrice:"",stock:void 0,giftNo:"",giftBarNo:""},pickerOptions:{disabledDate:function(t){return t.getTime()<(new Date).getTime()}},goodsRules:{giftName:[{required:!0,message:"请输入礼品名称",trigger:"blur"}],costPrice:[{required:!0,message:"请输入成本",trigger:"blur"}],stock:[{required:!0,message:"请输入可占用库存",trigger:"blur"}],refundFlag:[{required:!0,message:"请选择是否支持退款",trigger:"change"}],deliveryList:[{required:!0,message:"请选择配送方式",trigger:"change"}],checkList:[{required:!0,message:"请选择库存消耗方式",trigger:"change"}],operAuthType:[{required:!0,message:"请选择操作人权限",trigger:"change"}]},validateGoodsCode:t,validateGoodsBarCode:e,goodsStandardInfo:[],standardList:[],searchStandard:"",standardValueList:[],searchStandardValue:"",goodsSkuList:[],skuCols:[],stValCount:[],skuSellObj:{},skuSellObj2:{},stockObj:{},isStdImg:!1,cordList:[],giftId:"",gooodsId:"",editorWidth:900,refash:!1,actionUrl:"/api-plug/upload-images",maxlength:5,image:[],uploadAction:window.location.origin+"/welfare/upload/upload-image",openStorePick:0,btnLoading:!1,loading:!1,enterpriseName:"",handleData:{giftSkuCostPrice:"",stock:void 0,giftSkuCode:"",skuBarCode:""},isEdit:!1,diliveryData:{shopSelectType:"",shopCodeList:[],shopNum:""}}},mounted:function(){this.$emit("updateBread",this.bread),this.$emit("showAside",!0),this.getLoginUser(),this.giftId=this.$route.query.giftId,this.giftId?(this.bread[3].breadName="编辑礼品",this.getMess(),this.isEdit=!0,this.getShopList()):this.getGiftId(),this.getStandardList()},methods:{getGiftId:function(){var t=this;L().then((function(e){"0000"===e.code?t.giftId=e.result:t.$message.error(e.message)}))},starAdd:function(t){if("可占库存"===t.column.label||"成本"===t.column.label)return"star"},updateGroupList:function(t){},changeDelivery:function(t){t.length>1?this.goodsForm.deliveryType="1,2":this.goodsForm.deliveryType=t[0]},changeStoreSelect:function(t){this.diliveryData.shopSelectType=t.shopSelectType,this.diliveryData.shopCodeList=t.shopCodeList,this.diliveryData.shopNum=t.shopNum},changeStockUse:function(t){t.length>1?this.goodsForm.stockUseType=2:this.goodsForm.stockUseType=t[0]},getLoginUser:function(){var t=this;Object(i["a"])({url:"/gic-auth-web/user/get-login-user"}).then((function(e){t.enterpriseName=e.result.enterpriseName}))},getShopList:function(){var t=this;x({id:this.giftId}).then((function(e){"0000"===e.code?e.result.forEach((function(e){t.diliveryData.shopCodeList.push(e.shopCode)})):t.$message.error(e.message)}))},getMess:function(){var t=this,e={id:this.giftId};this.$emit("updateLoading"),j(e).then((function(e){if("0000"===e.code){var s=e.result;t.goodsForm.giftName=s.giftName,t.goodsForm.marketPrice=s.marketPrice,t.goodsForm.stock=s.stock,t.goodsForm.giftNo=s.giftNo,t.goodsForm.giftBarNo=s.giftBarNo,t.goodsForm.operAuthType=s.operAuthType,t.goodsForm.operAuthPre=s.operAuth?s.operAuth.split(","):[],t.goodsForm.checkList=2==s.stockUseType?["1","0"]:1==s.stockUseType?["1"]:["0"],t.goodsForm.deliveryType=s.deliveryType,"1,2"==t.goodsForm.deliveryType?t.goodsForm.deliveryList=["1","2"]:t.goodsForm.deliveryList=[t.goodsForm.deliveryType],t.diliveryData.shopSelectType=s.shopSelectType,t.goodsForm.giftImages=s.giftImages,t.goodsForm.stockUseType=s.stockUseType;var a=s.giftImages.split(",");if(a.length){var o,i=S(a);try{for(i.s();!(o=i.n()).done;){var r=o.value;t.image.push({url:r})}}catch(y){i.e(y)}finally{i.f()}}t.goodsForm.giftDescrption=s.giftDescrption,t.goodsForm.refundFlag=s.refundFlag,t.goodsStandardInfo=s.giftSpecInfo?JSON.parse(s.giftSpecInfo):[];var l=s.skuList||[];if(t.goodsStandardInfo.length>0)if(l.length>1){var n=[];for(var c in l)n.push(l[c].giftSkuCostPrice);var d=Math.max.apply(null,n),u=Math.min.apply(null,n);t.goodsForm.costPrice=d===u?u:u+"~"+d}else 1===l.length&&(t.goodsForm.costPrice=l[0].giftSkuCostPrice);else t.goodsForm.costPrice=Number(s.costPrice).toFixed(2);var p=[],f={};if(l.length>0){for(var g=0;g<l.length;g++)if(p.push({mapId:"",id:[],giftSkuId:l[g].giftSkuId,giftSkuCostPrice:l[g].giftSkuCostPrice,giftSkuCode:l[g].giftSkuCode,skuBarCode:l[g].skuBarCode,stock:l[g].stock,giftSkuStrand:l[g].giftSkuStrand,giftId:l[g].giftId}),l[g].giftSkuStrand){for(var h=0;h<JSON.parse(l[g].giftSkuStrand).length;h++)p[g].id.push(JSON.parse(l[g].giftSkuStrand)[h].specStandardValueId);p[g].mapId=p[g].id.join("_")}var k,b=S(p);try{for(b.s();!(k=b.n()).done;){var v=k.value;f[v.mapId]={skuBarCode:v.skuBarCode,giftSkuCode:v.giftSkuCode,giftSkuCostPrice:v.giftSkuCostPrice,stock:v.stock,giftSkuCostPriceStatus:!0,stockStatus:!0,giftSkuId:v.giftSkuId}}}catch(y){b.e(y)}finally{b.f()}t.skuSellObj=Object(m["c"])(f)}t.goodsStandardInfo.length>0?t.isStdImg=2===t.goodsStandardInfo[0].standardimg:t.isStdImg=!1,t.goodsStandardInfo.length>0&&t.getSkuList()}else t.$message.error(e.message)})).finally((function(){return t.$emit("updateLoading")}))},beforeUpload:function(t){return!(t.size>1048576)||(this.$message.error("请上传小于1MB的图片"),!1)},uploadOnSuccess:function(t){var e=t.res.result[0];this.image.push(e);var s=[];this.image.forEach((function(t,e){s[e]=t.url})),this.goodsForm.giftImages=s.join("")},deleteImage:function(t){this.image.splice(t,1);var e=[];this.image.forEach((function(t,s){e[s]=t.url})),this.goodsForm.giftImages=e.join("")},handleChange:function(t){this.goodsForm.giftDescrption=t},getSelected:function(t,e){e.valueList=[{specStandardValueName:"",specStandardValueId:""}],e.specName=t.specName,e.specId=t.specId,this.refash=!this.refash,this.getSkuList()},addSku:function(){this.goodsStandardInfo.push({specId:"",specName:"",standardimg:1,valueList:[{specStandardValueName:"",specStandardValueId:""}]}),this.refash=!this.refash,this.getSkuList()},spliceStandard:function(t,e){this.searchStandard=e.specName,this.getStandardList(e,null,this.searchStandard)},getStdList:function(t){var e,s=[],a=S(this.goodsStandardInfo);try{for(a.s();!(e=a.n()).done;){var o=e.value;o.specId&&o.specName&&s.push(o.specId)}}catch(r){a.e(r)}finally{a.f()}var i=s.join(",");this.getStandardList(t,i,"")},getStandardList:function(t,e,s){var a,o=this;a=e||"";var i={speIds:a,search:s};y(i).then((function(t){"0000"===t.code?(t.result?o.standardList=t.result||[]:o.standardList=[],o.searchStandard=""):(o.standardList=[],o.$message.error(t.data.message))}))},addStandard:function(t){var e=this;if(t.specName&&!t.specId){var s={specName:t.specName};C(s).then((function(s){"0000"===s.data.code?t.specId=s.result:e.$message.error(s.message)}))}},deleteSku:function(t){this.goodsStandardInfo.splice(t,1),this.goodsForm.costPrice="",this.getSkuList()},getSelectedValue:function(t,e,s){e.valueList[s].specStandardValueName=t.specValue,e.valueList[s].specStandardValueId=t.specValueId,this.refash=!this.refash,this.getSkuList()},spliceStandardValue:function(t,e){this.searchStandardValue=t,this.getValueId(e)},getStdValueList:function(t,e){this.refash=!this.refash,this.getValueId(e)},getValueId:function(t){var e,s=this,a=[],o=S(t.valueList);try{for(o.s();!(e=o.n()).done;){var i=e.value;i.specStandardValueId&&i.specStandardValueName&&a.push(i.specStandardValueId)}}catch(l){o.e(l)}finally{o.f()}var r={specId:t.specId,specValueIds:a.join(","),search:this.searchStandardValue};O(r).then((function(t){"0000"===t.code?(t.result?s.standardValueList=t.result||[]:s.standardValueList=[],s.searchStandardValue=""):(s.standardValueList=[],s.$message.error(t.message))}))},addStandardValue:function(t,e){var s=this;t.valueList[e];if(t.valueList[e].specStandardValueName&&!t.valueList[e].specStandardValueId){var a={specId:t.specId,specValueName:t.valueList[e].specStandardValueName};I(a).then((function(a){if("0000"===a.code){if(a.result){var o="",i=Object(m["c"])(t.valueList),r=Object(m["c"])(i);if(r.splice(e,1),o=r.find((function(t){return t.specStandardValueId===a.result}))?r.find((function(t){return t.specStandardValueId===a.result})).specStandardValueId:"",o===a.result)return s.$message.error("禁止重复添加"),t.valueList[e].specStandardValueName="",!1;t.valueList[e].specStandardValueId=a.result,s.refash=!s.refash,s.getSkuList()}}else s.$message.error(a.message)}))}},addValue:function(t){t.valueList.push({specStandardValueName:"",specStandardValueId:""}),this.getSkuList(),this.refash=!this.refash},deleteValue:function(t,e,s,a){t.valueList.splice(a,1);for(var o=Object(m["c"])(this.goodsSkuList),i=0;i<o.length;i++)e.specStandardValueId&&-1!==o[i].mapId.indexOf(e.specStandardValueId)?(o.splice(i,1),i=0):""===e.specStandardValueId&&o.splice(a,1);this.goodsSkuList=Object(m["c"])(o),this.getSkuList(),this.handleCostPrice(),this.handleStock()},tableUploadSuccess:function(t,e,s,a){"0000"===t.code?(a.propImg=t.result.url,this.$message.success("上传成功"),this.refash=!this.refash):this.$message.error(t.message)},tableBeforeUpload:function(t){if("image/jpeg"!==t.type&&"image/png"!==t.type&&"image/jpg"!==t.type&&"image/gif"!==t.type)return this.$message.error("请上传jpg,png,gif格式的图片"),!1},deleteImg:function(t){t.propImg="",this.refash=!this.refash},objectSpanMethod:function(t){var e=t.rowIndex,s=t.columnIndex,a=this.stValCount.length;if(s<a){var o=this.stValCount[s],i=this.stValCount[a-1];if(!o||!i)return{rowspan:0,colspan:0};var r=i/o;return e%r===0?{rowspan:r,colspan:1}:{rowspan:0,colspan:0}}},handleStock:function(){for(var t in this.skuSellObj)this.skuSellObj[t]={giftSkuCostPrice:this.handleData.giftSkuCostPrice?this.handleData.giftSkuCostPrice:this.skuSellObj[t].giftSkuCostPrice,stock:this.handleData.stock?this.handleData.stock:this.skuSellObj[t].stock,giftSkuCode:this.handleData.giftSkuCode?this.handleData.giftSkuCode:this.skuSellObj[t].giftSkuCode,skuBarCode:this.handleData.skuBarCode?this.handleData.skuBarCode:this.skuSellObj[t].skuBarCode,stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:this.skuSellObj[t].giftSkuId,stockAlter:0,stockType:0},this.isEdit&&(Number(this.stockObj[t])>Number(this.skuSellObj[t].stock)?(this.skuSellObj[t].stockType=0,this.skuSellObj[t].stockAlter=Number(this.stockObj[t])-Number(this.skuSellObj[t].stock)):(this.skuSellObj[t].stockType=1,this.skuSellObj[t].stockAlter=Number(this.skuSellObj[t].stock)-Number(this.stockObj[t])),this.stockObj[t]||(this.skuSellObj[t].stockType=1,this.skuSellObj[t].stockAlter=this.skuSellObj[t].stock));this.handleData.stock=void 0,this.handleSpuStock()},handleCostPrice:function(){for(var t in this.skuSellObj)this.skuSellObj[t]={giftSkuCostPrice:this.handleData.giftSkuCostPrice?this.handleData.giftSkuCostPrice:this.skuSellObj[t].giftSkuCostPrice,stock:this.handleData.stock?this.handleData.stock:this.skuSellObj[t].stock,giftSkuCode:this.handleData.giftSkuCode?this.handleData.giftSkuCode:this.skuSellObj[t].giftSkuCode,skuBarCode:this.handleData.skuBarCode?this.handleData.skuBarCode:this.skuSellObj[t].skuBarCode,stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:this.skuSellObj[t].giftSkuId,stockAlter:0,stockType:0};this.handleData.giftSkuCostPrice="";var e=Object.keys(this.skuSellObj);if(e.length>1){var s=[];for(var a in this.skuSellObj)s.push(this.skuSellObj[a].giftSkuCostPrice);var o=Math.max.apply(null,s),i=Math.min.apply(null,s);this.goodsForm.costPrice=o===i?i:i+"~"+o}else if(1===e.length)for(var r in this.skuSellObj)this.goodsForm.costPrice=this.skuSellObj[r].giftSkuCostPrice},handleSkuCode:function(){for(var t in this.skuSellObj)this.skuSellObj[t]={giftSkuCostPrice:this.handleData.giftSkuCostPrice?this.handleData.giftSkuCostPrice:this.skuSellObj[t].giftSkuCostPrice,stock:this.handleData.stock?this.handleData.stock:this.skuSellObj[t].stock,giftSkuCode:this.handleData.giftSkuCode?this.handleData.giftSkuCode:this.skuSellObj[t].giftSkuCode,skuBarCode:this.handleData.skuBarCode?this.handleData.skuBarCode:this.skuSellObj[t].skuBarCode,stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:this.skuSellObj[t].giftSkuId,stockAlter:0,stockType:0};this.handleData.giftSkuCode=""},handleBarCode:function(){for(var t in this.skuSellObj)this.skuSellObj[t]={giftSkuCostPrice:this.handleData.giftSkuCostPrice?this.handleData.giftSkuCostPrice:this.skuSellObj[t].giftSkuCostPrice,stock:this.handleData.stock?this.handleData.stock:this.skuSellObj[t].stock,giftSkuCode:this.handleData.giftSkuCode?this.handleData.giftSkuCode:this.skuSellObj[t].giftSkuCode,skuBarCode:this.handleData.skuBarCode?this.handleData.skuBarCode:this.skuSellObj[t].skuBarCode,stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:this.skuSellObj[t].giftSkuId,stockAlter:0,stockType:0};this.handleData.skuBarCode=""},handleSpuStock:function(){for(var t in this.goodsForm.stock=0,this.skuSellObj)this.skuSellObj[t].stock?this.goodsForm.stock=Number(this.goodsForm.stock)+Number(this.skuSellObj[t].stock):this.goodsForm.stock=Number(this.goodsForm.stock)+0},getSkuList:function(){var t=Object(m["c"])(this.goodsStandardInfo),e=[];this.skuCols=[];var s,a=S(t);try{for(a.s();!(s=a.n()).done;){var o,i=s.value,r=S(i.valueList);try{for(r.s();!(o=r.n()).done;){var l=o.value;l.specStandardName=i.specName,l.specStandardId=i.specId}}catch(O){r.e(O)}finally{r.f()}this.skuCols.push(i.specName),e.push(i.valueList)}}catch(O){a.e(O)}finally{a.f()}for(var n=this.combine(Object(m["c"])(e)),c=[],d=0;d<n.length;d++){c.push({data:n[d],cols:[],id:[],mapId:""});for(var u=0;u<n[d].length;u++)c[d].cols.push(n[d][u].specStandardValueName),c[d].id.push(n[d][u].specStandardValueId);c[d].mapId=c[d].id.join("_")}this.goodsSkuList=Object(m["c"])(c);var p=[];this.stValCount=[];for(var f=0;f<t.length;f++)t[f].valueList.length>0&&(p[f]=t[f].valueList.length);for(var g=1,h=0;h<p.length;h++)g*=p[h],this.stValCount[h]=g;var k=Object(m["c"])(c),b=Object(m["c"])(this.skuSellObj);this.skuSellObj={};var v,y=S(k);try{for(y.s();!(v=y.n()).done;){var C=v.value;b[C.mapId]?(this.skuSellObj[C.mapId]={giftSkuCostPrice:Object.keys(b).length>0&&b[C.mapId].giftSkuCostPrice?Number(b[C.mapId].giftSkuCostPrice).toFixed(2):"",stock:Object.keys(b).length>0?b[C.mapId].stock:"",giftSkuCode:Object.keys(b).length>0?b[C.mapId].giftSkuCode:"",skuBarCode:Object.keys(b).length>0?b[C.mapId].skuBarCode:"",giftSkuId:Object.keys(b).length>0?b[C.mapId].giftSkuId:"",stockStatus:!0,giftSkuCostPriceStatus:!0,stockAlter:0,stockType:0},this.stockObj[C.mapId]=Object.keys(b).length>0?b[C.mapId].stock:""):this.skuSellObj[C.mapId]={giftSkuCostPrice:"",stock:void 0,giftSkuCode:"",skuBarCode:"",stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:"",stockAlter:0,stockType:0}}}catch(O){y.e(O)}finally{y.f()}this.skuSellObj=Object(m["c"])(this.skuSellObj),this.skuSellObj2=Object(m["c"])(this.skuSellObj),this.refash=!this.refash},combine:function(t){t.reverse();var e=[];return function t(s,a,o){if(0==o)return e.push(s);for(var i=0;i<a[o-1].length;i++)t(s.concat(a[o-1][i]),a,o-1)}([],t,t.length),e},handleValiedSkuCode:function(t,e,s){var a=/^[a-zA-Z0-9\-\—]{1,32}$/;t&&(a.test(t)||(this.$message.error("sku编码只能是数字或字母或-且最多32个字符"),1===s?this.handleData.giftSkuCode="":2===s&&(this.skuSellObj[e].giftSkuCode="")))},handleValiedskuBarCode:function(t,e,s){var a=/^[a-zA-Z0-9]{1,32}$/;t&&(a.test(t)||(this.$message.error("条形码只能是数字或字母且最多32个字符"),1===s?this.handleData.skuBarCode="":2===s&&(this.skuSellObj[e].skuBarCode="")))},handleValidIntegral:function(t,e,s){t||0===t?t<0?(this.skuSellObj[e].giftSkuCostPriceStatus=!1,this.$message.error("成本价必须大于0")):this.skuSellObj[e].giftSkuCostPriceStatus=!0:(this.skuSellObj[e].giftSkuCostPriceStatus=!1,this.$message.error("成本价是必填项"));var a=Object.keys(this.skuSellObj);if(a.length>1){var o=[];for(var i in this.skuSellObj)o.push(this.skuSellObj[i].giftSkuCostPrice);var r=Math.max.apply(null,o),l=Math.min.apply(null,o);this.goodsForm.costPrice=r===l?l:l+"~"+r}else 1===a.length&&(this.goodsForm.costPrice=this.skuSellObj[e].giftSkuCostPrice)},handleValidStock:function(t,e,s){this.goodsForm.spuList[0].stock=0,this.goodsForm.stock=0,t||0===t?this.skuSellObj[e].stockStatus=!0:(this.skuSellObj[e].stockStatus=!1,this.$message.error("库存是必填项")),this.isEdit&&(Number(this.stockObj[e])>Number(this.skuSellObj[e].stock)?(this.skuSellObj[e].stockType=0,this.skuSellObj[e].stockAlter=Number(this.stockObj[e])-Number(this.skuSellObj[e].stock)):(this.skuSellObj[e].stockType=1,this.skuSellObj[e].stockAlter=Number(this.skuSellObj[e].stock)-Number(this.stockObj[e])),this.stockObj[e]||(this.skuSellObj[e].stockType=1,this.skuSellObj[e].stockAlter=this.skuSellObj[e].stock));var a=Object.keys(this.skuSellObj);if(a.length>1)for(var o in this.skuSellObj)this.goodsForm.stock=Number(this.goodsForm.stock)+Number(this.skuSellObj[o].stock);else 1===a.length&&(this.goodsForm.stock=this.skuSellObj[e].stock);this.handleValidIntegral(t,e,s)},submitForm:function(t){var e=this;if(!this.btnLoading){if(this.goodsStandardInfo.length>0){var s,a=S(this.goodsStandardInfo);try{for(a.s();!(s=a.n()).done;){var o=s.value;if(""==o.specId)return this.$message.error("请选择规格"),!1;if(!o.valueList.every((function(t){return""!==t.specStandardValueId})))return this.$message.error("请选择规格值"),!1}}catch(i){a.e(i)}finally{a.f()}}return 0===this.image.length?(this.$message.error("请上传主图"),!1):this.goodsForm.operAuthType?void this.$refs[t].validate((function(t){if(t){var s=[];if(e.goodsStandardInfo.length>0){var a=function(t){var a=e.goodsSkuList.find((function(e){return e.mapId===t})).data;a=a.map((function(t){return delete t.propImg,t})),s.push({giftId:e.giftId,giftSkuId:e.skuSellObj[t].giftSkuId,stock:e.skuSellObj[t].stock,giftSkuCode:e.skuSellObj[t].giftSkuCode,skuBarCode:e.skuSellObj[t].skuBarCode,giftSkuCostPrice:e.skuSellObj[t].giftSkuCostPrice,giftSkuStrand:JSON.stringify(a),stockType:e.skuSellObj[t].stockType,stockAlter:e.skuSellObj[t].stockAlter})};for(var o in e.skuSellObj)a(o);if(e.isStdImg)e.goodsStandardInfo[0].standardimg=2;else{e.goodsStandardInfo[0].standardimg=1;var r,l=S(e.goodsStandardInfo[0].valueList);try{for(l.s();!(r=l.n()).done;){var n=r.value;n.propImg=""}}catch(i){l.e(i)}finally{l.f()}}if(e.isStdImg&&e.goodsStandardInfo[0]){var c,d=S(e.goodsStandardInfo[0].valueList);try{for(d.s();!(c=d.n()).done;){var u=c.value;if(""===u.propImg||!u.propImg)return e.$message.error("请上传规格图片"),!1}}catch(i){d.e(i)}finally{d.f()}}for(var p in e.skuSellObj){if(!e.skuSellObj[p].giftSkuCostPrice&&0!==e.skuSellObj[p].giftSkuCostPrice)return e.$message.error("请完善规格成本价信息"),!1;if(!e.skuSellObj[p].stock&&0!==e.skuSellObj[p].stock)return e.$message.error("请完善规格库存信息"),!1;if(!e.skuSellObj[p].giftSkuCostPriceStatus||!e.skuSellObj[p].stockStatus)return e.$message.error("请填写正确格式的sku信息"),!1}}else s=[];e.$emit("updateLoading");var f={giftId:e.giftId,giftType:1,giftName:e.goodsForm.giftName,marketPrice:e.goodsForm.marketPrice,costPrice:0==e.goodsStandardInfo.length?e.goodsForm.costPrice:-1,stock:e.goodsForm.stock,giftNo:e.goodsForm.giftNo,giftBarNo:e.goodsForm.giftBarNo,giftImages:e.goodsForm.giftImages,giftDescrption:e.goodsForm.giftDescrption,refundFlag:e.goodsForm.refundFlag,giftSpecInfo:e.goodsStandardInfo.length>0?JSON.stringify(e.goodsStandardInfo):"",skuList:s,operAuthType:e.goodsForm.operAuthType,operAuth:e.goodsForm.operAuthPre.join(","),deliveryType:e.goodsForm.deliveryType,source:1,shopSelectType:e.diliveryData.shopSelectType,shopCodeList:e.diliveryData.shopCodeList,stockUseType:e.goodsForm.stockUseType};e.btnLoading=!0,e.isEdit?w(f).then((function(t){"0000"===t.code?(e.$router.push({path:"/gift-manage/real-gift"}),e.btnLoading=!1):(e.btnLoading=!1,e.$message.error(t.message))})).finally((function(){return e.$emit("updateLoading",!1)})):F(f).then((function(t){"0000"===t.code?(e.$store.commit("updateShowCornerCanUseApp",!0),e.$router.push({path:"/gift-manage/real-gift"}),e.btnLoading=!1):(e.btnLoading=!1,e.$message.error(t.message))})).finally((function(){return e.$emit("updateLoading",!1)}))}else PublicMethods.jumpToFormError()})):(this.$message.error("请选择操作人权限"),!1)}}}},N=P,_=(s("2671"),s("fdf5"),Object(f["a"])(N,a,o,!1,null,"5321a154",null));e["default"]=_.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d4ebdfa"],{"48c3":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[i("div",{staticClass:"pb20 clearfix flex-center"},[i("el-button",{staticClass:"mlAuto",attrs:{type:"primary"},on:{click:function(e){return t.$router.push("/setting/address-lib-add")}}},[t._v("新建地址")])],1),i("el-table",{staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.tableList}},[i("el-table-column",{attrs:{prop:"contact",label:"联系人"}}),i("el-table-column",{attrs:{prop:"phone",label:"联系方式"}}),i("el-table-column",{attrs:{prop:"address",label:"地址"}}),i("el-table-column",{attrs:{label:"地址类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.defaultFlag?i("el-tag",{staticClass:"mr5"},[t._v("默认")]):t._e(),t._v("\n "+t._s(1==e.row.type?"退款地址":"--")+"\n ")]}}])}),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.$router.push("/setting/address-lib-edit?id="+e.row.addressId)}}},[t._v("编辑")]),i("dm-delete",{attrs:{tips:"确认删除?"},on:{confirm:function(i){return t.del(e.row)}}},[i("el-button",{attrs:{type:"text"}},[t._v("删除")])],1)]}}])})],1)],1)},s=[],r=i("fab6"),o=i("cdc8"),n=o["a"].getAddressList,d=o["a"].delAddress,l={name:"AddressLibList",mixins:[r["c"]],data:function(){return{loading:!1,listParams:{currentPage:1,pageSize:20},total:0,tableList:[],dialogVisible:!1,addressId:""}},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"通用设置"},{breadName:"地址库管理"}])},mounted:function(){this.getTableList()},methods:{del:function(t){var e=this,i=t.addressId;this.loading=!0,d({addressId:i}).then((function(t){e.loading=!1,e.$tips({type:"success",message:"删除成功"}),e.getTableList()})).finally((function(){e.loading=!1}))},getTableList:function(){var t=this;this.loading||(this.loading=!0,n().then((function(e){t.loading=!1,t.tableList=e.result||[]})).finally((function(){t.loading=!1})))}}},c=l,p=i("2877"),u=Object(p["a"])(c,a,s,!1,null,null,null);e["default"]=u.exports},cdc8:function(t,e,i){"use strict";i("8e6e"),i("ac6a"),i("456d");var a=i("ade3"),s=i("71f6"),r=i("f121");function o(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 n(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){Object(a["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var d={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},l={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};d=Object(s["a"])(d,r["f"]),l=Object(s["a"])(l,r["f"]),e["a"]=n(n({},d),l);r["c"].api,r["b"],r["c"].api,r["f"]},fab6:function(t,e,i){"use strict";i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o}));var a=i("ed08"),s={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.listParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.listParams.currentPage=t,this.getTableList()}}},r={methods:{formatterTimeFunc:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[s]?(this.listParams[t]=Object(a["e"])(this[s][0],i),this.listParams[e]=Object(a["e"])(this[s][1],i)):this.listParams[t]=this.listParams[e]=""}}},o={methods:{mainHeight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-t}}}}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d4ebdfa"],{"48c3":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[i("div",{staticClass:"pb20 clearfix flex-center"},[i("el-button",{staticClass:"mlAuto",attrs:{type:"primary"},on:{click:function(e){return t.$router.push("/setting/address-lib-add")}}},[t._v("新建地址")])],1),i("el-table",{staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.tableList}},[i("el-table-column",{attrs:{prop:"contact",label:"联系人"}}),i("el-table-column",{attrs:{prop:"phone",label:"联系方式"}}),i("el-table-column",{attrs:{prop:"address",label:"地址"}}),i("el-table-column",{attrs:{label:"地址类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.defaultFlag?i("el-tag",{staticClass:"mr5"},[t._v("默认")]):t._e(),t._v("\n "+t._s(1==e.row.type?"退款地址":"--")+"\n ")]}}])}),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.$router.push("/setting/address-lib-edit?id="+e.row.addressId)}}},[t._v("编辑")]),i("dm-delete",{attrs:{tips:"确认删除?"},on:{confirm:function(i){return t.del(e.row)}}},[i("el-button",{attrs:{type:"text"}},[t._v("删除")])],1)]}}])})],1)],1)},s=[],r=i("fab6"),o=i("cdc8"),n=o["a"].getAddressList,d=o["a"].delAddress,l={name:"AddressLibList",mixins:[r["c"]],data:function(){return{loading:!1,listParams:{currentPage:1,pageSize:20},total:0,tableList:[],dialogVisible:!1,addressId:""}},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"通用设置"},{breadName:"地址库管理"}])},mounted:function(){this.getTableList()},methods:{del:function(t){var e=this,i=t.addressId;this.loading=!0,d({addressId:i}).then((function(t){e.loading=!1,e.$tips({type:"success",message:"删除成功"}),e.getTableList()})).finally((function(){e.loading=!1}))},getTableList:function(){var t=this;this.loading||(this.loading=!0,n().then((function(e){t.loading=!1,t.tableList=e.result||[]})).finally((function(){t.loading=!1})))}}},c=l,p=i("2877"),u=Object(p["a"])(c,a,s,!1,null,null,null);e["default"]=u.exports},cdc8:function(t,e,i){"use strict";i("8e6e"),i("ac6a"),i("456d");var a=i("ade3"),s=i("71f6"),r=i("f121");function o(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 n(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){Object(a["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var d={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},l={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"/address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};d=Object(s["a"])(d,r["f"]),l=Object(s["a"])(l,r["f"]),e["a"]=n(n({},d),l);r["c"].api,r["b"],r["c"].api,r["f"]},fab6:function(t,e,i){"use strict";i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o}));var a=i("ed08"),s={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.listParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.listParams.currentPage=t,this.getTableList()}}},r={methods:{formatterTimeFunc:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[s]?(this.listParams[t]=Object(a["e"])(this[s][0],i),this.listParams[e]=Object(a["e"])(this[s][1],i)):this.listParams[t]=this.listParams[e]=""}}},o={methods:{mainHeight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-t}}}}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28cb370c"],{"1d16":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form-item",{attrs:{label:"买家可选自提时间"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.ruleForm.chooseTimeFlag,callback:function(t){e.$set(e.ruleForm,"chooseTimeFlag",t)},expression:"ruleForm.chooseTimeFlag"}}),a("p",[e._v("开启表示买家可选择自提时间,商户需按约定时间备货完成")])],1),e.ruleForm.chooseTimeFlag?[a("el-form-item",{attrs:{label:"日期类型",required:""}},[a("el-radio",{attrs:{label:1},model:{value:e.ruleForm.dateType,callback:function(t){e.$set(e.ruleForm,"dateType",t)},expression:"ruleForm.dateType"}},[e._v("动态日期")]),a("el-radio",{attrs:{label:2},model:{value:e.ruleForm.dateType,callback:function(t){e.$set(e.ruleForm,"dateType",t)},expression:"ruleForm.dateType"}},[e._v("固定日期")])],1),1==e.ruleForm.dateType?a("el-form-item",{attrs:{label:"商品备货设置",prop:"dynamicType"}},[a("div",{staticClass:"mb5"},[a("el-radio",{attrs:{label:1},model:{value:e.ruleForm.dynamicType,callback:function(t){e.$set(e.ruleForm,"dynamicType",t)},expression:"ruleForm.dynamicType"}},[e._v("下单当天")]),a("el-input-number",{staticClass:"w100 mr5",attrs:{min:1,max:24,controls:!1,precision:0},model:{value:e.ruleForm.dynamicH,callback:function(t){e.$set(e.ruleForm,"dynamicH",t)},expression:"ruleForm.dynamicH"}}),e._v("小时,\n "),a("el-input-number",{staticClass:"w100 mr5",attrs:{max:60,controls:!1,precision:0},model:{value:e.ruleForm.dynamicM,callback:function(t){e.$set(e.ruleForm,"dynamicM",t)},expression:"ruleForm.dynamicM"}}),e._v("分钟后,买家可提货\n ")],1),a("div",[a("el-radio",{attrs:{label:2},model:{value:e.ruleForm.dynamicType,callback:function(t){e.$set(e.ruleForm,"dynamicType",t)},expression:"ruleForm.dynamicType"}},[e._v("下单  ")]),a("el-input-number",{staticClass:"w100 mr5",attrs:{max:1e3,controls:!1,precision:0},model:{value:e.ruleForm.dynamicD,callback:function(t){e.$set(e.ruleForm,"dynamicD",t)},expression:"ruleForm.dynamicD"}}),e._v("天后,买家可提货\n ")],1)]):e._e(),1==e.ruleForm.dateType?a("el-form-item",{attrs:{label:"提货有效期",prop:"dynamicStop"}},[e._v("\n 备货完成"),a("el-input-number",{staticClass:"w100 mr5 ml5",attrs:{min:2,controls:!1,precision:0},model:{value:e.ruleForm.dynamicStop,callback:function(t){e.$set(e.ruleForm,"dynamicStop",t)},expression:"ruleForm.dynamicStop"}}),e._v("天后,停止自提\n ")],1):e._e(),2==e.ruleForm.dateType?a("el-form-item",{attrs:{label:"日期范围",prop:"fixedTime"}},[e._l(e.ruleForm.fixedTime,(function(t,i){return a("div",{key:i,staticClass:"mb10"},[a("el-date-picker",{attrs:{"picker-options":e.pickerOptionsEnd,"is-range":"",format:"yy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){return e.limitDataSelect(i,t)}},model:{value:t.dataRange,callback:function(a){e.$set(t,"dataRange",a)},expression:"v.dataRange"}}),i?a("el-button",{staticClass:"delete-btn ml10",attrs:{type:"text"},on:{click:function(a){return e.deleteTime(t)}}},[e._v("删除")]):e._e()],1)})),a("el-button",{attrs:{type:"text",disabled:e.ruleForm.fixedTime.length>=5},on:{click:e.addTime}},[a("i",{staticClass:"el-icon-plus"}),e._v("添加时间")])],2):e._e(),a("el-form-item",{attrs:{label:"超期发货单处理",required:""}},[a("div",[a("el-radio",{attrs:{label:1},model:{value:e.ruleForm.timeoutDealType,callback:function(t){e.$set(e.ruleForm,"timeoutDealType",t)},expression:"ruleForm.timeoutDealType"}},[e._v("到期自动完成核销")])],1),a("div",[a("el-radio",{attrs:{label:2},model:{value:e.ruleForm.timeoutDealType,callback:function(t){e.$set(e.ruleForm,"timeoutDealType",t)},expression:"ruleForm.timeoutDealType"}},[e._v("到期自动关闭发货单,若为销售订单请至应用中查看退款情况")])],1)])]:e._e()],2)},r=[],l={name:"PickupFormContent",props:{ruleForm:{type:Object,default:function(){}}},data:function(){return{pickerOptionsEnd:{disabledDate:function(e){return e.getTime()<new Date((new Date).toLocaleDateString()).getTime()}}}},methods:{addTime:function(){this.ruleForm.fixedTime.push({dataRange:""})},deleteTime:function(e){this.ruleForm.fixedTime.splice(e,1)},limitDataSelect:function(e,t){var a=new Date(t[0]).valueOf(),i=new Date(t[1]).valueOf(),r=this.ruleForm.fixedTime;if(1!=r.length)if(0!==e){for(var l=e-1;l>=0;l--)if(r[l].dataRange){var n=new Date(r[l].dataRange[1]).valueOf();a<=n&&(this.$message.error("日期不可重叠!"),r[e].dataRange=null)}for(var o=e+1;o<r.length;o++)if(r[o].dataRange){var s=new Date(r[o].dataRange[0]).valueOf();(a>=s||i>=s)&&(this.$message.error("日期不可重叠!"),r[e].dataRange=null)}}else for(var c=e+1;c<r.length;c++)if(r[c].dataRange){var d=new Date(r[c].dataRange[0]).valueOf();(a>=d||i>=d)&&(this.$message.error("日期不可重叠!"),r[e].dataRange=null)}}}},n=l,o=(a("445b"),a("2877")),s=Object(o["a"])(n,i,r,!1,null,"1b2ddbf4",null);t["a"]=s.exports},"445b":function(e,t,a){"use strict";a("af5d")},af5d:function(e,t,a){},cdc8:function(e,t,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var i=a("ade3"),r=a("71f6"),l=a("f121");function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var s={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};s=Object(r["a"])(s,l["f"]),c=Object(r["a"])(c,l["f"]),t["a"]=o(o({},s),c);l["c"].api,l["b"],l["c"].api,l["f"]},e54f:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p20"},[a("div",{staticClass:"pb20 clearfix flex-center"},[a("el-input",{staticClass:"w400 mrAuto",attrs:{"prefix-icon":"el-icon-search",clearable:"",placeholder:"请输入自提点名称进行搜索"},on:{change:e.refresh},model:{value:e.listParams.name,callback:function(t){e.$set(e.listParams,"name",t)},expression:"listParams.name"}}),a("el-select",{staticClass:"more-select mr10",attrs:{placeholder:"批量操作"},on:{change:e.mutiOption}},[a("el-option",{attrs:{disabled:!e.selectList.length,value:0}},[e._v("批量设置")]),a("el-option",{attrs:{disabled:!e.selectList.length,value:1}},[e._v("批量删除")])],1),a("el-button",{attrs:{type:"default"},on:{click:e.exportExcel}},[e._v("导出自提点")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$router.push("/setting/pickup-add")}}},[e._v("新建自提点")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:e.tableList},on:{"selection-change":function(t){e.selectList=t}}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"自提点名称",prop:"name","min-width":"180px;"}}),a("el-table-column",{attrs:{label:"自提点地址",prop:"address","min-width":"180px;"}}),a("el-table-column",{attrs:{label:"联系电话",prop:"phone","min-width":"140px;"}}),a("el-table-column",{attrs:{label:"自提时间可选","min-width":"120px;"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.chooseTimeFlag?"可选":"不可选")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.$router.push("/setting/pickup-edit?id="+t.row.pickupId)}}},[e._v("编辑")]),a("dm-delete",{attrs:{tips:"确认删除?"},on:{confirm:function(a){return e.del(t.row.pickupId)}}},[a("el-button",{attrs:{type:"text"}},[e._v("删除")])],1)]}}])})],1),a("div",{staticClass:"clearfix"},[e.tableList.length?a("dm-pagination",{staticClass:"fr mb0",attrs:{background:"","current-page":e.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":e.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1),a("pickup-update-dialog",{attrs:{"dialog-visible":e.dialogVisible,ids:e.selectList.map((function(e){return e.pickupId}))},on:{"update:dialogVisible":function(t){e.dialogVisible=t},"update:dialog-visible":function(t){e.dialogVisible=t},mutiUpdate:e.mutiUpdate}})],1)},r=[],l=(a("7f7f"),a("fab6")),n=a("cdc8"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"批量设置",visible:e.dialogVisible,width:"700px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.close}},[a("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"160px"}},[a("form-content",{attrs:{"rule-form":e.ruleForm},on:{"update:ruleForm":function(t){e.ruleForm=t},"update:rule-form":function(t){e.ruleForm=t}}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.close}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit()}}},[e._v("确认")])],1)],1)},s=[],c=(a("ac6a"),a("ed08")),d=a("1d16"),u=n["a"].updatePickupStore,p={name:"PickupUpdateDialog",components:{formContent:d["a"]},props:{dialogVisible:{type:Boolean,default:function(){return{}}},ids:{type:Array,default:function(){return[]}}},data:function(){var e=this,t=function(t,a,i){var r=e.ruleForm,l=r.dynamicType,n=r.dynamicH,o=r.dynamicM,s=r.dynamicD;if(1==l){if(Object(c["f"])(n)||Object(c["f"])(o))return void i(new Error("填写不完整"))}else if(Object(c["f"])(s))return void i(new Error("填写不完整"));i()},a=function(t,a,i){var r=e.ruleForm.fixedTime;if(0!=r.length){var l=!1;r.forEach((function(e){e.dataRange&&e.dataRange.length&&e.dataRange[0]&&e.dataRange[1]||(l=!0)})),l?i(new Error("请配置固定日期范围")):i()}else i(new Error("请配置固定日期范围"))};return{ruleForm:{type:1,chooseTimeFlag:0,dateType:1,fixedTime:[{dataRange:""}],dynamicType:1,dynamicH:"",dynamicM:"",dynamicD:"",dynamicStop:"",storeWidgetId:"",timeoutDealType:1},rules:{storeWidgetId:{required:!0,message:"请选择门店",trigger:"change"},dynamicType:{required:!0,validator:t,trigger:"blur"},dynamicStop:{required:!0,message:"请填写提货有效期",trigger:"change"},fixedTime:{required:!0,validator:a,trigger:"change"}}}},methods:{close:function(){this.$emit("update:dialogVisible",!1),this.$refs.ruleForm.resetFields()},handleSubmit:function(){var e=this;this.loading||this.$refs.ruleForm.validate((function(t){if(t){var a=e.ruleForm,i=a.chooseTimeFlag,r=a.dateType,l=a.storeWidgetId,n=a.timeoutDealType,o=a.dynamicType,s=a.dynamicH,c=a.dynamicM,d=a.dynamicD,p=a.dynamicStop,m=a.fixedTime,f={chooseTimeFlag:i,dateType:r,storeWidgetId:l,timeoutDealType:n};i&&(1==f.dateType?f.pickupDateInfo={setType:o,time:1==o?60*s+c:24*d*60,validite:p}:f.pickupDateInfo=m.map((function(e){return{startTime:new Date(e.dataRange[0]).getTime(),endTime:new Date(e.dataRange[0]).getTime()}})),f.pickupDateInfo=JSON.stringify(f.pickupDateInfo)),f.ids=e.ids.join(","),e.loading=!0,u(f).then((function(t){e.loading=!1,e.$tips({message:"修改成功",type:"success"}),e.close(),e.$emit("mutiUpdate")})).catch((function(){e.loading=!1}))}else PublicMethods.jumpToFormError()}))}}},m=p,f=a("2877"),g=Object(f["a"])(m,o,s,!1,null,null,null),h=g.exports,b=n["a"].pickupList,v=n["a"].delPickup,y=n["a"].exportPickup,T={name:"PickupList",components:{pickupUpdateDialog:h},mixins:[l["c"]],data:function(){return{loading:!1,listParams:{name:"",currentPage:1,pageSize:20},total:0,tableList:[],pickedForm:{dialogVisible:!1,selectIdList:[],list:[{timeRange:[]}]},selectList:[],dialogVisible:!1}},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"通用设置"},{breadName:"自提点设置"}])},mounted:function(){this.getTableList()},methods:{exportExcel:function(){var e={dataUrl:"/welfare/setting/pickup-list",name:this.listParams.name};y(e).then((function(e){window.location.href=window.location.origin+"/damo-system/report-list"}))},mutiUpdate:function(){this.selectList=[],this.getTableList()},mutiOption:function(e){0==e&&(this.dialogVisible=!0),1==e&&this.del(this.selectList.map((function(e){return e.pickupId})).join(","))},del:function(e){var t=this;this.loading=!0,v({pickupIds:e}).then((function(e){t.loading=!1,t.$tips({type:"success",message:"操作成功"}),t.getTableList()})).finally((function(){t.loading=!1}))},getTableList:function(){var e=this;this.loading||(this.loading=!0,b().then((function(t){e.loading=!1;var a=t.result;e.tableList=a.result||[],e.total=a.totalCount,0===e.tableList.length&&1!==e.listParams.currentPage&&(e.listParams.currentPage-=1,e.getTableList())})).finally((function(){e.loading=!1})))}}},k=T,F=Object(f["a"])(k,i,r,!1,null,null,null);t["default"]=F.exports},fab6:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return n}));var i=a("ed08"),r={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.listParams.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.listParams.currentPage=e,this.getTableList()}}},l={methods:{formatterTimeFunc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[r]?(this.listParams[e]=Object(i["e"])(this[r][0],a),this.listParams[t]=Object(i["e"])(this[r][1],a)):this.listParams[e]=this.listParams[t]=""}}},n={methods:{mainHeight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-e}}}}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28cb370c"],{"1d16":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form-item",{attrs:{label:"买家可选自提时间"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.ruleForm.chooseTimeFlag,callback:function(t){e.$set(e.ruleForm,"chooseTimeFlag",t)},expression:"ruleForm.chooseTimeFlag"}}),a("p",[e._v("开启表示买家可选择自提时间,商户需按约定时间备货完成")])],1),e.ruleForm.chooseTimeFlag?[a("el-form-item",{attrs:{label:"日期类型",required:""}},[a("el-radio",{attrs:{label:1},model:{value:e.ruleForm.dateType,callback:function(t){e.$set(e.ruleForm,"dateType",t)},expression:"ruleForm.dateType"}},[e._v("动态日期")]),a("el-radio",{attrs:{label:2},model:{value:e.ruleForm.dateType,callback:function(t){e.$set(e.ruleForm,"dateType",t)},expression:"ruleForm.dateType"}},[e._v("固定日期")])],1),1==e.ruleForm.dateType?a("el-form-item",{attrs:{label:"商品备货设置",prop:"dynamicType"}},[a("div",{staticClass:"mb5"},[a("el-radio",{attrs:{label:1},model:{value:e.ruleForm.dynamicType,callback:function(t){e.$set(e.ruleForm,"dynamicType",t)},expression:"ruleForm.dynamicType"}},[e._v("下单当天")]),a("el-input-number",{staticClass:"w100 mr5",attrs:{min:1,max:24,controls:!1,precision:0},model:{value:e.ruleForm.dynamicH,callback:function(t){e.$set(e.ruleForm,"dynamicH",t)},expression:"ruleForm.dynamicH"}}),e._v("小时,\n "),a("el-input-number",{staticClass:"w100 mr5",attrs:{max:60,controls:!1,precision:0},model:{value:e.ruleForm.dynamicM,callback:function(t){e.$set(e.ruleForm,"dynamicM",t)},expression:"ruleForm.dynamicM"}}),e._v("分钟后,买家可提货\n ")],1),a("div",[a("el-radio",{attrs:{label:2},model:{value:e.ruleForm.dynamicType,callback:function(t){e.$set(e.ruleForm,"dynamicType",t)},expression:"ruleForm.dynamicType"}},[e._v("下单  ")]),a("el-input-number",{staticClass:"w100 mr5",attrs:{max:1e3,controls:!1,precision:0},model:{value:e.ruleForm.dynamicD,callback:function(t){e.$set(e.ruleForm,"dynamicD",t)},expression:"ruleForm.dynamicD"}}),e._v("天后,买家可提货\n ")],1)]):e._e(),1==e.ruleForm.dateType?a("el-form-item",{attrs:{label:"提货有效期",prop:"dynamicStop"}},[e._v("\n 备货完成"),a("el-input-number",{staticClass:"w100 mr5 ml5",attrs:{min:2,controls:!1,precision:0},model:{value:e.ruleForm.dynamicStop,callback:function(t){e.$set(e.ruleForm,"dynamicStop",t)},expression:"ruleForm.dynamicStop"}}),e._v("天后,停止自提\n ")],1):e._e(),2==e.ruleForm.dateType?a("el-form-item",{attrs:{label:"日期范围",prop:"fixedTime"}},[e._l(e.ruleForm.fixedTime,(function(t,i){return a("div",{key:i,staticClass:"mb10"},[a("el-date-picker",{attrs:{"picker-options":e.pickerOptionsEnd,"is-range":"",format:"yy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){return e.limitDataSelect(i,t)}},model:{value:t.dataRange,callback:function(a){e.$set(t,"dataRange",a)},expression:"v.dataRange"}}),i?a("el-button",{staticClass:"delete-btn ml10",attrs:{type:"text"},on:{click:function(a){return e.deleteTime(t)}}},[e._v("删除")]):e._e()],1)})),a("el-button",{attrs:{type:"text",disabled:e.ruleForm.fixedTime.length>=5},on:{click:e.addTime}},[a("i",{staticClass:"el-icon-plus"}),e._v("添加时间")])],2):e._e(),a("el-form-item",{attrs:{label:"超期发货单处理",required:""}},[a("div",[a("el-radio",{attrs:{label:1},model:{value:e.ruleForm.timeoutDealType,callback:function(t){e.$set(e.ruleForm,"timeoutDealType",t)},expression:"ruleForm.timeoutDealType"}},[e._v("到期自动完成核销")])],1),a("div",[a("el-radio",{attrs:{label:2},model:{value:e.ruleForm.timeoutDealType,callback:function(t){e.$set(e.ruleForm,"timeoutDealType",t)},expression:"ruleForm.timeoutDealType"}},[e._v("到期自动关闭发货单,若为销售订单请至应用中查看退款情况")])],1)])]:e._e()],2)},r=[],l={name:"PickupFormContent",props:{ruleForm:{type:Object,default:function(){}}},data:function(){return{pickerOptionsEnd:{disabledDate:function(e){return e.getTime()<new Date((new Date).toLocaleDateString()).getTime()}}}},methods:{addTime:function(){this.ruleForm.fixedTime.push({dataRange:""})},deleteTime:function(e){this.ruleForm.fixedTime.splice(e,1)},limitDataSelect:function(e,t){var a=new Date(t[0]).valueOf(),i=new Date(t[1]).valueOf(),r=this.ruleForm.fixedTime;if(1!=r.length)if(0!==e){for(var l=e-1;l>=0;l--)if(r[l].dataRange){var n=new Date(r[l].dataRange[1]).valueOf();a<=n&&(this.$message.error("日期不可重叠!"),r[e].dataRange=null)}for(var o=e+1;o<r.length;o++)if(r[o].dataRange){var s=new Date(r[o].dataRange[0]).valueOf();(a>=s||i>=s)&&(this.$message.error("日期不可重叠!"),r[e].dataRange=null)}}else for(var c=e+1;c<r.length;c++)if(r[c].dataRange){var d=new Date(r[c].dataRange[0]).valueOf();(a>=d||i>=d)&&(this.$message.error("日期不可重叠!"),r[e].dataRange=null)}}}},n=l,o=(a("445b"),a("2877")),s=Object(o["a"])(n,i,r,!1,null,"1b2ddbf4",null);t["a"]=s.exports},"445b":function(e,t,a){"use strict";a("af5d")},af5d:function(e,t,a){},cdc8:function(e,t,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var i=a("ade3"),r=a("71f6"),l=a("f121");function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var s={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"/address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};s=Object(r["a"])(s,l["f"]),c=Object(r["a"])(c,l["f"]),t["a"]=o(o({},s),c);l["c"].api,l["b"],l["c"].api,l["f"]},e54f:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p20"},[a("div",{staticClass:"pb20 clearfix flex-center"},[a("el-input",{staticClass:"w400 mrAuto",attrs:{"prefix-icon":"el-icon-search",clearable:"",placeholder:"请输入自提点名称进行搜索"},on:{change:e.refresh},model:{value:e.listParams.name,callback:function(t){e.$set(e.listParams,"name",t)},expression:"listParams.name"}}),a("el-select",{staticClass:"more-select mr10",attrs:{placeholder:"批量操作"},on:{change:e.mutiOption}},[a("el-option",{attrs:{disabled:!e.selectList.length,value:0}},[e._v("批量设置")]),a("el-option",{attrs:{disabled:!e.selectList.length,value:1}},[e._v("批量删除")])],1),a("el-button",{attrs:{type:"default"},on:{click:e.exportExcel}},[e._v("导出自提点")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$router.push("/setting/pickup-add")}}},[e._v("新建自提点")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:e.tableList},on:{"selection-change":function(t){e.selectList=t}}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"自提点名称",prop:"name","min-width":"180px;"}}),a("el-table-column",{attrs:{label:"自提点地址",prop:"address","min-width":"180px;"}}),a("el-table-column",{attrs:{label:"联系电话",prop:"phone","min-width":"140px;"}}),a("el-table-column",{attrs:{label:"自提时间可选","min-width":"120px;"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.chooseTimeFlag?"可选":"不可选")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.$router.push("/setting/pickup-edit?id="+t.row.pickupId)}}},[e._v("编辑")]),a("dm-delete",{attrs:{tips:"确认删除?"},on:{confirm:function(a){return e.del(t.row.pickupId)}}},[a("el-button",{attrs:{type:"text"}},[e._v("删除")])],1)]}}])})],1),a("div",{staticClass:"clearfix"},[e.tableList.length?a("dm-pagination",{staticClass:"fr mb0",attrs:{background:"","current-page":e.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":e.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1),a("pickup-update-dialog",{attrs:{"dialog-visible":e.dialogVisible,ids:e.selectList.map((function(e){return e.pickupId}))},on:{"update:dialogVisible":function(t){e.dialogVisible=t},"update:dialog-visible":function(t){e.dialogVisible=t},mutiUpdate:e.mutiUpdate}})],1)},r=[],l=(a("7f7f"),a("fab6")),n=a("cdc8"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"批量设置",visible:e.dialogVisible,width:"700px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.close}},[a("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"160px"}},[a("form-content",{attrs:{"rule-form":e.ruleForm},on:{"update:ruleForm":function(t){e.ruleForm=t},"update:rule-form":function(t){e.ruleForm=t}}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.close}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit()}}},[e._v("确认")])],1)],1)},s=[],c=(a("ac6a"),a("ed08")),d=a("1d16"),u=n["a"].updatePickupStore,p={name:"PickupUpdateDialog",components:{formContent:d["a"]},props:{dialogVisible:{type:Boolean,default:function(){return{}}},ids:{type:Array,default:function(){return[]}}},data:function(){var e=this,t=function(t,a,i){var r=e.ruleForm,l=r.dynamicType,n=r.dynamicH,o=r.dynamicM,s=r.dynamicD;if(1==l){if(Object(c["f"])(n)||Object(c["f"])(o))return void i(new Error("填写不完整"))}else if(Object(c["f"])(s))return void i(new Error("填写不完整"));i()},a=function(t,a,i){var r=e.ruleForm.fixedTime;if(0!=r.length){var l=!1;r.forEach((function(e){e.dataRange&&e.dataRange.length&&e.dataRange[0]&&e.dataRange[1]||(l=!0)})),l?i(new Error("请配置固定日期范围")):i()}else i(new Error("请配置固定日期范围"))};return{ruleForm:{type:1,chooseTimeFlag:0,dateType:1,fixedTime:[{dataRange:""}],dynamicType:1,dynamicH:"",dynamicM:"",dynamicD:"",dynamicStop:"",storeWidgetId:"",timeoutDealType:1},rules:{storeWidgetId:{required:!0,message:"请选择门店",trigger:"change"},dynamicType:{required:!0,validator:t,trigger:"blur"},dynamicStop:{required:!0,message:"请填写提货有效期",trigger:"change"},fixedTime:{required:!0,validator:a,trigger:"change"}}}},methods:{close:function(){this.$emit("update:dialogVisible",!1),this.$refs.ruleForm.resetFields()},handleSubmit:function(){var e=this;this.loading||this.$refs.ruleForm.validate((function(t){if(t){var a=e.ruleForm,i=a.chooseTimeFlag,r=a.dateType,l=a.storeWidgetId,n=a.timeoutDealType,o=a.dynamicType,s=a.dynamicH,c=a.dynamicM,d=a.dynamicD,p=a.dynamicStop,m=a.fixedTime,f={chooseTimeFlag:i,dateType:r,storeWidgetId:l,timeoutDealType:n};i&&(1==f.dateType?f.pickupDateInfo={setType:o,time:1==o?60*s+c:24*d*60,validite:p}:f.pickupDateInfo=m.map((function(e){return{startTime:new Date(e.dataRange[0]).getTime(),endTime:new Date(e.dataRange[0]).getTime()}})),f.pickupDateInfo=JSON.stringify(f.pickupDateInfo)),f.ids=e.ids.join(","),e.loading=!0,u(f).then((function(t){e.loading=!1,e.$tips({message:"修改成功",type:"success"}),e.close(),e.$emit("mutiUpdate")})).catch((function(){e.loading=!1}))}else PublicMethods.jumpToFormError()}))}}},m=p,f=a("2877"),g=Object(f["a"])(m,o,s,!1,null,null,null),h=g.exports,b=n["a"].pickupList,v=n["a"].delPickup,y=n["a"].exportPickup,T={name:"PickupList",components:{pickupUpdateDialog:h},mixins:[l["c"]],data:function(){return{loading:!1,listParams:{name:"",currentPage:1,pageSize:20},total:0,tableList:[],pickedForm:{dialogVisible:!1,selectIdList:[],list:[{timeRange:[]}]},selectList:[],dialogVisible:!1}},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"通用设置"},{breadName:"自提点设置"}])},mounted:function(){this.getTableList()},methods:{exportExcel:function(){var e={dataUrl:"/welfare/setting/pickup-list",name:this.listParams.name};y(e).then((function(e){window.location.href=window.location.origin+"/damo-system/report-list"}))},mutiUpdate:function(){this.selectList=[],this.getTableList()},mutiOption:function(e){0==e&&(this.dialogVisible=!0),1==e&&this.del(this.selectList.map((function(e){return e.pickupId})).join(","))},del:function(e){var t=this;this.loading=!0,v({pickupIds:e}).then((function(e){t.loading=!1,t.$tips({type:"success",message:"操作成功"}),t.getTableList()})).finally((function(){t.loading=!1}))},refresh:function(e){this.listParams.name=e,this.getTableList()},getTableList:function(){var e=this;if(!this.loading){this.loading=!0;var t={name:this.listParams.name,currentPage:this.listParams.currentPage,pageSize:this.listParams.pageSize};b(t).then((function(t){e.loading=!1;var a=t.result;e.tableList=a.result||[],e.total=a.totalCount,0===e.tableList.length&&1!==e.listParams.currentPage&&(e.listParams.currentPage-=1,e.getTableList())})).finally((function(){e.loading=!1}))}}}},k=T,F=Object(f["a"])(k,i,r,!1,null,null,null);t["default"]=F.exports},fab6:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return n}));var i=a("ed08"),r={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.listParams.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.listParams.currentPage=e,this.getTableList()}}},l={methods:{formatterTimeFunc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[r]?(this.listParams[e]=Object(i["e"])(this[r][0],a),this.listParams[t]=Object(i["e"])(this[r][1],a)):this.listParams[e]=this.listParams[t]=""}}},n={methods:{mainHeight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-e}}}}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a7f1670"],{1087:function(t,e,s){t.exports=s.p+"img/eg2.b6ed585a.png"},"1c4c":function(t,e,s){"use strict";var a=s("9b43"),o=s("5ca1"),i=s("4bf8"),r=s("1fa8"),l=s("33a4"),n=s("9def"),c=s("f1ae"),d=s("27ee");o(o.S+o.F*!s("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,s,o,u,p=i(t),f="function"==typeof this?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h,k=0,S=d(p);if(m&&(h=a(h,g>2?arguments[2]:void 0,2)),void 0==S||f==Array&&l(S))for(e=n(p.length),s=new f(e);e>k;k++)c(s,k,m?h(p[k],k):p[k]);else for(u=S.call(p),s=new f;!(o=u.next()).done;k++)c(s,k,m?r(u,h,[o.value,k],!0):o.value);return s.length=k,s}})},"364c":function(t,e,s){"use strict";s("4e5b")},"37c8":function(t,e,s){e.f=s("2b4c")},"3a72":function(t,e,s){var a=s("7726"),o=s("8378"),i=s("2d00"),r=s("37c8"),l=s("86cc").f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:a.Symbol||{});"_"==t.charAt(0)||t in e||l(e,t,{value:r.f(t)})}},"4e5b":function(t,e,s){},"7bbc":function(t,e,s){var a=s("6821"),o=s("9093").f,i={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(t){try{return o(t)}catch(e){return r.slice()}};t.exports.f=function(t){return r&&"[object Window]"==i.call(t)?l(t):o(a(t))}},"839f":function(t,e,s){},"8a81":function(t,e,s){"use strict";var a=s("7726"),o=s("69a8"),i=s("9e1e"),r=s("5ca1"),l=s("2aba"),n=s("67ab").KEY,c=s("79e5"),d=s("5537"),u=s("7f20"),p=s("ca5a"),f=s("2b4c"),g=s("37c8"),h=s("3a72"),m=s("d4c0"),k=s("1169"),S=s("cb7c"),b=s("d3f4"),v=s("4bf8"),y=s("6821"),C=s("6a99"),O=s("4630"),j=s("2aeb"),I=s("7bbc"),w=s("11e9"),F=s("2621"),L=s("86cc"),x=s("0d58"),P=w.f,_=L.f,N=I.f,D=a.Symbol,T=a.JSON,V=T&&T.stringify,$="prototype",B=f("_hidden"),A=f("toPrimitive"),U={}.propertyIsEnumerable,E=d("symbol-registry"),z=d("symbols"),G=d("op-symbols"),M=Object[$],J="function"==typeof D&&!!F.f,q=a.QObject,W=!q||!q[$]||!q[$].findChild,Z=i&&c((function(){return 7!=j(_({},"a",{get:function(){return _(this,"a",{value:7}).a}})).a}))?function(t,e,s){var a=P(M,e);a&&delete M[e],_(t,e,s),a&&t!==M&&_(M,e,a)}:_,R=function(t){var e=z[t]=j(D[$]);return e._k=t,e},H=J&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},K=function(t,e,s){return t===M&&K(G,e,s),S(t),e=C(e,!0),S(s),o(z,e)?(s.enumerable?(o(t,B)&&t[B][e]&&(t[B][e]=!1),s=j(s,{enumerable:O(0,!1)})):(o(t,B)||_(t,B,O(1,{})),t[B][e]=!0),Z(t,e,s)):_(t,e,s)},Q=function(t,e){S(t);var s,a=m(e=y(e)),o=0,i=a.length;while(i>o)K(t,s=a[o++],e[s]);return t},Y=function(t,e){return void 0===e?j(t):Q(j(t),e)},X=function(t){var e=U.call(this,t=C(t,!0));return!(this===M&&o(z,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,B)&&this[B][t])||e)},tt=function(t,e){if(t=y(t),e=C(e,!0),t!==M||!o(z,e)||o(G,e)){var s=P(t,e);return!s||!o(z,e)||o(t,B)&&t[B][e]||(s.enumerable=!0),s}},et=function(t){var e,s=N(y(t)),a=[],i=0;while(s.length>i)o(z,e=s[i++])||e==B||e==n||a.push(e);return a},st=function(t){var e,s=t===M,a=N(s?G:y(t)),i=[],r=0;while(a.length>r)!o(z,e=a[r++])||s&&!o(M,e)||i.push(z[e]);return i};J||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(s){this===M&&e.call(G,s),o(this,B)&&o(this[B],t)&&(this[B][t]=!1),Z(this,t,O(1,s))};return i&&W&&Z(M,t,{configurable:!0,set:e}),R(t)},l(D[$],"toString",(function(){return this._k})),w.f=tt,L.f=K,s("9093").f=I.f=et,s("52a7").f=X,F.f=st,i&&!s("2d00")&&l(M,"propertyIsEnumerable",X,!0),g.f=function(t){return R(f(t))}),r(r.G+r.W+r.F*!J,{Symbol:D});for(var at="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ot=0;at.length>ot;)f(at[ot++]);for(var it=x(f.store),rt=0;it.length>rt;)h(it[rt++]);r(r.S+r.F*!J,"Symbol",{for:function(t){return o(E,t+="")?E[t]:E[t]=D(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in E)if(E[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),r(r.S+r.F*!J,"Object",{create:Y,defineProperty:K,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:st});var lt=c((function(){F.f(1)}));r(r.S+r.F*lt,"Object",{getOwnPropertySymbols:function(t){return F.f(v(t))}}),T&&r(r.S+r.F*(!J||c((function(){var t=D();return"[null]"!=V([t])||"{}"!=V({a:t})||"{}"!=V(Object(t))}))),"JSON",{stringify:function(t){var e,s,a=[t],o=1;while(arguments.length>o)a.push(arguments[o++]);if(s=e=a[1],(b(e)||void 0!==t)&&!H(t))return k(e)||(e=function(t,e){if("function"==typeof s&&(e=s.call(this,t,e)),!H(e))return e}),a[1]=e,V.apply(T,a)}}),D[$][A]||s("32e9")(D[$],A,D[$].valueOf),u(D,"Symbol"),u(Math,"Math",!0),u(a.JSON,"JSON",!0)},"91ef":function(t,e,s){},ac4d:function(t,e,s){s("3a72")("asyncIterator")},cbbc:function(t,e,s){"use strict";s("ea8a")},cdc8:function(t,e,s){"use strict";s("8e6e"),s("ac6a"),s("456d");var a=s("ade3"),o=s("71f6"),i=s("f121");function r(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function l(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?r(Object(s),!0).forEach((function(e){Object(a["a"])(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var n={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};n=Object(o["a"])(n,i["f"]),c=Object(o["a"])(c,i["f"]),e["a"]=l(l({},n),c);i["c"].api,i["b"],i["c"].api,i["f"]},d4c0:function(t,e,s){var a=s("0d58"),o=s("2621"),i=s("52a7");t.exports=function(t){var e=a(t),s=o.f;if(s){var r,l=s(t),n=i.f,c=0;while(l.length>c)n.call(t,r=l[c++])&&e.push(r)}return e}},d63a:function(t,e,s){"use strict";s("839f")},ea8a:function(t,e,s){},fdf5:function(t,e,s){"use strict";s("91ef")},ffec:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"from-content"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"goodsForm",staticClass:"demo-ruleForm",attrs:{model:t.goodsForm,rules:t.goodsRules,"label-width":"150px","label-position":"right"}},[a("div",{staticClass:"form-section"},[a("h3",[t._v("基础信息")]),a("el-form-item",{staticClass:"w-630",attrs:{label:"福利渠道"}},[t._v(t._s(t.enterpriseName))]),a("el-form-item",{staticClass:"w-630",attrs:{label:"礼品名称",prop:"giftName"}},[a("dm-input",{attrs:{"byte-type":1,type:"text","show-word-limit":"",maxlength:30,placeholder:"请输入礼品名称"},model:{value:t.goodsForm.giftName,callback:function(e){t.$set(t.goodsForm,"giftName",e)},expression:"goodsForm.giftName"}})],1),a("el-form-item",{attrs:{label:"礼品主图",required:""}},[a("div",{staticClass:"member-upload-image"},[a("div",{staticClass:"member-upload-image"},[a("dm-upload-picture",{attrs:{"action-url":t.actionUrl,"image-list":t.image,"max-image-length":t.maxlength,accept:"image/jpeg, image/jpg, image/png, image/gif","before-upload":t.beforeUpload},on:{uploadOnSuccess:t.uploadOnSuccess,deleteImage:t.deleteImage}})],1),a("span",{staticClass:"tip-warm",staticStyle:{display:"block"}},[t._v("图片建议尺寸800*800px,格式jpg/png/gif,大小1MB以内,你可以拖拽图片调整顺序,最多上传 5 张")])])]),a("el-form-item",{attrs:{label:"礼品详情"}},[a("dm-editor",{attrs:{width:t.editorWidth,value:t.goodsForm.giftDescrption},on:{change:t.handleChange}})],1)],1),a("div",{staticClass:"form-section"},[a("h3",[t._v("规格/库存信息")]),a("el-form-item",{attrs:{label:"礼品规格"}},[a("div",{staticClass:"standard-info"},[a("div",{staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"add-sku-content"},[t.goodsStandardInfo.length?a("div",{staticClass:"add-sku-list"},t._l(t.goodsStandardInfo,(function(e,s){return a("div",{key:s,staticClass:"add-sku-item"},[a("div",{staticClass:"sku-name"},[a("span",{staticClass:"sku-title"},[t._v("规格名:")]),a("span",{staticStyle:{display:"none"}},[t._v(t._s(t.refash))]),a("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start"},on:{command:function(s){return t.getSelected(s,e)}}},[a("el-input",{staticStyle:{width:"100px"},attrs:{size:"smalll",placeholder:"请选择"},on:{input:function(s){return t.spliceStandard(s,e)},focus:function(s){return t.getStdList(e)},blur:function(s){return t.addStandard(e)}},model:{value:e.specName,callback:function(s){t.$set(e,"specName",s)},expression:"item.specName"}}),a("el-dropdown-menu",{staticStyle:{height:"300px","overflow-y":"auto","min-width":"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.standardList,(function(e){return a("el-dropdown-item",{key:e.specId,staticStyle:{width:"200px"},attrs:{command:e}},[t._v(t._s(e.specName))])})),1)],1),s?t._e():a("el-checkbox",{staticClass:"ml20",on:{change:t.stdImgUpload},model:{value:t.isStdImg,callback:function(e){t.isStdImg=e},expression:"isStdImg"}},[t._v("添加规格图片")]),a("span",{staticClass:"delete-btn",on:{click:function(e){return t.deleteSku(s)}}},[a("i",{staticClass:"el-icon-error inline-block",staticStyle:{width:"14px",height:"14px"}})])],1),e.specName?a("div",{staticClass:"value-content"},[a("span",{staticClass:"sku-value-title"},[t._v("规格值:")]),a("span",{staticStyle:{display:"none"}},[t._v(t._s(t.refash))]),a("div",{staticClass:"value-list"},[t._l(e.valueList,(function(o,i){return a("div",{key:i,staticClass:"value-item"},[a("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start"},on:{command:function(s){return t.getSelectedValue(s,e,i)}}},[a("el-input",{staticStyle:{width:"160px"},attrs:{size:"smalll",placeholder:"请选择"},on:{input:function(s){return t.spliceStandardValue(s,e)},focus:function(s){return t.getStdValueList(t.value,e)},blur:function(s){return t.addStandardValue(e,i)}},model:{value:o.specStandardValueName,callback:function(e){t.$set(o,"specStandardValueName",e)},expression:"v.specStandardValueName"}}),a("el-dropdown-menu",{staticStyle:{height:"300px","overflow-y":"auto","min-width":"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.standardValueList,(function(e){return a("el-dropdown-item",{key:e.specValueId,staticStyle:{width:"200px"},attrs:{command:e}},[t._v(t._s(e.specValue))])})),1)],1),!s&&t.isStdImg?a("div",{staticClass:"table-img"},[a("div",{staticClass:"triangle"}),a("el-upload",{staticClass:"avatar-uploader",attrs:{action:t.uploadAction,"show-file-list":!1,"with-credentials":"","on-success":function(e,s,a){return t.tableUploadSuccess(e,s,a,o)},"before-upload":t.tableBeforeUpload}},[o.propImg?a("img",{staticClass:"avatar",attrs:{src:o.propImg}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon",staticStyle:{"font-size":"28px"}})]),o.propImg?a("p",{staticClass:"img-modal"},[a("i",{staticClass:"el-icon-delete",on:{click:function(e){return t.deleteImg(o)}}})]):t._e(),a("p",{staticStyle:{"font-size":"12px",color:"#FF5152",position:"absolute",bottom:"-32px"}},[t._v("请添加规格图片")])],1):t._e(),a("span",{staticClass:"el-icon-error",on:{click:function(a){return t.deleteValue(e,o,s,i)}}})],1)})),a("el-button",{attrs:{type:"text"},on:{click:function(s){return t.addValue(e)}}},[t._v("添加规格值")]),!s&&t.isStdImg?a("p",{staticStyle:{"font-size":"12px",color:"rgb(144, 147, 153)","margin-top":"129px"}},[t._v("仅支持为第一组规格设置规格图片,买家选择不同规格会看到对应规格图片,建议尺寸 800*800px。")]):t._e()],2)]):t._e()])})),0):t._e(),a("div",{staticClass:"add-sku"},[a("div",{staticClass:"add-sku-button"},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.goodsStandardInfo.length<3,expression:"goodsStandardInfo.length < 3"}],attrs:{type:"text"},on:{click:t.addSku}},[t._v("添加规格项目")])],1)])]),a("p",{staticClass:"tip-warm w-900"},[t._v("如有颜色、尺码等多种规格参数,请添加商品规格")])]),t.goodsSkuList.length>0&&t.goodsStandardInfo.length>0?a("div",{staticClass:"sku-table-content"},[a("el-table",{staticClass:"sku-table",attrs:{data:t.goodsSkuList,"span-method":t.objectSpanMethod,"header-cell-class-name":t.starAdd}},[t._l(t.skuCols,(function(e,s){return a("el-table-column",{key:e,attrs:{label:e,"class-name":s==t.skuCols.length-1?"pad-l-20":"right-border"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.cols[s]))]}}],null,!0)},[a("span",{staticStyle:{display:"none"}},[t._v(t._s(t.refash))])])})),a("el-table-column",{attrs:{label:"成本",width:"145px;"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"el-form-item",class:t.skuSellObj[e.row.mapId].giftSkuCostPriceStatus?"":"is-error"},[t.skuSellObj[e.row.mapId]?a("dm-input-amount",{staticClass:"input-number mr10",attrs:{width:"125px",max:999999.99,min:0,precision:2,"controls-position":"right"},on:{blur:function(s){return t.handleValidIntegral(t.skuSellObj[e.row.mapId].giftSkuCostPrice,e.row.mapId,2)}},model:{value:t.skuSellObj[e.row.mapId].giftSkuCostPrice,callback:function(s){t.$set(t.skuSellObj[e.row.mapId],"giftSkuCostPrice","string"===typeof s?s.trim():s)},expression:"skuSellObj[scope.row.mapId].giftSkuCostPrice"}}):t._e()],1)]}},{key:"header",fn:function(){return[a("span",[t._v("成本")]),a("el-popover",{ref:"popover3",attrs:{placement:"top",trigger:"click"}},[a("div",[a("dm-input-amount",{staticStyle:{"margin-left":"-2px"},attrs:{width:"140","controls-position":"right",precision:"2",min:0,max:999999.99},model:{value:t.handleData.giftSkuCostPrice,callback:function(e){t.$set(t.handleData,"giftSkuCostPrice","string"===typeof e?e.trim():e)},expression:"handleData.giftSkuCostPrice"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover3.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleCostPrice}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0}],null,!1,1062755650)}),a("el-table-column",{attrs:{label:"可占库存",width:"190px;"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"el-form-item",class:t.skuSellObj[e.row.mapId].stockStatus?"":"is-error"},[t.skuSellObj[e.row.mapId]?a("dm-input-number",{staticClass:"input-number mr10",attrs:{width:"125px",max:999999,min:0,precision:0,"controls-position":"right"},on:{input:t.handleSpuStock,blur:function(s){return t.handleValidStock(t.skuSellObj[e.row.mapId].stock,e.row.mapId,2)}},model:{value:t.skuSellObj[e.row.mapId].stock,callback:function(s){t.$set(t.skuSellObj[e.row.mapId],"stock","string"===typeof s?s.trim():s)},expression:"skuSellObj[scope.row.mapId].stock"}}):t._e()],1)]}},{key:"header",fn:function(){return[a("span",[t._v("可占库存")]),a("el-popover",{ref:"popover2",attrs:{placement:"top",trigger:"click"}},[a("div",[a("dm-input-number",{staticStyle:{"margin-left":"-2px"},attrs:{width:"140","controls-position":"right",precision:"0",min:0,max:999999},model:{value:t.handleData.stock,callback:function(e){t.$set(t.handleData,"stock","string"===typeof e?e.trim():e)},expression:"handleData.stock"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover2.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleStock}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0}],null,!1,279664430)}),a("el-table-column",{attrs:{label:"sku编码"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.skuSellObj[e.row.mapId]?a("el-input",{attrs:{type:"text",placeholder:"请输入"},on:{blur:function(s){return t.handleValiedSkuCode(t.skuSellObj[e.row.mapId].giftSkuCode,e.row.mapId,2)}},model:{value:t.skuSellObj[e.row.mapId].giftSkuCode,callback:function(s){t.$set(t.skuSellObj[e.row.mapId],"giftSkuCode","string"===typeof s?s.trim():s)},expression:"skuSellObj[scope.row.mapId].giftSkuCode"}}):t._e()]}},{key:"header",fn:function(){return[a("span",[t._v("sku编码")]),a("el-popover",{ref:"popover1",attrs:{placement:"top",trigger:"click"}},[a("div",[a("el-input",{staticClass:"hidden-limit",staticStyle:{"margin-left":"-2px"},attrs:{width:"140"},on:{blur:function(e){return t.handleValiedSkuCode(t.handleData.giftSkuCode,"",1)}},model:{value:t.handleData.giftSkuCode,callback:function(e){t.$set(t.handleData,"giftSkuCode","string"===typeof e?e.trim():e)},expression:"handleData.giftSkuCode"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover1.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleSkuCode}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0}],null,!1,2978947314)}),a("el-table-column",{staticStyle:{width:"120px"},attrs:{label:"礼品条形码"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.skuSellObj[e.row.mapId]?a("el-input",{attrs:{type:"text",placeholder:"请输入"},on:{blur:function(s){return t.handleValiedskuBarCode(t.skuSellObj[e.row.mapId].skuBarCode,e.row.mapId,2)}},model:{value:t.skuSellObj[e.row.mapId].skuBarCode,callback:function(s){t.$set(t.skuSellObj[e.row.mapId],"skuBarCode","string"===typeof s?s.trim():s)},expression:"skuSellObj[scope.row.mapId].skuBarCode"}}):t._e()]}},{key:"header",fn:function(){return[a("span",[t._v("礼品条形码")]),a("el-popover",{ref:"popover",attrs:{placement:"top",trigger:"click"}},[a("div",[a("el-input",{staticClass:"hidden-limit",staticStyle:{"margin-left":"-2px"},attrs:{width:"140"},on:{blur:function(e){return t.handleValiedskuBarCode(t.handleData.skuBarCode,"",1)}},model:{value:t.handleData.skuBarCode,callback:function(e){t.$set(t.handleData,"skuBarCode","string"===typeof e?e.trim():e)},expression:"handleData.skuBarCode"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleBarCode}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0}],null,!1,1879306251)})],2)],1):t._e()])]),a("el-form-item",{staticClass:"w-630",attrs:{label:"成本",prop:"costPrice"}},[a("dm-input-amount",{attrs:{width:"180",min:0,max:999999.99,precision:2,disabled:t.goodsStandardInfo.length>0},model:{value:t.goodsForm.costPrice,callback:function(e){t.$set(t.goodsForm,"costPrice",e)},expression:"goodsForm.costPrice"}})],1),a("el-form-item",{staticClass:"w-630",attrs:{label:"可占用库存",prop:"stock"}},[a("dm-input-number",{attrs:{width:"180",min:0,max:999999,precision:0,disabled:t.goodsStandardInfo.length>0},model:{value:t.goodsForm.stock,callback:function(e){t.$set(t.goodsForm,"stock",e)},expression:"goodsForm.stock"}})],1),a("el-form-item",{attrs:{prop:"marketPrice",label:"市场价:"}},[a("dm-input-amount",{attrs:{width:"180",min:0,max:999999.99,precision:2},model:{value:t.goodsForm.marketPrice,callback:function(e){t.$set(t.goodsForm,"marketPrice",e)},expression:"goodsForm.marketPrice"}}),a("div",[a("span",{staticClass:"tip-warm"},[t._v("市场价在礼品详情会以划线形式显示。")]),a("el-popover",{attrs:{placement:"top-start",width:"395",trigger:"hover"}},[a("img",{staticStyle:{width:"360px"},attrs:{src:s("1087"),alt:""}}),a("el-button",{staticStyle:{"margin-left":"15px"},attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看示例")])],1)],1)],1),a("el-form-item",{staticClass:"w-630",attrs:{label:"礼品编码",prop:"giftNo",rules:[{validator:t.validateGoodsCode,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入"},model:{value:t.goodsForm.giftNo,callback:function(e){t.$set(t.goodsForm,"giftNo",e)},expression:"goodsForm.giftNo"}})],1),a("el-form-item",{staticClass:"w-630",attrs:{label:"礼品条形码",prop:"giftBarNo",rules:[{validator:t.validateGoodsBarCode,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入"},model:{value:t.goodsForm.giftBarNo,callback:function(e){t.$set(t.goodsForm,"giftBarNo",e)},expression:"goodsForm.giftBarNo"}})],1)],1),a("div",{staticClass:"form-section"},[a("h3",[t._v("福利设置")]),a("el-form-item",{attrs:{label:"配送方式",prop:"deliveryList"}},[[a("el-checkbox-group",{on:{change:t.changeDelivery},model:{value:t.goodsForm.deliveryList,callback:function(e){t.$set(t.goodsForm,"deliveryList",e)},expression:"goodsForm.deliveryList"}},[a("el-checkbox",{attrs:{label:"1"}},[t._v("快递发货")]),a("el-checkbox",{attrs:{label:"2"}},[t._v("门店自提")])],1)]],2),2==t.goodsForm.deliveryType||2==t.goodsForm.deliveryList.length?a("el-form-item",{attrs:{label:"设置自提点"}},[[a("select-pickup-store",{attrs:{"gift-id":t.giftId,"is-edit":t.isEdit,data:t.diliveryData},on:{change:t.changeStoreSelect}})]],2):t._e(),a("el-form-item",{attrs:{label:"库存消耗方式",prop:"checkList"}},[[a("el-checkbox-group",{attrs:{disabled:t.isEdit},on:{change:t.changeStockUse},model:{value:t.goodsForm.checkList,callback:function(e){t.$set(t.goodsForm,"checkList",e)},expression:"goodsForm.checkList"}},[a("el-checkbox",{attrs:{label:"0"}},[a("el-tooltip",{staticClass:"tips-content",attrs:{effect:"dark","open-delay":"200","popper-class":"store-tips",placement:"top-start"}},[a("div",{staticStyle:{width:"245px"},attrs:{slot:"content"},slot:"content"},[t._v("固定库存:通过占用的方式获得固定可用库存,不会被其他应用/活动所消耗。")]),a("span",{staticClass:"inline-block ml30 dash-style"},[t._v("固定库存")])])],1),a("el-checkbox",{staticStyle:{"margin-left":"50px"},attrs:{label:"1"}},[a("el-tooltip",{staticClass:"tips-content",attrs:{effect:"dark","open-delay":"200","popper-class":"store-tips",placement:"top-start"}},[a("div",{staticStyle:{width:"245px"},attrs:{slot:"content"},slot:"content"},[t._v("实时库存:不占用库存,使用福利中心“可占库存”,与其他应用使用同个库存。")]),a("span",{staticClass:"inline-block ml30 dash-style"},[t._v("实时库存")])])],1)],1)]],2)],1),a("div",{staticClass:"form-section"},[a("h3",[t._v("售后服务")]),a("el-form-item",{attrs:{prop:"refundFlag",label:"支持申请退货"}},[[a("div",[a("el-radio",{attrs:{label:1},model:{value:t.goodsForm.refundFlag,callback:function(e){t.$set(t.goodsForm,"refundFlag",e)},expression:"goodsForm.refundFlag"}},[t._v("是")]),a("el-radio",{attrs:{label:0},model:{value:t.goodsForm.refundFlag,callback:function(e){t.$set(t.goodsForm,"refundFlag",e)},expression:"goodsForm.refundFlag"}},[t._v("否")])],1),a("span",{staticClass:"tip-warm",staticStyle:{display:"block"}},[t._v("若商品不支持退货,则该礼品出库后不支持生成退货单")])]],2)],1),a("div",{staticClass:"form-section mb56"},[a("h3",[t._v("权限设置")]),a("el-form-item",{attrs:{label:"操作人权限",required:""}},[a("dm-acc-group-select",{attrs:{etype:t.goodsForm.operAuthType,"group-ids":t.goodsForm.operAuthPre},on:{"update:etype":function(e){return t.$set(t.goodsForm,"operAuthType",e)},"update:groupIds":function(e){return t.$set(t.goodsForm,"operAuthPre",e)},"update:group-ids":function(e){return t.$set(t.goodsForm,"operAuthPre",e)},change:t.updateGroupList}})],1)],1),a("div",{staticClass:"fixed-btn"},[t.isEdit?a("dm-perm-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("goodsForm")}}},[t._v("保存")]):a("dm-perm-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("goodsForm")}}},[t._v("确认新建")])],1)])],1)])},o=[],i=(s("ac4d"),s("8a81"),s("5df3"),s("1c4c"),s("7f7f"),s("6b54"),s("456d"),s("c5f6"),s("7514"),s("ac6a"),s("28a5"),s("b775")),r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-select",{staticStyle:{width:"160px"},attrs:{value:isNaN(Number(t.data.shopSelectType))?"":Number(t.data.shopSelectType)},on:{change:t.onTypeChange}},t._l(t.pickupType,(function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),1==t.data.shopSelectType?s("el-popover",{attrs:{placement:"bottom-start",trigger:"click"},model:{value:t.isFocus,callback:function(e){t.isFocus=e},expression:"isFocus"}},[s("el-input",{class:["transfer-trigger",{"is-focus":t.isFocus}],attrs:{slot:"reference",placeholder:"请选择自提点",value:t.data.shopCodeList.length>0?"已选择 "+t.data.shopCodeList.length+" 家":""},slot:"reference"},[s("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})]),s("el-transfer",{staticClass:"transfer",attrs:{filterable:"","filter-placeholder":"请输入门店名称/code",value:t.data.shopCodeList,titles:["所有门店","已选门店"],"filter-method":t.onFilterStore,props:{key:"storeCode",label:"name"},data:t.pickupList},on:{change:t.onTransferChange},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.option;return s("div",{staticClass:"transfer-item"},[a.nameIsOverflow?s("el-tooltip",{attrs:{"popper-class":"transfer-tip",content:a.name,placement:"top-start"}},[s("p",{staticClass:"store-name"},[t._v(t._s(a.name))])]):s("p",{staticClass:"store-name"},[t._v(t._s(a.name||"--"))]),s("p",{staticClass:"store-code"},[t._v(t._s(a.storeCode||"--"))])],1)}}],null,!1,4285914963)})],1):t._e(),2==t.data.shopSelectType?s("div",{staticClass:"pickup-upload"},[s("dm-upload-file",{attrs:{accept:".xls,.xlsx","with-credentials":"",action:t.api.giftShopListUpload,headers:{isControl:!0},data:{giftId:t.giftId},"show-file-list":!1,"before-upload":t.onBeforeUpload,"on-success":t.onUploadSucc},scopedSlots:t._u([{key:"file-item",fn:function(e){var a=e.fileData;return s("div",{},[t._v(t._s(a.name))])}}],null,!1,3425605837)},[s("el-button",{staticClass:"upload-trigger"},[s("i",{staticClass:"iconfont-components4 icon-cp-shangc upload-icon"}),t._v(" 上传")]),s("div",{staticClass:"upload-tip",attrs:{slot:"tip"},slot:"tip"},[s("el-button",{staticStyle:{"margin-right":"30px"},attrs:{type:"text"},on:{click:t.onDownloadTemplate}},[t._v("下载文件模板")]),s("el-popover",{attrs:{trigger:"click",placement:"right","popper-class":"upload-popper"}},[s("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看导入规则")]),s("div",{staticClass:"upload-tip-text"},[s("p",[t._v("1. 自提点code请至自提设置中导出;"),s("el-button",{attrs:{type:"text"},on:{click:t.toSetting}},[t._v("前去设置")])],1),s("p",[t._v("2. 重新导入后将会覆盖原有全部门店;")]),s("p",[t._v("3. 上传完整仅支持.xlsx .xls文件的导入,填充数据不超过“5000”条。")])])],1)],1)],1),t.isEdit&&0==t.uploadFile.status?s("div",{staticClass:"pickup-list"},[s("p",{staticClass:"pickup-list-total"},[t._v("\n 共上传"),s("span",{staticClass:"pickup-list-number"},[t._v(t._s(t.data.shopNum||0))]),t._v("个自提点\n "),s("el-button",{staticClass:"download-pickup",attrs:{type:"text"},on:{click:t.downloadPickup}},[s("i",{staticClass:"iconfont-welfare4 icon-xiazai download-icon"})])],1)]):t._e(),1==t.uploadFile.status?s("div",{staticClass:"pickup-list"},[s("p",{staticClass:"pickup-list-name"},[s("i",{staticClass:"iconfont-welfare4 icon-wenjian1 file-icon"}),t._v("\n "+t._s(t.uploadFile.name)+"\n "),s("el-button",{staticClass:"download-pickup",attrs:{type:"text"},on:{click:t.downloadPickup}},[s("i",{staticClass:"iconfont-welfare4 icon-xiazai download-icon"})])],1),s("p",{staticClass:"pickup-list-total"},[t._v("\n 成功"),s("span",{staticClass:"pickup-list-success"},[t._v(t._s(t.uploadFile.successNum||0))]),t._v("个,失败"),s("span",{staticClass:"pickup-list-error"},[t._v(t._s(t.uploadFile.errorNum||0))]),t._v("个。\n "),t.uploadFile.errorNum?s("el-button",{attrs:{type:"text"},on:{click:function(e){t.showErrorList=!0}}},[t._v("查看失败原因")]):t._e()],1)]):t._e()],1):t._e(),s("el-dialog",{staticClass:"error-list",attrs:{title:"查看失败原因",visible:t.showErrorList,width:"500"},on:{"update:visible":function(e){t.showErrorList=e}}},t._l(t.uploadFile.errorList,(function(e,a){return s("div",{key:a,staticClass:"error-item"},[t._v(t._s(e))])})),0)],1)},l=[],n=s("f121"),c=s("cdc8"),d=c["a"].getPickupList,u={name:"SelectPickupStore",props:{isEdit:{type:Boolean,default:!1},giftId:String,data:{type:Object,default:function(){return{shopSelectType:"",shopCodeList:[],shopNum:""}}}},data:function(){return{api:{giftShopListUpload:"".concat(n["f"],"/gift/gift-shop-list-upload"),giftShopListDownload:"".concat(n["f"],"/gift/gift-shop-list-download"),downloadGiftTemplate:"/static/自提点模板.xlsx"},pickupType:[{label:"所有门店",value:0},{label:"部分门店",value:1},{label:"批量导入",value:2}],isFocus:!1,pickupList:[],uploadFile:{status:0,name:"text",successNum:0,errorNum:0,errorList:[]},showErrorList:!1}},created:function(){this.init()},mounted:function(){document.addEventListener("click",this.onClosePopover,!0),document.addEventListener("visibilitychange",this.init)},beforeDestroy:function(){document.removeEventListener("click",this.onClosePopover,!0),document.removeEventListener("visibilitychange",this.init)},methods:{init:function(){var t=this;if("visible"==document.visibilityState){this.pickupList=[];var e=function e(s){d({currentPage:s,pageSize:20}).then((function(a){var o=a.result||{},i=o.result;Array.isArray(i)&&i.length>0&&(t.pickupList=t.pickupList.concat(i.map((function(e){return e.nameIsOverflow=t.getOffsetWidth(e.name)>129,e}))),e(s+1))}))};e(1)}},getOffsetWidth:function(t){var e=document.createElement("span");e.style.position="fixed",e.style.top="-100%",e.style.left="-100%",e.style.zIndex=-1,e.style.opacity=0,e.innerHTML=t,document.body.appendChild(e);var s=e.offsetWidth;return document.body.removeChild(e),s},onTypeChange:function(t){this.isFocus=!1,this.$emit("change",Object.assign({},this.data,{shopSelectType:t,shopCodeList:[],shopImportUuid:""}))},onTransferChange:function(t){this.$emit("change",Object.assign({},this.data,{shopCodeList:t}))},onFilterStore:function(t,e){return"string"==typeof e.name&&e.name.indexOf(t)>=0||e.storeCode.toString().indexOf(t)>=0},onClosePopover:function(t){var e=t.target.parentNode;e&&e.parentNode.className.indexOf("el-select")>=0&&(this.isFocus=!1)},toSetting:function(){window.open("".concat(n["e"],"/welfare/setting/pickup-list"))},onDownloadTemplate:function(){var t="/welfare";window.location.href="".concat(t).concat(this.api.downloadGiftTemplate)},onBeforeUpload:function(t){this.uploadFile.name=t.name,this.uploadFile.status=2},onUploadSucc:function(t){var e=t.result,s=e.successNum,a=e.errorNum,o=e.errorList;while(o.length<5)o.push("第一行:code 填入值格式不合法");Object.assign(this.uploadFile,{status:1,successNum:s,errorNum:a,errorList:o})},downloadPickup:function(){window.location.href="".concat(n["e"]).concat(this.api.giftShopListDownload,"?giftId=").concat(this.giftId)}}},p=u,f=(s("cbbc"),s("364c"),s("2877")),g=Object(f["a"])(p,r,l,!1,null,"291fc1e2",null),h=g.exports,m=s("ed08"),k=s("2934");function S(t,e){var s;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(s=b(t))||e&&t&&"number"===typeof t.length){s&&(t=s);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}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 i,r=!0,l=!1;return{s:function(){s=t[Symbol.iterator]()},n:function(){var t=s.next();return r=t.done,t},e:function(t){l=!0,i=t},f:function(){try{r||null==s.return||s.return()}finally{if(l)throw i}}}}function b(t,e){if(t){if("string"===typeof t)return v(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=new Array(e);s<e;s++)a[s]=t[s];return a}var y=c["a"].giftStandardList,C=c["a"].giftStandardNew,O=c["a"].giftStandardValueList,j=c["a"].giftStandardValueNew,I=c["a"].giftGet,w=c["a"].giftUpdate,F=c["a"].giftSave,L=c["a"].getGiftId,x=c["a"].getGiftShopList,P={components:{selectPickupStore:h},data:function(){var t=function(t,e,s){if(e){if(e.split("").length>32)return s(new Error("礼品编码最多32位"));var a=/^[A-Za-z0-9\-\—]{1,32}$/;if(!a.test(e))return s(new Error("礼品编码只支持数字或字母或-或—"));s()}else s()},e=function(t,e,s){if(e){if(e.split("").length>32)return s(new Error("礼品条形码最多32位"));var a=/^[a-zA-Z0-9]{1,32}$/;if(!a.test(e))return s(new Error("礼品条形码只能是数字或字母"));s()}else s()};return{uploadUrl:k["a"],bread:[{breadName:"福利中心"},{breadName:"礼品管理"},{breadPath:"/gift-manage/real-gift",breadName:"实物礼品"},{breadName:"新建礼品"}],banthStockType:0,goodsForm:{enterpriseName:"",giftName:"",marketPrice:"",spuList:[{giftNo:"",costPrice:void 0,stock:void 0,giftBarNo:""}],giftImages:"",giftDescrption:"",limitTimeBegin:"",checkList:[],refundFlag:0,operAuthType:"",operAuth:"",operAuthPre:[],shopCodeList:[],deliveryType:[],stockUseType:"",deliveryList:[],costPrice:"",stock:void 0,giftNo:"",giftBarNo:""},pickerOptions:{disabledDate:function(t){return t.getTime()<(new Date).getTime()}},goodsRules:{giftName:[{required:!0,message:"请输入礼品名称",trigger:"blur"}],costPrice:[{required:!0,message:"请输入成本",trigger:"blur"}],stock:[{required:!0,message:"请输入可占用库存",trigger:"blur"}],refundFlag:[{required:!0,message:"请选择是否支持退款",trigger:"change"}],deliveryList:[{required:!0,message:"请选择配送方式",trigger:"change"}],checkList:[{required:!0,message:"请选择库存消耗方式",trigger:"change"}],operAuthType:[{required:!0,message:"请选择操作人权限",trigger:"change"}]},validateGoodsCode:t,validateGoodsBarCode:e,goodsStandardInfo:[],standardList:[],searchStandard:"",standardValueList:[],searchStandardValue:"",goodsSkuList:[],skuCols:[],stValCount:[],skuSellObj:{},skuSellObj2:{},stockObj:{},isStdImg:!1,cordList:[],giftId:"",gooodsId:"",editorWidth:900,refash:!1,actionUrl:"/api-plug/upload-images",maxlength:5,image:[],uploadAction:window.location.origin+"/welfare/upload/upload-image",openStorePick:0,btnLoading:!1,loading:!1,enterpriseName:"",handleData:{giftSkuCostPrice:"",stock:void 0,giftSkuCode:"",skuBarCode:""},isEdit:!1,diliveryData:{shopSelectType:"",shopCodeList:[],shopNum:""}}},mounted:function(){this.$emit("updateBread",this.bread),this.$emit("showAside",!0),this.getLoginUser(),this.giftId=this.$route.query.giftId,this.giftId?(this.bread[3].breadName="编辑礼品",this.getMess(),this.isEdit=!0,this.getShopList()):this.getGiftId(),this.getStandardList()},methods:{getGiftId:function(){var t=this;L().then((function(e){"0000"===e.code?t.giftId=e.result:t.$message.error(e.message)}))},starAdd:function(t){if("可占库存"===t.column.label||"成本"===t.column.label)return"star"},updateGroupList:function(t){},changeDelivery:function(t){t.length>1?this.goodsForm.deliveryType="1,2":this.goodsForm.deliveryType=t[0]},changeStoreSelect:function(t){this.diliveryData.shopSelectType=t.shopSelectType,this.diliveryData.shopCodeList=t.shopCodeList,this.diliveryData.shopNum=t.shopNum},changeStockUse:function(t){t.length>1?this.goodsForm.stockUseType=2:this.goodsForm.stockUseType=t[0]},getLoginUser:function(){var t=this;Object(i["a"])({url:"/gic-auth-web/user/get-login-user"}).then((function(e){t.enterpriseName=e.result.enterpriseName}))},getShopList:function(){var t=this;x({id:this.giftId}).then((function(e){"0000"===e.code?e.result.forEach((function(e){t.diliveryData.shopCodeList.push(e.shopCode)})):t.$message.error(e.message)}))},getMess:function(){var t=this,e={id:this.giftId};this.$emit("updateLoading"),I(e).then((function(e){if("0000"===e.code){var s=e.result;t.goodsForm.giftName=s.giftName,t.goodsForm.marketPrice=s.marketPrice,t.goodsForm.stock=s.stock,t.goodsForm.giftNo=s.giftNo,t.goodsForm.giftBarNo=s.giftBarNo,t.goodsForm.operAuthType=s.operAuthType,t.goodsForm.operAuthPre=s.operAuth?s.operAuth.split(","):[],t.goodsForm.checkList=2==s.stockUseType?["1","0"]:1==s.stockUseType?["1"]:["0"],t.goodsForm.deliveryType=s.deliveryType,"1,2"==t.goodsForm.deliveryType?t.goodsForm.deliveryList=["1","2"]:t.goodsForm.deliveryList=[t.goodsForm.deliveryType],t.diliveryData.shopSelectType=s.shopSelectType,t.goodsForm.giftImages=s.giftImages,t.goodsForm.stockUseType=s.stockUseType;var a=s.giftImages.split(",");if(a.length){var o,i=S(a);try{for(i.s();!(o=i.n()).done;){var r=o.value;t.image.push({url:r})}}catch(y){i.e(y)}finally{i.f()}}t.goodsForm.giftDescrption=s.giftDescrption,t.goodsForm.refundFlag=s.refundFlag,t.goodsStandardInfo=s.giftSpecInfo?JSON.parse(s.giftSpecInfo):[];var l=s.skuList||[];if(t.goodsStandardInfo.length>0)if(l.length>1){var n=[];for(var c in l)n.push(l[c].giftSkuCostPrice);var d=Math.max.apply(null,n),u=Math.min.apply(null,n);t.goodsForm.costPrice=d===u?u:u+"~"+d}else 1===l.length&&(t.goodsForm.costPrice=l[0].giftSkuCostPrice);else t.goodsForm.costPrice=s.costPrice;var p=[],f={};if(l.length>0){for(var g=0;g<l.length;g++)if(p.push({mapId:"",id:[],giftSkuId:l[g].giftSkuId,giftSkuCostPrice:l[g].giftSkuCostPrice,giftSkuCode:l[g].giftSkuCode,skuBarCode:l[g].skuBarCode,stock:l[g].stock,giftSkuStrand:l[g].giftSkuStrand,giftId:l[g].giftId}),l[g].giftSkuStrand){for(var h=0;h<JSON.parse(l[g].giftSkuStrand).length;h++)p[g].id.push(JSON.parse(l[g].giftSkuStrand)[h].specStandardValueId);p[g].mapId=p[g].id.join("_")}var k,b=S(p);try{for(b.s();!(k=b.n()).done;){var v=k.value;f[v.mapId]={skuBarCode:v.skuBarCode,giftSkuCode:v.giftSkuCode,giftSkuCostPrice:v.giftSkuCostPrice,stock:v.stock,giftSkuCostPriceStatus:!0,stockStatus:!0,giftSkuId:v.giftSkuId}}}catch(y){b.e(y)}finally{b.f()}t.skuSellObj=Object(m["c"])(f)}t.goodsStandardInfo.length>0?t.isStdImg=2===t.goodsStandardInfo[0].standardimg:t.isStdImg=!1,t.goodsStandardInfo.length>0&&t.getSkuList()}else t.$message.error(e.message)})).finally((function(){return t.$emit("updateLoading")}))},beforeUpload:function(t){return!(t.size>1048576)||(this.$message.error("请上传小于1MB的图片"),!1)},uploadOnSuccess:function(t){var e=t.res.result[0];this.image.push(e);var s=[];this.image.forEach((function(t,e){s[e]=t.url})),this.goodsForm.giftImages=s.join("")},deleteImage:function(t){this.image.splice(t,1);var e=[];this.image.forEach((function(t,s){e[s]=t.url})),this.goodsForm.giftImages=e.join("")},handleChange:function(t){this.goodsForm.giftDescrption=t},getSelected:function(t,e){e.valueList=[{specStandardValueName:"",specStandardValueId:""}],e.specName=t.specName,e.specId=t.specId,this.refash=!this.refash,this.getSkuList()},addSku:function(){this.goodsStandardInfo.push({specId:"",specName:"",standardimg:1,valueList:[{specStandardValueName:"",specStandardValueId:""}]}),this.refash=!this.refash,this.getSkuList()},spliceStandard:function(t,e){this.searchStandard=e.specName,this.getStandardList(e,null,this.searchStandard)},getStdList:function(t){var e,s=[],a=S(this.goodsStandardInfo);try{for(a.s();!(e=a.n()).done;){var o=e.value;o.specId&&o.specName&&s.push(o.specId)}}catch(r){a.e(r)}finally{a.f()}var i=s.join(",");this.getStandardList(t,i,"")},getStandardList:function(t,e,s){var a,o=this;a=e||"";var i={speIds:a,search:s};y(i).then((function(t){"0000"===t.code?(t.result?o.standardList=t.result||[]:o.standardList=[],o.searchStandard=""):(o.standardList=[],o.$message.error(t.data.message))}))},addStandard:function(t){var e=this;if(t.specName&&!t.specId){var s={specName:t.specName};C(s).then((function(s){"0000"===s.data.code?t.specId=s.result:e.$message.error(s.message)}))}},deleteSku:function(t){this.goodsStandardInfo.splice(t,1),this.getSkuList()},getSelectedValue:function(t,e,s){e.valueList[s].specStandardValueName=t.specValue,e.valueList[s].specStandardValueId=t.specValueId,this.refash=!this.refash,this.getSkuList()},spliceStandardValue:function(t,e){this.searchStandardValue=t,this.getValueId(e)},getStdValueList:function(t,e){this.refash=!this.refash,this.getValueId(e)},getValueId:function(t){var e,s=this,a=[],o=S(t.valueList);try{for(o.s();!(e=o.n()).done;){var i=e.value;i.specStandardValueId&&i.specStandardValueName&&a.push(i.specStandardValueId)}}catch(l){o.e(l)}finally{o.f()}var r={specId:t.specId,specValueIds:a.join(","),search:this.searchStandardValue};O(r).then((function(t){"0000"===t.code?(t.result?s.standardValueList=t.result||[]:s.standardValueList=[],s.searchStandardValue=""):(s.standardValueList=[],s.$message.error(t.message))}))},addStandardValue:function(t,e){var s=this;t.valueList[e];if(t.valueList[e].specStandardValueName&&!t.valueList[e].specStandardValueId){var a={specId:t.specId,specValueName:t.valueList[e].specStandardValueName};j(a).then((function(a){if("0000"===a.code){if(a.result){var o="",i=Object(m["c"])(t.valueList),r=Object(m["c"])(i);if(r.splice(e,1),o=r.find((function(t){return t.specStandardValueId===a.result}))?r.find((function(t){return t.specStandardValueId===a.result})).specStandardValueId:"",o===a.result)return s.$message.error("禁止重复添加"),t.valueList[e].specStandardValueName="",!1;t.valueList[e].specStandardValueId=a.result,s.refash=!s.refash,s.getSkuList()}}else s.$message.error(a.message)}))}},addValue:function(t){t.valueList.push({specStandardValueName:"",specStandardValueId:""}),this.getSkuList(),this.refash=!this.refash},deleteValue:function(t,e,s,a){t.valueList.splice(a,1);for(var o=Object(m["c"])(this.goodsSkuList),i=0;i<o.length;i++)e.specStandardValueId&&-1!==o[i].mapId.indexOf(e.specStandardValueId)?(o.splice(i,1),i=0):""===e.specStandardValueId&&o.splice(a,1);this.goodsSkuList=Object(m["c"])(o),this.getSkuList()},tableUploadSuccess:function(t,e,s,a){"0000"===t.code?(a.propImg=t.result.url,this.$message.success("上传成功"),this.refash=!this.refash):this.$message.error(t.message)},tableBeforeUpload:function(t){if("image/jpeg"!==t.type&&"image/png"!==t.type&&"image/jpg"!==t.type&&"image/gif"!==t.type)return this.$message.error("请上传jpg,png,gif格式的图片"),!1},deleteImg:function(t){t.propImg="",this.refash=!this.refash},objectSpanMethod:function(t){var e=t.rowIndex,s=t.columnIndex,a=this.stValCount.length;if(s<a){var o=this.stValCount[s],i=this.stValCount[a-1];if(!o||!i)return{rowspan:0,colspan:0};var r=i/o;return e%r===0?{rowspan:r,colspan:1}:{rowspan:0,colspan:0}}},handleStock:function(){for(var t in this.skuSellObj)this.skuSellObj[t]={giftSkuCostPrice:this.handleData.giftSkuCostPrice?this.handleData.giftSkuCostPrice:this.skuSellObj[t].giftSkuCostPrice,stock:this.handleData.stock?this.handleData.stock:this.skuSellObj[t].stock,giftSkuCode:this.handleData.giftSkuCode?this.handleData.giftSkuCode:this.skuSellObj[t].giftSkuCode,skuBarCode:this.handleData.skuBarCode?this.handleData.skuBarCode:this.skuSellObj[t].skuBarCode,stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:this.skuSellObj[t].giftSkuId,stockAlter:0,stockType:0},this.isEdit&&(Number(this.stockObj[t])>Number(this.skuSellObj[t].stock)?(this.skuSellObj[t].stockType=0,this.skuSellObj[t].stockAlter=Number(this.stockObj[t])-Number(this.skuSellObj[t].stock)):(this.skuSellObj[t].stockType=1,this.skuSellObj[t].stockAlter=Number(this.skuSellObj[t].stock)-Number(this.stockObj[t])),this.stockObj[t]||(this.skuSellObj[t].stockType=1,this.skuSellObj[t].stockAlter=this.skuSellObj[t].stock));this.handleData.stock=void 0,this.handleSpuStock()},handleCostPrice:function(){for(var t in this.skuSellObj)this.skuSellObj[t]={giftSkuCostPrice:this.handleData.giftSkuCostPrice?this.handleData.giftSkuCostPrice:this.skuSellObj[t].giftSkuCostPrice,stock:this.handleData.stock?this.handleData.stock:this.skuSellObj[t].stock,giftSkuCode:this.handleData.giftSkuCode?this.handleData.giftSkuCode:this.skuSellObj[t].giftSkuCode,skuBarCode:this.handleData.skuBarCode?this.handleData.skuBarCode:this.skuSellObj[t].skuBarCode,stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:this.skuSellObj[t].giftSkuId,stockAlter:0,stockType:0};this.handleData.giftSkuCostPrice="";var e=Object.keys(this.skuSellObj);if(e.length>1){var s=[];for(var a in this.skuSellObj)s.push(this.skuSellObj[a].giftSkuCostPrice);var o=Math.max.apply(null,s),i=Math.min.apply(null,s);this.goodsForm.costPrice=o===i?i:i+"~"+o}else if(1===e.length)for(var r in this.skuSellObj)this.goodsForm.costPrice=this.skuSellObj[r].giftSkuCostPrice},handleSkuCode:function(){for(var t in this.skuSellObj)this.skuSellObj[t]={giftSkuCostPrice:this.handleData.giftSkuCostPrice?this.handleData.giftSkuCostPrice:this.skuSellObj[t].giftSkuCostPrice,stock:this.handleData.stock?this.handleData.stock:this.skuSellObj[t].stock,giftSkuCode:this.handleData.giftSkuCode?this.handleData.giftSkuCode:this.skuSellObj[t].giftSkuCode,skuBarCode:this.handleData.skuBarCode?this.handleData.skuBarCode:this.skuSellObj[t].skuBarCode,stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:this.skuSellObj[t].giftSkuId,stockAlter:0,stockType:0};this.handleData.giftSkuCode=""},handleBarCode:function(){for(var t in this.skuSellObj)this.skuSellObj[t]={giftSkuCostPrice:this.handleData.giftSkuCostPrice?this.handleData.giftSkuCostPrice:this.skuSellObj[t].giftSkuCostPrice,stock:this.handleData.stock?this.handleData.stock:this.skuSellObj[t].stock,giftSkuCode:this.handleData.giftSkuCode?this.handleData.giftSkuCode:this.skuSellObj[t].giftSkuCode,skuBarCode:this.handleData.skuBarCode?this.handleData.skuBarCode:this.skuSellObj[t].skuBarCode,stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:this.skuSellObj[t].giftSkuId,stockAlter:0,stockType:0};this.handleData.skuBarCode=""},handleSpuStock:function(){for(var t in this.goodsForm.stock=0,this.skuSellObj)this.skuSellObj[t].stock?this.goodsForm.stock=Number(this.goodsForm.stock)+Number(this.skuSellObj[t].stock):this.goodsForm.stock=Number(this.goodsForm.stock)+0,this.goodsForm.costPrice=this.skuSellObj[t].giftSkuCostPrice},getSkuList:function(){var t=Object(m["c"])(this.goodsStandardInfo),e=[];this.skuCols=[];var s,a=S(t);try{for(a.s();!(s=a.n()).done;){var o,i=s.value,r=S(i.valueList);try{for(r.s();!(o=r.n()).done;){var l=o.value;l.specStandardName=i.specName,l.specStandardId=i.specId}}catch(O){r.e(O)}finally{r.f()}this.skuCols.push(i.specName),e.push(i.valueList)}}catch(O){a.e(O)}finally{a.f()}for(var n=this.combine(Object(m["c"])(e)),c=[],d=0;d<n.length;d++){c.push({data:n[d],cols:[],id:[],mapId:""});for(var u=0;u<n[d].length;u++)c[d].cols.push(n[d][u].specStandardValueName),c[d].id.push(n[d][u].specStandardValueId);c[d].mapId=c[d].id.join("_")}this.goodsSkuList=Object(m["c"])(c);var p=[];this.stValCount=[];for(var f=0;f<t.length;f++)t[f].valueList.length>0&&(p[f]=t[f].valueList.length);for(var g=1,h=0;h<p.length;h++)g*=p[h],this.stValCount[h]=g;var k=Object(m["c"])(c),b=Object(m["c"])(this.skuSellObj);this.skuSellObj={};var v,y=S(k);try{for(y.s();!(v=y.n()).done;){var C=v.value;b[C.mapId]?(this.skuSellObj[C.mapId]={giftSkuCostPrice:Object.keys(b).length>0?b[C.mapId].giftSkuCostPrice.toFixed(2):"",stock:Object.keys(b).length>0?b[C.mapId].stock:"",giftSkuCode:Object.keys(b).length>0?b[C.mapId].giftSkuCode:"",skuBarCode:Object.keys(b).length>0?b[C.mapId].skuBarCode:"",giftSkuId:Object.keys(b).length>0?b[C.mapId].giftSkuId:"",stockStatus:!0,giftSkuCostPriceStatus:!0,stockAlter:0,stockType:0},this.stockObj[C.mapId]=Object.keys(b).length>0?b[C.mapId].stock:""):this.skuSellObj[C.mapId]={giftSkuCostPrice:"",stock:void 0,giftSkuCode:"",skuBarCode:"",stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:"",stockAlter:0,stockType:0}}}catch(O){y.e(O)}finally{y.f()}this.skuSellObj=Object(m["c"])(this.skuSellObj),this.skuSellObj2=Object(m["c"])(this.skuSellObj),this.refash=!this.refash},combine:function(t){t.reverse();var e=[];return function t(s,a,o){if(0==o)return e.push(s);for(var i=0;i<a[o-1].length;i++)t(s.concat(a[o-1][i]),a,o-1)}([],t,t.length),e},handleValiedSkuCode:function(t,e,s){var a=/^[a-zA-Z0-9\-\—]{1,32}$/;t&&(a.test(t)||(this.$message.error("sku编码只能是数字或字母或-且最多32个字符"),1===s?this.handleData.giftSkuCode="":2===s&&(this.skuSellObj[e].giftSkuCode="")))},handleValiedskuBarCode:function(t,e,s){var a=/^[a-zA-Z0-9]{1,32}$/;t&&(a.test(t)||(this.$message.error("条形码只能是数字或字母且最多32个字符"),1===s?this.handleData.skuBarCode="":2===s&&(this.skuSellObj[e].skuBarCode="")))},handleValidIntegral:function(t,e,s){t||0===t?t<0?(this.skuSellObj[e].giftSkuCostPriceStatus=!1,this.$message.error("成本价必须大于0")):this.skuSellObj[e].giftSkuCostPriceStatus=!0:(this.skuSellObj[e].giftSkuCostPriceStatus=!1,this.$message.error("成本价是必填项"));var a=Object.keys(this.skuSellObj);if(a.length>1){var o=[];for(var i in this.skuSellObj)o.push(this.skuSellObj[i].giftSkuCostPrice);var r=Math.max.apply(null,o),l=Math.min.apply(null,o);this.goodsForm.costPrice=r===l?l:l+"~"+r}else 1===a.length&&(this.goodsForm.costPrice=this.skuSellObj[e].giftSkuCostPrice)},handleValidStock:function(t,e,s){this.goodsForm.spuList[0].stock=0,this.goodsForm.stock=0,t||0===t?this.skuSellObj[e].stockStatus=!0:(this.skuSellObj[e].stockStatus=!1,this.$message.error("库存是必填项")),this.isEdit&&(Number(this.stockObj[e])>Number(this.skuSellObj[e].stock)?(this.skuSellObj[e].stockType=0,this.skuSellObj[e].stockAlter=Number(this.stockObj[e])-Number(this.skuSellObj[e].stock)):(this.skuSellObj[e].stockType=1,this.skuSellObj[e].stockAlter=Number(this.skuSellObj[e].stock)-Number(this.stockObj[e])),this.stockObj[e]||(this.skuSellObj[e].stockType=1,this.skuSellObj[e].stockAlter=this.skuSellObj[e].stock));var a=Object.keys(this.skuSellObj);if(a.length>1)for(var o in this.skuSellObj)this.goodsForm.stock=Number(this.goodsForm.stock)+Number(this.skuSellObj[o].stock);else 1===a.length&&(this.goodsForm.stock=this.skuSellObj[e].stock);this.handleValidIntegral(t,e,s)},submitForm:function(t){var e=this;if(!this.btnLoading){if(this.goodsStandardInfo.length>0){var s,a=S(this.goodsStandardInfo);try{for(a.s();!(s=a.n()).done;){var o=s.value;if(""==o.specId)return this.$message.error("请选择规格"),!1;if(!o.valueList.every((function(t){return""!==t.specStandardValueId})))return this.$message.error("请选择规格值"),!1}}catch(i){a.e(i)}finally{a.f()}}return 0===this.image.length?(this.$message.error("请上传主图"),!1):this.goodsForm.operAuthType?void this.$refs[t].validate((function(t){if(t){var s=[];if(e.goodsStandardInfo.length>0){var a=function(t){var a=e.goodsSkuList.find((function(e){return e.mapId===t})).data;a=a.map((function(t){return delete t.propImg,t})),s.push({giftId:e.giftId,giftSkuId:e.skuSellObj[t].giftSkuId,stock:e.skuSellObj[t].stock,giftSkuCode:e.skuSellObj[t].giftSkuCode,skuBarCode:e.skuSellObj[t].skuBarCode,giftSkuCostPrice:e.skuSellObj[t].giftSkuCostPrice,giftSkuStrand:JSON.stringify(a),stockType:e.skuSellObj[t].stockType,stockAlter:e.skuSellObj[t].stockAlter})};for(var o in e.skuSellObj)a(o);if(e.isStdImg)e.goodsStandardInfo[0].standardimg=2;else{e.goodsStandardInfo[0].standardimg=1;var r,l=S(e.goodsStandardInfo[0].valueList);try{for(l.s();!(r=l.n()).done;){var n=r.value;n.propImg=""}}catch(i){l.e(i)}finally{l.f()}}if(e.isStdImg&&e.goodsStandardInfo[0]){var c,d=S(e.goodsStandardInfo[0].valueList);try{for(d.s();!(c=d.n()).done;){var u=c.value;if(""===u.propImg||!u.propImg)return e.$message.error("请上传规格图片"),!1}}catch(i){d.e(i)}finally{d.f()}}for(var p in e.skuSellObj){if(!e.skuSellObj[p].giftSkuCostPrice&&0!==e.skuSellObj[p].giftSkuCostPrice)return e.$message.error("请完善规格成本价信息"),!1;if(!e.skuSellObj[p].stock&&0!==e.skuSellObj[p].stock)return e.$message.error("请完善规格库存信息"),!1;if(!e.skuSellObj[p].giftSkuCostPriceStatus||!e.skuSellObj[p].stockStatus)return e.$message.error("请填写正确格式的sku信息"),!1}}else s=[];e.$emit("updateLoading");var f={giftId:e.giftId,giftType:1,giftName:e.goodsForm.giftName,marketPrice:e.goodsForm.marketPrice,costPrice:0==s.length?e.goodsForm.costPrice:-1,stock:e.goodsForm.stock,giftNo:e.goodsForm.giftNo,giftBarNo:e.goodsForm.giftBarNo,giftImages:e.goodsForm.giftImages,giftDescrption:e.goodsForm.giftDescrption,refundFlag:e.goodsForm.refundFlag,giftSpecInfo:e.goodsStandardInfo.length>0?JSON.stringify(e.goodsStandardInfo):"",skuList:s,operAuthType:e.goodsForm.operAuthType,operAuth:e.goodsForm.operAuthPre.join(","),deliveryType:e.goodsForm.deliveryType,source:1,shopSelectType:e.diliveryData.shopSelectType,shopCodeList:e.diliveryData.shopCodeList,stockUseType:e.goodsForm.stockUseType};e.btnLoading=!0,e.isEdit?w(f).then((function(t){"0000"===t.code?(e.$router.push({path:"/gift-manage/real-gift"}),e.btnLoading=!1):(e.btnLoading=!1,e.$message.error(t.message))})).finally((function(){return e.$emit("updateLoading",!1)})):F(f).then((function(t){"0000"===t.code?(e.$store.commit("updateShowCornerCanUseApp",!0),e.$router.push({path:"/gift-manage/real-gift"}),e.btnLoading=!1):(e.btnLoading=!1,e.$message.error(t.message))})).finally((function(){return e.$emit("updateLoading",!1)}))}else PublicMethods.jumpToFormError()})):(this.$message.error("请选择操作人权限"),!1)}}}},_=P,N=(s("d63a"),s("fdf5"),Object(f["a"])(_,a,o,!1,null,"3312e15c",null));e["default"]=N.exports}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ab2cf8c"],{1420:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p20"},[r("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"160px"}},[r("h3",{staticClass:"pb20"},[e._v("自提点信息")]),r("el-form-item",{attrs:{label:"自提点类型"}},[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},[e._v("从门店中选择")])],1),e.isAdd?r("el-form-item",{attrs:{prop:"storeWidgetId",label:"门店选择器"}},[r("dm-store-select",{attrs:{"selector-id":e.ruleForm.storeWidgetId},on:{save:e.saveStore}})],1):[r("el-form-item",{attrs:{label:"自提点名称",required:""}},[r("el-input",{staticClass:"w600",attrs:{type:"text",disabled:""},model:{value:e.info.name,callback:function(t){e.$set(e.info,"name",t)},expression:"info.name"}})],1),r("el-form-item",{attrs:{label:"联系电话",required:""}},[r("el-input",{staticClass:"w600",attrs:{type:"text",disabled:""},model:{value:e.info.phone,callback:function(t){e.$set(e.info,"phone",t)},expression:"info.phone"}})],1),r("el-form-item",{attrs:{label:"自提点地址",required:""}},[r("el-input",{staticClass:"w600",attrs:{type:"text",disabled:""},model:{value:e.info.address,callback:function(t){e.$set(e.info,"address",t)},expression:"info.address"}})],1),r("el-form-item",{attrs:{label:"自提点图片",required:""}},[r("img",{staticStyle:{width:"150px",height:"150px"},attrs:{src:e.info.imageUrl,draggable:"false"}})]),r("el-form-item",{attrs:{label:"营业时间"}},e._l(e.info.businessHour,(function(t,a){return r("div",{key:a,staticClass:"time-list"},[r("el-select",{staticClass:"mr10",attrs:{multiple:"",placeholder:"请选择",disabled:""},model:{value:t.weekdayShow,callback:function(r){e.$set(t,"weekdayShow",r)},expression:"item.weekdayShow"}},e._l(["周一","周二","周三","周四","周五","周六","周日"],(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1),r("el-time-select",{staticClass:"mr10",staticStyle:{width:"170px"},attrs:{placeholder:"起始时间",disabled:""},model:{value:t.openTime,callback:function(r){e.$set(t,"openTime",r)},expression:"item.openTime"}}),r("span",{staticStyle:{"font-size":"14px","margin-right":"10px"}},[e._v("至")]),r("el-time-select",{staticStyle:{width:"170px"},attrs:{placeholder:"起始时间",disabled:""},model:{value:t.closeTime,callback:function(r){e.$set(t,"closeTime",r)},expression:"item.closeTime"}})],1)})),0)],r("h3",{staticClass:"pt20 pb20"},[e._v("自提点信息")]),r("form-content",{attrs:{"rule-form":e.ruleForm},on:{"update:ruleForm":function(t){e.ruleForm=t},"update:rule-form":function(t){e.ruleForm=t}}}),r("el-form-item",{staticClass:"mt20"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit()}}},[e._v(e._s(e.isAdd?"确认新建":"保存"))])],1)],2)],1)},i=[],n=(r("ac4d"),r("8a81"),r("5df3"),r("1c4c"),r("7f7f"),r("6b54"),r("96cf"),r("1da1")),o=(r("28a5"),r("456d"),r("ac6a"),r("cdc8")),l=r("1d16"),s=r("cf45"),c=r("ed08");function u(e,t){var r;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=d(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}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 n,o=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,n=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw n}}}}function d(e,t){if(e){if("string"===typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var m=o["a"].insertPickupStore,f=o["a"].getPickupDetails,g=o["a"].updatePickupStore,y={name:"PickupForm",components:{formContent:l["a"]},data:function(){var e=this,t=function(t,r,a){var i=e.ruleForm,n=i.dynamicType,o=i.dynamicH,l=i.dynamicM,s=i.dynamicD;if(1==n){if(Object(c["f"])(o)||Object(c["f"])(l))return void a(new Error("填写不完整"))}else if(Object(c["f"])(s))return void a(new Error("填写不完整"));a()},r=function(t,r,a){var i=e.ruleForm.fixedTime;if(0!=i.length){var n=!1;i.forEach((function(e){e.dataRange&&e.dataRange.length&&e.dataRangep[0]&&e.dataRange[1]||(n=!0)})),n?a(new Error("请配置固定日期范围")):a()}else a(new Error("请配置固定日期范围"))};return{loading:!1,pickupId:this.$route.query.id,ruleForm:{type:1,chooseTimeFlag:0,dateType:1,fixedTime:[{dataRange:""}],dynamicType:1,dynamicH:"",dynamicM:"",dynamicD:"",dynamicStop:"",storeWidgetId:"",timeoutDealType:1},rules:{storeWidgetId:{required:!0,message:"请选择门店",trigger:"change"},dynamicType:{required:!0,validator:t,trigger:"blur"},dynamicStop:{required:!0,message:"请填写提货有效期",trigger:"change"},fixedTime:{required:!0,validator:r,trigger:"change"}},info:{businessHour:[]},isAdd:"add"===this.$route.meta.type,isEdit:"edit"===this.$route.meta.type}},mounted:function(){this.isAdd||this.getInfo()},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"通用设置"},{breadName:"自提点设置",breadPath:"/setting/pickup-list"},{breadName:this.isAdd?"新建自提点":"编辑自提点",breadPath:""}])},methods:{getInfo:function(){var e=this;this.loading=!0,f({pickupId:this.pickupId}).then((function(t){e.loading=!1;var r,a=t.result||{},i=a.businessHour?JSON.parse(a.businessHour):[],n=u(i);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.weekdayShow=o.weekdayShow.split("、"),o.openTime=Object(s["c"])(o.openTime),o.closeTime=Object(s["c"])(o.closeTime)}}catch(c){n.e(c)}finally{n.f()}if(a.businessHour=i,e.info=a,Object.keys(e.ruleForm).map((function(r){var i={};r in t.result&&(i[r],a[r]),Object.assign(e.ruleForm,i)})),a.chooseTimeFlag){var l=JSON.parse(a.pickupDateInfo);1==a.dateType?(e.dynamicType=l.setType,e.dynamicStop=l.validite,1==l.setType?(e.dynamicH=parseInt(l.time/60),e.dynamicM=l.time%60):e.dynamicD=l.time/60/24):e.ruleForm.fixedTime=l.map((function(e){return{dataRange:[e.startTime,e.endTime]}}))}})).catch((function(){e.loading=!1}))},saveStore:function(e){this.ruleForm.storeWidgetId=e,this.$refs.ruleForm.validateField("storeWidgetId")},submit:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loading=!0,e.prev=1,!this.isAdd){e.next=7;break}return e.next=5,m(t);case 5:e.next=9;break;case 7:return e.next=9,g(t);case 9:this.loading=!1,this.$router.push("/setting/pickup-list"),this.$tips({message:"".concat(this.isAdd?"新建":"编辑","成功"),type:"success"}),e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](1),this.loading=!1;case 17:case"end":return e.stop()}}),e,this,[[1,14]])})));function t(t){return e.apply(this,arguments)}return t}(),handleSubmit:function(){var e=this;this.loading||this.$refs.ruleForm.validate((function(t){if(t){var r=e.ruleForm,a=r.chooseTimeFlag,i=r.dateType,n=r.storeWidgetId,o=r.timeoutDealType,l=r.dynamicType,s=r.dynamicH,c=r.dynamicM,u=r.dynamicD,d=r.dynamicStop,p=r.fixedTime,m={chooseTimeFlag:a,dateType:i,storeWidgetId:n,timeoutDealType:o};a&&(1==m.dateType?m.pickupDateInfo={setType:l,time:1==l?60*s+c:24*u*60,validite:d}:m.pickupDateInfo=p.map((function(e){return{startTime:new Date(e.dataRange[0]).getTime(),endTime:new Date(e.dataRange[0]).getTime()}})),m.pickupDateInfo=JSON.stringify(m.pickupDateInfo)),e.isEdit&&(m.ids=e.pickupId),e.submit(m)}else PublicMethods.jumpToFormError()}))}}},b=y,h=(r("5fdd"),r("2877")),v=Object(h["a"])(b,a,i,!1,null,"bc9361d6",null);t["default"]=v.exports},"1c4c":function(e,t,r){"use strict";var a=r("9b43"),i=r("5ca1"),n=r("4bf8"),o=r("1fa8"),l=r("33a4"),s=r("9def"),c=r("f1ae"),u=r("27ee");i(i.S+i.F*!r("5cc5")((function(e){Array.from(e)})),"Array",{from:function(e){var t,r,i,d,p=n(e),m="function"==typeof this?this:Array,f=arguments.length,g=f>1?arguments[1]:void 0,y=void 0!==g,b=0,h=u(p);if(y&&(g=a(g,f>2?arguments[2]:void 0,2)),void 0==h||m==Array&&l(h))for(t=s(p.length),r=new m(t);t>b;b++)c(r,b,y?g(p[b],b):p[b]);else for(d=h.call(p),r=new m;!(i=d.next()).done;b++)c(r,b,y?o(d,g,[i.value,b],!0):i.value);return r.length=b,r}})},"1d16":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form-item",{attrs:{label:"买家可选自提时间"}},[r("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.ruleForm.chooseTimeFlag,callback:function(t){e.$set(e.ruleForm,"chooseTimeFlag",t)},expression:"ruleForm.chooseTimeFlag"}}),r("p",[e._v("开启表示买家可选择自提时间,商户需按约定时间备货完成")])],1),e.ruleForm.chooseTimeFlag?[r("el-form-item",{attrs:{label:"日期类型",required:""}},[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.dateType,callback:function(t){e.$set(e.ruleForm,"dateType",t)},expression:"ruleForm.dateType"}},[e._v("动态日期")]),r("el-radio",{attrs:{label:2},model:{value:e.ruleForm.dateType,callback:function(t){e.$set(e.ruleForm,"dateType",t)},expression:"ruleForm.dateType"}},[e._v("固定日期")])],1),1==e.ruleForm.dateType?r("el-form-item",{attrs:{label:"商品备货设置",prop:"dynamicType"}},[r("div",{staticClass:"mb5"},[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.dynamicType,callback:function(t){e.$set(e.ruleForm,"dynamicType",t)},expression:"ruleForm.dynamicType"}},[e._v("下单当天")]),r("el-input-number",{staticClass:"w100 mr5",attrs:{min:1,max:24,controls:!1,precision:0},model:{value:e.ruleForm.dynamicH,callback:function(t){e.$set(e.ruleForm,"dynamicH",t)},expression:"ruleForm.dynamicH"}}),e._v("小时,\n "),r("el-input-number",{staticClass:"w100 mr5",attrs:{max:60,controls:!1,precision:0},model:{value:e.ruleForm.dynamicM,callback:function(t){e.$set(e.ruleForm,"dynamicM",t)},expression:"ruleForm.dynamicM"}}),e._v("分钟后,买家可提货\n ")],1),r("div",[r("el-radio",{attrs:{label:2},model:{value:e.ruleForm.dynamicType,callback:function(t){e.$set(e.ruleForm,"dynamicType",t)},expression:"ruleForm.dynamicType"}},[e._v("下单  ")]),r("el-input-number",{staticClass:"w100 mr5",attrs:{max:1e3,controls:!1,precision:0},model:{value:e.ruleForm.dynamicD,callback:function(t){e.$set(e.ruleForm,"dynamicD",t)},expression:"ruleForm.dynamicD"}}),e._v("天后,买家可提货\n ")],1)]):e._e(),1==e.ruleForm.dateType?r("el-form-item",{attrs:{label:"提货有效期",prop:"dynamicStop"}},[e._v("\n 备货完成"),r("el-input-number",{staticClass:"w100 mr5 ml5",attrs:{min:2,controls:!1,precision:0},model:{value:e.ruleForm.dynamicStop,callback:function(t){e.$set(e.ruleForm,"dynamicStop",t)},expression:"ruleForm.dynamicStop"}}),e._v("天后,停止自提\n ")],1):e._e(),2==e.ruleForm.dateType?r("el-form-item",{attrs:{label:"日期范围",prop:"fixedTime"}},[e._l(e.ruleForm.fixedTime,(function(t,a){return r("div",{key:a,staticClass:"mb10"},[r("el-date-picker",{attrs:{"picker-options":e.pickerOptionsEnd,"is-range":"",format:"yy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){return e.limitDataSelect(a,t)}},model:{value:t.dataRange,callback:function(r){e.$set(t,"dataRange",r)},expression:"v.dataRange"}}),a?r("el-button",{staticClass:"delete-btn ml10",attrs:{type:"text"},on:{click:function(r){return e.deleteTime(t)}}},[e._v("删除")]):e._e()],1)})),r("el-button",{attrs:{type:"text",disabled:e.ruleForm.fixedTime.length>=5},on:{click:e.addTime}},[r("i",{staticClass:"el-icon-plus"}),e._v("添加时间")])],2):e._e(),r("el-form-item",{attrs:{label:"超期发货单处理",required:""}},[r("div",[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.timeoutDealType,callback:function(t){e.$set(e.ruleForm,"timeoutDealType",t)},expression:"ruleForm.timeoutDealType"}},[e._v("到期自动完成核销")])],1),r("div",[r("el-radio",{attrs:{label:2},model:{value:e.ruleForm.timeoutDealType,callback:function(t){e.$set(e.ruleForm,"timeoutDealType",t)},expression:"ruleForm.timeoutDealType"}},[e._v("到期自动关闭发货单,若为销售订单请至应用中查看退款情况")])],1)])]:e._e()],2)},i=[],n={name:"PickupFormContent",props:{ruleForm:{type:Object,default:function(){}}},data:function(){return{pickerOptionsEnd:{disabledDate:function(e){return e.getTime()<new Date((new Date).toLocaleDateString()).getTime()}}}},methods:{addTime:function(){this.ruleForm.fixedTime.push({dataRange:""})},deleteTime:function(e){this.ruleForm.fixedTime.splice(e,1)},limitDataSelect:function(e,t){var r=new Date(t[0]).valueOf(),a=new Date(t[1]).valueOf(),i=this.ruleForm.fixedTime;if(1!=i.length)if(0!==e){for(var n=e-1;n>=0;n--)if(i[n].dataRange){var o=new Date(i[n].dataRange[1]).valueOf();r<=o&&(this.$message.error("日期不可重叠!"),i[e].dataRange=null)}for(var l=e+1;l<i.length;l++)if(i[l].dataRange){var s=new Date(i[l].dataRange[0]).valueOf();(r>=s||a>=s)&&(this.$message.error("日期不可重叠!"),i[e].dataRange=null)}}else for(var c=e+1;c<i.length;c++)if(i[c].dataRange){var u=new Date(i[c].dataRange[0]).valueOf();(r>=u||a>=u)&&(this.$message.error("日期不可重叠!"),i[e].dataRange=null)}}}},o=n,l=(r("445b"),r("2877")),s=Object(l["a"])(o,a,i,!1,null,"1b2ddbf4",null);t["a"]=s.exports},"37c8":function(e,t,r){t.f=r("2b4c")},"3a72":function(e,t,r){var a=r("7726"),i=r("8378"),n=r("2d00"),o=r("37c8"),l=r("86cc").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=n?{}:a.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:o.f(e)})}},"445b":function(e,t,r){"use strict";r("af5d")},"520e":function(e,t,r){},"5fdd":function(e,t,r){"use strict";r("520e")},"7bbc":function(e,t,r){var a=r("6821"),i=r("9093").f,n={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return i(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==n.call(e)?l(e):i(a(e))}},"8a81":function(e,t,r){"use strict";var a=r("7726"),i=r("69a8"),n=r("9e1e"),o=r("5ca1"),l=r("2aba"),s=r("67ab").KEY,c=r("79e5"),u=r("5537"),d=r("7f20"),p=r("ca5a"),m=r("2b4c"),f=r("37c8"),g=r("3a72"),y=r("d4c0"),b=r("1169"),h=r("cb7c"),v=r("d3f4"),T=r("4bf8"),k=r("6821"),F=r("6a99"),w=r("4630"),S=r("2aeb"),O=r("7bbc"),x=r("11e9"),D=r("2621"),j=r("86cc"),_=r("0d58"),C=x.f,P=j.f,$=O.f,I=a.Symbol,R=a.JSON,A=R&&R.stringify,E="prototype",N=m("_hidden"),M=m("toPrimitive"),H={}.propertyIsEnumerable,q=u("symbol-registry"),U=u("symbols"),L=u("op-symbols"),W=Object[E],J="function"==typeof I&&!!D.f,G=a.QObject,B=!G||!G[E]||!G[E].findChild,V=n&&c((function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(e,t,r){var a=C(W,t);a&&delete W[t],P(e,t,r),a&&e!==W&&P(W,t,a)}:P,z=function(e){var t=U[e]=S(I[E]);return t._k=e,t},K=J&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},Q=function(e,t,r){return e===W&&Q(L,t,r),h(e),t=F(t,!0),h(r),i(U,t)?(r.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),r=S(r,{enumerable:w(0,!1)})):(i(e,N)||P(e,N,w(1,{})),e[N][t]=!0),V(e,t,r)):P(e,t,r)},Y=function(e,t){h(e);var r,a=y(t=k(t)),i=0,n=a.length;while(n>i)Q(e,r=a[i++],t[r]);return e},X=function(e,t){return void 0===t?S(e):Y(S(e),t)},Z=function(e){var t=H.call(this,e=F(e,!0));return!(this===W&&i(U,e)&&!i(L,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,N)&&this[N][e])||t)},ee=function(e,t){if(e=k(e),t=F(t,!0),e!==W||!i(U,t)||i(L,t)){var r=C(e,t);return!r||!i(U,t)||i(e,N)&&e[N][t]||(r.enumerable=!0),r}},te=function(e){var t,r=$(k(e)),a=[],n=0;while(r.length>n)i(U,t=r[n++])||t==N||t==s||a.push(t);return a},re=function(e){var t,r=e===W,a=$(r?L:k(e)),n=[],o=0;while(a.length>o)!i(U,t=a[o++])||r&&!i(W,t)||n.push(U[t]);return n};J||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(r){this===W&&t.call(L,r),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),V(this,e,w(1,r))};return n&&B&&V(W,e,{configurable:!0,set:t}),z(e)},l(I[E],"toString",(function(){return this._k})),x.f=ee,j.f=Q,r("9093").f=O.f=te,r("52a7").f=Z,D.f=re,n&&!r("2d00")&&l(W,"propertyIsEnumerable",Z,!0),f.f=function(e){return z(m(e))}),o(o.G+o.W+o.F*!J,{Symbol:I});for(var ae="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;ae.length>ie;)m(ae[ie++]);for(var ne=_(m.store),oe=0;ne.length>oe;)g(ne[oe++]);o(o.S+o.F*!J,"Symbol",{for:function(e){return i(q,e+="")?q[e]:q[e]=I(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){B=!0},useSimple:function(){B=!1}}),o(o.S+o.F*!J,"Object",{create:X,defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:re});var le=c((function(){D.f(1)}));o(o.S+o.F*le,"Object",{getOwnPropertySymbols:function(e){return D.f(T(e))}}),R&&o(o.S+o.F*(!J||c((function(){var e=I();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))}))),"JSON",{stringify:function(e){var t,r,a=[e],i=1;while(arguments.length>i)a.push(arguments[i++]);if(r=t=a[1],(v(t)||void 0!==e)&&!K(e))return b(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!K(t))return t}),a[1]=t,A.apply(R,a)}}),I[E][M]||r("32e9")(I[E],M,I[E].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(a.JSON,"JSON",!0)},ac4d:function(e,t,r){r("3a72")("asyncIterator")},af5d:function(e,t,r){},cdc8:function(e,t,r){"use strict";r("8e6e"),r("ac6a"),r("456d");var a=r("ade3"),i=r("71f6"),n=r("f121");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){Object(a["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};s=Object(i["a"])(s,n["f"]),c=Object(i["a"])(c,n["f"]),t["a"]=l(l({},s),c);n["c"].api,n["b"],n["c"].api,n["f"]},d4c0:function(e,t,r){var a=r("0d58"),i=r("2621"),n=r("52a7");e.exports=function(e){var t=a(e),r=i.f;if(r){var o,l=r(e),s=n.f,c=0;while(l.length>c)s.call(e,o=l[c++])&&t.push(o)}return t}}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ab2cf8c"],{1420:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p20"},[r("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"160px"}},[r("h3",{staticClass:"pb20"},[e._v("自提点信息")]),r("el-form-item",{attrs:{label:"自提点类型"}},[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},[e._v("从门店中选择")])],1),e.isAdd?r("el-form-item",{attrs:{prop:"storeWidgetId",label:"门店选择器"}},[r("dm-store-select",{attrs:{"selector-id":e.ruleForm.storeWidgetId},on:{save:e.saveStore}})],1):[r("el-form-item",{attrs:{label:"自提点名称",required:""}},[r("el-input",{staticClass:"w600",attrs:{type:"text",disabled:""},model:{value:e.info.name,callback:function(t){e.$set(e.info,"name",t)},expression:"info.name"}})],1),r("el-form-item",{attrs:{label:"联系电话",required:""}},[r("el-input",{staticClass:"w600",attrs:{type:"text",disabled:""},model:{value:e.info.phone,callback:function(t){e.$set(e.info,"phone",t)},expression:"info.phone"}})],1),r("el-form-item",{attrs:{label:"自提点地址",required:""}},[r("el-input",{staticClass:"w600",attrs:{type:"text",disabled:""},model:{value:e.info.address,callback:function(t){e.$set(e.info,"address",t)},expression:"info.address"}})],1),r("el-form-item",{attrs:{label:"自提点图片",required:""}},[r("img",{staticStyle:{width:"150px",height:"150px"},attrs:{src:e.info.imageUrl,draggable:"false"}})]),r("el-form-item",{attrs:{label:"营业时间"}},e._l(e.info.businessHour,(function(t,a){return r("div",{key:a,staticClass:"time-list"},[r("el-select",{staticClass:"mr10",attrs:{multiple:"",placeholder:"请选择",disabled:""},model:{value:t.weekdayShow,callback:function(r){e.$set(t,"weekdayShow",r)},expression:"item.weekdayShow"}},e._l(["周一","周二","周三","周四","周五","周六","周日"],(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1),r("el-time-select",{staticClass:"mr10",staticStyle:{width:"170px"},attrs:{placeholder:"起始时间",disabled:""},model:{value:t.openTime,callback:function(r){e.$set(t,"openTime",r)},expression:"item.openTime"}}),r("span",{staticStyle:{"font-size":"14px","margin-right":"10px"}},[e._v("至")]),r("el-time-select",{staticStyle:{width:"170px"},attrs:{placeholder:"起始时间",disabled:""},model:{value:t.closeTime,callback:function(r){e.$set(t,"closeTime",r)},expression:"item.closeTime"}})],1)})),0)],r("h3",{staticClass:"pt20 pb20"},[e._v("自提点信息")]),r("form-content",{attrs:{"rule-form":e.ruleForm},on:{"update:ruleForm":function(t){e.ruleForm=t},"update:rule-form":function(t){e.ruleForm=t}}}),r("el-form-item",{staticClass:"mt20"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit()}}},[e._v(e._s(e.isAdd?"确认新建":"保存"))])],1)],2)],1)},i=[],n=(r("ac4d"),r("8a81"),r("5df3"),r("1c4c"),r("7f7f"),r("6b54"),r("96cf"),r("1da1")),o=(r("28a5"),r("456d"),r("ac6a"),r("cdc8")),l=r("1d16"),s=r("cf45"),c=r("ed08");function u(e,t){var r;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=d(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}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 n,o=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,n=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw n}}}}function d(e,t){if(e){if("string"===typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var m=o["a"].insertPickupStore,f=o["a"].getPickupDetails,g=o["a"].updatePickupStore,y={name:"PickupForm",components:{formContent:l["a"]},data:function(){var e=this,t=function(t,r,a){var i=e.ruleForm,n=i.dynamicType,o=i.dynamicH,l=i.dynamicM,s=i.dynamicD;if(1==n){if(Object(c["f"])(o)||Object(c["f"])(l))return void a(new Error("填写不完整"))}else if(Object(c["f"])(s))return void a(new Error("填写不完整"));a()},r=function(t,r,a){var i=e.ruleForm.fixedTime;if(0!=i.length){var n=!1;i.forEach((function(e){e.dataRange&&e.dataRange.length&&e.dataRangep[0]&&e.dataRange[1]||(n=!0)})),n?a(new Error("请配置固定日期范围")):a()}else a(new Error("请配置固定日期范围"))};return{loading:!1,pickupId:this.$route.query.id,ruleForm:{type:1,chooseTimeFlag:0,dateType:1,fixedTime:[{dataRange:""}],dynamicType:1,dynamicH:"",dynamicM:"",dynamicD:"",dynamicStop:"",storeWidgetId:"",timeoutDealType:1},rules:{storeWidgetId:{required:!0,message:"请选择门店",trigger:"change"},dynamicType:{required:!0,validator:t,trigger:"blur"},dynamicStop:{required:!0,message:"请填写提货有效期",trigger:"change"},fixedTime:{required:!0,validator:r,trigger:"change"}},info:{businessHour:[]},isAdd:"add"===this.$route.meta.type,isEdit:"edit"===this.$route.meta.type}},mounted:function(){this.isAdd||this.getInfo()},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"通用设置"},{breadName:"自提点设置",breadPath:"/setting/pickup-list"},{breadName:this.isAdd?"新建自提点":"编辑自提点",breadPath:""}])},methods:{getInfo:function(){var e=this;this.loading=!0,f({pickupId:this.pickupId}).then((function(t){e.loading=!1;var r,a=t.result||{},i=a.businessHour?JSON.parse(a.businessHour):[],n=u(i);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.weekdayShow=o.weekdayShow.split("、"),o.openTime=Object(s["c"])(o.openTime),o.closeTime=Object(s["c"])(o.closeTime)}}catch(c){n.e(c)}finally{n.f()}if(a.businessHour=i,e.info=a,Object.keys(e.ruleForm).map((function(r){var i={};r in t.result&&(i[r],a[r]),Object.assign(e.ruleForm,i)})),a.chooseTimeFlag){var l=JSON.parse(a.pickupDateInfo);1==a.dateType?(e.dynamicType=l.setType,e.dynamicStop=l.validite,1==l.setType?(e.dynamicH=parseInt(l.time/60),e.dynamicM=l.time%60):e.dynamicD=l.time/60/24):e.ruleForm.fixedTime=l.map((function(e){return{dataRange:[e.startTime,e.endTime]}}))}})).catch((function(){e.loading=!1}))},saveStore:function(e){this.ruleForm.storeWidgetId=e,this.$refs.ruleForm.validateField("storeWidgetId")},submit:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loading=!0,e.prev=1,!this.isAdd){e.next=7;break}return e.next=5,m(t);case 5:e.next=9;break;case 7:return e.next=9,g(t);case 9:this.loading=!1,this.$router.push("/setting/pickup-list"),this.$tips({message:"".concat(this.isAdd?"新建":"编辑","成功"),type:"success"}),e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](1),this.loading=!1;case 17:case"end":return e.stop()}}),e,this,[[1,14]])})));function t(t){return e.apply(this,arguments)}return t}(),handleSubmit:function(){var e=this;this.loading||this.$refs.ruleForm.validate((function(t){if(t){var r=e.ruleForm,a=r.chooseTimeFlag,i=r.dateType,n=r.storeWidgetId,o=r.timeoutDealType,l=r.dynamicType,s=r.dynamicH,c=r.dynamicM,u=r.dynamicD,d=r.dynamicStop,p=r.fixedTime,m={chooseTimeFlag:a,dateType:i,storeWidgetId:n,timeoutDealType:o};a&&(1==m.dateType?m.pickupDateInfo={setType:l,time:1==l?60*s+c:24*u*60,validite:d}:m.pickupDateInfo=p.map((function(e){return{startTime:new Date(e.dataRange[0]).getTime(),endTime:new Date(e.dataRange[0]).getTime()}})),m.pickupDateInfo=JSON.stringify(m.pickupDateInfo)),e.isEdit&&(m.ids=e.pickupId),e.submit(m)}else PublicMethods.jumpToFormError()}))}}},b=y,h=(r("5fdd"),r("2877")),v=Object(h["a"])(b,a,i,!1,null,"bc9361d6",null);t["default"]=v.exports},"1c4c":function(e,t,r){"use strict";var a=r("9b43"),i=r("5ca1"),n=r("4bf8"),o=r("1fa8"),l=r("33a4"),s=r("9def"),c=r("f1ae"),u=r("27ee");i(i.S+i.F*!r("5cc5")((function(e){Array.from(e)})),"Array",{from:function(e){var t,r,i,d,p=n(e),m="function"==typeof this?this:Array,f=arguments.length,g=f>1?arguments[1]:void 0,y=void 0!==g,b=0,h=u(p);if(y&&(g=a(g,f>2?arguments[2]:void 0,2)),void 0==h||m==Array&&l(h))for(t=s(p.length),r=new m(t);t>b;b++)c(r,b,y?g(p[b],b):p[b]);else for(d=h.call(p),r=new m;!(i=d.next()).done;b++)c(r,b,y?o(d,g,[i.value,b],!0):i.value);return r.length=b,r}})},"1d16":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form-item",{attrs:{label:"买家可选自提时间"}},[r("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.ruleForm.chooseTimeFlag,callback:function(t){e.$set(e.ruleForm,"chooseTimeFlag",t)},expression:"ruleForm.chooseTimeFlag"}}),r("p",[e._v("开启表示买家可选择自提时间,商户需按约定时间备货完成")])],1),e.ruleForm.chooseTimeFlag?[r("el-form-item",{attrs:{label:"日期类型",required:""}},[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.dateType,callback:function(t){e.$set(e.ruleForm,"dateType",t)},expression:"ruleForm.dateType"}},[e._v("动态日期")]),r("el-radio",{attrs:{label:2},model:{value:e.ruleForm.dateType,callback:function(t){e.$set(e.ruleForm,"dateType",t)},expression:"ruleForm.dateType"}},[e._v("固定日期")])],1),1==e.ruleForm.dateType?r("el-form-item",{attrs:{label:"商品备货设置",prop:"dynamicType"}},[r("div",{staticClass:"mb5"},[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.dynamicType,callback:function(t){e.$set(e.ruleForm,"dynamicType",t)},expression:"ruleForm.dynamicType"}},[e._v("下单当天")]),r("el-input-number",{staticClass:"w100 mr5",attrs:{min:1,max:24,controls:!1,precision:0},model:{value:e.ruleForm.dynamicH,callback:function(t){e.$set(e.ruleForm,"dynamicH",t)},expression:"ruleForm.dynamicH"}}),e._v("小时,\n "),r("el-input-number",{staticClass:"w100 mr5",attrs:{max:60,controls:!1,precision:0},model:{value:e.ruleForm.dynamicM,callback:function(t){e.$set(e.ruleForm,"dynamicM",t)},expression:"ruleForm.dynamicM"}}),e._v("分钟后,买家可提货\n ")],1),r("div",[r("el-radio",{attrs:{label:2},model:{value:e.ruleForm.dynamicType,callback:function(t){e.$set(e.ruleForm,"dynamicType",t)},expression:"ruleForm.dynamicType"}},[e._v("下单  ")]),r("el-input-number",{staticClass:"w100 mr5",attrs:{max:1e3,controls:!1,precision:0},model:{value:e.ruleForm.dynamicD,callback:function(t){e.$set(e.ruleForm,"dynamicD",t)},expression:"ruleForm.dynamicD"}}),e._v("天后,买家可提货\n ")],1)]):e._e(),1==e.ruleForm.dateType?r("el-form-item",{attrs:{label:"提货有效期",prop:"dynamicStop"}},[e._v("\n 备货完成"),r("el-input-number",{staticClass:"w100 mr5 ml5",attrs:{min:2,controls:!1,precision:0},model:{value:e.ruleForm.dynamicStop,callback:function(t){e.$set(e.ruleForm,"dynamicStop",t)},expression:"ruleForm.dynamicStop"}}),e._v("天后,停止自提\n ")],1):e._e(),2==e.ruleForm.dateType?r("el-form-item",{attrs:{label:"日期范围",prop:"fixedTime"}},[e._l(e.ruleForm.fixedTime,(function(t,a){return r("div",{key:a,staticClass:"mb10"},[r("el-date-picker",{attrs:{"picker-options":e.pickerOptionsEnd,"is-range":"",format:"yy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){return e.limitDataSelect(a,t)}},model:{value:t.dataRange,callback:function(r){e.$set(t,"dataRange",r)},expression:"v.dataRange"}}),a?r("el-button",{staticClass:"delete-btn ml10",attrs:{type:"text"},on:{click:function(r){return e.deleteTime(t)}}},[e._v("删除")]):e._e()],1)})),r("el-button",{attrs:{type:"text",disabled:e.ruleForm.fixedTime.length>=5},on:{click:e.addTime}},[r("i",{staticClass:"el-icon-plus"}),e._v("添加时间")])],2):e._e(),r("el-form-item",{attrs:{label:"超期发货单处理",required:""}},[r("div",[r("el-radio",{attrs:{label:1},model:{value:e.ruleForm.timeoutDealType,callback:function(t){e.$set(e.ruleForm,"timeoutDealType",t)},expression:"ruleForm.timeoutDealType"}},[e._v("到期自动完成核销")])],1),r("div",[r("el-radio",{attrs:{label:2},model:{value:e.ruleForm.timeoutDealType,callback:function(t){e.$set(e.ruleForm,"timeoutDealType",t)},expression:"ruleForm.timeoutDealType"}},[e._v("到期自动关闭发货单,若为销售订单请至应用中查看退款情况")])],1)])]:e._e()],2)},i=[],n={name:"PickupFormContent",props:{ruleForm:{type:Object,default:function(){}}},data:function(){return{pickerOptionsEnd:{disabledDate:function(e){return e.getTime()<new Date((new Date).toLocaleDateString()).getTime()}}}},methods:{addTime:function(){this.ruleForm.fixedTime.push({dataRange:""})},deleteTime:function(e){this.ruleForm.fixedTime.splice(e,1)},limitDataSelect:function(e,t){var r=new Date(t[0]).valueOf(),a=new Date(t[1]).valueOf(),i=this.ruleForm.fixedTime;if(1!=i.length)if(0!==e){for(var n=e-1;n>=0;n--)if(i[n].dataRange){var o=new Date(i[n].dataRange[1]).valueOf();r<=o&&(this.$message.error("日期不可重叠!"),i[e].dataRange=null)}for(var l=e+1;l<i.length;l++)if(i[l].dataRange){var s=new Date(i[l].dataRange[0]).valueOf();(r>=s||a>=s)&&(this.$message.error("日期不可重叠!"),i[e].dataRange=null)}}else for(var c=e+1;c<i.length;c++)if(i[c].dataRange){var u=new Date(i[c].dataRange[0]).valueOf();(r>=u||a>=u)&&(this.$message.error("日期不可重叠!"),i[e].dataRange=null)}}}},o=n,l=(r("445b"),r("2877")),s=Object(l["a"])(o,a,i,!1,null,"1b2ddbf4",null);t["a"]=s.exports},"37c8":function(e,t,r){t.f=r("2b4c")},"3a72":function(e,t,r){var a=r("7726"),i=r("8378"),n=r("2d00"),o=r("37c8"),l=r("86cc").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=n?{}:a.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:o.f(e)})}},"445b":function(e,t,r){"use strict";r("af5d")},"520e":function(e,t,r){},"5fdd":function(e,t,r){"use strict";r("520e")},"7bbc":function(e,t,r){var a=r("6821"),i=r("9093").f,n={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return i(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==n.call(e)?l(e):i(a(e))}},"8a81":function(e,t,r){"use strict";var a=r("7726"),i=r("69a8"),n=r("9e1e"),o=r("5ca1"),l=r("2aba"),s=r("67ab").KEY,c=r("79e5"),u=r("5537"),d=r("7f20"),p=r("ca5a"),m=r("2b4c"),f=r("37c8"),g=r("3a72"),y=r("d4c0"),b=r("1169"),h=r("cb7c"),v=r("d3f4"),T=r("4bf8"),k=r("6821"),F=r("6a99"),w=r("4630"),S=r("2aeb"),O=r("7bbc"),x=r("11e9"),D=r("2621"),j=r("86cc"),_=r("0d58"),C=x.f,P=j.f,$=O.f,I=a.Symbol,R=a.JSON,A=R&&R.stringify,E="prototype",N=m("_hidden"),M=m("toPrimitive"),H={}.propertyIsEnumerable,q=u("symbol-registry"),U=u("symbols"),L=u("op-symbols"),W=Object[E],J="function"==typeof I&&!!D.f,G=a.QObject,B=!G||!G[E]||!G[E].findChild,V=n&&c((function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(e,t,r){var a=C(W,t);a&&delete W[t],P(e,t,r),a&&e!==W&&P(W,t,a)}:P,z=function(e){var t=U[e]=S(I[E]);return t._k=e,t},K=J&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},Q=function(e,t,r){return e===W&&Q(L,t,r),h(e),t=F(t,!0),h(r),i(U,t)?(r.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),r=S(r,{enumerable:w(0,!1)})):(i(e,N)||P(e,N,w(1,{})),e[N][t]=!0),V(e,t,r)):P(e,t,r)},Y=function(e,t){h(e);var r,a=y(t=k(t)),i=0,n=a.length;while(n>i)Q(e,r=a[i++],t[r]);return e},X=function(e,t){return void 0===t?S(e):Y(S(e),t)},Z=function(e){var t=H.call(this,e=F(e,!0));return!(this===W&&i(U,e)&&!i(L,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,N)&&this[N][e])||t)},ee=function(e,t){if(e=k(e),t=F(t,!0),e!==W||!i(U,t)||i(L,t)){var r=C(e,t);return!r||!i(U,t)||i(e,N)&&e[N][t]||(r.enumerable=!0),r}},te=function(e){var t,r=$(k(e)),a=[],n=0;while(r.length>n)i(U,t=r[n++])||t==N||t==s||a.push(t);return a},re=function(e){var t,r=e===W,a=$(r?L:k(e)),n=[],o=0;while(a.length>o)!i(U,t=a[o++])||r&&!i(W,t)||n.push(U[t]);return n};J||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(r){this===W&&t.call(L,r),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),V(this,e,w(1,r))};return n&&B&&V(W,e,{configurable:!0,set:t}),z(e)},l(I[E],"toString",(function(){return this._k})),x.f=ee,j.f=Q,r("9093").f=O.f=te,r("52a7").f=Z,D.f=re,n&&!r("2d00")&&l(W,"propertyIsEnumerable",Z,!0),f.f=function(e){return z(m(e))}),o(o.G+o.W+o.F*!J,{Symbol:I});for(var ae="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;ae.length>ie;)m(ae[ie++]);for(var ne=_(m.store),oe=0;ne.length>oe;)g(ne[oe++]);o(o.S+o.F*!J,"Symbol",{for:function(e){return i(q,e+="")?q[e]:q[e]=I(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){B=!0},useSimple:function(){B=!1}}),o(o.S+o.F*!J,"Object",{create:X,defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:re});var le=c((function(){D.f(1)}));o(o.S+o.F*le,"Object",{getOwnPropertySymbols:function(e){return D.f(T(e))}}),R&&o(o.S+o.F*(!J||c((function(){var e=I();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))}))),"JSON",{stringify:function(e){var t,r,a=[e],i=1;while(arguments.length>i)a.push(arguments[i++]);if(r=t=a[1],(v(t)||void 0!==e)&&!K(e))return b(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!K(t))return t}),a[1]=t,A.apply(R,a)}}),I[E][M]||r("32e9")(I[E],M,I[E].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(a.JSON,"JSON",!0)},ac4d:function(e,t,r){r("3a72")("asyncIterator")},af5d:function(e,t,r){},cdc8:function(e,t,r){"use strict";r("8e6e"),r("ac6a"),r("456d");var a=r("ade3"),i=r("71f6"),n=r("f121");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){Object(a["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"/address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};s=Object(i["a"])(s,n["f"]),c=Object(i["a"])(c,n["f"]),t["a"]=l(l({},s),c);n["c"].api,n["b"],n["c"].api,n["f"]},d4c0:function(e,t,r){var a=r("0d58"),i=r("2621"),n=r("52a7");e.exports=function(e){var t=a(e),r=i.f;if(r){var o,l=r(e),s=n.f,c=0;while(l.length>c)s.call(e,o=l[c++])&&t.push(o)}return t}}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-51f3e04f"],{"1c4c":function(t,e,a){"use strict";var i=a("9b43"),s=a("5ca1"),n=a("4bf8"),o=a("1fa8"),r=a("33a4"),l=a("9def"),c=a("f1ae"),u=a("27ee");s(s.S+s.F*!a("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,a,s,d,f=n(t),p="function"==typeof this?this:Array,h=arguments.length,g=h>1?arguments[1]:void 0,m=void 0!==g,k=0,b=u(f);if(m&&(g=i(g,h>2?arguments[2]:void 0,2)),void 0==b||p==Array&&r(b))for(e=l(f.length),a=new p(e);e>k;k++)c(a,k,m?g(f[k],k):f[k]);else for(d=b.call(f),a=new p;!(s=d.next()).done;k++)c(a,k,m?o(d,g,[s.value,k],!0):s.value);return a.length=k,a}})},"37c8":function(t,e,a){e.f=a("2b4c")},"3a72":function(t,e,a){var i=a("7726"),s=a("8378"),n=a("2d00"),o=a("37c8"),r=a("86cc").f;t.exports=function(t){var e=s.Symbol||(s.Symbol=n?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||r(e,t,{value:o.f(t)})}},"69ff":function(t,e,a){"use strict";a("b5d5")},"7bbc":function(t,e,a){var i=a("6821"),s=a("9093").f,n={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r=function(t){try{return s(t)}catch(e){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==n.call(t)?r(t):s(i(t))}},"8a81":function(t,e,a){"use strict";var i=a("7726"),s=a("69a8"),n=a("9e1e"),o=a("5ca1"),r=a("2aba"),l=a("67ab").KEY,c=a("79e5"),u=a("5537"),d=a("7f20"),f=a("ca5a"),p=a("2b4c"),h=a("37c8"),g=a("3a72"),m=a("d4c0"),k=a("1169"),b=a("cb7c"),S=a("d3f4"),y=a("4bf8"),v=a("6821"),C=a("6a99"),w=a("4630"),O=a("2aeb"),I=a("7bbc"),x=a("11e9"),j=a("2621"),P=a("86cc"),T=a("0d58"),_=x.f,L=P.f,q=I.f,D=i.Symbol,N=i.JSON,$=N&&N.stringify,F="prototype",U=p("_hidden"),V=p("toPrimitive"),B={}.propertyIsEnumerable,A=u("symbol-registry"),M=u("symbols"),E=u("op-symbols"),z=Object[F],H="function"==typeof D&&!!j.f,R=i.QObject,J=!R||!R[F]||!R[F].findChild,G=n&&c((function(){return 7!=O(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,e,a){var i=_(z,e);i&&delete z[e],L(t,e,a),i&&t!==z&&L(z,e,i)}:L,W=function(t){var e=M[t]=O(D[F]);return e._k=t,e},K=H&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},Q=function(t,e,a){return t===z&&Q(E,e,a),b(t),e=C(e,!0),b(a),s(M,e)?(a.enumerable?(s(t,U)&&t[U][e]&&(t[U][e]=!1),a=O(a,{enumerable:w(0,!1)})):(s(t,U)||L(t,U,w(1,{})),t[U][e]=!0),G(t,e,a)):L(t,e,a)},Y=function(t,e){b(t);var a,i=m(e=v(e)),s=0,n=i.length;while(n>s)Q(t,a=i[s++],e[a]);return t},X=function(t,e){return void 0===e?O(t):Y(O(t),e)},Z=function(t){var e=B.call(this,t=C(t,!0));return!(this===z&&s(M,t)&&!s(E,t))&&(!(e||!s(this,t)||!s(M,t)||s(this,U)&&this[U][t])||e)},tt=function(t,e){if(t=v(t),e=C(e,!0),t!==z||!s(M,e)||s(E,e)){var a=_(t,e);return!a||!s(M,e)||s(t,U)&&t[U][e]||(a.enumerable=!0),a}},et=function(t){var e,a=q(v(t)),i=[],n=0;while(a.length>n)s(M,e=a[n++])||e==U||e==l||i.push(e);return i},at=function(t){var e,a=t===z,i=q(a?E:v(t)),n=[],o=0;while(i.length>o)!s(M,e=i[o++])||a&&!s(z,e)||n.push(M[e]);return n};H||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(a){this===z&&e.call(E,a),s(this,U)&&s(this[U],t)&&(this[U][t]=!1),G(this,t,w(1,a))};return n&&J&&G(z,t,{configurable:!0,set:e}),W(t)},r(D[F],"toString",(function(){return this._k})),x.f=tt,P.f=Q,a("9093").f=I.f=et,a("52a7").f=Z,j.f=at,n&&!a("2d00")&&r(z,"propertyIsEnumerable",Z,!0),h.f=function(t){return W(p(t))}),o(o.G+o.W+o.F*!H,{Symbol:D});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),st=0;it.length>st;)p(it[st++]);for(var nt=T(p.store),ot=0;nt.length>ot;)g(nt[ot++]);o(o.S+o.F*!H,"Symbol",{for:function(t){return s(A,t+="")?A[t]:A[t]=D(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in A)if(A[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),o(o.S+o.F*!H,"Object",{create:X,defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:at});var rt=c((function(){j.f(1)}));o(o.S+o.F*rt,"Object",{getOwnPropertySymbols:function(t){return j.f(y(t))}}),N&&o(o.S+o.F*(!H||c((function(){var t=D();return"[null]"!=$([t])||"{}"!=$({a:t})||"{}"!=$(Object(t))}))),"JSON",{stringify:function(t){var e,a,i=[t],s=1;while(arguments.length>s)i.push(arguments[s++]);if(a=e=i[1],(S(e)||void 0!==t)&&!K(t))return k(e)||(e=function(t,e){if("function"==typeof a&&(e=a.call(this,t,e)),!K(e))return e}),i[1]=e,$.apply(N,i)}}),D[F][V]||a("32e9")(D[F],V,D[F].valueOf),d(D,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},a1a6:function(t,e,a){},ac4d:function(t,e,a){a("3a72")("asyncIterator")},ac4f:function(t,e,a){"use strict";a("afcd")},afcd:function(t,e,a){},b5d5:function(t,e,a){},cdc8:function(t,e,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var i=a("ade3"),s=a("71f6"),n=a("f121");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function r(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach((function(e){Object(i["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var l={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};l=Object(s["a"])(l,n["f"]),c=Object(s["a"])(c,n["f"]),e["a"]=r(r({},l),c);n["c"].api,n["b"],n["c"].api,n["f"]},d4c0:function(t,e,a){var i=a("0d58"),s=a("2621"),n=a("52a7");t.exports=function(t){var e=i(t),a=s.f;if(a){var o,r=a(t),l=n.f,c=0;while(r.length>c)l.call(t,o=r[c++])&&e.push(o)}return e}},df86:function(t,e,a){"use strict";a("ed00")},e6de:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("div",[a("div",[a("div",{staticClass:"tab-top"},[a("div",{staticClass:"fl"},[a("el-input",{staticClass:"mr10 w360",attrs:{placeholder:t.placeholderText,clearable:""},on:{clear:t.getSearchList2},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.key,callback:function(e){t.$set(t.query,"key",e)},expression:"query.key"}},[a("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend",placeholder:"礼品名称"},on:{change:t.handleChangeType},slot:"prepend",model:{value:t.query.type,callback:function(e){t.$set(t.query,"type",e)},expression:"query.type"}},[a("el-option",{attrs:{label:"礼品名称",value:1}}),a("el-option",{attrs:{label:"礼品编码",value:2}}),a("el-option",{attrs:{label:"条形码",value:3}}),a("el-option",{attrs:{label:"福利id",value:0}})],1)],1),a("el-select",{staticClass:"w-160 mr10",attrs:{placeholder:"礼品状态",clearable:""},on:{change:t.getSearchList},model:{value:t.query.hiddenFlag,callback:function(e){t.$set(t.query,"hiddenFlag",e)},expression:"query.hiddenFlag"}},[a("el-option",{attrs:{label:"显示",value:0}}),a("el-option",{attrs:{label:"隐藏",value:1}})],1),t.unfoldStatus?t._e():a("el-button",{attrs:{type:"text"},on:{click:t.handleUnfold}},[t._v("展开"),a("i",{staticClass:"el-icon-arrow-down"})]),t.unfoldStatus?a("el-button",{attrs:{type:"text"},on:{click:t.handleUnfold}},[t._v("收起"),a("i",{staticClass:"el-icon-arrow-up"})]):t._e()],1),a("div",{staticClass:"fr"},[a("el-select",{staticClass:"w-160 mr10 more-select",attrs:{placeholder:"批量操作",disabled:t.selectList.length<1},on:{change:t.handleBatch},model:{value:t.batchOperate,callback:function(e){t.batchOperate=e},expression:"batchOperate"}},[a("el-option",{attrs:{label:"批量隐藏",value:0}}),a("el-option",{attrs:{label:"批量取消隐藏",value:1}}),a("el-option",{attrs:{label:"批量禁用",value:2}}),a("el-option",{attrs:{label:"批量启用",value:3}})],1),a("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("新建礼品")])],1)]),t.unfoldStatus?a("div",{staticStyle:{margin:"20px 20px 0px 20px"}},[a("div",{staticStyle:{height:"32px"}},[a("div",{staticClass:"spanclass"},[t._v("福利成本:")]),a("dm-input-amount",{staticClass:"mr10 ml10",attrs:{precision:"2",min:0,max:9999999.99},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.startCostPrice,callback:function(e){t.$set(t.query,"startCostPrice","string"===typeof e?e.trim():e)},expression:"query.startCostPrice"}}),a("div",{staticClass:"spanclass"},[t._v("-")]),a("dm-input-amount",{staticClass:"mr40 ml10",attrs:{precision:"2",min:0,max:9999999.99},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.endCostPrice,callback:function(e){t.$set(t.query,"endCostPrice","string"===typeof e?e.trim():e)},expression:"query.endCostPrice"}}),a("div",{staticClass:"spanclass",staticStyle:{"margin-right":"28px"}},[t._v("更新时间:")]),a("el-select",{staticClass:"w-160 mr10 more-select",attrs:{placeholder:"由近及远",clearable:""},on:{change:t.handleSort},model:{value:t.sortData,callback:function(e){t.sortData=e},expression:"sortData"}},[a("el-option",{attrs:{label:"由近及远",value:0}}),a("el-option",{attrs:{label:"由远及近",value:1}})],1)],1),a("div",{staticClass:"mt20",staticStyle:{height:"32px"}},[a("div",{staticClass:"spanclass"},[t._v("可占库存:")]),a("dm-input-number",{staticClass:"mr10 ml10 w140",attrs:{precision:"0",min:0,max:9999999,placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.startStock,callback:function(e){t.$set(t.query,"startStock",e)},expression:"query.startStock"}}),a("div",{staticClass:"spanclass"},[t._v("-")]),a("dm-input-number",{staticClass:"ml10 mr40 w140",attrs:{precision:"0",min:0,max:9999999,placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.endStock,callback:function(e){t.$set(t.query,"endStock",e)},expression:"query.endStock"}}),a("div",{staticClass:"spanclass"},[t._v("更新时间范围:")]),a("el-date-picker",{staticClass:"w350",attrs:{type:"datetimerange",align:"right","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:t.changeTime},model:{value:t.timeValue,callback:function(e){t.timeValue=e},expression:"timeValue"}})],1)]):t._e()]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData},on:{"sort-change":t.sortChange,"selection-change":t.handleSelectAll}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"礼品信息",width:"300px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"img-text"},[a("dm-preview-img",{staticStyle:{display:"inline-block",border:"1px solid #dcdfe6",padding:"4px","border-radius":"2px"},attrs:{img:e.row.giftImgUrl,width:"50",height:"50"}}),a("div",{staticClass:"text"},[a("p",{staticClass:"goods-descript"},[a("el-tooltip",{staticClass:"item",attrs:{"open-delay":"200",effect:"dark",content:e.row.giftName,placement:"top"}},[a("span",{staticClass:"inline-block hidden-data"},[t._v(t._s(e.row.giftName||"--"))])]),a("el-popover",{attrs:{placement:"top",trigger:"hover"},on:{show:function(a){return t.getName(e.row.giftName)}}},[a("div",[a("dm-input",{staticStyle:{width:"260px"},attrs:{type:"text","byte-type":1,maxlength:30},model:{value:t.changeName,callback:function(e){t.changeName=e},expression:"changeName"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:function(a){return t.handleName(e.row)}}},[t._v("确认")])],1),a("i",{staticClass:"el-icon-edit-outline inline-block ml5",attrs:{slot:"reference"},slot:"reference"})])],1),a("p",{staticClass:"goods-code"},[a("el-tooltip",{attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("p",[t._v("福利id:"+t._s(e.row.giftId))]),a("div",[t._v("更新时间:"),a("p",{staticClass:"inline-block",domProps:{innerHTML:t._s(t.formatDateTimeByType(e.row.updateTime))}})])]),a("i",{staticClass:"el-icon-question inline-block mr5"})]),t._v("\n 礼品编码:"+t._s(e.row.giftNo||"--")+"\n ")],1)])],1)]}}])}),a("el-table-column",{attrs:{prop:"costPrice",label:"成本",sortable:"custom","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticClass:"stock-box"},[e.row.minCostPrice==e.row.maxCostPrice?a("span",[t._v(t._s(e.row.minCostPrice.toFixed(2)))]):a("span",[t._v(t._s(e.row.minCostPrice.toFixed(2))+"-"+t._s(e.row.maxCostPrice.toFixed(2)))]),a("i",{staticClass:"el-icon-edit-outline inline-block ml5",on:{click:function(a){return t.updateCost(e.row)}}})])]}}])}),a("el-table-column",{attrs:{sortable:"custom",label:"可占用库存","min-width":"150px",prop:"stock"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",{staticClass:"stock-box"},[a("el-tooltip",{attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("p",{staticClass:"goods-code"},[t._v("已占用:"+t._s(e.row.occupyStock))]),a("p",{staticClass:"goods-code"},[t._v("总库存:"+t._s(e.row.totalStock))])]),a("i",{staticClass:"el-icon-question inline-block mr5",staticStyle:{color:"#909399"}})]),a("span",[t._v("可占库存:"+t._s(e.row.remainedStock))]),a("i",{staticClass:"el-icon-edit-outline inline-block ml5",on:{click:function(a){return t.updateStock(e.row)}}})],1)])]}}])},[a("template",{slot:"header"},[a("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[a("span",{staticClass:"undeline-dash"},[t._v("可占用库存")]),a("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 可占库存:福利可以被直接使用和被应用占用的数量;"),a("br"),t._v("\n 已占用:福利已经被应用通过”固定库存“方式占用的数量;"),a("br"),t._v("\n 总库存:福利实际未产生履约单,还可以被出库的数量;"),a("br"),t._v("\n 总出库量:福利从创建到现在已生成履约单的数量;\n ")])])],1)],2),a("el-table-column",{attrs:{prop:"totalStock",label:"总出库量","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.totalOutStock||"--"))])]}}])},[a("template",{slot:"header"},[a("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[a("span",{staticClass:"undeline-dash"},[t._v("总出库量")]),a("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 可占库存:福利可以被直接使用和被应用占用的数量;"),a("br"),t._v("\n 已占用:福利已经被应用通过”固定库存“方式占用的数量;"),a("br"),t._v("\n 总库存:福利实际未产生履约单,还可以被出库的数量;"),a("br"),t._v("\n 总出库量:福利从创建到现在已生成履约单的数量;\n ")])])],1)],2),a("el-table-column",{attrs:{prop:"hiddenFlag",label:"是否隐藏","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:0===e.row.statusFlag&&1===e.row.hiddenFlag,"active-value":1,"inactive-value":0},on:{change:function(a){return t.changeShow(e.row)}},model:{value:e.row.hiddenFlag,callback:function(a){t.$set(e.row,"hiddenFlag",a)},expression:"scope.row.hiddenFlag"}})]}}])},[a("template",{slot:"header"},[a("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[a("span",{staticClass:"undeline-dash"},[t._v("是否隐藏")]),a("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 隐藏后福利组件中不展示,其他应用不可增加占用数量,已占用的库存不影响使用\n ")])])],1)],2),a("el-table-column",{attrs:{label:"操作","min-width":"170px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{"font-size":"0px"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.edit(e.row,2)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.$router.push("/gift-manage/real-stock-list?id="+e.row.giftId)}}},[t._v("库存记录")]),0===e.row.statusFlag?a("dm-delete",{attrs:{tips:"是否启用?"},on:{confirm:function(a){return t.changeStatus(e.row)}}},[a("el-button",{attrs:{type:"text"}},[t._v("启用")])],1):t._e(),1===e.row.statusFlag?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.changeStatus(e.row)}}},[t._v("禁用")]):t._e()],1)]}}])})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination-conteiner",staticStyle:{background:"#fff"}},[a("div",{staticClass:"pagination"},[0!=t.total?a("dm-pagination",{attrs:{background:"","current-page":t.query.currentPage,"page-sizes":[20,40,60,80],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:currentPage":function(e){return t.$set(t.query,"currentPage",e)},"update:current-page":function(e){return t.$set(t.query,"currentPage",e)}}}):t._e()],1)])],1)])]),t.updateCostDialog?a("update-real-cost",{attrs:{"update-cost-data":t.updateCostData},on:{closeUpdateCost:t.closeUpdateCost,getTableList:t.getTableList}}):t._e(),t.StockDialog?a("update-real-stock",{attrs:{"stock-data":t.stockData},on:{getTableList:t.getTableList,closeUpdateStock:t.closeUpdateStock}}):t._e()],1)},s=[],n=(a("ac4d"),a("8a81"),a("5df3"),a("1c4c"),a("7f7f"),a("6b54"),a("8e6e"),a("ac6a"),a("456d"),a("ade3")),o=a("fab6"),r=a("ed08"),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"调整成本",visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.goodsSkuList.length>1?a("div",[a("el-table",{attrs:{data:t.goodsSkuList,"span-method":t.objectSpanMethod,border:""}},[t._l(t.skuCols,(function(e,i){return a("el-table-column",{key:i,attrs:{width:"140px",label:e,"class-name":i==t.skuCols.length-1?"pad-l-20":"right-border"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.cols[i]))]}}],null,!0)})})),a("el-table-column",{attrs:{label:"成本(元)"},scopedSlots:t._u([{key:"header",fn:function(){return[a("span",[t._v("成本(元)")]),a("el-popover",{ref:"popover",attrs:{placement:"top",trigger:"click"}},[a("dm-input-amount",{staticClass:"hidden-limit",attrs:{max:999999.99,min:0,precision:2},model:{value:t.banthCost,callback:function(e){t.banthCost=e},expression:"banthCost"}}),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleBatch}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0},{key:"default",fn:function(e){return[a("dm-input-amount",{attrs:{width:"200px",precision:"2",min:0,max:999999.99},on:{change:function(a){return t.changeSingleCost(t.skuSellObj[e.row.mapId].giftSkuId,t.skuSellObj[e.row.mapId].giftSkuCostPrice)}},model:{value:t.skuSellObj[e.row.mapId].giftSkuCostPrice,callback:function(a){t.$set(t.skuSellObj[e.row.mapId],"giftSkuCostPrice","string"===typeof a?a.trim():a)},expression:"skuSellObj[scope.row.mapId].giftSkuCostPrice"}})]}}],null,!1,2079382392)})],2)],1):a("el-form",{staticClass:"mt20"},[a("el-form-item",{attrs:{label:"成本费用",required:""}},[[a("dm-input-amount",{staticStyle:{width:"200px"},attrs:{precision:"2",min:0,max:999999.99},on:{change:function(e){return t.changeSingleCost(t.giftSkuId,t.costPrice)}},model:{value:t.costPrice,callback:function(e){t.costPrice=e},expression:"costPrice"}})]],2)],1),a("el-form",{staticClass:"mt20"},[a("el-form-item",{attrs:{label:"调整备注",required:""}},[[a("el-input",{staticStyle:{width:"260px"},attrs:{type:"textarea",rows:3,placeholder:"请填入调整备注",maxlength:240,"show-word-limit":""},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}})]],2)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return t.cancelSubmit()}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitProNanme()}}},[t._v("确认")])],1)])},c=[],u=a("cdc8");function d(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=f(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,s=function(){};return{s:s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:s}}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 n,o=!0,r=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,n=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw n}}}}function f(t,e){if(t){if("string"===typeof t)return p(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}var h=u["a"].realCostUpdate,g=u["a"].giftGet,m={props:{updateCostData:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!1,loading:!1,banthCost:"",updateList:[],textarea:"",giftId:"",skuSellObj:{},goodsStandardInfo:"",skuCols:[],costPrice:"",giftSpecInfo:"",goodsSkuList:[],stockObj:{},giftSkuId:""}},mounted:function(){this.dialogVisible=!0,this.giftId=this.updateCostData.id,this.getData()},methods:{getData:function(){var t=this;if(!this.loading){var e={id:this.giftId};g(e).then((function(e){if("0000"===e.code){t.giftSpecInfo=e.result.giftSpecInfo;var a=e.result.skuList||[],i=[],s={};if(a.length>0){for(var n=0;n<a.length;n++)if(i.push({mapId:"",id:[],giftSkuId:a[n].giftSkuId,giftSkuCostPrice:a[n].giftSkuCostPrice,giftSkuCode:a[n].giftSkuCode,skuBarCode:a[n].skuBarCode,stock:a[n].stock,remainedStock:a[n].remainedStock,giftSkuStrand:a[n].giftSkuStrand,giftId:a[n].giftId}),a[n].giftSkuStrand){for(var o=0;o<JSON.parse(a[n].giftSkuStrand).length;o++)i[n].id.push(JSON.parse(a[n].giftSkuStrand)[o].specStandardValueId);i[n].mapId=i[n].id.join("_")}var l,c=d(i);try{for(c.s();!(l=c.n()).done;){var u=l.value;s[u.mapId]={skuBarCode:u.skuBarCode,giftSkuCode:u.giftSkuCode,giftSkuCostPrice:u.giftSkuCostPrice,stock:u.stock,giftSkuCostPriceStatus:!0,stockStatus:!0,giftSkuId:u.giftSkuId,remainedStock:u.remainedStock}}}catch(f){c.e(f)}finally{c.f()}t.skuSellObj=Object(r["c"])(s)}t.goodsStandardInfo=t.giftSpecInfo?JSON.parse(t.giftSpecInfo):[],0===t.goodsStandardInfo.length&&(t.costPrice=e.result.costPrice.toFixed(2)),t.goodsStandardInfo.length>0?t.isStdImg=2===t.goodsStandardInfo[0].standardimg:t.isStdImg=!1,t.goodsStandardInfo.length>0?t.getSkuList():t.giftSkuId=a[0].giftSkuId}}))}},getSkuList:function(){var t=Object(r["c"])(this.goodsStandardInfo),e=[];this.skuCols=[];var a,i=d(t);try{for(i.s();!(a=i.n()).done;){var s,n=a.value,o=d(n.valueList);try{for(o.s();!(s=o.n()).done;){var l=s.value;l.specStandardName=n.specName,l.specStandardId=n.specId}}catch(w){o.e(w)}finally{o.f()}this.skuCols.push(n.specName),e.push(n.valueList)}}catch(w){i.e(w)}finally{i.f()}for(var c=this.combine(Object(r["c"])(e)),u=[],f=0;f<c.length;f++){u.push({data:c[f],cols:[],id:[],mapId:""});for(var p=0;p<c[f].length;p++)u[f].cols.push(c[f][p].specStandardValueName),u[f].id.push(c[f][p].specStandardValueId);u[f].mapId=u[f].id.join("_")}this.goodsSkuList=Object(r["c"])(u);var h=[];this.stValCount=[];for(var g=0;g<t.length;g++)t[g].valueList.length>0&&(h[g]=t[g].valueList.length);for(var m=1,k=0;k<h.length;k++)m*=h[k],this.stValCount[k]=m;var b=Object(r["c"])(u),S=Object(r["c"])(this.skuSellObj);this.skuSellObj={};var y,v=d(b);try{for(v.s();!(y=v.n()).done;){var C=y.value;S[C.mapId]?(this.skuSellObj[C.mapId]={giftSkuCostPrice:Object.keys(S).length>0?S[C.mapId].giftSkuCostPrice.toFixed(2):"",stock:Object.keys(S).length>0?S[C.mapId].stock:"",giftSkuCode:Object.keys(S).length>0?S[C.mapId].giftSkuCode:"",skuBarCode:Object.keys(S).length>0?S[C.mapId].skuBarCode:"",giftSkuId:Object.keys(S).length>0?S[C.mapId].giftSkuId:"",stockStatus:!0,giftSkuCostPriceStatus:!0},this.stockObj[C.mapId]=Object.keys(S).length>0?S[C.mapId].stock:""):this.skuSellObj[C.mapId]={giftSkuCostPrice:"",stock:void 0,giftSkuCode:"",skuBarCode:"",stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:""}}}catch(w){v.e(w)}finally{v.f()}this.skuSellObj=Object(r["c"])(this.skuSellObj),this.costPrice=this.skuSellObj[this.goodsSkuList[0].mapId].giftSkuCostPrice,this.refash=!this.refash},combine:function(t){t.reverse();var e=[];return function t(a,i,s){if(0==s)return e.push(a);for(var n=0;n<i[s-1].length;n++)t(a.concat(i[s-1][n]),i,s-1)}([],t,t.length),e},submitProNanme:function(){var t=this;if(!this.loading)if(this.textarea){this.loading=!0;var e={giftId:this.updateCostData.id,updateList:this.updateList,remark:this.textarea};h(e).then((function(e){"0000"===e.code?(t.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateCost",!1)}),10),t.$message.success("修改成功")):t.$message.error(e.message)})).finally((function(){return t.loading=!1}))}else this.$message.error("请完善备注")},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateCost",!1)}),10)},objectSpanMethod:function(t){var e=t.rowIndex,a=t.columnIndex,i=this.stValCount.length;if(a<i){var s=this.stValCount[a],n=this.stValCount[i-1];if(!s||!n)return{rowspan:0,colspan:0};var o=n/s;return e%o===0?{rowspan:o,colspan:1}:{rowspan:0,colspan:0}}},handleBatch:function(){for(var t in this.updateList=[],this.skuSellObj)this.skuSellObj[t].giftSkuCostPrice=this.banthCost,this.updateList.push({giftSkuId:this.skuSellObj[t].giftSkuId,costPrice:this.skuSellObj[t].giftSkuCostPrice});this.banthCost=""},changeSingleCost:function(t,e){if(e||this.$message.error("请完善成本"),this.updateList.length>0){var a,i=this.updateList.some((function(e,i){if(e.giftSkuId==t)return a=i,!0}));i?this.updateList[a].costPrice=e:this.updateList.push({giftSkuId:t,costPrice:e})}else this.updateList.push({giftSkuId:t,costPrice:e})}}},k=m,b=(a("f2f8"),a("2877")),S=Object(b["a"])(k,l,c,!1,null,"3f30ae2f",null),y=S.exports,v=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"调整库存",visible:t.dialogVisible,width:"750px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.goodsSkuList.length>1?a("div",[a("el-table",{attrs:{data:t.goodsSkuList,"span-method":t.objectSpanMethod,border:""}},[t._l(t.skuCols,(function(e,i){return a("el-table-column",{key:i,attrs:{width:"140px",label:e,"class-name":i==t.skuCols.length-1?"pad-l-20":"right-border"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.cols[i]))]}}],null,!0)})})),a("el-table-column",{attrs:{label:"当前可占用",width:"130px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.skuSellObj[e.row.mapId].remainedStock||"--")+"\n ")]}}],null,!1,3341787781)}),a("el-table-column",{attrs:{label:"库存"},scopedSlots:t._u([{key:"header",fn:function(){return[a("span",[t._v("库存")]),a("el-popover",{ref:"popover",attrs:{placement:"top",trigger:"click"}},[a("div",[a("el-select",{staticStyle:{width:"100px"},model:{value:t.banthStockType,callback:function(e){t.banthStockType=e},expression:"banthStockType"}},[a("el-option",{attrs:{label:"增加",value:1}}),a("el-option",{attrs:{label:"减少",value:0}})],1),a("dm-input-number",{staticStyle:{"margin-left":"-2px"},attrs:{width:"140","controls-position":"right",precision:"0",min:0,max:999999},model:{value:t.banthStock,callback:function(e){t.banthStock=e},expression:"banthStock"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleStock}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0},{key:"default",fn:function(e){return[a("el-select",{staticStyle:{width:"100px"},on:{change:t.changeType},model:{value:t.skuSellObj[e.row.mapId].stockType,callback:function(a){t.$set(t.skuSellObj[e.row.mapId],"stockType",a)},expression:"skuSellObj[scope.row.mapId].stockType"}},[a("el-option",{attrs:{label:"增加",value:1}}),a("el-option",{attrs:{label:"减少",value:0}})],1),a("dm-input-number",{staticStyle:{"margin-left":"-2px"},attrs:{width:"140","controls-position":"right",precision:"0",min:0,max:999999},on:{blur:function(a){return t.changeSingleStock(t.skuSellObj[e.row.mapId].giftSkuId,t.skuSellObj[e.row.mapId].stageStock,t.skuSellObj[e.row.mapId].stockType)}},model:{value:t.skuSellObj[e.row.mapId].stageStock,callback:function(a){t.$set(t.skuSellObj[e.row.mapId],"stageStock",a)},expression:"skuSellObj[scope.row.mapId].stageStock"}})]}}],null,!1,3419048037)})],2)],1):a("el-form",{staticClass:"mt20"},[a("el-form-item",{attrs:{label:"可占库存",required:""}},[[a("el-select",{staticStyle:{width:"100px"},model:{value:t.stockType,callback:function(e){t.stockType=e},expression:"stockType"}},[a("el-option",{attrs:{label:"增加",value:1}}),a("el-option",{attrs:{label:"减少",value:0}})],1),a("dm-input-number",{staticStyle:{"margin-left":"-1px"},attrs:{width:"140","controls-position":"right",precision:"0",min:0,max:999999},on:{blur:function(e){return t.changeSingleStock(t.giftSkuId,t.stock,t.stockType)}},model:{value:t.stock,callback:function(e){t.stock=e},expression:"stock"}})]],2)],1),a("el-form",{staticClass:"mt20"},[a("el-form-item",{attrs:{label:"调整备注",required:""}},[[a("el-input",{staticStyle:{width:"260px"},attrs:{type:"textarea",rows:3,placeholder:"请填入调整备注",maxlength:240,"show-word-limit":""},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}})]],2)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return t.cancelSubmit()}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitProNanme()}}},[t._v("确认")])],1)])},C=[];a("c5f6");function w(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=O(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,s=function(){};return{s:s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:s}}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 n,o=!0,r=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,n=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw n}}}}function O(t,e){if(t){if("string"===typeof t)return I(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?I(t,e):void 0}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}var x=u["a"].realStockUpdate,j=u["a"].giftGet,P={props:{stockData:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!1,loading:!1,spanArr:[],banthStock:void 0,stockType:1,banthStockType:1,updateList:[],textarea:"",giftId:"",skuSellObj:{},stockObj:{},skuCols:[],goodsSkuList:[],stock:0,giftSkuId:""}},created:function(){this.dialogVisible=!0,this.giftId=this.stockData.id,this.getData()},methods:{getData:function(){var t=this;if(!this.loading){var e={id:this.giftId};j(e).then((function(e){if("0000"===e.code){t.giftSpecInfo=e.result.giftSpecInfo;var a=e.result.skuList||[],i=[],s={};if(a.length>0){for(var n=0;n<a.length;n++)if(i.push({mapId:"",id:[],giftSkuId:a[n].giftSkuId,giftSkuCostPrice:a[n].giftSkuCostPrice,giftSkuCode:a[n].giftSkuCode,skuBarCode:a[n].skuBarCode,stock:a[n].stock,remainedStock:a[n].remainedStock,giftSkuStrand:a[n].giftSkuStrand,giftId:a[n].giftId}),a[n].giftSkuStrand){for(var o=0;o<JSON.parse(a[n].giftSkuStrand).length;o++)i[n].id.push(JSON.parse(a[n].giftSkuStrand)[o].specStandardValueId);i[n].mapId=i[n].id.join("_")}var l,c=w(i);try{for(c.s();!(l=c.n()).done;){var u=l.value;s[u.mapId]={skuBarCode:u.skuBarCode,giftSkuCode:u.giftSkuCode,giftSkuCostPrice:u.giftSkuCostPrice,stock:u.stock,giftSkuCostPriceStatus:!0,stockStatus:!0,giftSkuId:u.giftSkuId,remainedStock:u.remainedStock}}}catch(d){c.e(d)}finally{c.f()}t.skuSellObj=Object(r["c"])(s)}t.goodsStandardInfo=t.giftSpecInfo?JSON.parse(t.giftSpecInfo):[],t.goodsStandardInfo.length>0?t.isStdImg=2===t.goodsStandardInfo[0].standardimg:t.isStdImg=!1,t.goodsStandardInfo.length>0?t.getSkuList():t.giftSkuId=a[0].giftSkuId}}))}},changeType:function(t){},submitProNanme:function(){var t=this;if(!this.loading)if(this.textarea){var e=0;if(this.updateList.forEach((function(t){e=Number(e)+Number(t.stock)})),e){var a={giftId:this.stockData.id,updateList:this.updateList,remark:this.textarea};this.loading=!0,x(a).then((function(e){"0000"===e.code?(t.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateStock")}),10),t.$message.success("修改成功")):t.$message.error(e.message)})).finally((function(){return t.loading=!1}))}else this.$message.error("库存更改不可为0")}else this.$message.error("请完善备注")},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateStock")}),10)},getSkuList:function(){var t=Object(r["c"])(this.goodsStandardInfo),e=[];this.skuCols=[];var a,i=w(t);try{for(i.s();!(a=i.n()).done;){var s,n=a.value,o=w(n.valueList);try{for(o.s();!(s=o.n()).done;){var l=s.value;l.specStandardName=n.specName,l.specStandardId=n.specId}}catch(C){o.e(C)}finally{o.f()}this.skuCols.push(n.specName),e.push(n.valueList)}}catch(C){i.e(C)}finally{i.f()}for(var c=this.combine(Object(r["c"])(e)),u=[],d=0;d<c.length;d++){u.push({data:c[d],cols:[],id:[],mapId:""});for(var f=0;f<c[d].length;f++)u[d].cols.push(c[d][f].specStandardValueName),u[d].id.push(c[d][f].specStandardValueId);u[d].mapId=u[d].id.join("_")}this.goodsSkuList=Object(r["c"])(u);var p=[];this.stValCount=[];for(var h=0;h<t.length;h++)t[h].valueList.length>0&&(p[h]=t[h].valueList.length);for(var g=1,m=0;m<p.length;m++)g*=p[m],this.stValCount[m]=g;var k,b=Object(r["c"])(u),S=Object(r["c"])(this.skuSellObj),y=w(b);try{for(y.s();!(k=y.n()).done;){var v=k.value;S[v.mapId]?(this.skuSellObj[v.mapId]={giftSkuCostPrice:Object.keys(S).length>0?S[v.mapId].giftSkuCostPrice:"",stock:Object.keys(S).length>0?S[v.mapId].stock:"",giftSkuCode:Object.keys(S).length>0?S[v.mapId].giftSkuCode:"",skuBarCode:Object.keys(S).length>0?S[v.mapId].skuBarCode:"",giftSkuId:Object.keys(S).length>0?S[v.mapId].giftSkuId:"",remainedStock:Object.keys(S).length>0?S[v.mapId].remainedStock:"",stockStatus:!0,giftSkuCostPriceStatus:!0,stockType:1,stageStock:""},this.stockObj[v.mapId]=Object.keys(S).length>0?S[v.mapId].stock:""):this.skuSellObj[v.mapId]={giftSkuCostPrice:"",stock:void 0,giftSkuCode:"",skuBarCode:"",stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:"",remainedStock:"",stockType:1,stageStock:""}}}catch(C){y.e(C)}finally{y.f()}this.skuSellObj=Object(r["c"])(this.skuSellObj),this.refash=!this.refash},combine:function(t){t.reverse();var e=[];return function t(a,i,s){if(0==s)return e.push(a);for(var n=0;n<i[s-1].length;n++)t(a.concat(i[s-1][n]),i,s-1)}([],t,t.length),e},objectSpanMethod:function(t){var e=t.rowIndex,a=t.columnIndex,i=this.stValCount.length;if(a<i){var s=this.stValCount[a],n=this.stValCount[i-1];if(!s||!n)return{rowspan:0,colspan:0};var o=n/s;return e%o===0?{rowspan:o,colspan:1}:{rowspan:0,colspan:0}}},handleStock:function(){for(var t in this.updateList=[],this.stock=this.banthStock,this.skuSellObj)this.skuSellObj[t].stock=this.banthStock,this.skuSellObj[t].stageStock=this.banthStock,this.skuSellObj[t].stockType=this.banthStockType,this.updateList.push({giftSkuId:this.skuSellObj[t].giftSkuId,stock:this.skuSellObj[t].stock,stockType:this.banthStockType});this.banthStock=void 0},changeSingleStock:function(t,e,a){if(e||this.$message.error("请完善库存"),this.updateList.length>0){var i,s=this.updateList.some((function(e,a){if(e.giftSkuId==t)return i=a,!0}));s?(this.updateList[i].stock=e,this.updateList[i].stockType=a):this.updateList.push({giftSkuId:t,stock:e,stockType:a})}else this.updateList.push({giftSkuId:t,stock:e,stockType:a})}}},T=P,_=(a("ac4f"),Object(b["a"])(T,v,C,!1,null,"bbe41212",null)),L=_.exports;function q(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=D(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,s=function(){};return{s:s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:s}}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 n,o=!0,r=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,n=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw n}}}}function D(t,e){if(t){if("string"===typeof t)return N(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?N(t,e):void 0}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}function $(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function F(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?$(Object(a),!0).forEach((function(e){Object(n["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var U=u["a"].giftPage,V=u["a"].batchUpdate,B=u["a"].updateName,A={components:{UpdateRealCost:y,updateRealStock:L},data:function(){return{bread:[{breadName:"福利中心"},{breadName:"礼品管理"},{breadName:"实物礼品"}],mixins:[o["c"],o["a"]],formatDateTimeByType:r["e"],listTime:r["g"],unfoldStatus:!1,sortData:0,query:{hiddenFlag:"",startTime:"",endTime:"",startCostPrice:"",endCostPrice:"",startStock:void 0,endStock:void 0,sortColumn:"",sortOrder:"",currentPage:1,pageSize:20,type:1,key:""},batchOperate:"",total:0,tableData:[],selectList:[],updateCostData:{costPrice:"",id:"",textarea:""},updateCostDialog:!1,updateNameForm:{name:"",id:"",type:""},updateNameDialog:!1,stockData:{id:"",remainedStock:"",textarea:""},StockDialog:!1,integralDialog:!1,loading:!1,search:"",searchType:1,placeholderText:"请输入礼品名称",isShow:!1,timeValue:"",changeName:""}},created:function(){this.$emit("updateBread",this.bread),this.$emit("showAside",!0),this.init()},methods:{init:function(){this.searchType=1,this.getTableList()},getSearchList:function(){this.query.currentPage=1,this.getTableList()},getSearchList2:function(){this.query.type=1,this.query.currentPage=1,this.getTableList()},handleChangeType:function(){1===this.query.type?this.placeholderText="请输入礼品名称":2===this.query.type?this.placeholderText="请输入礼品编码":3===this.query.type?this.placeholderText="请输入条形码":0===this.query.type&&(this.placeholderText="请输入福利id")},getTableList:function(){var t=this;this.loading=!0;var e=F(F({},this.query),{},{giftType:1});U(e).then((function(e){t.tableData=e.result.result})).finally((function(){return t.loading=!1}))},handleSizeChange:function(t){this.query.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.query.currentPage=t,this.query.pageSize=1,this.getTableList()},handleUnfold:function(){this.unfoldStatus=!this.unfoldStatus},handleSort:function(t){this.query.sortOrder=0==t?"desc":"asc",this.query.sortColumn="update_time",this.getTableList()},sortChange:function(t){"ascending"==t.order?this.query.sortOrder="asc":"descending"==t.order&&(this.query.sortOrder="desc"),"updateTime"===t.prop?this.query.sortColumn="update_time":"costPrice"===t.prop&&"ascending"==t.order||"costPrice"===t.prop&&"descending"==t.order?this.query.sortColumn="min_cost_price":"stock"===t.prop&&(this.query.sortColumn="remained_stock"),this.getTableList()},changeTime:function(){this.timeValue?(this.query.startTime=this.formatDateTimeByType(this.timeValue[0],"yyyy-MM-dd-HH-mm-ss"),this.query.endTime=this.formatDateTimeByType(this.timeValue[1],"yyyy-MM-dd-HH-mm-ss")):(this.query.startTime="",this.query.endTime=""),this.query.currentPage=1,this.query.pageSize=20,this.getTableList()},handleSelectAll:function(t){this.selectList=t},handleBatch:function(t){var e,a=this,i=[],s=q(this.selectList);try{for(s.s();!(e=s.n()).done;){var n=e.value;i.push(n.giftId)}}catch(r){s.e(r)}finally{s.f()}var o={giftIdList:i,type:t};2==t?this.$confirm("<div>禁用礼品将在福利组件不展示,并且该礼品参加的活动将全部失效,确认禁用?</div>","批量禁用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){a.batchRequest(o)})):0==t?this.$confirm("<div>是否隐藏?</div>","批量隐藏",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){a.batchRequest(o)})):1==t?this.$confirm("<div>是否取消隐藏?</div>","批量取消隐藏",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){a.batchRequest(o)})):3==t&&this.$confirm("<div>是否启用?</div>","批量启用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){a.batchRequest(o)}))},batchRequest:function(t){var e=this;V(t).then((function(t){"0000"===t.code?(e.$message.success("操作成功"),e.getTableList()):e.$message.error(t.message)}))},changeShow:function(t){var e=this;1==t.statusFlag&&1==t.hiddenFlag?this.$confirm("<div>确认隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"隐藏"}).then((function(){var a={giftIdList:[t.giftId],type:0};e.batchRequest(a)})).catch((function(){t.hiddenFlag=0})):1==t.statusFlag&&0==t.hiddenFlag?this.$confirm("<div>确认取消隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){var a={giftIdList:[t.giftId],type:1};e.batchRequest(a)})).catch((function(){t.hiddenFlag=1})):0==t.statusFlag&&1==t.hiddenFlag&&this.$confirm("<div>确认隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"隐藏",showCancelButton:!1}).then((function(){var a={giftIdList:[t.giftId],type:0};e.batchRequest(a)})).catch((function(){t.hiddenFlag=0}))},changeStatus:function(t){var e=this;if(0==t.statusFlag){var a={giftIdList:[t.giftId],type:3};this.batchRequest(a)}else this.$confirm("<div>禁用礼品将在福利组件不展示,并且该礼品参加的活动将全部失效,确认禁用?</div>","禁用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"禁用"}).then((function(){var a={giftIdList:[t.giftId],type:2};e.batchRequest(a)}))},handleName:function(t){var e=this,a={giftId:t.giftId,name:this.changeName};B(a).then((function(t){"0000"===t.code?(e.$message.success("修改成功"),e.getTableList()):e.$message.error(t.message)}))},getName:function(t){this.changeName=t},updateStock:function(t){this.stockData.id=t.giftId,this.stockData.remainedStock=t.remainedStock,this.stockData.textarea=t.textarea,this.StockDialog=!0},closeUpdateStock:function(){this.stockData.remainedStock="",this.stockData.textarea="",this.StockDialog=!1,this.getTableList()},updateCost:function(t){this.updateCostData.id=t.giftId,this.updateCostDialog=!0},closeUpdateCost:function(){this.updateCostDialog=!1,this.getTableList()},add:function(){this.$router.push({path:"/gift-manage/real-gift-detail",query:{giftId:""}})},edit:function(t){this.$router.push({path:"/gift-manage/real-gift-detail",query:{giftId:t.giftId}})}}},M=A,E=(a("69ff"),a("df86"),Object(b["a"])(M,i,s,!1,null,"357df7d2",null));e["default"]=E.exports},ed00:function(t,e,a){},f2f8:function(t,e,a){"use strict";a("a1a6")},fab6:function(t,e,a){"use strict";a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return o}));var i=a("ed08"),s={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.listParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.listParams.currentPage=t,this.getTableList()}}},n={methods:{formatterTimeFunc:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[s]?(this.listParams[t]=Object(i["e"])(this[s][0],a),this.listParams[e]=Object(i["e"])(this[s][1],a)):this.listParams[t]=this.listParams[e]=""}}},o={methods:{mainHeight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-t}}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-51f3e04f"],{"1c4c":function(t,e,a){"use strict";var i=a("9b43"),s=a("5ca1"),n=a("4bf8"),o=a("1fa8"),r=a("33a4"),l=a("9def"),c=a("f1ae"),u=a("27ee");s(s.S+s.F*!a("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,a,s,d,f=n(t),p="function"==typeof this?this:Array,h=arguments.length,g=h>1?arguments[1]:void 0,m=void 0!==g,k=0,b=u(f);if(m&&(g=i(g,h>2?arguments[2]:void 0,2)),void 0==b||p==Array&&r(b))for(e=l(f.length),a=new p(e);e>k;k++)c(a,k,m?g(f[k],k):f[k]);else for(d=b.call(f),a=new p;!(s=d.next()).done;k++)c(a,k,m?o(d,g,[s.value,k],!0):s.value);return a.length=k,a}})},"37c8":function(t,e,a){e.f=a("2b4c")},"3a72":function(t,e,a){var i=a("7726"),s=a("8378"),n=a("2d00"),o=a("37c8"),r=a("86cc").f;t.exports=function(t){var e=s.Symbol||(s.Symbol=n?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||r(e,t,{value:o.f(t)})}},"69ff":function(t,e,a){"use strict";a("b5d5")},"7bbc":function(t,e,a){var i=a("6821"),s=a("9093").f,n={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r=function(t){try{return s(t)}catch(e){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==n.call(t)?r(t):s(i(t))}},"8a81":function(t,e,a){"use strict";var i=a("7726"),s=a("69a8"),n=a("9e1e"),o=a("5ca1"),r=a("2aba"),l=a("67ab").KEY,c=a("79e5"),u=a("5537"),d=a("7f20"),f=a("ca5a"),p=a("2b4c"),h=a("37c8"),g=a("3a72"),m=a("d4c0"),k=a("1169"),b=a("cb7c"),S=a("d3f4"),y=a("4bf8"),v=a("6821"),C=a("6a99"),w=a("4630"),O=a("2aeb"),I=a("7bbc"),x=a("11e9"),j=a("2621"),P=a("86cc"),T=a("0d58"),_=x.f,L=P.f,q=I.f,D=i.Symbol,N=i.JSON,$=N&&N.stringify,F="prototype",U=p("_hidden"),V=p("toPrimitive"),B={}.propertyIsEnumerable,A=u("symbol-registry"),M=u("symbols"),E=u("op-symbols"),z=Object[F],H="function"==typeof D&&!!j.f,R=i.QObject,J=!R||!R[F]||!R[F].findChild,G=n&&c((function(){return 7!=O(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,e,a){var i=_(z,e);i&&delete z[e],L(t,e,a),i&&t!==z&&L(z,e,i)}:L,W=function(t){var e=M[t]=O(D[F]);return e._k=t,e},K=H&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},Q=function(t,e,a){return t===z&&Q(E,e,a),b(t),e=C(e,!0),b(a),s(M,e)?(a.enumerable?(s(t,U)&&t[U][e]&&(t[U][e]=!1),a=O(a,{enumerable:w(0,!1)})):(s(t,U)||L(t,U,w(1,{})),t[U][e]=!0),G(t,e,a)):L(t,e,a)},Y=function(t,e){b(t);var a,i=m(e=v(e)),s=0,n=i.length;while(n>s)Q(t,a=i[s++],e[a]);return t},X=function(t,e){return void 0===e?O(t):Y(O(t),e)},Z=function(t){var e=B.call(this,t=C(t,!0));return!(this===z&&s(M,t)&&!s(E,t))&&(!(e||!s(this,t)||!s(M,t)||s(this,U)&&this[U][t])||e)},tt=function(t,e){if(t=v(t),e=C(e,!0),t!==z||!s(M,e)||s(E,e)){var a=_(t,e);return!a||!s(M,e)||s(t,U)&&t[U][e]||(a.enumerable=!0),a}},et=function(t){var e,a=q(v(t)),i=[],n=0;while(a.length>n)s(M,e=a[n++])||e==U||e==l||i.push(e);return i},at=function(t){var e,a=t===z,i=q(a?E:v(t)),n=[],o=0;while(i.length>o)!s(M,e=i[o++])||a&&!s(z,e)||n.push(M[e]);return n};H||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(a){this===z&&e.call(E,a),s(this,U)&&s(this[U],t)&&(this[U][t]=!1),G(this,t,w(1,a))};return n&&J&&G(z,t,{configurable:!0,set:e}),W(t)},r(D[F],"toString",(function(){return this._k})),x.f=tt,P.f=Q,a("9093").f=I.f=et,a("52a7").f=Z,j.f=at,n&&!a("2d00")&&r(z,"propertyIsEnumerable",Z,!0),h.f=function(t){return W(p(t))}),o(o.G+o.W+o.F*!H,{Symbol:D});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),st=0;it.length>st;)p(it[st++]);for(var nt=T(p.store),ot=0;nt.length>ot;)g(nt[ot++]);o(o.S+o.F*!H,"Symbol",{for:function(t){return s(A,t+="")?A[t]:A[t]=D(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in A)if(A[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),o(o.S+o.F*!H,"Object",{create:X,defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:at});var rt=c((function(){j.f(1)}));o(o.S+o.F*rt,"Object",{getOwnPropertySymbols:function(t){return j.f(y(t))}}),N&&o(o.S+o.F*(!H||c((function(){var t=D();return"[null]"!=$([t])||"{}"!=$({a:t})||"{}"!=$(Object(t))}))),"JSON",{stringify:function(t){var e,a,i=[t],s=1;while(arguments.length>s)i.push(arguments[s++]);if(a=e=i[1],(S(e)||void 0!==t)&&!K(t))return k(e)||(e=function(t,e){if("function"==typeof a&&(e=a.call(this,t,e)),!K(e))return e}),i[1]=e,$.apply(N,i)}}),D[F][V]||a("32e9")(D[F],V,D[F].valueOf),d(D,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},a1a6:function(t,e,a){},ac4d:function(t,e,a){a("3a72")("asyncIterator")},ac4f:function(t,e,a){"use strict";a("afcd")},afcd:function(t,e,a){},b5d5:function(t,e,a){},cdc8:function(t,e,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var i=a("ade3"),s=a("71f6"),n=a("f121");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function r(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach((function(e){Object(i["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var l={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"/address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};l=Object(s["a"])(l,n["f"]),c=Object(s["a"])(c,n["f"]),e["a"]=r(r({},l),c);n["c"].api,n["b"],n["c"].api,n["f"]},d4c0:function(t,e,a){var i=a("0d58"),s=a("2621"),n=a("52a7");t.exports=function(t){var e=i(t),a=s.f;if(a){var o,r=a(t),l=n.f,c=0;while(r.length>c)l.call(t,o=r[c++])&&e.push(o)}return e}},df86:function(t,e,a){"use strict";a("ed00")},e6de:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("div",[a("div",[a("div",{staticClass:"tab-top"},[a("div",{staticClass:"fl"},[a("el-input",{staticClass:"mr10 w360",attrs:{placeholder:t.placeholderText,clearable:""},on:{clear:t.getSearchList2},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.key,callback:function(e){t.$set(t.query,"key",e)},expression:"query.key"}},[a("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend",placeholder:"礼品名称"},on:{change:t.handleChangeType},slot:"prepend",model:{value:t.query.type,callback:function(e){t.$set(t.query,"type",e)},expression:"query.type"}},[a("el-option",{attrs:{label:"礼品名称",value:1}}),a("el-option",{attrs:{label:"礼品编码",value:2}}),a("el-option",{attrs:{label:"条形码",value:3}}),a("el-option",{attrs:{label:"福利id",value:0}})],1)],1),a("el-select",{staticClass:"w-160 mr10",attrs:{placeholder:"礼品状态",clearable:""},on:{change:t.getSearchList},model:{value:t.query.hiddenFlag,callback:function(e){t.$set(t.query,"hiddenFlag",e)},expression:"query.hiddenFlag"}},[a("el-option",{attrs:{label:"显示",value:0}}),a("el-option",{attrs:{label:"隐藏",value:1}})],1),t.unfoldStatus?t._e():a("el-button",{attrs:{type:"text"},on:{click:t.handleUnfold}},[t._v("展开"),a("i",{staticClass:"el-icon-arrow-down"})]),t.unfoldStatus?a("el-button",{attrs:{type:"text"},on:{click:t.handleUnfold}},[t._v("收起"),a("i",{staticClass:"el-icon-arrow-up"})]):t._e()],1),a("div",{staticClass:"fr"},[a("el-select",{staticClass:"w-160 mr10 more-select",attrs:{placeholder:"批量操作",disabled:t.selectList.length<1},on:{change:t.handleBatch},model:{value:t.batchOperate,callback:function(e){t.batchOperate=e},expression:"batchOperate"}},[a("el-option",{attrs:{label:"批量隐藏",value:0}}),a("el-option",{attrs:{label:"批量取消隐藏",value:1}}),a("el-option",{attrs:{label:"批量禁用",value:2}}),a("el-option",{attrs:{label:"批量启用",value:3}})],1),a("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("新建礼品")])],1)]),t.unfoldStatus?a("div",{staticStyle:{margin:"20px 20px 0px 20px"}},[a("div",{staticStyle:{height:"32px"}},[a("div",{staticClass:"spanclass"},[t._v("福利成本:")]),a("dm-input-amount",{staticClass:"mr10 ml10",attrs:{precision:"2",min:0,max:9999999.99},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.startCostPrice,callback:function(e){t.$set(t.query,"startCostPrice","string"===typeof e?e.trim():e)},expression:"query.startCostPrice"}}),a("div",{staticClass:"spanclass"},[t._v("-")]),a("dm-input-amount",{staticClass:"mr40 ml10",attrs:{precision:"2",min:0,max:9999999.99},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.endCostPrice,callback:function(e){t.$set(t.query,"endCostPrice","string"===typeof e?e.trim():e)},expression:"query.endCostPrice"}}),a("div",{staticClass:"spanclass",staticStyle:{"margin-right":"28px"}},[t._v("更新时间:")]),a("el-select",{staticClass:"w-160 mr10 more-select",attrs:{placeholder:"由近及远",clearable:""},on:{change:t.handleSort},model:{value:t.sortData,callback:function(e){t.sortData=e},expression:"sortData"}},[a("el-option",{attrs:{label:"由近及远",value:0}}),a("el-option",{attrs:{label:"由远及近",value:1}})],1)],1),a("div",{staticClass:"mt20",staticStyle:{height:"32px"}},[a("div",{staticClass:"spanclass"},[t._v("可占库存:")]),a("dm-input-number",{staticClass:"mr10 ml10 w140",attrs:{precision:"0",min:0,max:9999999,placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.startStock,callback:function(e){t.$set(t.query,"startStock",e)},expression:"query.startStock"}}),a("div",{staticClass:"spanclass"},[t._v("-")]),a("dm-input-number",{staticClass:"ml10 mr40 w140",attrs:{precision:"0",min:0,max:9999999,placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.endStock,callback:function(e){t.$set(t.query,"endStock",e)},expression:"query.endStock"}}),a("div",{staticClass:"spanclass"},[t._v("更新时间范围:")]),a("el-date-picker",{staticClass:"w350",attrs:{type:"datetimerange",align:"right","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:t.changeTime},model:{value:t.timeValue,callback:function(e){t.timeValue=e},expression:"timeValue"}})],1)]):t._e()]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData},on:{"sort-change":t.sortChange,"selection-change":t.handleSelectAll}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"礼品信息",width:"300px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"img-text"},[a("dm-preview-img",{staticStyle:{display:"inline-block",border:"1px solid #dcdfe6",padding:"4px","border-radius":"2px"},attrs:{img:e.row.giftImgUrl,width:"50",height:"50"}}),a("div",{staticClass:"text"},[a("p",{staticClass:"goods-descript"},[a("el-tooltip",{staticClass:"item",attrs:{"open-delay":"200",effect:"dark",content:e.row.giftName,placement:"top"}},[a("span",{staticClass:"inline-block hidden-data"},[t._v(t._s(e.row.giftName||"--"))])]),a("el-popover",{attrs:{placement:"top",trigger:"hover"},on:{show:function(a){return t.getName(e.row.giftName)}}},[a("div",[a("dm-input",{staticStyle:{width:"260px"},attrs:{type:"text","byte-type":1,maxlength:30},model:{value:t.changeName,callback:function(e){t.changeName=e},expression:"changeName"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:function(a){return t.handleName(e.row)}}},[t._v("确认")])],1),a("i",{staticClass:"el-icon-edit-outline inline-block ml5",attrs:{slot:"reference"},slot:"reference"})])],1),a("p",{staticClass:"goods-code"},[a("el-tooltip",{attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("p",[t._v("福利id:"+t._s(e.row.giftId))]),a("div",[t._v("更新时间:"),a("p",{staticClass:"inline-block",domProps:{innerHTML:t._s(t.formatDateTimeByType(e.row.updateTime))}})])]),a("i",{staticClass:"el-icon-question inline-block mr5"})]),t._v("\n 礼品编码:"+t._s(e.row.giftNo||"--")+"\n ")],1)])],1)]}}])}),a("el-table-column",{attrs:{prop:"costPrice",label:"成本",sortable:"custom","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticClass:"stock-box"},[e.row.minCostPrice==e.row.maxCostPrice?a("span",[t._v(t._s(e.row.minCostPrice.toFixed(2)))]):a("span",[t._v(t._s(e.row.minCostPrice.toFixed(2))+"-"+t._s(e.row.maxCostPrice.toFixed(2)))]),a("i",{staticClass:"el-icon-edit-outline inline-block ml5",on:{click:function(a){return t.updateCost(e.row)}}})])]}}])}),a("el-table-column",{attrs:{sortable:"custom",label:"可占用库存","min-width":"150px",prop:"stock"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",{staticClass:"stock-box"},[a("el-tooltip",{attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("p",{staticClass:"goods-code"},[t._v("已占用:"+t._s(e.row.occupyStock))]),a("p",{staticClass:"goods-code"},[t._v("总库存:"+t._s(e.row.totalStock))])]),a("i",{staticClass:"el-icon-question inline-block mr5",staticStyle:{color:"#909399"}})]),a("span",[t._v("可占库存:"+t._s(e.row.remainedStock))]),a("i",{staticClass:"el-icon-edit-outline inline-block ml5",on:{click:function(a){return t.updateStock(e.row)}}})],1)])]}}])},[a("template",{slot:"header"},[a("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[a("span",{staticClass:"undeline-dash"},[t._v("可占用库存")]),a("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 可占库存:福利可以被直接使用和被应用占用的数量;"),a("br"),t._v("\n 已占用:福利已经被应用通过”固定库存“方式占用的数量;"),a("br"),t._v("\n 总库存:福利实际未产生履约单,还可以被出库的数量;"),a("br"),t._v("\n 总出库量:福利从创建到现在已生成履约单的数量;\n ")])])],1)],2),a("el-table-column",{attrs:{prop:"totalStock",label:"总出库量","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.totalOutStock||"--"))])]}}])},[a("template",{slot:"header"},[a("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[a("span",{staticClass:"undeline-dash"},[t._v("总出库量")]),a("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 可占库存:福利可以被直接使用和被应用占用的数量;"),a("br"),t._v("\n 已占用:福利已经被应用通过”固定库存“方式占用的数量;"),a("br"),t._v("\n 总库存:福利实际未产生履约单,还可以被出库的数量;"),a("br"),t._v("\n 总出库量:福利从创建到现在已生成履约单的数量;\n ")])])],1)],2),a("el-table-column",{attrs:{prop:"hiddenFlag",label:"是否隐藏","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:0===e.row.statusFlag&&1===e.row.hiddenFlag,"active-value":1,"inactive-value":0},on:{change:function(a){return t.changeShow(e.row)}},model:{value:e.row.hiddenFlag,callback:function(a){t.$set(e.row,"hiddenFlag",a)},expression:"scope.row.hiddenFlag"}})]}}])},[a("template",{slot:"header"},[a("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[a("span",{staticClass:"undeline-dash"},[t._v("是否隐藏")]),a("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 隐藏后福利组件中不展示,其他应用不可增加占用数量,已占用的库存不影响使用\n ")])])],1)],2),a("el-table-column",{attrs:{label:"操作","min-width":"170px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{"font-size":"0px"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.edit(e.row,2)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.$router.push("/gift-manage/real-stock-list?id="+e.row.giftId)}}},[t._v("库存记录")]),0===e.row.statusFlag?a("dm-delete",{attrs:{tips:"是否启用?"},on:{confirm:function(a){return t.changeStatus(e.row)}}},[a("el-button",{attrs:{type:"text"}},[t._v("启用")])],1):t._e(),1===e.row.statusFlag?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.changeStatus(e.row)}}},[t._v("禁用")]):t._e()],1)]}}])})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination-conteiner",staticStyle:{background:"#fff"}},[a("div",{staticClass:"pagination"},[0!=t.total?a("dm-pagination",{attrs:{background:"","current-page":t.query.currentPage,"page-sizes":[20,40,60,80],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:currentPage":function(e){return t.$set(t.query,"currentPage",e)},"update:current-page":function(e){return t.$set(t.query,"currentPage",e)}}}):t._e()],1)])],1)])]),t.updateCostDialog?a("update-real-cost",{attrs:{"update-cost-data":t.updateCostData},on:{closeUpdateCost:t.closeUpdateCost,getTableList:t.getTableList}}):t._e(),t.StockDialog?a("update-real-stock",{attrs:{"stock-data":t.stockData},on:{getTableList:t.getTableList,closeUpdateStock:t.closeUpdateStock}}):t._e()],1)},s=[],n=(a("ac4d"),a("8a81"),a("5df3"),a("1c4c"),a("7f7f"),a("6b54"),a("8e6e"),a("ac6a"),a("456d"),a("ade3")),o=a("fab6"),r=a("ed08"),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"调整成本",visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.goodsSkuList.length>1?a("div",[a("el-table",{attrs:{data:t.goodsSkuList,"span-method":t.objectSpanMethod,border:""}},[t._l(t.skuCols,(function(e,i){return a("el-table-column",{key:i,attrs:{width:"140px",label:e,"class-name":i==t.skuCols.length-1?"pad-l-20":"right-border"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.cols[i]))]}}],null,!0)})})),a("el-table-column",{attrs:{label:"成本(元)"},scopedSlots:t._u([{key:"header",fn:function(){return[a("span",[t._v("成本(元)")]),a("el-popover",{ref:"popover",attrs:{placement:"top",trigger:"click"}},[a("dm-input-amount",{staticClass:"hidden-limit",attrs:{max:999999.99,min:0,precision:2},model:{value:t.banthCost,callback:function(e){t.banthCost=e},expression:"banthCost"}}),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleBatch}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0},{key:"default",fn:function(e){return[a("dm-input-amount",{attrs:{width:"200px",precision:"2",min:0,max:999999.99},on:{change:function(a){return t.changeSingleCost(t.skuSellObj[e.row.mapId].giftSkuId,t.skuSellObj[e.row.mapId].giftSkuCostPrice)}},model:{value:t.skuSellObj[e.row.mapId].giftSkuCostPrice,callback:function(a){t.$set(t.skuSellObj[e.row.mapId],"giftSkuCostPrice","string"===typeof a?a.trim():a)},expression:"skuSellObj[scope.row.mapId].giftSkuCostPrice"}})]}}],null,!1,2079382392)})],2)],1):a("el-form",{staticClass:"mt20"},[a("el-form-item",{attrs:{label:"成本费用",required:""}},[[a("dm-input-amount",{staticStyle:{width:"200px"},attrs:{precision:"2",min:0,max:999999.99},on:{change:function(e){return t.changeSingleCost(t.giftSkuId,t.costPrice)}},model:{value:t.costPrice,callback:function(e){t.costPrice=e},expression:"costPrice"}})]],2)],1),a("el-form",{staticClass:"mt20"},[a("el-form-item",{attrs:{label:"调整备注",required:""}},[[a("el-input",{staticStyle:{width:"260px"},attrs:{type:"textarea",rows:3,placeholder:"请填入调整备注",maxlength:240,"show-word-limit":""},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}})]],2)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return t.cancelSubmit()}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitProNanme()}}},[t._v("确认")])],1)])},c=[],u=(a("c5f6"),a("cdc8"));function d(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=f(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,s=function(){};return{s:s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:s}}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 n,o=!0,r=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,n=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw n}}}}function f(t,e){if(t){if("string"===typeof t)return p(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}var h=u["a"].realCostUpdate,g=u["a"].giftGet,m={props:{updateCostData:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!1,loading:!1,banthCost:"",updateList:[],textarea:"",giftId:"",skuSellObj:{},goodsStandardInfo:"",skuCols:[],costPrice:"",giftSpecInfo:"",goodsSkuList:[],stockObj:{},giftSkuId:""}},mounted:function(){this.dialogVisible=!0,this.giftId=this.updateCostData.id,this.getData()},methods:{getData:function(){var t=this;if(!this.loading){var e={id:this.giftId};g(e).then((function(e){if("0000"===e.code){t.giftSpecInfo=e.result.giftSpecInfo;var a=e.result.skuList||[],i=[],s={};if(a.length>0){for(var n=0;n<a.length;n++)if(i.push({mapId:"",id:[],giftSkuId:a[n].giftSkuId,giftSkuCostPrice:a[n].giftSkuCostPrice,giftSkuCode:a[n].giftSkuCode,skuBarCode:a[n].skuBarCode,stock:a[n].stock,remainedStock:a[n].remainedStock,giftSkuStrand:a[n].giftSkuStrand,giftId:a[n].giftId}),a[n].giftSkuStrand){for(var o=0;o<JSON.parse(a[n].giftSkuStrand).length;o++)i[n].id.push(JSON.parse(a[n].giftSkuStrand)[o].specStandardValueId);i[n].mapId=i[n].id.join("_")}var l,c=d(i);try{for(c.s();!(l=c.n()).done;){var u=l.value;s[u.mapId]={skuBarCode:u.skuBarCode,giftSkuCode:u.giftSkuCode,giftSkuCostPrice:u.giftSkuCostPrice,stock:u.stock,giftSkuCostPriceStatus:!0,stockStatus:!0,giftSkuId:u.giftSkuId,remainedStock:u.remainedStock}}}catch(f){c.e(f)}finally{c.f()}t.skuSellObj=Object(r["c"])(s)}t.goodsStandardInfo=t.giftSpecInfo?JSON.parse(t.giftSpecInfo):[],0===t.goodsStandardInfo.length&&(t.costPrice=Number(e.result.costPrice).toFixed(2)),t.goodsStandardInfo.length>0?t.isStdImg=2===t.goodsStandardInfo[0].standardimg:t.isStdImg=!1,t.goodsStandardInfo.length>0?t.getSkuList():t.giftSkuId=a[0].giftSkuId}}))}},getSkuList:function(){var t=Object(r["c"])(this.goodsStandardInfo),e=[];this.skuCols=[];var a,i=d(t);try{for(i.s();!(a=i.n()).done;){var s,n=a.value,o=d(n.valueList);try{for(o.s();!(s=o.n()).done;){var l=s.value;l.specStandardName=n.specName,l.specStandardId=n.specId}}catch(w){o.e(w)}finally{o.f()}this.skuCols.push(n.specName),e.push(n.valueList)}}catch(w){i.e(w)}finally{i.f()}for(var c=this.combine(Object(r["c"])(e)),u=[],f=0;f<c.length;f++){u.push({data:c[f],cols:[],id:[],mapId:""});for(var p=0;p<c[f].length;p++)u[f].cols.push(c[f][p].specStandardValueName),u[f].id.push(c[f][p].specStandardValueId);u[f].mapId=u[f].id.join("_")}this.goodsSkuList=Object(r["c"])(u);var h=[];this.stValCount=[];for(var g=0;g<t.length;g++)t[g].valueList.length>0&&(h[g]=t[g].valueList.length);for(var m=1,k=0;k<h.length;k++)m*=h[k],this.stValCount[k]=m;var b=Object(r["c"])(u),S=Object(r["c"])(this.skuSellObj);this.skuSellObj={};var y,v=d(b);try{for(v.s();!(y=v.n()).done;){var C=y.value;S[C.mapId]?(this.skuSellObj[C.mapId]={giftSkuCostPrice:Object.keys(S).length>0&&S[C.mapId].giftSkuCostPrice?Number(S[C.mapId].giftSkuCostPrice).toFixed(2):"",stock:Object.keys(S).length>0?S[C.mapId].stock:"",giftSkuCode:Object.keys(S).length>0?S[C.mapId].giftSkuCode:"",skuBarCode:Object.keys(S).length>0?S[C.mapId].skuBarCode:"",giftSkuId:Object.keys(S).length>0?S[C.mapId].giftSkuId:"",stockStatus:!0,giftSkuCostPriceStatus:!0},this.stockObj[C.mapId]=Object.keys(S).length>0?S[C.mapId].stock:""):this.skuSellObj[C.mapId]={giftSkuCostPrice:"",stock:void 0,giftSkuCode:"",skuBarCode:"",stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:""}}}catch(w){v.e(w)}finally{v.f()}this.skuSellObj=Object(r["c"])(this.skuSellObj),this.costPrice=this.skuSellObj[this.goodsSkuList[0].mapId].giftSkuCostPrice,this.refash=!this.refash},combine:function(t){t.reverse();var e=[];return function t(a,i,s){if(0==s)return e.push(a);for(var n=0;n<i[s-1].length;n++)t(a.concat(i[s-1][n]),i,s-1)}([],t,t.length),e},submitProNanme:function(){var t=this;if(!this.loading)if(this.textarea){this.loading=!0;var e={giftId:this.updateCostData.id,updateList:this.updateList,remark:this.textarea};h(e).then((function(e){"0000"===e.code?(t.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateCost",!1)}),10),t.$message.success("修改成功")):t.$message.error(e.message)})).finally((function(){return t.loading=!1}))}else this.$message.error("请完善备注")},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateCost",!1)}),10)},objectSpanMethod:function(t){var e=t.rowIndex,a=t.columnIndex,i=this.stValCount.length;if(a<i){var s=this.stValCount[a],n=this.stValCount[i-1];if(!s||!n)return{rowspan:0,colspan:0};var o=n/s;return e%o===0?{rowspan:o,colspan:1}:{rowspan:0,colspan:0}}},handleBatch:function(){for(var t in this.updateList=[],this.skuSellObj)this.skuSellObj[t].giftSkuCostPrice=this.banthCost,this.updateList.push({giftSkuId:this.skuSellObj[t].giftSkuId,costPrice:this.skuSellObj[t].giftSkuCostPrice});this.banthCost=""},changeSingleCost:function(t,e){if(e||this.$message.error("请完善成本"),this.updateList.length>0){var a,i=this.updateList.some((function(e,i){if(e.giftSkuId==t)return a=i,!0}));i?this.updateList[a].costPrice=e:this.updateList.push({giftSkuId:t,costPrice:e})}else this.updateList.push({giftSkuId:t,costPrice:e})}}},k=m,b=(a("f2f8"),a("2877")),S=Object(b["a"])(k,l,c,!1,null,"954d9c80",null),y=S.exports,v=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"调整库存",visible:t.dialogVisible,width:"750px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.goodsSkuList.length>1?a("div",[a("el-table",{attrs:{data:t.goodsSkuList,"span-method":t.objectSpanMethod,border:""}},[t._l(t.skuCols,(function(e,i){return a("el-table-column",{key:i,attrs:{width:"140px",label:e,"class-name":i==t.skuCols.length-1?"pad-l-20":"right-border"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.cols[i]))]}}],null,!0)})})),a("el-table-column",{attrs:{label:"当前可占用",width:"130px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.skuSellObj[e.row.mapId].remainedStock||"--")+"\n ")]}}],null,!1,3341787781)}),a("el-table-column",{attrs:{label:"库存"},scopedSlots:t._u([{key:"header",fn:function(){return[a("span",[t._v("库存")]),a("el-popover",{ref:"popover",attrs:{placement:"top",trigger:"click"}},[a("div",[a("el-select",{staticStyle:{width:"100px"},model:{value:t.banthStockType,callback:function(e){t.banthStockType=e},expression:"banthStockType"}},[a("el-option",{attrs:{label:"增加",value:1}}),a("el-option",{attrs:{label:"减少",value:0}})],1),a("dm-input-number",{staticStyle:{"margin-left":"-2px"},attrs:{width:"140","controls-position":"right",precision:"0",min:0,max:999999},model:{value:t.banthStock,callback:function(e){t.banthStock=e},expression:"banthStock"}})],1),a("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[a("el-button",{attrs:{type:"dafault",size:"small"},on:{click:function(e){t.$refs.popover.showPopper=!1}}},[t._v("取消")]),a("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:t.handleStock}},[t._v("确认")])],1),a("el-tooltip",{attrs:{slot:"reference",content:"批量编辑"},slot:"reference"},[a("i",{staticClass:"el-icon-edit-outline"})])],1)]},proxy:!0},{key:"default",fn:function(e){return[a("el-select",{staticStyle:{width:"100px"},on:{change:function(a){return t.changeSingleStock(t.skuSellObj[e.row.mapId].giftSkuId,t.skuSellObj[e.row.mapId].stageStock,t.skuSellObj[e.row.mapId].stockType)}},model:{value:t.skuSellObj[e.row.mapId].stockType,callback:function(a){t.$set(t.skuSellObj[e.row.mapId],"stockType",a)},expression:"skuSellObj[scope.row.mapId].stockType"}},[a("el-option",{attrs:{label:"增加",value:1}}),a("el-option",{attrs:{label:"减少",value:0}})],1),a("dm-input-number",{staticStyle:{"margin-left":"-2px"},attrs:{width:"140","controls-position":"right",precision:"0",min:0,max:999999},on:{blur:function(a){return t.changeSingleStock(t.skuSellObj[e.row.mapId].giftSkuId,t.skuSellObj[e.row.mapId].stageStock,t.skuSellObj[e.row.mapId].stockType)}},model:{value:t.skuSellObj[e.row.mapId].stageStock,callback:function(a){t.$set(t.skuSellObj[e.row.mapId],"stageStock",a)},expression:"skuSellObj[scope.row.mapId].stageStock"}})]}}],null,!1,3060539812)})],2)],1):a("el-form",{staticClass:"mt20"},[a("el-form-item",{attrs:{label:"可占库存",required:""}},[[a("el-select",{staticStyle:{width:"100px"},on:{change:function(e){return t.changeSingleStock(t.giftSkuId,t.stock,t.stockType)}},model:{value:t.stockType,callback:function(e){t.stockType=e},expression:"stockType"}},[a("el-option",{attrs:{label:"增加",value:1}}),a("el-option",{attrs:{label:"减少",value:0}})],1),a("dm-input-number",{staticStyle:{"margin-left":"-1px"},attrs:{width:"140","controls-position":"right",precision:"0",min:0,max:999999},on:{blur:function(e){return t.changeSingleStock(t.giftSkuId,t.stock,t.stockType)}},model:{value:t.stock,callback:function(e){t.stock=e},expression:"stock"}})]],2)],1),a("el-form",{staticClass:"mt20"},[a("el-form-item",{attrs:{label:"调整备注",required:""}},[[a("el-input",{staticStyle:{width:"260px"},attrs:{type:"textarea",rows:3,placeholder:"请填入调整备注",maxlength:240,"show-word-limit":""},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}})]],2)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return t.cancelSubmit()}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitProNanme()}}},[t._v("确认")])],1)])},C=[];function w(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=O(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,s=function(){};return{s:s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:s}}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 n,o=!0,r=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,n=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw n}}}}function O(t,e){if(t){if("string"===typeof t)return I(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?I(t,e):void 0}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}var x=u["a"].realStockUpdate,j=u["a"].giftGet,P={props:{stockData:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!1,loading:!1,spanArr:[],banthStock:void 0,stockType:1,banthStockType:1,updateList:[],textarea:"",giftId:"",skuSellObj:{},stockObj:{},skuCols:[],goodsSkuList:[],stock:0,giftSkuId:""}},created:function(){this.dialogVisible=!0,this.giftId=this.stockData.id,this.getData()},methods:{getData:function(){var t=this;if(!this.loading){var e={id:this.giftId};j(e).then((function(e){if("0000"===e.code){t.giftSpecInfo=e.result.giftSpecInfo;var a=e.result.skuList||[],i=[],s={};if(a.length>0){for(var n=0;n<a.length;n++)if(i.push({mapId:"",id:[],giftSkuId:a[n].giftSkuId,giftSkuCostPrice:a[n].giftSkuCostPrice,giftSkuCode:a[n].giftSkuCode,skuBarCode:a[n].skuBarCode,stock:a[n].stock,remainedStock:a[n].remainedStock,giftSkuStrand:a[n].giftSkuStrand,giftId:a[n].giftId}),a[n].giftSkuStrand){for(var o=0;o<JSON.parse(a[n].giftSkuStrand).length;o++)i[n].id.push(JSON.parse(a[n].giftSkuStrand)[o].specStandardValueId);i[n].mapId=i[n].id.join("_")}var l,c=w(i);try{for(c.s();!(l=c.n()).done;){var u=l.value;s[u.mapId]={skuBarCode:u.skuBarCode,giftSkuCode:u.giftSkuCode,giftSkuCostPrice:u.giftSkuCostPrice,stock:u.stock,giftSkuCostPriceStatus:!0,stockStatus:!0,giftSkuId:u.giftSkuId,remainedStock:u.remainedStock}}}catch(d){c.e(d)}finally{c.f()}t.skuSellObj=Object(r["c"])(s)}t.goodsStandardInfo=t.giftSpecInfo?JSON.parse(t.giftSpecInfo):[],t.goodsStandardInfo.length>0?t.isStdImg=2===t.goodsStandardInfo[0].standardimg:t.isStdImg=!1,t.goodsStandardInfo.length>0?t.getSkuList():t.giftSkuId=a[0].giftSkuId}}))}},changeType:function(t){this.changeSingleStock()},submitProNanme:function(){var t=this;if(!this.loading)if(this.textarea){var e=0;if(this.updateList.forEach((function(t){e=Number(e)+Number(t.stock)})),e){var a={giftId:this.stockData.id,updateList:this.updateList,remark:this.textarea};this.loading=!0,x(a).then((function(e){"0000"===e.code?(t.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateStock")}),10),t.$message.success("修改成功")):t.$message.error(e.message)})).finally((function(){return t.loading=!1}))}else this.$message.error("库存更改不可为0")}else this.$message.error("请完善备注")},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateStock")}),10)},getSkuList:function(){var t=Object(r["c"])(this.goodsStandardInfo),e=[];this.skuCols=[];var a,i=w(t);try{for(i.s();!(a=i.n()).done;){var s,n=a.value,o=w(n.valueList);try{for(o.s();!(s=o.n()).done;){var l=s.value;l.specStandardName=n.specName,l.specStandardId=n.specId}}catch(C){o.e(C)}finally{o.f()}this.skuCols.push(n.specName),e.push(n.valueList)}}catch(C){i.e(C)}finally{i.f()}for(var c=this.combine(Object(r["c"])(e)),u=[],d=0;d<c.length;d++){u.push({data:c[d],cols:[],id:[],mapId:""});for(var f=0;f<c[d].length;f++)u[d].cols.push(c[d][f].specStandardValueName),u[d].id.push(c[d][f].specStandardValueId);u[d].mapId=u[d].id.join("_")}this.goodsSkuList=Object(r["c"])(u);var p=[];this.stValCount=[];for(var h=0;h<t.length;h++)t[h].valueList.length>0&&(p[h]=t[h].valueList.length);for(var g=1,m=0;m<p.length;m++)g*=p[m],this.stValCount[m]=g;var k,b=Object(r["c"])(u),S=Object(r["c"])(this.skuSellObj),y=w(b);try{for(y.s();!(k=y.n()).done;){var v=k.value;S[v.mapId]?(this.skuSellObj[v.mapId]={giftSkuCostPrice:Object.keys(S).length>0?S[v.mapId].giftSkuCostPrice:"",stock:Object.keys(S).length>0?S[v.mapId].stock:"",giftSkuCode:Object.keys(S).length>0?S[v.mapId].giftSkuCode:"",skuBarCode:Object.keys(S).length>0?S[v.mapId].skuBarCode:"",giftSkuId:Object.keys(S).length>0?S[v.mapId].giftSkuId:"",remainedStock:Object.keys(S).length>0?S[v.mapId].remainedStock:"",stockStatus:!0,giftSkuCostPriceStatus:!0,stockType:1,stageStock:""},this.stockObj[v.mapId]=Object.keys(S).length>0?S[v.mapId].stock:""):this.skuSellObj[v.mapId]={giftSkuCostPrice:"",stock:void 0,giftSkuCode:"",skuBarCode:"",stockStatus:!0,giftSkuCostPriceStatus:!0,giftSkuId:"",remainedStock:"",stockType:1,stageStock:""}}}catch(C){y.e(C)}finally{y.f()}this.skuSellObj=Object(r["c"])(this.skuSellObj),this.refash=!this.refash},combine:function(t){t.reverse();var e=[];return function t(a,i,s){if(0==s)return e.push(a);for(var n=0;n<i[s-1].length;n++)t(a.concat(i[s-1][n]),i,s-1)}([],t,t.length),e},objectSpanMethod:function(t){var e=t.rowIndex,a=t.columnIndex,i=this.stValCount.length;if(a<i){var s=this.stValCount[a],n=this.stValCount[i-1];if(!s||!n)return{rowspan:0,colspan:0};var o=n/s;return e%o===0?{rowspan:o,colspan:1}:{rowspan:0,colspan:0}}},handleStock:function(){for(var t in this.updateList=[],this.stock=this.banthStock,this.skuSellObj)this.skuSellObj[t].stock=this.banthStock,this.skuSellObj[t].stageStock=this.banthStock,this.skuSellObj[t].stockType=this.banthStockType,this.updateList.push({giftSkuId:this.skuSellObj[t].giftSkuId,stock:this.skuSellObj[t].stock,stockType:this.banthStockType});this.banthStock=void 0},changeSingleStock:function(t,e,a){if(e||this.$message.error("请完善库存"),this.updateList.length>0){var i,s=this.updateList.some((function(e,a){if(e.giftSkuId==t)return i=a,!0}));s?(this.updateList[i].stock=e,this.updateList[i].stockType=a):this.updateList.push({giftSkuId:t,stock:e,stockType:a})}else this.updateList.push({giftSkuId:t,stock:e,stockType:a})}}},T=P,_=(a("ac4f"),Object(b["a"])(T,v,C,!1,null,"5dfe8b16",null)),L=_.exports;function q(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=D(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,s=function(){};return{s:s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:s}}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 n,o=!0,r=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,n=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw n}}}}function D(t,e){if(t){if("string"===typeof t)return N(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?N(t,e):void 0}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}function $(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function F(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?$(Object(a),!0).forEach((function(e){Object(n["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var U=u["a"].giftPage,V=u["a"].batchUpdate,B=u["a"].updateName,A={components:{UpdateRealCost:y,updateRealStock:L},data:function(){return{bread:[{breadName:"福利中心"},{breadName:"礼品管理"},{breadName:"实物礼品"}],mixins:[o["c"],o["a"]],formatDateTimeByType:r["e"],listTime:r["g"],unfoldStatus:!1,sortData:0,query:{hiddenFlag:"",startTime:"",endTime:"",startCostPrice:"",endCostPrice:"",startStock:void 0,endStock:void 0,sortColumn:"",sortOrder:"",currentPage:1,pageSize:20,type:1,key:""},batchOperate:"",total:0,tableData:[],selectList:[],updateCostData:{costPrice:"",id:"",textarea:""},updateCostDialog:!1,updateNameForm:{name:"",id:"",type:""},updateNameDialog:!1,stockData:{id:"",remainedStock:"",textarea:""},StockDialog:!1,integralDialog:!1,loading:!1,search:"",searchType:1,placeholderText:"请输入礼品名称",isShow:!1,timeValue:"",changeName:""}},created:function(){this.$emit("updateBread",this.bread),this.$emit("showAside",!0),this.init()},methods:{init:function(){this.searchType=1,this.getTableList()},getSearchList:function(){this.query.currentPage=1,this.getTableList()},getSearchList2:function(){this.query.type=1,this.query.currentPage=1,this.getTableList()},handleChangeType:function(){1===this.query.type?this.placeholderText="请输入礼品名称":2===this.query.type?this.placeholderText="请输入礼品编码":3===this.query.type?this.placeholderText="请输入条形码":0===this.query.type&&(this.placeholderText="请输入福利id")},getTableList:function(){var t=this;this.loading=!0;var e=F(F({},this.query),{},{giftType:1});U(e).then((function(e){t.tableData=e.result.result})).finally((function(){return t.loading=!1}))},handleSizeChange:function(t){this.query.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.query.currentPage=t,this.query.pageSize=1,this.getTableList()},handleUnfold:function(){this.unfoldStatus=!this.unfoldStatus},handleSort:function(t){this.query.sortOrder=0==t?"desc":"asc",this.query.sortColumn="update_time",this.getTableList()},sortChange:function(t){"ascending"==t.order?this.query.sortOrder="asc":"descending"==t.order&&(this.query.sortOrder="desc"),"updateTime"===t.prop?this.query.sortColumn="update_time":"costPrice"===t.prop&&"ascending"==t.order||"costPrice"===t.prop&&"descending"==t.order?this.query.sortColumn="min_cost_price":"stock"===t.prop&&(this.query.sortColumn="remained_stock"),this.getTableList()},changeTime:function(){this.timeValue?(this.query.startTime=this.formatDateTimeByType(this.timeValue[0],"yyyy-MM-dd-HH-mm-ss"),this.query.endTime=this.formatDateTimeByType(this.timeValue[1],"yyyy-MM-dd-HH-mm-ss")):(this.query.startTime="",this.query.endTime=""),this.query.currentPage=1,this.query.pageSize=20,this.getTableList()},handleSelectAll:function(t){this.selectList=t},handleBatch:function(t){var e,a=this,i=[],s=q(this.selectList);try{for(s.s();!(e=s.n()).done;){var n=e.value;i.push(n.giftId)}}catch(r){s.e(r)}finally{s.f()}var o={giftIdList:i,type:t};2==t?this.$confirm("<div>禁用礼品将在福利组件不展示,并且该礼品参加的活动将全部失效,确认禁用?</div>","批量禁用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){a.batchRequest(o)})):0==t?this.$confirm("<div>是否隐藏?</div>","批量隐藏",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){a.batchRequest(o)})):1==t?this.$confirm("<div>是否取消隐藏?</div>","批量取消隐藏",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){a.batchRequest(o)})):3==t&&this.$confirm("<div>是否启用?</div>","批量启用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){a.batchRequest(o)}))},batchRequest:function(t){var e=this;V(t).then((function(t){"0000"===t.code?(e.$message.success("操作成功"),e.getTableList()):e.$message.error(t.message)}))},changeShow:function(t){var e=this;1==t.statusFlag&&1==t.hiddenFlag?this.$confirm("<div>确认隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"隐藏"}).then((function(){var a={giftIdList:[t.giftId],type:0};e.batchRequest(a)})).catch((function(){t.hiddenFlag=0})):1==t.statusFlag&&0==t.hiddenFlag?this.$confirm("<div>确认取消隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){var a={giftIdList:[t.giftId],type:1};e.batchRequest(a)})).catch((function(){t.hiddenFlag=1})):0==t.statusFlag&&1==t.hiddenFlag&&this.$confirm("<div>确认隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"隐藏",showCancelButton:!1}).then((function(){var a={giftIdList:[t.giftId],type:0};e.batchRequest(a)})).catch((function(){t.hiddenFlag=0}))},changeStatus:function(t){var e=this;if(0==t.statusFlag){var a={giftIdList:[t.giftId],type:3};this.batchRequest(a)}else this.$confirm("<div>禁用礼品将在福利组件不展示,并且该礼品参加的活动将全部失效,确认禁用?</div>","禁用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"禁用"}).then((function(){var a={giftIdList:[t.giftId],type:2};e.batchRequest(a)}))},handleName:function(t){var e=this,a={giftId:t.giftId,name:this.changeName};B(a).then((function(t){"0000"===t.code?(e.$message.success("修改成功"),e.getTableList()):e.$message.error(t.message)}))},getName:function(t){this.changeName=t},updateStock:function(t){this.stockData.id=t.giftId,this.stockData.remainedStock=t.remainedStock,this.stockData.textarea=t.textarea,this.StockDialog=!0},closeUpdateStock:function(){this.stockData.remainedStock="",this.stockData.textarea="",this.StockDialog=!1,this.getTableList()},updateCost:function(t){this.updateCostData.id=t.giftId,this.updateCostDialog=!0},closeUpdateCost:function(){this.updateCostDialog=!1,this.getTableList()},add:function(){this.$router.push({path:"/gift-manage/real-gift-detail",query:{giftId:""}})},edit:function(t){this.$router.push({path:"/gift-manage/real-gift-detail",query:{giftId:t.giftId}})}}},M=A,E=(a("69ff"),a("df86"),Object(b["a"])(M,i,s,!1,null,"357df7d2",null));e["default"]=E.exports},ed00:function(t,e,a){},f2f8:function(t,e,a){"use strict";a("a1a6")},fab6:function(t,e,a){"use strict";a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return o}));var i=a("ed08"),s={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.listParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.listParams.currentPage=t,this.getTableList()}}},n={methods:{formatterTimeFunc:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[s]?(this.listParams[t]=Object(i["e"])(this[s][0],a),this.listParams[e]=Object(i["e"])(this[s][1],a)):this.listParams[t]=this.listParams[e]=""}}},o={methods:{mainHeight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-t}}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6287d3af"],{cdc8:function(t,e,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var r=a("ade3"),i=a("71f6"),o=a("f121");function s(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function p(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?s(Object(a),!0).forEach((function(e){Object(r["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var c={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},l={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"/address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};c=Object(i["a"])(c,o["f"]),l=Object(i["a"])(l,o["f"]),e["a"]=p(p({},c),l);o["c"].api,o["b"],o["c"].api,o["f"]},fa56:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[a("el-form",{ref:"ruleForm",staticStyle:{"min-height":"400px"},attrs:{model:t.ruleForm,rules:t.rules,"label-width":"150px"}},[a("el-form-item",{attrs:{label:"收货自动加库存",prop:"backStockFlag"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.ruleForm.backStockFlag,callback:function(e){t.$set(t.ruleForm,"backStockFlag",e)},expression:"ruleForm.backStockFlag"}}),a("div",{staticClass:"gray03 fz12"},[t._v("开启自动加库存后,在退货单同意收货后,福利中心可占库存将会增加")])],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("保存")]),t.ruleForm.updateTime?a("span",{staticClass:"ml10 gray02"},[t._v("最近修改:"+t._s(t.formatDateTimeByType(t.ruleForm.updateTime,"yyyy-MM-dd HH:mm:ss")))]):t._e()],1)],1)],1)},i=[],o=(a("8e6e"),a("ac6a"),a("456d"),a("ade3")),s=a("ed08"),p=a("cdc8");function c(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?c(Object(a),!0).forEach((function(e){Object(o["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var n=p["a"].updateConfig,d=p["a"].getConfigDetail,u={name:"SalesReturnSetting",data:function(){return{loading:!1,ruleForm:{configId:"",backStockFlag:0,createTime:"",updateTime:""},rules:{}}},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"通用设置"},{breadName:"退货单设置"}])},mounted:function(){this.getDetail()},methods:{formatDateTimeByType:s["e"],submitForm:function(){var t=this;this.loading||(this.loading=!0,n({configId:this.ruleForm.configId,backStockFlag:this.ruleForm.backStockFlag}).then((function(e){t.loading=!1,t.getDetail(),t.$tips({message:"保存成功",type:"success"})})).finally((function(){t.loading=!1})))},getDetail:function(){var t=this;d().then((function(e){t.ruleForm=l(l({},t.ruleForm),e.result)}))}}},g=u,f=a("2877"),m=Object(f["a"])(g,r,i,!1,null,null,null);e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6287d3af"],{cdc8:function(t,e,a){"use strict";a("8e6e"),a("ac6a"),a("456d");var r=a("ade3"),i=a("71f6"),o=a("f121");function s(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function p(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?s(Object(a),!0).forEach((function(e){Object(r["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var c={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},l={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};c=Object(i["a"])(c,o["f"]),l=Object(i["a"])(l,o["f"]),e["a"]=p(p({},c),l);o["c"].api,o["b"],o["c"].api,o["f"]},fa56:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[a("el-form",{ref:"ruleForm",staticStyle:{"min-height":"400px"},attrs:{model:t.ruleForm,rules:t.rules,"label-width":"150px"}},[a("el-form-item",{attrs:{label:"收货自动加库存",prop:"backStockFlag"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.ruleForm.backStockFlag,callback:function(e){t.$set(t.ruleForm,"backStockFlag",e)},expression:"ruleForm.backStockFlag"}}),a("div",{staticClass:"gray03 fz12"},[t._v("开启自动加库存后,在退货单同意收货后,福利中心可占库存将会增加")])],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("保存")]),t.ruleForm.updateTime?a("span",{staticClass:"ml10 gray02"},[t._v("最近修改:"+t._s(t.formatDateTimeByType(t.ruleForm.updateTime,"yyyy-MM-dd HH:mm:ss")))]):t._e()],1)],1)],1)},i=[],o=(a("8e6e"),a("ac6a"),a("456d"),a("ade3")),s=a("ed08"),p=a("cdc8");function c(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?c(Object(a),!0).forEach((function(e){Object(o["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var n=p["a"].updateConfig,d=p["a"].getConfigDetail,u={name:"SalesReturnSetting",data:function(){return{loading:!1,ruleForm:{configId:"",backStockFlag:0,createTime:"",updateTime:""},rules:{}}},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"通用设置"},{breadName:"退货单设置"}])},mounted:function(){this.getDetail()},methods:{formatDateTimeByType:s["e"],submitForm:function(){var t=this;this.loading||(this.loading=!0,n({configId:this.ruleForm.configId,backStockFlag:this.ruleForm.backStockFlag}).then((function(e){t.loading=!1,t.getDetail(),t.$tips({message:"保存成功",type:"success"})})).finally((function(){t.loading=!1})))},getDetail:function(){var t=this;d().then((function(e){t.ruleForm=l(l({},t.ruleForm),e.result)}))}}},g=u,f=a("2877"),m=Object(f["a"])(g,r,i,!1,null,null,null);e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ed58741"],{"0f11":function(t,e,o){"use strict";o("5448")},1087:function(t,e,o){t.exports=o.p+"img/eg2.b6ed585a.png"},"17e9":function(t,e,o){},"1c4c":function(t,e,o){"use strict";var i=o("9b43"),r=o("5ca1"),a=o("4bf8"),s=o("1fa8"),n=o("33a4"),l=o("9def"),c=o("f1ae"),d=o("27ee");r(r.S+r.F*!o("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,o,r,p,u=a(t),g="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,h=void 0!==m,v=0,b=d(u);if(h&&(m=i(m,f>2?arguments[2]:void 0,2)),void 0==b||g==Array&&n(b))for(e=l(u.length),o=new g(e);e>v;v++)c(o,v,h?m(u[v],v):u[v]);else for(p=b.call(u),o=new g;!(r=p.next()).done;v++)c(o,v,h?s(p,m,[r.value,v],!0):r.value);return o.length=v,o}})},"2f5d":function(t,e,o){"use strict";o("17e9")},"37c8":function(t,e,o){e.f=o("2b4c")},"3a72":function(t,e,o){var i=o("7726"),r=o("8378"),a=o("2d00"),s=o("37c8"),n=o("86cc").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||n(e,t,{value:s.f(t)})}},"3b56":function(t,e,o){"use strict";var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{attrs:{title:"查看内容",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.isEdit?t._e():o("div",{staticStyle:{background:"#F7F8FA","margin-bottom":"20px"}},[o("div",{staticStyle:{"font-size":"12px","line-height":"22px"},domProps:{innerHTML:t._s(t.template)}})]),o("div",[o("el-input",{staticClass:"mr10 w220",attrs:{placeholder:"请输入关键词搜索","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.getTableList},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getTableList(e)}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),o("el-table",{staticClass:"mt20",attrs:{data:t.tableData}},[t._l(t.headList,(function(t,e){return o("el-table-column",{key:e,attrs:{label:t,prop:0===e?"paramOne":1===e?"paramTwo":"paramThree"}})})),o("el-table-column",{attrs:{label:"当前状态",prop:"statusFlag"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0===e.row.statusFlag?"未兑换":"已兑换"))]}}])}),o("el-table-column",{attrs:{label:"用户/会员",prop:"name"}})],2),o("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination-conteiner",staticStyle:{background:"#fff"}},[o("div",{staticClass:"pagination",staticStyle:{"text-align":"right"}},[0!=t.total?o("dm-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.pageSize,layout:"prev, pager, next",total:t.total},on:{"current-change":t.getTableList,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}}):t._e()],1)])],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])},r=[],a=(o("a481"),o("386d"),o("cdc8")),s=a["a"].virtualCardList,n=a["a"].giftGet,l={props:{dialogId:{type:String,default:function(){return""}},isEdit:{type:Boolean,default:function(){return!1}}},data:function(){return{dialogVisible:!1,loading:!1,currentPage:1,pageSize:10,total:"",tableData:[],template:"",search:"",headList:[]}},mounted:function(){this.dialogVisible=!0,this.giftId=this.dialogId,this.getTableList(),this.isEdit||this.getMess()},methods:{getTableList:function(){var t=this;this.loading=!0;var e={id:this.giftId,key:this.search,pageSize:this.pageSize,currentPage:this.currentPage};s(e).then((function(e){t.tableData=e.result.result||[];var o=[];o=t.tableData[0].headList,t.headList=o.map((function(t,e){return-1!=t.indexOf('<span style="text-decoration: underline">')&&(t=t.replace('<span style="text-decoration: underline">',"")),-1!=t.indexOf("</span>")&&(t=t.replace("</span>","")),t})),t.total=e.result.totalCount})).finally((function(){return t.loading=!1}))},getMess:function(){var t=this,e={id:this.giftId};n(e).then((function(e){"0000"===e.code?t.template=e.result.template||"":t.$message.error(e.message)}))},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUploadDetail")}),10)}}},c=l,d=o("2877"),p=Object(d["a"])(c,i,r,!1,null,"3d717520",null);e["a"]=p.exports},5448:function(t,e,o){},"7bbc":function(t,e,o){var i=o("6821"),r=o("9093").f,a={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n=function(t){try{return r(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==a.call(t)?n(t):r(i(t))}},"8a81":function(t,e,o){"use strict";var i=o("7726"),r=o("69a8"),a=o("9e1e"),s=o("5ca1"),n=o("2aba"),l=o("67ab").KEY,c=o("79e5"),d=o("5537"),p=o("7f20"),u=o("ca5a"),g=o("2b4c"),f=o("37c8"),m=o("3a72"),h=o("d4c0"),v=o("1169"),b=o("cb7c"),y=o("d3f4"),F=o("4bf8"),k=o("6821"),w=o("6a99"),x=o("4630"),S=o("2aeb"),C=o("7bbc"),O=o("11e9"),P=o("2621"),_=o("86cc"),N=o("0d58"),I=O.f,T=_.f,j=C.f,L=i.Symbol,$=i.JSON,A=$&&$.stringify,U="prototype",D=g("_hidden"),E=g("toPrimitive"),B={}.propertyIsEnumerable,G=d("symbol-registry"),q=d("symbols"),M=d("op-symbols"),V=Object[U],z="function"==typeof L&&!!P.f,J=i.QObject,W=!J||!J[U]||!J[U].findChild,R=a&&c((function(){return 7!=S(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,e,o){var i=I(V,e);i&&delete V[e],T(t,e,o),i&&t!==V&&T(V,e,i)}:T,Z=function(t){var e=q[t]=S(L[U]);return e._k=t,e},H=z&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},K=function(t,e,o){return t===V&&K(M,e,o),b(t),e=w(e,!0),b(o),r(q,e)?(o.enumerable?(r(t,D)&&t[D][e]&&(t[D][e]=!1),o=S(o,{enumerable:x(0,!1)})):(r(t,D)||T(t,D,x(1,{})),t[D][e]=!0),R(t,e,o)):T(t,e,o)},Q=function(t,e){b(t);var o,i=h(e=k(e)),r=0,a=i.length;while(a>r)K(t,o=i[r++],e[o]);return t},Y=function(t,e){return void 0===e?S(t):Q(S(t),e)},X=function(t){var e=B.call(this,t=w(t,!0));return!(this===V&&r(q,t)&&!r(M,t))&&(!(e||!r(this,t)||!r(q,t)||r(this,D)&&this[D][t])||e)},tt=function(t,e){if(t=k(t),e=w(e,!0),t!==V||!r(q,e)||r(M,e)){var o=I(t,e);return!o||!r(q,e)||r(t,D)&&t[D][e]||(o.enumerable=!0),o}},et=function(t){var e,o=j(k(t)),i=[],a=0;while(o.length>a)r(q,e=o[a++])||e==D||e==l||i.push(e);return i},ot=function(t){var e,o=t===V,i=j(o?M:k(t)),a=[],s=0;while(i.length>s)!r(q,e=i[s++])||o&&!r(V,e)||a.push(q[e]);return a};z||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=u(arguments.length>0?arguments[0]:void 0),e=function(o){this===V&&e.call(M,o),r(this,D)&&r(this[D],t)&&(this[D][t]=!1),R(this,t,x(1,o))};return a&&W&&R(V,t,{configurable:!0,set:e}),Z(t)},n(L[U],"toString",(function(){return this._k})),O.f=tt,_.f=K,o("9093").f=C.f=et,o("52a7").f=X,P.f=ot,a&&!o("2d00")&&n(V,"propertyIsEnumerable",X,!0),f.f=function(t){return Z(g(t))}),s(s.G+s.W+s.F*!z,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)g(it[rt++]);for(var at=N(g.store),st=0;at.length>st;)m(at[st++]);s(s.S+s.F*!z,"Symbol",{for:function(t){return r(G,t+="")?G[t]:G[t]=L(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in G)if(G[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!z,"Object",{create:Y,defineProperty:K,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:ot});var nt=c((function(){P.f(1)}));s(s.S+s.F*nt,"Object",{getOwnPropertySymbols:function(t){return P.f(F(t))}}),$&&s(s.S+s.F*(!z||c((function(){var t=L();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))}))),"JSON",{stringify:function(t){var e,o,i=[t],r=1;while(arguments.length>r)i.push(arguments[r++]);if(o=e=i[1],(y(e)||void 0!==t)&&!H(t))return v(e)||(e=function(t,e){if("function"==typeof o&&(e=o.call(this,t,e)),!H(e))return e}),i[1]=e,A.apply($,i)}}),L[U][E]||o("32e9")(L[U],E,L[U].valueOf),p(L,"Symbol"),p(Math,"Math",!0),p(i.JSON,"JSON",!0)},a0f2:function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"from-content"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"goodsForm",staticClass:"demo-ruleForm",attrs:{model:t.goodsForm,rules:t.goodsRules,"label-width":"150px","label-position":"right"}},[i("div",{staticClass:"form-section"},[i("h3",[t._v("基础信息")]),i("el-form-item",{staticClass:"w-630",attrs:{label:"福利渠道"}},[t._v(t._s(t.enterpriseName))]),i("el-form-item",{staticClass:"w-630",attrs:{label:"礼品名称",prop:"giftName"}},[i("dm-input",{attrs:{"byte-type":1,type:"text",maxlength:30,placeholder:"请输入礼品名称"},model:{value:t.goodsForm.giftName,callback:function(e){t.$set(t.goodsForm,"giftName",e)},expression:"goodsForm.giftName"}})],1),i("el-form-item",{attrs:{label:"礼品主图",required:""}},[i("div",{staticClass:"member-upload-image"},[i("div",{staticClass:"member-upload-image"},[i("dm-upload-picture",{attrs:{"action-url":t.actionUrl,"image-list":t.image,"max-image-length":t.maxlength,accept:"image/jpeg, image/jpg, image/png, image/gif","before-upload":t.beforeUpload},on:{uploadOnSuccess:t.uploadOnSuccess,deleteImage:t.deleteImage}})],1),i("span",{staticClass:"tip-warm",staticStyle:{display:"block"}},[t._v("图片建议尺寸800*800px,格式jpg/png/gif,大小1MB以内,你可以拖拽图片调整顺序,最多上传 5 张")])])]),i("el-form-item",{attrs:{label:"礼品详情",prop:"giftDescrption"}},[i("dm-editor",{attrs:{width:t.editorWidth,value:t.goodsForm.giftDescrption},on:{change:t.handleChange}})],1)],1),i("div",{staticClass:"form-section"},[i("h3",[t._v("库存信息")]),i("el-form-item",{staticClass:"w-630",attrs:{label:"成本",prop:"virCostPrice"}},[i("dm-input-amount",{attrs:{width:"180",min:0,max:999999.99,precision:2},model:{value:t.goodsForm.virCostPrice,callback:function(e){t.$set(t.goodsForm,"virCostPrice",e)},expression:"goodsForm.virCostPrice"}})],1),i("el-form-item",{staticClass:"w-630",attrs:{label:"库存",prop:"stock"}},[i("dm-input-number",{attrs:{width:"180",min:0,max:999999,precision:0,disabled:"",placeholder:"上传文件后自动填充"},model:{value:t.goodsForm.stock,callback:function(e){t.$set(t.goodsForm,"stock",e)},expression:"goodsForm.stock"}})],1),i("el-form-item",{attrs:{prop:"marketPrice",label:"市场价"}},[i("dm-input-amount",{attrs:{width:"180",min:0,max:999999.99,precision:2},model:{value:t.goodsForm.marketPrice,callback:function(e){t.$set(t.goodsForm,"marketPrice",e)},expression:"goodsForm.marketPrice"}}),i("div",[i("span",{staticClass:"tip-warm"},[t._v("市场价在礼品详情会以划线形式显示。")]),i("el-popover",{attrs:{placement:"top-start",width:"395",trigger:"hover"}},[i("img",{staticStyle:{width:"360px"},attrs:{src:o("1087"),alt:""}}),i("el-button",{staticStyle:{"margin-left":"15px"},attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看示例")])],1)],1)],1),i("el-form-item",{staticClass:"w-630",attrs:{label:"礼品编码",prop:"giftNo",rules:[{validator:t.validateGoodsCode,trigger:"blur"}]}},[i("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入"},model:{value:t.goodsForm.giftNo,callback:function(e){t.$set(t.goodsForm,"giftNo",e)},expression:"goodsForm.giftNo"}})],1),i("el-form-item",{staticClass:"w-630",attrs:{label:"礼品条形码",prop:"giftBarNo",rules:[{validator:t.validateGoodsBarCode,trigger:"blur"}]}},[i("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入"},model:{value:t.goodsForm.giftBarNo,callback:function(e){t.$set(t.goodsForm,"giftBarNo",e)},expression:"goodsForm.giftBarNo"}})],1)],1),i("div",{staticClass:"form-section"},[i("h3",[t._v("福利设置")]),i("el-form-item",{attrs:{label:"发货内容",required:"",prop:"template"}},[[i("div",{staticStyle:{display:"flex"}},[i("dm-editor",{attrs:{width:"500",height:"300",value:t.goodsForm.template,placeholder:t.template,readonly:""!=t.$route.query.giftId},on:{change:t.handleChange2}}),i("div",{staticClass:"ml20"},[i("p",[t._v("用户申请履约后,发货内容将自动发送。")]),i("div",{staticClass:"step-style",staticStyle:{height:"250px"}},[i("el-steps",{attrs:{direction:"vertical",active:t.active}},[i("el-step",[i("div",{staticStyle:{width:"360px"},attrs:{slot:"description"},slot:"description"},[i("span",{staticClass:"step-text"},[t._v('编辑发货内容,变量请使用大括号标记"{}"。')])])]),i("el-step",[i("div",{attrs:{slot:"description"},slot:"description"},[i("span",{staticClass:"step-text"},[t._v("下载模板并以“变量”为表头填入变量值。")]),i("el-button",{attrs:{type:"text"},on:{click:t.downloadFile}},[t._v("点击下载")])],1)]),i("el-step",[i("div",{attrs:{slot:"description"},slot:"description"},[i("div",{staticClass:"pickup-upload"},[i("span",{staticClass:"inline-block step-text",staticStyle:{"margin-bottom":"20px"}},[t._v("上传完善后的文件。")]),i("dm-upload-file",{staticClass:"inline-block",attrs:{width:"300","show-file-list":!1,action:t.uploadAction,"on-success":t.successUpload,accept:".xls,.xlsx","before-upload":t.beforeUploadFile,data:{giftId:t.giftId,remark:""},"with-credentials":""},scopedSlots:t._u([{key:"file-item",fn:function(e){var o=e.fileData;return i("div",{},[t._v(t._s(o.name))])}}])},[i("el-button",{staticClass:"upload-trigger"},[i("i",{staticClass:"iconfont-components4 icon-cp-shangc upload-icon"}),t._v(" 上传")]),i("span",{staticClass:"upload-tip inline-block",attrs:{slot:"tip"},slot:"tip"},[i("el-popover",{attrs:{trigger:"click",placement:"right","popper-class":"upload-popper"}},[i("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看导入规则")]),i("div",{staticClass:"upload-tip-text"},[i("p",[t._v("1.请按照顺序维护表头,所有变量均为必填项;")]),i("p",[t._v("2.请勿导入重复的内容,导入的内容在原来基础上增加库存;")]),i("p",[t._v("3.上传完整仅支持.xlsx .xls文件的导入,填充数据不超过“10万”条;")])])],1),t.isEdit?i("el-button",{staticClass:"inline-block ml20",attrs:{type:"text"},on:{click:t.checkUploadDetail}},[t._v("查看内容")]):t._e()],1)],1)],1)])])],1)],1)])],1)]],2),i("el-form-item",{attrs:{label:"库存消耗方式",prop:"checkList"}},[[i("el-checkbox-group",{attrs:{disabled:t.isEdit},on:{change:t.changeStockUse},model:{value:t.goodsForm.checkList,callback:function(e){t.$set(t.goodsForm,"checkList",e)},expression:"goodsForm.checkList"}},[i("el-checkbox",{attrs:{label:"0"}},[i("el-tooltip",{staticClass:"tips-content",attrs:{effect:"dark","open-delay":"200","popper-class":"store-tips",placement:"top-start"}},[i("div",{staticStyle:{width:"245px"},attrs:{slot:"content"},slot:"content"},[t._v("固定库存:通过占用的方式获得固定可用库存,不会被其他应用/活动所消耗。")]),i("span",{staticClass:"inline-block ml30 dash-style"},[t._v("固定库存")])])],1),i("el-checkbox",{staticStyle:{"margin-left":"50px"},attrs:{label:"1"}},[i("el-tooltip",{staticClass:"tips-content",attrs:{effect:"dark","open-delay":"200","popper-class":"store-tips",placement:"top-start"}},[i("div",{staticStyle:{width:"245px"},attrs:{slot:"content"},slot:"content"},[t._v("实时库存:不占用库存,使用福利中心“可占库存”,与其他应用使用同个库存。")]),i("span",{staticClass:"inline-block ml30 dash-style"},[t._v("实时库存")])])],1)],1)]],2)],1),i("div",{staticClass:"form-section"},[i("h3",[t._v("售后服务")]),i("el-form-item",{attrs:{prop:"refundFlag",label:"支持申请退货",required:""}},[[i("div",[i("el-radio",{attrs:{label:1},model:{value:t.goodsForm.refundFlag,callback:function(e){t.$set(t.goodsForm,"refundFlag",e)},expression:"goodsForm.refundFlag"}},[t._v("是")]),i("el-radio",{attrs:{label:0},model:{value:t.goodsForm.refundFlag,callback:function(e){t.$set(t.goodsForm,"refundFlag",e)},expression:"goodsForm.refundFlag"}},[t._v("否")])],1),i("span",{staticClass:"tip-warm",staticStyle:{display:"block"}},[t._v("若商品不支持退货,则该礼品出库后不支持生成退货单")])]],2)],1),i("div",{staticClass:"form-section mb56"},[i("h3",[t._v("权限设置")]),i("el-form-item",{attrs:{label:"操作人权限",required:""}},[i("dm-acc-group-select",{attrs:{etype:t.goodsForm.operAuthType,"group-ids":t.goodsForm.operAuthPre},on:{"update:etype":function(e){return t.$set(t.goodsForm,"operAuthType",e)},"update:groupIds":function(e){return t.$set(t.goodsForm,"operAuthPre",e)},"update:group-ids":function(e){return t.$set(t.goodsForm,"operAuthPre",e)}}})],1)],1),i("div",{staticClass:"fixed-btn"},[t.isEdit?i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("goodsForm")}}},[t._v("保存")]):i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("goodsForm")}}},[t._v("确认新建")])],1)])],1),t.dialogVisible?i("check-upload-detail",{attrs:{"dialog-id":t.dialogId,"is-edit":!0},on:{closeUploadDetail:t.closeUploadDetail}}):t._e()],1)},r=[],a=(o("ac4d"),o("8a81"),o("5df3"),o("1c4c"),o("6b54"),o("ac6a"),o("7f7f"),o("28a5"),o("b775")),s=o("f121"),n=o("cdc8"),l=o("2934"),c=o("3b56");function d(t,e){var o;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=p(t))||e&&t&&"number"===typeof t.length){o&&(t=o);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}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 a,s=!0,n=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return s=t.done,t},e:function(t){n=!0,a=t},f:function(){try{s||null==o.return||o.return()}finally{if(n)throw a}}}}function p(t,e){if(t){if("string"===typeof t)return u(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}var g=n["a"].giftGet,f=n["a"].giftUpdate,m=n["a"].giftSave,h=n["a"].getGiftId,v=n["a"].giftTemplateDownload,b={components:{checkUploadDetail:c["a"]},data:function(){var t=function(t,e,o){if(e){if(e.split("").length>32)return o(new Error("礼品编码最多32位"));var i=/^[A-Za-z0-9\-\—]{1,32}$/;if(!i.test(e))return o(new Error("礼品编码只支持数字或字母或-或—"));o()}else o()},e=function(t,e,o){if(e){if(e.split("").length>32)return o(new Error("礼品条形码最多32位"));var i=/^[a-zA-Z0-9]{1,32}$/;if(!i.test(e))return o(new Error("条形码只能是数字或字母"));o()}else o()};return{uploadUrl:l["a"],bread:[{breadName:"福利中心"},{breadName:"礼品管理"},{breadPath:"/gift-manage/virtual-gift",breadName:"虚拟礼品"},{breadName:"新建礼品"}],goodsForm:{giftName:"",marketPrice:void 0,virCostPrice:"",giftImages:"",giftDescrption:"",checkList:[],refundFlag:0,operAuthType:"",operAuth:"",operAuthPre:[],shopCodeList:[],costPrice:"",deliveryType:[],stockUseType:"",giftNo:"",stock:void 0,giftBarNo:"",template:""},template:"示例1:<br>卡号:{01}<br>卡密:{02}<br><br>示例2:<br>点击卡密链接,使用星巴克电子券二维码直接在门店核销。<br>{卡密链接}<br> 使用条款:<br>本电子代金券需一次性使用完毕,不可兑换现金,不找零,不与其他优惠同享。<br>您可凭以上所示二维码在有效期内前往中国大陆地区星巴克门店购买商品",goodsRules:{giftName:[{required:!0,message:"请输入礼品名称",trigger:"blur"}],virCostPrice:[{required:!0,message:"请输入成本",trigger:"blur"}],refundFlag:[{required:!0,message:"请选择是否支持退款",trigger:"change"}],checkList:[{required:!0,message:"请选择库存消耗方式",trigger:"change"}],template:[{required:!0,message:"请输入发货内容",trigger:"blur"}]},validateGoodsCode:t,validateGoodsBarCode:e,giftId:"",editorWidth:900,actionUrl:"/api-plug/upload-images",maxlength:5,uploadAction:"".concat(s["f"],"/gift/vir-gift-upload"),openStorePick:0,btnLoading:!1,loading:!1,enterpriseName:"",handleData:{giftSkuCostPrice:"",stock:void 0,giftSkuCode:"",skuBarCode:""},dialogVisible:!1,fileName:"",isEdit:!1,active:3,image:[],uploadFile:{name:""},correct:!1,correct1:!0,correct2:!0,correct3:!0,correct4:!0,template2:""}},mounted:function(){this.$emit("updateBread",this.bread),this.$emit("showAside",!0),this.getLoginUser(),this.giftId=this.$route.query.giftId,this.giftId?(this.bread[3].breadName="编辑礼品",this.getMess(),this.isEdit=!0):this.getGiftId()},methods:{getGiftId:function(){var t=this;h().then((function(e){"0000"===e.code?t.giftId=e.result:t.$message.error(e.message)}))},checkUploadDetail:function(){this.dialogVisible=!0,this.dialogId=this.giftId},closeUploadDetail:function(){this.dialogVisible=!1},beforeUploadFile:function(t,e){this.uploadFile.name=t.name},downloadFile:function(){if(this.isEdit){var t="/welfare";window.open("".concat(t,"/static/虚拟礼品卡券模板.xlsx"),"_blank")}else if(this.saveDescription(),this.correct){var e="/welfare";window.open("".concat(e,"/static/虚拟礼品卡券模板.xlsx"),"_blank")}},handleChange2:function(t){this.goodsForm.template=t,this.correct=!1,this.correct1=!0,this.correct2=!0,this.correct3=!0,this.correct4=!0},saveDescription:function(){var t=this.goodsForm.template.indexOf("{"),e=this.goodsForm.template.split("");e.splice(t+1,0,'<span style="text-decoration: underline">'),this.goodsForm.template=e.join(""),t=this.goodsForm.template.indexOf("{",t+1);var o=0,i=0;while(-1!==t)e=this.goodsForm.template.split(""),e.splice(t+1,0,'<span style="text-decoration: underline">'),this.goodsForm.template=e.join(""),t=this.goodsForm.template.indexOf("{",t+1);var r=this.goodsForm.template.indexOf("}"),a=this.goodsForm.template.split("");a.splice(r,0,"</span>"),this.goodsForm.template=a.join(""),r=this.goodsForm.template.indexOf("}"),r=this.goodsForm.template.indexOf("}",r+1);while(-1!==r)a=this.goodsForm.template.split(""),a.splice(r,0,"</span>"),this.goodsForm.template=a.join(""),r=this.goodsForm.template.indexOf("}",r+1),r=this.goodsForm.template.indexOf("}",r+1);var s=this.goodsForm.template.indexOf("{"),n=s,l=this.goodsForm.template.indexOf("}"),c=l;while(-1!==s)i++,s=this.goodsForm.template.indexOf("{",s+1),s-n==42&&(this.$message.error("{}不能嵌套出现"),this.correct1=!1),n=s;while(-1!==l)o++,l=this.goodsForm.template.indexOf("}",l+1),l-c==8&&(this.$message.error("{}不能嵌套出现"),this.correct2=!1),c=l;(i!==o||i>3||o>3)&&(this.$message.error("请填写正确的格式"),this.correct3=!1),0!==i&&0!==o||(this.$message.error("请填写正确的格式"),this.correct4=!1),this.correct1&&this.correct2&&this.correct3&&this.correct4&&(this.correct=!0)},downloadTemplate:function(){var t=this;v({template:this.goodsForm.template}).then((function(e){"0000"===e.code||t.$message.error(e.massage)}))},changeStockUse:function(t){t.length>1?this.goodsForm.stockUseType=2:this.goodsForm.stockUseType=t[0]},getLoginUser:function(){var t=this;Object(a["a"])({url:"/gic-auth-web/user/get-login-user"}).then((function(e){t.enterpriseName=e.result.enterpriseName}))},getMess:function(){var t=this,e={id:this.giftId};this.$emit("updateLoading"),g(e).then((function(e){if("0000"===e.code){var o=e.result;t.goodsForm.giftName=o.giftName,t.goodsForm.giftNo=o.giftNo,t.goodsForm.stock=o.stock,t.goodsForm.giftBarNo=o.giftBarNo,t.goodsForm.virCostPrice=o.virCostPrice.toFixed(2),t.goodsForm.marketPrice=o.marketPrice,t.goodsForm.operAuthType=o.operAuthType,t.goodsForm.operAuthPre=o.operAuth?o.operAuth.split(","):[],t.goodsForm.template=o.template,t.goodsForm.checkList=2==o.stockUseType?["1","0"]:1==o.stockUseType?["1"]:["0"],t.goodsForm.deliveryType=o.deliveryType,t.goodsForm.giftImages=o.giftImages,t.goodsForm.stockUseType=o.stockUseType;var i=o.giftImages.split(",");if(i.length){var r,a=d(i);try{for(a.s();!(r=a.n()).done;){var s=r.value;t.image.push({url:s})}}catch(n){a.e(n)}finally{a.f()}}t.goodsForm.giftDescrption=o.giftDescrption,t.goodsForm.template=o.template,t.goodsForm.refundFlag=o.refundFlag}else t.$message.error(e.message)})).finally((function(){return t.$emit("updateLoading")}))},beforeUpload:function(t){return!(t.size>1048576)||(this.$message.error("请上传小于1MB的图片"),!1)},uploadOnSuccess:function(t){var e=t.res.result[0];this.image.push(e);var o=[];this.image.forEach((function(t,e){o[e]=t.url})),this.goodsForm.giftImages=o.join("")},deleteImage:function(t){this.image.splice(t,1);var e=[];this.image.forEach((function(t,o){e[o]=t.url})),this.goodsForm.giftImages=e.join("")},handleChange:function(t){this.goodsForm.giftDescrption=t},submitForm:function(t){var e=this;if(!this.btnLoading)return 0===this.image.length?(this.$message.error("请上传主图"),!1):this.goodsForm.operAuthType?void this.$refs[t].validate((function(t){if(t){e.$emit("updateLoading");var o={giftId:e.giftId,giftType:2,giftName:e.goodsForm.giftName,marketPrice:e.goodsForm.marketPrice,virCostPrice:e.goodsForm.virCostPrice,stock:0,giftNo:e.goodsForm.giftNo,giftBarNo:e.goodsForm.giftBarNo,giftImages:e.goodsForm.giftImages,giftDescrption:e.goodsForm.giftDescrption,refundFlag:e.goodsForm.refundFlag,giftSpecInfo:JSON.stringify(e.goodsStandardInfo),skuList:[],operAuthType:e.goodsForm.operAuthType,operAuth:e.goodsForm.operAuthPre.join(","),deliveryType:"3",source:1,shopSelectType:"",shopImportUuid:"",shopCodeList:[],stockUseType:e.goodsForm.stockUseType,template:e.goodsForm.template};e.btnLoading=!0,e.isEdit?f(o).then((function(t){"0000"===t.code?(e.$router.push({path:"/gift-manage/virtual-gift"}),e.btnLoading=!1):(e.btnLoading=!1,e.$message.error(t.message))})).finally((function(){return e.$emit("updateLoading")})):m(o).then((function(t){"0000"===t.code?(e.$store.commit("updateShowCornerCanUseApp",!0),e.$router.push({path:"/gift-manage/virtual-gift"}),e.btnLoading=!1):(e.btnLoading=!1,e.$message.error(t.message))})).finally((function(){return e.$emit("updateLoading")}))}else PublicMethods.jumpToFormError()})):(this.$message.error("请选择操作人权限"),!1)}}},y=b,F=(o("0f11"),o("2f5d"),o("2877")),k=Object(F["a"])(y,i,r,!1,null,"59c95538",null);e["default"]=k.exports},ac4d:function(t,e,o){o("3a72")("asyncIterator")},cdc8:function(t,e,o){"use strict";o("8e6e"),o("ac6a"),o("456d");var i=o("ade3"),r=o("71f6"),a=o("f121");function s(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function n(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?s(Object(o),!0).forEach((function(e){Object(i["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var l={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};l=Object(r["a"])(l,a["f"]),c=Object(r["a"])(c,a["f"]),e["a"]=n(n({},l),c);a["c"].api,a["b"],a["c"].api,a["f"]},d4c0:function(t,e,o){var i=o("0d58"),r=o("2621"),a=o("52a7");t.exports=function(t){var e=i(t),o=r.f;if(o){var s,n=o(t),l=a.f,c=0;while(n.length>c)l.call(t,s=n[c++])&&e.push(s)}return e}}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9e7ba7ac"],{1087:function(t,e,o){t.exports=o.p+"img/eg2.b6ed585a.png"},"17e9":function(t,e,o){},"1c4c":function(t,e,o){"use strict";var i=o("9b43"),r=o("5ca1"),a=o("4bf8"),s=o("1fa8"),n=o("33a4"),l=o("9def"),c=o("f1ae"),d=o("27ee");r(r.S+r.F*!o("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,o,r,p,u=a(t),g="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,h=void 0!==m,v=0,b=d(u);if(h&&(m=i(m,f>2?arguments[2]:void 0,2)),void 0==b||g==Array&&n(b))for(e=l(u.length),o=new g(e);e>v;v++)c(o,v,h?m(u[v],v):u[v]);else for(p=b.call(u),o=new g;!(r=p.next()).done;v++)c(o,v,h?s(p,m,[r.value,v],!0):r.value);return o.length=v,o}})},"2f5d":function(t,e,o){"use strict";o("17e9")},"37c8":function(t,e,o){e.f=o("2b4c")},"38f0":function(t,e,o){"use strict";o("8478")},"3a72":function(t,e,o){var i=o("7726"),r=o("8378"),a=o("2d00"),s=o("37c8"),n=o("86cc").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||n(e,t,{value:s.f(t)})}},"3b56":function(t,e,o){"use strict";var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{attrs:{title:"查看内容",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.isEdit?t._e():o("div",{staticStyle:{background:"#F7F8FA","margin-bottom":"20px"}},[o("div",{staticStyle:{"font-size":"12px","line-height":"22px"},domProps:{innerHTML:t._s(t.template)}})]),o("div",[o("el-input",{staticClass:"mr10 w220",attrs:{placeholder:"请输入关键词搜索","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.getTableList},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getTableList(e)}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),o("el-table",{staticClass:"mt20",attrs:{data:t.tableData}},[t._l(t.headList,(function(t,e){return o("el-table-column",{key:e,attrs:{label:t,prop:0===e?"paramOne":1===e?"paramTwo":"paramThree"}})})),o("el-table-column",{attrs:{label:"当前状态",prop:"statusFlag"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0===e.row.statusFlag?"未兑换":"已兑换"))]}}])}),o("el-table-column",{attrs:{label:"用户/会员",prop:"name"}})],2),o("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination-conteiner",staticStyle:{background:"#fff"}},[o("div",{staticClass:"pagination",staticStyle:{"text-align":"right"}},[0!=t.total?o("dm-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.pageSize,layout:"prev, pager, next",total:t.total},on:{"current-change":t.getTableList,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}}):t._e()],1)])],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])},r=[],a=(o("a481"),o("386d"),o("cdc8")),s=a["a"].virtualCardList,n=a["a"].giftGet,l={props:{dialogId:{type:String,default:function(){return""}},isEdit:{type:Boolean,default:function(){return!1}}},data:function(){return{dialogVisible:!1,loading:!1,currentPage:1,pageSize:10,total:"",tableData:[],template:"",search:"",headList:[]}},mounted:function(){this.dialogVisible=!0,this.giftId=this.dialogId,this.getTableList(),this.isEdit||this.getMess()},methods:{getTableList:function(){var t=this;this.loading=!0;var e={id:this.giftId,key:this.search,pageSize:this.pageSize,currentPage:this.currentPage};s(e).then((function(e){t.tableData=e.result.result||[];var o=[];o=t.tableData[0].headList,t.headList=o.map((function(t,e){return-1!=t.indexOf('<span style="text-decoration: underline">')&&(t=t.replace('<span style="text-decoration: underline">',"")),-1!=t.indexOf("</span>")&&(t=t.replace("</span>","")),t})),t.total=e.result.totalCount})).finally((function(){return t.loading=!1}))},getMess:function(){var t=this,e={id:this.giftId};n(e).then((function(e){"0000"===e.code?t.template=e.result.template||"":t.$message.error(e.message)}))},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUploadDetail")}),10)}}},c=l,d=o("2877"),p=Object(d["a"])(c,i,r,!1,null,"3d717520",null);e["a"]=p.exports},"7bbc":function(t,e,o){var i=o("6821"),r=o("9093").f,a={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n=function(t){try{return r(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==a.call(t)?n(t):r(i(t))}},8478:function(t,e,o){},"8a81":function(t,e,o){"use strict";var i=o("7726"),r=o("69a8"),a=o("9e1e"),s=o("5ca1"),n=o("2aba"),l=o("67ab").KEY,c=o("79e5"),d=o("5537"),p=o("7f20"),u=o("ca5a"),g=o("2b4c"),f=o("37c8"),m=o("3a72"),h=o("d4c0"),v=o("1169"),b=o("cb7c"),y=o("d3f4"),F=o("4bf8"),k=o("6821"),w=o("6a99"),x=o("4630"),S=o("2aeb"),C=o("7bbc"),O=o("11e9"),P=o("2621"),_=o("86cc"),N=o("0d58"),I=O.f,T=_.f,j=C.f,L=i.Symbol,$=i.JSON,A=$&&$.stringify,U="prototype",D=g("_hidden"),E=g("toPrimitive"),B={}.propertyIsEnumerable,G=d("symbol-registry"),q=d("symbols"),M=d("op-symbols"),V=Object[U],z="function"==typeof L&&!!P.f,J=i.QObject,W=!J||!J[U]||!J[U].findChild,R=a&&c((function(){return 7!=S(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,e,o){var i=I(V,e);i&&delete V[e],T(t,e,o),i&&t!==V&&T(V,e,i)}:T,Z=function(t){var e=q[t]=S(L[U]);return e._k=t,e},H=z&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},K=function(t,e,o){return t===V&&K(M,e,o),b(t),e=w(e,!0),b(o),r(q,e)?(o.enumerable?(r(t,D)&&t[D][e]&&(t[D][e]=!1),o=S(o,{enumerable:x(0,!1)})):(r(t,D)||T(t,D,x(1,{})),t[D][e]=!0),R(t,e,o)):T(t,e,o)},Q=function(t,e){b(t);var o,i=h(e=k(e)),r=0,a=i.length;while(a>r)K(t,o=i[r++],e[o]);return t},Y=function(t,e){return void 0===e?S(t):Q(S(t),e)},X=function(t){var e=B.call(this,t=w(t,!0));return!(this===V&&r(q,t)&&!r(M,t))&&(!(e||!r(this,t)||!r(q,t)||r(this,D)&&this[D][t])||e)},tt=function(t,e){if(t=k(t),e=w(e,!0),t!==V||!r(q,e)||r(M,e)){var o=I(t,e);return!o||!r(q,e)||r(t,D)&&t[D][e]||(o.enumerable=!0),o}},et=function(t){var e,o=j(k(t)),i=[],a=0;while(o.length>a)r(q,e=o[a++])||e==D||e==l||i.push(e);return i},ot=function(t){var e,o=t===V,i=j(o?M:k(t)),a=[],s=0;while(i.length>s)!r(q,e=i[s++])||o&&!r(V,e)||a.push(q[e]);return a};z||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=u(arguments.length>0?arguments[0]:void 0),e=function(o){this===V&&e.call(M,o),r(this,D)&&r(this[D],t)&&(this[D][t]=!1),R(this,t,x(1,o))};return a&&W&&R(V,t,{configurable:!0,set:e}),Z(t)},n(L[U],"toString",(function(){return this._k})),O.f=tt,_.f=K,o("9093").f=C.f=et,o("52a7").f=X,P.f=ot,a&&!o("2d00")&&n(V,"propertyIsEnumerable",X,!0),f.f=function(t){return Z(g(t))}),s(s.G+s.W+s.F*!z,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)g(it[rt++]);for(var at=N(g.store),st=0;at.length>st;)m(at[st++]);s(s.S+s.F*!z,"Symbol",{for:function(t){return r(G,t+="")?G[t]:G[t]=L(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in G)if(G[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!z,"Object",{create:Y,defineProperty:K,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:ot});var nt=c((function(){P.f(1)}));s(s.S+s.F*nt,"Object",{getOwnPropertySymbols:function(t){return P.f(F(t))}}),$&&s(s.S+s.F*(!z||c((function(){var t=L();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))}))),"JSON",{stringify:function(t){var e,o,i=[t],r=1;while(arguments.length>r)i.push(arguments[r++]);if(o=e=i[1],(y(e)||void 0!==t)&&!H(t))return v(e)||(e=function(t,e){if("function"==typeof o&&(e=o.call(this,t,e)),!H(e))return e}),i[1]=e,A.apply($,i)}}),L[U][E]||o("32e9")(L[U],E,L[U].valueOf),p(L,"Symbol"),p(Math,"Math",!0),p(i.JSON,"JSON",!0)},a0f2:function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"from-content"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"goodsForm",staticClass:"demo-ruleForm",attrs:{model:t.goodsForm,rules:t.goodsRules,"label-width":"150px","label-position":"right"}},[i("div",{staticClass:"form-section"},[i("h3",[t._v("基础信息")]),i("el-form-item",{staticClass:"w-630",attrs:{label:"福利渠道"}},[t._v(t._s(t.enterpriseName))]),i("el-form-item",{staticClass:"w-630",attrs:{label:"礼品名称",prop:"giftName"}},[i("dm-input",{attrs:{"byte-type":1,type:"text",maxlength:30,placeholder:"请输入礼品名称"},model:{value:t.goodsForm.giftName,callback:function(e){t.$set(t.goodsForm,"giftName",e)},expression:"goodsForm.giftName"}})],1),i("el-form-item",{attrs:{label:"礼品主图",required:""}},[i("div",{staticClass:"member-upload-image"},[i("div",{staticClass:"member-upload-image"},[i("dm-upload-picture",{attrs:{"action-url":t.actionUrl,"image-list":t.image,"max-image-length":t.maxlength,accept:"image/jpeg, image/jpg, image/png, image/gif","before-upload":t.beforeUpload},on:{uploadOnSuccess:t.uploadOnSuccess,deleteImage:t.deleteImage}})],1),i("span",{staticClass:"tip-warm",staticStyle:{display:"block"}},[t._v("图片建议尺寸800*800px,格式jpg/png/gif,大小1MB以内,你可以拖拽图片调整顺序,最多上传 5 张")])])]),i("el-form-item",{attrs:{label:"礼品详情",prop:"giftDescrption"}},[i("dm-editor",{attrs:{width:t.editorWidth,value:t.goodsForm.giftDescrption},on:{change:t.handleChange}})],1)],1),i("div",{staticClass:"form-section"},[i("h3",[t._v("库存信息")]),i("el-form-item",{staticClass:"w-630",attrs:{label:"成本",prop:"virCostPrice"}},[i("dm-input-amount",{attrs:{width:"180",min:0,max:999999.99,precision:2},model:{value:t.goodsForm.virCostPrice,callback:function(e){t.$set(t.goodsForm,"virCostPrice",e)},expression:"goodsForm.virCostPrice"}})],1),i("el-form-item",{staticClass:"w-630",attrs:{label:"库存",prop:"stock"}},[i("dm-input-number",{attrs:{width:"180",min:0,max:999999,precision:0,disabled:"",placeholder:"上传文件后自动填充"},model:{value:t.goodsForm.stock,callback:function(e){t.$set(t.goodsForm,"stock",e)},expression:"goodsForm.stock"}})],1),i("el-form-item",{attrs:{prop:"marketPrice",label:"市场价"}},[i("dm-input-amount",{attrs:{width:"180",min:0,max:999999.99,precision:2},model:{value:t.goodsForm.marketPrice,callback:function(e){t.$set(t.goodsForm,"marketPrice",e)},expression:"goodsForm.marketPrice"}}),i("div",[i("span",{staticClass:"tip-warm"},[t._v("市场价在礼品详情会以划线形式显示。")]),i("el-popover",{attrs:{placement:"top-start",width:"395",trigger:"hover"}},[i("img",{staticStyle:{width:"360px"},attrs:{src:o("1087"),alt:""}}),i("el-button",{staticStyle:{"margin-left":"15px"},attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看示例")])],1)],1)],1),i("el-form-item",{staticClass:"w-630",attrs:{label:"礼品编码",prop:"giftNo",rules:[{validator:t.validateGoodsCode,trigger:"blur"}]}},[i("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入"},model:{value:t.goodsForm.giftNo,callback:function(e){t.$set(t.goodsForm,"giftNo",e)},expression:"goodsForm.giftNo"}})],1),i("el-form-item",{staticClass:"w-630",attrs:{label:"礼品条形码",prop:"giftBarNo",rules:[{validator:t.validateGoodsBarCode,trigger:"blur"}]}},[i("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入"},model:{value:t.goodsForm.giftBarNo,callback:function(e){t.$set(t.goodsForm,"giftBarNo",e)},expression:"goodsForm.giftBarNo"}})],1)],1),i("div",{staticClass:"form-section"},[i("h3",[t._v("福利设置")]),i("el-form-item",{attrs:{label:"发货内容",required:"",prop:"template"}},[[i("div",{staticStyle:{display:"flex"}},[i("dm-editor",{attrs:{width:"500",height:"300",value:t.goodsForm.template,placeholder:t.template,readonly:""!=t.$route.query.giftId},on:{change:t.handleChange2}}),i("div",{staticClass:"ml20"},[i("p",[t._v("用户申请履约后,发货内容将自动发送。")]),i("div",{staticClass:"step-style",staticStyle:{height:"250px"}},[i("el-steps",{attrs:{direction:"vertical",active:t.active}},[i("el-step",[i("div",{staticStyle:{width:"360px"},attrs:{slot:"description"},slot:"description"},[i("span",{staticClass:"step-text"},[t._v('编辑发货内容,变量请使用大括号标记"{}"。')])])]),i("el-step",[i("div",{attrs:{slot:"description"},slot:"description"},[i("span",{staticClass:"step-text"},[t._v("下载模板并以“变量”为表头填入变量值。")]),i("el-button",{attrs:{type:"text"},on:{click:t.downloadFile}},[t._v("点击下载")])],1)]),i("el-step",[i("div",{attrs:{slot:"description"},slot:"description"},[i("div",{staticClass:"pickup-upload"},[i("span",{staticClass:"inline-block step-text",staticStyle:{"margin-bottom":"20px"}},[t._v("上传完善后的文件。")]),i("dm-upload-file",{staticClass:"inline-block",attrs:{width:"300","show-file-list":!1,action:t.uploadAction,"on-success":t.successUpload,accept:".xls,.xlsx","before-upload":t.beforeUploadFile,data:{giftId:t.giftId,remark:""},"with-credentials":""},scopedSlots:t._u([{key:"file-item",fn:function(e){var o=e.fileData;return i("div",{},[t._v(t._s(o.name))])}}])},[i("el-button",{staticClass:"upload-trigger"},[i("i",{staticClass:"iconfont-components4 icon-cp-shangc upload-icon"}),t._v(" 上传")]),i("span",{staticClass:"upload-tip inline-block",attrs:{slot:"tip"},slot:"tip"},[i("el-popover",{attrs:{trigger:"click",placement:"right","popper-class":"upload-popper"}},[i("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看导入规则")]),i("div",{staticClass:"upload-tip-text"},[i("p",[t._v("1.请按照顺序维护表头,所有变量均为必填项;")]),i("p",[t._v("2.请勿导入重复的内容,导入的内容在原来基础上增加库存;")]),i("p",[t._v("3.上传完整仅支持.xlsx .xls文件的导入,填充数据不超过“10万”条;")]),i("p",[t._v("4.正在异步上传处理中,我们将按照顺序分批次(5000/1批次)更新库存,请稍候刷新查看库存上传结果;")])])],1),t.isEdit?i("el-button",{staticClass:"inline-block ml20",attrs:{type:"text"},on:{click:t.checkUploadDetail}},[t._v("查看内容")]):t._e()],1)],1)],1)])])],1)],1)])],1)]],2),i("el-form-item",{attrs:{label:"库存消耗方式",prop:"checkList"}},[[i("el-checkbox-group",{attrs:{disabled:t.isEdit},on:{change:t.changeStockUse},model:{value:t.goodsForm.checkList,callback:function(e){t.$set(t.goodsForm,"checkList",e)},expression:"goodsForm.checkList"}},[i("el-checkbox",{attrs:{label:"0"}},[i("el-tooltip",{staticClass:"tips-content",attrs:{effect:"dark","open-delay":"200","popper-class":"store-tips",placement:"top-start"}},[i("div",{staticStyle:{width:"245px"},attrs:{slot:"content"},slot:"content"},[t._v("固定库存:通过占用的方式获得固定可用库存,不会被其他应用/活动所消耗。")]),i("span",{staticClass:"inline-block ml30 dash-style"},[t._v("固定库存")])])],1),i("el-checkbox",{staticStyle:{"margin-left":"50px"},attrs:{label:"1"}},[i("el-tooltip",{staticClass:"tips-content",attrs:{effect:"dark","open-delay":"200","popper-class":"store-tips",placement:"top-start"}},[i("div",{staticStyle:{width:"245px"},attrs:{slot:"content"},slot:"content"},[t._v("实时库存:不占用库存,使用福利中心“可占库存”,与其他应用使用同个库存。")]),i("span",{staticClass:"inline-block ml30 dash-style"},[t._v("实时库存")])])],1)],1)]],2)],1),i("div",{staticClass:"form-section"},[i("h3",[t._v("售后服务")]),i("el-form-item",{attrs:{prop:"refundFlag",label:"支持申请退货",required:""}},[[i("div",[i("el-radio",{attrs:{label:1},model:{value:t.goodsForm.refundFlag,callback:function(e){t.$set(t.goodsForm,"refundFlag",e)},expression:"goodsForm.refundFlag"}},[t._v("是")]),i("el-radio",{attrs:{label:0},model:{value:t.goodsForm.refundFlag,callback:function(e){t.$set(t.goodsForm,"refundFlag",e)},expression:"goodsForm.refundFlag"}},[t._v("否")])],1),i("span",{staticClass:"tip-warm",staticStyle:{display:"block"}},[t._v("若商品不支持退货,则该礼品出库后不支持生成退货单")])]],2)],1),i("div",{staticClass:"form-section mb56"},[i("h3",[t._v("权限设置")]),i("el-form-item",{attrs:{label:"操作人权限",required:""}},[i("dm-acc-group-select",{attrs:{etype:t.goodsForm.operAuthType,"group-ids":t.goodsForm.operAuthPre},on:{"update:etype":function(e){return t.$set(t.goodsForm,"operAuthType",e)},"update:groupIds":function(e){return t.$set(t.goodsForm,"operAuthPre",e)},"update:group-ids":function(e){return t.$set(t.goodsForm,"operAuthPre",e)}}})],1)],1),i("div",{staticClass:"fixed-btn"},[t.isEdit?i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("goodsForm")}}},[t._v("保存")]):i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("goodsForm")}}},[t._v("确认新建")])],1)])],1),t.dialogVisible?i("check-upload-detail",{attrs:{"dialog-id":t.dialogId,"is-edit":!0},on:{closeUploadDetail:t.closeUploadDetail}}):t._e()],1)},r=[],a=(o("ac4d"),o("8a81"),o("5df3"),o("1c4c"),o("6b54"),o("ac6a"),o("c5f6"),o("7f7f"),o("28a5"),o("b775")),s=o("f121"),n=o("cdc8"),l=o("2934"),c=o("3b56");function d(t,e){var o;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=p(t))||e&&t&&"number"===typeof t.length){o&&(t=o);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}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 a,s=!0,n=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return s=t.done,t},e:function(t){n=!0,a=t},f:function(){try{s||null==o.return||o.return()}finally{if(n)throw a}}}}function p(t,e){if(t){if("string"===typeof t)return u(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}var g=n["a"].giftGet,f=n["a"].giftUpdate,m=n["a"].giftSave,h=n["a"].getGiftId,v=n["a"].giftTemplateDownload,b={components:{checkUploadDetail:c["a"]},data:function(){var t=function(t,e,o){if(e){if(e.split("").length>32)return o(new Error("礼品编码最多32位"));var i=/^[A-Za-z0-9\-\—]{1,32}$/;if(!i.test(e))return o(new Error("礼品编码只支持数字或字母或-或—"));o()}else o()},e=function(t,e,o){if(e){if(e.split("").length>32)return o(new Error("礼品条形码最多32位"));var i=/^[a-zA-Z0-9]{1,32}$/;if(!i.test(e))return o(new Error("条形码只能是数字或字母"));o()}else o()};return{uploadUrl:l["a"],bread:[{breadName:"福利中心"},{breadName:"礼品管理"},{breadPath:"/gift-manage/virtual-gift",breadName:"虚拟礼品"},{breadName:"新建礼品"}],goodsForm:{giftName:"",marketPrice:void 0,virCostPrice:"",giftImages:"",giftDescrption:"",checkList:[],refundFlag:0,operAuthType:"",operAuth:"",operAuthPre:[],shopCodeList:[],costPrice:"",deliveryType:[],stockUseType:"",giftNo:"",stock:void 0,giftBarNo:"",template:""},template:"示例1:<br>卡号:{01}<br>卡密:{02}<br><br>示例2:<br>点击卡密链接,使用星巴克电子券二维码直接在门店核销。<br>{卡密链接}<br> 使用条款:<br>本电子代金券需一次性使用完毕,不可兑换现金,不找零,不与其他优惠同享。<br>您可凭以上所示二维码在有效期内前往中国大陆地区星巴克门店购买商品",goodsRules:{giftName:[{required:!0,message:"请输入礼品名称",trigger:"blur"}],virCostPrice:[{required:!0,message:"请输入成本",trigger:"blur"}],refundFlag:[{required:!0,message:"请选择是否支持退款",trigger:"change"}],checkList:[{required:!0,message:"请选择库存消耗方式",trigger:"change"}],template:[{required:!0,message:"请输入发货内容",trigger:"blur"}]},validateGoodsCode:t,validateGoodsBarCode:e,giftId:"",editorWidth:900,actionUrl:"/api-plug/upload-images",maxlength:5,uploadAction:"".concat(s["f"],"/gift/vir-gift-upload"),openStorePick:0,btnLoading:!1,loading:!1,enterpriseName:"",handleData:{giftSkuCostPrice:"",stock:void 0,giftSkuCode:"",skuBarCode:""},dialogVisible:!1,fileName:"",isEdit:!1,active:3,image:[],uploadFile:{name:""},correct:!1,correct1:!0,correct2:!0,correct3:!0,correct4:!0,template2:""}},mounted:function(){this.$emit("updateBread",this.bread),this.$emit("showAside",!0),this.getLoginUser(),this.giftId=this.$route.query.giftId,this.giftId?(this.bread[3].breadName="编辑礼品",this.getMess(),this.isEdit=!0):this.getGiftId()},methods:{getGiftId:function(){var t=this;h().then((function(e){"0000"===e.code?t.giftId=e.result:t.$message.error(e.message)}))},checkUploadDetail:function(){this.dialogVisible=!0,this.dialogId=this.giftId},closeUploadDetail:function(){this.dialogVisible=!1},beforeUploadFile:function(t,e){this.uploadFile.name=t.name},downloadFile:function(){if(this.isEdit){var t="/welfare";window.open("".concat(t,"/static/虚拟礼品卡券模板.xlsx"),"_blank")}else if(this.saveDescription(),this.correct){var e="/welfare";window.open("".concat(e,"/static/虚拟礼品卡券模板.xlsx"),"_blank")}},handleChange2:function(t){this.goodsForm.template=t,this.correct=!1,this.correct1=!0,this.correct2=!0,this.correct3=!0,this.correct4=!0},saveDescription:function(){var t=this.goodsForm.template.indexOf("{"),e=this.goodsForm.template.split("");e.splice(t+1,0,'<span style="text-decoration: underline">'),this.goodsForm.template=e.join(""),t=this.goodsForm.template.indexOf("{",t+1);var o=0,i=0;while(-1!==t)e=this.goodsForm.template.split(""),e.splice(t+1,0,'<span style="text-decoration: underline">'),this.goodsForm.template=e.join(""),t=this.goodsForm.template.indexOf("{",t+1);var r=this.goodsForm.template.indexOf("}"),a=this.goodsForm.template.split("");a.splice(r,0,"</span>"),this.goodsForm.template=a.join(""),r=this.goodsForm.template.indexOf("}"),r=this.goodsForm.template.indexOf("}",r+1);while(-1!==r)a=this.goodsForm.template.split(""),a.splice(r,0,"</span>"),this.goodsForm.template=a.join(""),r=this.goodsForm.template.indexOf("}",r+1),r=this.goodsForm.template.indexOf("}",r+1);var s=this.goodsForm.template.indexOf("{"),n=s,l=this.goodsForm.template.indexOf("}"),c=l;while(-1!==s)i++,s=this.goodsForm.template.indexOf("{",s+1),s-n==42&&(this.$message.error("{}不能嵌套出现"),this.correct1=!1),n=s;while(-1!==l)o++,l=this.goodsForm.template.indexOf("}",l+1),l-c==8&&(this.$message.error("{}不能嵌套出现"),this.correct2=!1),c=l;(i!==o||i>3||o>3)&&(this.$message.error("请填写正确的格式"),this.correct3=!1),0!==i&&0!==o||(this.$message.error("请填写正确的格式"),this.correct4=!1),this.correct1&&this.correct2&&this.correct3&&this.correct4&&(this.correct=!0)},downloadTemplate:function(){var t=this;v({template:this.goodsForm.template}).then((function(e){"0000"===e.code||t.$message.error(e.massage)}))},changeStockUse:function(t){t.length>1?this.goodsForm.stockUseType=2:this.goodsForm.stockUseType=t[0]},getLoginUser:function(){var t=this;Object(a["a"])({url:"/gic-auth-web/user/get-login-user"}).then((function(e){t.enterpriseName=e.result.enterpriseName}))},getMess:function(){var t=this,e={id:this.giftId};this.$emit("updateLoading"),g(e).then((function(e){if("0000"===e.code){var o=e.result;t.goodsForm.giftName=o.giftName,t.goodsForm.giftNo=o.giftNo,t.goodsForm.stock=o.stock,t.goodsForm.giftBarNo=o.giftBarNo,t.goodsForm.virCostPrice=Number(o.virCostPrice).toFixed(2),t.goodsForm.marketPrice=o.marketPrice,t.goodsForm.operAuthType=o.operAuthType,t.goodsForm.operAuthPre=o.operAuth?o.operAuth.split(","):[],t.goodsForm.template=o.template,t.goodsForm.checkList=2==o.stockUseType?["1","0"]:1==o.stockUseType?["1"]:["0"],t.goodsForm.deliveryType=o.deliveryType,t.goodsForm.giftImages=o.giftImages,t.goodsForm.stockUseType=o.stockUseType;var i=o.giftImages.split(",");if(i.length){var r,a=d(i);try{for(a.s();!(r=a.n()).done;){var s=r.value;t.image.push({url:s})}}catch(n){a.e(n)}finally{a.f()}}t.goodsForm.giftDescrption=o.giftDescrption,t.goodsForm.template=o.template,t.goodsForm.refundFlag=o.refundFlag}else t.$message.error(e.message)})).finally((function(){return t.$emit("updateLoading")}))},beforeUpload:function(t){return!(t.size>1048576)||(this.$message.error("请上传小于1MB的图片"),!1)},uploadOnSuccess:function(t){var e=t.res.result[0];this.image.push(e);var o=[];this.image.forEach((function(t,e){o[e]=t.url})),this.goodsForm.giftImages=o.join("")},deleteImage:function(t){this.image.splice(t,1);var e=[];this.image.forEach((function(t,o){e[o]=t.url})),this.goodsForm.giftImages=e.join("")},handleChange:function(t){this.goodsForm.giftDescrption=t},submitForm:function(t){var e=this;if(!this.btnLoading)return 0===this.image.length?(this.$message.error("请上传主图"),!1):this.goodsForm.operAuthType?void this.$refs[t].validate((function(t){if(t){e.$emit("updateLoading");var o={giftId:e.giftId,giftType:2,giftName:e.goodsForm.giftName,marketPrice:e.goodsForm.marketPrice,virCostPrice:e.goodsForm.virCostPrice,stock:0,giftNo:e.goodsForm.giftNo,giftBarNo:e.goodsForm.giftBarNo,giftImages:e.goodsForm.giftImages,giftDescrption:e.goodsForm.giftDescrption,refundFlag:e.goodsForm.refundFlag,giftSpecInfo:JSON.stringify(e.goodsStandardInfo),skuList:[],operAuthType:e.goodsForm.operAuthType,operAuth:e.goodsForm.operAuthPre.join(","),deliveryType:"3",source:1,shopSelectType:"",shopImportUuid:"",shopCodeList:[],stockUseType:e.goodsForm.stockUseType,template:e.goodsForm.template};e.btnLoading=!0,e.isEdit?f(o).then((function(t){"0000"===t.code?(e.$router.push({path:"/gift-manage/virtual-gift"}),e.btnLoading=!1):(e.btnLoading=!1,e.$message.error(t.message))})).finally((function(){return e.$emit("updateLoading")})):m(o).then((function(t){"0000"===t.code?(e.$store.commit("updateShowCornerCanUseApp",!0),e.$router.push({path:"/gift-manage/virtual-gift"}),e.btnLoading=!1):(e.btnLoading=!1,e.$message.error(t.message))})).finally((function(){return e.$emit("updateLoading")}))}else PublicMethods.jumpToFormError()})):(this.$message.error("请选择操作人权限"),!1)}}},y=b,F=(o("38f0"),o("2f5d"),o("2877")),k=Object(F["a"])(y,i,r,!1,null,"b6d548a4",null);e["default"]=k.exports},ac4d:function(t,e,o){o("3a72")("asyncIterator")},cdc8:function(t,e,o){"use strict";o("8e6e"),o("ac6a"),o("456d");var i=o("ade3"),r=o("71f6"),a=o("f121");function s(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function n(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?s(Object(o),!0).forEach((function(e){Object(i["a"])(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var l={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"/address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};l=Object(r["a"])(l,a["f"]),c=Object(r["a"])(c,a["f"]),e["a"]=n(n({},l),c);a["c"].api,a["b"],a["c"].api,a["f"]},d4c0:function(t,e,o){var i=o("0d58"),r=o("2621"),a=o("52a7");t.exports=function(t){var e=i(t),o=r.f;if(o){var s,n=o(t),l=a.f,c=0;while(n.length>c)l.call(t,s=n[c++])&&e.push(s)}return e}}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e34bb126"],{"1c4c":function(t,e,i){"use strict";var a=i("9b43"),n=i("5ca1"),s=i("4bf8"),o=i("1fa8"),r=i("33a4"),l=i("9def"),c=i("f1ae"),u=i("27ee");n(n.S+n.F*!i("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,i,n,d,p=s(t),f="function"==typeof this?this:Array,h=arguments.length,g=h>1?arguments[1]:void 0,m=void 0!==g,y=0,b=u(p);if(m&&(g=a(g,h>2?arguments[2]:void 0,2)),void 0==b||f==Array&&r(b))for(e=l(p.length),i=new f(e);e>y;y++)c(i,y,m?g(p[y],y):p[y]);else for(d=b.call(p),i=new f;!(n=d.next()).done;y++)c(i,y,m?o(d,g,[n.value,y],!0):n.value);return i.length=y,i}})},"37c8":function(t,e,i){e.f=i("2b4c")},"3a72":function(t,e,i){var a=i("7726"),n=i("8378"),s=i("2d00"),o=i("37c8"),r=i("86cc").f;t.exports=function(t){var e=n.Symbol||(n.Symbol=s?{}:a.Symbol||{});"_"==t.charAt(0)||t in e||r(e,t,{value:o.f(t)})}},"3b56":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"查看内容",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.isEdit?t._e():i("div",{staticStyle:{background:"#F7F8FA","margin-bottom":"20px"}},[i("div",{staticStyle:{"font-size":"12px","line-height":"22px"},domProps:{innerHTML:t._s(t.template)}})]),i("div",[i("el-input",{staticClass:"mr10 w220",attrs:{placeholder:"请输入关键词搜索","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.getTableList},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getTableList(e)}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),i("el-table",{staticClass:"mt20",attrs:{data:t.tableData}},[t._l(t.headList,(function(t,e){return i("el-table-column",{key:e,attrs:{label:t,prop:0===e?"paramOne":1===e?"paramTwo":"paramThree"}})})),i("el-table-column",{attrs:{label:"当前状态",prop:"statusFlag"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0===e.row.statusFlag?"未兑换":"已兑换"))]}}])}),i("el-table-column",{attrs:{label:"用户/会员",prop:"name"}})],2),i("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination-conteiner",staticStyle:{background:"#fff"}},[i("div",{staticClass:"pagination",staticStyle:{"text-align":"right"}},[0!=t.total?i("dm-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.pageSize,layout:"prev, pager, next",total:t.total},on:{"current-change":t.getTableList,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}}):t._e()],1)])],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])},n=[],s=(i("a481"),i("386d"),i("cdc8")),o=s["a"].virtualCardList,r=s["a"].giftGet,l={props:{dialogId:{type:String,default:function(){return""}},isEdit:{type:Boolean,default:function(){return!1}}},data:function(){return{dialogVisible:!1,loading:!1,currentPage:1,pageSize:10,total:"",tableData:[],template:"",search:"",headList:[]}},mounted:function(){this.dialogVisible=!0,this.giftId=this.dialogId,this.getTableList(),this.isEdit||this.getMess()},methods:{getTableList:function(){var t=this;this.loading=!0;var e={id:this.giftId,key:this.search,pageSize:this.pageSize,currentPage:this.currentPage};o(e).then((function(e){t.tableData=e.result.result||[];var i=[];i=t.tableData[0].headList,t.headList=i.map((function(t,e){return-1!=t.indexOf('<span style="text-decoration: underline">')&&(t=t.replace('<span style="text-decoration: underline">',"")),-1!=t.indexOf("</span>")&&(t=t.replace("</span>","")),t})),t.total=e.result.totalCount})).finally((function(){return t.loading=!1}))},getMess:function(){var t=this,e={id:this.giftId};r(e).then((function(e){"0000"===e.code?t.template=e.result.template||"":t.$message.error(e.message)}))},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUploadDetail")}),10)}}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,"3d717520",null);e["a"]=d.exports},"3df3":function(t,e,i){"use strict";i("5f30")},"5f30":function(t,e,i){},"7bbc":function(t,e,i){var a=i("6821"),n=i("9093").f,s={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r=function(t){try{return n(t)}catch(e){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==s.call(t)?r(t):n(a(t))}},"84e7":function(t,e,i){"use strict";i("d730")},"8a81":function(t,e,i){"use strict";var a=i("7726"),n=i("69a8"),s=i("9e1e"),o=i("5ca1"),r=i("2aba"),l=i("67ab").KEY,c=i("79e5"),u=i("5537"),d=i("7f20"),p=i("ca5a"),f=i("2b4c"),h=i("37c8"),g=i("3a72"),m=i("d4c0"),y=i("1169"),b=i("cb7c"),v=i("d3f4"),k=i("4bf8"),w=i("6821"),S=i("6a99"),C=i("4630"),x=i("2aeb"),_=i("7bbc"),O=i("11e9"),T=i("2621"),P=i("86cc"),L=i("0d58"),q=O.f,D=P.f,I=_.f,j=a.Symbol,$=a.JSON,F=$&&$.stringify,U="prototype",N=f("_hidden"),M=f("toPrimitive"),V={}.propertyIsEnumerable,A=u("symbol-registry"),E=u("symbols"),z=u("op-symbols"),B=Object[U],H="function"==typeof j&&!!T.f,R=a.QObject,G=!R||!R[U]||!R[U].findChild,J=s&&c((function(){return 7!=x(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(t,e,i){var a=q(B,e);a&&delete B[e],D(t,e,i),a&&t!==B&&D(B,e,a)}:D,W=function(t){var e=E[t]=x(j[U]);return e._k=t,e},K=H&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Q=function(t,e,i){return t===B&&Q(z,e,i),b(t),e=S(e,!0),b(i),n(E,e)?(i.enumerable?(n(t,N)&&t[N][e]&&(t[N][e]=!1),i=x(i,{enumerable:C(0,!1)})):(n(t,N)||D(t,N,C(1,{})),t[N][e]=!0),J(t,e,i)):D(t,e,i)},Y=function(t,e){b(t);var i,a=m(e=w(e)),n=0,s=a.length;while(s>n)Q(t,i=a[n++],e[i]);return t},X=function(t,e){return void 0===e?x(t):Y(x(t),e)},Z=function(t){var e=V.call(this,t=S(t,!0));return!(this===B&&n(E,t)&&!n(z,t))&&(!(e||!n(this,t)||!n(E,t)||n(this,N)&&this[N][t])||e)},tt=function(t,e){if(t=w(t),e=S(e,!0),t!==B||!n(E,e)||n(z,e)){var i=q(t,e);return!i||!n(E,e)||n(t,N)&&t[N][e]||(i.enumerable=!0),i}},et=function(t){var e,i=I(w(t)),a=[],s=0;while(i.length>s)n(E,e=i[s++])||e==N||e==l||a.push(e);return a},it=function(t){var e,i=t===B,a=I(i?z:w(t)),s=[],o=0;while(a.length>o)!n(E,e=a[o++])||i&&!n(B,e)||s.push(E[e]);return s};H||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===B&&e.call(z,i),n(this,N)&&n(this[N],t)&&(this[N][t]=!1),J(this,t,C(1,i))};return s&&G&&J(B,t,{configurable:!0,set:e}),W(t)},r(j[U],"toString",(function(){return this._k})),O.f=tt,P.f=Q,i("9093").f=_.f=et,i("52a7").f=Z,T.f=it,s&&!i("2d00")&&r(B,"propertyIsEnumerable",Z,!0),h.f=function(t){return W(f(t))}),o(o.G+o.W+o.F*!H,{Symbol:j});for(var at="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;at.length>nt;)f(at[nt++]);for(var st=L(f.store),ot=0;st.length>ot;)g(st[ot++]);o(o.S+o.F*!H,"Symbol",{for:function(t){return n(A,t+="")?A[t]:A[t]=j(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in A)if(A[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),o(o.S+o.F*!H,"Object",{create:X,defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:it});var rt=c((function(){T.f(1)}));o(o.S+o.F*rt,"Object",{getOwnPropertySymbols:function(t){return T.f(k(t))}}),$&&o(o.S+o.F*(!H||c((function(){var t=j();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))}))),"JSON",{stringify:function(t){var e,i,a=[t],n=1;while(arguments.length>n)a.push(arguments[n++]);if(i=e=a[1],(v(e)||void 0!==t)&&!K(t))return y(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!K(e))return e}),a[1]=e,F.apply($,a)}}),j[U][M]||i("32e9")(j[U],M,j[U].valueOf),d(j,"Symbol"),d(Math,"Math",!0),d(a.JSON,"JSON",!0)},"8d35":function(t,e,i){},ac4d:function(t,e,i){i("3a72")("asyncIterator")},b1b3:function(t,e,i){},cdc8:function(t,e,i){"use strict";i("8e6e"),i("ac6a"),i("456d");var a=i("ade3"),n=i("71f6"),s=i("f121");function o(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 r(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){Object(a["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"/address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};l=Object(n["a"])(l,s["f"]),c=Object(n["a"])(c,s["f"]),e["a"]=r(r({},l),c);s["c"].api,s["b"],s["c"].api,s["f"]},d4c0:function(t,e,i){var a=i("0d58"),n=i("2621"),s=i("52a7");t.exports=function(t){var e=a(t),i=n.f;if(i){var o,r=i(t),l=s.f,c=0;while(r.length>c)l.call(t,o=r[c++])&&e.push(o)}return e}},d730:function(t,e,i){},e580:function(t,e,i){"use strict";i("8d35")},f011:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",[i("div",[i("div",[i("div",{staticClass:"tab-top"},[i("div",{staticClass:"fl"},[i("el-input",{staticClass:"mr10 w360",attrs:{placeholder:t.placeholderText,clearable:""},on:{clear:t.getSearchList2},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.key,callback:function(e){t.$set(t.query,"key",e)},expression:"query.key"}},[i("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend",placeholder:"礼品名称"},on:{change:t.handleChangeType},slot:"prepend",model:{value:t.query.type,callback:function(e){t.$set(t.query,"type",e)},expression:"query.type"}},[i("el-option",{attrs:{label:"礼品名称",value:1}}),i("el-option",{attrs:{label:"礼品编码",value:2}}),i("el-option",{attrs:{label:"条形码",value:3}}),i("el-option",{attrs:{label:"福利id",value:0}})],1)],1),i("el-select",{staticClass:"w-160 mr10",attrs:{placeholder:"礼品状态",clearable:""},on:{change:t.getSearchList},model:{value:t.query.hiddenFlag,callback:function(e){t.$set(t.query,"hiddenFlag",e)},expression:"query.hiddenFlag"}},[i("el-option",{attrs:{label:"显示",value:0}}),i("el-option",{attrs:{label:"隐藏",value:1}})],1),t.unfoldStatus?t._e():i("el-button",{attrs:{type:"text"},on:{click:t.handleUnfold}},[t._v("展开"),i("i",{staticClass:"el-icon-arrow-down"})]),t.unfoldStatus?i("el-button",{attrs:{type:"text"},on:{click:t.handleUnfold}},[t._v("收起"),i("i",{staticClass:"el-icon-arrow-up"})]):t._e()],1),i("div",{staticClass:"fr"},[i("el-select",{staticClass:"w-160 mr10 more-select",attrs:{placeholder:"批量操作",disabled:t.selectList.length<1},on:{change:t.handleBatch},model:{value:t.batchOperate,callback:function(e){t.batchOperate=e},expression:"batchOperate"}},[i("el-option",{attrs:{label:"批量隐藏",value:0}}),i("el-option",{attrs:{label:"批量取消隐藏",value:1}}),i("el-option",{attrs:{label:"批量禁用",value:2}}),i("el-option",{attrs:{label:"批量启用",value:3}})],1),i("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("新建礼品")])],1)]),t.unfoldStatus?i("div",{staticStyle:{margin:"20px 20px 0px 20px"}},[i("div",{staticStyle:{height:"32px"}},[i("div",{staticClass:"spanclass"},[t._v("福利成本:")]),i("dm-input-amount",{staticClass:"mr10 ml10",attrs:{precision:"2",min:0,max:9999999.99},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.startCostPrice,callback:function(e){t.$set(t.query,"startCostPrice","string"===typeof e?e.trim():e)},expression:"query.startCostPrice"}}),i("div",{staticClass:"spanclass"},[t._v("-")]),i("dm-input-amount",{staticClass:"mr40 ml10",attrs:{precision:"2",min:0,max:9999999.99},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.endCostPrice,callback:function(e){t.$set(t.query,"endCostPrice","string"===typeof e?e.trim():e)},expression:"query.endCostPrice"}}),i("div",{staticClass:"spanclass",staticStyle:{"margin-right":"28px"}},[t._v("更新时间:")]),i("el-select",{staticClass:"w-160 mr10 more-select",attrs:{placeholder:"由近及远",clearable:""},on:{change:t.handleSort},model:{value:t.sortData,callback:function(e){t.sortData=e},expression:"sortData"}},[i("el-option",{attrs:{label:"由近及远",value:0}}),i("el-option",{attrs:{label:"由远及近",value:1}})],1)],1),i("div",{staticClass:"mt20",staticStyle:{height:"32px"}},[i("div",{staticClass:"spanclass"},[t._v("可占库存:")]),i("dm-input-number",{staticClass:"mr10 ml10 w140",attrs:{precision:"0",min:0,max:9999999,placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.startStock,callback:function(e){t.$set(t.query,"startStock",e)},expression:"query.startStock"}}),i("div",{staticClass:"spanclass"},[t._v("-")]),i("dm-input-number",{staticClass:"ml10 w140 mr40",attrs:{precision:"0",min:0,max:9999999,placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.endStock,callback:function(e){t.$set(t.query,"endStock",e)},expression:"query.endStock"}}),i("div",{staticClass:"spanclass"},[t._v("更新时间范围:")]),i("el-date-picker",{staticClass:"w350",attrs:{type:"datetimerange",align:"right","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:t.changeTime},model:{value:t.timeValue,callback:function(e){t.timeValue=e},expression:"timeValue"}})],1)]):t._e()]),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table-content"},[i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData},on:{"sort-change":t.sortChange,"selection-change":t.handleSelectAll}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{label:"礼品信息",width:"300px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"img-text"},[i("dm-preview-img",{staticStyle:{display:"inline-block",border:"1px solid #dcdfe6",padding:"4px","border-radius":"2px"},attrs:{img:e.row.giftImgUrl,width:"50",height:"50"}}),i("div",{staticClass:"text"},[i("p",{staticClass:"goods-descript"},[i("el-tooltip",{staticClass:"item",attrs:{"open-delay":"200",effect:"dark",content:e.row.giftName,placement:"top"}},[i("span",{staticClass:"inline-block hidden-data"},[t._v(t._s(e.row.giftName||"--"))])]),i("el-popover",{attrs:{placement:"top",trigger:"hover"},on:{show:function(i){return t.getName(e.row.giftName)}}},[i("div",[i("dm-input",{staticStyle:{width:"260px"},attrs:{type:"text","byte-type":1,maxlength:30},model:{value:t.changeName,callback:function(e){t.changeName=e},expression:"changeName"}})],1),i("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[i("el-button",{attrs:{type:"dafault",size:"small"}},[t._v("取消")]),i("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:function(i){return t.handleName(e.row)}}},[t._v("确认")])],1),i("i",{staticClass:"el-icon-edit-outline inline-block ml5",staticStyle:{"margin-top":"-5px"},attrs:{slot:"reference"},slot:"reference"})])],1),i("p",{staticClass:"goods-code"},[i("el-tooltip",{attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("p",{staticClass:"goods-code"},[t._v("福利id:"+t._s(e.row.giftId))]),i("div",[t._v("更新时间:"),i("p",{staticClass:"inline-block",domProps:{innerHTML:t._s(t.formatDateTimeByType(e.row.updateTime))}})])]),i("i",{staticClass:"el-icon-question"})]),t._v("\n 礼品编码:"+t._s(e.row.giftNo||"--")+"\n ")],1)])],1)]}}])}),i("el-table-column",{attrs:{prop:"costPrice",label:"成本",sortable:"custom","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("p",{staticClass:"stock-box"},[e.row.minCostPrice==e.row.maxCostPrice?i("span",[t._v(t._s(e.row.minCostPrice.toFixed(2)))]):i("span",[t._v(t._s(e.row.minCostPrice.toFixed(2))+"-"+t._s(e.row.maxCostPrice.toFixed(2)))]),i("i",{staticClass:"el-icon-edit-outline",on:{click:function(i){return t.updateCost(e.row)}}})])]}}])}),i("el-table-column",{attrs:{sortable:"custom",prop:"stock",label:"库存","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[i("p",{staticClass:"stock-box"},[i("el-tooltip",{attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("p",{staticClass:"goods-code"},[t._v("已占用:"+t._s(e.row.occupyStock))]),i("p",{staticClass:"goods-code"},[t._v("总库存:"+t._s(e.row.totalStock))])]),i("i",{staticClass:"el-icon-question inline-block mr5",staticStyle:{color:"#909399"}})]),i("span",[t._v("可占库存:"+t._s(e.row.remainedStock))]),i("i",{staticClass:"el-icon-edit-outline inline-block ml5",on:{click:function(i){return t.updateStock(e.row)}}})],1)])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[i("span",{staticClass:"undeline-dash"},[t._v("可占用库存")]),i("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 可占库存:福利可以被直接使用和被应用占用的数量;"),i("br"),t._v("\n 已占用:福利已经被应用通过”固定库存“方式占用的数量;"),i("br"),t._v("\n 总库存:福利实际未产生履约单,还可以被出库的数量;"),i("br"),t._v("\n 总出库量:福利从创建到现在已生成履约单的数量;\n ")])])],1)],2),i("el-table-column",{attrs:{prop:"allExchangeNumber",label:"总出库量","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.totalOutStock||"--"))])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[i("span",{staticClass:"undeline-dash"},[t._v("总出库量")]),i("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 可占库存:福利可以被直接使用和被应用占用的数量;"),i("br"),t._v("\n 已占用:福利已经被应用通过”固定库存“方式占用的数量;"),i("br"),t._v("\n 总库存:福利实际未产生履约单,还可以被出库的数量;"),i("br"),t._v("\n 总出库量:福利从创建到现在已生成履约单的数量;\n ")])])],1)],2),i("el-table-column",{attrs:{prop:"hiddenFlag",label:"是否隐藏","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-switch",{attrs:{disabled:0===e.row.statusFlag&&1===e.row.hiddenFlag,"active-value":1,"inactive-value":0},on:{change:function(i){return t.changeShow(e.row)}},model:{value:e.row.hiddenFlag,callback:function(i){t.$set(e.row,"hiddenFlag",i)},expression:"scope.row.hiddenFlag"}})]}}])},[i("template",{slot:"header"},[i("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[i("span",{staticClass:"undeline-dash"},[t._v("是否隐藏")]),i("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 隐藏后福利组件中不展示,其他应用不可增加占用数量,已占用的库存不影响使用\n ")])])],1)],2),i("el-table-column",{attrs:{label:"操作","min-width":"210px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticStyle:{"font-size":"0px"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.edit(e.row,2)}}},[t._v("编辑")]),i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.$router.push("/gift-manage/virtual-stock-list?id="+e.row.giftId)}}},[t._v("库存记录")]),i("el-dropdown",{staticStyle:{"margin-left":"20px"},attrs:{placement:"bottom-start"},on:{command:function(i){return t.handleCommand(i,e.row)}}},[i("span",{staticClass:"el-dropdown-link",staticStyle:{color:"#2f54ed",cursor:"pointer"}},[i("i",{staticClass:"el-icon-more"})]),i("el-dropdown-menu",{staticStyle:{width:"110px"},attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"1"}},[t._v("查看内容")]),0===e.row.statusFlag?i("el-dropdown-item",{attrs:{command:"2"}},[t._v("启用")]):t._e(),1===e.row.statusFlag?i("el-dropdown-item",{attrs:{command:"3"}},[t._v("禁用")]):t._e()],1)],1)],1)]}}])})],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination-conteiner",staticStyle:{background:"#fff"}},[i("div",{staticClass:"pagination"},[0!=t.total?i("dm-pagination",{attrs:{background:"","current-page":t.query.currentPage,"page-sizes":[20,40,60,80],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:currentPage":function(e){return t.$set(t.query,"currentPage",e)},"update:current-page":function(e){return t.$set(t.query,"currentPage",e)}}}):t._e()],1)])],1)])]),i("el-dialog",{attrs:{title:t.forbiddenTitle,visible:t.forbiddenDialog,width:"30%"},on:{"update:visible":function(e){t.forbiddenDialog=e}}},[i("div",{staticStyle:{display:"flex"}},[i("i",{staticClass:"el-icon-warning inline-block",staticStyle:{"font-size":"24px",color:"#e6a23c"}}),i("span",{staticClass:"inline-block ml10",staticStyle:{"font-size":"16px","line-height":"20px"}},[t._v("禁用礼品将在福利组件不展示,并且该礼品参加的活动将全部失效,确认禁用?")])]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.forbiddenDialog=!1}}},[t._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.forbiddenDialog=!1}}},[t._v("禁用")])],1)]),t.updateCostDialog?i("update-virtual-cost",{attrs:{"update-cost-data":t.updateCostData},on:{closeUpdateCost:t.closeUpdateCost,getTableList:t.getTableList}}):t._e(),t.StockDialog?i("update-virtual-stock",{attrs:{"stock-data":t.stockData},on:{getTableList:t.getTableList,closeUpdateStock:t.closeUpdateStock}}):t._e(),t.dialogVisible?i("check-upload-detail",{attrs:{"dialog-id":t.dialogId,"is-edit":!1},on:{closeUploadDetail:t.closeUploadDetail}}):t._e()],1)},n=[],s=(i("ac4d"),i("8a81"),i("5df3"),i("1c4c"),i("7f7f"),i("6b54"),i("8e6e"),i("ac6a"),i("456d"),i("ade3")),o=i("fab6"),r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"调整成本",visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("el-form",{staticClass:"mt20"},[i("el-form-item",{attrs:{label:"成本费用",required:""}},[[i("dm-input-amount",{staticStyle:{width:"200px"},attrs:{precision:"2",min:0,max:999999.99},model:{value:t.costPrice,callback:function(e){t.costPrice=e},expression:"costPrice"}})]],2),i("el-form-item",{attrs:{label:"调整备注",required:""}},[[i("el-input",{staticStyle:{width:"260px"},attrs:{type:"textarea",rows:3,placeholder:"请填入调整备注",maxlength:240,"show-word-limit":""},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}})]],2)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){return t.cancelSubmit()}}},[t._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitProNanme()}}},[t._v("确认")])],1)])},l=[],c=i("cdc8"),u=c["a"].virtualCostUpdate,d={props:{updateCostData:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!1,loading:!1,textarea:"",giftId:"",costPrice:"",giftSkuId:""}},mounted:function(){this.dialogVisible=!0,this.giftId=this.updateCostData.id,this.costPrice=this.updateCostData.costPrice},methods:{submitProNanme:function(){var t=this;if(!this.loading)if(this.textarea){this.loading=!0;var e={giftId:this.updateCostData.id,costPrice:this.costPrice,remark:this.textarea};u(e).then((function(e){"0000"===e.code?(t.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateCost",!1)}),10),t.$message.success("修改成功")):t.$message.error(e.message)})).finally((function(){return t.loading=!1}))}else this.$message.error("请完善备注")},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateCost",!1)}),10)}}},p=d,f=(i("3df3"),i("2877")),h=Object(f["a"])(p,r,l,!1,null,"10957aea",null),g=h.exports,m=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"调整可占用库存",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("el-form",{attrs:{"label-width":"130px"}},[i("el-form-item",{attrs:{label:"导入券码文件",required:""}},[i("div",{staticClass:"pickup-upload"},[i("div",[i("span",{staticClass:"file-style inline-block",staticStyle:{position:"relative"}},[i("input",{ref:"file",staticStyle:{position:"absolute",top:"3px",opacity:"0",width:"70px"},attrs:{type:"file",name:"file",accept:".xlsx,.xls"},on:{change:t.change}}),i("el-button",{staticClass:"upload-trigger",on:{click:t.upload}},[i("i",{staticClass:"iconfont-components4 icon-cp-shangc upload-icon"}),t._v(" 上传")])],1),i("span",{staticClass:"upload-tip inline-block"},[i("el-button",{staticStyle:{"margin-right":"30px"},attrs:{type:"text"},on:{click:t.downloadFile}},[t._v("下载文件模板")]),i("el-popover",{attrs:{trigger:"click",placement:"right","popper-class":"upload-popper"}},[i("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看导入规则")]),i("div",{staticClass:"upload-tip-text"},[i("p",[t._v("1.填充空缺内容,导出所有项均为必填项;")]),i("p",[t._v("2.请勿导入重复的内容,导入的内容在原来基础上增加库存;")]),i("p",[t._v("3.上传完整仅支持.xlsx .xls文件的导入,填充数据不超过“10万”条;")])])],1)],1),i("div",[t._v(t._s(t.file.name))])]),t.uploadFile.name?i("div",{staticClass:"pickup-list"},[i("p",{staticClass:"pickup-list-name"},[i("i",{staticClass:"iconfont-welfare4 icon-wenjian1 file-icon"}),t._v("\n "+t._s(t.uploadFile.name)+"\n ")])]):t._e()])]),i("el-form-item",{attrs:{label:"调整备注",required:""}},[i("el-input",{staticStyle:{width:"260px"},attrs:{type:"textarea",rows:3,placeholder:"请填入调整备注",maxlength:240,"show-word-limit":""},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}})],1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){return t.cancelSubmit()}}},[t._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitProNanme()}}},[t._v("确认")])],1)])},y=[],b=c["a"].virtualGiftUpload,v={props:{stockData:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!1,loading:!1,textarea:"",uploadAction:"https://four.gicdev.com/api-marketing/upload/upload-image?requestProject=welafre",uploadFile:{name:""},file:{},files:[]}},mounted:function(){this.dialogVisible=!0},methods:{change:function(t){this.file=t.target.files[0]},upload:function(){this.change()},getData:function(){},downloadFile:function(){var t="/welfare";window.open("".concat(t,"/static/虚拟礼品卡券模板.xlsx"),"_blank")},submitProNanme:function(){var t=this;if(this.file.name)if(this.textarea){var e={giftId:this.stockData.id,file:this.file,remark:this.textarea};this.loading=!0,b(e).then((function(e){"0000"===e.code?(t.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateStock")}),10),t.$message.success(e.massage)):t.$message.error(e.message)}))}else this.$message.error("请完善备注");else this.$message.error("请选择文件")},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateStock")}),10)},getSpanArr:function(t){for(var e=0;e<t.length;e++)0===e?(this.spanArr.push(1),this.pos=0):t[e].color===t[e-1].color?(this.spanArr[this.pos]+=1,this.spanArr.push(0)):(this.spanArr.push(1),this.pos=e)},objectSpanMethod:function(t){t.row,t.column;var e=t.rowIndex,i=t.columnIndex;if(0===i){var a=this.spanArr[e],n=a>0?1:0;return{rowspan:a,colspan:n}}},handleStock:function(){var t=this;this.updateList=[],this.tableData.forEach((function(e){e.stock=t.banthStock,e.stockType=t.stockType,t.updateList.push({giftSkuId:e.giftSkuId,stock:e.stock,stockType:e.stockType})}))},changeSingleStock:function(t,e,i){if(e||this.$message.error("请完善库存"),this.updateList.length>0){var a,n=this.updateList.some((function(e,i){if(e.giftSkuId==t)return a=i,!0}));n?this.updateList[a].stock=e:this.updateList.push({giftSkuId:t,stock:e,stockType:i})}else this.updateList.push({giftSkuId:t,stock:e,stockType:i})}}},k=v,w=(i("e580"),Object(f["a"])(k,m,y,!1,null,"4f27e20e",null)),S=w.exports,C=i("3b56"),x=i("ed08");function _(t,e){var i;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=O(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 s,o=!0,r=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){r=!0,s=t},f:function(){try{o||null==i.return||i.return()}finally{if(r)throw s}}}}function O(t,e){if(t){if("string"===typeof t)return T(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)?T(t,e):void 0}}function T(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 P(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 L(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?P(Object(i),!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):P(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var q=c["a"].giftPage,D=c["a"].batchUpdate,I=c["a"].updateName,j={components:{UpdateVirtualCost:g,updateVirtualStock:S,checkUploadDetail:C["a"]},data:function(){return{bread:[{breadName:"福利中心"},{breadName:"礼品管理"},{breadName:"虚拟礼品"}],mixins:[o["c"],o["a"]],unfoldStatus:!1,sortData:0,query:{hiddenFlag:"",startTime:"",endTime:"",startCostPrice:"",endCostPrice:"",startStock:void 0,endStock:void 0,sortColumn:"",sortOrder:"",currentPage:1,pageSize:20,type:1,key:""},batchOperate:"",total:0,sortOrder:"",sortColumn:"",tableData:[],selectList:[],updateCostData:{maxCostPrice:"",id:"",textarea:""},updateCostDialog:!1,updateNameForm:{name:"",id:"",type:""},updateNameDialog:!1,stockData:{id:"",remainedStock:"",textarea:""},StockDialog:!1,integralDialog:!1,loading:!1,search:"",searchType:1,placeholderText:"请输入礼品名称",isShow:!1,timeValue:"",dialogVisible:!1,dialogId:"",forbiddenDialog:!1,forbiddenTitle:"禁用",changeName:""}},created:function(){this.$emit("updateBread",this.bread),this.$emit("showAside",!0),this.$route.query.giftId&&(this.query.key=this.$route.query.giftId,this.query.type=0),this.init()},methods:{formatDateTimeByType:x["e"],listTime:x["g"],init:function(){this.getTableList()},getSearchList:function(){this.query.currentPage=1,this.getTableList()},getSearchList2:function(){this.query.type=1,this.query.currentPage=1,this.getTableList()},handleChangeType:function(){1===this.query.type?this.placeholderText="请输入礼品名称":2===this.query.type?this.placeholderText="请输入礼品编码":3===this.query.type?this.placeholderText="请输入条形码":0===this.query.type&&(this.placeholderText="请输入福利id")},getTableList:function(){var t=this;this.loading=!0;var e=L(L({},this.query),{},{giftType:2});q(e).then((function(e){t.tableData=e.result.result})).finally((function(){return t.loading=!1}))},handleSizeChange:function(t){this.query.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.query.currentPage=t,this.query.pageSize=1,this.getTableList()},closeUploadDetail:function(){this.dialogVisible=!1},handleCommand:function(t,e){var i=this;if(1==t)this.dialogVisible=!0,this.dialogId=e.giftId;else if(3==t){var a={giftIdList:[e.giftId],type:2};this.$confirm("<div>已添加被禁用礼品的活动将会失效,确认禁用?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"禁用"}).then((function(){i.batchRequest(a)})).catch((function(){}))}else if(2==t){var n={giftIdList:[e.giftId],type:3};this.$confirm("<div>确认启用?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"启用"}).then((function(){i.batchRequest(n)})).catch((function(){}))}},handleUnfold:function(){this.unfoldStatus=!this.unfoldStatus},handleSort:function(t){this.query.sortOrder=0==t?"desc":"asc",this.query.sortColumn="update_time",this.getTableList()},sortChange:function(t){"ascending"==t.order?this.query.sortOrder="asc":"descending"==t.order&&(this.query.sortOrder="desc"),"updateTime"===t.prop?this.query.sortColumn="update_time":"costPrice"===t.prop&&"ascending"==t.order||"costPrice"===t.prop&&"descending"==t.order?this.query.sortColumn="min_cost_price":"stock"===t.prop&&(this.query.sortColumn="remained_stock"),this.getTableList()},changeTime:function(){this.timeValue?(this.query.startTime=this.formatDateTimeByType(this.timeValue[0],"yyyy-MM-dd-HH-mm-ss"),this.query.endTime=this.formatDateTimeByType(this.timeValue[1],"yyyy-MM-dd-HH-mm-ss")):(this.query.startTime="",this.query.endTime=""),this.query.currentPage=1,this.query.pageSize=20,this.getTableList()},handleSelectAll:function(t){this.selectList=t},handleBatch:function(t){var e,i=this,a=[],n=_(this.selectList);try{for(n.s();!(e=n.n()).done;){var s=e.value;a.push(s.giftId)}}catch(r){n.e(r)}finally{n.f()}var o={giftIdList:a,type:t};2==t?this.$confirm("<div>已添加被禁用礼品的活动将会失效,确认禁用?</div>","批量禁用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"禁用"}).then((function(){i.batchRequest(o)})):0==t?this.$confirm("<div>是否批量隐藏?</div>","批量隐藏",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"隐藏"}).then((function(){i.batchRequest(o)})):1==t?this.$confirm("<div>是否批量取消隐藏?</div>","批量取消隐藏",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){i.batchRequest(o)})):3==t&&this.$confirm("<div>是否批量启用?</div>","批量启用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"启用"}).then((function(){i.batchRequest(o)}))},batchRequest:function(t){var e=this;D(t).then((function(t){"0000"===t.code?(e.$message.success("操作成功"),e.getTableList()):e.$message.error(t.message)}))},changeShow:function(t){var e=this;1==t.statusFlag&&1==t.hiddenFlag?this.$confirm("<div>确认隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"隐藏"}).then((function(){var i={giftIdList:[t.giftId],type:0};e.batchRequest(i)})).catch((function(){t.hiddenFlag=0})):1==t.statusFlag&&0==t.hiddenFlag?this.$confirm("<div>确认取消隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){var i={giftIdList:[t.giftId],type:1};e.batchRequest(i)})).catch((function(){t.hiddenFlag=1})):0==t.statusFlag&&1==t.hiddenFlag&&this.$confirm("<div>确认隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"隐藏"}).then((function(){var i={giftIdList:[t.giftId],type:0};e.batchRequest(i)})).catch((function(){t.hiddenFlag=0}))},changeStatus:function(t){var e=this;if(0==t.statusFlag){var i={giftIdList:[t.giftId],type:3};this.batchRequest(i)}else this.$confirm("<div>禁用礼品将在福利组件不展示,并且该礼品参加的活动将全部失效,确认禁用?</div>","禁用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"禁用"}).then((function(){var i={giftIdList:[t.giftId],type:2};e.batchRequest(i)}))},handleName:function(t){var e=this,i={giftId:t.giftId,name:this.changeName};I(i).then((function(t){"0000"===t.code?(e.$message.success("修改成功"),e.getTableList()):e.$message.error(t.message)}))},getName:function(t){this.changeName=t},updateStock:function(t){this.stockData.id=t.giftId,this.stockData.remainedStock=t.remainedStock,this.stockData.textarea=t.textarea,this.StockDialog=!0},closeUpdateStock:function(){this.stockData.remainedStock="",this.stockData.textarea="",this.StockDialog=!1,this.getTableList()},updateCost:function(t){this.updateCostData.id=t.giftId,this.updateCostData.costPrice=t.maxCostPrice.toFixed(2),this.updateCostDialog=!0},closeUpdateCost:function(){this.updateCostDialog=!1,this.getTableList()},add:function(){this.$router.push({path:"/gift-manage/virtual-gift-detail",query:{giftId:""}})},edit:function(t){this.$router.push({path:"/gift-manage/virtual-gift-detail",query:{giftId:t.giftId}})}}},$=j,F=(i("84e7"),i("f36a"),Object(f["a"])($,a,n,!1,null,"517b8a46",null));e["default"]=F.exports},f36a:function(t,e,i){"use strict";i("b1b3")},fab6:function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return o}));var a=i("ed08"),n={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.listParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.listParams.currentPage=t,this.getTableList()}}},s={methods:{formatterTimeFunc:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[n]?(this.listParams[t]=Object(a["e"])(this[n][0],i),this.listParams[e]=Object(a["e"])(this[n][1],i)):this.listParams[t]=this.listParams[e]=""}}},o={methods:{mainHeight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-t}}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e34bb126"],{"1c4c":function(t,e,i){"use strict";var a=i("9b43"),n=i("5ca1"),s=i("4bf8"),o=i("1fa8"),r=i("33a4"),l=i("9def"),c=i("f1ae"),u=i("27ee");n(n.S+n.F*!i("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,i,n,d,p=s(t),f="function"==typeof this?this:Array,h=arguments.length,g=h>1?arguments[1]:void 0,m=void 0!==g,y=0,b=u(p);if(m&&(g=a(g,h>2?arguments[2]:void 0,2)),void 0==b||f==Array&&r(b))for(e=l(p.length),i=new f(e);e>y;y++)c(i,y,m?g(p[y],y):p[y]);else for(d=b.call(p),i=new f;!(n=d.next()).done;y++)c(i,y,m?o(d,g,[n.value,y],!0):n.value);return i.length=y,i}})},"37c8":function(t,e,i){e.f=i("2b4c")},"3a72":function(t,e,i){var a=i("7726"),n=i("8378"),s=i("2d00"),o=i("37c8"),r=i("86cc").f;t.exports=function(t){var e=n.Symbol||(n.Symbol=s?{}:a.Symbol||{});"_"==t.charAt(0)||t in e||r(e,t,{value:o.f(t)})}},"3b56":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"查看内容",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.isEdit?t._e():i("div",{staticStyle:{background:"#F7F8FA","margin-bottom":"20px"}},[i("div",{staticStyle:{"font-size":"12px","line-height":"22px"},domProps:{innerHTML:t._s(t.template)}})]),i("div",[i("el-input",{staticClass:"mr10 w220",attrs:{placeholder:"请输入关键词搜索","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.getTableList},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getTableList(e)}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),i("el-table",{staticClass:"mt20",attrs:{data:t.tableData}},[t._l(t.headList,(function(t,e){return i("el-table-column",{key:e,attrs:{label:t,prop:0===e?"paramOne":1===e?"paramTwo":"paramThree"}})})),i("el-table-column",{attrs:{label:"当前状态",prop:"statusFlag"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0===e.row.statusFlag?"未兑换":"已兑换"))]}}])}),i("el-table-column",{attrs:{label:"用户/会员",prop:"name"}})],2),i("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination-conteiner",staticStyle:{background:"#fff"}},[i("div",{staticClass:"pagination",staticStyle:{"text-align":"right"}},[0!=t.total?i("dm-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.pageSize,layout:"prev, pager, next",total:t.total},on:{"current-change":t.getTableList,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}}):t._e()],1)])],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])},n=[],s=(i("a481"),i("386d"),i("cdc8")),o=s["a"].virtualCardList,r=s["a"].giftGet,l={props:{dialogId:{type:String,default:function(){return""}},isEdit:{type:Boolean,default:function(){return!1}}},data:function(){return{dialogVisible:!1,loading:!1,currentPage:1,pageSize:10,total:"",tableData:[],template:"",search:"",headList:[]}},mounted:function(){this.dialogVisible=!0,this.giftId=this.dialogId,this.getTableList(),this.isEdit||this.getMess()},methods:{getTableList:function(){var t=this;this.loading=!0;var e={id:this.giftId,key:this.search,pageSize:this.pageSize,currentPage:this.currentPage};o(e).then((function(e){t.tableData=e.result.result||[];var i=[];i=t.tableData[0].headList,t.headList=i.map((function(t,e){return-1!=t.indexOf('<span style="text-decoration: underline">')&&(t=t.replace('<span style="text-decoration: underline">',"")),-1!=t.indexOf("</span>")&&(t=t.replace("</span>","")),t})),t.total=e.result.totalCount})).finally((function(){return t.loading=!1}))},getMess:function(){var t=this,e={id:this.giftId};r(e).then((function(e){"0000"===e.code?t.template=e.result.template||"":t.$message.error(e.message)}))},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUploadDetail")}),10)}}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,"3d717520",null);e["a"]=d.exports},"3df3":function(t,e,i){"use strict";i("5f30")},"5f30":function(t,e,i){},"7bbc":function(t,e,i){var a=i("6821"),n=i("9093").f,s={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r=function(t){try{return n(t)}catch(e){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==s.call(t)?r(t):n(a(t))}},"84e7":function(t,e,i){"use strict";i("d730")},"8a81":function(t,e,i){"use strict";var a=i("7726"),n=i("69a8"),s=i("9e1e"),o=i("5ca1"),r=i("2aba"),l=i("67ab").KEY,c=i("79e5"),u=i("5537"),d=i("7f20"),p=i("ca5a"),f=i("2b4c"),h=i("37c8"),g=i("3a72"),m=i("d4c0"),y=i("1169"),b=i("cb7c"),v=i("d3f4"),k=i("4bf8"),w=i("6821"),S=i("6a99"),C=i("4630"),x=i("2aeb"),_=i("7bbc"),O=i("11e9"),T=i("2621"),P=i("86cc"),L=i("0d58"),q=O.f,D=P.f,I=_.f,j=a.Symbol,$=a.JSON,F=$&&$.stringify,U="prototype",N=f("_hidden"),M=f("toPrimitive"),V={}.propertyIsEnumerable,A=u("symbol-registry"),E=u("symbols"),z=u("op-symbols"),B=Object[U],H="function"==typeof j&&!!T.f,R=a.QObject,G=!R||!R[U]||!R[U].findChild,J=s&&c((function(){return 7!=x(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(t,e,i){var a=q(B,e);a&&delete B[e],D(t,e,i),a&&t!==B&&D(B,e,a)}:D,W=function(t){var e=E[t]=x(j[U]);return e._k=t,e},K=H&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Q=function(t,e,i){return t===B&&Q(z,e,i),b(t),e=S(e,!0),b(i),n(E,e)?(i.enumerable?(n(t,N)&&t[N][e]&&(t[N][e]=!1),i=x(i,{enumerable:C(0,!1)})):(n(t,N)||D(t,N,C(1,{})),t[N][e]=!0),J(t,e,i)):D(t,e,i)},Y=function(t,e){b(t);var i,a=m(e=w(e)),n=0,s=a.length;while(s>n)Q(t,i=a[n++],e[i]);return t},X=function(t,e){return void 0===e?x(t):Y(x(t),e)},Z=function(t){var e=V.call(this,t=S(t,!0));return!(this===B&&n(E,t)&&!n(z,t))&&(!(e||!n(this,t)||!n(E,t)||n(this,N)&&this[N][t])||e)},tt=function(t,e){if(t=w(t),e=S(e,!0),t!==B||!n(E,e)||n(z,e)){var i=q(t,e);return!i||!n(E,e)||n(t,N)&&t[N][e]||(i.enumerable=!0),i}},et=function(t){var e,i=I(w(t)),a=[],s=0;while(i.length>s)n(E,e=i[s++])||e==N||e==l||a.push(e);return a},it=function(t){var e,i=t===B,a=I(i?z:w(t)),s=[],o=0;while(a.length>o)!n(E,e=a[o++])||i&&!n(B,e)||s.push(E[e]);return s};H||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===B&&e.call(z,i),n(this,N)&&n(this[N],t)&&(this[N][t]=!1),J(this,t,C(1,i))};return s&&G&&J(B,t,{configurable:!0,set:e}),W(t)},r(j[U],"toString",(function(){return this._k})),O.f=tt,P.f=Q,i("9093").f=_.f=et,i("52a7").f=Z,T.f=it,s&&!i("2d00")&&r(B,"propertyIsEnumerable",Z,!0),h.f=function(t){return W(f(t))}),o(o.G+o.W+o.F*!H,{Symbol:j});for(var at="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;at.length>nt;)f(at[nt++]);for(var st=L(f.store),ot=0;st.length>ot;)g(st[ot++]);o(o.S+o.F*!H,"Symbol",{for:function(t){return n(A,t+="")?A[t]:A[t]=j(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in A)if(A[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),o(o.S+o.F*!H,"Object",{create:X,defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:it});var rt=c((function(){T.f(1)}));o(o.S+o.F*rt,"Object",{getOwnPropertySymbols:function(t){return T.f(k(t))}}),$&&o(o.S+o.F*(!H||c((function(){var t=j();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))}))),"JSON",{stringify:function(t){var e,i,a=[t],n=1;while(arguments.length>n)a.push(arguments[n++]);if(i=e=a[1],(v(e)||void 0!==t)&&!K(t))return y(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!K(e))return e}),a[1]=e,F.apply($,a)}}),j[U][M]||i("32e9")(j[U],M,j[U].valueOf),d(j,"Symbol"),d(Math,"Math",!0),d(a.JSON,"JSON",!0)},"8d35":function(t,e,i){},ac4d:function(t,e,i){i("3a72")("asyncIterator")},b1b3:function(t,e,i){},cdc8:function(t,e,i){"use strict";i("8e6e"),i("ac6a"),i("456d");var a=i("ade3"),n=i("71f6"),s=i("f121");function o(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 r(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){Object(a["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l={getGiftId:"/gift/get-gift-id",giftGet:"/gift/get",giftSave:{url:"/gift/save",method:"post"},giftUpdate:{url:"/gift/update",method:"post"},giftPage:{url:"/gift/page",method:"post"},giftStockRecord:"/gift/stock-record",giftStockLog:"/gift/stock-record-log",giftActivity:"/gift/activity-statistics",giftTemplateDownload:{url:"/gift/vir-gift-template-download",useFormData:!0,method:"post"},giftTemplateUpload:"/gift/template-upload",giftBatchUpdate:{url:"/gift/batch-update",method:"post"},giftStandardNew:"/gift/spec-save",giftStandardList:"/gift/spec-list",giftStandardValueNew:"/gift/spec-value-save",giftStandardValueList:"/gift/spec-value-list",virtualCardList:"/gift/vir-card-page",batchUpdate:{url:"/gift/batch-update",method:"post"},realCostUpdate:{url:"/gift/real-cost-update",method:"post"},realStockUpdate:{url:"/gift/real-stock-update",method:"post"},getPickupList:"/pickup/get-pickup-list",getGiftShopList:"/gift/get-gift-shop-list",updateName:"/gift/update-name",virtualGiftUpload:{url:"/gift/vir-gift-upload",method:"post",headers:{"Content-Type":"multipart/form-data;"},file:!0},operatorSave:{url:"/auth/operator-save",method:"post"},getOperatorList:"/auth/operator-list",virtualCostUpdate:"/gift/vir-cost-update"},c={updateConfig:{url:"/config/update-config",method:"post",headers:{"Content-Type":"application/json"}},getConfigDetail:"/config/get-config-detail",getAddressList:"/address/get-address-list",getAddressDetails:"address/get-address-details",delAddress:"/address/del-address",insertOrUpdateAddress:{url:"/address/insert-or-update-address",method:"post",headers:{"Content-Type":"application/json"}},pickupList:"/pickup/get-pickup-list",getPickupDetails:"/pickup/get-pickup-details",delPickup:{url:"/pickup/del-pickup",useFormData:!0,method:"post"},insertPickupStore:{url:"/pickup/insert-pickup-store",method:"post",headers:{"Content-Type":"application/json"}},updatePickupStore:{url:"/pickup/update-pickup-setting",method:"post",headers:{"Content-Type":"application/json"}},exportPickup:"/export-pickup-store-excel"};l=Object(n["a"])(l,s["f"]),c=Object(n["a"])(c,s["f"]),e["a"]=r(r({},l),c);s["c"].api,s["b"],s["c"].api,s["f"]},d4c0:function(t,e,i){var a=i("0d58"),n=i("2621"),s=i("52a7");t.exports=function(t){var e=a(t),i=n.f;if(i){var o,r=i(t),l=s.f,c=0;while(r.length>c)l.call(t,o=r[c++])&&e.push(o)}return e}},d730:function(t,e,i){},e580:function(t,e,i){"use strict";i("8d35")},f011:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",[i("div",[i("div",[i("div",{staticClass:"tab-top"},[i("div",{staticClass:"fl"},[i("el-input",{staticClass:"mr10 w360",attrs:{placeholder:t.placeholderText,clearable:""},on:{clear:t.getSearchList2},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.key,callback:function(e){t.$set(t.query,"key",e)},expression:"query.key"}},[i("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend",placeholder:"礼品名称"},on:{change:t.handleChangeType},slot:"prepend",model:{value:t.query.type,callback:function(e){t.$set(t.query,"type",e)},expression:"query.type"}},[i("el-option",{attrs:{label:"礼品名称",value:1}}),i("el-option",{attrs:{label:"礼品编码",value:2}}),i("el-option",{attrs:{label:"条形码",value:3}}),i("el-option",{attrs:{label:"福利id",value:0}})],1)],1),i("el-select",{staticClass:"w-160 mr10",attrs:{placeholder:"礼品状态",clearable:""},on:{change:t.getSearchList},model:{value:t.query.hiddenFlag,callback:function(e){t.$set(t.query,"hiddenFlag",e)},expression:"query.hiddenFlag"}},[i("el-option",{attrs:{label:"显示",value:0}}),i("el-option",{attrs:{label:"隐藏",value:1}})],1),t.unfoldStatus?t._e():i("el-button",{attrs:{type:"text"},on:{click:t.handleUnfold}},[t._v("展开"),i("i",{staticClass:"el-icon-arrow-down"})]),t.unfoldStatus?i("el-button",{attrs:{type:"text"},on:{click:t.handleUnfold}},[t._v("收起"),i("i",{staticClass:"el-icon-arrow-up"})]):t._e()],1),i("div",{staticClass:"fr"},[i("el-select",{staticClass:"w-160 mr10 more-select",attrs:{placeholder:"批量操作",disabled:t.selectList.length<1},on:{change:t.handleBatch},model:{value:t.batchOperate,callback:function(e){t.batchOperate=e},expression:"batchOperate"}},[i("el-option",{attrs:{label:"批量隐藏",value:0}}),i("el-option",{attrs:{label:"批量取消隐藏",value:1}}),i("el-option",{attrs:{label:"批量禁用",value:2}}),i("el-option",{attrs:{label:"批量启用",value:3}})],1),i("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("新建礼品")])],1)]),t.unfoldStatus?i("div",{staticStyle:{margin:"20px 20px 0px 20px"}},[i("div",{staticStyle:{height:"32px"}},[i("div",{staticClass:"spanclass"},[t._v("福利成本:")]),i("dm-input-amount",{staticClass:"mr10 ml10",attrs:{precision:"2",min:0,max:9999999.99},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.startCostPrice,callback:function(e){t.$set(t.query,"startCostPrice","string"===typeof e?e.trim():e)},expression:"query.startCostPrice"}}),i("div",{staticClass:"spanclass"},[t._v("-")]),i("dm-input-amount",{staticClass:"mr40 ml10",attrs:{precision:"2",min:0,max:9999999.99},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.endCostPrice,callback:function(e){t.$set(t.query,"endCostPrice","string"===typeof e?e.trim():e)},expression:"query.endCostPrice"}}),i("div",{staticClass:"spanclass",staticStyle:{"margin-right":"28px"}},[t._v("更新时间:")]),i("el-select",{staticClass:"w-160 mr10 more-select",attrs:{placeholder:"由近及远",clearable:""},on:{change:t.handleSort},model:{value:t.sortData,callback:function(e){t.sortData=e},expression:"sortData"}},[i("el-option",{attrs:{label:"由近及远",value:0}}),i("el-option",{attrs:{label:"由远及近",value:1}})],1)],1),i("div",{staticClass:"mt20",staticStyle:{height:"32px"}},[i("div",{staticClass:"spanclass"},[t._v("可占库存:")]),i("dm-input-number",{staticClass:"mr10 ml10 w140",attrs:{precision:"0",min:0,max:9999999,placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.startStock,callback:function(e){t.$set(t.query,"startStock",e)},expression:"query.startStock"}}),i("div",{staticClass:"spanclass"},[t._v("-")]),i("dm-input-number",{staticClass:"ml10 w140 mr40",attrs:{precision:"0",min:0,max:9999999,placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getSearchList(e)}},model:{value:t.query.endStock,callback:function(e){t.$set(t.query,"endStock",e)},expression:"query.endStock"}}),i("div",{staticClass:"spanclass"},[t._v("更新时间范围:")]),i("el-date-picker",{staticClass:"w350",attrs:{type:"datetimerange",align:"right","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:t.changeTime},model:{value:t.timeValue,callback:function(e){t.timeValue=e},expression:"timeValue"}})],1)]):t._e()]),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table-content"},[i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData},on:{"sort-change":t.sortChange,"selection-change":t.handleSelectAll}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{label:"礼品信息",width:"300px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"img-text"},[i("dm-preview-img",{staticStyle:{display:"inline-block",border:"1px solid #dcdfe6",padding:"4px","border-radius":"2px"},attrs:{img:e.row.giftImgUrl,width:"50",height:"50"}}),i("div",{staticClass:"text"},[i("p",{staticClass:"goods-descript"},[i("el-tooltip",{staticClass:"item",attrs:{"open-delay":"200",effect:"dark",content:e.row.giftName,placement:"top"}},[i("span",{staticClass:"inline-block hidden-data"},[t._v(t._s(e.row.giftName||"--"))])]),i("el-popover",{attrs:{placement:"top",trigger:"hover"},on:{show:function(i){return t.getName(e.row.giftName)}}},[i("div",[i("dm-input",{staticStyle:{width:"260px"},attrs:{type:"text","byte-type":1,maxlength:30},model:{value:t.changeName,callback:function(e){t.changeName=e},expression:"changeName"}})],1),i("div",{staticClass:"popver-button",staticStyle:{"margin-top":"18px","text-align":"right"}},[i("el-button",{attrs:{type:"dafault",size:"small"}},[t._v("取消")]),i("el-button",{staticClass:"ml10 ml10",attrs:{type:"primary",size:"small"},on:{click:function(i){return t.handleName(e.row)}}},[t._v("确认")])],1),i("i",{staticClass:"el-icon-edit-outline inline-block ml5",staticStyle:{"margin-top":"-5px"},attrs:{slot:"reference"},slot:"reference"})])],1),i("p",{staticClass:"goods-code"},[i("el-tooltip",{attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("p",{staticClass:"goods-code"},[t._v("福利id:"+t._s(e.row.giftId))]),i("div",[t._v("更新时间:"),i("p",{staticClass:"inline-block",domProps:{innerHTML:t._s(t.formatDateTimeByType(e.row.updateTime))}})])]),i("i",{staticClass:"el-icon-question"})]),t._v("\n 礼品编码:"+t._s(e.row.giftNo||"--")+"\n ")],1)])],1)]}}])}),i("el-table-column",{attrs:{prop:"costPrice",label:"成本",sortable:"custom","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("p",{staticClass:"stock-box"},[e.row.minCostPrice==e.row.maxCostPrice?i("span",[t._v(t._s(e.row.minCostPrice.toFixed(2)))]):i("span",[t._v(t._s(e.row.minCostPrice.toFixed(2))+"-"+t._s(e.row.maxCostPrice.toFixed(2)))]),i("i",{staticClass:"el-icon-edit-outline",on:{click:function(i){return t.updateCost(e.row)}}})])]}}])}),i("el-table-column",{attrs:{sortable:"custom",prop:"stock",label:"库存","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[i("p",{staticClass:"stock-box"},[i("el-tooltip",{attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("p",{staticClass:"goods-code"},[t._v("已占用:"+t._s(e.row.occupyStock))]),i("p",{staticClass:"goods-code"},[t._v("总库存:"+t._s(e.row.totalStock))])]),i("i",{staticClass:"el-icon-question inline-block mr5",staticStyle:{color:"#909399"}})]),i("span",[t._v("可占库存:"+t._s(e.row.remainedStock))]),i("i",{staticClass:"el-icon-edit-outline inline-block ml5",on:{click:function(i){return t.updateStock(e.row)}}})],1)])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[i("span",{staticClass:"undeline-dash"},[t._v("可占用库存")]),i("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 可占库存:福利可以被直接使用和被应用占用的数量;"),i("br"),t._v("\n 已占用:福利已经被应用通过”固定库存“方式占用的数量;"),i("br"),t._v("\n 总库存:福利实际未产生履约单,还可以被出库的数量;"),i("br"),t._v("\n 总出库量:福利从创建到现在已生成履约单的数量;\n ")])])],1)],2),i("el-table-column",{attrs:{prop:"allExchangeNumber",label:"总出库量","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.totalOutStock||"--"))])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[i("span",{staticClass:"undeline-dash"},[t._v("总出库量")]),i("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 可占库存:福利可以被直接使用和被应用占用的数量;"),i("br"),t._v("\n 已占用:福利已经被应用通过”固定库存“方式占用的数量;"),i("br"),t._v("\n 总库存:福利实际未产生履约单,还可以被出库的数量;"),i("br"),t._v("\n 总出库量:福利从创建到现在已生成履约单的数量;\n ")])])],1)],2),i("el-table-column",{attrs:{prop:"hiddenFlag",label:"是否隐藏","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-switch",{attrs:{disabled:0===e.row.statusFlag&&1===e.row.hiddenFlag,"active-value":1,"inactive-value":0},on:{change:function(i){return t.changeShow(e.row)}},model:{value:e.row.hiddenFlag,callback:function(i){t.$set(e.row,"hiddenFlag",i)},expression:"scope.row.hiddenFlag"}})]}}])},[i("template",{slot:"header"},[i("el-tooltip",{staticStyle:{width:"250px"},attrs:{"open-delay":"200",effect:"dark",placement:"top"}},[i("span",{staticClass:"undeline-dash"},[t._v("是否隐藏")]),i("span",{staticStyle:{width:"240px"},attrs:{slot:"content"},slot:"content"},[t._v("\n 隐藏后福利组件中不展示,其他应用不可增加占用数量,已占用的库存不影响使用\n ")])])],1)],2),i("el-table-column",{attrs:{label:"操作","min-width":"210px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticStyle:{"font-size":"0px"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.edit(e.row,2)}}},[t._v("编辑")]),i("el-button",{attrs:{type:"text"},on:{click:function(i){return t.$router.push("/gift-manage/virtual-stock-list?id="+e.row.giftId)}}},[t._v("库存记录")]),i("el-dropdown",{staticStyle:{"margin-left":"20px"},attrs:{placement:"bottom-start"},on:{command:function(i){return t.handleCommand(i,e.row)}}},[i("span",{staticClass:"el-dropdown-link",staticStyle:{color:"#2f54ed",cursor:"pointer"}},[i("i",{staticClass:"el-icon-more"})]),i("el-dropdown-menu",{staticStyle:{width:"110px"},attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"1"}},[t._v("查看内容")]),0===e.row.statusFlag?i("el-dropdown-item",{attrs:{command:"2"}},[t._v("启用")]):t._e(),1===e.row.statusFlag?i("el-dropdown-item",{attrs:{command:"3"}},[t._v("禁用")]):t._e()],1)],1)],1)]}}])})],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination-conteiner",staticStyle:{background:"#fff"}},[i("div",{staticClass:"pagination"},[0!=t.total?i("dm-pagination",{attrs:{background:"","current-page":t.query.currentPage,"page-sizes":[20,40,60,80],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:currentPage":function(e){return t.$set(t.query,"currentPage",e)},"update:current-page":function(e){return t.$set(t.query,"currentPage",e)}}}):t._e()],1)])],1)])]),i("el-dialog",{attrs:{title:t.forbiddenTitle,visible:t.forbiddenDialog,width:"30%"},on:{"update:visible":function(e){t.forbiddenDialog=e}}},[i("div",{staticStyle:{display:"flex"}},[i("i",{staticClass:"el-icon-warning inline-block",staticStyle:{"font-size":"24px",color:"#e6a23c"}}),i("span",{staticClass:"inline-block ml10",staticStyle:{"font-size":"16px","line-height":"20px"}},[t._v("禁用礼品将在福利组件不展示,并且该礼品参加的活动将全部失效,确认禁用?")])]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.forbiddenDialog=!1}}},[t._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.forbiddenDialog=!1}}},[t._v("禁用")])],1)]),t.updateCostDialog?i("update-virtual-cost",{attrs:{"update-cost-data":t.updateCostData},on:{closeUpdateCost:t.closeUpdateCost,getTableList:t.getTableList}}):t._e(),t.StockDialog?i("update-virtual-stock",{attrs:{"stock-data":t.stockData},on:{getTableList:t.getTableList,closeUpdateStock:t.closeUpdateStock}}):t._e(),t.dialogVisible?i("check-upload-detail",{attrs:{"dialog-id":t.dialogId,"is-edit":!1},on:{closeUploadDetail:t.closeUploadDetail}}):t._e()],1)},n=[],s=(i("ac4d"),i("8a81"),i("5df3"),i("1c4c"),i("7f7f"),i("6b54"),i("8e6e"),i("ac6a"),i("456d"),i("ade3")),o=i("fab6"),r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"调整成本",visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("el-form",{staticClass:"mt20"},[i("el-form-item",{attrs:{label:"成本费用",required:""}},[[i("dm-input-amount",{staticStyle:{width:"200px"},attrs:{precision:"2",min:0,max:999999.99},model:{value:t.costPrice,callback:function(e){t.costPrice=e},expression:"costPrice"}})]],2),i("el-form-item",{attrs:{label:"调整备注",required:""}},[[i("el-input",{staticStyle:{width:"260px"},attrs:{type:"textarea",rows:3,placeholder:"请填入调整备注",maxlength:240,"show-word-limit":""},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}})]],2)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){return t.cancelSubmit()}}},[t._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitProNanme()}}},[t._v("确认")])],1)])},l=[],c=i("cdc8"),u=c["a"].virtualCostUpdate,d={props:{updateCostData:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!1,loading:!1,textarea:"",giftId:"",costPrice:"",giftSkuId:""}},mounted:function(){this.dialogVisible=!0,this.giftId=this.updateCostData.id,this.costPrice=this.updateCostData.costPrice},methods:{submitProNanme:function(){var t=this;if(!this.loading)if(this.textarea){this.loading=!0;var e={giftId:this.updateCostData.id,costPrice:this.costPrice,remark:this.textarea};u(e).then((function(e){"0000"===e.code?(t.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateCost",!1)}),10),t.$message.success("修改成功")):t.$message.error(e.message)})).finally((function(){return t.loading=!1}))}else this.$message.error("请完善备注")},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateCost",!1)}),10)}}},p=d,f=(i("3df3"),i("2877")),h=Object(f["a"])(p,r,l,!1,null,"10957aea",null),g=h.exports,m=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"调整可占用库存",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.cancelSubmit()}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("el-form",{attrs:{"label-width":"130px"}},[i("el-form-item",{attrs:{label:"导入券码文件",required:""}},[i("div",{staticClass:"pickup-upload"},[i("div",[i("span",{staticClass:"file-style inline-block",staticStyle:{position:"relative"}},[i("input",{ref:"file",staticStyle:{position:"absolute",top:"3px",opacity:"0",width:"70px"},attrs:{type:"file",name:"file",accept:".xlsx,.xls"},on:{change:t.change}}),i("el-button",{staticClass:"upload-trigger",on:{click:t.upload}},[i("i",{staticClass:"iconfont-components4 icon-cp-shangc upload-icon"}),t._v(" 上传")])],1),i("span",{staticClass:"upload-tip inline-block"},[i("el-button",{staticStyle:{"margin-right":"30px"},attrs:{type:"text"},on:{click:t.downloadFile}},[t._v("下载文件模板")]),i("el-popover",{attrs:{trigger:"click",placement:"right","popper-class":"upload-popper"}},[i("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看导入规则")]),i("div",{staticClass:"upload-tip-text"},[i("p",[t._v("1.填充空缺内容,导出所有项均为必填项;")]),i("p",[t._v("2.请勿导入重复的内容,导入的内容在原来基础上增加库存;")]),i("p",[t._v("3.上传完整仅支持.xlsx .xls文件的导入,填充数据不超过“10万”条;")])])],1)],1),i("div",[t._v(t._s(t.file.name))])]),t.uploadFile.name?i("div",{staticClass:"pickup-list"},[i("p",{staticClass:"pickup-list-name"},[i("i",{staticClass:"iconfont-welfare4 icon-wenjian1 file-icon"}),t._v("\n "+t._s(t.uploadFile.name)+"\n ")])]):t._e()])]),i("el-form-item",{attrs:{label:"调整备注",required:""}},[i("el-input",{staticStyle:{width:"260px"},attrs:{type:"textarea",rows:3,placeholder:"请填入调整备注",maxlength:240,"show-word-limit":""},model:{value:t.textarea,callback:function(e){t.textarea=e},expression:"textarea"}})],1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){return t.cancelSubmit()}}},[t._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitProNanme()}}},[t._v("确认")])],1)])},y=[],b=c["a"].virtualGiftUpload,v={props:{stockData:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!1,loading:!1,textarea:"",uploadAction:"https://four.gicdev.com/api-marketing/upload/upload-image?requestProject=welafre",uploadFile:{name:""},file:{},files:[]}},mounted:function(){this.dialogVisible=!0},methods:{change:function(t){this.file=t.target.files[0]},upload:function(){this.change()},getData:function(){},downloadFile:function(){var t="/welfare";window.open("".concat(t,"/static/虚拟礼品卡券模板.xlsx"),"_blank")},submitProNanme:function(){var t=this;if(this.file.name)if(this.textarea){var e={giftId:this.stockData.id,file:this.file,remark:this.textarea};this.loading=!0,b(e).then((function(e){"0000"===e.code?(t.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateStock")}),10),t.$message.success(e.massage)):t.$message.error(e.message)}))}else this.$message.error("请完善备注");else this.$message.error("请选择文件")},cancelSubmit:function(){var t=this;this.dialogVisible=!1,setInterval((function(){t.$emit("closeUpdateStock")}),10)},getSpanArr:function(t){for(var e=0;e<t.length;e++)0===e?(this.spanArr.push(1),this.pos=0):t[e].color===t[e-1].color?(this.spanArr[this.pos]+=1,this.spanArr.push(0)):(this.spanArr.push(1),this.pos=e)},objectSpanMethod:function(t){t.row,t.column;var e=t.rowIndex,i=t.columnIndex;if(0===i){var a=this.spanArr[e],n=a>0?1:0;return{rowspan:a,colspan:n}}},handleStock:function(){var t=this;this.updateList=[],this.tableData.forEach((function(e){e.stock=t.banthStock,e.stockType=t.stockType,t.updateList.push({giftSkuId:e.giftSkuId,stock:e.stock,stockType:e.stockType})}))},changeSingleStock:function(t,e,i){if(e||this.$message.error("请完善库存"),this.updateList.length>0){var a,n=this.updateList.some((function(e,i){if(e.giftSkuId==t)return a=i,!0}));n?this.updateList[a].stock=e:this.updateList.push({giftSkuId:t,stock:e,stockType:i})}else this.updateList.push({giftSkuId:t,stock:e,stockType:i})}}},k=v,w=(i("e580"),Object(f["a"])(k,m,y,!1,null,"4f27e20e",null)),S=w.exports,C=i("3b56"),x=i("ed08");function _(t,e){var i;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=O(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 s,o=!0,r=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){r=!0,s=t},f:function(){try{o||null==i.return||i.return()}finally{if(r)throw s}}}}function O(t,e){if(t){if("string"===typeof t)return T(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)?T(t,e):void 0}}function T(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 P(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 L(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?P(Object(i),!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):P(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var q=c["a"].giftPage,D=c["a"].batchUpdate,I=c["a"].updateName,j={components:{UpdateVirtualCost:g,updateVirtualStock:S,checkUploadDetail:C["a"]},data:function(){return{bread:[{breadName:"福利中心"},{breadName:"礼品管理"},{breadName:"虚拟礼品"}],mixins:[o["c"],o["a"]],unfoldStatus:!1,sortData:0,query:{hiddenFlag:"",startTime:"",endTime:"",startCostPrice:"",endCostPrice:"",startStock:void 0,endStock:void 0,sortColumn:"",sortOrder:"",currentPage:1,pageSize:20,type:1,key:""},batchOperate:"",total:0,sortOrder:"",sortColumn:"",tableData:[],selectList:[],updateCostData:{maxCostPrice:"",id:"",textarea:""},updateCostDialog:!1,updateNameForm:{name:"",id:"",type:""},updateNameDialog:!1,stockData:{id:"",remainedStock:"",textarea:""},StockDialog:!1,integralDialog:!1,loading:!1,search:"",searchType:1,placeholderText:"请输入礼品名称",isShow:!1,timeValue:"",dialogVisible:!1,dialogId:"",forbiddenDialog:!1,forbiddenTitle:"禁用",changeName:""}},created:function(){this.$emit("updateBread",this.bread),this.$emit("showAside",!0),this.$route.query.giftId&&(this.query.key=this.$route.query.giftId,this.query.type=0),this.init()},methods:{formatDateTimeByType:x["e"],listTime:x["g"],init:function(){this.getTableList()},getSearchList:function(){this.query.currentPage=1,this.getTableList()},getSearchList2:function(){this.query.type=1,this.query.currentPage=1,this.getTableList()},handleChangeType:function(){1===this.query.type?this.placeholderText="请输入礼品名称":2===this.query.type?this.placeholderText="请输入礼品编码":3===this.query.type?this.placeholderText="请输入条形码":0===this.query.type&&(this.placeholderText="请输入福利id")},getTableList:function(){var t=this;this.loading=!0;var e=L(L({},this.query),{},{giftType:2});q(e).then((function(e){t.tableData=e.result.result})).finally((function(){return t.loading=!1}))},handleSizeChange:function(t){this.query.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.query.currentPage=t,this.query.pageSize=1,this.getTableList()},closeUploadDetail:function(){this.dialogVisible=!1},handleCommand:function(t,e){var i=this;if(1==t)this.dialogVisible=!0,this.dialogId=e.giftId;else if(3==t){var a={giftIdList:[e.giftId],type:2};this.$confirm("<div>已添加被禁用礼品的活动将会失效,确认禁用?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"禁用"}).then((function(){i.batchRequest(a)})).catch((function(){}))}else if(2==t){var n={giftIdList:[e.giftId],type:3};this.$confirm("<div>确认启用?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"启用"}).then((function(){i.batchRequest(n)})).catch((function(){}))}},handleUnfold:function(){this.unfoldStatus=!this.unfoldStatus},handleSort:function(t){this.query.sortOrder=0==t?"desc":"asc",this.query.sortColumn="update_time",this.getTableList()},sortChange:function(t){"ascending"==t.order?this.query.sortOrder="asc":"descending"==t.order&&(this.query.sortOrder="desc"),"updateTime"===t.prop?this.query.sortColumn="update_time":"costPrice"===t.prop&&"ascending"==t.order||"costPrice"===t.prop&&"descending"==t.order?this.query.sortColumn="min_cost_price":"stock"===t.prop&&(this.query.sortColumn="remained_stock"),this.getTableList()},changeTime:function(){this.timeValue?(this.query.startTime=this.formatDateTimeByType(this.timeValue[0],"yyyy-MM-dd-HH-mm-ss"),this.query.endTime=this.formatDateTimeByType(this.timeValue[1],"yyyy-MM-dd-HH-mm-ss")):(this.query.startTime="",this.query.endTime=""),this.query.currentPage=1,this.query.pageSize=20,this.getTableList()},handleSelectAll:function(t){this.selectList=t},handleBatch:function(t){var e,i=this,a=[],n=_(this.selectList);try{for(n.s();!(e=n.n()).done;){var s=e.value;a.push(s.giftId)}}catch(r){n.e(r)}finally{n.f()}var o={giftIdList:a,type:t};2==t?this.$confirm("<div>已添加被禁用礼品的活动将会失效,确认禁用?</div>","批量禁用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"禁用"}).then((function(){i.batchRequest(o)})):0==t?this.$confirm("<div>是否批量隐藏?</div>","批量隐藏",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"隐藏"}).then((function(){i.batchRequest(o)})):1==t?this.$confirm("<div>是否批量取消隐藏?</div>","批量取消隐藏",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){i.batchRequest(o)})):3==t&&this.$confirm("<div>是否批量启用?</div>","批量启用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"启用"}).then((function(){i.batchRequest(o)}))},batchRequest:function(t){var e=this;D(t).then((function(t){"0000"===t.code?(e.$message.success("操作成功"),e.getTableList()):e.$message.error(t.message)}))},changeShow:function(t){var e=this;1==t.statusFlag&&1==t.hiddenFlag?this.$confirm("<div>确认隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"隐藏"}).then((function(){var i={giftIdList:[t.giftId],type:0};e.batchRequest(i)})).catch((function(){t.hiddenFlag=0})):1==t.statusFlag&&0==t.hiddenFlag?this.$confirm("<div>确认取消隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"确认"}).then((function(){var i={giftIdList:[t.giftId],type:1};e.batchRequest(i)})).catch((function(){t.hiddenFlag=1})):0==t.statusFlag&&1==t.hiddenFlag&&this.$confirm("<div>确认隐藏?</div>","提示",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"隐藏"}).then((function(){var i={giftIdList:[t.giftId],type:0};e.batchRequest(i)})).catch((function(){t.hiddenFlag=0}))},changeStatus:function(t){var e=this;if(0==t.statusFlag){var i={giftIdList:[t.giftId],type:3};this.batchRequest(i)}else this.$confirm("<div>禁用礼品将在福利组件不展示,并且该礼品参加的活动将全部失效,确认禁用?</div>","禁用",{closeOnClickModal:!1,showClose:!1,type:"warning",customClass:"show-title",dangerouslyUseHTMLString:!0,confirmButtonText:"禁用"}).then((function(){var i={giftIdList:[t.giftId],type:2};e.batchRequest(i)}))},handleName:function(t){var e=this,i={giftId:t.giftId,name:this.changeName};I(i).then((function(t){"0000"===t.code?(e.$message.success("修改成功"),e.getTableList()):e.$message.error(t.message)}))},getName:function(t){this.changeName=t},updateStock:function(t){this.stockData.id=t.giftId,this.stockData.remainedStock=t.remainedStock,this.stockData.textarea=t.textarea,this.StockDialog=!0},closeUpdateStock:function(){this.stockData.remainedStock="",this.stockData.textarea="",this.StockDialog=!1,this.getTableList()},updateCost:function(t){this.updateCostData.id=t.giftId,this.updateCostData.costPrice=t.maxCostPrice.toFixed(2),this.updateCostDialog=!0},closeUpdateCost:function(){this.updateCostDialog=!1,this.getTableList()},add:function(){this.$router.push({path:"/gift-manage/virtual-gift-detail",query:{giftId:""}})},edit:function(t){this.$router.push({path:"/gift-manage/virtual-gift-detail",query:{giftId:t.giftId}})}}},$=j,F=(i("84e7"),i("f36a"),Object(f["a"])($,a,n,!1,null,"517b8a46",null));e["default"]=F.exports},f36a:function(t,e,i){"use strict";i("b1b3")},fab6:function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return o}));var a=i("ed08"),n={methods:{refresh:function(){this.listParams.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.listParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.listParams.currentPage=t,this.getTableList()}}},s={methods:{formatterTimeFunc:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"startTime",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"endTime",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"dateTime";this[n]?(this.listParams[t]=Object(a["e"])(this[n][0],i),this.listParams[e]=Object(a["e"])(this[n][1],i)):this.listParams[t]=this.listParams[e]=""}}},o={methods:{mainHeight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.$store.state.mainHeight-52-t}}}}}]);
\ No newline at end of file
...@@ -83,7 +83,7 @@ let setting = { ...@@ -83,7 +83,7 @@ let setting = {
}, },
getConfigDetail: '/config/get-config-detail', getConfigDetail: '/config/get-config-detail',
getAddressList: '/address/get-address-list', getAddressList: '/address/get-address-list',
getAddressDetails: 'address/get-address-details', getAddressDetails: '/address/get-address-details',
delAddress: '/address/del-address', delAddress: '/address/del-address',
insertOrUpdateAddress: { // 新增或修改退货地址 insertOrUpdateAddress: { // 新增或修改退货地址
url: '/address/insert-or-update-address', url: '/address/insert-or-update-address',
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</div> </div>
</div> </div>
<!-- 实物礼品才有sku列表 --> <!-- 实物礼品才有sku列表 -->
<el-table :data="skuList" v-if="type == 1" style="width: calc(100% - 40px)" max-height="200" class="ml20 mr20 mb10 el-table-list-mini-empty"> <el-table :data="skuList" v-if="type == 1 && goodsStandardInfo.length > 0" style="width: calc(100% - 40px)" max-height="200" class="ml20 mr20 mb10 el-table-list-mini-empty">
<el-table-column prop="giftSkuName" label="SKU信息" min-width="180" show-overflow-tooltip> <el-table-column prop="giftSkuName" label="SKU信息" min-width="180" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display:flex;align-items:center;"> <div style="display:flex;align-items:center;">
...@@ -73,7 +73,8 @@ export default { ...@@ -73,7 +73,8 @@ export default {
return { return {
info: {}, info: {},
dialogVisible: false, dialogVisible: false,
skuList: [] skuList: [],
goodsStandardInfo: []
}; };
}, },
methods: { methods: {
...@@ -99,6 +100,7 @@ export default { ...@@ -99,6 +100,7 @@ export default {
}; };
if(this.type == 1) { if(this.type == 1) {
this.skuList = res.result.skuList || []; this.skuList = res.result.skuList || [];
this.goodsStandardInfo = res.result.giftSpecInfo ? JSON.parse(res.result.giftSpecInfo) : []; // 礼品规格信息
this.$emit('updateSkulist', this.skuList); this.$emit('updateSkulist', this.skuList);
} }
}); });
......
...@@ -35,7 +35,7 @@ export default [ ...@@ -35,7 +35,7 @@ export default [
component: () => import('@/views/gift-manage/address-lib-form.vue'), component: () => import('@/views/gift-manage/address-lib-form.vue'),
meta: { meta: {
type: 'add', type: 'add',
path: '/settinge/address-lib-list' path: '/setting/address-lib-list'
} }
}, },
{ {
...@@ -43,7 +43,7 @@ export default [ ...@@ -43,7 +43,7 @@ export default [
component: () => import('@/views/gift-manage/address-lib-form.vue'), component: () => import('@/views/gift-manage/address-lib-form.vue'),
meta: { meta: {
type: 'edit', type: 'edit',
path: '/settinge/address-lib-list' path: '/setting/address-lib-list'
} }
}, },
{ {
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
} }
this.goodsStandardInfo = this.giftSpecInfo ? JSON.parse(this.giftSpecInfo) : []; // 礼品规格信息 this.goodsStandardInfo = this.giftSpecInfo ? JSON.parse(this.giftSpecInfo) : []; // 礼品规格信息
if(this.goodsStandardInfo.length === 0){ if(this.goodsStandardInfo.length === 0){
this.costPrice = res.result.costPrice.toFixed(2); this.costPrice = Number(res.result.costPrice).toFixed(2);
} }
if (this.goodsStandardInfo.length > 0) { if (this.goodsStandardInfo.length > 0) {
this.isStdImg = this.goodsStandardInfo[0].standardimg === 2 ? true : false; this.isStdImg = this.goodsStandardInfo[0].standardimg === 2 ? true : false;
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
for (let item of goodsSkuListCopy) { for (let item of goodsSkuListCopy) {
if (skuSellObjCopy[item.mapId]) { if (skuSellObjCopy[item.mapId]) {
this.skuSellObj[item.mapId] = { this.skuSellObj[item.mapId] = {
giftSkuCostPrice: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].giftSkuCostPrice.toFixed(2) : '', giftSkuCostPrice: (Object.keys(skuSellObjCopy).length > 0 && skuSellObjCopy[item.mapId].giftSkuCostPrice) ? Number(skuSellObjCopy[item.mapId].giftSkuCostPrice).toFixed(2) : '',
stock: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].stock : '', stock: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].stock : '',
giftSkuCode: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].giftSkuCode : '', giftSkuCode: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].giftSkuCode : '',
skuBarCode: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].skuBarCode : '', skuBarCode: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].skuBarCode : '',
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</el-popover> </el-popover>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="skuSellObj[scope.row.mapId].stockType" style="width:100px" @change="changeType"> <el-select v-model="skuSellObj[scope.row.mapId].stockType" style="width:100px" @change="changeSingleStock(skuSellObj[scope.row.mapId].giftSkuId, skuSellObj[scope.row.mapId].stageStock, skuSellObj[scope.row.mapId].stockType)">
<el-option label="增加" :value="1"></el-option> <el-option label="增加" :value="1"></el-option>
<el-option label="减少" :value="0"></el-option> <el-option label="减少" :value="0"></el-option>
</el-select> </el-select>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<el-form class="mt20" v-else> <el-form class="mt20" v-else>
<el-form-item label="可占库存" required> <el-form-item label="可占库存" required>
<template> <template>
<el-select v-model="stockType" style="width:100px;"> <el-select v-model="stockType" style="width:100px;" @change="changeSingleStock(giftSkuId, stock, stockType)">
<el-option label="增加" :value="1"></el-option> <el-option label="增加" :value="1"></el-option>
<el-option label="减少" :value="0"></el-option> <el-option label="减少" :value="0"></el-option>
</el-select> </el-select>
...@@ -174,6 +174,7 @@ export default { ...@@ -174,6 +174,7 @@ export default {
}, },
changeType(value){ changeType(value){
console.log(value); console.log(value);
this.changeSingleStock();
}, },
submitProNanme() { submitProNanme() {
if(this.loading) return; if(this.loading) return;
......
...@@ -110,12 +110,21 @@ export default { ...@@ -110,12 +110,21 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
refresh(value){
this.listParams.name = value;
this.getTableList();
},
getTableList() { getTableList() {
if(this.loading) { if(this.loading) {
return; return;
} }
this.loading = true; this.loading = true;
pickupList().then(res => { let params = {
name: this.listParams.name,
currentPage: this.listParams.currentPage,
pageSize: this.listParams.pageSize,
};
pickupList(params).then(res => {
this.loading = false; this.loading = false;
const data = res.result; const data = res.result;
this.tableList = data.result || []; this.tableList = data.result || [];
......
...@@ -257,8 +257,10 @@ ...@@ -257,8 +257,10 @@
</el-form-item> </el-form-item>
</div> </div>
<div class="fixed-btn"> <div class="fixed-btn">
<dm-perm-button type="primary" @click="submitForm('goodsForm')" v-if="isEdit">保存</dm-perm-button> <el-button type="primary" @click="submitForm('goodsForm')" v-if="isEdit">保存</el-button>
<dm-perm-button type="primary" @click="submitForm('goodsForm')" v-else>确认新建</dm-perm-button> <el-button type="primary" @click="submitForm('goodsForm')" v-else>确认新建</el-button>
<!-- <dm-perm-button type="primary" @click="submitForm('goodsForm')" v-if="isEdit">保存</dm-perm-button>
<dm-perm-button type="primary" @click="submitForm('goodsForm')" v-else>确认新建</dm-perm-button> -->
</div> </div>
</el-form> </el-form>
</div> </div>
...@@ -595,7 +597,7 @@ export default { ...@@ -595,7 +597,7 @@ export default {
this.goodsForm.costPrice = skuList[0].giftSkuCostPrice; this.goodsForm.costPrice = skuList[0].giftSkuCostPrice;
} }
}else{ }else{
this.goodsForm.costPrice = resResult.costPrice; this.goodsForm.costPrice = Number(resResult.costPrice).toFixed(2);
} }
let mapData = []; let mapData = [];
let skuSellObj = {}; let skuSellObj = {};
...@@ -772,6 +774,9 @@ export default { ...@@ -772,6 +774,9 @@ export default {
// 删除规格 // 删除规格
deleteSku(index) { deleteSku(index) {
this.goodsStandardInfo.splice(index, 1); this.goodsStandardInfo.splice(index, 1);
// if(!this.goodsStandardInfo.length){
this.goodsForm.costPrice = '';
// };
this.getSkuList(); this.getSkuList();
}, },
...@@ -890,6 +895,8 @@ export default { ...@@ -890,6 +895,8 @@ export default {
} }
this.goodsSkuList = deepClone(goodsSkuListCopy); this.goodsSkuList = deepClone(goodsSkuListCopy);
this.getSkuList(); this.getSkuList();
this.handleCostPrice();
this.handleStock();
}, },
// 表格里面的图片上传成功 // 表格里面的图片上传成功
tableUploadSuccess(response, file, fileList, item2) { tableUploadSuccess(response, file, fileList, item2) {
...@@ -1024,6 +1031,7 @@ export default { ...@@ -1024,6 +1031,7 @@ export default {
// this.goodsForm.spuList[0].costPrice = min + '~' + max; // this.goodsForm.spuList[0].costPrice = min + '~' + max;
this.goodsForm.costPrice = min + '~' + max; this.goodsForm.costPrice = min + '~' + max;
} }
console.log(this.goodsForm.costPrice);
}else if(arr1.length === 1){ }else if(arr1.length === 1){
for(let key1 in this.skuSellObj){ for(let key1 in this.skuSellObj){
this.goodsForm.costPrice = this.skuSellObj[key1].giftSkuCostPrice; this.goodsForm.costPrice = this.skuSellObj[key1].giftSkuCostPrice;
...@@ -1110,7 +1118,7 @@ export default { ...@@ -1110,7 +1118,7 @@ export default {
this.goodsForm.stock = Number(this.goodsForm.stock) + Number(this.skuSellObj[item].stock); this.goodsForm.stock = Number(this.goodsForm.stock) + Number(this.skuSellObj[item].stock);
} }
// this.goodsForm.spuList[0].costPrice = this.skuSellObj[item].giftSkuCostPrice; // this.goodsForm.spuList[0].costPrice = this.skuSellObj[item].giftSkuCostPrice;
this.goodsForm.costPrice = this.skuSellObj[item].giftSkuCostPrice; // this.goodsForm.costPrice = this.skuSellObj[item].giftSkuCostPrice;
} }
}, },
// 获取sku数据 // 获取sku数据
...@@ -1167,7 +1175,7 @@ export default { ...@@ -1167,7 +1175,7 @@ export default {
for (let item of goodsSkuListCopy) { for (let item of goodsSkuListCopy) {
if (skuSellObjCopy[item.mapId]) { if (skuSellObjCopy[item.mapId]) {
this.skuSellObj[item.mapId] = { this.skuSellObj[item.mapId] = {
giftSkuCostPrice: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].giftSkuCostPrice.toFixed(2) : '', giftSkuCostPrice: (Object.keys(skuSellObjCopy).length > 0 && skuSellObjCopy[item.mapId].giftSkuCostPrice) ? Number(skuSellObjCopy[item.mapId].giftSkuCostPrice).toFixed(2) : '',
stock: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].stock : '', stock: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].stock : '',
giftSkuCode: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].giftSkuCode : '', giftSkuCode: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].giftSkuCode : '',
skuBarCode: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].skuBarCode : '', skuBarCode: Object.keys(skuSellObjCopy).length > 0 ? skuSellObjCopy[item.mapId].skuBarCode : '',
...@@ -1410,7 +1418,7 @@ export default { ...@@ -1410,7 +1418,7 @@ export default {
// shopId: '', // 门店id // shopId: '', // 门店id
giftName: this.goodsForm.giftName, // 礼品名称 giftName: this.goodsForm.giftName, // 礼品名称
marketPrice: this.goodsForm.marketPrice, // 市场价 marketPrice: this.goodsForm.marketPrice, // 市场价
costPrice: skuList.length == 0 ? this.goodsForm.costPrice : -1, // 成本价 costPrice: this.goodsStandardInfo.length == 0 ? this.goodsForm.costPrice : -1, // 成本价
stock: this.goodsForm.stock, // 库存 stock: this.goodsForm.stock, // 库存
giftNo: this.goodsForm.giftNo, // 礼品编码 giftNo: this.goodsForm.giftNo, // 礼品编码
giftBarNo: this.goodsForm.giftBarNo, // 礼品条形码 giftBarNo: this.goodsForm.giftBarNo, // 礼品条形码
......
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
<p>1.请按照顺序维护表头,所有变量均为必填项;</p> <p>1.请按照顺序维护表头,所有变量均为必填项;</p>
<p>2.请勿导入重复的内容,导入的内容在原来基础上增加库存;</p> <p>2.请勿导入重复的内容,导入的内容在原来基础上增加库存;</p>
<p>3.上传完整仅支持.xlsx .xls文件的导入,填充数据不超过“10万”条;</p> <p>3.上传完整仅支持.xlsx .xls文件的导入,填充数据不超过“10万”条;</p>
<p>4.正在异步上传处理中,我们将按照顺序分批次(5000/1批次)更新库存,请稍候刷新查看库存上传结果;</p>
</div> </div>
</el-popover> </el-popover>
<el-button type="text" v-if="isEdit" class="inline-block ml20" @click="checkUploadDetail">查看内容</el-button> <el-button type="text" v-if="isEdit" class="inline-block ml20" @click="checkUploadDetail">查看内容</el-button>
...@@ -513,7 +514,7 @@ export default { ...@@ -513,7 +514,7 @@ export default {
this.goodsForm.giftNo = resResult.giftNo; this.goodsForm.giftNo = resResult.giftNo;
this.goodsForm.stock = resResult.stock; this.goodsForm.stock = resResult.stock;
this.goodsForm.giftBarNo = resResult.giftBarNo; this.goodsForm.giftBarNo = resResult.giftBarNo;
this.goodsForm.virCostPrice = resResult.virCostPrice.toFixed(2); this.goodsForm.virCostPrice = Number(resResult.virCostPrice).toFixed(2);
this.goodsForm.marketPrice = resResult.marketPrice; // 市场价 this.goodsForm.marketPrice = resResult.marketPrice; // 市场价
this.goodsForm.operAuthType = resResult.operAuthType; // 操作人权限 this.goodsForm.operAuthType = resResult.operAuthType; // 操作人权限
this.goodsForm.operAuthPre = resResult.operAuth ? resResult.operAuth.split(',') : []; this.goodsForm.operAuthPre = resResult.operAuth ? resResult.operAuth.split(',') : [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment