Commit 5209fd6f authored by 黄奎's avatar 黄奎

页面修改

parent 0599d826
......@@ -433,6 +433,7 @@
</div>
</el-tooltip>
<div class="btnList">
<template v-if="userInfo.RB_Group_id==2">
<button @click="goSubInfo('HotelInfo', item.ID)" class="hotelBtnMan">
{{ $t("pub.updateMsg") }}
</button>
......@@ -445,7 +446,7 @@
</button>
<br />
<button v-if="IsHotelPriceStock==1" style="width: 80px; margin-top: 10px"
<button v-if="IsHotelPriceStock==1||userInfo.RB_Group_id!=2" style="width: 80px; margin-top: 10px"
@click="goUrl('HotelProductManage2', item)" class="hotelBtnMan">
{{ $t("ground.baojiayukucun") }}
</button>
......@@ -456,6 +457,19 @@
<template v-if="item.MaxFileDate&&item.MaxFileDate!=''">
<span style="color:red">最近一次上传时间:{{item.MaxFileDate}}</span>
</template>
</template>
<template v-else>
<button @click="goSubInfo('HotelInfo', item.ID)" class="hotelBtnMan">
{{ $t("pub.updateMsg") }}
</button>
<button @click="CopyHotel(item.ID)" class="hotelBtnMan" v-if="userInfo.RB_Group_id == QjGroupId()">
复制
</button>
<button style="width: 80px; margin-top: 10px" @click="goUrl('HotelProductManage2', item)"
class="hotelBtnMan">
{{ $t("ground.baojiayukucun") }}
</button>
</template>
</div>
</div>
</div>
......
<style>
.addMsgSW{
.addMsgSW {
width: 105px;
}
.updateMsgSw{
.updateMsgSw {
width: 169px;
}
._info_img ul {
/* padding: 10px 0 */
}
......@@ -59,17 +61,23 @@
text-align: center;
overflow: auto;
}
.page_MyCustomer .icon-guanbi1{
width: 18px;height: 18px;
.page_MyCustomer .icon-guanbi1 {
width: 18px;
height: 18px;
line-height: 20px;
text-align: center;
color: #fff;position: absolute;
right: -5px;top: -10px;
background: #dedede;border-radius: 50%;
color: #fff;
position: absolute;
right: -5px;
top: -10px;
background: #dedede;
border-radius: 50%;
font-size: 12px;
cursor: pointer;
z-index: 3;
}
.page_MyCustomer ._mc_addbox {
height: 52px;
width: 100%;
......@@ -476,10 +484,11 @@
</li>
<li>
<button class="hollowFixedBtn" @click="reSearchPage">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn"
@click="clickAdd">{{$t('salesModule.addCustomer')}}</button>
<button class="normalBtn" @click="clickAdd">{{$t('salesModule.addCustomer')}}</button>
<template v-if="currentUserInfo&&currentUserInfo.RB_Group_id==2">
<button class="normalBtn" @click="outerVisible=true">导入</button>
<button class="normalBtn" @click="getDownList">模板下载</button>
</template>
</li>
</div>
<div class="_mc_addbox">
......@@ -505,7 +514,8 @@
</li>
</div>
<div class="_mc_list _scrollbar" :class="addShow==true?'_edHeight':''">
<table v-if="msg.CustomerStatus!=0" class="MycustomerTable singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<table v-if="msg.CustomerStatus!=0" class="MycustomerTable singeRowTable" border="0" cellspacing="0"
cellpadding="0" v-loading="loading">
<tr>
<th>姓名</th>
<th>联系电话</th>
......@@ -575,7 +585,8 @@
<td><span style="cursor: pointer;text-decoration: underline;"
@click.stop="goUrC('CouponsList',item.customerAccountId)">{{item.couponNum}}</span></td>
<td>
<span style="cursor: pointer;color: #2CA4F0" @click="seeDeta(item)">{{ item.depositMoney?item.depositMoney:0 }}</span>
<span style="cursor: pointer;color: #2CA4F0"
@click="seeDeta(item)">{{ item.depositMoney?item.depositMoney:0 }}</span>
</td>
<td>
<el-tooltip class="item" effect="dark" content="编辑" placement="top-start">
......@@ -591,8 +602,8 @@
icon="iconfont icon-icon-test6" circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="团队成员" placement="top-start">
<el-button style="padding:4px" @click.stop="goTeamMember(item)" type="primary"
icon="el-icon-user-solid" circle></el-button>
<el-button style="padding:4px" @click.stop="goTeamMember(item)" type="primary" icon="el-icon-user-solid"
circle></el-button>
</el-tooltip>
</td>
</tr>
......@@ -601,7 +612,8 @@
</tr>
</table>
<!-- 产品列表 -->
<signedClientList v-else :loading="loading" :list="dataList" :isVisa="isVisa" @success="reSearchPage" :pagesTitle="pagesTitle"></signedClientList>
<signedClientList v-else :loading="loading" :list="dataList" :isVisa="isVisa" @success="reSearchPage"
:pagesTitle="pagesTitle"></signedClientList>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total">
</el-pagination>
......@@ -612,8 +624,8 @@
<p class="_tit">{{$t('salesModule.addCustomer')}}
<span class="fr">
<button class="hollowFixedBtn" type="button" @click="cancelEdit()">{{$t('pub.cancelBtn')}}</button>
<el-button type="button" class="normalBtn" v-if='allowAdd' @click="saveVisa()"
:loading="loadingSave">{{$t('pub.saveBtn')}}</el-button>
<el-button type="button" class="normalBtn" v-if='allowAdd' @click="saveVisa()" :loading="loadingSave">
{{$t('pub.saveBtn')}}</el-button>
</span>
</p>
</div>
......@@ -681,31 +693,27 @@
<div style="display: flex;flex-wrap: wrap;">
<div class="_info_img" v-if="addMsg.BusinessCardPhotos&&addMsg.BusinessCardPhotos.length>0">
<ul class="clearfix">
<li v-for="(img,imgI) in addMsg.BusinessCardPhotos" style="margin-right: 5px;position: relative;border:1px dashed #d1d1d1;border-radius: 6px;">
<li v-for="(img,imgI) in addMsg.BusinessCardPhotos"
style="margin-right: 5px;position: relative;border:1px dashed #d1d1d1;border-radius: 6px;">
<img v-if="!img" src="../../assets/img/Travelslider.png" alt="">
<el-image
v-if="img&&verificationFile(img,3)"
:src="img"
:preview-src-list="[img]">
<el-image v-if="img&&verificationFile(img,3)" :src="img" :preview-src-list="[img]">
</el-image>
<div v-if="img&&verificationFile(img,1)"
style="width: 50px; line-height: 50px;text-align: center;">
<span class="_wenjian_P iconfont"
:class="img.substring(img.lastIndexOf('.')+1,img.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span>
</div>
<span class="iconfont icon-guanbi1"
@click="deleteUploadFile(imgI)"></span>
<div v-if="img&&verificationFile(img,1)" class="_see_img" @click="verificationFile(img,3)?'':showUpLoadFile2(img)">
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(imgI)"></span>
<div v-if="img&&verificationFile(img,1)" class="_see_img"
@click="verificationFile(img,3)?'':showUpLoadFile2(img)">
<i class="iconfont icon-sousuo"></i>
</div>
</li>
</ul>
</div>
<div style="display: flex; justify-content: end;">
<el-upload class="upload-demo"
ref="my-upload"
style="display:inline-block;position:relative;top:-1px;left:3px;"
:http-request="uploadImg"
<el-upload class="upload-demo" ref="my-upload"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadImg"
:show-file-list="false" action="">
<el-button size="small" type="primary">上传合同</el-button>
</el-upload>
......@@ -717,34 +725,19 @@
<el-form-item label="平台用户名">
<div style="display: flex;flex-wrap: nowrap;justify-content: space-between;">
<div style="display: flex; flex-wrap: wrap;align-items: center;">
<el-tag
:key="tag"
v-for="tag in addMsg.PlatformUserNameList"
closable
:disable-transitions="false"
@close="handleClose(tag,1)"
size="medium"
style="margin-right: 5px;margin-bottom: 3px;">
<el-tag :key="tag" v-for="tag in addMsg.PlatformUserNameList" closable :disable-transitions="false"
@close="handleClose(tag,1)" size="medium" style="margin-right: 5px;margin-bottom: 3px;">
{{tag}}
</el-tag>
<div>
<el-input
class="input-new-tag"
v-if="inputVisible"
v-model="inputValue"
ref="saveTagInputTwo"
size="small"
@keyup.enter.native="handleInputConfirm(1)"
@blur="handleInputConfirm(1)"
>
<el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInputTwo"
size="small" @keyup.enter.native="handleInputConfirm(1)" @blur="handleInputConfirm(1)">
</el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput(1)">+ 添加</el-button>
</div>
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="签约月结客户" prop="SigningType">
......@@ -763,7 +756,6 @@
<template v-for="(subItem,subIndex) in saveMsg">
<a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex"
@click="downloadFile(subItem.URL,subItem.FileName)">{{subItem.FileName}}</a>
<a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;"
@click="DeleteFile(subIndex)">删除</a>
</template>
......@@ -777,7 +769,8 @@
<template v-if="isShow">
<el-col :span="6">
<el-form-item :label="$t('salesModule.CustomerSource')" prop="CustomerSourceType">
<el-select filterable v-model='addMsg.CustomerSourceType' style="width: 100%;" :placeholder="$t('pub.pleaseSel')">
<el-select filterable v-model='addMsg.CustomerSourceType' style="width: 100%;"
:placeholder="$t('pub.pleaseSel')">
<el-option v-for='item in khly' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
......@@ -808,7 +801,6 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('hotel.hotel_remark')" prop="remark">
<el-input v-model="addMsg.remark" autosize type="textarea" maxlength="500"></el-input>
......@@ -819,7 +811,6 @@
<el-input v-model="addMsg.CustomerSource" maxlength="20"></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="$t('salesModule.doorPhoto')">
<el-upload class="avatar-uploader" action="" :http-request="uploadImg1"
......@@ -854,8 +845,7 @@
<div slot="tip" class="el-upload__tip">只能上传Excel文件</div>
</el-upload>
</el-dialog>
<div class="MyCustomerDetailbottomLayer ownScrollbarStyle"
style="height:500px;" v-if="addLayer1">
<div class="MyCustomerDetailbottomLayer ownScrollbarStyle" style="height:500px;" v-if="addLayer1">
<p>修改客户信息</p>
<el-row :gutter="20">
<el-col :span="18">
......@@ -866,8 +856,7 @@
<input type="button" class="normalBtn" value="保存" @click="saveUpdate()" />
</el-col>
</el-row>
<el-form label-width="80px" >
<el-form label-width="80px">
<el-row :gutter="20">
<el-col :span="4">
<el-form-item label="联系电话">
......@@ -887,8 +876,7 @@
</el-col>
<el-col :span="4" v-if="updateMsg.customerExceptionList.length > 0">
<el-form-item label="解决异常">
<el-select filterable multiple clearable collapse-tags
v-model='updateMsg.CustomerExceptionIds'>
<el-select filterable multiple clearable collapse-tags v-model='updateMsg.CustomerExceptionIds'>
<el-option v-for='item in updateMsg.customerExceptionList' :label='item.exceptionName'
:value='item.exceptionId' :key='item.exceptionId'>
</el-option>
......@@ -976,29 +964,24 @@
<li v-for="(img,imgI) in updateMsg.BusinessCardPhotos"
style="margin-right: 5px;position: relative;border:1px dashed #d1d1d1;border-radius: 6px;">
<img v-if="!img" src="../../assets/img/Travelslider.png" alt="">
<el-image
v-if="img&&verificationFile(img,3)"
:src="img"
:preview-src-list="[img]">
<el-image v-if="img&&verificationFile(img,3)" :src="img" :preview-src-list="[img]">
</el-image>
<div v-if="img&&verificationFile(img,1)"
style="width: 50px; line-height: 50px;text-align: center;">
<span class="_wenjian_P iconfont"
:class="img.substring(img.lastIndexOf('.')+1,img.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span>
</div>
<span class="iconfont icon-guanbi1"
@click="deleteUploadFile(imgI)"></span>
<div v-if="img&&verificationFile(img,1)" class="_see_img" @click="verificationFile(img,3)?'':showUpLoadFile2(img)">
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(imgI)"></span>
<div v-if="img&&verificationFile(img,1)" class="_see_img"
@click="verificationFile(img,3)?'':showUpLoadFile2(img)">
<i class="iconfont icon-sousuo"></i>
</div>
</li>
</ul>
</div>
<div style="display: flex; justify-content: end;">
<el-upload class="upload-demo"
ref="my-upload"
style="display:inline-block;position:relative;top:-1px;left:3px;"
:http-request="uploadImg"
<el-upload class="upload-demo" ref="my-upload"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadImg"
:show-file-list="false" action="">
<el-button size="small" type="primary">上传合同</el-button>
</el-upload>
......@@ -1008,25 +991,12 @@
</el-col>
<el-col :span="8">
<el-form-item label="平台用户名">
<el-tag
:key="tag"
v-for="tag in updateMsg.PlatformUserNameList"
closable
:disable-transitions="false"
@close="handleClose(tag)"
size="small"
style="margin-right: 5px;margin-bottom: 3px;">
<el-tag :key="tag" v-for="tag in updateMsg.PlatformUserNameList" closable :disable-transitions="false"
@close="handleClose(tag)" size="small" style="margin-right: 5px;margin-bottom: 3px;">
{{tag}}
</el-tag>
<el-input
class="input-new-tag"
v-if="inputVisible"
v-model="inputValue"
ref="saveTagInput"
size="small"
@keyup.enter.native="handleInputConfirm"
@blur="handleInputConfirm"
>
<el-input class="input-new-tag" v-if="inputVisible" v-model="inputValue" ref="saveTagInput" size="small"
@keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm">
</el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 添加</el-button>
</el-form-item>
......@@ -1055,8 +1025,7 @@
</div>
<detailList v-if="showdetail" :ClientId="detailObj&&detailObj.customerId" @cancel="showdetail=false"></detailList>
<!-- 团队成员 -->
<TeamMemberList v-if="ShowTeamMember" :customerId="customerId"
@close="ShowTeamMember=false,customerId=null"
<TeamMemberList v-if="ShowTeamMember" :customerId="customerId" @close="ShowTeamMember=false,customerId=null"
@success="getList"></TeamMemberList>
</div>
</template>
......@@ -1065,7 +1034,7 @@
import signedClientList from './Common/signedClientList'
import TeamMemberList from './Common/TeamMemberList'
export default {
components:{
components: {
signedClientList,
detailList,
TeamMemberList
......@@ -1253,6 +1222,7 @@
isShow: true,
inputVisible: false,
inputValue: '',
currentUserInfo: {}, //当前登录用户
}
},
methods: {
......@@ -1263,19 +1233,19 @@
window.open("https://view.officeapps.live.com/op/view.aspx?src=" + i)
}
},
handleClose(tag,type) {
if(type==1){
handleClose(tag, type) {
if (type == 1) {
this.addMsg.PlatformUserNameList.splice(this.addMsg.PlatformUserNameList.indexOf(tag), 1);
}else{
} else {
this.updateMsg.PlatformUserNameList.splice(this.updateMsg.PlatformUserNameList.indexOf(tag), 1);
}
},
showInput(type) {
this.inputVisible = true;
this.$nextTick(_ => {
if(type==1){
if (type == 1) {
this.$refs.saveTagInputTwo.$refs.input.focus();
}else{
} else {
this.$refs.saveTagInput.$refs.input.focus();
}
});
......@@ -1283,35 +1253,35 @@
handleInputConfirm(type) {
let inputValue = this.inputValue;
if (inputValue) {
if(type==1){
if (type == 1) {
this.addMsg.PlatformUserNameList.push(inputValue);
}else{
} else {
this.updateMsg.PlatformUserNameList.push(inputValue);
}
}
this.inputVisible = false;
this.inputValue = '';
},
goTeamMember(row){
goTeamMember(row) {
this.customerId = row.customerId
this.ShowTeamMember = true
},
seeDeta(row){
seeDeta(row) {
this.detailObj = row
this.showdetail = true
},
reSearchPage(){
reSearchPage() {
this.msg.pageIndex = 1
this.currentPage = 1
this.getList()
},
clickAdd(){
clickAdd() {
this.cancelData()
this.inputValue = ''
this.inputVisible = false
this.addShow=true;
this.isOldPerson=false,
this.addLayer1=false
this.addShow = true;
this.isOldPerson = false,
this.addLayer1 = false
},
uploadFileBtn(file) { //上传
if (file.file.size > 1024 * 1024 * 100) {
......@@ -1444,11 +1414,11 @@
}
})
let AreaName = sheng + shi + qu
if(this.updateMsg.Address==''||!this.updateMsg.Address){
if (this.updateMsg.Address == '' || !this.updateMsg.Address) {
this.updateMsg.Address = AreaName
// this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address
}
if(this.updateMsg.Address&&this.updateMsg.Address.indexOf(AreaName)==-1){
if (this.updateMsg.Address && this.updateMsg.Address.indexOf(AreaName) == -1) {
this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address
}
......@@ -1464,14 +1434,13 @@
} else {
this.$message.error(res.data.message)
}
}, err => {
})
}, err => {})
},
deleteUploadFile(fIndex,type){
if(type){
this.addMsg.BusinessCardPhotos.splice(fIndex,1)
}else{
this.updateMsg.BusinessCardPhotos.splice(fIndex,1)
deleteUploadFile(fIndex, type) {
if (type) {
this.addMsg.BusinessCardPhotos.splice(fIndex, 1)
} else {
this.updateMsg.BusinessCardPhotos.splice(fIndex, 1)
}
},
uploadImgNew(file) {
......@@ -1530,11 +1499,12 @@
this.updateMsg.CustomerExceptionIds = []
this.updateMsg.District = x.district
this.BusinessCardPhotos = x.businessCardPhotos && x.businessCardPhotos.length > 0?x.businessCardPhotos[0]:''
this.updateMsg.BusinessCardPhotos = x.businessCardPhotos?x.businessCardPhotos:[]
this.updateMsg.PlatformUserNameList = x.platformUserNameList?x.platformUserNameList:[]
this.Images = x.images && x.images.length > 0?x.images[0]:''
this.HousePhotos = x.housePhotos && x.housePhotos.length > 0?x.housePhotos[0]:''
this.BusinessCardPhotos = x.businessCardPhotos && x.businessCardPhotos.length > 0 ? x
.businessCardPhotos[0] : ''
this.updateMsg.BusinessCardPhotos = x.businessCardPhotos ? x.businessCardPhotos : []
this.updateMsg.PlatformUserNameList = x.platformUserNameList ? x.platformUserNameList : []
this.Images = x.images && x.images.length > 0 ? x.images[0] : ''
this.HousePhotos = x.housePhotos && x.housePhotos.length > 0 ? x.housePhotos[0] : ''
this.updateMsg.uniqueCode = x.uniqueCode
this.updateMsg.lineid = x.lineid
......@@ -1633,10 +1603,10 @@
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
that.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath
if(that.addShow==true){
if (that.addShow == true) {
that.addMsg.BusinessCardPhotos.push(that.BusinessCardPhotos)
}
if(that.addLayer1==true){
if (that.addLayer1 == true) {
that.updateMsg.BusinessCardPhotos.push(that.BusinessCardPhotos)
}
that.$message.success('上传成功');
......@@ -1814,10 +1784,10 @@
},
clickGetList(type) {
this.msg.CustomerStatus = type
if(type==0){
this.msg.SigningType=1
}else{
this.msg.SigningType=0
if (type == 0) {
this.msg.SigningType = 1
} else {
this.msg.SigningType = 0
}
this.reSearchPage()
},
......@@ -1914,11 +1884,11 @@
}
})
let AreaName = sheng + shi + qu
if(this.addMsg.address==''||!this.addMsg.address){
if (this.addMsg.address == '' || !this.addMsg.address) {
this.addMsg.address = AreaName
// this.addMsg.address = AreaName + ',' + this.addMsg.address
}
if(this.addMsg.address&&this.addMsg.address.indexOf(AreaName)==-1){
if (this.addMsg.address && this.addMsg.address.indexOf(AreaName) == -1) {
this.addMsg.address = AreaName + ',' + this.addMsg.address
}
if (!this.addMsg.address) {
......@@ -1961,14 +1931,16 @@
this.$message.error(res.data.message)
}
this.loadingSave = false
}, err => {this.loadingSave = false})
}, err => {
this.loadingSave = false
})
},
cancelEdit() { // 取消新增
this.addShow = false
this.cancelData()
this.resetForm('addMsg')
},
cancelData(){
cancelData() {
this.addMsg = {
CustomerId: 0,
customerName: '',
......@@ -2007,6 +1979,9 @@
this.getList();
},
},
created() {
this.currentUserInfo = this.getLocalStorage();
},
mounted() {
this.getList()
this.getCustomerBrandList()
......
......@@ -1301,25 +1301,15 @@ export default {
if (this.outerVisible) {
if (!blo) {
this.addMsg.AirportList && this.addMsg.AirportList.forEach(x => {
// x.Id=0,
// x.ProductId= 0//产品id
x.AirportId = x.AirportId ? x.AirportId : ''//机场id
// x.Lng= ''
// x.Lat= ''
x.Name = x.Name ? x.Name : ''//机场名称 包含IATA
// x.Address= ''//详细地址
})
}
this.layer_Departure_airport = res.data.data;
} else {
this.addMsg.AirportList && this.addMsg.AirportList.forEach(x => {
// x.Id=0,
// x.ProductId= 0//产品id
x.AirportId = x.AirportId ? x.AirportId : ''//机场id
// x.Lng= ''
// x.Lat= ''
x.Name = x.Name ? x.Name : ''//机场名称 包含IATA
// x.Address= ''//详细地址
})
this.Departure_airport = res.data.data;
}
......@@ -1333,15 +1323,6 @@ export default {
showImg: function (src) {
this.images = []
this.images = JSON.parse(JSON.stringify(this.addMsg.ImageList))
// let srcArr = src.split('?')
// src = srcArr[0]
// let isExsit = false
// this.images.forEach(x => {
// if (x === src)
// isExsit = true
// })
// if (!isExsit)
// this.images.push(src)
this.$viewer.show()
this.$viewer.view(this.images.indexOf(src))
},
......
......@@ -226,15 +226,16 @@
/* 景区列表 */
</style>
<template>
</style>
<template>
<div class="flexOne scenicSpotList">
<div class="query-box">
<ul>
<li>
<span class="hotel_name">
<em>产品名称</em>
<el-input maxlength="50" clearable @keyup.native.enter="resetPageIndex(),selectResource()" v-model="msg.Name">
<el-input maxlength="50" clearable @keyup.native.enter="resetPageIndex(),selectResource()"
v-model="msg.Name">
</el-input>
</span>
</li>
......@@ -250,8 +251,7 @@
<li>
<button class="hollowFixedBtn" type="button"
@click="resetPageIndex(),selectResource()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" type="button"
@click="goUrl('CharteringInfoManage')">{{$t('pub.addBtn')}}</button>
<button class="normalBtn" type="button" @click="goUrl('CharteringInfoManage')">{{$t('pub.addBtn')}}</button>
<!-- <button class="hollowFixedBtn" type="button" @click="DownLoadFile()">{{$t('adm.adm_download')}}</button> -->
</li>
</ul>
......@@ -304,8 +304,8 @@
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage"
:page-size="msg.pageSize" layout="total,prev, pager, next, jumper" :total="msg.total"></el-pagination>
</div>
</template>
<script>
</template>
<script>
export default {
data() {
return {
......@@ -357,12 +357,13 @@
},
methods: {
// 上下架
clickShelf(item){
clickShelf(item) {
var that = this;
let text
if(item.ProductState==1){
if (item.ProductState == 1) {
text = '下架'
}if(item.ProductState==2){
}
if (item.ProductState == 2) {
text = '上架'
}
that.Confirm(`是否要${text}该包车产品?`, function () {
......@@ -527,7 +528,7 @@
);
},
goUrl(path, id) {
if(id){
if (id) {
this.$store.commit("pageConditionUpdate", this.msg);
this.$router.push({
path: path,
......@@ -537,7 +538,7 @@
tab: '修改产品信息'
}
});
}else{
} else {
this.$router.push({
path: path,
query: {
......@@ -549,7 +550,7 @@
}
},
goUrlT(path, id,Name) {
goUrlT(path, id, Name) {
let data = {
id: id,
Name: Name,
......@@ -594,18 +595,18 @@
this.msg = this.$store.state.pageCondition;
}
}
if(this.$route.query.StatisticsSTime){
this.msg.StatisticsSTime=this.$route.query.StatisticsSTime
if (this.$route.query.StatisticsSTime) {
this.msg.StatisticsSTime = this.$route.query.StatisticsSTime
}
if(this.$route.query.StatisticsETime){
this.msg.StatisticsETime=this.$route.query.StatisticsETime
if (this.$route.query.StatisticsETime) {
this.msg.StatisticsETime = this.$route.query.StatisticsETime
}
if(this.$route.query.type){
if(this.$route.query.type==1){
this.msg.CreateBy =this.$route.query.EmployeeId;
if (this.$route.query.type) {
if (this.$route.query.type == 1) {
this.msg.CreateBy = this.$route.query.EmployeeId;
}
if(this.$route.query.type==2){
this.msg.UpdateBy =this.$route.query.EmployeeId;
if (this.$route.query.type == 2) {
this.msg.UpdateBy = this.$route.query.EmployeeId;
}
}
var id = this.$route.query.ID;
......@@ -616,5 +617,4 @@
}
};
</script>
\ No newline at end of file
</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