合并master

master
lemon橪 2022-07-06 17:33:08 +08:00
commit 86fa39d7af
5 changed files with 137 additions and 2 deletions

View File

@ -32,7 +32,7 @@
</div>
</div>
<div>
<Button @click="delOrder(order.sn)" class="del-btn mr_10 fontsize_16" style="margin-top:-5px;" type="text" icon="ios-trash-outline" size="small"></Button>
<Button v-if="order.orderStatus === 'COMPLETED'" @click="delOrder(order.sn)" class="del-btn mr_10 fontsize_16" style="margin-top:-5px;" type="text" icon="ios-trash-outline" size="small"></Button>
<span>{{ order.flowPrice | unitPrice("¥") }}</span>
</div>
</div>

View File

@ -112,7 +112,6 @@
>查看
</Button>
<Button
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'END'"
type="error"
size="small"
style="margin-right: 10px"

View File

@ -23,6 +23,7 @@
"vue": "^2.6.10",
"vue-json-excel": "^0.3.0",
"vue-lazyload": "^1.3.3",
"vue-print-nb": "^1.7.5",
"vue-qr": "^2.3.0",
"vue-router": "^3.1.3",
"vuedraggable": "^2.23.2",

View File

@ -28,6 +28,9 @@ import * as filters from "@/utils/filters"; // global filter
import { md5 } from "@/utils/md5.js";
const { aMapSecurityJsCode } = require("@/config");
// 打印
import Print from 'vue-print-nb';
Vue.use(Print);
// 高德安全密钥
if (aMapSecurityJsCode) {
window._AMapSecurityConfig = {

View File

@ -21,6 +21,7 @@
>查看物流</Button
>
<Button @click="orderLogModal = true" type="primary">订单日志</Button>
<Button @click="printOrder" type="primary" ghost style="float:right;">打印发货单</Button>
<Button v-if="allowOperation.take" @click="orderTake" type="primary"
>订单核销</Button
>
@ -474,6 +475,61 @@
<Button type="primary" @click="orderDeliverySubmit"></Button>
</div>
</Modal>
<!-- 打印发货单 -->
<Modal v-model="printModal" width="530" @on-cancel="printCancel" >
<p slot="header" style="line-height:26px;height:26px;">
<span style="float: left;">打印发货单</span>
<Button size="small" style="margin-right:35px;float: right;padding-bottom: 2px;" @click="printHiddenInfo"><template v-if="printHiddenFlag"></template><template v-else></template></Button>
</p>
<div style="max-height:500px;overflow-y:auto;overflow-x:hidden;">
<div id="printInfo">
<Row v-if="orderInfo.order.remark !== ''">
<Col span="24">
<p class="lineH30 f14">备注{{ orderInfo.order.remark }}</p>
</Col>
</Row>
<Row>
<Col span="12">
<p class="lineH30 f14">收件人{{ orderInfo.order.consigneeName }}</p>
</Col>
<Col span="12" v-if="orderInfo.order.consigneeMobile">
<p class="lineH30 f14" v-if="printHiddenFlag">{{ orderInfo.order.consigneeMobile.replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2") }}</p>
<p class="lineH30 f14" v-else>{{ orderInfo.order.consigneeMobile }}</p>
</Col>
</Row>
<Row>
<Col span="24">
<p class="lineH30 f14">收货地址{{ orderInfo.order.consigneeAddressPath }}{{ orderInfo.order.consigneeDetail }}</p>
</Col>
</Row>
<Row>
<Col span="24">
<p class="printgoodtitle">商品信息</p>
<div class="printgoodinfo">
<div v-for="(item,index) in orderInfo.orderItems" :key="index" class="printgooditem">
<div class="printgoodname">
<p>{{item.goodsName}}</p>
<div class="printgoodguid">
<span v-for="(itemchild, keychild) in JSON.parse(item.specs)" :key="keychild">
<span class="printgoodguiditem" v-if="keychild != 'images'">
{{ keychild }} : {{ itemchild }}
</span>
</span>
</div>
</div>
<span class="printgoodnumber">数量{{item.num}}</span>
</div>
</div>
</Col>
</Row>
</div>
</div>
<div slot="footer" style="text-align: right">
<Button @click="printModal = false">关闭</Button>
<Button type="primary" v-print="printInfoObj"></Button>
</div>
</Modal>
</div>
</template>
@ -491,6 +547,12 @@ export default {
},
data() {
return {
printHiddenFlag:false,//
printInfoObj:{
id: "printInfo",//id #
popTitle:'&nbsp;',// undefined 使html
extraHead:'',//
},
submitLoading: false, //
region: [], //
regionId: [], //id
@ -512,6 +574,7 @@ export default {
},
},
modal: false, //
printModal:false,//
//
modifyPriceForm: {
orderPrice: 0,
@ -684,6 +747,16 @@ export default {
this.orderTakeForm.qrCode = this.orderInfo.order.verificationCode;
this.orderTakeModal = true;
},
//
printOrder(){
this.printModal = true;
},
printHiddenInfo(){
this.printHiddenFlag = !this.printHiddenFlag;
},
printCancel(){
// this.printHiddenFlag = false;
},
//
orderTakeSubmit() {
this.$refs.orderTakeForm.validate((valid) => {
@ -827,6 +900,9 @@ export default {
<style lang="scss" scoped>
//
// @import "@/styles/table-common.scss";
.lineH30{
line-height: 30px;
}
.order-log-div {
line-height: 30px;
height: 500px;
@ -953,4 +1029,60 @@ dl dt {
.theme_color{
color: $theme_color;
}
.f14{
font-size: 14px;
color: #333;
}
.printgoodtitle{
font-size: 14px;
line-height: 1.5;
margin-top: 15px;
color: #333;
}
.printgoodinfo{
// font-size: 14px;
// background: #f2f2f2;
// border-bottom:2px solid #333 ;
padding: 10px;
overflow: hidden;
color: #333;
.printgooditem{
border-bottom: 1px solid #e8eaec;
display: flex;
align-items: flex-start;
overflow: hidden;
line-height: 30px;
margin-bottom: 10px;
padding-bottom: 10px;
.printgoodname{
flex: 1;
overflow: hidden;
.printgoodguid{
font-size: 12px;
color:#999999;
line-height:1.5;
.printgoodguiditem{
margin-right: 10px;
}
}
}
.printgoodprice{
width: 135px;
margin-left: 15px;
}
.printgoodnumber{
width: 85px;
margin-left: 15px;
}
}
}
@media print {
@page{
size: auto;
margin: 3mm;
}
html,body{
height:inherit;
}
}
</style>