提交 2c731736 authored 作者: 赵明's avatar 赵明

联调更新

上级 ec807fc5
NODE_ENV=development
# VUE_APP_API_BASE_URL='http://192.168.0.119:9999'
# VUE_APP_API_BASE_URL='http://192.168.0.100:9999'
VUE_APP_API_BASE_URL='http://220.203.25.212:9999'
#VUE_APP_API_BASE_URL='http://192.168.0.119:9999'
#VUE_APP_API_BASE_URL='http://192.168.0.100:9999'
VUE_APP_API_BASE_URL='http://220.203.25.212:9998'
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
......
NODE_ENV=production
VUE_APP_API_BASE_URL=http://220.203.25.212:9999
VUE_APP_API_BASE_URL=http://220.203.25.212:9998
VUE_APP_CAS_BASE_URL=http://localhost:8888/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
\ No newline at end of file
......@@ -161,7 +161,11 @@ export function downloadFile(url, fileName, parameter) {
if (typeof window.navigator.msSaveBlob !== 'undefined') {
window.navigator.msSaveBlob(new Blob([data]), fileName)
} else {
let url = window.URL.createObjectURL(new Blob([data]))
let blob = new Blob([data], {
type:
'image/png,image/jpeg,image/jpg,image/gif,image/bmp,image/x-icon',
})
let url = window.URL.createObjectURL(blob)
let link = document.createElement('a')
link.style.display = 'none'
link.href = url
......
......@@ -73,6 +73,7 @@ export const PAYTYPE = [
export const PAYMENT_METOD = [
{label: '未支付', value: null},
{label: '微信', value: 'wechat'},
{label: '扫码支付', value: 'scanQrCodePay'},
{label: '小程序', value: 'miniapp'},
]
//对账状态
......
......@@ -21,7 +21,7 @@
props: {
title: {
type: String,
default: '汉星科技',
default: '商铺管理后台',
required: false
},
showTitle: {
......
......@@ -174,6 +174,7 @@
...mapActions(["Logout"]),
...mapGetters(["nickname", "avatar","userInfo"]),
getAvatar(){
return getFileAccessHttpUrl(this.avatar())
},
handleLogout() {
......
......@@ -12,6 +12,7 @@ import store from '@/store'
export const JeecgListMixin = {
data(){
return {
createTimeValue: [],
/* 查询条件-请不要在queryParam中声明非字符串值的属性 */
queryParam: {},
/* 数据源 */
......@@ -151,7 +152,9 @@ export const JeecgListMixin = {
this.$refs.superQueryModal.show();
},
searchReset() {
this.createTimeValue = []
this.queryParam = {}
this.initPageParams(this.queryParam);
this.loadData(1);
},
batchDel: function () {
......
......@@ -14,18 +14,17 @@
<j-input placeholder="请输入单号" v-model="queryParam.balanceNum"></j-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="8">
<a-col :md="6" :sm="8">
<a-form-item label="订单时间:">
<a-date-picker placeholder="订单时间" valueFormat="YYYY-MM-DD 00:00:00" v-model="queryParam.balanceDate"></a-date-picker>
<a-range-picker @change="onChangeData" :value='createTimeValue'/>
</a-form-item>
<span slot="balanceStatus" slot-scope="text, record">
<a-tag v-if="record.balanceStatus === 1">未对账</a-tag>
<a-tag v-else-if="record.balanceStatus === 2">对账待审核</a-tag>
<a-tag v-else-if="record.balanceStatus === 3">已对账</a-tag>
<a-tag v-else-if="record.balanceStatus === 4">对账驳回</a-tag>
</span>
</a-col>
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-col :md="5" :sm="24">
<a-button type="primary" @click="searchQuery">查询</a-button>
<a-button style="margin-left: 8px" @click="searchReset">重置</a-button>
</a-col>
</span>
</a-row>
</a-form>
</div>
......@@ -35,6 +34,14 @@
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns"
:dataSource="dataSource" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap"
@change="handleTableChange">
<span slot="balanceStatus" slot-scope="text, record">
<a-tag color="orange" v-if="record.balanceStatus === 1">未结算</a-tag>
<a-tag color="blue" v-else-if="record.balanceStatus === 3">已结算</a-tag>
</span>
<span slot="action" slot-scope="text, record">
<a type="primary" @click="propertyDetails(2,record.id)">详情</a>
</span>
</a-table>
</div>
</a-card>
......@@ -49,11 +56,6 @@ export default {
data() {
return {
columns: [
{
title: '序号',
align: 'center',
dataIndex: 'num',
},
{
title: '结算单号',
align: 'center',
......@@ -62,7 +64,7 @@ export default {
{
title: '提交时间',
align: 'center',
dataIndex: 'balanceDate',
dataIndex: 'createTime',
},
{
title: '提交人',
......@@ -91,14 +93,41 @@ export default {
dataIndex: 'remarks',
align: 'center',
},
{
title: '操作',
dataIndex: 'action',
scopedSlots: { customRender: 'action' },
align: 'center',
fixed: 'right',
width: 150,
},
],
dataSource: [],
url: {
list: '/property-central/partners/shareBalance/list?balanceStatus=3',
list: '/property-central/partners/shareBalance/list?balanceStatus=3&platformType=shop',
},
}
},
methods: {},
methods: {
onChangeData(date, dateString) {
if (dateString.length > 0) {
this.createTimeValue = date
this.queryParam.createTime_begin = dateString[0]
this.queryParam.createTime_end = dateString[1]
}
},
propertyDetails(type, id) {
if (type == 1) {
this.$router.push({
path: '/settlement/SettlementDetails?type=add',
})
}else if (type == 2) {
this.$router.push({
path: '/settlement/SettlementDetails?type=detail&id=' + id,
})
}
},
},
}
</script>
<style scoped>
......
......@@ -27,7 +27,7 @@
<div class="icon" style="background-color:#ffaa00;"><a-icon type="bar-chart" /></div>
<div>
<p style="color:#666;margin-bottom:5px;">待对账金额</p>
<p style="margin-bottom:0;color:#333;font-size:28px;line-height:1;">¥{{pageForm.notBalance}}</p>
<p style="margin-bottom:0;color:#333;font-size:28px;line-height:1;">¥{{pageForm.notBenefit}}</p>
</div>
</div>
</a-col>
......@@ -36,7 +36,7 @@
<div class="icon" style="background-color:#52c41a;"><a-icon type="pay-circle" /></div>
<div>
<p style="color:#666;margin-bottom:5px;">待结算金额</p>
<p style="margin-bottom:0;color:#333;font-size:28px;line-height:1;">¥{{pageForm.notBenefit}}</p>
<p style="margin-bottom:0;color:#333;font-size:28px;line-height:1;">¥{{pageForm.notBalance}}</p>
</div>
</div>
</a-col>
......@@ -147,7 +147,7 @@ export default {
handleOk (){
downloadFile('/property-central/shop/shopInfo/getQrCode','商铺二维码.png')
downloadFile('/property-central/shop/shopInfo/getQrCode?shopCode=shop&platformType=shop','商铺二维码.png')
this.visible=false
this.$message.success('下载成功')
},
......
......@@ -15,8 +15,8 @@
</a-form-item>
</a-col>
<a-col :md="7" :sm="10">
<a-form-item label="提交时间">
<a-date-picker @change="onChangeData" />
<a-form-item label="提交时间">
<a-range-picker @change="onChangeData" :value="createTimeValue"/>
</a-form-item>
</a-col>
......@@ -153,13 +153,17 @@ export default {
},
created() {},
methods: {
onChangeData(date, dateString) {
if (dateString.length > 0) {
this.createTimeValue = date
this.queryParam.createTime_begin = dateString[0]
this.queryParam.createTime_end = dateString[1]
}
},
onDetail(id,type) {
this.$router.push({
path: `/paymentorder/paymentDetail?id=${id}&type=${type}`,
})
},
onChangeData(date, dateString) {
console.log(date, dateString);
}
}
}
......
......@@ -71,14 +71,14 @@ const columns = [
},
{
title: '业主名称',
dataIndex: 'partnersName',
key: 'partnersName',
dataIndex: 'ownerName',
key: 'ownerName',
align: 'center',
},
{
title: '用户账号',
dataIndex: 'ownerName',
key: 'ownerName',
dataIndex: 'ownerPhone',
key: 'ownerPhone',
align: 'center',
},
{
......@@ -103,8 +103,8 @@ const columns = [
const columns2 = [
{
title: '操作者',
dataIndex: 'propertyName',
key: 'propertyName',
dataIndex: 'shopName',
key: 'shopName',
align: 'center',
},
{
......
......@@ -38,7 +38,7 @@
</a-col>
<a-col :span="12">
<a-form-model-item label="支付方式" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.payWay" placeholder="支付方式" />
<a-input v-model="model.payWayName" placeholder="支付方式" />
</a-form-model-item>
</a-col>
<a-col :span="12">
......@@ -82,10 +82,10 @@
<template v-if="record"></template>已付款
</span>
<span slot="reconciliationStatus" slot-scope="text, record">
<a-tag v-if="record.reconciliationStatus === 1">未对账</a-tag>
<a-tag v-else-if="record.reconciliationStatus === 2">对账待审核</a-tag>
<a-tag v-else-if="record.reconciliationStatus === 3">已对账</a-tag>
<a-tag v-else-if="record.reconciliationStatus === 4">对账驳回</a-tag>
<a-tag color="orange" v-if="record.reconciliationStatus === 1">未对账</a-tag>
<a-tag color="blue" v-else-if="record.reconciliationStatus === 2">对账待审核</a-tag>
<a-tag color="green" v-else-if="record.reconciliationStatus === 3">已对账</a-tag>
<a-tag color="red" v-else-if="record.reconciliationStatus === 4">对账驳回</a-tag>
</span>
</a-table>
</a-card>
......@@ -160,6 +160,15 @@ export default {
if (this.model.orderSource == 'miniapp') {
this.model.orderSourceName = '小程序'
}
if (this.model.payWay == 'miniapp') {
this.model.payWayName = '小程序'
}else if (this.model.payWay == 'scanQrCodePay') {
this.model.payWayName = '扫码支付'
}else if (this.model.payWay == 'wechat') {
this.model.payWayName = '微信'
}else if (this.model.payWay == 'alipay') {
this.model.payWayName = '支付宝'
}
if (this.model.reconciliationStatus == 1) {
this.model.reconciliationStatusName = '未对账'
} else if (this.model.reconciliationStatus == 2) {
......
......@@ -25,7 +25,7 @@
<a-col :md="7" :sm="10">
<a-form-item label="订单时间:">
<a-date-picker placeholder="订单时间" valueFormat="YYYY-MM-DD 00:00:00" v-model="queryParam.createTime"></a-date-picker>
<a-range-picker @change="onChangeData" :value='createTimeValue'/>
</a-form-item>
</a-col>
......@@ -46,6 +46,8 @@
@change="handleTableChange">
<span slot="orderSource" slot-scope="text, record">
<template v-if="record.orderSource === 'miniapp'">小程序</template>
<template v-if="record.orderSource === 'scanQrCodePay'">扫码支付</template>
<template v-if="record.orderSource === 'wechat'">微信</template>
</span>
<span slot="reconciliationStatus" slot-scope="text, record">
<a-tag color="orange" v-if="record.reconciliationStatus === 1">未对账</a-tag>
......@@ -55,7 +57,7 @@
</span>
<span slot="action" slot-scope="text, record">
<a type="primary" @click="toDetails(record.id)">详情</a>
<a type="primary" @click="toReconciliation(record)" v-if="record.reconciliationStatus === 1&&record.isShow=='1'"
<a type="primary" @click="toReconciliation(record)" v-if="(record.reconciliationStatus === 4||record.reconciliationStatus === 1)&&record.isShow=='1'"
style="margin-left: 15px;">申请对账</a>
</span>
</a-table>
......@@ -91,6 +93,7 @@
<script>
import { httpAction } from '@/api/manage'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { filterDictTextByStatic, PAYMENT_METOD } from '@assets/static'
const columns = [
{
......@@ -128,6 +131,9 @@ const columns = [
dataIndex: 'payWay',
key: 'payWay',
align: 'center',
customRender: function(text) {
return filterDictTextByStatic(PAYMENT_METOD, text);
}
},
{
title: '订单来源',
......@@ -172,7 +178,7 @@ export default {
data() {
return {
queryParam:{
platformType:'shop'
},
info: {},
model: {},
......@@ -193,7 +199,7 @@ export default {
columns: columns,
loading: false,
url: {
list: '/property-central/partners/shareBenefit/list',
list: '/property-central/partners/shareBenefit/list?platformType=shop',
reconciliation: '/property-central/partners/shareBenefit/reconciliation',
show:'/property-central/sharerule/settlementSet/queryById?id=1',
},
......@@ -210,11 +216,9 @@ export default {
methods: {
onChangeData(date, dateString) {
if (dateString.length > 0) {
this.createTimeValue = date
this.queryParam.createTime_begin = dateString[0]
this.queryParam.createTime_end = dateString[1]
} else {
this.queryParam.createTime_begin = ''
this.queryParam.createTime_end = ''
}
},
onIsshow() {
......
......@@ -20,7 +20,7 @@
<a-col :md="7" :sm="10">
<a-form-item label="订单时间:">
<a-date-picker placeholder="订单时间" valueFormat="YYYY-MM-DD 00:00:00" v-model="queryParam.createTime"></a-date-picker>
<a-range-picker @change="onChangeData" :value="createTimeValue"/>
</a-form-item>
</a-col>
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
......@@ -145,13 +145,12 @@ export default {
methods: {
onChangeData(date, dateString) {
if (dateString.length > 0) {
this.createTimeValue = date
this.queryParam.createTime_begin = dateString[0]
this.queryParam.createTime_end = dateString[1]
} else {
this.queryParam.createTime_begin = ''
this.queryParam.createTime_end = ''
}
},
onChange(date, dateString) {
this.queryParam.createTime = dateString
},
......
......@@ -43,12 +43,13 @@
<div class="order">
<div class="order-title"><span
style="width: 30%;">订单编号</span><span>提交时间</span><span>用户账号</span><span>订单金额</span></div>
<vue-seamless-scroll :data="detail.shareOrder" class="seamless-warp" :class-option="defineScroll">
<vue-seamless-scroll v-if="detail.shareOrder && detail.shareOrder.length > 0" :data="detail.shareOrder" class="seamless-warp" :class-option="defineScroll">
<div v-for="(item, index) in detail.shareOrder" :key="index" class="item">
<span
style="width: 30%;">{{ item.order_num }}</span><span>{{ item.create_time }}</span><span>{{ item.buyer_name }}</span><span>{{ item.share_money }}</span>
</div>
</vue-seamless-scroll>
<a-empty v-else style="margin-top: 26px; margin-bottom: 26px;"/>
</div>
</div>
</a-col>
......@@ -195,16 +196,17 @@ export default {
}
.order {
margin: 0 10px;
border: 1px solid #e8e8e8;
.order-title {
background: #fafafa;
height: 40px;
line-height: 40px;
display: flex;
border-left: 1px solid #e8e8e8;
span {
width: 25%;
border-right: 1px solid #e8e8e8;
border-top: 1px solid #e8e8e8;
text-align: center;
font-weight: bold;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论