Commit 71ca7eef authored by 吴春's avatar 吴春

1

parent 1fea9227
...@@ -390,6 +390,7 @@ ...@@ -390,6 +390,7 @@
</span> </span>
</li> </li>
<li> <li>
<input v-if="userInfo.SimpleEasy==1" type="button" class="hollowFixedBtn" :value="$t('pub.addBtn')" @click="addOrders"/>
<button class="hollowFixedBtn" @click="getList()">{{$t('pub.searchBtn')}}</button> <button class="hollowFixedBtn" @click="getList()">{{$t('pub.searchBtn')}}</button>
</li> </li>
</ul> </ul>
...@@ -519,19 +520,33 @@ ...@@ -519,19 +520,33 @@
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<pinkDrawer ref="addOrders"
:drawer-config="drawerConfig">
<template slot="drawer" slot-scope="{ visible, close }">
<cruiseShipInfo v-if="visible" :isDrawerMode="true"
:details="selectedSpotData"
@close="close" @save-success="handleSaveSuccess"></cruiseShipInfo>
</template>
</pinkDrawer>
</div> </div>
</template> </template>
<script> <script>
import visaOrderList from './visaOrderList.vue'; import visaOrderList from './visaOrderList.vue';
import pinkDrawer from '../../common/pinkDrawer.vue';
import DateLimit from '../../public/DateLimit.vue'; import DateLimit from '../../public/DateLimit.vue';
import cruiseShipInfo from './cruiseShipInfo.vue';
import addConfig from "./addConfig.js";
export default { export default {
props: ['pagesTitle'], props: ['pagesTitle'],
components: { components: {
visaOrderList, visaOrderList,
DateLimit DateLimit,
pinkDrawer,
cruiseShipInfo,
}, },
data() { data() {
return { return {
selectedSpotData: null,
pickerStartDate: { pickerStartDate: {
disabledDate: time => { disabledDate: time => {
let startTime = new Date(this.msg.StartDate); let startTime = new Date(this.msg.StartDate);
...@@ -633,7 +648,21 @@ ...@@ -633,7 +648,21 @@
layerCompanyList: [] layerCompanyList: []
} }
}, },
computed: {
// 抽屉配置
drawerConfig() {
return addConfig.drawerConfig;
},
},
methods: { methods: {
addOrders() {
this.$refs.addOrders.openDrawer();
},
handleSaveSuccess() {
this.$refs.addOrders.handleDrawerClose();
this.getList();
this.$message.success('保存成功');
},
pickerEnd(){ pickerEnd(){
if (this.msg.FinishSDate > this.msg.FinishEDate && this.msg.FinishEDate !== "") { if (this.msg.FinishSDate > this.msg.FinishEDate && this.msg.FinishEDate !== "") {
this.$message.error(this.$t('tips.jsrqbndyksriqi')); this.$message.error(this.$t('tips.jsrqbndyksriqi'));
......
// 邮轮列表配置
export const addConfig = {
// 抽屉配置
drawerConfig: {
title: '签证信息',
size: '90%',
direction: 'rtl'
},
}
// 导出默认配置
export default addConfig
This diff is collapsed.
...@@ -586,7 +586,25 @@ ...@@ -586,7 +586,25 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<template v-if="userInfo.SimpleEasy===1">
<el-table-column label="OP" min-width="100" style="background:#EAEAEA">
<template slot-scope="scope" >
<template>
<div class="row flex-wrap mb" v-if="scope.row.appointOPList&&scope.row.appointOPList.length>0">
<div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr px5 bgf5 c3FC4FF" style="margin: 3px;"
v-for="(x, i) in scope.row.appointOPList" :key="i+10000">{{ x.opName }}</span>
</div>
</div>
</template>
</template>
</el-table-column>
</template>
<template v-else>
<el-table-column label="OP" prop="opEmName" min-width="100" style="background:#EAEAEA"></el-table-column> <el-table-column label="OP" prop="opEmName" min-width="100" style="background:#EAEAEA"></el-table-column>
</template>
<el-table-column :label="$t('hotel.hotel_StarDate')" min-width="100" style="background:#EAEAEA"> <el-table-column :label="$t('hotel.hotel_StarDate')" min-width="100" style="background:#EAEAEA">
<template slot-scope="scope"> <template slot-scope="scope">
<template> <template>
...@@ -1037,17 +1055,31 @@ ...@@ -1037,17 +1055,31 @@
<offset :isShow="cdState" :obj="queryObj" @close="cdState=false"></offset> <offset :isShow="cdState" :obj="queryObj" @close="cdState=false"></offset>
<TransferOrder v-if="showTransferOrder" :isShow="showTransferOrder" :obj="queryObj" <TransferOrder v-if="showTransferOrder" :isShow="showTransferOrder" :obj="queryObj"
@success="showTransferOrder=false,$emit('success')" @close="showTransferOrder=false"></TransferOrder> @success="showTransferOrder=false,$emit('success')" @close="showTransferOrder=false"></TransferOrder>
<pinkDrawer ref="addOrders"
:drawer-config="drawerConfig">
<template slot="drawer" slot-scope="{ visible, close }">
<cruiseShipInfo v-if="visible" :isDrawerMode="true"
:details="selectedSpotData"
@close="close" @save-success="handleSaveSuccess"></cruiseShipInfo>
</template>
</pinkDrawer>
</div> </div>
</template> </template>
<script> <script>
import offset from '../../public/offset.vue'; import offset from '../../public/offset.vue';
import TransferOrder from './TransferOrder.vue'; import TransferOrder from './TransferOrder.vue';
import commissionDialog from "../../FinancialModule/TradeCommission/commissionDialog" import commissionDialog from "../../FinancialModule/TradeCommission/commissionDialog"
import pinkDrawer from '../../common/pinkDrawer.vue';
import cruiseShipInfo from './cruiseShipInfo.vue';
import addConfig from "./addConfig.js";
export default { export default {
components: { components: {
offset, offset,
TransferOrder, TransferOrder,
commissionDialog commissionDialog,
pinkDrawer,
cruiseShipInfo,
}, },
props: ["OrderList", "pagesTitle"], props: ["OrderList", "pagesTitle"],
data() { data() {
...@@ -1159,7 +1191,8 @@ ...@@ -1159,7 +1191,8 @@
EditOPVisible: false, EditOPVisible: false,
OPEmpId: 0, OPEmpId: 0,
OPOrderId: 0, OPOrderId: 0,
OPEmpList: [] OPEmpList: [],
selectedSpotData: null,
}; };
}, },
watch: { watch: {
...@@ -1172,7 +1205,17 @@ ...@@ -1172,7 +1205,17 @@
} }
} }
}, },
computed: {
// 抽屉配置
drawerConfig() {
return addConfig.drawerConfig;
},
},
methods: { methods: {
handleSaveSuccess(){
this.$refs.addOrders.handleDrawerClose();
this.$emit('success')
},
//提交 //提交
submitForm(msg) { submitForm(msg) {
//提交创建、修改表单 //提交创建、修改表单
...@@ -1525,6 +1568,12 @@ ...@@ -1525,6 +1568,12 @@
}); });
}, },
getDetail(obj, updateRStatus) { getDetail(obj, updateRStatus) {
console.log('-----')
if(this.userInfo.SimpleEasy==1){
this.selectedSpotData = obj;
this.$refs.addOrders.openDrawer(obj);
return;
}
this.SendStartDate = obj.sendStartDate this.SendStartDate = obj.sendStartDate
this.updateRemarksStatus = updateRStatus; this.updateRemarksStatus = updateRStatus;
this.visaManagementId = obj.visaManagementId this.visaManagementId = obj.visaManagementId
......
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