Commit b694755a authored by zhengke's avatar zhengke

no message

parent 151be522
...@@ -169,7 +169,7 @@ export default { ...@@ -169,7 +169,7 @@ export default {
this.MsgBus.$on("RefreshInfoBox", function() { this.MsgBus.$on("RefreshInfoBox", function() {
$this.init(); $this.init();
}); });
if(this.activeNameNum){ if(this.activeNameNum=="2"){
this.activeName = this.activeNameNum this.activeName = this.activeNameNum
} }
}, },
......
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
</el-drawer> </el-drawer>
<!-- 单号抽屉 --> <!-- 单号抽屉 -->
<el-drawer @closed="closeOrderDrawerHandler" :with-header="false" size='70%' :visible.sync="orderDrawer" direction="rtl" :before-close="handleClose"> <el-drawer @closed="closeOrderDrawerHandler" :with-header="false" size='70%' :visible.sync="orderDrawer" direction="rtl" :before-close="handleClose">
<orderDetailsDrawer v-if="currentOrder" :orderId="currentOrder.OrderId" /> <orderDetailsDrawer v-if="currentOrder" :orderId="currentOrder.OrderId" :activeNameNum="activeNameNum" />
</el-drawer> </el-drawer>
</div> </div>
...@@ -266,6 +266,7 @@ export default { ...@@ -266,6 +266,7 @@ export default {
}, },
data() { data() {
return { return {
activeNameNum:"1",
MultipleChoiceList: [ //多选项目 MultipleChoiceList: [ //多选项目
{ {
Name: '机票', Name: '机票',
...@@ -474,16 +475,25 @@ export default { ...@@ -474,16 +475,25 @@ export default {
} }
}, },
makeAdocumentFun(row, index, num) { makeAdocumentFun(row, index, num) {
if (this.superManage) {
this.makeAdocumentFunction(row, index, num)
}else{
if (this.userInfo.EmName != row.EnterName) {
this.ValidateOperator();
} else {
this.makeAdocumentFunction(row, index, num)
}
}
},
makeAdocumentFunction(row, index, num){
let type; let type;
type = num == 1 ? 1 : 2; // 1收款 2退款 3成本 type = num == 1 ? 1 : 2; // 1收款 2退款 3成本
let href; let href;
let url = this.domainManager().erpRoutingUrl; let url = this.domainManager().erpRoutingUrl;
let data; let data;
let list = row.OrderType && row.OrderType.split(","); let list = row.OrderType && row.OrderType.split(",");
if (this.userInfo.EmName != row.EnterName) { if (row.OrderStatus != "2") {
this.ValidateOperator();
} else {
if (row.OrderStatus != "2") {
if (list && list.length > 1) { if (list && list.length > 1) {
let typeList = row.selectedType.split(","); let typeList = row.selectedType.split(",");
if (num == 1 && typeList.length >= 2) { if (num == 1 && typeList.length >= 2) {
...@@ -583,9 +593,7 @@ export default { ...@@ -583,9 +593,7 @@ export default {
} }
} }
} }
}
}, },
// 操作日志 // 操作日志
operationLog(row) { operationLog(row) {
this.MsgBus.$emit("logTicketOrderBoxOpen", row.GuestId, row, true); this.MsgBus.$emit("logTicketOrderBoxOpen", row.GuestId, row, true);
...@@ -608,6 +616,13 @@ export default { ...@@ -608,6 +616,13 @@ export default {
row.TicketStatus == 4 || row.TicketStatus == 4 ||
row.OrderStatus == "2" row.OrderStatus == "2"
) { ) {
this.$confirm('该订单已经无法修改出票状态', "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
}).catch(() => {})
return; return;
} else { } else {
this.MsgBus.$emit("reviseTicketOrderBoxOpen", row.GuestId, row, true); this.MsgBus.$emit("reviseTicketOrderBoxOpen", row.GuestId, row, true);
...@@ -648,7 +663,6 @@ export default { ...@@ -648,7 +663,6 @@ export default {
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.getList();
} }
} }
); );
...@@ -661,6 +675,13 @@ export default { ...@@ -661,6 +675,13 @@ export default {
}); });
}); });
} else { } else {
this.$confirm('该订单已经无法取消', "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
}).catch(() => {})
this.$emit("emptyMore"); this.$emit("emptyMore");
} }
}, },
...@@ -685,6 +706,13 @@ export default { ...@@ -685,6 +706,13 @@ export default {
true true
); );
} else { } else {
this.$confirm('该订单已经无法编辑', "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
}).catch(() => {})
this.$emit("emptyMore"); this.$emit("emptyMore");
} }
}, },
...@@ -704,6 +732,13 @@ export default { ...@@ -704,6 +732,13 @@ export default {
if (row.TicketStatus == 1 && row.OrderStatus == 1) { if (row.TicketStatus == 1 && row.OrderStatus == 1) {
this.MsgBus.$emit("editTicketOrderBoxOpen", row.GuestId, row, true); this.MsgBus.$emit("editTicketOrderBoxOpen", row.GuestId, row, true);
} else { } else {
this.$confirm('该订单已经无法编辑金额', "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
}).catch(() => {})
this.$emit("emptyMore"); this.$emit("emptyMore");
} }
}, },
......
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
position: absolute; position: absolute;
width: 5px; width: 5px;
height: 5px; height: 5px;
left: -3px; left: -8px;
border-radius: 100%; border-radius: 100%;
top: 15px; top: 15px;
background: rgba(255, 164, 117, 1); background: rgba(255, 164, 117, 1);
...@@ -645,7 +645,6 @@ ...@@ -645,7 +645,6 @@
:multiple="true" :multiple="true"
accept="image/jpeg,image/gif,image/png,image/bmp" accept="image/jpeg,image/gif,image/png,image/bmp"
:before-upload="handleAvatarUpload" :before-upload="handleAvatarUpload"
:on-progress="handleAvatarProgres"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
> >
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
...@@ -987,7 +986,6 @@ ...@@ -987,7 +986,6 @@
action="" action=""
:http-request="uploadImg" :http-request="uploadImg"
:multiple="true" :multiple="true"
:on-progress="handleAvatarprogress"
:before-upload="handleAvatarUploadType" :before-upload="handleAvatarUploadType"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
> >
......
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
<div v-if="scope.row.OrderId === 0"> <div v-if="scope.row.OrderId === 0">
- -
</div> </div>
<div v-else> <div v-else @click="openNameDetails(scope.row)" class="hover">
{{scope.row.GuestName}} {{scope.row.GuestName}}
</div> </div>
</template> </template>
...@@ -325,6 +325,9 @@ ...@@ -325,6 +325,9 @@
</div> </div>
</div> </div>
<el-drawer :with-header="false" size='70%' :visible.sync="drawer" direction="rtl" :before-close="handleClose">
<customerInfoBox :CustomerId="CustomerId" />
</el-drawer>
<!-- 单号抽屉 --> <!-- 单号抽屉 -->
<el-drawer @closed="closeOrderDrawerHandler" :with-header="false" size='70%' :append-to-body="true" :visible.sync="orderDrawer" direction="rtl" :before-close="handleClose"> <el-drawer @closed="closeOrderDrawerHandler" :with-header="false" size='70%' :append-to-body="true" :visible.sync="orderDrawer" direction="rtl" :before-close="handleClose">
<orderDetailsDrawer v-if="currentOrder" :orderId="currentOrder.OrderId" :activeNameNum="activeNameNum"/> <orderDetailsDrawer v-if="currentOrder" :orderId="currentOrder.OrderId" :activeNameNum="activeNameNum"/>
...@@ -333,10 +336,12 @@ ...@@ -333,10 +336,12 @@
</template> </template>
<script> <script>
import customerInfoBox from "../guestManagement/customerInfoBox";
import orderDetailsDrawer from "../customerManage/orderDetailsDrawer"; import orderDetailsDrawer from "../customerManage/orderDetailsDrawer";
export default { export default {
components: { components: {
orderDetailsDrawer customerInfoBox,
orderDetailsDrawer
}, },
created() { created() {
// erp自动登陆传过来的参数 // erp自动登陆传过来的参数
...@@ -386,7 +391,11 @@ export default { ...@@ -386,7 +391,11 @@ export default {
StatModel:[], StatModel:[],
currentOrder:null, currentOrder:null,
orderDrawer:false, orderDrawer:false,
activeNameNum:"2" activeNameNum:"2",
drawer:false,
CustomerId:"",
CustomerName:""
}; };
}, },
methods: { methods: {
...@@ -494,6 +503,12 @@ export default { ...@@ -494,6 +503,12 @@ export default {
return return
this.$router.push({path:'/customerOrder',query:{OrderId:val}}) this.$router.push({path:'/customerOrder',query:{OrderId:val}})
}, },
// 点击客人名称
openNameDetails(item) {
this.drawer = true;
this.CustomerId = item.GuestId;
this.CustomerName = item.GuestName;
},
//改变状态背景颜色 //改变状态背景颜色
columenStyle({columnIndex}){ columenStyle({columnIndex}){
if(columnIndex == 6 ){ if(columnIndex == 6 ){
......
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