Commit c068dea2 authored by zhengke's avatar zhengke

no message

parent 61681048
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<productDetails :detailsData="detailsData"></productDetails> <productDetails :detailsData="detailsData"></productDetails>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="订单核算" name="2"> <el-tab-pane label="订单核算" name="2">
<orderProfits :orderId="orderId"></orderProfits> <orderProfits :orderId="orderId" :GuestId="detailsData.GuestId"></orderProfits>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="订单日志" name="3"> <el-tab-pane label="订单日志" name="3">
<orderLog :orderId="orderId"></orderLog> <orderLog :orderId="orderId"></orderLog>
......
...@@ -1480,9 +1480,11 @@ li { ...@@ -1480,9 +1480,11 @@ li {
cursor: pointer; cursor: pointer;
} }
.OrderId-text .text-underline{ .OrderId-text .text-underline{
text-decoration: underline;
margin-right: 5px; margin-right: 5px;
} }
.OrderId-text .text-underline:hover{
text-decoration: underline;
}
.CreateByName-text { .CreateByName-text {
margin-bottom: 10px; margin-bottom: 10px;
......
...@@ -165,12 +165,15 @@ ...@@ -165,12 +165,15 @@
</div> </div>
<div class="Team_collection" v-if="d"> <div class="Team_collection" v-if="d">
<div class="clearfix TB_PrintDiv"> <div class="clearfix TB_PrintDiv">
<div class="TB_comtitle TB-Title">其他收入 <div class="TB_comtitle TB-Title">
<span> <div>其他收入
<span class="span_all">应收:¥{{d.OtherYS}}</span> <span>
<span class="span_all">实收:¥{{d.OtherSS}}</span> <span class="span_all">应收:¥{{d.OtherYS}}</span>
</span> <span class="span_all">实收:¥{{d.OtherSS}}</span>
</span>
</div>
</div> </div>
<el-button style="float: right;" size="mini" type="primary" @click="makeAdocument(d,1)">制单</el-button>
</div> </div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
...@@ -281,6 +284,7 @@ ...@@ -281,6 +284,7 @@
<span class="span_all">实付:¥{{d.OtherSF}}</span> <span class="span_all">实付:¥{{d.OtherSF}}</span>
</span> </span>
</div> </div>
<el-button style="float: right;" size="mini" type="primary" @click="makeAdocument(d,3)">制单</el-button>
</div> </div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
...@@ -388,14 +392,16 @@ ...@@ -388,14 +392,16 @@
<script> <script>
export default { export default {
props: ["orderId"], props: ["orderId","GuestId"],
data() { data() {
return { return {
loading: true, loading: true,
d: null, d: null,
userInfo:{}
}; };
}, },
mounted() { mounted() {
this.userInfo = this.getLocalStorage();
this.init(); this.init();
}, },
methods: { methods: {
...@@ -450,6 +456,54 @@ export default { ...@@ -450,6 +456,54 @@ export default {
return this.d.FinanceList.filter((x) => x.ReFinanceId2 == 2); return this.d.FinanceList.filter((x) => x.ReFinanceId2 == 2);
} }
}, },
// 制作单据
makeAdocument(row, num) {
this.makeAdocumentFun(row, num);
},
makeAdocumentFun(row, num) {
let type;
type = num == 1 ? 1 : 2; // 1收款 2退款 3成本
let href;
let url = this.domainManager().erpRoutingUrl;
let data;
if (this.userInfo.EmName == row.EnterName) {
if (row.OrderStatus != "2") {
if (num == '1' || num == '3') {
data = [
{
path: "ChoiceAddFinancialDocuments",
type: type,
OtherType: 55,
ReFinanceId: this.orderId,
ReFinanceId2: num,
GuestId: this.GuestId,
RelevanceFrId: 5, // 单据类型 5其他
},
];
}
if (num == '2') {
data = [
{
path: "ChoiceAddFinancialDocuments",
type: type,
OtherType: 55,
ReFinanceId: this.orderId,
ReFinanceId2: num,
GuestId: this.GuestId,
},
];
}
href =
url +
"automaticLogin?token=" +
this.getLocalStorage().token +
"&data=" +
JSON.stringify(data);
window.open(href);
}
}
},
}, },
}; };
</script> </script>
...@@ -497,12 +551,14 @@ export default { ...@@ -497,12 +551,14 @@ export default {
.singeRowTable tr th { .singeRowTable tr th {
height: 30px; height: 30px;
text-align: left !important; text-align: left !important;
padding-left: 12px !important;
} }
.singeRowTable tr td { .singeRowTable tr td {
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
padding: 0px !important; padding: 0px !important;
padding-left: 12px !important; padding-left: 12px !important;
font-size: 13px;
} }
/* .Team_Content .el-col-5 { /* .Team_Content .el-col-5 {
...@@ -523,6 +579,10 @@ export default { ...@@ -523,6 +579,10 @@ export default {
position: relative; position: relative;
top: 10px; top: 10px;
} }
.TB-Title.B-Title-fr{
display: flex;
justify-content: space-between;
}
.Team_ComCoin { .Team_ComCoin {
width: 60%; width: 60%;
...@@ -536,6 +596,12 @@ export default { ...@@ -536,6 +596,12 @@ export default {
.Team_collection { .Team_collection {
margin-top: 40px; margin-top: 40px;
display: flex;
flex-direction: column;
}
.Team_collection tr th{
border: 1px solid #e5e5e5;
font-size: 14px;
} }
.Team_outCome { .Team_outCome {
......
<style scoped> <style>
.add-Enclosure { .add-Enclosure {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -116,13 +116,36 @@ ...@@ -116,13 +116,36 @@
/deep/.el-table .cell.el-tooltip{ /deep/.el-table .cell.el-tooltip{
overflow: hidden !important; overflow: hidden !important;
} }
.OrderType-text-box{
word-break: break-word;
word-wrap: break-word;
white-space: -moz-pre-wrap;
white-space: -hp-pre-wrap;
white-space: -o-pre-wrap;
white-space: -pre-wrap;
white-space: pre;
white-space: pre-wrap;
white-space: pre-line;
}
.OrderType-text-box .text-underline{
font-size: 19px;
color: rgb(41, 97, 254);
margin-right: 10px;
font-weight: bold;
display: inline;
cursor: pointer;
}
.OrderType-text-box .text-underline:hover{
text-decoration: underline;
}
.OrderType-text{ .OrderType-text{
font-size: 11px; font-size: 10px;
font-weight: 100; font-weight: 100;
margin-left: 5px; margin-left: 5px;
border-radius: 3px; border-radius: 3px;
display: inline-block; display: inline-block;
padding: 0 1px; padding: 0 1px;
margin-bottom: 2px;
} }
.OrderType-text-box .OrderType-text:nth-child(2){ .OrderType-text-box .OrderType-text:nth-child(2){
margin-left: 0; margin-left: 0;
...@@ -192,8 +215,8 @@ ...@@ -192,8 +215,8 @@
fixed fixed
label="订单号" width="110"> label="订单号" width="110">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="OrderType-text-box"> <div class="OrderType-text-box" @click="clickSingleNumber(scope.row)">
<p>{{scope.row.OrderId}}</p> <span class="text-underline">{{scope.row.OrderId}}</span>
<span class="OrderType-text" <span class="OrderType-text"
:class="items.Id==1?'one':(items.Id==2?'two':(items.Id==3?'three':(items.Id==4?'four':(items.Id==5?'five':''))))" :class="items.Id==1?'one':(items.Id==2?'two':(items.Id==3?'three':(items.Id==4?'four':(items.Id==5?'five':''))))"
v-for="(items,index) in scope.row.MultipleChoiceList">{{items.Name}}</span> v-for="(items,index) in scope.row.MultipleChoiceList">{{items.Name}}</span>
...@@ -372,10 +395,18 @@ ...@@ -372,10 +395,18 @@
<el-pagination class="Mypagination" background @current-change="handleCurrentChange" :page-sizes="[10, 30, 60, 90, 100]" :page-size="msg.pageSize" layout="total, sizes, prev, pager, next" @size-change="handleSizeChange" :total="total"> <el-pagination class="Mypagination" background @current-change="handleCurrentChange" :page-sizes="[10, 30, 60, 90, 100]" :page-size="msg.pageSize" layout="total, sizes, prev, pager, next" @size-change="handleSizeChange" :total="total">
</el-pagination> </el-pagination>
</div> </div>
<!-- 单号抽屉 -->
<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" />
</el-drawer>
</div> </div>
</template> </template>
<script> <script>
import orderDetailsDrawer from "../customerManage/orderDetailsDrawer";
export default { export default {
components: {
orderDetailsDrawer
},
props: ["ID", "BusinessType"], props: ["ID", "BusinessType"],
data() { data() {
return { return {
...@@ -430,7 +461,9 @@ ...@@ -430,7 +461,9 @@
EnterID: "", EnterID: "",
userInfo: {} userInfo: {}
}, },
total: 0 total: 0,
currentOrder: null,
orderDrawer:false,
}; };
}, },
watch: { watch: {
...@@ -459,6 +492,18 @@ ...@@ -459,6 +492,18 @@
}); });
}, },
methods: { methods: {
// 点击单号
clickSingleNumber(item) {
this.currentOrder = item;
this.orderDrawer = true;
},
closeOrderDrawerHandler() {
this.currentOrder = null;
this.orderDrawer = false;
},
handleClose(done) {
done();
},
// 取消 // 取消
popCancelClick(row, index, num){ popCancelClick(row, index, num){
this.dataList.forEach(item=>{ this.dataList.forEach(item=>{
......
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