合并提交
commit
68d2c25ff5
|
@ -1,6 +1,7 @@
|
|||
/.vscode/
|
||||
/.idea/
|
||||
/dist/
|
||||
.DS_Store
|
||||
node_modules/
|
||||
yarn.lock
|
||||
package-lock.json
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
#代码目录
|
||||
code_path=$PWD
|
||||
|
||||
git checkout master
|
||||
git pull
|
||||
|
||||
cd ${code_path}/manager
|
||||
rm -rf ./dist
|
||||
yarn install
|
||||
yarn build
|
||||
|
||||
cd ${code_path}/seller
|
||||
rm -rf ./dist
|
||||
yarn install
|
||||
yarn build
|
||||
|
||||
cd ${code_path}/buyer
|
||||
rm -rf ./dist
|
||||
yarn install
|
||||
yarn build
|
File diff suppressed because it is too large
Load Diff
|
@ -44,7 +44,7 @@
|
|||
</div>
|
||||
<div class="goods-seckill-btn" :class="{'goods-seckill-btn-gray' : nowHour < list[currIndex].timeLine}">{{nowHour >= list[currIndex].timeLine ? '立即抢购' : '即将开始'}}</div>
|
||||
<div class="goods-show-num">
|
||||
已售<Progress style="width:110px" class="ml_10" :percent="Math.ceil(item.salesNum/item.quantity)" />
|
||||
已售<Progress style="width:110px" class="ml_10" :percent="Math.ceil(item.salesNum/(item.quantity+item.salesNum))" />
|
||||
</div>
|
||||
<div class="goods-show-seller">
|
||||
<span>{{ item.storeName }}</span>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"vue-awesome-swiper": "^4.1.1",
|
||||
"vue-i18n": "^8.15.1",
|
||||
"vue-json-excel": "^0.3.0",
|
||||
"vue-print-nb": "^1.7.5",
|
||||
"vue-qr": "^2.3.0",
|
||||
"vue-router": "^3.1.3",
|
||||
"vuedraggable": "^2.23.2",
|
||||
|
|
|
@ -20,6 +20,11 @@ import * as filters from '@/utils/filters' // global filter
|
|||
import liliDialog from '@/views/lili-dialog'
|
||||
import i18nBox from '@/views/lili-components/i18n-translate'
|
||||
import {md5} from '@/utils/md5.js';
|
||||
|
||||
// 打印
|
||||
import Print from 'vue-print-nb';
|
||||
Vue.use(Print);
|
||||
|
||||
Vue.config.devtools = true;
|
||||
Vue.config.productionTip = false
|
||||
const PC_URL = BASE.PC_URL; // 跳转买家端地址 pc端
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
>收款</Button
|
||||
>
|
||||
<Button @click="orderLog" type="info" ghost>订单日志</Button>
|
||||
<Button @click="printOrder" type="primary" ghost style="float:right;">打印发货单</Button>
|
||||
</div>
|
||||
</Card>
|
||||
<Card class="mt_10 clearfix">
|
||||
|
@ -444,6 +445,60 @@
|
|||
<Button @click="handelCancel">取消</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>
|
||||
|
||||
|
@ -460,6 +515,12 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
printHiddenFlag:false,//隐藏信息
|
||||
printInfoObj:{
|
||||
id: "printInfo",//要打印的id名 无#号
|
||||
popTitle:' ',//页眉标题 默认浏览器标题 空字符串时显示undefined 使用html语言
|
||||
extraHead:'',//头部文字 默认空
|
||||
},
|
||||
loading: false, //加载表格
|
||||
submitLoading: false, // 添加或编辑提交状态
|
||||
addr: "", //地区
|
||||
|
@ -513,6 +574,7 @@ export default {
|
|||
reason: [{ required: true, message: "取消原因不能为空", trigger: "blur" }],
|
||||
},
|
||||
addressModal: false, //弹出修改收件信息框
|
||||
printModal:false,
|
||||
//收件地址表单
|
||||
addressForm: {
|
||||
consigneeName: "",
|
||||
|
@ -722,6 +784,16 @@ export default {
|
|||
handelCancel() {
|
||||
this.orderLogModal = false;
|
||||
},
|
||||
//打印发货单
|
||||
printOrder(){
|
||||
this.printModal = true;
|
||||
},
|
||||
printHiddenInfo(){
|
||||
this.printHiddenFlag = !this.printHiddenFlag;
|
||||
},
|
||||
printCancel(){
|
||||
// this.printHiddenFlag = false;
|
||||
},
|
||||
//弹出修改收货地址框
|
||||
editAddress() {
|
||||
this.addressModal = true;
|
||||
|
@ -762,6 +834,9 @@ export default {
|
|||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.lineH30{
|
||||
line-height: 30px;
|
||||
}
|
||||
.order-log-div {
|
||||
line-height: 30px;
|
||||
overflow-y: scroll;
|
||||
|
@ -857,4 +932,60 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
.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>
|
||||
|
|
|
@ -246,6 +246,24 @@ export default {
|
|||
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "平台优惠券补贴金额",
|
||||
key: "siteCouponCommission",
|
||||
render: (h, params) => {
|
||||
if(params.row.siteCouponCommission == null){
|
||||
return h(
|
||||
"div",
|
||||
"-"
|
||||
);
|
||||
}else{
|
||||
return h(
|
||||
"div",
|
||||
this.$options.filters.unitPrice(params.row.siteCouponCommission, "¥")
|
||||
);
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "分销金额",
|
||||
key: "distributionRebate",
|
||||
|
|
|
@ -125,14 +125,14 @@
|
|||
style="width: 350px"
|
||||
/>
|
||||
</FormItem>
|
||||
<Divider orientation="left">腾讯云智服</Divider>
|
||||
<!-- <Divider orientation="left">腾讯云智服</Divider>
|
||||
<FormItem label="唯一标识">
|
||||
<Input v-model="shopForm.yzfSign" clearable style="width: 350px" />
|
||||
</FormItem>
|
||||
<FormItem label="小程序唯一标识">
|
||||
<Input v-model="shopForm.yzfMpSign" clearable style="width: 350px" />
|
||||
</FormItem>
|
||||
<Spin fix v-if="loading"></Spin>
|
||||
<Spin fix v-if="loading"></Spin> -->
|
||||
</div>
|
||||
</TabPane>
|
||||
|
||||
|
@ -299,24 +299,24 @@
|
|||
</FormItem>
|
||||
</TabPane>
|
||||
|
||||
<TabPane label="配送信息" class="tab" name="send">
|
||||
<!-- <TabPane label="配送信息" class="tab" name="send"> -->
|
||||
<!-- 遮罩层 -->
|
||||
<FormItem label="达达编码" prop="ddCode">
|
||||
<!-- <FormItem label="达达编码" prop="ddCode">
|
||||
<Input
|
||||
v-model="shopForm.ddCode"
|
||||
maxlength="20"
|
||||
clearable
|
||||
style="width: 200px"
|
||||
/>
|
||||
</FormItem>
|
||||
</TabPane>
|
||||
</FormItem> -->
|
||||
<!-- </TabPane> -->
|
||||
|
||||
<TabPane label="结算信息" class="tab" name="settlement">
|
||||
<Alert type="error"
|
||||
>已添加<span class="theme_color">{{ settlementCycle.length }}</span
|
||||
>个结算日,最多可添加5个结算日,当月不包含所设日期时,将会顺延到下一个结算日</Alert
|
||||
>
|
||||
<FormItem label="结算周期">
|
||||
<FormItem label="结算日期">
|
||||
<Tag
|
||||
v-for="item in settlementCycle"
|
||||
:key="item"
|
||||
|
@ -339,7 +339,7 @@
|
|||
size="small"
|
||||
v-if="addSettlementBtn && settlementCycle.length < 5"
|
||||
style="margin-left: 8px"
|
||||
>添加结算周期
|
||||
>添加结算日期
|
||||
</Button>
|
||||
<Button
|
||||
v-if="addSettlementConfirmBtn"
|
||||
|
|
|
@ -22,10 +22,10 @@ export default {
|
|||
show: true, // 是否显示
|
||||
setting: [
|
||||
//基础配置
|
||||
// {
|
||||
// type: "BASE_SETTING",
|
||||
// name: "基础配置",
|
||||
// },
|
||||
{
|
||||
type: "BASE_SETTING",
|
||||
name: "基础配置",
|
||||
},
|
||||
//商品设置
|
||||
{
|
||||
type: "GOODS_SETTING",
|
||||
|
|
|
@ -248,6 +248,24 @@ export default {
|
|||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "平台优惠券补贴金额",
|
||||
key: "siteCouponCommission",
|
||||
render: (h, params) => {
|
||||
if(params.row.siteCouponCommission == null){
|
||||
return h(
|
||||
"div",
|
||||
"-"
|
||||
);
|
||||
}else{
|
||||
return h(
|
||||
"div",
|
||||
this.$options.filters.unitPrice(params.row.siteCouponCommission, "¥")
|
||||
);
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "分销金额",
|
||||
key: "distributionRebate",
|
||||
|
|
Loading…
Reference in New Issue