| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706 |
- <?php
- use common\helpers\ComponentHelper;
- ComponentHelper::loadComponentView('com-rich-text');
- ComponentHelper::loadComponentView('com-dialog-select');
- ComponentHelper::loadComponentView('com-image');
- ComponentHelper::loadComponentView('store-list-view', __DIR__ . '/../compoents/store');
- ComponentHelper::loadComponentView('store-score-apply', __DIR__ . '/../compoents/store');
- ComponentHelper::loadComponentView('store-score-protocol', __DIR__ . '/../compoents/store');
- ComponentHelper::loadComponentView('com-store-list', __DIR__ . '/../compoents/store');
- use common\helpers\AddonHelper;
- ComponentHelper::loadComponentView('coupon-select', AddonHelper::getAddonRootPath('Coupon') . 'backend/views/components');
- ComponentHelper::loadComponentView('pattern-rebate', __DIR__ . '/');
- ComponentHelper::loadComponentView('com-dialog-store');
- ?>
- <div id="app" v-cloak>
- <el-card v-loading="loading" style="border:0" shadow="never" body-style="padding: 0 0;">
- <el-tabs v-model="activeName" @tab-click="handleClick">
- <el-tab-pane label="基本设置" name="basic">
- <?php ComponentHelper::loadComponentView('basic', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="收银设置" name="cashier" class="cashier-tabs">
- <?php ComponentHelper::loadComponentView('cashier', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="模式设置" name="mode" class="cashier-tabs">
- <?php ComponentHelper::loadComponentView('pattern', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="入驻设置" name="enter">
- <?php ComponentHelper::loadComponentView('enter', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="装修风格" name="decoration">
- <?php ComponentHelper::loadComponentView('decoration', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="商品设置" name="goodsStore">
- <?php ComponentHelper::loadComponentView('goods_store', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="门店设置" name="store">
- <?php ComponentHelper::loadComponentView('store', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="资产设置" name="finance">
- <?php ComponentHelper::loadComponentView('finance', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="支付方式设置" name="payment">
- <?php ComponentHelper::loadComponentView('payment', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="提示语设置" name="tips">
- <?php ComponentHelper::loadComponentView('tips', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="广告设置" name="advertising">
- <?php ComponentHelper::loadComponentView('advertising', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="积分赠送设置" name="scoreGive">
- <?php ComponentHelper::loadComponentView('score_give', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="评分设置" name="rating_setting">
- <?php ComponentHelper::loadComponentView('rating_setting', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="短信提醒" name="sms_setting">
- <?php ComponentHelper::loadComponentView('sms_setting', __DIR__ . '/'); ?>
- </el-tab-pane>
- <el-tab-pane label="消息提醒" name="notice">
- <?php ComponentHelper::loadComponentView('notice', __DIR__ . '/'); ?>
- </el-tab-pane>
- </el-tabs>
- </el-card>
- </div>
- <script>
- const app = new Vue({
- el: '#app',
- data() {
- // 自定义校验规则 (积分抵扣校验)
- let checkDeductionMin = (rule, value, callback) => {
- let fieldArr = rule.field.split('.')
- if(value < 0){
- callback(new Error('不能小于0'));
- return
- } else if(fieldArr.length == 4 && fieldArr[2]*1){
- let index = fieldArr[2]
- let item = this.paymentForm.score_deduction.deduction_proportion[index-1]
- if (parseFloat(value) <= parseFloat(item.max)) {
- callback(new Error('不能小于上个区间的结束值'));
- return
- }
- }
- callback();
- };
- let checkDeductionMax = (rule, value, callback) => {
- let fieldArr = rule.field.split('.')
- if(value < 0){
- value = 0
- callback(new Error('不能小于0'));
- return
- } else if(fieldArr.length == 4){
- let index = fieldArr[2]
- let item = this.paymentForm.score_deduction.deduction_proportion[index]
- if (parseFloat(value) <= parseFloat(item.min)) {
- callback(new Error('不能小于起始值'));
- return
- }
- }
- callback();
- };
- let checkDeductionRatio = (rule, value, callback) => {
- if(value < 0 || value > 100) {
- callback(new Error('抵扣比例取值在 0~100 之间'));
- } else {
- callback();
- }
- };
- return {
- loading: false,
- submitLoading: false,
- activeName: 'basic',
- default_goods_style1: "/resources/addons/store/img/default_goods_style1.png",
- default_goods_style2: "/resources/addons/store/img/default_goods_style2.png",
- default_store_style1: "/resources/addons/store/img/new_default_store_style1.png",
- default_store_style2: "/resources/addons/store/img/new_default_store_style2.png",
- default_store_style3: "/resources/addons/store/img/new_default_store_style3.png",
- default_store_cate_style1: "/resources/addons/store/img/default_store_cate_style1.png",
- default_store_cate_style2: "/resources/addons/store/img/default_store_cate_style2.png",
- pay_after_link_show: '订单详情',
- defaultTabs: [
- {"name":"mall"}
- ],
- basicForm: {
- o2o_url: 'plugins2/Store/store/storeindex',
- goods_auth: 0,
- service_fee: 0,
- settle_type: 1,
- service_fee_settle_type: 1,
- platform_ratio: 0,
- risk_management: 0,
- risk_management_ratio: 0,
- settle_scene: 2,
- store_distribution_status: 0,
- store_agent_status: 0,
- store_area_status: 0,
- store_boss_status: 0,
- is_distribution_enable: 0,
- is_agent_enable: 0,
- is_area_enable: 0,
- is_boss_enable: 0,
- watch_times: 0,
- recommend_nums: 0,
- payment_settle_info: [],
- payment_settle: [],
- is_show_location_store: 0,
- is_location_limit: 0,
- localtion_limit: 10,
- is_double_copy_enable: 0,
- double_copy_status: 0,
- is_rebate_enable: 0,
- store_rebate_status: 0,
- is_enable_dollars_symbol: 0,
- dollars_symbol: '',
- score_give_setting: {
- is_open:0,
- bear:0,
- condition:1,
- give_type:1,
- give_num:0,
- settlement:0,
- },
- total_score:0,
- speciality:0,
- service_attitude:0,
- timeliness:0,
- service_fee_type: 0,
- store_distribution_fee_type:1,
- store_area_fee_type:1,
- },
- migrationStore: [],
- enterForm: {
- is_template: 0,
- is_front_template: 1,
- template_store_id: null,
- template_store: [],
- is_enable: 0,
- time_status: 0,
- expired_days: 0,
- store_audit: 0,
- upload_license_image: 0,
- mode: 1,
- goods_ids: [],
- goods_list: [],
- recruit_title: '商家入驻',
- recruit_content: '',
- recruit_btn_text: '申请入驻',
- dow_center_agreement: '',
- store_auth: 0,
- buy_store_num: 0, // 入驻条件:购买商品的门店数
- finish_order_num: 0, // 入驻条件:完成订单数
- },
- cashierForm: {
- preferential_undertaking: '1', //优惠谁承担
- is_distribution_enable: 1,
- is_agent_enable: 1,
- service_fee_ratio: 0,
- member_status: 0,
- members: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // discount: 0
- // }
- ],
- is_distribution: 0,
- deepNames: ['一级分销', '二级分销'],
- distribution_settings: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // name: '佣金',
- // commission_rate: [0, 0]
- // },
- ],
- distribution_settings_score: [{
- level: 0,
- level_name: '默认等级',
- name: '佣金',
- commission_rate: [0, 0]
- }, ],
- is_agent: 0,
- agent_settings: {
- team_rewards: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // commission_rate: 0
- // },
- ],
- equal_rewards: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // commission_rate: 0
- // },
- ],
- over_rewards: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // commission_rate: 0
- // },
- ],
- },
- area_currency: [],
- cashier_distribution_currencys: {},
- collect_reward: [],
- payment_reward: [],
- collect_reward_info: [],
- payment_reward_info: [],
- cashier_bg_img: '',
- cashier_amount: [],
- cashier_amount_info: [],
- cashier_settle_type: 1,
- is_double_copy_enable_cashier:1,
- DoubleCopy_Cashier: {
- commission: {
- is_enable: 0,
- is_percent: 0,
- detail: [],
- },
- },
- is_area_enable_cashier: 1, // 区域管理是否安装
- AreaCashier: { // 区域管理配置
- is_enable: 1, // 是否开启区域管理
- }
- },
- decorationForm: {
- custom_goods_style: 0,
- default_goods_style: 1,
- custom_store_style: 0,
- default_store_style: 1,
- default_store_cate_style: 1,
- near_shop_title: '',
- store_category_switch: 0,
- },
- storeGoodsForm: {
- min_price: 0,
- max_price: 0,
- is_limit_max_price: false,
- express_title_arr: [],
- is_hidden_goods_store: 0,
- },
- storeForm: {
- store_h5_login_url: '',
- },
- financeForm: {
- freeze_is_enable: 0,
- finance_name: '',
- balance_cash_service_fee: 0,
- balance_cash_type: [],
- balance_withdraw_way: [],
- balance_cash_service_fee_limit: 0,
- balance_cash_service_fee_month: 0,
- balance_cash_service_fee_diff: 0,
- },
- paymentForm: {
- payment_is_enable: 0,
- payment_type: [],
- payment_way: [],
- score_pay_setting: 0,
- score_pay: 0,
- score_pay_password_status: 0,
- pay_after_link:'',
- score_open_type:1,
- score_deduction:{
- deduction_type: 0,
- is_score_deduction: 0,//
- effective: '',//
- score_balance_ratio: '',//
- deduction_proportion: [
- {
- min: '',
- max: '',
- deduction_ratio: ''
- },
- ],
- max_deduction_percent: 0,
- store_limit_type: 0,
- store_limit_stores: [],
- store_limit_stores_deduction: {}
- },
- store_limit_protocol: ''
- },
- tipsForm: {
- link_tips: '',
- bank_account_tips: '',
- },
- advertisingForm: {
- type: 1,
- is_open: 0,
- pic: '',
- url: '',
- },
- ratingSettingForm:{
- total_score:1,
- environment_score:1,
- service_score:1,
- staff_score:1,
- },
- scoreGiveForm: {
- score_give_setting: {
- is_open:0,
- bear:0,
- condition:1,
- give_type:1,
- give_num:0,
- settlement:0,
- },
- score_give_is_store_alone: 0,
- store_limit_type: 0,
- store_limit_stores: [],
- store_limit_protocol: '',
- },
- basicFormRules: {
- settle_type: [
- // {
- // required: true,
- // message: '请选择计算方式',
- // trigger: 'blur'
- // }
- ],
- settle_scene: [
- // {
- // required: true,
- // message: '请选择结算方式',
- // trigger: 'blur'
- // }
- ],
- },
- decorationFormRules: {},
- storeGoodsFormRules: {},
- storeFormRules: {},
- enterRules: {},
- cashierFormRules: {},
- modeForm: {
- is_enable_mode: 0,
- is_distribution_enable: 1,
- is_agent_enable: 1,
- is_boss_enable: 1,
- is_area_enable: 1,
- is_double_copy_enable: 1,
- is_rebate_enable: 1,
- is_double_copy_enable_cashier: 1,
- Distribution: {
- commission: {
- is_enable: 0,
- is_percent: 0,
- detail: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // first_prize: 0,
- // second_prize: 0,
- // third_prize: 0
- // }
- ],
- },
- score: {
- is_enable: 0,
- is_percent: 0,
- detail: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // first_prize: 0,
- // second_prize: 0,
- // third_prize: 0
- // }
- ],
- }
- },
- Agent: {
- commission: {
- is_enable: 0,
- is_percent_team: 0,
- is_percent_equal: 0,
- is_percent_over: 0,
- is_percent_extra: 0,
- detail: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // agent_team_prize: 0,
- // agent_equal_prize: 0,
- // agent_over_prize: 0,
- // agent_extra_prize: 0
- // }
- ],
- },
- score: {
- is_enable: 0,
- is_percent_team: 0,
- is_percent_equal: 0,
- is_percent_over: 0,
- is_percent_extra: 0,
- detail: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // agent_team_prize: 0,
- // agent_equal_prize: 0,
- // agent_over_prize: 0,
- // agent_extra_prize: 0
- // }
- ],
- }
- },
- Boss: {
- is_enable: 0,
- is_extra: 0,
- detail: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // prize: 0,
- // extra_prize: 0
- // }
- ]
- },
- Area: {
- is_enable: 0,
- detail: [
- // {
- // level: 0,
- // level_name: '默认等级',
- // prize: 0,
- // equal_prize: 0
- // }
- ],
- detail_score: [],
- },
- distribution_currency: [],
- agent_currency: [],
- area_currency: [],
- boss_settings: [],
- DoubleCopy: {
- commission: {
- is_enable: 0,
- is_percent: 0,
- detail: [],
- },
- },
- DoubleCopy_Cashier: {
- commission: {
- is_enable: 0,
- is_percent: 0,
- detail: [],
- },
- },
- Rebate: {
- is_enable: 0,
- detail: [
- // initiate_type: 0,
- // initiate_level: [],
- // consume_type: 0,
- // consume_level: [],
- // reward_type: 1,
- // reward_info: [],
- // is_repeat: 0,
- // join_type: 0,
- // repeat_setting: 0,
- // agent_limit_num: 0,
- ]
- },
- },
- distributionName: 'distribution-commission',
- cashierDistributionName: 'cashier-distribution-settings',
- cashierAgentName: 'cashier-agent-settings',
- agentName: 'agent-commission',
- areaName: 'area-detail',
- bossName: 'commission',
- cashierTab: 'distribution-cashier',
- level: 0,
- stretch: true,
- paymentRules:{
- deduction_min:[
- { required: true, message: '请填写消费区间', trigger: 'blur' },
- { validator: checkDeductionMin, trigger: 'blur' }
- ],
- deduction_max:[
- { required: true, message: '请填写消费区间', trigger: 'blur' },
- { validator: checkDeductionMax, trigger: 'blur' }
- ],
- deduction_ratio:[
- { required: true, message: '请输入抵扣比例', trigger: 'blur' },
- { validator: checkDeductionRatio, trigger: 'blur' }
- ],
- 'score_deduction.score_balance_ratio': { required: true, message: '请输入积分转换比例', trigger: 'blur' }
- },
- batch_deduction: 0,
- btnLoading: false,
- smsSettingForm:{
- is_pay_remind: 0,
- pay_template_id:'',
- pay_template_variable:'',
- //门店到期短信提醒
- is_alert_expire: 0,
- expire_day: '',
- expire_template_id: '',
- expire_template_variable: '',
- },
- noticeForm: {
- notice_wechat: {
- is_logging: 0,
- template_message: {},
- }
- },
- noticeFormRules: {},
- notice_loading: false,
- updateBtnLoading: false,
- };
- },
- computed: {
- isAddDeduction() {
- let result = false
- this.paymentForm.score_deduction.deduction_proportion.forEach(item=>{
- if(item.min === '' || item.max === '' || item.deduction_ratio === ''){
- result = true
- }
- })
- return result
- }
- },
- mounted: function() {
- this.loadData();
- },
- methods: {
- tabClickHandle(tab, key) {
- this[key] = tab.name
- },
- tabClickHandles(tab, key) {
- this[key] = tab.name
- },
- onSubmit() {
- console.log('submit!');
- },
- /* test(event, ...vv) {
- console.info(event, vv);
- let data = this[vv[0]];
- console.log(data);
- event = 0;
- if (vv.length == 1) {
- data = event
- } else if (vv.length - 1 == 1) {
- data[vv[1]] = event
- } else {
- // debugger
- let newVV = [...vv];
- newVV.shift();
- for (let index = 1; index < vv.length; index++) {
- data = data[vv[index]];
- if ((vv.length - newVV.length) == vv.length - 2) {
- data[vv[vv.length - 1]] = event
- }
- newVV.shift();
- }
- }
- console.info(data);
- console.info(this.cashierForm);
- }, */
- // 复制首页链接
- copyLink(link) {
- link = localStorage.getItem('h5_domain') + '/#/' + link + '?sign=' + localStorage.getItem('mall_sign');
- // console.log('link: ', link);
- var input = document.getElementById("copy-container");
- input.value = link; // 修改文本框的内容
- input.select(); // 选中文本
- document.execCommand("copy"); // 执行浏览器复制命令
- this.$message.success('复制成功');
- },
- copyStoreLink(link) {
- // link = localStorage.getItem('h5_domain') + link + '?sign=' + localStorage.getItem('mall_sign');
- // console.log('link: ', link);
- var input = document.getElementById("copy-container-store");
- input.value = link; // 修改文本框的内容
- input.select(); // 选中文本
- document.execCommand("copy"); // 执行浏览器复制命令
- this.$message.success('复制成功');
- },
- // 输入值过滤处理
- changeHandle(key) {
- try {
- this.flierValue(this.activeName, key);
- } catch (err) {
- this.$message.error(err);
- let formName = this.activeName + 'Form';
- if (this[formName][key] < 0) {
- this[formName][key] = Math.abs(this[formName][key]);
- } else if (this[formName][key] > 100) {
- this[formName][key] = 0;
- }
- return false;
- }
- },
- // 过滤和处理值
- flierValue(group, key) {
- // console.log(group, key);
- let configs = {
- platform_ratio: {
- text: `服务费比例取值在 0~100 之间`,
- max: '100',
- min: '0',
- },
- risk_management_ratio: {
- text: '售价比例取值在 0~100 之间',
- max: '100',
- min: '0',
- },
- expired_days: {
- text: '请填写门店有效天数',
- min: '0',
- },
- service_fee_ratio: {
- text: `服务费比例取值在 0~100 之间`,
- max: '100',
- min: '0',
- },
- balance_cash_service_fee_diff: {
- text: `服务费比例取值在 0~100 之间`,
- max: '100',
- min: '0',
- },
- };
- let datas = {
- basic: this.basicForm,
- cashier: this.cashierForm,
- enter: this.enterForm,
- finance: this.financeForm,
- payment: this.paymentForm,
- };
- let val = datas[group][key];
- if (configs[key]) {
- if (configs[key].max && val > parseInt(configs[key].max)) {
- throw new Error(configs[key].text);
- }
- if (configs[key].min && val < parseInt(configs[key].min)) {
- throw new Error(configs[key].text);
- }
- }
- },
- loadData() {
- let self = this;
- this.loading = true;
- request({
- params: {
- r: 'store/store-setting/index',
- },
- }).then(e => {
- // console.log('LLLLLLL: ', e);
- self.loading = false;
- if (e.data.code === 0) {
- self.level = e.data.data.level;
- if (e.data.data.basic) {
- if (e.data.data.basic.is_basic_null) {
- self.basicForm.is_boss_enable = e.data.data.basic.is_boss_enable;
- self.basicForm.is_area_enable = e.data.data.basic.is_area_enable;
- self.basicForm.is_agent_enable = e.data.data.basic.is_agent_enable;
- self.basicForm.is_distribution_enable = e.data.data.basic.is_distribution_enable;
- self.basicForm.is_double_copy_enable = e.data.data.basic.is_double_copy_enable;
- self.basicForm.is_rebate_enable = e.data.data.basic.is_rebate_enable;
- self.basicForm.payment_settle = e.data.data.basic.payment_settle;
- self.basicForm.payment_settle_info = e.data.data.basic.payment_settle_info;
- self.basicForm.min_platform_ratio = e.data.data.basic.min_platform_ratio;
- self.basicForm.max_platform_ratio = e.data.data.basic.max_platform_ratio;
- } else {
- self.basicForm = e.data.data.basic;
- }
- }
- if (e.data.data.cashier) {
- self.cashierForm = e.data.data.cashier;
- self.cashierForm.preferential_undertaking = self.cashierForm.preferential_undertaking.toString();
- }
- if (e.data.data.enter) {
- self.enterForm = Object.assign(this.enterForm, e.data.data.enter);
- self.migrationStore = e.data.data.enter.template_store;
-
- if (Array.isArray(self.migrationStore) && self.migrationStore.length > 0) {
- self.enterForm.template_store_id = self.migrationStore[0].id;
- }
- }
- if (e.data.data.decoration) {
- self.decorationForm = e.data.data.decoration;
- }
- if (e.data.data.goodsStore) {
- self.storeGoodsForm = e.data.data.goodsStore;
- }
- if (e.data.data.store_setting) {
- self.storeForm = e.data.data.store_setting;
- }
- if (e.data.data.mode) {
- let modeData = e.data.data.mode;
- for (key in modeData) {
- if (modeData[key] != null) {
- self.modeForm[key] = modeData[key];
- }
- }
- // console.log(self.modeForm, '========== kkkkkkk ============');
- }
- if (e.data.data.finance) {
- self.financeForm = e.data.data.finance;
- }
- if (e.data.data.payment) {
- self.paymentForm = e.data.data.payment;
- if (self.paymentForm.pay_after_link !== '') {
- this.pay_after_link_show = self.paymentForm.pay_after_link.params.title;
- }
- }
- if(e.data.data.tips){
- self.tipsForm = e.data.data.tips;
- }
- self.advertisingForm = e.data.data.advertising;
- self.ratingSettingForm = e.data.data.rating_setting;
- if(e.data.data.advertising){
- self.advertisingForm = e.data.data.advertising;
- }
- if(e.data.data.scoreGive){
- self.scoreGiveForm = e.data.data.scoreGive;
- }
- if(e.data.data.sms_setting){
- self.smsSettingForm = e.data.data.sms_setting;
- }
- if(e.data.data.notice_wechat){
- self.noticeForm.notice_wechat = e.data.data.notice_wechat;
- }
- localStorage.setItem('h5_domain', e.data.data.h5_domain);
- localStorage.setItem('mall_sign', e.data.data.mall_sign);
- } else {
- self.$message.error(e.data.msg);
- }
- }).catch(e => {
- console.log(e);
- self.$message.error('网络错误');
- });
- },
- // 配置提交
- submit(formName) {
- // console.log('5555555555: ', formName, this.activeName);return null;
- let self = this;
- let keys = [];
- if ('basic' == self.activeName) {
- if (self.basicForm.service_fee == 1) {
- keys.push('platform_ratio');
- }
- if (self.basicForm.risk_management == 1) {
- keys.push('risk_management_ratio');
- }
- } else if ('cashier' == self.activeName) {
- keys = ['service_fee_ratio'];
- // 会员等级折扣验证
- if (1 == self.cashierForm.member_status) {
- let memberForNum = self.cashierForm.members.length;
- for (let i = 0; i < memberForNum; i++) {
- let discount_val = self.cashierForm.members[i].discount;
- if (discount_val < 0 || discount_val > 100) {
- self.$message.error('会员折扣比例取值在 0~100 之间');
- return false;
- }
- }
- }
- // 分销佣金比例验证
- if (1 == self.cashierForm.is_distribution && 1 == self.cashierForm.is_distribution_enable) {
- let forNum = self.cashierForm.distribution_settings.length;
- for (let i = 0; i < forNum; i++) {
- let val = self.cashierForm.distribution_settings[i].commission_rate;
- let valForNum = val.length;
- for (let i = 0; i < valForNum; i++) {
- if (val[i] < 0 || val[i] > 100) {
- self.$message.error('分销佣金比例取值在 0~100 之间');
- return false;
- }
- }
- }
- }
- // 经销佣金比例验证
- if (1 == self.cashierForm.is_agent && 1 == self.cashierForm.is_agent_enable) {
- for (key in self.cashierForm.agent_settings) {
- let settings = self.cashierForm.agent_settings[key];
- let forNum = settings.length;
- for (let i = 0; i < forNum; i++) {
- let val = settings[i].commission_rate;
- if (val < 0 || val > 100) {
- self.$message.error('经销佣金比例取值在 0~100 之间');
- return false;
- }
- }
- }
- }
- } else if ('enter' == self.activeName) {
- keys = ['expired_days'];
- if (1 == self.enterForm.time_status && !self.enterForm.expired_days) {
- self.$message.error('请填写门店有效天数');
- return false;
- }
- if (2 == self.enterForm.mode && !self.enterForm.goods_ids.length) {
- self.$message.error('请选择入驻必须消费的商品');
- return false;
- }
- if (1 == self.enterForm.is_template && !self.enterForm.template_store_id ) {
- self.$message.error('请选择模板门店');
- return false;
- }
- } else if ('mode' == self.activeName) {
- keys = [];
- // console.log(self.modeForm, 'pppppppppp==========');return null;
- if (self.modeForm.is_enable_mode == 1) {
- // 分销佣金比例验证.
- let dstInfo = self.modeForm.Distribution;
- let dstPrizeMap = ['first_prize', 'second_prize', 'third_prize'];
- for (let dk in self.modeForm.Distribution) {
- if (dstInfo[dk].is_enable == 1) {
- let forNum = dstInfo[dk].detail.length;
- for (let i = 0; i < forNum; i++) {
- let detail = dstInfo[dk].detail[i];
- for (dik in detail) {
- if (dstPrizeMap.indexOf(dik) > -1) {
- if (detail[dik] < 0) {
- self.$message.error('分销等级 [' + detail.level_name + '] 比例不能小于 0');
- return false;
- }
- }
- if (dstInfo[dk].is_percent == 1 && detail[dik] > 100) {
- self.$message.error('分销等级 [' + detail.level_name + '] 比例不能大于 100');
- return false;
- }
- }
- }
- }
- }
- // 经销佣金比例验证
- let agentInfo = self.modeForm.Agent;
- let agentPrizeMap = ['agent_team_prize', 'agent_equal_prize', 'agent_over_prize', 'agent_extra_prize'];
- let agentPrizePercentMap = {
- agent_team_prize: 'is_percent_team',
- agent_equal_prize: 'is_percent_equal',
- agent_over_prize: 'is_percent_over',
- agent_extra_prize: 'is_percent_extra'
- };
- for (let ak in agentInfo) {
- if (agentInfo[ak].is_enable == 1) {
- if (agentInfo[ak].detail && agentInfo[ak].detail.length) {
- let forNum = agentInfo[ak].detail.length;
- for (let i = 0; i < forNum; i++) {
- let detail = agentInfo[ak].detail[i];
- for (dik in detail) {
- if (agentPrizeMap.indexOf(dik) > -1) {
- if (agentInfo[ak].is_percent_team == 0) {
- if (detail[dik] < 0) {
- self.$message.error('经销等级 [' + detail.level_name + '] 比例不能小于 0');
- return false;
- }
- if (agentInfo[ak][agentPrizePercentMap[dik]] == 1 && detail[dik] > 100) {
- self.$message.error('经销等级 [' + detail.level_name + '] 比例不能大于 100');
- return false;
- }
- }
- }
- }
- }
- }
- }
- }
- // 股东分红等级比例验证
- /* let bossInfo = self.modeForm.Boss;
- if (bossInfo.is_enable == 1) {
- let forNum = bossInfo.detail.length;
- for (let i = 0; i < forNum; i++) {
- let detail = bossInfo.detail[i];
- if (detail.prize < 0 || detail.prize > 100) {
- self.$message.error('股东分红等级 ['+ detail.level_name+ '] 比例在 0 ~ 100 之间');
- return false;
- }
- if (bossInfo.is_extra == 1) {
- if (detail.extra_prize < 0 || detail.extra_prize > 100) {
- self.$message.error('股东 ['+ detail.level_name+ '] 额外分红比例在 0 ~ 100 之间');
- return false;
- }
- }
- }
- } */
- // 区域分红等级比例验证
- let areaInfo = self.modeForm.Area;
- if (areaInfo.is_enable == 1) {
- let forNum = areaInfo.detail.length;
- for (let i = 0; i < forNum; i++) {
- let detail = areaInfo.detail[i];
- if (detail.prize < 0 || detail.prize > 100) {
- self.$message.error('区域等级 [' + detail.level_name + '] 默认分红比例在 0 ~ 100 之间');
- return false;
- }
- if (detail.equal_prize < 0 || detail.equal_prize > 100) {
- self.$message.error('区域等级 [' + detail.level_name + '] 平级奖比例在 0 ~ 100 之间');
- return false;
- }
- }
- }
- }
- } else if ('decoration' == self.activeName) {
- } else if ('goodsStore' == self.activeName) {
- } else if ('noticeForm' == self.activeName) {
- }
- let forNum = keys.length;
- for (let i = 0; i < forNum; i++) {
- try {
- self.flierValue(self.activeName, keys[i]);
- } catch (err) {
- self.$message.error(err);
- return false;
- }
- }
- self.$refs[formName].validate(valid => {
- if (valid) {
- self.submitLoading = true;
- let activeName = self.activeName;
- let formData = {};
- formData[activeName] = self[formName];
- formData.group = activeName;
- // console.log(formData);return null;
- request({
- params: {
- r: 'store/store-setting/index',
- },
- method: 'post',
- data: formData,
- }).then(e => {
- self.submitLoading = false;
- if (e.data.code === 0) {
- self.$message.success(e.data.msg);
- } else {
- self.$message.error(e.data.msg);
- }
- }).catch(e => {
- console.log('打印1',e)
- console.log(e);
- self.$message.error('网络错误');
- });
- } else {
- self.$message.error('参数验证未通过');
- }
- });
- },
- handleClick(tab, event) {
- this.activeName = tab.name;
- },
- updateData(val)
- {
- this.modeForm.Rebate=val;
- },
- // 选中商品回调
- goodsSelect(list) {
- for (let j in list) {
- let item = list[j];
- if (this.enterForm.goods_ids.length >= 20) {
- this.$message.error('指定商品不能大于20个');
- return;
- }
- let flag = true;
- for (let i in this.enterForm.goods_ids) {
- if (this.enterForm.goods_ids[i] == item.id) {
- flag = false;
- break;
- }
- }
- if (flag) {
- this.enterForm.goods_ids.push(item.id);
- this.enterForm.goods_list.push({
- id: item.id,
- goods_name: item.goods_name,
- cover_pic: item.cover_pic,
- });
- }
- }
- },
- // 删除已选择商品
- deleteGoods(index) {
- this.enterForm.goods_ids.splice(index, 1);
- this.enterForm.goods_list.splice(index, 1);
- },
- delPic(key) {
- this.cashierForm.cashier_bg_img = '';
- this.$forceUpdate();
- },
- selectedImg(e) {
- this.cashierForm.cashier_bg_img = e[0].url;
- this.$forceUpdate();
- },
- selectUrl(e) {
- let self = this;
- let link_data = {};
- console.log(e);
- e.forEach(function (item) {
- self.pay_after_link_show = item.title;
- link_data = {
- route: item.route,
- open_type: item.open_type,
- params: item.params,
- }
- });
- console.log('111',link_data)
- self.paymentForm.pay_after_link = link_data;
- },
- handleGiveTypeChange() {
- if (this.scoreGiveForm.score_give_setting.give_type == 2) {
- let giveNum = this.scoreGiveForm.score_give_setting.give_num
- giveNum = giveNum ? giveNum : 0
- this.scoreGiveForm.score_give_setting.give_num = parseInt(giveNum)
- }
- },
- formatGiveNumber(value) {
- if (this.scoreGiveForm.score_give_setting.give_type == 2) {
- this.scoreGiveForm.score_give_setting.give_num = value.replace(/[^\d]/g, "")
- } else {
- let temp = value.toString();
- temp = temp.replace(/。/g, ".");
- temp = temp.replace(/[^\d.]/g, ""); //清除"数字"和"."以外的字符
- temp = temp.replace(/^\./g, ""); //验证第一个字符是数字
- temp = temp.replace(/\.{2,}/g, ""); //只保留第一个, 清除多余的
- temp = temp.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
- temp = temp.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3");
- this.scoreGiveForm.score_give_setting.give_num = temp
- }
- },
- formatLocaltion(value) {
- let temp = this.formatNumber(value);
- this.basicForm.localtion_limit = temp;
- },
- formatNumber(value) {
- let temp = value.toString();
- temp = temp.replace(/。/g, ".");
- temp = temp.replace(/[^\d.]/g, ""); //清除"数字"和"."以外的字符
- temp = temp.replace(/^\./g, ""); //验证第一个字符是数字
- temp = temp.replace(/\.{2,}/g, ""); //只保留第一个, 清除多余的
- temp = temp.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
- temp = temp.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3");
- return temp;
- },
- selectedImgAdvertising(e, key) {
- this.advertisingForm[key] = e[0].url;
- this.$forceUpdate();
- },
- delPicAdvertising(key) {
- this.advertisingForm[key] = '';
- this.$forceUpdate();
- },
- addItem() {
- let deduction_proportion = JSON.parse(JSON.stringify(this.paymentForm.score_deduction.deduction_proportion));
- let leng = deduction_proportion.length
- let item = {min: '', max: '', deduction_ratio: ''};
- if(leng){
- let preItem = deduction_proportion[leng-1]
- item.min = (preItem.max*1)+1
- }
- deduction_proportion.push(item);
- this.paymentForm.score_deduction.deduction_proportion = deduction_proportion;
- },
- deleteItem() {
- this.paymentForm.score_deduction.deduction_proportion.pop()
- },
- changeScoreOpenType(value){
- switch (value){
- case 1:
- this.paymentForm.score_deduction.is_score_deduction = 0;
- break;
- case 2:
- this.paymentForm.score_pay_setting =0;
- this.paymentForm.score_pay =0;
- for (let index in this.paymentForm.payment_type) {
- // 遍历数组,对每个元素进行操作
- if(this.paymentForm.payment_type[index]==12){
- this.paymentForm.payment_type.splice(index, 1);
- break;
- }
- }
- break;
- }
- },
- changeScoreDeductionStatus(value){
- if(value==1 && this.paymentForm.score_open_type==1){
- console.log('======',value)
- this.paymentForm.score_deduction.is_score_deduction = 0;
- }
- //开启积分抵扣,则不能使用积分支付
- if(this.paymentForm.score_deduction.is_score_deduction){
- this.paymentForm.payment_type = this.paymentForm.payment_type.filter(item => item !== 12);
- }
- },
- changeScorePaySetting(value){
- if(value==1 && this.paymentForm.score_open_type==2){
- console.log('======',value)
- this.paymentForm.score_pay_setting = 0;
- }
- },
- changeScorePay(value){
- if(value==1 && this.paymentForm.score_open_type==2){
- console.log('======',value)
- this.paymentForm.score_pay = 0;
- }
- },
- handleApplyClose(value) {
- if(value.length <= 0) return;
- value.forEach(store_id => {
- if(this.scoreGiveForm.store_limit_stores.indexOf(store_id) == -1) {
- this.scoreGiveForm.store_limit_stores.push(store_id);
- }
- });
- },
- handleScoreDeductionApplyClose(value) {
- console.log(value);
- if(value.length <= 0) return;
- value.forEach(store_id => {
- if(this.paymentForm.score_deduction.store_limit_stores_deduction[store_id] == undefined) {
- this.$set(this.paymentForm.score_deduction.store_limit_stores_deduction, store_id, "");
- }
- if(this.paymentForm.score_deduction.store_limit_stores.indexOf(store_id) == -1) {
- this.paymentForm.score_deduction.store_limit_stores.push(store_id);
- }
- });
- },
- handleStoreLimitChange(value) {
- let _temp_deduction = {};
- value.forEach(store_id => {
- _temp_deduction[store_id] = this.paymentForm.score_deduction.store_limit_stores_deduction[store_id] ?? "";
- });
- this.paymentForm.score_deduction.store_limit_stores_deduction = _temp_deduction;
- },
- batchSetMaxDeduction() {
- if(this.batch_deduction == '' || this.batch_deduction == null) {
- this.$message.error('请输入批量设置的最高抵扣比例');
- return;
- }
- let _selectStore = this.$refs.storeListRef.getSelectedRows();
- if(_selectStore.length <= 0) {
- this.$message.error('请选勾选需要批量设置的门店');
- return;
- }
- _selectStore.forEach(item => {
- let _store_id = item.id;
- if(this.paymentForm.score_deduction.store_limit_stores_deduction[_store_id] != undefined){
- this.$set(this.paymentForm.score_deduction.store_limit_stores_deduction, _store_id, this.batch_deduction);
- }
- });
- },
- storeSelect(param) {
- this.migrationStore = [];
- this.migrationStore.push(param);
- this.enterForm.template_store_id = param.id;
- this.enterForm.template_store = this.migrationStore;
- },
- testSend(type) {
- this.btnLoading = true;
- this.$request({
- params: {
- r: 'store/store-setting/send-sms',
- },
- method: 'post',
- data: {
- type: type,
- },
- }).then(e => {
- this.btnLoading = false;
- if (e.data.code === 0) {
- this.$message.success(e.data.msg);
- } else {
- this.$message.error(e.data.msg);
- }
- }).catch(e => {
- this.btnLoading = false;
- });
- },
- handleChange(val) {
- if(val === 1) {
- this.open();
- }
- },
- open() {
- this.$alert('注意:若修改的区间比例不在入住的门店设置的比例范围内,将自动把门店的比例调整成区间比例的最大值', '提示', {
- dangerouslyUseHTMLString: true,
- // showCancelButton: true,
- type: 'warning',
- customClass: 'alertMessage'
- }).then(() => {
- }).catch(() => {
- });
- },
- onInput(){
- this.$forceUpdate();
- },
- getWechatNoticeId(index){
- this.notice_loading = true;
- this.$request({
- params: {
- r: 'store/store-setting/get-wechat-notice',
- },
- method: 'post',
- data: {
- key: index,
- },
- }).then(e => {
- this.notice_loading = false;
- if (e.data.code === 0) {
- this.ruleForm.notice_wechat.template_message.value[index].tempid = e.data.data
- this.$message.success(e.data.msg);
- } else {
- this.$message.error(e.data.msg);
- }
- }).catch(e => {
- this.notice_loading = false;
- });
- },
- },
- });
- </script>
- <style>
- .table-head {
- font-weight: 500;
- }
- .el-tabs__header {
- padding: 0 20px;
- height: 56px;
- line-height: 56px;
- background-color: #fff;
- margin-bottom: 0;
- }
- .title {
- padding: 0px 8px;
- border-left: 5px solid #1479F0;
- background-color: #fff;
- font-size: 18px;
- position: relative;
- left: 32px;
- margin: 20px 0;
- }
- .form-body {
- background-color: #fff;
- /* padding: 20px 50% 20px 0; */
- padding: 20px 20px 20px 0;
- }
- .cashier .form-body {
- padding: 20px 20px 0 0;
- }
- .cashier .el-form-item--small.el-form-item {
- margin-bottom: 0px;
- }
- .form-body .item {
- width: 300px;
- margin-bottom: 50px;
- margin-right: 25px;
- }
- .item-img {
- height: 550px;
- padding: 25px 10px;
- border-radius: 30px;
- border: 1px solid #CCCCCC;
- background-color: #fff;
- }
- .item .el-form-item {
- width: 300px;
- margin: 20px auto;
- }
- .left-setting-menu {
- width: 260px;
- }
- .left-setting-menu .el-form-item {
- height: 60px;
- padding-left: 20px;
- display: flex;
- align-items: center;
- margin-bottom: 0;
- cursor: pointer;
- }
- .left-setting-menu .el-form-item .el-form-item__label {
- cursor: pointer;
- }
- .left-setting-menu .el-form-item.active {
- background-color: #F3F5F6;
- border-top-left-radius: 10px;
- width: 105%;
- border-bottom-left-radius: 10px;
- }
- .left-setting-menu .el-form-item .el-form-item__content {
- margin-left: 0 !important
- }
- .no-radius {
- border-top-left-radius: 0 !important;
- }
- .del-btn {
- position: absolute;
- right: -8px;
- top: -8px;
- padding: 4px 4px;
- }
- .reset {
- position: absolute;
- top: 3px;
- left: 90px;
- }
- .app-tip {
- position: absolute;
- right: 24px;
- top: 16px;
- height: 72px;
- line-height: 72px;
- max-width: calc(100% - 78px);
- }
- .app-tip:before {
- content: ' ';
- width: 0;
- height: 0;
- border-color: inherit;
- position: absolute;
- top: -32px;
- right: 100px;
- border-width: 16px;
- border-style: solid;
- }
- .tip-content {
- display: block;
- white-space: nowrap;
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- margin: 0 28px;
- font-size: 28px;
- }
- .btn-abs {
- position: absolute;
- top: 12px;
- right: 18px;
- }
- .form-body .app-share {
- padding-top: 12px;
- border-top: 1px solid #e2e2e2;
- margin-top: -20px;
- }
- .form-body .app-share .app-share-bg {
- position: relative;
- width: 310px;
- height: 360px;
- background-repeat: no-repeat;
- background-size: contain;
- background-position: center
- }
- .form-body .app-share .app-share-bg .title {
- width: 160px;
- height: 29px;
- line-height: 1;
- word-break: break-all;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- }
- .form-body .app-share .app-share-bg .pic-image {
- background-repeat: no-repeat;
- background-position: 0 0;
- background-size: cover;
- width: 160px;
- height: 130px;
- }
- .cashier-tabs .el-tabs__header {
- padding: 0;
- height: 45px;
- line-height: 45px;
- /* background-color: #F5F7FA; */
- margin-bottom: 0;
- }
- .cashier-tabs .el-tabs__item {
- height: 43px;
- line-height: 43px;
- }
- .cashier-tabs .el-tabs__content {
- margin-top: 20px;
- }
- .form-body {
- background-color: #fff;
- padding: 20px 30% 20px 0;
- }
- .button-item {
- margin-bottom: 18px;
- padding: 9px 25px;
- margin-left: 10%;
- }
- .form-body .item {
- width: 300px;
- margin-bottom: 50px;
- margin-right: 25px;
- }
- .item-img {
- height: 550px;
- padding: 25px 10px;
- border-radius: 30px;
- border: 1px solid #CCCCCC;
- background-color: #fff;
- }
- .item .el-form-item {
- width: 500px;
- margin: 20px auto;
- }
- .left-setting-menu {
- width: 260px;
- }
- .left-setting-menu .el-form-item {
- height: 60px;
- padding-left: 20px;
- display: flex;
- align-items: center;
- margin-bottom: 0;
- cursor: pointer;
- }
- .left-setting-menu .el-form-item .el-form-item__label {
- cursor: pointer;
- }
- .left-setting-menu .el-form-item.active {
- background-color: #F3F5F6;
- border-top-left-radius: 10px;
- width: 105%;
- border-bottom-left-radius: 10px;
- }
- .left-setting-menu .el-form-item .el-form-item__content {
- margin-left: 0 !important
- }
- .no-radius {
- border-top-left-radius: 0 !important;
- }
- .del-btn {
- position: absolute;
- right: -8px;
- top: -8px;
- padding: 4px 4px;
- }
- .reset {
- position: absolute;
- top: 3px;
- left: 90px;
- }
- .app-tip {
- position: absolute;
- right: 24px;
- top: 16px;
- height: 72px;
- line-height: 72px;
- max-width: calc(100% - 78px);
- }
- .app-tip:before {
- content: ' ';
- width: 0;
- height: 0;
- border-color: inherit;
- position: absolute;
- top: -32px;
- right: 100px;
- border-width: 16px;
- border-style: solid;
- }
- .tip-content {
- display: block;
- white-space: nowrap;
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- margin: 0 28px;
- font-size: 28px;
- }
- /* .el-tabs--card>.el-tabs__header .el-tabs__item {
- border:1px solid #0055ff;
- }
- .el-tabs--card>.el-tabs__header .el-tabs__item.is-active {
- background: #0055ff;
- color:white;
- }
- .el-tabs--card>.el-tabs__header .el-tabs__item:first-child{
- border-top-left-radius:26px;
- border-bottom-left-radius:26px;
- }
- .el-tabs--card>.el-tabs__header .el-tabs__item:last-child {
- border-top-right-radius:26px;
- border-bottom-right-radius:26px;
- }
- .el-tabs--card>.el-tabs__header .el-tabs__nav{
- border:none;
- } */
- .zhangsan .el-tabs__nav .el-tabs__item {
- font-size: 16px;
- font-weight: 700;
- padding: 0px;
- }
- .zhangsan .el-tabs__active-bar {
- height: 3px;
- }
- .zhangsan .el-tabs__nav.is-stretch {
- min-width: 15%;
- }
- .zhangsan-1 .el-tabs__nav.is-stretch {
- min-width: 25%;
- }
- .zhangsan-1 .nomb .el-form-item--small.el-form-item {
- margin-bottom: 0px;
- }
- .lisi .el-tabs__nav .el-tabs__item {
- font-size: 14px;
- font-weight: normal;
- padding: 0 20px;
- }
- .lisi .el-tabs__active-bar {
- height: 2px;
- }
- .pic-url-remark {
- font-size: 13px;
- color: #c9c9c9;
- margin-bottom: 12px;
- }
- .add-image-btn {
- width: 100px;
- height: 100px;
- color: #419EFB;
- border: 1px solid #e2e2e2;
- cursor: pointer;
- }
- .deduction-list {
- display: flex;
- align-items: flex-start;
- white-space: nowrap;
- }
- .deduction-list+.deduction-list{
- margin-top: 10px;
- }
- .form-bottom {
- margin-bottom: 18px;
- }
- .batch-deduction {
- max-width: 200px;
- margin-right: 8px;
- }
- .el-input {
- max-width: 450px;
- }
- .show-type-radio-group{
- display: flex;
- }
- .show-type-radio {
- display: flex !important;
- flex-direction: column !important;
- align-items: center !important;
- }
- .show-type-radio + .show-type-radio {
- margin-left: 30px;
- }
- .radio-group-img {
- margin-top: 10px;
- width: 150px;
- }
- .el-radio-group {
- display: flex;
- flex-direction: row;
- /*gap: 5px;*/
- margin-left: 10px;
- }
- .form-body .item {
- width: 20px;
- margin-bottom: 0;
- margin-right: 0;
- }
- </style>
|