Commit 44af9935 authored by 黄奎's avatar 黄奎

页面修改

parent 2b4e3448
<style> <style>
@import "../../../assets/css/font"; @import "../../../assets/css/font";
</style> </style>
<template> <template>
<div> <div>
...@@ -12,171 +13,179 @@ ...@@ -12,171 +13,179 @@
{{$t('sm.feiyongbaohan')}} {{$t('sm.feiyongbaohan')}}
</div> </div>
<my-edit v-on:edit-value="NoticeData.FeeInclude = arguments[0]" v-bind:editValue="NoticeData.FeeInclude" <my-edit v-on:edit-value="NoticeData.FeeInclude = arguments[0]" v-bind:editValue="NoticeData.FeeInclude"
v-bind:toolbarShow="toolbar" v-bind:referenceList="FreeIncludeArr"></my-edit> v-bind:toolbarShow="toolbar" v-bind:referenceList="FreeIncludeArr"></my-edit>
<div class="TNtitle NotContain"> <div class="TNtitle NotContain">
{{$t('sm.feiyongbuhan')}} {{$t('sm.feiyongbuhan')}}
</div> </div>
<my-edit v-on:edit-value="NoticeData.FeeNonInclude = arguments[0]" v-bind:editValue="NoticeData.FeeNonInclude" <my-edit v-on:edit-value="NoticeData.FeeNonInclude = arguments[0]" v-bind:editValue="NoticeData.FeeNonInclude"
v-bind:toolbarShow="toolbar" v-bind:referenceList="FeeNonIncludeArr"></my-edit> v-bind:toolbarShow="toolbar" v-bind:referenceList="FeeNonIncludeArr"></my-edit>
<div class="TNtitle NotContain"> <div class="TNtitle NotContain">
{{$t('sm.zifeianpai')}} {{$t('sm.zifeianpai')}}
</div> </div>
<table class="TFTable TNtable"> <table class="TFTable TNtable">
<thead> <thead>
<tr> <tr>
<th>{{$t('system.table_city')}}</th> <th>{{$t('system.table_city')}}</th>
<th>{{$t('sm.zifeixiangmu')}}</th> <th>{{$t('sm.zifeixiangmu')}}</th>
<th>{{$t('sm.yujifeiyong')}}</th> <th>{{$t('sm.yujifeiyong')}}</th>
<th>{{$t('fnc.shuoming')}}</th> <th>{{$t('fnc.shuoming')}}</th>
<th width="100">{{$t('system.table_operation')}}</th> <th width="100">{{$t('system.table_operation')}}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="(selfItem,selfIndex) in SelfpayingAllList"> <tr v-for="(selfItem,selfIndex) in SelfpayingAllList">
<td> <td>
<span v-if="selfItem.IsShow==0">{{getSelfCityName(selfItem.CityId)}}</span> <span v-if="selfItem.IsShow==0">{{getSelfCityName(selfItem.CityId)}}</span>
<el-select class='w120' :placeholder="$t('pub.pleaseSel')" filterable v-model="selfItem.CityId" <el-select class='w120' :placeholder="$t('pub.pleaseSel')" filterable v-model="selfItem.CityId"
v-else-if="selfItem.IsShow==1"> v-else-if="selfItem.IsShow==1">
<el-option :label="$t('pub.unlimitedSel')" :value='DefaultSelectValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='DefaultSelectValue'></el-option>
<el-option v-for="item in AllCityList" :label='item.Name' :value='item.ID' :key='item.ID'> <el-option v-for="item in AllCityList" :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
</td> </td>
<td> <td>
<span v-if="selfItem.IsShow==0">{{selfItem.ItemName}}</span> <span v-if="selfItem.IsShow==0">{{selfItem.ItemName}}</span>
<el-input v-model="selfItem.ItemName" class='w200' v-else></el-input> <el-input v-model="selfItem.ItemName" class='w200' v-else></el-input>
</td> </td>
<td> <td>
<span v-if="selfItem.IsShow==0">{{selfItem.EstimatedCost}}</span> <span v-if="selfItem.IsShow==0">{{selfItem.EstimatedCost}}</span>
<el-input v-model="selfItem.EstimatedCost" class='w200' <el-input v-model="selfItem.EstimatedCost" class='w200' v-else></el-input>
v-else></el-input> </td>
</td> <td>
<td> <span v-if="selfItem.IsShow==0">{{selfItem.Explain}}</span>
<span v-if="selfItem.IsShow==0">{{selfItem.Explain}}</span> <el-input v-model="selfItem.Explain" class='w400' v-else></el-input>
<el-input v-model="selfItem.Explain" class='w400' v-else></el-input> </td>
</td> <td>
<td> <el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start"
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start" v-if="(selfItem.IsShow==0)"> v-if="(selfItem.IsShow==0)">
<el-button type="primary" icon="el-icon-edit" circle @click="SelfpayingShow(selfItem)"></el-button> <el-button type="primary" icon="el-icon-edit" circle @click="SelfpayingShow(selfItem)"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('pub.saveBtn')" placement="top-start" v-if="selfItem.IsShow==1"> <el-tooltip class="item" effect="dark" :content="$t('pub.saveBtn')" placement="top-start"
<el-button type="primary" icon="iconfont icon-baocun" circle v-if="selfItem.IsShow==1">
@click="SaveSelfpaying(selfItem)"></el-button> <el-button type="primary" icon="iconfont icon-baocun" circle @click="SaveSelfpaying(selfItem)">
</el-tooltip> </el-button>
<el-tooltip class="item" effect="dark" :content="$t('pub.cancelBtn')" placement="top-start" v-if="selfItem.IsShow==1 "> </el-tooltip>
<el-button type="danger" icon="iconfont icon-guanbi" circle <el-tooltip class="item" effect="dark" :content="$t('pub.cancelBtn')" placement="top-start"
@click="SelfpayingHide(selfItem,selfIndex)"></el-button> v-if="selfItem.IsShow==1 ">
</el-tooltip> <el-button type="danger" icon="iconfont icon-guanbi" circle
@click="SelfpayingHide(selfItem,selfIndex)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start" v-if="selfItem.IsShow==0"> <el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start"
<el-button type="danger" icon="iconfont icon-guanbi" circle v-if="selfItem.IsShow==0">
@click="DelSelfpaying(selfItem,selfIndex)"></el-button> <el-button type="danger" icon="iconfont icon-guanbi" circle
</el-tooltip> @click="DelSelfpaying(selfItem,selfIndex)"></el-button>
</td> </el-tooltip>
</tr> </td>
</tr>
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr>
<td colspan="5"> <td colspan="5">
<div class="TFAddFlight" @click.stop="AddSelfpaying()"> <div class="TFAddFlight" @click.stop="AddSelfpaying()">
<i class="iconfont icon-img_haha" @click.stop="AddSelfpaying()"></i> <i class="iconfont icon-img_haha" @click.stop="AddSelfpaying()"></i>
</div> </div>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
<div class="TNtitle NotContain"> <div class="TNtitle NotContain">
{{$t('sm.zhongyaotips')}} {{$t('sm.zhongyaotips')}}
</div> </div>
<my-edit v-on:edit-value="NoticeData.ImportantTip = arguments[0]" v-bind:editValue="NoticeData.ImportantTip" <my-edit v-on:edit-value="NoticeData.ImportantTip = arguments[0]" v-bind:editValue="NoticeData.ImportantTip"
v-bind:toolbarShow="toolbar" v-bind:referenceList="ImportantTipArr"></my-edit> v-bind:toolbarShow="toolbar" v-bind:referenceList="ImportantTipArr"></my-edit>
<div class="TNtitle NotContain"> <div class="TNtitle NotContain">
{{$t('Operation.Op_Warmprompt')}} {{$t('Operation.Op_Warmprompt')}}
</div> </div>
<my-edit v-on:edit-value="NoticeData.WarmTip = arguments[0]" v-bind:editValue="NoticeData.WarmTip" <my-edit v-on:edit-value="NoticeData.WarmTip = arguments[0]" v-bind:editValue="NoticeData.WarmTip"
v-bind:toolbarShow="toolbar" v-bind:referenceList="WarmTipArr"></my-edit> v-bind:toolbarShow="toolbar" v-bind:referenceList="WarmTipArr"></my-edit>
<div class="TNtitle NotContain"> <div class="TNtitle NotContain">
{{$t('sm.tonghangbeizhu')}} {{$t('sm.tonghangbeizhu')}}
</div> </div>
<my-edit v-on:edit-value="NoticeData.B2BRemark = arguments[0]" v-bind:editValue="NoticeData.B2BRemark" <my-edit v-on:edit-value="NoticeData.B2BRemark = arguments[0]" v-bind:editValue="NoticeData.B2BRemark"
v-bind:toolbarShow="toolbar" v-bind:referenceList="B2BRemarkArr"></my-edit> v-bind:toolbarShow="toolbar" v-bind:referenceList="B2BRemarkArr"></my-edit>
<div class="TNtitle NotContain"> <div class="TNtitle NotContain">
{{$t('sm.gwdbcxys')}} {{$t('sm.gwdbcxys')}}
</div> </div>
<my-edit v-on:edit-value="NoticeData.ShopRemark = arguments[0]" v-bind:editValue="NoticeData.ShopRemark" <my-edit v-on:edit-value="NoticeData.ShopRemark = arguments[0]" v-bind:editValue="NoticeData.ShopRemark"
v-bind:toolbarShow="toolbar" v-bind:referenceList="ShopRemarkArr"></my-edit> v-bind:toolbarShow="toolbar" v-bind:referenceList="ShopRemarkArr"></my-edit>
<div class="TNtitle NotContain"> <div class="TNtitle NotContain">
{{$t('sm.gwdap')}} {{$t('sm.gwdap')}}
</div> </div>
<table class="TFTable TNtable"> <table class="TFTable TNtable">
<thead> <thead>
<tr> <tr>
<th>{{$t('system.table_city')}}</th> <th>{{$t('system.table_city')}}</th>
<th>{{$t('sm.gwdname')}}</th> <th>{{$t('sm.gwdname')}}</th>
<th>{{$t('sm.canguanshijian')}}</th> <th>{{$t('sm.canguanshijian')}}</th>
<th width='100'>{{$t('system.table_operation')}}</th> <th width='100'>{{$t('system.table_operation')}}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="(shopItem,shopIndex) in ShopAllList"> <tr v-for="(shopItem,shopIndex) in ShopAllList">
<td class='w250'> <td class='w250'>
{{shopItem.CityName}} {{shopItem.CityName}} dddd
</td> </td>
<td> <td>
<span v-if="shopItem.IsShow==0">{{shopItem.ShopName}}</span> <span v-if="shopItem.IsShow==0">{{shopItem.ShopName}}</span>
<el-select class='w250' :placeholder="$t('pub.pleaseSel')" filterable v-model="shopItem.ShopId" <el-select class='w250' :placeholder="$t('pub.pleaseSel')" filterable v-model="shopItem.ShopId"
@visible-change="getShopItemList($event)" @change="GetCityName(shopItem.ShopId,shopItem)" @visible-change="getShopItemList($event)" @change="GetCityName(shopItem.ShopId,shopItem)" v-else>
v-else> <el-option :label="$t('pub.unlimitedSel')" :value='DefaultSelectValue'></el-option>
<el-option :label="$t('pub.unlimitedSel')" :value='DefaultSelectValue'></el-option> <el-option v-for="item in ShopItemList" :label='item.Name' :value='item.ID' :key='item.ID'>
<el-option v-for="item in ShopItemList" :label='item.Name' :value='item.ID' :key='item.ID'> </el-option>
</el-option> </el-select>
</el-select> </td>
</td> <td>
<td> <span v-if="shopItem.IsShow==0">{{shopItem.VisitTime}}</span>
<span v-if="shopItem.IsShow==0">{{shopItem.VisitTime}}</span> <el-input v-model="shopItem.VisitTime" class='w400' v-else></el-input>
<el-input v-model="shopItem.VisitTime" class='w400' v-else></el-input> </td>
</td> <td>
<td> <el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start"
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start" v-if="(shopItem.IsShow==0)"> v-if="(shopItem.IsShow==0)">
<el-button type="primary" icon="el-icon-edit" circle @click="ShopShow(shopItem)"></el-button> <el-button type="primary" icon="el-icon-edit" circle @click="ShopShow(shopItem),getShopItemList()"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('pub.saveBtn')" placement="top-start" v-if="shopItem.IsShow==1"> <el-tooltip class="item" effect="dark" :content="$t('pub.saveBtn')" placement="top-start"
<el-button type="primary" icon="iconfont icon-baocun" circle @click="SaveShop(shopItem)"></el-button> v-if="shopItem.IsShow==1">
</el-tooltip> <el-button type="primary" icon="iconfont icon-baocun" circle @click="SaveShop(shopItem)"></el-button>
<el-tooltip class="item" effect="dark" :content="$t('pub.cancelBtn')" placement="top-start" v-if="shopItem.IsShow==1 "> </el-tooltip>
<el-button type="danger" icon="iconfont icon-guanbi" circle <el-tooltip class="item" effect="dark" :content="$t('pub.cancelBtn')" placement="top-start"
@click="ShopHide(shopItem,shopIndex)"></el-button> v-if="shopItem.IsShow==1 ">
</el-tooltip> <el-button type="danger" icon="iconfont icon-guanbi" circle @click="ShopHide(shopItem,shopIndex)">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start" v-if="shopItem.IsShow==0"> <el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start"
<el-button type="danger" icon="iconfont icon-guanbi" circle v-if="shopItem.IsShow==0">
@click="DelShop(shopItem,shopIndex)"></el-button> <el-button type="danger" icon="iconfont icon-guanbi" circle @click="DelShop(shopItem,shopIndex)">
</el-tooltip> </el-button>
</td> </el-tooltip>
</tr> </td>
</tr>
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr>
<td colspan="4"> <td colspan="4">
<div class="TFAddFlight" @click.stop="AddShop()"> <div class="TFAddFlight" @click.stop="AddShop()">
<i class="iconfont icon-img_haha"></i> <i class="iconfont icon-img_haha"></i>
</div> </div>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
<div class="TNtitle NotContain"> <div class="TNtitle NotContain">
{{$t('visa.v_qianzhengshuoming')}} {{$t('visa.v_qianzhengshuoming')}}
</div> </div>
<my-edit v-on:edit-value="NoticeData.VisaRemark = arguments[0]" v-bind:editValue="NoticeData.VisaRemark" <my-edit v-on:edit-value="NoticeData.VisaRemark = arguments[0]" v-bind:editValue="NoticeData.VisaRemark"
v-bind:toolbarShow="toolbar" v-bind:referenceList="VisaRemarkArr"></my-edit> v-bind:toolbarShow="toolbar" v-bind:referenceList="VisaRemarkArr"></my-edit>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import {quillEditor} from "vue-quill-editor"; import {
quillEditor
} from "vue-quill-editor";
import * as Quill from "quill"; //引入编辑器 import * as Quill from "quill"; //引入编辑器
import MyEdit from "../../EditTemplate.vue"; import MyEdit from "../../EditTemplate.vue";
//quill编辑器的字体 //quill编辑器的字体
...@@ -254,10 +263,15 @@ ...@@ -254,10 +263,15 @@
if (obj != undefined) { if (obj != undefined) {
item.CityName = obj.CityName; item.CityName = obj.CityName;
item.CityId = obj.CityId; item.CityId = obj.CityId;
item.ShopName = obj.Name;
} }
} }
}, },
onEditorChange({editor, html, text}, typeStr) { onEditorChange({
editor,
html,
text
}, typeStr) {
//富文本编辑器 文本改变时 设置字段值 //富文本编辑器 文本改变时 设置字段值
switch (typeStr) { switch (typeStr) {
case "FeeInclude": case "FeeInclude":
...@@ -331,27 +345,27 @@ ...@@ -331,27 +345,27 @@
}); });
} }
}, },
err => { err => {}
}
); );
}, },
getVisaDescribe() { getVisaDescribe() {
this.apipost( this.apipost(
"dmc_get_visa_GetAllVisaDescribe", "dmc_get_visa_GetAllVisaDescribe", {},
{},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.VisaRemarkArr = res.data.data; this.VisaRemarkArr = res.data.data;
} }
}, },
err => { err => {}
}
); );
}, },
//获取购物店下拉框 //获取购物店下拉框
getShopItemList() { getShopItemList() {
console.log("1111");
if (event) { if (event) {
var qmsg = {QCountry: this.CountryID}; var qmsg = {
QCountry: this.CountryID
};
this.apipost( this.apipost(
"Shopping_Post_GetList", "Shopping_Post_GetList",
qmsg, qmsg,
...@@ -360,8 +374,7 @@ ...@@ -360,8 +374,7 @@
this.ShopItemList = res.data.data; this.ShopItemList = res.data.data;
} }
}, },
err => { err => {}
}
); );
} }
}, },
...@@ -497,4 +510,5 @@ ...@@ -497,4 +510,5 @@
} }
} }
}; };
</script> </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