Merge branch 'master' of https://gitee.com/beijing_hongye_huicheng/lilishop-ui
commit
48b3e3246c
|
@ -59,7 +59,7 @@ export function withdrawalApply (params) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 收藏商品、店铺
|
// 收藏商品
|
||||||
export function collectGoods (type, id) {
|
export function collectGoods (type, id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/member/collection/add/${type}/${id}`,
|
url: `/buyer/member/collection/add/${type}/${id}`,
|
||||||
|
@ -68,7 +68,16 @@ export function collectGoods (type, id) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 取消 收藏商品、店铺
|
// 收藏店铺
|
||||||
|
export function collectStore (type, id) {
|
||||||
|
return request({
|
||||||
|
url: `/buyer/member/storeCollection/add/${type}/${id}`,
|
||||||
|
method: Method.POST,
|
||||||
|
needToken: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 取消 收藏商品
|
||||||
export function cancelCollect (type, id) {
|
export function cancelCollect (type, id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/member/collection/delete/${type}/${id}`,
|
url: `/buyer/member/collection/delete/${type}/${id}`,
|
||||||
|
@ -77,7 +86,16 @@ export function cancelCollect (type, id) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查看是否收藏
|
// 取消 收藏店铺
|
||||||
|
export function cancelStoreCollect (type, id) {
|
||||||
|
return request({
|
||||||
|
url: `/buyer/member/storeCollection/delete/${type}/${id}`,
|
||||||
|
method: Method.DELETE,
|
||||||
|
needToken: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查看是否收藏商品
|
||||||
export function isCollection (type, goodsId) {
|
export function isCollection (type, goodsId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/member/collection/isCollection/${type}/${goodsId}`,
|
url: `/buyer/member/collection/isCollection/${type}/${goodsId}`,
|
||||||
|
@ -86,7 +104,16 @@ export function isCollection (type, goodsId) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 会员收藏列表
|
// 查看是否收藏店铺
|
||||||
|
export function isStoreCollection (type, goodsId) {
|
||||||
|
return request({
|
||||||
|
url: `/buyer/member/storeCollection/isCollection/${type}/${goodsId}`,
|
||||||
|
method: Method.GET,
|
||||||
|
needToken: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 会员收藏商品列表
|
||||||
export function collectList (params) {
|
export function collectList (params) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/member/collection/${params.type}`,
|
url: `/buyer/member/collection/${params.type}`,
|
||||||
|
@ -96,6 +123,16 @@ export function collectList (params) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 会员收藏店铺列表
|
||||||
|
export function storeCollectList (params) {
|
||||||
|
return request({
|
||||||
|
url: `/buyer/member/storeCollection/${params.type}`,
|
||||||
|
method: Method.GET,
|
||||||
|
needToken: true,
|
||||||
|
params
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// 单个商品评价
|
// 单个商品评价
|
||||||
export function goodsComment (params) {
|
export function goodsComment (params) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -44,9 +44,9 @@ import ShowGoods from "@/components/goodsDetail/ShowGoods";
|
||||||
import ShowGoodsDetail from "@/components/goodsDetail/ShowGoodsDetail";
|
import ShowGoodsDetail from "@/components/goodsDetail/ShowGoodsDetail";
|
||||||
import { goodsSkuDetail } from "@/api/goods";
|
import { goodsSkuDetail } from "@/api/goods";
|
||||||
import {
|
import {
|
||||||
cancelCollect,
|
cancelStoreCollect,
|
||||||
collectGoods,
|
collectStore,
|
||||||
isCollection,
|
isStoreCollection,
|
||||||
getGoodsDistribution,
|
getGoodsDistribution,
|
||||||
} from "@/api/member";
|
} from "@/api/member";
|
||||||
import { getDetailById } from "@/api/shopentry";
|
import { getDetailById } from "@/api/shopentry";
|
||||||
|
@ -121,7 +121,7 @@ export default {
|
||||||
this.$set(this, "goodsMsg", res.result);
|
this.$set(this, "goodsMsg", res.result);
|
||||||
// 判断是否收藏
|
// 判断是否收藏
|
||||||
if (this.Cookies.getItem("userInfo")) {
|
if (this.Cookies.getItem("userInfo")) {
|
||||||
isCollection("STORE", this.goodsMsg.data.storeId).then((res) => {
|
isStoreCollection("STORE", this.goodsMsg.data.storeId).then((res) => {
|
||||||
if (res.success && res.result) {
|
if (res.success && res.result) {
|
||||||
this.storeCollected = true;
|
this.storeCollected = true;
|
||||||
}
|
}
|
||||||
|
@ -159,13 +159,13 @@ export default {
|
||||||
async collect () {
|
async collect () {
|
||||||
// 收藏店铺
|
// 收藏店铺
|
||||||
if (this.storeCollected) {
|
if (this.storeCollected) {
|
||||||
let cancel = await cancelCollect("STORE", this.goodsMsg.data.storeId);
|
let cancel = await cancelStoreCollect("STORE", this.goodsMsg.data.storeId);
|
||||||
if (cancel.success) {
|
if (cancel.success) {
|
||||||
this.$Message.success("已取消收藏");
|
this.$Message.success("已取消收藏");
|
||||||
this.storeCollected = false;
|
this.storeCollected = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let collect = await collectGoods("STORE", this.goodsMsg.data.storeId);
|
let collect = await collectStore("STORE", this.goodsMsg.data.storeId);
|
||||||
if (collect.code === 200) {
|
if (collect.code === 200) {
|
||||||
this.storeCollected = true;
|
this.storeCollected = true;
|
||||||
this.$Message.success("收藏店铺成功,可以前往个人中心我的收藏查看");
|
this.$Message.success("收藏店铺成功,可以前往个人中心我的收藏查看");
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import {getDetailById, getCateById} from "@/api/shopentry";
|
import {getDetailById, getCateById} from "@/api/shopentry";
|
||||||
import {cancelCollect, collectGoods, isCollection} from "@/api/member";
|
import {cancelStoreCollect, collectStore, isStoreCollection} from "@/api/member";
|
||||||
import {goodsList} from "@/api/goods";
|
import {goodsList} from "@/api/goods";
|
||||||
import Search from "@/components/Search";
|
import Search from "@/components/Search";
|
||||||
import ModelForm from "@/components/indexDecorate/ModelForm";
|
import ModelForm from "@/components/indexDecorate/ModelForm";
|
||||||
|
@ -296,13 +296,13 @@ export default {
|
||||||
async collect() {
|
async collect() {
|
||||||
// 收藏店铺
|
// 收藏店铺
|
||||||
if (this.storeCollected) {
|
if (this.storeCollected) {
|
||||||
let cancel = await cancelCollect("STORE", this.storeMsg.storeId);
|
let cancel = await cancelStoreCollect("STORE", this.storeMsg.storeId);
|
||||||
if (cancel.success) {
|
if (cancel.success) {
|
||||||
this.$Message.success("已取消收藏");
|
this.$Message.success("已取消收藏");
|
||||||
this.storeCollected = false;
|
this.storeCollected = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let collect = await collectGoods("STORE", this.storeMsg.storeId);
|
let collect = await collectStore("STORE", this.storeMsg.storeId);
|
||||||
if (collect.code === 200) {
|
if (collect.code === 200) {
|
||||||
this.storeCollected = true;
|
this.storeCollected = true;
|
||||||
this.$Message.success("收藏店铺成功,可以前往个人中心我的收藏查看");
|
this.$Message.success("收藏店铺成功,可以前往个人中心我的收藏查看");
|
||||||
|
|
|
@ -527,7 +527,7 @@ export default {
|
||||||
top: -200px;
|
top: -200px;
|
||||||
left: 200px;
|
left: 200px;
|
||||||
}
|
}
|
||||||
/depp/ .ivu-alert-message {
|
/deep/ .ivu-alert-message {
|
||||||
p {
|
p {
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<Button size="small" type="primary" @click="buynow(item.skuId, item.goodsId)" v-if="params.type === 'GOODS'">立即购买</Button>
|
<Button size="small" type="primary" @click="buynow(item.skuId, item.goodsId)" v-if="params.type === 'GOODS'">立即购买</Button>
|
||||||
<Button size="small" type="primary" @click="goShop(item.id)" v-else>店铺购买</Button>
|
<Button size="small" type="primary" @click="goShop(item.id)" v-else>店铺购买</Button>
|
||||||
<Button size="small" v-if="params.type === 'GOODS'" @click="cancel(item.skuId)">取消收藏</Button>
|
<Button size="small" v-if="params.type === 'GOODS'" @click="cancel(item.skuId)">取消收藏</Button>
|
||||||
<Button size="small" v-if="params.type === 'SHOP'" @click="cancel(item.id)">取消收藏</Button>
|
<Button size="small" v-if="params.type === 'STORE'" @click="cancelStore(item.id)">取消收藏</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { collectList, cancelCollect } from '@/api/member.js'
|
import { collectList, cancelCollect,storeCollectList,cancelStoreCollect} from '@/api/member.js'
|
||||||
export default {
|
export default {
|
||||||
name: 'Favorites',
|
name: 'Favorites',
|
||||||
props: {
|
props: {
|
||||||
|
@ -66,10 +66,16 @@ export default {
|
||||||
if (res.success) this.list = res.result.records;
|
if (res.success) this.list = res.result.records;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getStoreList () { // 获取收藏列表
|
||||||
|
this.spinShow = true
|
||||||
|
storeCollectList(this.params).then(res => {
|
||||||
|
this.spinShow = false
|
||||||
|
if (res.success) this.list = res.result.records;
|
||||||
|
})
|
||||||
|
},
|
||||||
change (index) { // tab栏切换
|
change (index) { // tab栏切换
|
||||||
if (index === 0) { this.params.type = 'GOODS' }
|
if (index === 0) { this.params.type = 'GOODS',this.getList()}
|
||||||
if (index === 1) { this.params.type = 'SHOP' }
|
if (index === 1) { this.params.type = 'STORE',this.getStoreList()}
|
||||||
this.getList()
|
|
||||||
},
|
},
|
||||||
cancel (id) { // 取消收藏
|
cancel (id) { // 取消收藏
|
||||||
let typeName = this.params.type === 'GOODS' ? '商品' : '店铺'
|
let typeName = this.params.type === 'GOODS' ? '商品' : '店铺'
|
||||||
|
@ -85,6 +91,20 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
cancelStore (id) { // 取消收藏
|
||||||
|
let typeName = this.params.type === 'GOODS' ? '商品' : '店铺'
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: 'Title',
|
||||||
|
content: `<p>确定取消收藏该${typeName}吗?</p>`,
|
||||||
|
onOk: () => {
|
||||||
|
cancelStoreCollect(this.params.type, id).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.getStoreList();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
buynow (skuId, goodsId) { // 跳转详情
|
buynow (skuId, goodsId) { // 跳转详情
|
||||||
let url = this.$router.resolve({
|
let url = this.$router.resolve({
|
||||||
path: '/goodsDetail',
|
path: '/goodsDetail',
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<InputNumber :min="1" :max="365" style="width:100px;" v-model="form.distributionDay"></InputNumber>
|
<InputNumber :min="1" :max="365" style="width:100px;" v-model="form.distributionDay"></InputNumber>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="分销结算天数" prop="cashDay">
|
<FormItem label="分销结算天数" prop="cashDay">
|
||||||
<InputNumber :min="1" :max="365" style="width:100px;" v-model="form.cashDay"></InputNumber>
|
<InputNumber :min="0" :max="365" style="width:100px;" v-model="form.cashDay"></InputNumber>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<Button type="primary" @click="submit">保存</Button>
|
<Button type="primary" @click="submit">保存</Button>
|
||||||
|
|
|
@ -465,10 +465,11 @@ export default {
|
||||||
|
|
||||||
// 提交修改数据
|
// 提交修改数据
|
||||||
handleSubmitModal() {
|
handleSubmitModal() {
|
||||||
|
debugger
|
||||||
const { nickName, sex, username, face, newPassword,id } = this.form;
|
const { nickName, sex, username, face, newPassword,id } = this.form;
|
||||||
let time = new Date(this.form.birthday);
|
let time = new Date(this.form.birthday);
|
||||||
let birthday = time ?
|
let birthday = this.form.birthday=== undefined?'':
|
||||||
time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate() : '';
|
time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate();
|
||||||
let submit = {
|
let submit = {
|
||||||
regionId: this.form.regionId,
|
regionId: this.form.regionId,
|
||||||
region: this.form.region,
|
region: this.form.region,
|
||||||
|
|
|
@ -169,7 +169,7 @@ export default {
|
||||||
// 开启或关闭活动
|
// 开启或关闭活动
|
||||||
openOrClose(row) {
|
openOrClose(row) {
|
||||||
let name = "开启";
|
let name = "开启";
|
||||||
if (row.promotionStatus === "START") {
|
if (row.promotionStatus === 'NEW' ||row.promotionStatus === "START") {
|
||||||
name = "关闭";
|
name = "关闭";
|
||||||
this.$Modal.confirm({
|
this.$Modal.confirm({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
|
|
|
@ -87,7 +87,17 @@
|
||||||
<p class="item">
|
<p class="item">
|
||||||
<span class="label">店铺所在地:</span>
|
<span class="label">店铺所在地:</span>
|
||||||
<span class="info">
|
<span class="info">
|
||||||
{{storeInfo.storeAddressPath || storeInfo.storeAddressDetail?storeInfo.storeAddressPath +storeInfo.storeAddressDetail:"暂未完善"}}
|
<span>
|
||||||
|
{{
|
||||||
|
(storeInfo.storeAddressPath!==null && storeInfo.storeAddressPath!=='' && storeInfo.storeAddressPath!=="null" && storeInfo.storeAddressPath!==undefined )? storeInfo.storeAddressPath: ""
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
{{
|
||||||
|
(storeInfo.storeAddressDetail!==null && storeInfo.storeAddressDetail!=='' && storeInfo.storeAddressDetail!=="null" && storeInfo.storeAddressDetail!==undefined )? storeInfo.storeAddressDetail:""
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
|
{{(storeInfo.storeAddressPath!==null && storeInfo.storeAddressPath!=='' && storeInfo.storeAddressPath!=="null" && storeInfo.storeAddressPath!==undefined) || (storeInfo.storeAddressDetail!==null && storeInfo.storeAddressDetail!=='' && storeInfo.storeAddressDetail!=="null" && storeInfo.storeAddressDetail!==undefined )?"":"暂未完善"}}
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="item">
|
<p class="item">
|
||||||
|
|
|
@ -5,21 +5,40 @@
|
||||||
<RadioGroup v-model="formValidate.type" type="button">
|
<RadioGroup v-model="formValidate.type" type="button">
|
||||||
<Radio label="KDNIAO">快递鸟</Radio>
|
<Radio label="KDNIAO">快递鸟</Radio>
|
||||||
<Radio label="KUAIDI100">快递100</Radio>
|
<Radio label="KUAIDI100">快递100</Radio>
|
||||||
|
<Radio label="SHUNFENG">顺丰</Radio>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem v-if="formValidate.type==='KDNIAO'" label="快递鸟 商户ID" prop="kdniaoEbusinessID">
|
<FormItem v-if="formValidate.type === 'KDNIAO'" label="快递鸟 商户ID" prop="kdniaoEbusinessID">
|
||||||
<Input v-model="formValidate.kdniaoEbusinessID" />
|
<Input v-model="formValidate.kdniaoEbusinessID" />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem v-if="formValidate.type==='KDNIAO'" label="快递鸟 AppKey" prop="kdniaoAppKey">
|
<FormItem v-if="formValidate.type === 'KDNIAO'" label="快递鸟 AppKey" prop="kdniaoAppKey">
|
||||||
<Input class="label-appkey" v-model="formValidate.kdniaoAppKey" />
|
<Input class="label-appkey" v-model="formValidate.kdniaoAppKey" />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
||||||
<FormItem v-if="formValidate.type==='KUAIDI100'" label="快递100 授权码" prop="kuaidi100Customer">
|
<FormItem v-if="formValidate.type === 'KUAIDI100'" label="快递100 授权码" prop="kuaidi100Customer">
|
||||||
<Input class="label-appkey" v-model="formValidate.kuaidi100Customer" />
|
<Input class="label-appkey" v-model="formValidate.kuaidi100Customer" />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem v-if="formValidate.type==='KUAIDI100'" label="快递100 Key" prop="kuaidi100Key">
|
<FormItem v-if="formValidate.type === 'KUAIDI100'" label="快递100 Key" prop="kuaidi100Key">
|
||||||
<Input class="label-appkey" v-model="formValidate.kuaidi100Key" />
|
<Input class="label-appkey" v-model="formValidate.kuaidi100Key" />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
<div v-if="formValidate.type === 'SHUNFENG'">
|
||||||
|
<FormItem label="顾客编码" prop="clientCode">
|
||||||
|
<Input v-model="formValidate.clientCode" />
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="校验码" prop="checkWord">
|
||||||
|
<Input v-model="formValidate.checkWord" />
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="请求地址" prop="callUrl">
|
||||||
|
<Input class="label-appkey" v-model="formValidate.callUrl" />
|
||||||
|
</FormItem>
|
||||||
|
|
||||||
|
<FormItem label="打印模板" prop="templateCode">
|
||||||
|
<Input class="label-appkey" v-model="formValidate.templateCode" />
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="月结号" prop="monthlyCardNo">
|
||||||
|
<Input class="label-appkey" v-model="formValidate.monthlyCardNo" />
|
||||||
|
</FormItem>
|
||||||
|
</div>
|
||||||
<div class="label-btns">
|
<div class="label-btns">
|
||||||
<Button type="primary" @click="submit('formValidate')">保存</Button>
|
<Button type="primary" @click="submit('formValidate')">保存</Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -36,12 +55,13 @@ export default {
|
||||||
formValidate: { // 表单数据
|
formValidate: { // 表单数据
|
||||||
type: "",
|
type: "",
|
||||||
kdniaoEbusinessID: "",
|
kdniaoEbusinessID: "",
|
||||||
kdniaoAppKey: "" ,
|
kdniaoAppKey: "",
|
||||||
kuaidi100Customer: "" ,
|
kuaidi100Customer: "",
|
||||||
kuaidi100Key: "" ,},
|
kuaidi100Key: "",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: ["res",'type'],
|
props: ["res", 'type'],
|
||||||
created() {
|
created() {
|
||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
|
@ -49,7 +69,7 @@ export default {
|
||||||
// 验证
|
// 验证
|
||||||
submit(name) {
|
submit(name) {
|
||||||
let that = this;
|
let that = this;
|
||||||
if( handleSubmit(that, name )){
|
if (handleSubmit(that, name)) {
|
||||||
this.setupSetting()
|
this.setupSetting()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -83,15 +103,17 @@ export default {
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "./style.scss";
|
@import "./style.scss";
|
||||||
|
|
||||||
.label-item {
|
.label-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .ivu-input {
|
/deep/ .ivu-input {
|
||||||
width: 300px !important;
|
width: 300px !important;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ivu-input-wrapper {
|
.ivu-input-wrapper {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}</style>
|
||||||
</style>
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { commonUrl, getRequest, uploadFileRequest ,uploadFile} from "@/libs/axios";
|
import { commonUrl, getRequest, uploadFileRequest, uploadFile, request} from "@/libs/axios";
|
||||||
|
|
||||||
// 通过id获取子地区
|
// 通过id获取子地区
|
||||||
export const getChildRegion = (id) => {
|
export const getChildRegion = (id) => {
|
||||||
|
@ -25,3 +25,10 @@ export const upLoadFileMethods = (bold) => {
|
||||||
console.log(bold)
|
console.log(bold)
|
||||||
return uploadFileRequest(uploadFile, bold);
|
return uploadFileRequest(uploadFile, bold);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发送短信验证码
|
||||||
|
*/
|
||||||
|
export function sendSms (params) {
|
||||||
|
return getRequest(`${commonUrl}/common/common/sms/${params.verificationEnums}/${params.mobile}`,params);
|
||||||
|
}
|
||||||
|
|
|
@ -37,6 +37,11 @@ export const login = params => {
|
||||||
return postRequestWithNoTokenData("/passport/login/userLogin", params);
|
return postRequestWithNoTokenData("/passport/login/userLogin", params);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 手机登陆
|
||||||
|
export const storeSmsLogin = params => {
|
||||||
|
return postRequestWithNoToken("/passport/login/smsLogin", params);
|
||||||
|
};
|
||||||
|
|
||||||
// 登出
|
// 登出
|
||||||
export const logout = () => {
|
export const logout = () => {
|
||||||
return postRequest("/passport/login/logout");
|
return postRequest("/passport/login/logout");
|
||||||
|
@ -50,7 +55,10 @@ export const userInfo = params => {
|
||||||
export const userMsg = params => {
|
export const userMsg = params => {
|
||||||
return getRequest('/settings/storeSettings', params)
|
return getRequest('/settings/storeSettings', params)
|
||||||
}
|
}
|
||||||
|
//验证短信验证码
|
||||||
|
export const validateCode = params => {
|
||||||
|
return postRequestWithNoToken("/passport/login/resetByMobile", params);
|
||||||
|
};
|
||||||
// 初始化验证码
|
// 初始化验证码
|
||||||
export const initCaptcha = params => {
|
export const initCaptcha = params => {
|
||||||
return getRequestWithNoToken("/common/captcha/init", params);
|
return getRequestWithNoToken("/common/captcha/init", params);
|
||||||
|
@ -107,6 +115,10 @@ export const sendCodeEmail = (email, params) => {
|
||||||
export const editEmail = params => {
|
export const editEmail = params => {
|
||||||
return postRequest("/email/editEmail", params);
|
return postRequest("/email/editEmail", params);
|
||||||
};
|
};
|
||||||
|
// 忘记密码并修改
|
||||||
|
export const forgetAndModify = params => {
|
||||||
|
return postRequest("/passport/login/resetPassword", params);
|
||||||
|
};
|
||||||
// 个人中心修改密码
|
// 个人中心修改密码
|
||||||
export const changePass = params => {
|
export const changePass = params => {
|
||||||
return postRequest("/passport/login/modifyPass", params);
|
return postRequest("/passport/login/modifyPass", params);
|
||||||
|
|
|
@ -4,6 +4,7 @@ import {
|
||||||
postRequest,
|
postRequest,
|
||||||
putRequest,
|
putRequest,
|
||||||
deleteRequest,
|
deleteRequest,
|
||||||
|
getRequestHasHeader,
|
||||||
importRequest,
|
importRequest,
|
||||||
getRequestWithNoToken
|
getRequestWithNoToken
|
||||||
} from "@/libs/axios";
|
} from "@/libs/axios";
|
||||||
|
@ -35,4 +36,13 @@ export const getCheckedOn = params =>{
|
||||||
return getRequest(`/other/logistics/getCheckedFaceSheet`,params);
|
return getRequest(`/other/logistics/getCheckedFaceSheet`,params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取物流设置
|
||||||
|
export const getLogisticsSetting = () =>{
|
||||||
|
return getRequest(`/other/logistics`);
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getShunFengFaceSheet = (url,headers) =>{
|
||||||
|
return getRequestHasHeader(`${url}`,null,headers);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,11 @@ export const orderDelivery = (sn, params) => {
|
||||||
return postRequest(`/order/order/${sn}/delivery`, params);
|
return postRequest(`/order/order/${sn}/delivery`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 订单发货
|
||||||
|
export const orderShunFengDelivery = (sn) => {
|
||||||
|
return postRequest(`/order/order/${sn}/shunfeng/delivery`);
|
||||||
|
};
|
||||||
|
|
||||||
// 获取商家选中的物流公司
|
// 获取商家选中的物流公司
|
||||||
export const getLogisticsChecked = () => {
|
export const getLogisticsChecked = () => {
|
||||||
return getRequest(`/other/logistics/getChecked`);
|
return getRequest(`/other/logistics/getChecked`);
|
||||||
|
|
|
@ -188,6 +188,38 @@ export const getRequest = (url, params, resBlob) => {
|
||||||
return service(data);
|
return service(data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const getRequestHasHeader = (url, params, headers) => {
|
||||||
|
let accessToken = getStore("accessToken");
|
||||||
|
let data = {
|
||||||
|
method: "get",
|
||||||
|
url: `${url}`,
|
||||||
|
params: params,
|
||||||
|
transformRequest: headers
|
||||||
|
? undefined
|
||||||
|
: [
|
||||||
|
function(data) {
|
||||||
|
let ret = "";
|
||||||
|
for (let it in data) {
|
||||||
|
ret +=
|
||||||
|
encodeURIComponent(it) +
|
||||||
|
"=" +
|
||||||
|
encodeURIComponent(data[it]) +
|
||||||
|
"&";
|
||||||
|
}
|
||||||
|
ret = ret.substring(0, ret.length - 1);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
],
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/x-www-form-urlencoded",
|
||||||
|
accessToken: accessToken,
|
||||||
|
...headers
|
||||||
|
},
|
||||||
|
responseType: "blob"
|
||||||
|
};
|
||||||
|
return service(data);
|
||||||
|
};
|
||||||
|
|
||||||
export const postRequest = (url, params, headers) => {
|
export const postRequest = (url, params, headers) => {
|
||||||
let accessToken = getStore("accessToken");
|
let accessToken = getStore("accessToken");
|
||||||
return service({
|
return service({
|
||||||
|
|
|
@ -3,7 +3,7 @@ import ViewUI from 'view-design';
|
||||||
import Util from '../libs/util';
|
import Util from '../libs/util';
|
||||||
import VueRouter from 'vue-router';
|
import VueRouter from 'vue-router';
|
||||||
import Cookies from 'js-cookie';
|
import Cookies from 'js-cookie';
|
||||||
import {routers} from './router';
|
import { routers } from './router';
|
||||||
|
|
||||||
Vue.use(VueRouter);
|
Vue.use(VueRouter);
|
||||||
|
|
||||||
|
@ -16,10 +16,10 @@ const RouterConfig = {
|
||||||
/**
|
/**
|
||||||
* 解决重复点击菜单会控制台报错bug
|
* 解决重复点击菜单会控制台报错bug
|
||||||
*/
|
*/
|
||||||
const routerPush = VueRouter.prototype.push
|
const routerPush = VueRouter.prototype.push
|
||||||
VueRouter.prototype.push = function push(location) {
|
VueRouter.prototype.push = function push(location) {
|
||||||
return routerPush.call(this, location).catch(error=> error)
|
return routerPush.call(this, location).catch(error => error)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const router = new VueRouter(RouterConfig);
|
export const router = new VueRouter(RouterConfig);
|
||||||
|
|
||||||
|
@ -32,10 +32,15 @@ router.beforeEach((to, from, next) => {
|
||||||
const name = to.name;
|
const name = to.name;
|
||||||
|
|
||||||
if (!Cookies.get('userInfoSeller') && name !== 'login') {
|
if (!Cookies.get('userInfoSeller') && name !== 'login') {
|
||||||
|
if (name === 'forgetPassword') {
|
||||||
|
console.log(name)
|
||||||
|
Util.toDefaultPage([...routers], name, router, next);
|
||||||
|
} else {
|
||||||
// 判断是否已经登录且前往的页面不是登录页
|
// 判断是否已经登录且前往的页面不是登录页
|
||||||
next({
|
next({
|
||||||
name: 'login'
|
name: 'login'
|
||||||
});
|
});
|
||||||
|
}
|
||||||
} else if (Cookies.get('userInfoSeller') && name === 'login') {
|
} else if (Cookies.get('userInfoSeller') && name === 'login') {
|
||||||
// 判断是否已经登录且前往的是登录页
|
// 判断是否已经登录且前往的是登录页
|
||||||
Util.title();
|
Util.title();
|
||||||
|
|
|
@ -10,6 +10,11 @@ export const loginRouter = {
|
||||||
},
|
},
|
||||||
component: () => import("@/views/login.vue")
|
component: () => import("@/views/login.vue")
|
||||||
};
|
};
|
||||||
|
export const forgetPasswordRouter = {
|
||||||
|
path: "/forgetPassword",
|
||||||
|
name: "forgetPassword",
|
||||||
|
component: () => import("@/views/ForgetPassword.vue")
|
||||||
|
};
|
||||||
|
|
||||||
// 作为Main组件的子页面展示但是不在左侧菜单显示的路由写在otherRouter里
|
// 作为Main组件的子页面展示但是不在左侧菜单显示的路由写在otherRouter里
|
||||||
export const otherRouter = {
|
export const otherRouter = {
|
||||||
|
@ -193,4 +198,4 @@ export const page500 = {
|
||||||
component: () => import("@/views/error-page/500.vue")
|
component: () => import("@/views/error-page/500.vue")
|
||||||
};
|
};
|
||||||
// 所有上面定义的路由都要写在下面的routers里
|
// 所有上面定义的路由都要写在下面的routers里
|
||||||
export const routers = [loginRouter, otherRouter, page500, page403];
|
export const routers = [loginRouter, forgetPasswordRouter, otherRouter, page500, page403];
|
||||||
|
|
|
@ -0,0 +1,331 @@
|
||||||
|
<template>
|
||||||
|
<div class="forget-password" @click='$refs.verify.show = false'>
|
||||||
|
<div style="height:50px;"></div>
|
||||||
|
<!-- 顶部logo -->
|
||||||
|
<div class="logo-box">
|
||||||
|
<img
|
||||||
|
:src="$store.state.logoImg" width='150'
|
||||||
|
@click="$router.push('/')"
|
||||||
|
/>
|
||||||
|
<div>修改密码</div>
|
||||||
|
</div>
|
||||||
|
<div class="login-container">
|
||||||
|
<!-- 验证手机号 -->
|
||||||
|
<Form
|
||||||
|
ref="formFirst"
|
||||||
|
:model="formFirst"
|
||||||
|
:rules="ruleInline"
|
||||||
|
style="width:300px;"
|
||||||
|
v-show="step === 0"
|
||||||
|
>
|
||||||
|
<FormItem prop="mobile">
|
||||||
|
<i-input
|
||||||
|
type="text"
|
||||||
|
v-model="formFirst.mobile"
|
||||||
|
clearable
|
||||||
|
placeholder="手机号"
|
||||||
|
>
|
||||||
|
<Icon type="md-phone-portrait" slot="prepend"></Icon>
|
||||||
|
</i-input>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem prop="code">
|
||||||
|
<i-input
|
||||||
|
type="text"
|
||||||
|
v-model="formFirst.code"
|
||||||
|
clearable
|
||||||
|
placeholder="手机验证码"
|
||||||
|
>
|
||||||
|
<Icon
|
||||||
|
type="ios-text-outline"
|
||||||
|
style="font-weight: bold"
|
||||||
|
slot="prepend"
|
||||||
|
/>
|
||||||
|
<Button slot="append" @click="sendCode">{{ codeMsg }}</Button>
|
||||||
|
</i-input>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem>
|
||||||
|
<Button @click="verifyBtnClick" long :type="verifyStatus?'success':'default'">{{verifyStatus?'验证通过':'点击完成安全验证'}}</Button>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem>
|
||||||
|
<Button type="error" @click="next" :loading="loading" long>下一步</Button>
|
||||||
|
</FormItem>
|
||||||
|
</Form>
|
||||||
|
<Form
|
||||||
|
ref="form"
|
||||||
|
:model="form"
|
||||||
|
:rules="ruleInline"
|
||||||
|
style="width:300px;"
|
||||||
|
v-show="step === 1"
|
||||||
|
>
|
||||||
|
<FormItem prop="password">
|
||||||
|
<i-input
|
||||||
|
type="password"
|
||||||
|
v-model="form.password"
|
||||||
|
clearable
|
||||||
|
placeholder="请输入至少六位密码"
|
||||||
|
>
|
||||||
|
<Icon type="md-lock" slot="prepend"></Icon>
|
||||||
|
</i-input>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem prop="password">
|
||||||
|
<i-input
|
||||||
|
type="password"
|
||||||
|
v-model="form.oncePasd"
|
||||||
|
clearable
|
||||||
|
placeholder="请再次输入密码"
|
||||||
|
>
|
||||||
|
<Icon type="md-lock" slot="prepend"></Icon>
|
||||||
|
</i-input>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem>
|
||||||
|
<Button type="error" size="large" @click="handleSubmit" :loading="loading1" long>提交</Button>
|
||||||
|
</FormItem>
|
||||||
|
</Form>
|
||||||
|
<!-- 拼图验证码 -->
|
||||||
|
<verify
|
||||||
|
ref="verify"
|
||||||
|
class="verify-con"
|
||||||
|
:verifyType="verifyType"
|
||||||
|
@change="verifyChange"
|
||||||
|
></verify>
|
||||||
|
<div class="login-btn"><a @click="$router.push('login')">前往登录</a></div>
|
||||||
|
</div>
|
||||||
|
<div class="foot">
|
||||||
|
<Row type="flex" justify="space-around" class="help">
|
||||||
|
<a class="item" href="https://pickmall.cn/" target="_blank">帮助</a>
|
||||||
|
<a class="item" href="https://pickmall.cn/" target="_blank">隐私</a>
|
||||||
|
<a class="item" href="https://pickmall.cn/" target="_blank">条款</a>
|
||||||
|
</Row>
|
||||||
|
<Row type="flex" justify="center" class="copyright">
|
||||||
|
Copyright © {{year}} - Present
|
||||||
|
<a href="https://pickmall.cn/" target="_blank" style="margin: 0 5px"
|
||||||
|
>{{config.title}}</a
|
||||||
|
>
|
||||||
|
版权所有
|
||||||
|
</Row>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import * as RegExp from '@/utils/regular.js';
|
||||||
|
import * as apiLogin from '@/api/index.js';
|
||||||
|
import { sendSms } from '@/api/common.js';
|
||||||
|
import verify from "@/views/my-components/verify";
|
||||||
|
export default {
|
||||||
|
name: 'ForgetPassword',
|
||||||
|
components: { verify },
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
config:require('@/config'),
|
||||||
|
loading: false, // 加载状态
|
||||||
|
loading1: false, // 第二步加载状态
|
||||||
|
formFirst: { // 手机验证码表单
|
||||||
|
// 注册表单
|
||||||
|
mobile: '',
|
||||||
|
code: ''
|
||||||
|
},
|
||||||
|
form: { // 密码
|
||||||
|
password: '',
|
||||||
|
oncePasd: ''
|
||||||
|
},
|
||||||
|
year: new Date().getFullYear(), // 当前年份
|
||||||
|
step: 0, // 步骤
|
||||||
|
ruleInline: {
|
||||||
|
// 验证规则
|
||||||
|
mobile: [
|
||||||
|
{ required: true, message: '请输入手机号码' },
|
||||||
|
{
|
||||||
|
pattern: RegExp.mobile,
|
||||||
|
trigger: 'blur',
|
||||||
|
message: '请输入正确的手机号'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
code: [{ required: true, message: '请输入手机验证码' }],
|
||||||
|
password: [{required: true, message: '密码不能为空'}, {pattern: RegExp.password, message: '密码不能少于6位'}]
|
||||||
|
},
|
||||||
|
verifyStatus: false, // 图片验证状态
|
||||||
|
verifyType: 'FIND_USER', // 图片验证类型
|
||||||
|
codeMsg: '发送验证码', // 验证码文字
|
||||||
|
interval: '', // 定时器
|
||||||
|
time: 60 // 倒计时时间
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 提交短信验证码,修改密码
|
||||||
|
next () {
|
||||||
|
this.$refs.formFirst.validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.loading = true;
|
||||||
|
let data = JSON.parse(JSON.stringify(this.formFirst));
|
||||||
|
apiLogin.validateCode(data).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.success) {
|
||||||
|
// this.$Message.success('');
|
||||||
|
this.step = 1;
|
||||||
|
} else {
|
||||||
|
this.$Message.warning(res.message);
|
||||||
|
}
|
||||||
|
}).catch(() => { this.loading = false; });
|
||||||
|
} else {}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleSubmit () { // 提交密码
|
||||||
|
this.$refs.form.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
let params = JSON.parse(JSON.stringify(this.form));
|
||||||
|
if (params.password !== params.oncePasd) {
|
||||||
|
this.$Message.warning('两次输入密码不一致');
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
params.mobile = this.formFirst.mobile;
|
||||||
|
params.password = this.md5(params.password);
|
||||||
|
delete params.oncePasd;
|
||||||
|
this.loading1 = true;
|
||||||
|
|
||||||
|
apiLogin.forgetAndModify(params).then(res => {
|
||||||
|
this.loading1 = false;
|
||||||
|
console.log(res);
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success('修改密码成功');
|
||||||
|
this.$router.push('login');
|
||||||
|
}
|
||||||
|
}).catch(() => { this.loading = false; });
|
||||||
|
};
|
||||||
|
});
|
||||||
|
},
|
||||||
|
sendCode () { // 发送验证码
|
||||||
|
if (this.time === 60) {
|
||||||
|
if (this.formFirst.mobile === '') {
|
||||||
|
this.$Message.warning('请先填写手机号');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!this.verifyStatus) {
|
||||||
|
this.$Message.warning('请先完成安全验证');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let params = {
|
||||||
|
mobile: this.formFirst.mobile,
|
||||||
|
verificationEnums: 'FIND_USER'
|
||||||
|
};
|
||||||
|
sendSms(params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success('验证码发送成功');
|
||||||
|
let that = this;
|
||||||
|
this.interval = setInterval(() => {
|
||||||
|
that.time--;
|
||||||
|
if (that.time === 0) {
|
||||||
|
that.time = 60;
|
||||||
|
that.codeMsg = '重新发送';
|
||||||
|
that.verifyStatus = false;
|
||||||
|
clearInterval(that.interval);
|
||||||
|
} else {
|
||||||
|
that.codeMsg = that.time;
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
} else {
|
||||||
|
this.$Message.warning(res.message);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
verifyChange (con) { // 验证通过
|
||||||
|
if (!con.status) return;
|
||||||
|
this.$refs.verify.show = false;
|
||||||
|
this.verifyStatus = true;
|
||||||
|
},
|
||||||
|
verifyBtnClick () {
|
||||||
|
if (!this.verifyStatus) {
|
||||||
|
this.$refs.verify.init();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
document.querySelector('.forget-password').style.height = window.innerHeight + 'px'
|
||||||
|
this.$refs.formFirst.resetFields();
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.forget-password{
|
||||||
|
min-height: 700px;
|
||||||
|
}
|
||||||
|
.logo-box {
|
||||||
|
width: 600px;
|
||||||
|
height: 80px;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
img {
|
||||||
|
width: 150px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-container {
|
||||||
|
border-top: 2px solid $theme_color;
|
||||||
|
position: relative;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 600px;
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 20px 150px;
|
||||||
|
.login-btn{
|
||||||
|
position: absolute;
|
||||||
|
right: 20px;
|
||||||
|
top: -45px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.verify-con{
|
||||||
|
position: absolute;
|
||||||
|
left: 140px;
|
||||||
|
top: -30px;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.other-login {
|
||||||
|
margin: 0 auto;
|
||||||
|
.ivu-icon {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.regist {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-top: -10px;
|
||||||
|
span {
|
||||||
|
margin-left: 10px;
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
color: $theme_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.foot {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 4vh;
|
||||||
|
width: 368px;
|
||||||
|
left: calc(50% - 184px);
|
||||||
|
color: rgba(0, 0, 0, 0.45);
|
||||||
|
font-size: 14px;
|
||||||
|
.help {
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-bottom: 1vh;
|
||||||
|
width: 60%;
|
||||||
|
.item {
|
||||||
|
color: rgba(0, 0, 0, 0.45);
|
||||||
|
}
|
||||||
|
:hover {
|
||||||
|
color: rgba(0, 0, 0, 0.65);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -4,44 +4,48 @@
|
||||||
<Col style="width: 368px">
|
<Col style="width: 368px">
|
||||||
<Header />
|
<Header />
|
||||||
<Row style="flex-direction: column">
|
<Row style="flex-direction: column">
|
||||||
<Form
|
<Tabs v-model="loginType">
|
||||||
ref="usernameLoginForm"
|
<Tab-pane label="账号密码登录" name="passwordLogin">
|
||||||
:model="form"
|
<!--账号密码登录-->
|
||||||
:rules="rules"
|
<Form ref="usernameLoginForm" :model="form" :rules="rules" class="form">
|
||||||
class="form"
|
|
||||||
>
|
|
||||||
<FormItem prop="username">
|
<FormItem prop="username">
|
||||||
<Input
|
<Input v-model="form.username" prefix="ios-contact" size="large" clearable placeholder="请输入用户名"
|
||||||
v-model="form.username"
|
autocomplete="off" />
|
||||||
prefix="ios-contact"
|
|
||||||
size="large"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入用户名"
|
|
||||||
autocomplete="off"
|
|
||||||
/>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem prop="password">
|
<FormItem prop="password">
|
||||||
<Input
|
<Input type="password" v-model="form.password" prefix="ios-lock" size="large" password placeholder="请输入密码"
|
||||||
type="password"
|
autocomplete="off" />
|
||||||
v-model="form.password"
|
|
||||||
prefix="ios-lock"
|
|
||||||
size="large"
|
|
||||||
password
|
|
||||||
placeholder="请输入密码"
|
|
||||||
autocomplete="off"
|
|
||||||
/>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
|
<div class="register">
|
||||||
|
<a @click="$router.push('forgetPassword')">忘记密码</a>
|
||||||
|
</div>
|
||||||
|
</Tab-pane>
|
||||||
|
<Tab-pane label="验证码登录" name="mobileLogin">
|
||||||
|
<!-- 验证码登录 -->
|
||||||
|
<Form ref="formSms" :model="formSms" :rules="ruleInline" @click.self='$refs.verify.show = false'>
|
||||||
|
<FormItem prop="mobile">
|
||||||
|
<i-input type="text" v-model="formSms.mobile" clearable placeholder="手机号">
|
||||||
|
<Icon type="md-lock" slot="prepend"></Icon>
|
||||||
|
</i-input>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem prop="code">
|
||||||
|
<i-input type="text" v-model="formSms.code" placeholder="手机验证码">
|
||||||
|
<Icon type="ios-text-outline" style="font-weight: bold" slot="prepend" />
|
||||||
|
<Button slot="append" @click="sendCode">{{ codeMsg }}</Button>
|
||||||
|
</i-input>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem>
|
||||||
|
<Button @click.stop="verifyBtnClick" long :type="verifyStatus ? 'success' : 'default'">{{ verifyStatus ?
|
||||||
|
'验证通过' :
|
||||||
|
'点击完成安全验证' }}
|
||||||
|
</Button>
|
||||||
|
</FormItem>
|
||||||
|
</Form>
|
||||||
|
</Tab-pane>
|
||||||
|
</Tabs>
|
||||||
<Row>
|
<Row>
|
||||||
<div
|
<div class="login-btn" type="primary" size="large" :loading="loading" @click="submitLogin" long>
|
||||||
class="login-btn"
|
|
||||||
type="primary"
|
|
||||||
size="large"
|
|
||||||
:loading="loading"
|
|
||||||
@click="submitLogin"
|
|
||||||
long
|
|
||||||
>
|
|
||||||
<span v-if="!loading">登录</span>
|
<span v-if="!loading">登录</span>
|
||||||
<span v-else>登录中</span>
|
<span v-else>登录中</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -49,12 +53,7 @@
|
||||||
</Row>
|
</Row>
|
||||||
<Footer />
|
<Footer />
|
||||||
<!-- 拼图验证码 -->
|
<!-- 拼图验证码 -->
|
||||||
<verify
|
<verify ref="verify" class="verify-con" verifyType="LOGIN" @change="verifyChange"></verify>
|
||||||
ref="verify"
|
|
||||||
class="verify-con"
|
|
||||||
verifyType="LOGIN"
|
|
||||||
@change="verifyChange"
|
|
||||||
></verify>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
|
@ -62,7 +61,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getCurrentPermissionList } from "@/api/index";
|
import { getCurrentPermissionList } from "@/api/index";
|
||||||
import { login, userMsg } from "@/api/index";
|
import { login, userMsg, storeSmsLogin } from "@/api/index";
|
||||||
|
import { sendSms } from "@/api/common.js";
|
||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
import Header from "@/views/main-components/header";
|
import Header from "@/views/main-components/header";
|
||||||
import Footer from "@/views/main-components/footer";
|
import Footer from "@/views/main-components/footer";
|
||||||
|
@ -78,6 +78,9 @@ export default {
|
||||||
return {
|
return {
|
||||||
saveLogin: true, // 保存登录状态
|
saveLogin: true, // 保存登录状态
|
||||||
loading: false, // 加载状态
|
loading: false, // 加载状态
|
||||||
|
verifyStatus: false, // 是否图片验证通过
|
||||||
|
time: 60, // 倒计时
|
||||||
|
loginType: 'passwordLogin', //登陆类型
|
||||||
form: {
|
form: {
|
||||||
// 表单数据
|
// 表单数据
|
||||||
username: "",
|
username: "",
|
||||||
|
@ -85,6 +88,10 @@ export default {
|
||||||
mobile: "",
|
mobile: "",
|
||||||
code: "",
|
code: "",
|
||||||
},
|
},
|
||||||
|
formSms: {
|
||||||
|
mobile: '',
|
||||||
|
code: '',
|
||||||
|
},
|
||||||
rules: {
|
rules: {
|
||||||
// 验证规则
|
// 验证规则
|
||||||
username: [
|
username: [
|
||||||
|
@ -102,6 +109,23 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
ruleInline: {
|
||||||
|
// 验证规则
|
||||||
|
username: [{ required: true, message: "请输入用户名" }],
|
||||||
|
password: [
|
||||||
|
{ required: true, message: "请输入密码" },
|
||||||
|
{ type: "string", min: 6, message: "密码不能少于6位" },
|
||||||
|
],
|
||||||
|
mobile: [
|
||||||
|
{ required: true, message: "请输入手机号码" },
|
||||||
|
{
|
||||||
|
pattern: RegExp.mobile,
|
||||||
|
message: "请输入正确的手机号",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
code: [{ required: true, message: "请输入手机验证码" }],
|
||||||
|
},
|
||||||
|
codeMsg: "发送验证码", // 验证码文字
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -142,20 +166,68 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 发送手机验证码
|
||||||
|
sendCode() {
|
||||||
|
if (this.time === 60) {
|
||||||
|
if (this.formSms.mobile === "") {
|
||||||
|
this.$Message.warning("请先填写手机号");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!this.verifyStatus) {
|
||||||
|
this.$Message.warning("请先完成安全验证");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let params = {
|
||||||
|
mobile: this.formSms.mobile,
|
||||||
|
verificationEnums: "LOGIN",
|
||||||
|
};
|
||||||
|
sendSms(params).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("验证码发送成功");
|
||||||
|
let that = this;
|
||||||
|
this.interval = setInterval(() => {
|
||||||
|
that.time--;
|
||||||
|
if (that.time === 0) {
|
||||||
|
that.time = 60;
|
||||||
|
that.codeMsg = "重新发送";
|
||||||
|
that.verifyStatus = false;
|
||||||
|
clearInterval(that.interval);
|
||||||
|
} else {
|
||||||
|
that.codeMsg = that.time;
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
} else {
|
||||||
|
this.$Message.warning(res.message);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
submitLogin() {
|
submitLogin() {
|
||||||
// 登录提交
|
// 登录提交
|
||||||
|
if (this.loginType == 'passwordLogin') {
|
||||||
this.$refs.usernameLoginForm.validate((valid) => {
|
this.$refs.usernameLoginForm.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs.verify.init();
|
this.$refs.verify.init();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else if (this.loginType == 'mobileLogin') {
|
||||||
|
this.$refs['formSms'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
storeSmsLogin(this.formSms).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.afterLogin(res)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
verifyChange(con) {
|
verifyChange(con) {
|
||||||
// 拼图验证码回显
|
// 拼图验证码回显
|
||||||
if (!con.status) return;
|
if (!con.status) return;
|
||||||
|
|
||||||
|
if (this.loginType == 'passwordLogin') {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
||||||
let fd = new FormData();
|
let fd = new FormData();
|
||||||
fd.append("username", this.form.username);
|
fd.append("username", this.form.username);
|
||||||
fd.append("password", this.md5(this.form.password));
|
fd.append("password", this.md5(this.form.password));
|
||||||
|
@ -169,8 +241,17 @@ export default {
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
this.verifyStatus = true;
|
||||||
this.$refs.verify.show = false;
|
this.$refs.verify.show = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 开启滑块验证
|
||||||
|
verifyBtnClick() {
|
||||||
|
if (!this.verifyStatus) {
|
||||||
|
this.$refs.verify.init();
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -184,12 +265,14 @@ export default {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.verify-con {
|
.verify-con {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 126px;
|
top: 126px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
left: 20px;
|
left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form {
|
.form {
|
||||||
padding-top: 1vh;
|
padding-top: 1vh;
|
||||||
}
|
}
|
||||||
|
@ -208,9 +291,11 @@ export default {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
transition: 0.35s;
|
transition: 0.35s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-btn:hover {
|
.login-btn:hover {
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -2,33 +2,18 @@
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Card style="height: 60px">
|
<Card style="height: 60px">
|
||||||
<div>
|
<div>
|
||||||
<Button
|
<Button v-if="allowOperation.editPrice" @click="modifyPrice" type="primary">调整价格</Button>
|
||||||
v-if="allowOperation.editPrice"
|
<Button v-if="allowOperation.editConsignee" @click="editAddress" type="primary">修改收货地址</Button>
|
||||||
@click="modifyPrice"
|
<Button v-if="allowOperation.showLogistics" @click="logistics" type="primary">查看物流</Button>
|
||||||
type="primary"
|
|
||||||
>调整价格</Button
|
|
||||||
>
|
|
||||||
<Button
|
|
||||||
v-if="allowOperation.editConsignee"
|
|
||||||
@click="editAddress"
|
|
||||||
type="primary"
|
|
||||||
>修改收货地址</Button
|
|
||||||
>
|
|
||||||
<Button
|
|
||||||
v-if="allowOperation.showLogistics"
|
|
||||||
@click="logistics"
|
|
||||||
type="primary"
|
|
||||||
>查看物流</Button
|
|
||||||
>
|
|
||||||
<Button @click="orderLogModal = true" type="primary">订单日志</Button>
|
<Button @click="orderLogModal = true" type="primary">订单日志</Button>
|
||||||
<Button @click="printOrder" type="primary" ghost style="float:right;">打印发货单</Button>
|
<Button @click="printOrder" type="primary" ghost style="float:right;">打印发货单</Button>
|
||||||
<Button v-if="allowOperation.take" @click="orderTake" type="primary"
|
<Button v-if="allowOperation.take" @click="orderTake" type="primary">订单核销</Button>
|
||||||
>订单核销</Button
|
<Button v-if="allowOperation.ship" @click="orderDeliver" type="primary">发货</Button>
|
||||||
>
|
|
||||||
<Button v-if="allowOperation.ship" @click="orderDeliver" type="primary"
|
<Button @click="sfPrint" type="primary" ghost
|
||||||
>发货</Button
|
v-if="allowOperation.showLogistics && logisticsType == 'SHUNFENG'">下载面单</Button>
|
||||||
>
|
<Button @click="Toprint" type="primary" ghost
|
||||||
<Button @click="Toprint" type="primary" ghost v-if="allowOperation.ship">打印电子面单</Button>
|
v-if="allowOperation.ship && logisticsType != 'SHUNFENG'">打印电子面单</Button>
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
@ -99,8 +84,7 @@
|
||||||
<div class="div-item">
|
<div class="div-item">
|
||||||
<div class="div-item-left">发票金额:</div>
|
<div class="div-item-left">发票金额:</div>
|
||||||
<div class="div-item-right">
|
<div class="div-item-right">
|
||||||
<span v-if="orderInfo.receipt.receiptPrice">¥</span
|
<span v-if="orderInfo.receipt.receiptPrice">¥</span>{{
|
||||||
>{{
|
|
||||||
orderInfo.receipt.receiptPrice
|
orderInfo.receipt.receiptPrice
|
||||||
? orderInfo.receipt.receiptPrice
|
? orderInfo.receipt.receiptPrice
|
||||||
: "暂无" | unitPrice
|
: "暂无" | unitPrice
|
||||||
|
@ -160,21 +144,12 @@
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card class="mt_10">
|
<Card class="mt_10">
|
||||||
<Table
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table">
|
||||||
:loading="loading"
|
|
||||||
border
|
|
||||||
:columns="columns"
|
|
||||||
:data="data"
|
|
||||||
ref="table"
|
|
||||||
>
|
|
||||||
<!-- 商品栏目格式化 -->
|
<!-- 商品栏目格式化 -->
|
||||||
<template slot="goodsSlot" slot-scope="{ row }">
|
<template slot="goodsSlot" slot-scope="{ row }">
|
||||||
<div style="margin-top: 5px; height: 80px; display: flex">
|
<div style="margin-top: 5px; height: 80px; display: flex">
|
||||||
<div style="">
|
<div style="">
|
||||||
<img
|
<img :src="row.image" style="height: 60px; margin-top: 1px; width: 60px" />
|
||||||
:src="row.image"
|
|
||||||
style="height: 60px; margin-top: 1px; width: 60px"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-left: 13px">
|
<div style="margin-left: 13px">
|
||||||
|
@ -184,35 +159,16 @@
|
||||||
}}</a>
|
}}</a>
|
||||||
</div>
|
</div>
|
||||||
<span v-for="(item, key) in JSON.parse(row.specs)" :key="key">
|
<span v-for="(item, key) in JSON.parse(row.specs)" :key="key">
|
||||||
<span
|
<span v-show="key != 'images'" style="font-size: 12px; color: #999999">
|
||||||
v-show="key != 'images'"
|
|
||||||
style="font-size: 12px; color: #999999"
|
|
||||||
>
|
|
||||||
{{ key }} : {{ item }}
|
{{ key }} : {{ item }}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<Poptip
|
<Poptip trigger="hover" style="display: block" title="扫码在手机中查看" transfer>
|
||||||
trigger="hover"
|
|
||||||
style="display: block"
|
|
||||||
title="扫码在手机中查看"
|
|
||||||
transfer
|
|
||||||
>
|
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<vue-qr
|
<vue-qr :text="wapLinkTo(row.goodsId, row.skuId)" :margin="0" colorDark="#000" colorLight="#fff"
|
||||||
:text="wapLinkTo(row.goodsId, row.skuId)"
|
:size="150"></vue-qr>
|
||||||
:margin="0"
|
|
||||||
colorDark="#000"
|
|
||||||
colorLight="#fff"
|
|
||||||
:size="150"
|
|
||||||
></vue-qr>
|
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="" />
|
||||||
src="../../../assets/qrcode.svg"
|
|
||||||
class="hover-pointer"
|
|
||||||
width="20"
|
|
||||||
height="20"
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
</Poptip>
|
</Poptip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -235,10 +191,12 @@
|
||||||
<span class="label">优惠券金额:</span>
|
<span class="label">优惠券金额:</span>
|
||||||
<span class="txt"> {{ orderInfo.order.priceDetailDTO.couponPrice | unitPrice('¥') }} </span>
|
<span class="txt"> {{ orderInfo.order.priceDetailDTO.couponPrice | unitPrice('¥') }} </span>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="orderInfo.order.priceDetailDTO.discountPriceDetail != undefined && orderInfo.order.priceDetailDTO.discountPriceDetail && orderInfo.order.priceDetailDTO.discountPriceDetail != null && orderInfo.order.priceDetailDTO.discountPriceDetail != ''">
|
<li
|
||||||
|
v-if="orderInfo.order.priceDetailDTO.discountPriceDetail != undefined && orderInfo.order.priceDetailDTO.discountPriceDetail && orderInfo.order.priceDetailDTO.discountPriceDetail != null && orderInfo.order.priceDetailDTO.discountPriceDetail != ''">
|
||||||
<div class="label">
|
<div class="label">
|
||||||
<Poptip trigger="hover" placement="left" width="200">
|
<Poptip trigger="hover" placement="left" width="200">
|
||||||
<Icon v-if="typeList.length > 0" type="ios-alert-outline" size="17" @click="getOrderPrice" color="#cc0000"/>
|
<Icon v-if="typeList.length > 0" type="ios-alert-outline" size="17" @click="getOrderPrice"
|
||||||
|
color="#cc0000" />
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="api" style="text-align:left;">
|
<div class="api" style="text-align:left;">
|
||||||
<table>
|
<table>
|
||||||
|
@ -248,8 +206,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(item,index) in typeList" :key="index">
|
<tr v-for="(item, index) in typeList" :key="index">
|
||||||
<td>{{item.promotionName}}:</td>
|
<td>{{ item.promotionName }}:</td>
|
||||||
<td>¥{{ item.discountPrice | unitPrice }}</td>
|
<td>¥{{ item.discountPrice | unitPrice }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -287,9 +245,7 @@
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<span class="label">应付金额:</span>
|
<span class="label">应付金额:</span>
|
||||||
<span class="txt flowPrice"
|
<span class="txt flowPrice">¥{{ orderInfo.order.flowPrice | unitPrice }}</span>
|
||||||
>¥{{ orderInfo.order.flowPrice | unitPrice }}</span
|
|
||||||
>
|
|
||||||
<!-- <template v-if="orderInfo.order.priceDetailDTO.discountPriceDetail != undefined && orderInfo.order.priceDetailDTO.discountPriceDetail && orderInfo.order.priceDetailDTO.discountPriceDetail != null && orderInfo.order.priceDetailDTO.discountPriceDetail != ''">
|
<!-- <template v-if="orderInfo.order.priceDetailDTO.discountPriceDetail != undefined && orderInfo.order.priceDetailDTO.discountPriceDetail && orderInfo.order.priceDetailDTO.discountPriceDetail != null && orderInfo.order.priceDetailDTO.discountPriceDetail != ''">
|
||||||
<Space style="height:20px;float: right;text-align: center;margin-left:30px;margin-right:53px;">
|
<Space style="height:20px;float: right;text-align: center;margin-left:30px;margin-right:53px;">
|
||||||
<Button type="primary" ghost size="small" @click="getOrderPrice()">优惠详情</Button>
|
<Button type="primary" ghost size="small" @click="getOrderPrice()">优惠详情</Button>
|
||||||
|
@ -305,22 +261,12 @@
|
||||||
<span>修改金额</span>
|
<span>修改金额</span>
|
||||||
</p>
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<Form
|
<Form ref="modifyPriceForm" :model="modifyPriceForm" label-position="left" :label-width="100"
|
||||||
ref="modifyPriceForm"
|
:rules="modifyPriceValidate">
|
||||||
:model="modifyPriceForm"
|
|
||||||
label-position="left"
|
|
||||||
:label-width="100"
|
|
||||||
:rules="modifyPriceValidate"
|
|
||||||
>
|
|
||||||
<FormItem label="订单金额" prop="orderPrice">
|
<FormItem label="订单金额" prop="orderPrice">
|
||||||
<InputNumber
|
<InputNumber style="width: 100%" v-model="modifyPriceForm.orderPrice" size="large" :min="0.01" :max="99999">
|
||||||
style="width: 100%"
|
<span slot="append">元</span>
|
||||||
v-model="modifyPriceForm.orderPrice"
|
</InputNumber>
|
||||||
size="large"
|
|
||||||
:min="0.01"
|
|
||||||
:max="99999"
|
|
||||||
><span slot="append">元</span></InputNumber
|
|
||||||
>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -336,55 +282,22 @@
|
||||||
<span>修改收件信息</span>
|
<span>修改收件信息</span>
|
||||||
</p>
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<Form
|
<Form ref="addressForm" :model="addressForm" label-position="left" :label-width="100" :rules="addressRule">
|
||||||
ref="addressForm"
|
|
||||||
:model="addressForm"
|
|
||||||
label-position="left"
|
|
||||||
:label-width="100"
|
|
||||||
:rules="addressRule"
|
|
||||||
>
|
|
||||||
<FormItem label="收件人" prop="consigneeName">
|
<FormItem label="收件人" prop="consigneeName">
|
||||||
<Input
|
<Input v-model="addressForm.consigneeName" size="large" maxlength="20"></Input>
|
||||||
v-model="addressForm.consigneeName"
|
|
||||||
size="large"
|
|
||||||
maxlength="20"
|
|
||||||
></Input>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="联系方式" prop="consigneeMobile">
|
<FormItem label="联系方式" prop="consigneeMobile">
|
||||||
<Input
|
<Input v-model="addressForm.consigneeMobile" size="large" maxlength="11"></Input>
|
||||||
v-model="addressForm.consigneeMobile"
|
|
||||||
size="large"
|
|
||||||
maxlength="11"
|
|
||||||
></Input>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="地址信息" prop="consigneeAddressPath">
|
<FormItem label="地址信息" prop="consigneeAddressPath">
|
||||||
<Input
|
<Input v-model="addressForm.consigneeAddressPath" disabled style="width: 325px" v-if="showRegion == false" />
|
||||||
v-model="addressForm.consigneeAddressPath"
|
<Button v-if="showRegion == false" size="small" @click="regionClick" :loading="submitLoading" type="primary"
|
||||||
disabled
|
style="margin-left: 8px">修改
|
||||||
style="width: 325px"
|
|
||||||
v-if="showRegion == false"
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
v-if="showRegion == false"
|
|
||||||
size="small"
|
|
||||||
@click="regionClick"
|
|
||||||
:loading="submitLoading"
|
|
||||||
type="primary"
|
|
||||||
style="margin-left: 8px"
|
|
||||||
>修改
|
|
||||||
</Button>
|
</Button>
|
||||||
<region
|
<region style="width: 400px" @selected="selectedRegion" v-if="showRegion == true" />
|
||||||
style="width: 400px"
|
|
||||||
@selected="selectedRegion"
|
|
||||||
v-if="showRegion == true"
|
|
||||||
/>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="详细地址" prop="consigneeDetail">
|
<FormItem label="详细地址" prop="consigneeDetail">
|
||||||
<Input
|
<Input v-model="addressForm.consigneeDetail" size="large" maxlength="11"></Input>
|
||||||
v-model="addressForm.consigneeDetail"
|
|
||||||
size="large"
|
|
||||||
maxlength="11"
|
|
||||||
></Input>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -400,19 +313,10 @@
|
||||||
<span>订单核销</span>
|
<span>订单核销</span>
|
||||||
</p>
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<Form
|
<Form ref="orderTakeForm" :model="orderTakeForm" label-position="left" :label-width="100"
|
||||||
ref="orderTakeForm"
|
:rules="orderTakeValidate">
|
||||||
:model="orderTakeForm"
|
|
||||||
label-position="left"
|
|
||||||
:label-width="100"
|
|
||||||
:rules="orderTakeValidate"
|
|
||||||
>
|
|
||||||
<FormItem label="核销码" prop="qrCode">
|
<FormItem label="核销码" prop="qrCode">
|
||||||
<Input
|
<Input v-model="orderTakeForm.qrCode" size="large" maxlength="10"></Input>
|
||||||
v-model="orderTakeForm.qrCode"
|
|
||||||
size="large"
|
|
||||||
maxlength="10"
|
|
||||||
></Input>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -427,13 +331,7 @@
|
||||||
<span>订单日志</span>
|
<span>订单日志</span>
|
||||||
</p>
|
</p>
|
||||||
<div class="order-log-div">
|
<div class="order-log-div">
|
||||||
<Table
|
<Table :loading="loading" border :columns="orderLogColumns" :data="orderLogData" ref="table"></Table>
|
||||||
:loading="loading"
|
|
||||||
border
|
|
||||||
:columns="orderLogColumns"
|
|
||||||
:data="orderLogData"
|
|
||||||
ref="table"
|
|
||||||
></Table>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div slot="footer" style="text-align: right">
|
<div slot="footer" style="text-align: right">
|
||||||
|
@ -469,8 +367,8 @@
|
||||||
<div class="div-express-log">
|
<div class="div-express-log">
|
||||||
<ul class="express-log">
|
<ul class="express-log">
|
||||||
<li v-for="(item, index) in logisticsInfo.traces" :key="index">
|
<li v-for="(item, index) in logisticsInfo.traces" :key="index">
|
||||||
<span class="time">{{ item.AcceptTime }}</span>
|
<span class="time">{{ item.AcceptTime || item.acceptTime }}</span>
|
||||||
<span class="detail">{{ item.AcceptStation }}</span>
|
<span class="detail">{{ item.AcceptStation || item.remark }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -488,49 +386,23 @@
|
||||||
<div>
|
<div>
|
||||||
<Form :model="faceSheetForm" ref="faceSheetForm" v-if="facesheetFlag" :rules="faceSheetFormValidate">
|
<Form :model="faceSheetForm" ref="faceSheetForm" v-if="facesheetFlag" :rules="faceSheetFormValidate">
|
||||||
<FormItem label="物流公司" prop="logisticsId" style="position: relative" :label-width="90">
|
<FormItem label="物流公司" prop="logisticsId" style="position: relative" :label-width="90">
|
||||||
<Select
|
<Select v-model="faceSheetForm.logisticsId" placeholder="请选择" style="width: 250px">
|
||||||
v-model="faceSheetForm.logisticsId"
|
<Option v-for="(item, i) in checkedLogistics" :key="i" :value="item.logisticsId">{{ item.name }}
|
||||||
placeholder="请选择"
|
|
||||||
style="width: 250px"
|
|
||||||
>
|
|
||||||
<Option
|
|
||||||
v-for="(item, i) in checkedLogistics"
|
|
||||||
:key="i"
|
|
||||||
:value="item.logisticsId"
|
|
||||||
>{{ item.name }}
|
|
||||||
</Option>
|
</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
<Form
|
<Form v-else ref="orderDeliveryForm" :model="orderDeliveryForm" :label-width="90"
|
||||||
v-else
|
:rules="orderDeliverFormValidate" style="position: relative">
|
||||||
ref="orderDeliveryForm"
|
|
||||||
:model="orderDeliveryForm"
|
|
||||||
:label-width="90"
|
|
||||||
:rules="orderDeliverFormValidate"
|
|
||||||
style="position: relative"
|
|
||||||
>
|
|
||||||
|
|
||||||
<FormItem label="物流公司" prop="logisticsId">
|
<FormItem label="物流公司" prop="logisticsId">
|
||||||
<Select
|
<Select v-model="orderDeliveryForm.logisticsId" placeholder="请选择" style="width: 250px">
|
||||||
v-model="orderDeliveryForm.logisticsId"
|
<Option v-for="(item, i) in checkedLogistics" :key="i" :value="item.logisticsId">{{ item.name }}
|
||||||
placeholder="请选择"
|
|
||||||
style="width: 250px"
|
|
||||||
>
|
|
||||||
<Option
|
|
||||||
v-for="(item, i) in checkedLogistics"
|
|
||||||
:key="i"
|
|
||||||
:value="item.logisticsId"
|
|
||||||
>{{ item.name }}
|
|
||||||
</Option>
|
</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<!-- v-if="showOrder" -->
|
<!-- v-if="showOrder" -->
|
||||||
<FormItem label="物流单号" prop="logisticsNo" >
|
<FormItem label="物流单号" prop="logisticsNo">
|
||||||
<Input
|
<Input v-model="orderDeliveryForm.logisticsNo" style="width: 250px" />
|
||||||
v-model="orderDeliveryForm.logisticsNo"
|
|
||||||
style="width: 250px"
|
|
||||||
/>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -541,10 +413,12 @@
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
<!-- 打印发货单 -->
|
<!-- 打印发货单 -->
|
||||||
<Modal v-model="printModal" width="530" @on-cancel="printCancel" >
|
<Modal v-model="printModal" width="530" @on-cancel="printCancel">
|
||||||
<p slot="header" style="line-height:26px;height:26px;">
|
<p slot="header" style="line-height:26px;height:26px;">
|
||||||
<span style="float: left;">打印发货单</span>
|
<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>
|
<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>
|
</p>
|
||||||
<div style="max-height:500px;overflow-y:auto;overflow-x:hidden;">
|
<div style="max-height:500px;overflow-y:auto;overflow-x:hidden;">
|
||||||
<div id="printInfo">
|
<div id="printInfo">
|
||||||
|
@ -558,22 +432,24 @@
|
||||||
<p class="lineH30 f14">收件人:{{ orderInfo.order.consigneeName }}</p>
|
<p class="lineH30 f14">收件人:{{ orderInfo.order.consigneeName }}</p>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span="12" v-if="orderInfo.order.consigneeMobile">
|
<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-if="printHiddenFlag">手机号:{{
|
||||||
|
orderInfo.order.consigneeMobile.replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2") }}</p>
|
||||||
<p class="lineH30 f14" v-else>手机号:{{ orderInfo.order.consigneeMobile }}</p>
|
<p class="lineH30 f14" v-else>手机号:{{ orderInfo.order.consigneeMobile }}</p>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Col span="24">
|
<Col span="24">
|
||||||
<p class="lineH30 f14">收货地址:{{ orderInfo.order.consigneeAddressPath }}{{ orderInfo.order.consigneeDetail }}</p>
|
<p class="lineH30 f14">收货地址:{{ orderInfo.order.consigneeAddressPath }}{{ orderInfo.order.consigneeDetail }}
|
||||||
|
</p>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Col span="24">
|
<Col span="24">
|
||||||
<p class="printgoodtitle">商品信息</p>
|
<p class="printgoodtitle">商品信息</p>
|
||||||
<div class="printgoodinfo">
|
<div class="printgoodinfo">
|
||||||
<div v-for="(item,index) in orderInfo.orderItems" :key="index" class="printgooditem">
|
<div v-for="(item, index) in orderInfo.orderItems" :key="index" class="printgooditem">
|
||||||
<div class="printgoodname">
|
<div class="printgoodname">
|
||||||
<p>{{item.goodsName}}</p>
|
<p>{{ item.goodsName }}</p>
|
||||||
<div class="printgoodguid">
|
<div class="printgoodguid">
|
||||||
<span v-for="(itemchild, keychild) in JSON.parse(item.specs)" :key="keychild">
|
<span v-for="(itemchild, keychild) in JSON.parse(item.specs)" :key="keychild">
|
||||||
<span class="printgoodguiditem" v-if="keychild != 'images'">
|
<span class="printgoodguiditem" v-if="keychild != 'images'">
|
||||||
|
@ -582,7 +458,7 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="printgoodnumber">数量:{{item.num}}</span>
|
<span class="printgoodnumber">数量:{{ item.num }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
@ -613,17 +489,18 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
typeList:[],
|
typeList: [],
|
||||||
showPrices:false,
|
showPrices: false,
|
||||||
printHiddenFlag:false,//隐藏信息
|
printHiddenFlag: false,//隐藏信息
|
||||||
printInfoObj:{
|
printInfoObj: {
|
||||||
id: "printInfo",//要打印的id名 无#号
|
id: "printInfo",//要打印的id名 无#号
|
||||||
popTitle:' ',//页眉标题 默认浏览器标题 空字符串时显示undefined 使用html语言
|
popTitle: ' ',//页眉标题 默认浏览器标题 空字符串时显示undefined 使用html语言
|
||||||
extraHead:'',//头部文字 默认空
|
extraHead: '',//头部文字 默认空
|
||||||
},
|
},
|
||||||
submitLoading: false, // 添加或编辑提交状态
|
submitLoading: false, // 添加或编辑提交状态
|
||||||
region: [], //地区
|
region: [], //地区
|
||||||
regionId: [], //地区id
|
regionId: [], //地区id
|
||||||
|
logisticsType: 'KUAIDINIAO', //物流类型
|
||||||
showRegion: false,
|
showRegion: false,
|
||||||
someJSONdata: '',
|
someJSONdata: '',
|
||||||
faceSheetForm: {
|
faceSheetForm: {
|
||||||
|
@ -631,7 +508,7 @@ export default {
|
||||||
},
|
},
|
||||||
faceSheetFormValidate: {
|
faceSheetFormValidate: {
|
||||||
logisticsId: [
|
logisticsId: [
|
||||||
{ required: true, message: "请选择物流公司"},
|
{ required: true, message: "请选择物流公司" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
facesheetFlag: false, //电子面单标识
|
facesheetFlag: false, //电子面单标识
|
||||||
|
@ -652,7 +529,7 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
modal: false, //弹出调整价格框
|
modal: false, //弹出调整价格框
|
||||||
printModal:false,//弹出打印发货单
|
printModal: false,//弹出打印发货单
|
||||||
//调整价格表单
|
//调整价格表单
|
||||||
modifyPriceForm: {
|
modifyPriceForm: {
|
||||||
orderPrice: 0,
|
orderPrice: 0,
|
||||||
|
@ -826,13 +703,13 @@ export default {
|
||||||
this.orderTakeModal = true;
|
this.orderTakeModal = true;
|
||||||
},
|
},
|
||||||
//打印发货单
|
//打印发货单
|
||||||
printOrder(){
|
printOrder() {
|
||||||
this.printModal = true;
|
this.printModal = true;
|
||||||
},
|
},
|
||||||
printHiddenInfo(){
|
printHiddenInfo() {
|
||||||
this.printHiddenFlag = !this.printHiddenFlag;
|
this.printHiddenFlag = !this.printHiddenFlag;
|
||||||
},
|
},
|
||||||
printCancel(){
|
printCancel() {
|
||||||
// this.printHiddenFlag = false;
|
// this.printHiddenFlag = false;
|
||||||
},
|
},
|
||||||
//订单核销提交
|
//订单核销提交
|
||||||
|
@ -851,14 +728,14 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getOrderPrice(){
|
getOrderPrice() {
|
||||||
if(this.showPrices){
|
if (this.showPrices) {
|
||||||
this.showPrices = false
|
this.showPrices = false
|
||||||
}else if(!this.showPrices){
|
} else if (!this.showPrices) {
|
||||||
this.showPrices = true
|
this.showPrices = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getContentPrice(){
|
getContentPrice() {
|
||||||
for (let i = 0; i < this.typeList.length; i++) {
|
for (let i = 0; i < this.typeList.length; i++) {
|
||||||
for (let j = i + 1; j < this.typeList.length; j++) {
|
for (let j = i + 1; j < this.typeList.length; j++) {
|
||||||
if (this.typeList[i].promotionId === this.typeList[j].promotionId) {
|
if (this.typeList[i].promotionId === this.typeList[j].promotionId) {
|
||||||
|
@ -868,7 +745,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(this.typeList)
|
console.log(this.typeList)
|
||||||
if(this.typeList.length >= 3){
|
if (this.typeList.length >= 3) {
|
||||||
console.log(123123)
|
console.log(123123)
|
||||||
this.getContentPrice()
|
this.getContentPrice()
|
||||||
}
|
}
|
||||||
|
@ -889,7 +766,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
Toprint(){
|
Toprint() {
|
||||||
this.facesheetFlag = true;
|
this.facesheetFlag = true;
|
||||||
API_Logistics.getCheckedOn().then(res => {
|
API_Logistics.getCheckedOn().then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
@ -937,35 +814,83 @@ export default {
|
||||||
//订单发货
|
//订单发货
|
||||||
orderDeliver() {
|
orderDeliver() {
|
||||||
this.facesheetFlag = false
|
this.facesheetFlag = false
|
||||||
|
if (this.logisticsType == 'SHUNFENG') {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认发货",
|
||||||
|
content: "您确认使用顺丰发货 " + this.sn + " 订单?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
API_Order.orderShunFengDelivery(this.sn).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$Modal.remove();
|
||||||
|
this.$Message.success("订单发货成功");
|
||||||
|
this.getDataDetail()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
API_Order.getLogisticsChecked().then((res) => {
|
API_Order.getLogisticsChecked().then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.checkedLogistics = res.result;
|
this.checkedLogistics = res.result;
|
||||||
this.orderDeliverModal = true;
|
this.orderDeliverModal = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
Toprints(){
|
//顺丰打印面单
|
||||||
if(this.form.logisticsId != null && this.form.logisticsId != ''){
|
sfPrint() {
|
||||||
|
API_Order.getOrderFaceSheet(this.sn, this.faceSheetForm).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
let headers = {
|
||||||
|
'X-Auth-token': res.result.token
|
||||||
|
}
|
||||||
|
API_Logistics.getShunFengFaceSheet(res.result.url, headers).then(res => {
|
||||||
|
const blob = new Blob([res], {
|
||||||
|
type: "application/pdf;charset=utf-8",
|
||||||
|
});
|
||||||
|
console.log("出发blob");
|
||||||
|
//对于<a>标签,只有 Firefox 和 Chrome(内核) 支持 download 属性
|
||||||
|
//IE10以上支持blob但是依然不支持download
|
||||||
|
if ("download" in document.createElement("a")) {
|
||||||
|
//支持a标签download的浏览器
|
||||||
|
const link = document.createElement("a"); //创建a标签
|
||||||
|
link.download = this.orderInfo.order.sn + ".pdf"; //a标签添加属性
|
||||||
|
link.style.display = "none";
|
||||||
|
link.href = URL.createObjectURL(blob);
|
||||||
|
document.body.appendChild(link);
|
||||||
|
link.click(); //执行下载
|
||||||
|
URL.revokeObjectURL(link.href); //释放url
|
||||||
|
document.body.removeChild(link); //释放标签
|
||||||
|
} else {
|
||||||
|
navigator.msSaveBlob(blob, fileName);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
Toprints() {
|
||||||
|
if (this.form.logisticsId != null && this.form.logisticsId != '') {
|
||||||
this.orderDeliverModal = false;
|
this.orderDeliverModal = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//订单发货提交
|
//订单发货提交
|
||||||
orderDeliverySubmit() {
|
orderDeliverySubmit() {
|
||||||
if(this.facesheetFlag){
|
if (this.facesheetFlag) {
|
||||||
this.$refs['faceSheetForm'].validate((valid) => {
|
this.$refs['faceSheetForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
API_Order.getOrderFaceSheet(this.sn, this.faceSheetForm).then(res => {
|
API_Order.getOrderFaceSheet(this.sn, this.faceSheetForm).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.someJSONdata = res.result;
|
this.someJSONdata = res.result.printTemplate;
|
||||||
this.Toprints();
|
this.Toprints();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
this.$refs['orderDeliveryForm'].validate((valid) => {
|
this.$refs['orderDeliveryForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
API_Order.orderDelivery(this.sn,this.orderDeliveryForm).then(
|
API_Order.orderDelivery(this.sn, this.orderDeliveryForm).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$Message.success("订单发货成功");
|
this.$Message.success("订单发货成功");
|
||||||
|
@ -1014,14 +939,24 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getLogisticsSetting() {
|
||||||
|
API_Logistics.getLogisticsSetting().then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.logisticsType = res.result;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.sn = this.$route.query.sn;
|
this.sn = this.$route.query.sn;
|
||||||
this.getDataDetail();
|
this.getDataDetail();
|
||||||
|
this.getLogisticsSetting();
|
||||||
},
|
},
|
||||||
// 如果是从详情页返回列表页,修改列表页keepAlive为true,确保不刷新页面
|
// 如果是从详情页返回列表页,修改列表页keepAlive为true,确保不刷新页面
|
||||||
beforeRouteLeave(to, from, next){
|
beforeRouteLeave(to, from, next) {
|
||||||
if(to.name === 'orderList' || to.name === 'virtualOrderList') {
|
if (to.name === 'orderList' || to.name === 'virtualOrderList') {
|
||||||
to.meta.keepAlive = true
|
to.meta.keepAlive = true
|
||||||
}
|
}
|
||||||
next()
|
next()
|
||||||
|
@ -1031,9 +966,10 @@ export default {
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
// 建议引入通用样式 可删除下面样式代码
|
// 建议引入通用样式 可删除下面样式代码
|
||||||
// @import "@/styles/table-common.scss";
|
// @import "@/styles/table-common.scss";
|
||||||
.lineH30{
|
.lineH30 {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-log-div {
|
.order-log-div {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
|
@ -1044,6 +980,7 @@ dl dt {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.div-express-log {
|
.div-express-log {
|
||||||
max-height: 300px;
|
max-height: 300px;
|
||||||
border: solid 1px #e7e7e7;
|
border: solid 1px #e7e7e7;
|
||||||
|
@ -1057,16 +994,19 @@ dl dt {
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
|
|
||||||
.time {
|
.time {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail {
|
.detail {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
@ -1110,11 +1050,11 @@ dl dt {
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
> .div-item-left {
|
>.div-item-left {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .div-item-right {
|
>.div-item-right {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
@ -1159,27 +1099,32 @@ dl dt {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.theme_color{
|
|
||||||
|
.theme_color {
|
||||||
color: $theme_color;
|
color: $theme_color;
|
||||||
}
|
}
|
||||||
.f14{
|
|
||||||
|
.f14 {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
.printgoodtitle{
|
|
||||||
|
.printgoodtitle {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
.printgoodinfo{
|
|
||||||
|
.printgoodinfo {
|
||||||
// font-size: 14px;
|
// font-size: 14px;
|
||||||
// background: #f2f2f2;
|
// background: #f2f2f2;
|
||||||
// border-bottom:2px solid #333 ;
|
// border-bottom:2px solid #333 ;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: #333;
|
color: #333;
|
||||||
.printgooditem{
|
|
||||||
|
.printgooditem {
|
||||||
border-bottom: 1px solid #e8eaec;
|
border-bottom: 1px solid #e8eaec;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
@ -1187,35 +1132,43 @@ dl dt {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
.printgoodname{
|
|
||||||
|
.printgoodname {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
.printgoodguid{
|
|
||||||
|
.printgoodguid {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color:#999999;
|
color: #999999;
|
||||||
line-height:1.5;
|
line-height: 1.5;
|
||||||
.printgoodguiditem{
|
|
||||||
|
.printgoodguiditem {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.printgoodprice{
|
|
||||||
|
.printgoodprice {
|
||||||
width: 135px;
|
width: 135px;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
.printgoodnumber{
|
|
||||||
|
.printgoodnumber {
|
||||||
width: 85px;
|
width: 85px;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
@page{
|
@page {
|
||||||
size: auto;
|
size: auto;
|
||||||
margin: 3mm;
|
margin: 3mm;
|
||||||
}
|
}
|
||||||
html,body{
|
|
||||||
height:inherit;
|
html,
|
||||||
|
body {
|
||||||
|
height: inherit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -139,7 +139,7 @@ export default {
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.selected === null || params.row.selected === "") {
|
if (!params.row.selected) {
|
||||||
return h("div", [h("tag", {props: {color: "volcano"}}, "关闭")]);
|
return h("div", [h("tag", {props: {color: "volcano"}}, "关闭")]);
|
||||||
} else {
|
} else {
|
||||||
return h("div", [h("tag", {props: {color: "green"}}, "开启")]);
|
return h("div", [h("tag", {props: {color: "green"}}, "开启")]);
|
||||||
|
@ -152,7 +152,7 @@ export default {
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 200,
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.selected === null) {
|
if (!params.row.selected) {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"Button",
|
||||||
|
@ -301,7 +301,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
if ( this.row.selected === null || this.row.selected === "") {
|
if ( !this.row.selected) {
|
||||||
API_Shop.logisticsChecked(
|
API_Shop.logisticsChecked(
|
||||||
this.row.logisticsId,
|
this.row.logisticsId,
|
||||||
this.faceSheetForm
|
this.faceSheetForm
|
||||||
|
@ -329,7 +329,7 @@ export default {
|
||||||
content: "您确认关闭此物流公司?",
|
content: "您确认关闭此物流公司?",
|
||||||
loading: true,
|
loading: true,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API_Shop.logisticsUnChecked(v.selected).then((res) => {
|
API_Shop.logisticsUnChecked(v.logisticsId).then((res) => {
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$Message.success("物流公司关闭成功");
|
this.$Message.success("物流公司关闭成功");
|
||||||
|
|
Loading…
Reference in New Issue