Commit 8fdae4db authored by youjie's avatar youjie

no message

parent 5b01abcb
......@@ -1016,6 +1016,13 @@
icon="el-icon-check"
@click='setCompleted(scope.row.Id,scope.row)' :loading="scope.row.loading"></el-button>
</el-tooltip>
<!-- 转移 -->
<el-tooltip v-if="IsSupperOrderEdit&&scope.row.IsCommission!=1" class="item" effect="dark" content="转移"
placement="top-start">
<el-button type="primary" style='background:#E95252; border-color:#E95252;padding:5px'
icon="el-icon-refresh"
@click='queryObj=scope.row,showTransferOrder=true'></el-button>
</el-tooltip>
</td>
</tr>
......@@ -1150,14 +1157,19 @@
</span>
</el-dialog>
<offset :isShow="cdState" :obj="queryObj" @close="cdState=false"></offset>
<TransferOrder v-if="showTransferOrder" :isShow="showTransferOrder" :obj="queryObj"
@success="showTransferOrder=false,getList()"
@close="showTransferOrder=false"></TransferOrder>
</div>
</template>
<script>
import offset from '../public/offset.vue';
import TransferOrder from './components/TransferOrder.vue';
export default {
components: { offset },
components: { offset,TransferOrder },
data() {
return {
showTransferOrder: false,
queryObj:null,
cdState: false,
IsSupperOrderEdit: false, //获取总经理副总经理超级修改权限
......
<template>
<el-dialog title="转移订单" width="860px" :visible.sync="showState" center @close="close">
<el-form class="cdForm" label-width="90px">
<el-form-item label="产品ID">
<el-input v-model="msg.ProductID" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="产品名称">
<el-input v-model="msg.ProductName" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item>
<input type="button" value="查询" class="leader2Btn" @click="getList">
</el-form-item>
<el-form-item label="状态">
<el-select v-model="msg.VisaStatus">
<el-option label="不限" value="-1" key="-1"></el-option>
<el-option label="上架" value="1" key="1"></el-option>
<el-option label="下架" value="2" key="2"></el-option>
</el-select>
</el-form-item>
<el-form-item label="价格有效期">
<el-date-picker
v-model="msg.StartTime"
class="w135"
value-format="yyyy-MM-dd"
type="date"
></el-date-picker>-
<el-date-picker
v-model="msg.EndTime"
class="w135"
value-format="yyyy-MM-dd"
type="date"
></el-date-picker>
</el-form-item>
</el-form>
<el-table
v-loading="loading"
ref="multipleTable"
:data="dataList"
style="width: 100%"
highlight-current-row
@current-change="handleCurrentChangeId"
>
<el-table-column label="公司" prop="BranchName"></el-table-column>
<el-table-column label="产品名称" prop="Name"></el-table-column>
<el-table-column label="签证类型" prop="">
<template slot-scope="scope">
<span v-if="scope.row.VisaType==1" class="geqian">个签</span>
<span v-else class="tuanqian">团签</span>
</template>
</el-table-column>
<el-table-column label="价格有效日期" prop="" width="200">
<template slot-scope="scope">
<p>
结束日期:<span class="fbold">{{scope.row.SendVisaDate}}</span>
</p>
<p>
开始日期:<span class="fbold">{{scope.row.EffectiveStartDate}}</span>
</p>
</template>
</el-table-column>
<el-table-column label="成本价" prop="">
<template slot-scope="scope">
<span class="totalPrice fbold" style="color: #47BF8C;">{{moneyFormat(scope.row.CostPrice)}}</span>
</template>
</el-table-column>
<el-table-column label="同业价" prop="">
<template slot-scope="scope">
<span class="totalPrice fbold" style="color: #f90;">{{moneyFormat(scope.row.VisaPrice)}}</span>
</template>
</el-table-column>
<el-table-column label="直客价" prop="">
<template slot-scope="scope">
<span class="totalPrice fbold" style="color: #f90;">{{moneyFormat(scope.row.VisaB2CPrice)}}</span>
</template>
</el-table-column>
<el-table-column label="状态" prop="">
<template slot-scope="scope">
<i v-if="scope.row.VisaStatus==1" class="iconfont icon-shangjia" style="color:#4BCA81;"></i>
<i v-else class="iconfont icon-xiajia" style="color:#4BCA81;"></i>
{{scope.row.VisaStatus==1?"上架":"下架"}}
</template>
</el-table-column>
</el-table>
<el-pagination background @current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total='total'>
</el-pagination>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="close">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="submit" :loading="submitLoading">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
</template>
<script>
export default {
props: ["isShow","obj"],
components: {
},
data() {
return {
currentPage: 1,
multipleSelection: [],
currentRow: null,
msg:{
pageIndex:1,
pageSize:10,
ProductName:'',
StartTime:'',
EndTime:'',
EmId:'-1',
VisaStatus:'-1',
ProductID:this.$route.query.ID,
},
total: 0,
dataList: [],
showState: true,
loading: false,
submitLoading: false,
}
},
watch: {
obj: {
handler(newValue,onldValue) {
},
deep:true,
},
isShow: {
handler(newValue,onldValue) {
},
// deep:true,
immediate: false
}
},
mounted() {
this.showState = true
this.getList()
},
methods: {
selectable(row, index){
return true
if (this.dataList[index].isFinish!=1&&this.dataList[index].income>0&&this.dataList[index].dueInMoney==0) {
return true;
} else {
return false;
}
},
handleCurrentChangeId(val) {
this.currentRow = val
},
close(){
this.showState = false
this.$emit('close',false)
},
submit(){
if(!this.currentRow){
this.Error("请点击任意行选择签证产品!");
return;
}
this.submitLoading = true
this.apipost("dmc_get_visa_UpdateVisaOrderVisaId", {
Id:this.obj.id?this.obj.id:this.obj.Id,
VisaId:this.currentRow.Id
}, res => {
if (res.data.resultCode === 1) {
this.showState = false
this.$emit('success')
this.close()
if(this.obj.Id){
this.$router.push({
path: "/VisaProduct",
});
}
}
this.submitLoading = false
}, null)
},
// 查询冲抵单号
getList(){
this.loading = true
this.apipost("dmc_get_visa_GetVisaProductList", this.msg, res => {
if (res.data.resultCode === 1) {
this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
}
this.loading = false
}, null)
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
}
}
</script>
<style>
.el-dialog__header {
background-color: #E95252 !important;
padding: 20px 40px 10px;
}
.el-dialog__header .el-dialog__title {
color: white;
}
.hollowFixedBtn {
background: #fff;
color: #E95252;
padding: 0 15px;
height: 30px;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
}
.hollowFixedBtn:hover {
box-shadow: 2px 0px 4px rgba(144, 6, 6, 0.25)
}
.hollowFixedBtn:active {
border-color: #CD2929;
}
.normalBtn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #E95252;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
outline: none;
}
.normalBtn:hover {
background: #E95252;
box-shadow: 2px 0px 4px rgba(144, 6, 6, 0.25)
}
.normalBtn:active {
background: #CD2929;
}
.leaderPayTable {
width: 100%;
margin: 10px auto;
text-align: center;
font-size: 12px;
color: #333;
border-collapse: collapse;
background-color: #fff;
border: 1px solid #d1d1d1;
}
.leaderPayTable th {
background: #e6e6e6;
padding: 8px 0;
color: #333;
border: 1px solid #d1d1d1;
font-weight: bold;
}
.leaderPayTable tr td {
background-color: #fff;
padding: 8px 0;
height: 32px;
border: 1px solid #d1d1d1;
}
.leaderPayTable2 tr td {
border: 1px solid #ccc;
line-height: 17px;
height: 25px;
font-size: 12px;
background: #fff;
text-align: center;
padding: 0;
;
margin: 0;
}
.LeaderPrintDiv .LeaderTitle {
padding: 10px;
text-align: left;
}
.leaderPayTable .itemName {
text-align: left;
padding: 0 10px;
}
@media print {
.LeaderPrintDiv .btnListDiv {
display: none;
}
}
.comTotal {
text-align: left;
padding-left: 30px !important;
}
.LeaderPrintDiv {
width: 100%;
background: #f8f8f8;
position: absolute;
}
.LeaderPrintDiv .childDiv {
width: 1000px;
margin: 0 auto;
}
.LeaderPrintDiv .childDiv ._Titles {
font-size: 14px;
}
.wLeader2 .el-textarea__inner {
height: 130px;
}
.LeaderPrintDiv .btnListDiv {
margin: 20px auto;
text-align: center;
}
.LeaderPrintDiv .leader2Btn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #e95252;
border: 1px solid #e95252;
cursor: pointer;
border-radius: 15px;
outline:none;
}
.cursorpointer {
cursor: pointer;
}
.text-decoration {
text-decoration: underline;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="number"] {
-moz-appearance: textfield;
}
.w150 {
width: 150px !important;
}
.Receipt_box {
padding: 15px;
color: #c94052;
width: 614px;
background-color: rgba(242, 242, 242, 1);
border: 1px solid rgba(228, 228, 228, 1)
}
.Receipt_box.color_blur {
color: #106BAF;
}
.Receipt_box.color_blur .rb_stit span {
display: inline-block;
border-bottom: 2px solid #106BAF;
padding: 0 20px
}
.rb_tit {
font-size: 18px;
text-align: center
}
.rb_stit {
font-size: 14px;
text-align: center
}
.rb_stit span {
display: inline-block;
border-bottom: 2px solid #C94052;
padding: 0 20px
}
.rb_top_row {
display: flex;
justify-content: space-between;
font-size: 12px;
}
.rb_top_row span._r_name {
color: #333333
}
.rb_top_row span._r_bold {
font-weight: bold
}
.rb_top_row ._r_time span {
color: #333333
}
._r_mb5 {
margin-bottom: 5px;
}
.Receipt_table {
width: 100%;
font-size: 14px;
text-align: center
}
.Receipt_table .th {
font-weight: 200 !important
}
._r_mt10 {
margin-top: 10px;
}
._bg__ {
display: inline-block;
padding: 2px 8px;
color: white;
border-radius: 4px
}
._bg_red {
background-color: #E95252;
}
._bg_green {
background-color: #2BB87C
}
.text_d {
text-decoration: underline;
cursor: pointer;
}
.PingFangSC {
font-weight: bold
}
.Bill_par {
position: relative;
}
tr._item_list {
border-bottom: 1px solid #E5E5E5;
height: 78px;
}
tr._item_list td {
border-bottom: 1px solid #e5e5e5;
padding: 10px;
}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child {
border-left: 1px solid #e5e5e5;
}
tr._item_list td:last-child {
border-right: 1px solid #e5e5e5;
}
._head_img {
width: 28px;
height: 28px;
border-radius: 50%;
vertical-align: middle;
}
._btn_group {
font-size: 14px;
}
.icon-daiqueren {
color: #4BCA81
}
.icon-yiqueren {
color: #4BCA81
}
.icon-yiquxiao {
color: #959595
}
.icon-shenhebohui {
color: #E95252
}
.icon-icon-zancun {
color: #FF9C01
}
.singeRowTable tr:hover {
background-color: white
}
._TradeWayList {
padding: 5px 10px;
background-color: #EEEEEE;
border-radius: 4px;
margin: 10px 0;
width: 230px
}
._bold {
font-weight: bold
}
._bank_name,
._bank_type {
display: inline-block;
background-color: #333333;
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 10px;
}
._bank_name {
margin-left: 10px;
cursor: pointer;
}
._bank_type {
background-color: #2AAEF2
}
._bank_type2 {
background-color: #FF9C01
}
.cdForm .el-form-item{
display: inline-block;
}
.leader2Btn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #e95252;
border: 1px solid #e95252;
cursor: pointer;
border-radius: 15px;
outline:none;
}
</style>
......@@ -782,6 +782,11 @@
@click='setCompleted(scope.row.id,scope.row)' v-loading="scope.row.loading">
<span class="c059FF6">完结</span>
</div>
<div class="row-c cursor-pointer radius5 change py5"
v-if="IsSupperOrderEdit&&!scope.row.commissionMoney&&!scope.row.opCommission&&pagesTitle!='销售'"
@click="queryObj=scope.row,showTransferOrder=true">
<span class="c059FF6">转移</span>
</div>
</template>
</div>
</div>
......@@ -916,16 +921,21 @@
</span>
</el-dialog>
<offset :isShow="cdState" :obj="queryObj" @close="cdState=false"></offset>
<TransferOrder v-if="showTransferOrder" :isShow="showTransferOrder" :obj="queryObj"
@success="showTransferOrder=false,$emit('success')"
@close="showTransferOrder=false"></TransferOrder>
</div>
</template>
<script>
import offset from '../../public/offset.vue';
import TransferOrder from './TransferOrder.vue';
import commissionDialog from "../../FinancialModule/TradeCommission/commissionDialog"
export default {
components: { offset,commissionDialog },
components: { offset,TransferOrder,commissionDialog },
props: ["OrderList", "pagesTitle"],
data() {
return {
showTransferOrder: false,
CompletedLoading: false,
multipleSelection: [],
isCommissionDialog: false,
......
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