Commit 5a32ce18 by 黑潮

Merge branch 'feature/福利中心-礼品管理' of git.gicdev.com:dm4/welfare into feature/福利中心-礼品管理

parents e61df18b e864c8d3
.el-icon-delete[data-v-21a2f2de]{display:inline-block;font-size:17px;padding:9px;margin-right:10px;color:#909399;border:1px solid #e4e7ed;border-radius:50%;vertical-align:middle;cursor:pointer;position:relative;top:-60px}.el-icon-delete[data-v-21a2f2de]:hover{background:#fef0f0;border:1px solid #fbc4c4;color:#f5222d}
\ No newline at end of file
.sort-btn[data-v-b4579bee]{width:14px}.sort-btn .el-icon-caret-top[data-v-b4579bee]{top:4px}.sort-btn .el-icon-caret-bottom[data-v-b4579bee]{top:-4px}.sort-btn i[data-v-b4579bee]{-webkit-transform:scale(.8);transform:scale(.8);font-size:12px;position:relative;color:#4a4a4a}.sort-btn i.active[data-v-b4579bee]{color:#2f54eb}.el-icon-delete[data-v-08a9ee1a]{display:inline-block;font-size:17px;padding:9px;margin-right:10px;color:#909399;border:1px solid #e4e7ed;border-radius:50%;vertical-align:middle;cursor:pointer;position:relative;top:-60px}.el-icon-delete[data-v-08a9ee1a]:hover{background:#fef0f0;border:1px solid #fbc4c4;color:#f5222d}
\ No newline at end of file
.sort-btn[data-v-b4579bee]{width:14px}.sort-btn .el-icon-caret-top[data-v-b4579bee]{top:4px}.sort-btn .el-icon-caret-bottom[data-v-b4579bee]{top:-4px}.sort-btn i[data-v-b4579bee]{-webkit-transform:scale(.8);transform:scale(.8);font-size:12px;position:relative;color:#4a4a4a}.sort-btn i.active[data-v-b4579bee]{color:#2f54eb}.prepend-select[data-v-f40ed020] .el-input__inner{-webkit-box-shadow:none!important;box-shadow:none!important;border-color:#dcdfe6!important;border-right:none!important;border-radius:2px 0 0 2px}.insert-input[data-v-f40ed020] .el-input__inner{border-radius:0 2px 2px 0}.welfare-item{width:100%;border:1px solid #dcdfe6;background:#fff}.welfare-item .head{font-size:13px;background:#ebecf0;color:#303133;height:40px;line-height:40px;padding:0 20px 0;border-bottom:1px solid #dcdfe6}.welfare-item .head label{color:#606266}.welfare-item .head-type{margin-right:20px;min-width:100px}.welfare-item .content{height:115px;overflow:hidden;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}.welfare-item .content>div{margin-left:20px;padding-top:20px;-webkit-box-flex:1;-ms-flex:1;flex:1;line-height:28px}
\ No newline at end of file
.prepend-select[data-v-f40ed020] .el-input__inner{-webkit-box-shadow:none!important;box-shadow:none!important;border-color:#dcdfe6!important;border-right:none!important;border-radius:2px 0 0 2px}.insert-input[data-v-f40ed020] .el-input__inner{border-radius:0 2px 2px 0}.welfare-item{width:100%;border:1px solid #dcdfe6;background:#fff}.welfare-item .head{font-size:13px;background:#ebecf0;color:#303133;height:40px;line-height:40px;padding:0 20px 0;border-bottom:1px solid #dcdfe6}.welfare-item .head label{color:#606266}.welfare-item .head-type{margin-right:20px;min-width:100px}.welfare-item .content{height:115px;overflow:hidden;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}.welfare-item .content>div{margin-left:20px;padding-top:20px;-webkit-box-flex:1;-ms-flex:1;flex:1;line-height:28px}
\ No newline at end of file
.w260[data-v-0deee3b0]{width:260px}
\ No newline at end of file
.hidden-limit .dm-input__counter{display:none}.popver-button .el-button:not(.el-button--text){min-width:50px}.right-border{border-right:1px solid #ebeef5}.w360[data-v-2eb9b096]{width:360px}.w-160[data-v-2eb9b096]{width:160px}.w140[data-v-2eb9b096]{width:140px}.w350[data-v-2eb9b096]{width:350px}.tab-top[data-v-2eb9b096]{height:32px;margin:20px 20px 0 20px}.tab-top .fl[data-v-2eb9b096],.tab-top[data-v-2eb9b096]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.table-content[data-v-2eb9b096]{margin:20px;padding-bottom:20px}.table-content .img-text[data-v-2eb9b096]{height:60px}.table-content .img-text img[data-v-2eb9b096]{width:60px;height:60px;border:1px solid #dcdfe6;padding:4px;border-radius:2px}.table-content .img-text .text[data-v-2eb9b096]{display:inline-block;vertical-align:top;width:75%;height:60px;margin-left:3px;font-size:13px;line-height:14px;position:relative}.table-content .img-text .text .goods-descript[data-v-2eb9b096]{display:-webkit-box;display:-ms-flexbox;display:flex;color:#606266;line-height:18px;font-size:14px}.table-content .img-text .text .goods-code[data-v-2eb9b096]{color:#909399;font-size:12px;line-height:16px;margin-bottom:2px;position:absolute;bottom:2px}.table-content .img-text .el-icon-edit-outline[data-v-2eb9b096]{display:none;cursor:pointer}.table-content .img-text :hover .el-icon-edit-outline[data-v-2eb9b096]{display:inline-block;cursor:pointer}.table-content .img-text .el-icon-edit-outline[data-v-2eb9b096]:hover{color:#2f54ed}.table-content .stock-box .el-icon-edit-outline[data-v-2eb9b096]{display:none;cursor:pointer}.table-content .stock-box:hover .el-icon-edit-outline[data-v-2eb9b096]{display:inline-block;cursor:pointer}.el-icon-edit-outline[data-v-2eb9b096]:hover{color:#2f54ed}.undeline-dash[data-v-2eb9b096]{border-bottom:1px dashed #2f54eb;font-weight:500}.spanclass[data-v-2eb9b096]{display:inline-block;line-height:32px}.hidden-data[data-v-2eb9b096]{max-width:180px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.stock-box .el-tooltip__popper{width:150px}
\ No newline at end of file
.right-border{border-right:1px solid #ebeef5}.hidden-limit .dm-input__counter{display:none}.popver-button .el-button:not(.el-button--text){min-width:50px}.file-style:hover .upload-trigger[data-v-16033c0a]{border-color:#1890ff}.upload-ele .el-button[data-v-16033c0a]{border:none;color:#c0c4cc}.upload-ele .el-button--small[data-v-16033c0a]{padding:0}.uploadText p[data-v-16033c0a]{line-height:26px}.pickup-upload[data-v-16033c0a]{display:inline-block;vertical-align:top}.pickup-upload .upload-trigger[data-v-16033c0a]{border-style:dashed;margin-right:10px}.pickup-upload .upload-trigger .upload-icon[data-v-16033c0a]{font-size:14px}.pickup-upload .pickup-list[data-v-16033c0a]{margin-top:18px}.pickup-upload .pickup-list .pickup-list-name[data-v-16033c0a]{font-size:14px;font-weight:400;color:#303133;line-height:20px}.pickup-upload .pickup-list .pickup-list-name .file-icon[data-v-16033c0a]{font-size:14px}.w360[data-v-0d1697c0]{width:360px}.w-160[data-v-0d1697c0]{width:160px}.w140[data-v-0d1697c0]{width:140px}.w350[data-v-0d1697c0]{width:350px}.tab-top[data-v-0d1697c0]{height:32px;margin:20px 20px 0 20px}.tab-top .fl[data-v-0d1697c0],.tab-top[data-v-0d1697c0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.table-content[data-v-0d1697c0]{margin:20px;padding-bottom:20px}.table-content .img-text[data-v-0d1697c0]{height:60px}.table-content .img-text img[data-v-0d1697c0]{width:60px;height:60px;border:1px solid #dcdfe6;padding:4px;border-radius:2px}.table-content .img-text .text[data-v-0d1697c0]{display:inline-block;vertical-align:top;width:75%;height:60px;margin-left:3px;font-size:13px;line-height:14px;position:relative}.table-content .img-text .text .goods-descript[data-v-0d1697c0]{display:-webkit-box;display:-ms-flexbox;display:flex;color:#606266;line-height:18px;font-size:14px}.table-content .img-text .text .goods-code[data-v-0d1697c0]{color:#909399;font-size:12px;line-height:16px;margin-bottom:2px;position:absolute;bottom:2px}.table-content .img-text .el-icon-edit-outline[data-v-0d1697c0]{display:none;cursor:pointer}.table-content .img-text :hover .el-icon-edit-outline[data-v-0d1697c0]{display:inline-block;cursor:pointer}.table-content .img-text .el-icon-edit-outline[data-v-0d1697c0]:hover{color:#2f54ed}.table-content .stock-box .el-icon-edit-outline[data-v-0d1697c0]{display:none;cursor:pointer}.table-content .stock-box:hover .el-icon-edit-outline[data-v-0d1697c0]{display:inline-block;cursor:pointer}.el-icon-edit-outline[data-v-0d1697c0]:hover{color:#2f54ed}.undeline-dash[data-v-0d1697c0]{border-bottom:1px dashed #2f54eb;font-weight:500}.spanclass[data-v-0d1697c0]{display:inline-block;line-height:32px}.hidden-data[data-v-0d1697c0]{max-width:180px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.stock-box .el-tooltip__popper{width:150px}
\ No newline at end of file
.w260[data-v-b43f3084]{width:260px}
\ No newline at end of file
.right-border{border-right:1px solid #ebeef5}.hidden-limit .dm-input__counter{display:none}.popver-button .el-button:not(.el-button--text){min-width:50px}.file-style:hover .upload-trigger[data-v-16033c0a]{border-color:#1890ff}.upload-ele .el-button[data-v-16033c0a]{border:none;color:#c0c4cc}.upload-ele .el-button--small[data-v-16033c0a]{padding:0}.uploadText p[data-v-16033c0a]{line-height:26px}.pickup-upload[data-v-16033c0a]{display:inline-block;vertical-align:top}.pickup-upload .upload-trigger[data-v-16033c0a]{border-style:dashed;margin-right:10px}.pickup-upload .upload-trigger .upload-icon[data-v-16033c0a]{font-size:14px}.pickup-upload .pickup-list[data-v-16033c0a]{margin-top:18px}.pickup-upload .pickup-list .pickup-list-name[data-v-16033c0a]{font-size:14px;font-weight:400;color:#303133;line-height:20px}.pickup-upload .pickup-list .pickup-list-name .file-icon[data-v-16033c0a]{font-size:14px}.w360[data-v-498019f6]{width:360px}.w-160[data-v-498019f6]{width:160px}.w140[data-v-498019f6]{width:140px}.w350[data-v-498019f6]{width:350px}.tab-top[data-v-498019f6]{height:32px;margin:20px 20px 0 20px}.tab-top .fl[data-v-498019f6],.tab-top[data-v-498019f6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.table-content[data-v-498019f6]{margin:20px;padding-bottom:20px}.table-content .img-text[data-v-498019f6]{height:60px}.table-content .img-text img[data-v-498019f6]{width:60px;height:60px;border:1px solid #dcdfe6;padding:4px;border-radius:2px}.table-content .img-text .text[data-v-498019f6]{display:inline-block;vertical-align:top;width:75%;height:60px;margin-left:3px;font-size:13px;line-height:14px;position:relative}.table-content .img-text .text .goods-descript[data-v-498019f6]{color:#606266;line-height:18px;font-size:14px}.table-content .img-text .text .goods-code[data-v-498019f6]{color:#909399;font-size:12px;line-height:16px;margin-bottom:2px;position:absolute;bottom:2px}.table-content .img-text .el-icon-edit-outline[data-v-498019f6]{display:none;cursor:pointer}.table-content .img-text :hover .el-icon-edit-outline[data-v-498019f6]{display:inline-block;cursor:pointer}.table-content .img-text .el-icon-edit-outline[data-v-498019f6]:hover{color:#2f54ed}.table-content .stock-box .el-icon-edit-outline[data-v-498019f6]{display:none;cursor:pointer}.table-content .stock-box:hover .el-icon-edit-outline[data-v-498019f6]{display:inline-block;cursor:pointer}.el-icon-edit-outline[data-v-498019f6]:hover{color:#2f54ed}.undeline-dash[data-v-498019f6]{border-bottom:1px dashed #2f54eb;font-weight:500}.spanclass[data-v-498019f6]{display:inline-block;line-height:32px}.hidden-data[data-v-498019f6]{max-width:200px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.stock-box .el-tooltip__popper{width:150px}
\ No newline at end of file
.hidden-limit .dm-input__counter{display:none}.popver-button .el-button:not(.el-button--text){min-width:50px}.right-border{border-right:1px solid #ebeef5}.w360[data-v-4614bd0a]{width:360px}.w-160[data-v-4614bd0a]{width:160px}.w140[data-v-4614bd0a]{width:140px}.w350[data-v-4614bd0a]{width:350px}.tab-top[data-v-4614bd0a]{height:32px;margin:20px 20px 0 20px}.tab-top .fl[data-v-4614bd0a],.tab-top[data-v-4614bd0a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.table-content[data-v-4614bd0a]{margin:20px;padding-bottom:20px}.table-content .img-text[data-v-4614bd0a]{height:60px}.table-content .img-text img[data-v-4614bd0a]{width:60px;height:60px;border:1px solid #dcdfe6;padding:4px;border-radius:2px}.table-content .img-text .text[data-v-4614bd0a]{display:inline-block;vertical-align:top;width:75%;height:60px;margin-left:3px;font-size:13px;line-height:14px;position:relative}.table-content .img-text .text .goods-descript[data-v-4614bd0a]{color:#606266;line-height:18px;font-size:14px}.table-content .img-text .text .goods-code[data-v-4614bd0a]{color:#909399;font-size:12px;line-height:16px;margin-bottom:2px;position:absolute;bottom:2px}.table-content .img-text .el-icon-edit-outline[data-v-4614bd0a]{display:none;cursor:pointer}.table-content .img-text :hover .el-icon-edit-outline[data-v-4614bd0a]{display:inline-block;cursor:pointer}.table-content .img-text .el-icon-edit-outline[data-v-4614bd0a]:hover{color:#2f54ed}.table-content .stock-box .el-icon-edit-outline[data-v-4614bd0a]{display:none;cursor:pointer}.table-content .stock-box:hover .el-icon-edit-outline[data-v-4614bd0a]{display:inline-block;cursor:pointer}.el-icon-edit-outline[data-v-4614bd0a]:hover{color:#2f54ed}.undeline-dash[data-v-4614bd0a]{border-bottom:1px dashed #2f54eb;font-weight:500}.spanclass[data-v-4614bd0a]{display:inline-block;line-height:32px}.hidden-data[data-v-4614bd0a]{max-width:200px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.stock-box .el-tooltip__popper{width:150px}
\ No newline at end of file
[data-v-1bc200c8] .el-divider--horizontal{margin:16px 0;margin-top:20px}.upload[data-v-1bc200c8] .el-button{border-style:dashed}.el-icon-warning[data-v-77230a36]{color:#faad14;font-size:21px}.logistics-info[data-v-4f0cd98a]{display:-webkit-box;display:-ms-flexbox;display:flex}.logistics-info>div[data-v-4f0cd98a]{-webkit-box-flex:1;-ms-flex:1;flex:1}.logistics-info span[data-v-4f0cd98a]{display:inline-block}.logistics-info span+span[data-v-4f0cd98a]{margin-left:10px}.logistics-step[data-v-4f0cd98a]{margin-top:24px;background:#fafafa;padding:15px 0}.logistics-step h3[data-v-4f0cd98a]{color:#303133;font-size:16px;border-bottom:1px solid #dcdfe6;padding:0 20px 15px 20px}.logistics-step .logistics-list[data-v-4f0cd98a]{height:328px;overflow-y:auto;padding:20px}.logistics-step .logistics-item[data-v-4f0cd98a]{position:relative;padding-bottom:10px}.logistics-step .logistics-line-step[data-v-4f0cd98a]{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px}.logistics-step .logistics-line-step .time[data-v-4f0cd98a]{margin-right:20px;width:160px;line-height:22px;font-weight:500;color:#303133}.logistics-step .logistics-line-step .content[data-v-4f0cd98a]{color:#303133;-webkit-box-flex:1;-ms-flex:1;flex:1;line-height:22px}.write-off[data-v-73b5382e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;font-size:14px;color:#303133}.write-off .code[data-v-73b5382e]{margin-top:20px;color:#f5222d;font-size:20px}.goods-info[data-v-7e9e03b8]{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.goods-info img[data-v-7e9e03b8]{width:62px;height:62px;border:1px solid #f1f3f7;border-radius:5px}.goods-info .goods-text[data-v-7e9e03b8]{margin-left:18px;font-size:13px;color:#303133;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:justify;-ms-flex-pack:justify;justify-content:space-between}.goods-info .goods-text-info[data-v-7e9e03b8]{color:#909399;font-size:12px}.goods-info .goods-text-name[data-v-7e9e03b8]{margin-bottom:5px;line-height:16px}
\ No newline at end of file
[data-v-25f84e59] .el-divider--horizontal{margin:16px 0;margin-top:20px}.upload[data-v-25f84e59] .el-button{border-style:dashed}.el-icon-warning[data-v-77230a36]{color:#faad14;font-size:21px}.logistics-info[data-v-4f0cd98a]{display:-webkit-box;display:-ms-flexbox;display:flex}.logistics-info>div[data-v-4f0cd98a]{-webkit-box-flex:1;-ms-flex:1;flex:1}.logistics-info span[data-v-4f0cd98a]{display:inline-block}.logistics-info span+span[data-v-4f0cd98a]{margin-left:10px}.logistics-step[data-v-4f0cd98a]{margin-top:24px;background:#fafafa;padding:15px 0}.logistics-step h3[data-v-4f0cd98a]{color:#303133;font-size:16px;border-bottom:1px solid #dcdfe6;padding:0 20px 15px 20px}.logistics-step .logistics-list[data-v-4f0cd98a]{height:328px;overflow-y:auto;padding:20px}.logistics-step .logistics-item[data-v-4f0cd98a]{position:relative;padding-bottom:10px}.logistics-step .logistics-line-step[data-v-4f0cd98a]{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px}.logistics-step .logistics-line-step .time[data-v-4f0cd98a]{margin-right:20px;width:160px;line-height:22px;font-weight:500;color:#303133}.logistics-step .logistics-line-step .content[data-v-4f0cd98a]{color:#303133;-webkit-box-flex:1;-ms-flex:1;flex:1;line-height:22px}.write-off[data-v-73b5382e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;font-size:14px;color:#303133}.write-off .code[data-v-73b5382e]{margin-top:20px;color:#f5222d;font-size:20px}.goods-info[data-v-7e9e03b8]{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.goods-info img[data-v-7e9e03b8]{width:62px;height:62px;border:1px solid #f1f3f7;border-radius:5px}.goods-info .goods-text[data-v-7e9e03b8]{margin-left:18px;font-size:13px;color:#303133;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:justify;-ms-flex-pack:justify;justify-content:space-between}.goods-info .goods-text-info[data-v-7e9e03b8]{color:#909399;font-size:12px}.goods-info .goods-text-name[data-v-7e9e03b8]{margin-bottom:5px;line-height:16px}
\ No newline at end of file
.upload[data-v-3fa9aee0]{display:inline-block;width:175px;line-height:15px!important}.file-list[data-v-3fa9aee0]{margin-left:95px}.file-list li[data-v-3fa9aee0]{height:37px;line-height:37px;background:#f2f3f7;border-radius:2px;margin-bottom:5px;padding-left:13px;padding-right:27px;margin-top:10px}.file-list li i[data-v-3fa9aee0]{margin-top:12px}.file-list li p[data-v-3fa9aee0]{display:inline-block;width:80%;margin-left:5px}.rule[data-v-3fa9aee0]{color:#909399;padding-top:22px;margin-top:36px;border-top:1px solid #e4e7ed;margin-bottom:11px}.rule+ul[data-v-3fa9aee0]{color:#909399}.rule+ul li[data-v-3fa9aee0]{font-size:12px;line-height:20px}.ct[data-v-1a4621fb]{padding-left:20px;padding-right:20px;position:relative}.ct i[data-v-1a4621fb]{position:absolute;left:0;top:3px}.ct p[data-v-1a4621fb]{font-size:13px;font-weight:400;color:#606266;line-height:22px}.ct .tips[data-v-1a4621fb]{font-size:13px;line-height:1;color:#606266;margin-left:90px;margin-top:8px}.ct .tips[data-v-1a4621fb]:before{content:"*";color:#ff943e;margin-right:3px}[data-v-43be3626] .el-table__row .hover-btn{opacity:0;-webkit-transition:all .1s;transition:all .1s}[data-v-43be3626] .el-table__row.hover-row .hover-btn{opacity:1}.dm-switch[data-v-457d5c5a] .el-switch__label{color:#606266}.dm-switch[data-v-457d5c5a] .el-switch__label.is-active{color:#303133}.w260[data-v-0deee3b0]{width:260px}.result[data-v-34452bfd]{text-align:center}.result p[data-v-34452bfd]:first-child{color:#303133;font-size:14px;line-height:24px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:24px}.result i[data-v-34452bfd]{font-size:24px;margin-right:8px}.send-preview[data-v-0ab93ec9]{-webkit-transition:all .3s ease;transition:all .3s ease;opacity:0;visibility:hidden;z-index:1000;position:fixed;width:100%;height:100%;overflow-y:hidden;left:0;top:0}.send-preview.visible[data-v-0ab93ec9]{visibility:visible;opacity:1}.send-preview div.block[data-v-0ab93ec9]{margin:0 auto;z-index:3;position:relative;top:0;height:100%;width:100%}.send-preview div.block img[data-v-0ab93ec9]{width:100%}.send-preview ul[data-v-0ab93ec9]{position:absolute;bottom:10px}.send-preview .content[data-v-0ab93ec9]{height:100%;width:100%;position:absolute;left:0;top:0}.send-preview .content .avatar[data-v-0ab93ec9]{position:absolute;right:75.5px;top:119px}.send-preview .content .avatar[data-v-0ab93ec9] i{font-size:18px;line-height:35px}.send-preview .content .blk[data-v-0ab93ec9]{position:absolute;padding:22px 15px 13px 15px;right:129.5px;top:119px;width:224px;background:#fff;-webkit-box-shadow:0 2px 8px 0 rgba(0,0,0,.1);box-shadow:0 2px 8px 0 rgba(0,0,0,.1);border-radius:10px}.send-preview .content .blk .card[data-v-0ab93ec9]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.send-preview .content .blk .card i[data-v-0ab93ec9]{position:relative;top:2px}.send-preview .content .blk pre[data-v-0ab93ec9]{margin:15px auto;line-height:18px}.send-preview .bg[data-v-0ab93ec9]{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;display:block;background:rgba(0,0,0,.5)}.send-preview .btn[data-v-0ab93ec9]{position:absolute;height:80px;width:368px;top:773px;left:63px;background:#fff;overflow:hidden;border-radius:0 0 50px 50px}.send-preview .btn li[data-v-0ab93ec9]{float:left;width:50%;line-height:80px;color:#606266;text-align:center;font-size:18px}.send-preview .btn li.active[data-v-0ab93ec9]{color:#2f54eb}.page[data-v-0ab93ec9]{width:308px;position:absolute;top:98px;left:50%;margin-left:-154px}.page .title[data-v-0ab93ec9]{color:#335782;font-size:16px;margin:16px 0;text-align:center}.page .page-card[data-v-0ab93ec9]{background:#fff;padding:20px;height:650px;border-radius:4px}.page .give-rule[data-v-0ab93ec9]{margin-top:70px}.page .give-rule dd[data-v-0ab93ec9]{text-align:center;color:#2c3038;font-size:18px;margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #e6e6e6}.page .give-rule dt[data-v-0ab93ec9]{font-size:14px;line-height:24px}.page .card-content[data-v-0ab93ec9]{-webkit-box-shadow:0 2px 8px 0 rgba(136,148,156,.15);box-shadow:0 2px 8px 0 rgba(136,148,156,.15);overflow:hidden;position:relative;height:70px;padding-left:91px;background:#fff}.page .card-content img.exchange[data-v-0ab93ec9]{width:50px}.page .card-content .dl[data-v-0ab93ec9]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:91px;color:#fff;height:100%;text-align:center;position:absolute;left:0;top:0;background:#3970b5}.page .card-content .dl[data-v-0ab93ec9]:after{content:"";width:6px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAKCAYAAAB8OZQwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NEYyRkY1NkUxQTFGMTFFQTkyMEVEREQ1QjZENzFBNjQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NEYyRkY1NkYxQTFGMTFFQTkyMEVEREQ1QjZENzFBNjQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0RjJGRjU2QzFBMUYxMUVBOTIwRURERDVCNkQ3MUE2NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0RjJGRjU2RDFBMUYxMUVBOTIwRURERDVCNkQ3MUE2NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Ph7O54QAAABGSURBVHjaYvrx48cvID4JxFH///9nAGEGIOc/Ep4KEmQEcRhQQTQTAybIxyZoiE2QAZvgeWyCE9EFp7Gzsy9jwOZ4gAADABluO3AWsN5PAAAAAElFTkSuQmCC) repeat-y;position:absolute;left:-3px;top:0}.page .card-content .dl p[data-v-0ab93ec9]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:28px;font-weight:700;line-height:100px;height:100px;text-align:center}.page .card-content .dl p span[data-v-0ab93ec9]{margin-right:2px;font-size:18px}.page .card-d[data-v-0ab93ec9]{padding:10px 10px 5px 10px;position:relative;height:100%}.page .card-d-title[data-v-0ab93ec9]{height:18px;font-size:13px;font-weight:500;color:#2c3038;line-height:18px;margin-bottom:11px;position:relative;margin-top:2px;padding-left:48px}.page .card-d-title span[data-v-0ab93ec9]{position:absolute;left:-20px;bottom:-7px;width:84px;padding:2px 0 2px;border-radius:1px;text-align:center;color:#fff;line-height:28px;font-weight:400;font-size:20px;display:inline-block;-webkit-transform:scale(.5);transform:scale(.5)}.page .card-d-time[data-v-0ab93ec9]{height:15px;font-size:12px;font-weight:400;color:#2c3038;line-height:15px}.page .card-d-option[data-v-0ab93ec9]{width:calc(200% - 48px);position:absolute;bottom:0;left:-40%;font-size:22px;font-weight:400;color:#2c3038;line-height:32px;-webkit-transform:scale(.5);transform:scale(.5);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.page .card-d-option img[data-v-0ab93ec9]{width:24px;height:24px}.page .card-d-option .right[data-v-0ab93ec9]{margin-left:auto}.slide-fade-enter-active[data-v-0ab93ec9]{-webkit-transition:all .3s ease;transition:all .3s ease}.slide-fade-leave-active[data-v-0ab93ec9]{-webkit-transition:all .8s cubic-bezier(1,.5,.8,1);transition:all .8s cubic-bezier(1,.5,.8,1)}.slide-fade-enter[data-v-0ab93ec9],.slide-fade-leave-to[data-v-0ab93ec9]{-webkit-transform:translateX(10px);transform:translateX(10px);opacity:0}.cardForm[data-v-12c87747]{padding:30px 20px}.cardForm .w165[data-v-12c87747]{width:165px!important}.cardForm .w265[data-v-12c87747]{width:265px!important}.cardForm .tips[data-v-12c87747]{font-size:12px;color:#909399;margin-left:8px}.cardForm .step[data-v-12c87747]{margin:20px auto 48px}.cardForm[data-v-12c87747] .el-form .el-input-number .el-input,.cardForm[data-v-12c87747] .el-form .el-select .el-input{width:100%}.cardForm[data-v-12c87747] .el-form .wInput352{width:352px}.w500[data-v-12c87747] input,.w500[data-v-12c87747] textarea{width:500px}.info .row[data-v-440cdf32] .el-form-item{margin-bottom:12px}.w500[data-v-440cdf32] input,.w500[data-v-440cdf32] textarea{width:500px}.card-info[data-v-440cdf32]{padding:24px 20px;position:relative}.card-info .title[data-v-440cdf32]{font-size:14px;font-weight:700;color:#303133;line-height:22px;margin-bottom:24px}.card-info[data-v-440cdf32] .btn-area{display:none}.card-info[data-v-440cdf32] .el-form-item__content{color:#303133}.card-info[data-v-440cdf32] .el-form .el-input-number .el-input,.card-info[data-v-440cdf32] .el-form .el-select .el-input{width:100%}.card-info[data-v-440cdf32] .el-form .dm-input,.card-info[data-v-440cdf32] .el-form .el-input,.card-info[data-v-440cdf32] .el-form .el-input-number,.card-info[data-v-440cdf32] .el-form .el-select,.card-info[data-v-440cdf32] .el-form .el-textarea{width:352px}.cardSelect[data-v-1324332a] .el-button{width:350px!important}.cardSelect[data-v-1324332a] .reveal .card img.flag{display:none}[data-v-1324332a] .dashed-btn .el-button{width:350px;border-style:dashed;border-radius:2px}[data-v-1324332a] .dashed-btn .el-button:not(.is-disabled){background:#fff;color:#606266;border-color:#c0c4cc}[data-v-1324332a] .dashed-btn .el-button:not(.is-disabled):hover{border-color:#2f54eb;color:#2f54eb}[data-v-1324332a] .dashed-btn .el-button.is-disabled{color:#c0c4cc}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09e90e52"],{"9fdf":function(t,e,a){"use strict";var i=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:"pb20 clearfix flex-center"},[a("el-input",{staticClass:"mr10 w260",attrs:{clearable:"",placeholder:"请输入福利id"},on:{change:t.refresh},model:{value:t.listParams.search,callback:function(e){t.$set(t.listParams,"search",e)},expression:"listParams.search"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),a("el-input",{staticClass:"mr10 w260",attrs:{clearable:"",placeholder:"请输入操作人姓名搜索"},on:{change:t.refresh},model:{value:t.listParams.creatorName,callback:function(e){t.$set(t.listParams,"creatorName",e)},expression:"listParams.creatorName"}},[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:{label:"上传时间",prop:"createTime","min-width":"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{domProps:{innerHTML:t._s(t.listTime(e.row.createTime))}})]}}])}),a("el-table-column",{attrs:{prop:"creatorName",label:"操作人","min-width":"180px"}}),a("el-table-column",{attrs:{prop:"fileName",label:"文件名称","min-width":"200px"}}),a("el-table-column",{attrs:{prop:"giftName",label:"福利名称","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.goDetail(e.row)}}},[t._v(t._s(e.row.giftName||"--"))])]}}])}),a("el-table-column",{attrs:{label:"上传结果","min-width":"180px"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.statusFlag?a("div",[t._v("\n 成功"),a("span",{staticClass:"success-color"},[t._v(t._s(e.row.successNum))]),t._v("条,失败"),a("span",{staticClass:"danger-color"},[t._v(t._s(e.row.errorNum))]),t._v("条\n ")]):0===e.row.statusFlag?a("div",{staticClass:"state-point state-point-loading"},[t._v("上传中")]):a("div",{staticClass:"state-point state-point-error"},[t._v("上传失败")])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"130px"},scopedSlots:t._u([{key:"default",fn:function(e){return[2===e.row.statusFlag?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.uploadReview(e.row)}}},[t._v("重新上传")]):t._e(),1===e.row.statusFlag&&0!==e.row.errorNum?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.showDetail(e.row)}}},[t._v("查看失败原因")]):t._e()]}}])})],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),a("detail",{attrs:{"dialog-visible":t.dialogVisible,id:t.uploadLogId},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e}}})],1)},s=[],r=(a("c5f6"),a("fab6")),l=a("ed08"),n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看详情",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},closed:t.closed}},[a("div",[a("el-table",{staticClass:"el-table-list-mini-empty",attrs:{"tooltip-effect":"dark",data:t.tableList,"max-height":"450px"}},[a("el-table-column",{attrs:{prop:"errorMsg",label:"错误信息"}})],1),a("div",{staticClass:"clearfix"},[t.tableList.length?a("dm-pagination",{staticClass:"fr mb0",attrs:{small:"",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),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closed}},[t._v("关 闭")])],1)])},o=[],c=(a("8e6e"),a("ac6a"),a("456d"),a("ade3")),u=a("2934");function d(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 g(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?d(Object(a),!0).forEach((function(e){Object(c["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var p=u["a"].virtualErrorPage,h={name:"StockUploadRecordDetail",mixins:[r["c"]],props:{id:{type:[String,Number],required:!0},dialogVisible:{type:Boolean,default:!1}},data:function(){return{loading:!0,listParams:{id:"",key:"",currentPage:1,pageSize:20},total:0,tableList:[]}},methods:{closed:function(){this.$emit("update:dialogVisible",!1),this.loading=!1,this.tableList=[],this.listParams.currentPage=1,this.listParams.pageSize=20},getTableList:function(){var t=this,e=g(g({},this.listParams),{},{id:this.id,pageNum:this.listParams.currentPage});this.loading=!0,p(e).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())})).catch((function(){t.loading=!1}))}},watch:{dialogVisible:function(t){t&&this.getTableList()}}},m=h,f=a("2877"),b=Object(f["a"])(m,n,o,!1,null,null,null),v=b.exports,P=u["a"].virtualUploadLog,w={name:"StockRecord",components:{Detail:v},mixins:[r["c"],r["a"]],props:{type:{type:[Number,String],required:!0}},data:function(){return{loading:!1,dateTime:[new Date-6048e5,new Date],listParams:{source:this.type,search:"",creatorName:"",startTime:"",endTime:"",currentPage:1,pageSize:20},listParams2:{currentPage:1,pageSize:20},total:0,tableList:[],dialogVisible:!1,totalError:"",uploadLogId:""}},mounted:function(){this.getTableList()},methods:{listTime:l["g"],getTableList:function(){var t=this;this.loading||(this.formatterTimeFunc("startTime","endTime","yyyy-MM-dd","dateTime"),this.loading=!0,P(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})))},showDetail:function(t){var e=t.uploadLogId;this.uploadLogId=e,this.dialogVisible=!0},goDetail:function(t){0===t.source?this.$router.push({path:"/gift-manage/virtual-gift-detail",query:{giftId:t.giftId}}):this.$router.push({path:"/gic-card/info",query:{id:t.giftId}})},uploadReview:function(t){0===t.source?this.$router.push({path:"/gift-manage/virtual-gift",query:{giftId:t.giftId}}):this.$router.push({path:"/gic-card/list",query:{couponId:t.giftId}})}}},y=w,_=(a("b600"),Object(f["a"])(y,i,s,!1,null,"0deee3b0",null));e["a"]=_.exports},b600:function(t,e,a){"use strict";a("cbbd")},bf73: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("stock-record",{attrs:{type:"0"}})},s=[],r=a("9fdf"),l={name:"StockRecord",components:{stockRecord:r["a"]},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"礼品管理"},{breadName:"库存上传记录"}])}},n=l,o=a("2877"),c=Object(o["a"])(n,i,s,!1,null,null,null);e["default"]=c.exports},cbbd:function(t,e,a){},fab6:function(t,e,a){"use strict";a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return l}));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()}}},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",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]=""}}},l={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-3deefcb9"],{4855:function(t,e,a){"use strict";a("efc6")},"9fdf":function(t,e,a){"use strict";var i=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:"pb20 clearfix flex-center"},[a("el-input",{staticClass:"mr10 w260",attrs:{clearable:"",placeholder:"请输入福利id"},on:{change:t.refresh},model:{value:t.listParams.search,callback:function(e){t.$set(t.listParams,"search",e)},expression:"listParams.search"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),a("el-input",{staticClass:"mr10 w260",attrs:{clearable:"",placeholder:"请输入操作人姓名搜索"},on:{change:t.refresh},model:{value:t.listParams.creatorName,callback:function(e){t.$set(t.listParams,"creatorName",e)},expression:"listParams.creatorName"}},[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:{label:"上传时间",prop:"createTime","min-width":"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{domProps:{innerHTML:t._s(t.listTime(e.row.createTime))}})]}}])}),a("el-table-column",{attrs:{prop:"creatorName",label:"操作人","min-width":"180px"}}),a("el-table-column",{attrs:{prop:"fileName",label:"文件名称","min-width":"200px"}}),a("el-table-column",{attrs:{prop:"giftName",label:"福利名称","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.goDetail(e.row)}}},[t._v(t._s(e.row.giftName||"--"))])]}}])}),a("el-table-column",{attrs:{label:"上传结果","min-width":"180px"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.statusFlag?a("div",[t._v("\n 成功"),a("span",{staticClass:"success-color"},[t._v(t._s(e.row.successNum))]),t._v("条,失败"),a("span",{staticClass:"danger-color"},[t._v(t._s(e.row.errorNum))]),t._v("条\n ")]):0===e.row.statusFlag?a("div",{staticClass:"state-point state-point-loading"},[t._v("上传中")]):a("div",{staticClass:"state-point state-point-error"},[t._v("上传失败")])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"130px"},scopedSlots:t._u([{key:"default",fn:function(e){return[2===e.row.statusFlag?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.uploadReview(e.row)}}},[t._v("重新上传")]):t._e(),1===e.row.statusFlag&&0!==e.row.errorNum?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.showDetail(e.row)}}},[t._v("查看失败原因")]):t._e()]}}])})],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),a("detail",{attrs:{"dialog-visible":t.dialogVisible,id:t.uploadLogId},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e}}})],1)},r=[],s=(a("8e6e"),a("ac6a"),a("456d"),a("ade3")),n=(a("c5f6"),a("fab6")),l=a("ed08"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看详情",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},closed:t.closed}},[a("div",[a("el-table",{staticClass:"el-table-list-mini-empty",attrs:{"tooltip-effect":"dark",data:t.tableList,"max-height":"450px"}},[a("el-table-column",{attrs:{prop:"errorMsg",label:"错误信息"}})],1),a("div",{staticClass:"clearfix"},[t.tableList.length?a("dm-pagination",{staticClass:"fr mb0",attrs:{small:"",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),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closed}},[t._v("关 闭")])],1)])},c=[],u=a("2934");function d(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 p(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?d(Object(a),!0).forEach((function(e){Object(s["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var g=u["a"].virtualErrorPage,f={name:"StockUploadRecordDetail",mixins:[n["c"]],props:{id:{type:[String,Number],required:!0},dialogVisible:{type:Boolean,default:!1}},data:function(){return{loading:!0,listParams:{id:"",key:"",currentPage:1,pageSize:20},total:0,tableList:[]}},methods:{closed:function(){this.$emit("update:dialogVisible",!1),this.loading=!1,this.tableList=[],this.listParams.currentPage=1,this.listParams.pageSize=20},getTableList:function(){var t=this,e=p(p({},this.listParams),{},{id:this.id,pageNum:this.listParams.currentPage});this.loading=!0,g(e).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())})).catch((function(){t.loading=!1}))}},watch:{dialogVisible:function(t){t&&this.getTableList()}}},h=f,m=a("2877"),b=Object(m["a"])(h,o,c,!1,null,null,null),v=b.exports;function P(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 y(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?P(Object(a),!0).forEach((function(e){Object(s["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):P(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var w=u["a"].virtualUploadLog,O={name:"StockRecord",components:{Detail:v},mixins:[n["c"],n["a"]],props:{type:{type:[Number,String],required:!0},queryParams:{type:Object,default:function(){}}},data:function(){return{loading:!1,dateTime:[new Date-6048e5,new Date],listParams:{source:this.type,search:"",creatorName:"",startTime:"",endTime:"",currentPage:1,pageSize:20},listParams2:{currentPage:1,pageSize:20},total:0,tableList:[],dialogVisible:!1,totalError:"",uploadLogId:""}},mounted:function(){this.getTableList()},methods:{listTime:l["g"],getTableList:function(){var t=this;if(!this.loading){this.formatterTimeFunc("startTime","endTime","yyyy-MM-dd","dateTime"),this.loading=!0;var e=y(y({},this.listParams),this.queryParams);w(e).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}))}},showDetail:function(t){var e=t.uploadLogId;this.uploadLogId=e,this.dialogVisible=!0},goDetail:function(t){0===t.source?this.$router.push({path:"/gift-manage/virtual-gift-detail",query:{giftId:t.giftId}}):this.$router.push({path:"/gic-card/info",query:{id:t.giftId}})},uploadReview:function(t){0===t.source?this.$router.push({path:"/gift-manage/virtual-gift",query:{giftId:t.giftId}}):this.$router.push({path:"/gic-card/list",query:{couponId:t.giftId}})}}},_=O,x=(a("4855"),Object(m["a"])(_,i,r,!1,null,"b43f3084",null));e["a"]=x.exports},bf73: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("stock-record",{attrs:{type:"0"}})},r=[],s=a("9fdf"),n={name:"StockRecord",components:{stockRecord:s["a"]},created:function(){this.$emit("updateBread",[{breadName:"福利中心"},{breadName:"礼品管理"},{breadName:"库存上传记录"}])}},l=n,o=a("2877"),c=Object(o["a"])(l,i,r,!1,null,null,null);e["default"]=c.exports},efc6:function(t,e,a){},fab6:function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return n}));var i=a("ed08"),r={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",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[t]=Object(i["e"])(this[r][0],a),this.listParams[e]=Object(i["e"])(this[r][1],a)):this.listParams[t]=this.listParams[e]=""}}},n={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
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.
......@@ -48,6 +48,7 @@
<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.10.js"></script><!-- 输入框 -->
<script src="//web-1251519181.file.myqcloud.com/components/welfare-selector.0.0.3.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><!-- 富文本编辑器 -->
</body>
......
......@@ -21,7 +21,8 @@ let packages = {
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', // 保存配置 - 转增扣库存
};
packages = getFetch(packages, welfarePrefix);
......
......@@ -8,7 +8,12 @@ import config, { welfarePrefix } from '@/config';
// 卡券相关接口
let card = {
cardList: '/coupon/coupon-page', // 卡券列表
cardList: {
// 卡券列表
url: '/coupon/coupon-page',
method: 'post',
useFormData: true,
},
addCard: {
// 新增卡券
url: '/coupon/save-coupon',
......
......@@ -118,11 +118,6 @@ body .damo-goods-selector{
.el-input-number__decrease {
bottom: 2px !important;
}
.hide-right {
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
}
// 仿表格
......@@ -529,3 +524,44 @@ p.cell-time {
}
}
// 通用title
.common-title {
border-bottom: 1px solid #E4E7ED;
padding-bottom: 9px;
line-height: 1;
padding-left: 11px;
position: relative;
font-size: 14px;
font-weight: 500;
color: #303133;
&::before {
content: '';
width: 3px;
height: 14px;
background: #2F54EB;
left: 0;
top: 0;
display: block;
position: absolute;
}
}
// 固定底部的按钮
.dm-aside-menu + .layout-content-area {
.fixed-bottom {
width: calc(100% - 200px);
}
}
.fixed-bottom {
position: fixed;
bottom: 0;
right: 0;
width: 100%;
height: 56px;
background: #FFFFFF;
box-shadow: 0px -2px 8px 0px rgba(220, 223, 230, 0.6);
z-index: 2;
display: flex;
justify-content: center;
align-items: center;
}
\ No newline at end of file
......@@ -98,6 +98,11 @@ export default {
type: [ Number, String ], // 0 礼品 1 卡券
required: true,
},
queryParams: {
// 额外参数
type: Object,
default: () => {}
}
},
data() {
return {
......@@ -134,7 +139,11 @@ export default {
}
this.formatterTimeFunc('startTime', 'endTime', 'yyyy-MM-dd', 'dateTime');
this.loading = true;
virtualUploadLog(this.listParams)
const params = {
...this.listParams,
...this.queryParams
};
virtualUploadLog(params)
.then((res) => {
this.loading = false;
const data = res.result;
......
......@@ -125,6 +125,12 @@ export const startDayOptionsMonth = Object.keys(dicMap.month).map(key => {
// 匹配卡券状态 mapping表中的数据
/**
*
* @param {Object} item cardItemObj
* @returns {Object}
* _status: -1未知、1未生效、2使用中、3已过期、4已禁用
*/
export const mappingCardStatus = (item) => {
const { statusFlag, cardEffectiveMode, expireDate, startDate } = item;
let _status = -1; // eslint-disable-line
......
......@@ -9,9 +9,6 @@ export default [
{
path: 'list',
component: () => import(/* webpackChunkName: "gic-card" */'@/views/card/gic-card/card-list.vue'),
// meta: {
// keepAlive: true,
// }
},
// 领取记录
{
......
......@@ -22,8 +22,8 @@
<el-form-item label="库存消耗方式" class="is-required" prop="stockType">
<el-checkbox-group :disabled="canEdit" v-model="stockType">
<!-- (0:占用,1:动态 , 2占用+动态) -->
<el-checkbox :label="0">固定库存</el-checkbox>
<el-checkbox :label="1">实时库存</el-checkbox>
<el-checkbox :label="0"><el-tooltip open-delay="200" content="通过占用的方式获得固定可用库存,不会被其他应用/活动所消耗" placement="top"><span class="tooltip-icon">固定库存</span></el-tooltip></el-checkbox>
<el-checkbox :label="1"><el-tooltip open-delay="200" content="不占用库存,使用福利中心“可占库存”,与其他应用使用同个库存" placement="top"><span class="tooltip-icon">实时库存</span></el-tooltip></el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item label="操作人权限" prop="operAuthType">
......@@ -37,13 +37,14 @@
<el-tooltip content="若添加的卡券为固定有效期,仅允许添加和有效期限时间重合的卡券" placement="bottom" slot="label" open-delay="200">
<span class="tooltip-icon">添加卡券</span>
</el-tooltip>
<div v-loading="cardLoading">
<!-- <div v-loading="cardLoading">
<div class="mb10">
卡券id:<el-input v-model="couponForm.couponId" style="width:200px" class="mr10" />
库存值:<el-input v-model="couponForm.stock" style="width:100px" />
<el-button type="text" @click="addCard" class="ml5">保存</el-button>
</div>
</div>
</div> -->
<el-button class="dashed" @click="showSelector = true">添加卡券</el-button>
<div class="imitation-table" v-if="couponList.length" style="width:100%;" v-loading="cardLoading">
<el-row class="thead">
<el-col :span="5">卡券信息</el-col>
......@@ -58,7 +59,7 @@
<el-row>
<el-col :span="5">
<el-tag class="mr5">{{ cardType[item.cardType].label }}</el-tag>
<router-link target="_blank" :to="{path:'/gic-card/info',query:{ id: item.couponId }}">{{ item.cardName }}</router-link>
<router-link target="_blank" :to="{path:'/gic-card/info',query:{ id: item.couponId }}" :title="item.couponId">{{ item.cardName }}</router-link>
</el-col>
<el-col :span="5"><span v-html="effectiveDateFormate(item)"></span></el-col>
<el-col :span="4">{{ item.activityRemainedStock }}</el-col>
......@@ -81,7 +82,17 @@
</el-form-item>
</el-form>
<div class="hidden">
<dm-card-select :before-submit="beforeSubmit" ref="cardSelect" read-only :member-card-id="currentAreaId" @selectData="(val) => { selectData(val, idx) }" :min-stock="ruleForm.packageStock" fix-member-card :unuse-list="couponList" />
<!-- 20210302 产品要求 卡券包中添加卡券只能选择固定库存 -->
<dm-welfare-selector
:show-type-select="false"
:visible.sync="showSelector"
model="coupon"
type="coupon"
:params="params"
:disable-ids="couponList.map(v => v.couponId)"
:disable-filters="['memberCardId', 'stockType']"
stock-type="0"
@change="saveWelfare"/>
</div>
</div>
</template>
......@@ -160,6 +171,7 @@ export default {
return now.getTime() < Date.now() - 24 * 60 * 60 * 1000;
}
},
showSelector: false, // 是否展示福利选择器
isAdd: this.$route.meta.type === 'add',
isEdit: this.$route.meta.type === 'edit',
isInfo: this.$route.meta.type === 'info',
......@@ -178,11 +190,13 @@ export default {
},
methods: {
// 添加卡券
addCard() {
saveWelfare(welfare) {
console.log(welfare);
const { welfareId, customStock } = welfare;
const params = {
couponPackageId: this.couponPackageId,
couponId: this.couponForm.couponId,
stock: this.couponForm.stock
couponId: welfareId,
stock: customStock
};
this.cardLoading = true;
addPackageItem(params).then(res=> {
......@@ -191,6 +205,7 @@ export default {
}).catch(() => {
this.cardLoading = false;
});
},
// 删除卡券
delCard({ couponId }) {
......@@ -321,6 +336,14 @@ export default {
},
},
computed: {
params() {
return {
memberCardId: this.currentAreaId,
startCreateTime: formatDateTimeByType(this.dateTime[0], 'yyyy-MM-dd'),
endCreateTime: formatDateTimeByType(this.dateTime[1], 'yyyy-MM-dd'),
minRemainedStock: this.ruleForm.packageStock
};
},
/**
* 1.过期卡券包无法修改
* 2.有效期未开始,全都可以改,除了开始时间不能早于当前时间
......
......@@ -16,13 +16,13 @@
<sort-btn class="mr10" :sort-type="sortType1" />
<el-date-picker class="mr10" v-model="dateTime" type="daterange" range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期" @change="refresh" />
<label class="ml5 mr8">成本</label>
<el-input-number class="prefix-amount hide-right w100" @change="refresh" v-model="listParams.costPriceBegin" controls-position="right" :precision="2" :min="listParams.costPriceBegin" :max="10000" placeholder="请输入" />
<el-input-number class="prefix-amount w100" @change="refresh" v-model="listParams.costPriceBegin" controls-position="right" :precision="2" :min="listParams.costPriceBegin" :max="10000" placeholder="请输入" />
<label class="ml5 mr5">-</label>
<el-input-number class="prefix-amount hide-right w100" @change="refresh" v-model="listParams.costPriceEnd" controls-position="right" :precision="2" :min="1" :max="100000" placeholder="请输入" />
<el-input-number class="prefix-amount w100" @change="refresh" v-model="listParams.costPriceEnd" controls-position="right" :precision="2" :min="1" :max="100000" placeholder="请输入" />
<label class="ml15 mr8">可占用库存</label>
<el-input-number class="hide-right w100" @change="refresh" v-model="listParams.remainedStockBegin" controls-position="right" :precision="0" :min="1" :max="10000" placeholder="请输入" />
<el-input-number class="w100" @change="refresh" v-model="listParams.remainedStockBegin" controls-position="right" :precision="0" :min="1" :max="10000" placeholder="请输入" />
<label class="ml5 mr5">-</label>
<el-input-number class="hide-right w100 mrAuto" @change="refresh" v-model="listParams.remainedStockEnd" controls-position="right" :precision="0" :min="listParams.remainedStockBegin" :max="100000" placeholder="请输入" />
<el-input-number class="w100 mrAuto" @change="refresh" v-model="listParams.remainedStockEnd" controls-position="right" :precision="0" :min="listParams.remainedStockBegin" :max="100000" placeholder="请输入" />
<dm-perm-button type="danger" class="specter" v-show="active === 'list'" :disabled="!multipleSelection.length" @click="mutiDel">批量删除</dm-perm-button>
</div>
<el-table tooltip-effect="dark" :data="tableList" style="width:100%">
......
<template>
<stock-list :welfare-id="$route.query.id" type="4"></stock-list>
<stock-list :welfare-id="$route.query.id" type="4" :query-params="queryParams"></stock-list>
</template>
<script>
......
......@@ -66,9 +66,9 @@ export default {
},
floorId: '', // 当前楼层id
floor: [
{ name: '卡券基本信息', targetId: 'f1' },
{ name: '卡券适用信息', targetId: 'f2' },
{ name: '卡券说明信息', targetId: 'f3' },
{ name: '基本信息', targetId: 'f1' },
{ name: '领取和使用限制', targetId: 'f2' },
{ name: '适用信息', targetId: 'f3' },
],
result: { //
visible: false,
......@@ -122,16 +122,6 @@ export default {
}
return '--';
},
// 获取子应用信息 --服务号 会员卡 审核配置
// async handleGetSubAppByInfo() {
// this.loading = true;
// let res1 = await getSubAppById({}, { memberCardId: this.currentAreaId, moduleCode: this.$store.getters.moduleCode });
// let res2 = await auditSettingInfo({ memberCardId: this.currentAreaId });
// if (res1.code === SUCCESS_CODE && res2.code === SUCCESS_CODE) {
// this.subapp = { ...res1.result, ...{ config: res2.result }};
// this.loading = false;
// }
// },
// 提交表单
submitForm() {
if (this.loading) {
......@@ -161,7 +151,8 @@ export default {
updateCard(params).then(res => {
this.$emit('updateLoading', false);
this.loading = false;
this.result.info = this.needCheck ? '卡券保存并提交审核,请尽快通知审核人员进行审核。' : '卡券保存成功';
// this.result.info = this.needCheck ? '卡券保存并提交审核,请尽快通知审核人员进行审核。' : '卡券保存成功';
this.result.info = '卡券保存成功';
this.result.title = '操作成功';
this.result.visible = true;
this.submitType = 1;
......@@ -209,37 +200,37 @@ export default {
this.linkData2 = JSON.parse(this.info.cardJumpLink);
}
// 给卡券适用信息赋值
info.applyList.forEach(v => {
const { applyType, feeLimit, onlyFlag, maxDiscountAmount, maxDiscountGoodsCount, goodsFilterId, storeFilterId, shopFilter } = v;
if (applyType === 1) {
// 线下适用
this.xxsy = {
switch: true,
feeLimit,
onlyFlag,
storeFilterId,
goodsFilterId,
};
}
if (applyType === 2) {
let shop;
if (shopFilter) {
shop = JSON.parse(shopFilter).map(v => {
return `${v.name}(id:${v.id.slice(-5)})`;
});
}
// GIC微商城适用
this.gicmall = {
switch: true,
feeLimit,
onlyFlag,
goodsFilterId,
maxDiscountAmount,
maxDiscountGoodsCount,
shopFilter: shop
};
}
});
// info.applyList.forEach(v => {
// const { applyType, feeLimit, onlyFlag, maxDiscountAmount, maxDiscountGoodsCount, goodsFilterId, storeFilterId, shopFilter } = v;
// if (applyType === 1) {
// // 线下适用
// this.xxsy = {
// switch: true,
// feeLimit,
// onlyFlag,
// storeFilterId,
// goodsFilterId,
// };
// }
// if (applyType === 2) {
// let shop;
// if (shopFilter) {
// shop = JSON.parse(shopFilter).map(v => {
// return `${v.name}(id:${v.id.slice(-5)})`;
// });
// }
// // GIC微商城适用
// this.gicmall = {
// switch: true,
// feeLimit,
// onlyFlag,
// goodsFilterId,
// maxDiscountAmount,
// maxDiscountGoodsCount,
// shopFilter: shop
// };
// }
// });
this.loading = false;
this.$emit('updateLoading', false);
}).finally(() => {
......
<template>
<div>
<div class="card-info lose-floor-width" id="wrapper">
<p class="title" id="f1">卡券基本信息</p>
<div class="card-info" id="wrapper">
<div class="common-title mb25" id="f1">基本信息</div>
<!-- label-position="left" label-width="110px" -->
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="150px" class="info pb10">
<el-row :gutter="20" class="row">
......@@ -46,6 +46,7 @@
<div v-if="info.codeSuffixFlag" class="pt20">固定结尾: {{ info.codeSuffix }}</div>
</el-form-item>
<el-form-item label="库存数量">{{ info.couponStock }}</el-form-item>
<div class="common-title mb25 mt60" id="f2">领取和使用限制</div>
<el-form-item label="领券限制">{{ info.getLimit }} /</el-form-item>
<el-form-item label="有效期">
<div>{{ effectiveDateFormate(info) }}</div>
......@@ -85,9 +86,25 @@
<el-form-item label="操作人权限">
<dm-acc-group-select :etype.sync="info.operAuthType" :group-ids.sync="operAuth" read-only />
</el-form-item>
<el-form-item prop="useExplain" label="使用说明">
<dm-input v-if="isEdit" type="textarea" :rows="4" v-model="ruleForm.useExplain" class="w500" :maxlength="500" />
<div v-if="isInfo" class="word-break">{{ ruleForm.useExplain || '--' }}</div>
</el-form-item>
<el-form-item label="适用商品说明">
<dm-input v-if="isEdit" type="textarea" :rows="4" v-model="ruleForm.adaptGoodsExplain" class="w500" :maxlength="50" placeholder="选填" />
<div v-if="isInfo" class="word-break">{{ ruleForm.adaptGoodsExplain || '--' }}</div>
</el-form-item>
<el-form-item label="适用门店说明">
<dm-input v-if="isEdit" type="textarea" :rows="4" v-model="ruleForm.adaptStoreExplain" class="w500" :maxlength="50" placeholder="选填" />
<div v-if="isInfo" class="word-break">{{ ruleForm.adaptStoreExplain || '--' }}</div>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm" v-if="!isInfo">保存</el-button>
</el-form-item>
</el-col>
</el-row>
<p class="title mt60" id="f2">卡券适用信息</p>
</el-form>
<div class="common-title mb25 mt60" id="f3">适用信息</div>
<!-- 线下适用门店 -->
<el-form-item label="线下门店适用">
<el-switch v-model="xxsy.switch" disabled />
......@@ -101,8 +118,7 @@
<!-- <el-form-item prop="verificationType" label="核销方式" v-show="info.cardType === 2">{{ info.verificationType ? '收银台录入核销' : '会员自助核销' }}</el-form-item> -->
<el-form-item label="线下适用门店">
<div>
<dm-store-select ref="newStoreSelect" v-if="xxsy.storeFilterId" :disabled="true" :store-widget-id="xxsy.storeFilterId" :reback-flag="true" />
<span v-else>未配置</span>
<dm-store-select :selector-id="xxsy.storeFilterId" read-only />
</div>
</el-form-item>
<el-form-item label="线下适用商品" v-if="info.cardType !== 2">
......@@ -112,6 +128,7 @@
</template>
<!-- GIC微商城适用 -->
<el-form-item label="GIC微商城适用">
<el-switch v-model="gicmall.switch" disabled />
</el-form-item>
<template v-if="gicmall.switch">
......@@ -127,38 +144,6 @@
<span v-else>未配置</span>
</el-form-item>
</template>
<!-- 微盟微商城适用 -->
<!-- <el-form-item label="微盟微商城适用">
<el-switch v-model="wmmall.switch" disabled />
</el-form-item>
<template v-if="wmmall.switch">
<el-form-item label="消费金额门槛">
{{ wmmall.feeLimit }}
<el-checkbox class="ml20" v-model="wmmall.onlyFlag" disabled>不与其它优惠共享</el-checkbox>
</el-form-item>
<el-form-item label="优惠金额封顶" v-if="info.cardType === 1">{{ wmmall.maxDiscountAmount }} </el-form-item>
<el-form-item label="最大商品优惠数" v-if="info.cardType === 1">{{ wmmall.maxDiscountGoodsCount }} </el-form-item>
<el-form-item label="适用商品" v-if="info.cardType !== 2">
<vue-gic-goods-selector-new ref="selector3" :readOnly="true" :id="wmmall.goodsFilterId" />
</el-form-item>
</template> -->
<p class="title mt60" id="f3">卡券说明信息</p>
<el-form-item prop="useExplain" label="使用说明">
<dm-input v-if="isEdit" type="textarea" :rows="4" v-model="ruleForm.useExplain" class="w500" :maxlength="500" />
<div v-if="isInfo" class="word-break">{{ ruleForm.useExplain || '--' }}</div>
</el-form-item>
<el-form-item label="适用商品说明">
<dm-input v-if="isEdit" type="textarea" :rows="4" v-model="ruleForm.adaptGoodsExplain" class="w500" :maxlength="50" placeholder="选填" />
<div v-if="isInfo" class="word-break">{{ ruleForm.adaptGoodsExplain || '--' }}</div>
</el-form-item>
<el-form-item label="适用门店说明">
<dm-input v-if="isEdit" type="textarea" :rows="4" v-model="ruleForm.adaptStoreExplain" class="w500" :maxlength="50" placeholder="选填" />
<div v-if="isInfo" class="word-break">{{ ruleForm.adaptStoreExplain || '--' }}</div>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm" v-if="!isInfo">保存</el-button>
</el-form-item>
</el-form>
<!-- 楼层 -->
......
<template>
<stock-record type="1"></stock-record>
<stock-record type="1" :query-params="queryParams"></stock-record>
</template>
<script>
......@@ -11,6 +11,13 @@ export default {
},
created() {
this.$emit('updateBread', [ { breadName: '福利中心' }, { breadName: 'GIC卡券', breadPath: '/gic-card/list' }, { breadName: '库存上传记录' } ]);
},
computed: {
queryParams() {
return {
memberCardId: this.currentAreaId
};
}
}
};
</script>
<template>
<div class="p20" v-loading="loading">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="150px" style="min-height:400px;">
<el-form-item label="转赠扣库存" prop="transferReduceFlag">
<el-switch :active-value="1" :inactive-value="0" v-model="ruleForm.transferReduceFlag"></el-switch>
<div class="gray03 fz12">开启表示赠送领取成功后,该卡券库存将会从福利中心的可占用库存扣除数量,若福利中心卡券可占用库存为 0,该卡券不可被赠送。</div>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm">保存</el-button>
<span class="ml10 gray03 fz12" v-if="ruleForm.updateTime">最近修改:{{formatDateTimeByType(ruleForm.updateTime, 'yyyy-MM-dd HH:mm:ss')}}</span>
</el-form-item>
</el-form>
</div>
</template>
<script>
import { formatDateTimeByType } from '@/utils/index';
import api from '@/api/card-package';
const { saveCustomSetting, checkCustomSetting } = api;
export default {
name: 'SalesReturnSetting',
data() {
return {
loading: false,
ruleForm: {
transferReduceFlag: 0, // 是否收货自动加库存 0否1是
createTime: '',
updateTime: ''
},
rules: {},
};
},
created() {
this.$emit('updateBread', [ { breadName: '福利中心' }, { breadName: '通用设置' } ]);
},
mounted() {
this.getDetail();
},
methods: {
formatDateTimeByType,
submitForm() {
if (this.loading) {
return;
}
this.loading = true;
saveCustomSetting({
transferReduceFlag: this.ruleForm.transferReduceFlag
}).then(res => {
this.loading = false;
this.getDetail();
this.$tips({ message: '保存成功', type: 'success' });
}).finally(() => {
this.loading = false;
});
},
// 获取配置详情
getDetail() {
checkCustomSetting().then(res => {
this.ruleForm = { ...this.ruleForm, ...res.result };
});
}
},
};
</script>
......@@ -112,10 +112,12 @@ export default {
giftSkuStrand: skuList[i].giftSkuStrand, // 礼品sku规格信息
giftId: skuList[i].giftId
});
for (let j = 0; j < JSON.parse(skuList[i].giftSkuStrand).length; j++) {
mapData[i].id.push(JSON.parse(skuList[i].giftSkuStrand)[j].specStandardValueId);
if(skuList[i].giftSkuStrand){
for (let j = 0; j < JSON.parse(skuList[i].giftSkuStrand).length; j++) {
mapData[i].id.push(JSON.parse(skuList[i].giftSkuStrand)[j].specStandardValueId);
}
mapData[i].mapId = mapData[i].id.join('_');
}
mapData[i].mapId = mapData[i].id.join('_');
}
for (let item of mapData) {
skuSellObj[item.mapId] = {
......@@ -133,8 +135,7 @@ export default {
this.skuSellObj = deepClone(skuSellObj);
console.log(this.skuSellObj);
}
this.goodsStandardInfo = JSON.parse(this.giftSpecInfo); // 礼品规格信息
console.log(this.goodsStandardInfo);
this.goodsStandardInfo = this.giftSpecInfo ? JSON.parse(this.giftSpecInfo) : []; // 礼品规格信息
if (this.goodsStandardInfo.length > 0) {
this.isStdImg = this.goodsStandardInfo[0].standardimg === 2 ? true : false;
} else {
......@@ -142,6 +143,8 @@ export default {
}
if (this.goodsStandardInfo.length > 0) {
this.getSkuList();
}else{
this.giftSkuId = skuList[0].giftSkuId;
}
}
});
......@@ -225,7 +228,7 @@ export default {
}
this.skuSellObj = deepClone(this.skuSellObj);
this.costPrice = this.skuSellObj[this.goodsSkuList[0].mapId].giftSkuCostPrice;
this.giftSkuId = this.skuSellObj[this.goodsSkuList[0].mapId].giftSkuId;
// this.giftSkuId = this.skuSellObj[this.goodsSkuList[0].mapId].giftSkuId;
this.refash = !this.refash;
},
combine(arr) {
......
......@@ -134,10 +134,12 @@ export default {
giftSkuStrand: skuList[i].giftSkuStrand, // 礼品sku规格信息
giftId: skuList[i].giftId
});
for (let j = 0; j < JSON.parse(skuList[i].giftSkuStrand).length; j++) {
mapData[i].id.push(JSON.parse(skuList[i].giftSkuStrand)[j].specStandardValueId);
if(skuList[i].giftSkuStrand){
for (let j = 0; j < JSON.parse(skuList[i].giftSkuStrand).length; j++) {
mapData[i].id.push(JSON.parse(skuList[i].giftSkuStrand)[j].specStandardValueId);
}
mapData[i].mapId = mapData[i].id.join('_');
}
mapData[i].mapId = mapData[i].id.join('_');
}
for (let item of mapData) {
skuSellObj[item.mapId] = {
......@@ -155,8 +157,7 @@ export default {
this.skuSellObj = deepClone(skuSellObj);
console.log(this.skuSellObj);
}
this.goodsStandardInfo = JSON.parse(this.giftSpecInfo); // 礼品规格信息
console.log(this.goodsStandardInfo);
this.goodsStandardInfo = this.giftSpecInfo ? JSON.parse(this.giftSpecInfo) : []; // 礼品规格信息
if (this.goodsStandardInfo.length > 0) {
this.isStdImg = this.goodsStandardInfo[0].standardimg === 2 ? true : false;
} else {
......@@ -164,6 +165,8 @@ export default {
}
if (this.goodsStandardInfo.length > 0) {
this.getSkuList();
}else{
this.giftSkuId = skuList[0].giftSkuId;
}
}
});
......@@ -290,7 +293,7 @@ export default {
}
}
this.skuSellObj = deepClone(this.skuSellObj);
this.giftSkuId = this.skuSellObj[this.goodsSkuList[0].mapId].giftSkuId;
// this.giftSkuId = this.skuSellObj[this.goodsSkuList[0].mapId].giftSkuId;
console.log(this.skuSellObj);
this.refash = !this.refash;
},
......
......@@ -656,10 +656,12 @@ export default {
giftSkuStrand: skuList[i].giftSkuStrand,
giftId: skuList[i].giftId
});
for (let j = 0; j < JSON.parse(skuList[i].giftSkuStrand).length; j++) {
mapData[i].id.push(JSON.parse(skuList[i].giftSkuStrand)[j].specStandardValueId);
if(skuList[i].giftSkuStrand){
for (let j = 0; j < JSON.parse(skuList[i].giftSkuStrand).length; j++) {
mapData[i].id.push(JSON.parse(skuList[i].giftSkuStrand)[j].specStandardValueId);
}
mapData[i].mapId = mapData[i].id.join('_');
}
mapData[i].mapId = mapData[i].id.join('_');
}
for (let item of mapData) {
skuSellObj[item.mapId] = {
......@@ -1320,7 +1322,7 @@ export default {
// if(this.btnLoading) return;
if (this.goodsStandardInfo.length > 0) {
for (let item of this.goodsStandardInfo) {
if (item.specStandardId == '') {
if (item.specId == '') {
this.$message.error('请选择规格');
return false;
}
......
......@@ -62,7 +62,9 @@
<dm-preview-img :img="scope.row.giftImgUrl" style="display:inline-block;border: 1px solid #dcdfe6;padding:4px;border-radius:2px;" width="50" height="50"></dm-preview-img>
<div class="text">
<p class="goods-descript">
<span class="inline-block hidden-data" :title="scope.row.giftName">{{ scope.row.giftName || '--' }}</span>
<el-tooltip class="item" effect="dark" :content="scope.row.giftName" placement="top">
<span class="inline-block hidden-data">{{ scope.row.giftName || '--' }}</span>
</el-tooltip>
<el-popover placement="top" trigger="hover" @show="getName(scope.row.giftName)">
<div>
<dm-input style="width:260px" type="text" v-model="changeName" :byte-type="1" :maxlength="30"> </dm-input>
......@@ -679,6 +681,7 @@ export default {
line-height: 14px;
position: relative;
.goods-descript {
display: flex;
color: #606266;
line-height: 18px;
font-size: 14px;
......@@ -728,7 +731,7 @@ export default {
line-height: 32px;
}
.hidden-data{
max-width: 200px;
max-width: 180px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
......
......@@ -10,7 +10,7 @@ export default {
stockList
},
created() {
this.$emit('updateBread', [ { breadName: '礼品管理' }, { breadName: '实物礼品', breadPath: '/gift-manage/real-gift' }, { breadName: '库存记录' } ]);
this.$emit('updateBread', [ { breadName: '福利中心' }, { breadName: '礼品管理' }, { breadName: '实物礼品', breadPath: '/gift-manage/real-gift' }, { breadName: '库存记录' } ]);
}
};
</script>
......@@ -61,7 +61,9 @@
<dm-preview-img :img="scope.row.giftImgUrl" style="display:inline-block;border: 1px solid #dcdfe6;padding:4px;border-radius:2px;" width="50" height="50"></dm-preview-img>
<div class="text">
<p class="goods-descript">
<span class="inline-block hidden-data" :title="scope.row.giftName">{{ scope.row.giftName }}</span>
<el-tooltip class="item" effect="dark" :content="scope.row.giftName" placement="top">
<span class="inline-block hidden-data">{{ scope.row.giftName || '--' }}</span>
</el-tooltip>
<el-popover placement="top" trigger="click" @show="getName(scope.row.giftName)">
<div>
<dm-input style="width:260px" type="text" v-model="changeName" :byte-type="1" :maxlength="30"> </dm-input>
......@@ -747,6 +749,7 @@ export default {
line-height: 14px;
position: relative;
.goods-descript {
display: flex;
color: #606266;
line-height: 18px;
font-size: 14px;
......@@ -796,7 +799,7 @@ export default {
line-height: 32px;
}
.hidden-data{
max-width: 200px;
max-width: 180px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
......
......@@ -10,7 +10,7 @@ export default {
stockList
},
created() {
this.$emit('updateBread', [ { breadName: '礼品管理' }, { breadName: '虚拟礼品', breadPath: '/gift-manage/virtual-gift' }, { breadName: '库存记录' } ]);
this.$emit('updateBread', [ { breadName: '福利中心' }, { breadName: '礼品管理' }, { breadName: '虚拟礼品', breadPath: '/gift-manage/virtual-gift' }, { breadName: '库存记录' } ]);
}
};
</script>
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