Compare commits
10 Commits
it_s
...
e7fca62c03
| Author | SHA1 | Date | |
|---|---|---|---|
| e7fca62c03 | |||
|
|
8e02a1240e | ||
|
|
b3991ebba0 | ||
| 1c9d822b2a | |||
|
|
0752af5887 | ||
| f4d26f411c | |||
| d7cd8533c1 | |||
| 08890f25ac | |||
| c2be494202 | |||
| 37932ba640 |
@@ -1,6 +1,6 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
var service_name = 'xkhl-finance'
|
var service_name = 'xkhl-finance'
|
||||||
var group_name = 'OilCustomerInvoicRecord'
|
var group_name = 'saasCustomerInvoicRecord'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
fuyous(){
|
fuyous(){
|
||||||
@@ -18,14 +18,14 @@ export default {
|
|||||||
},
|
},
|
||||||
getInfo(id) { // 根据id查询
|
getInfo(id) { // 根据id查询
|
||||||
return request({
|
return request({
|
||||||
url: `/${service_name}/${group_name}/getInfo/${id}`,
|
url: `/${service_name}/saasCustomerInvoicRecord/getInfo/${id}`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
save(oilCustomerInvoicRecord) { // 保存
|
save(oilCustomerInvoicRecord) { // 保存
|
||||||
return request({
|
return request({
|
||||||
url: `/${service_name}/${group_name}/save`,
|
url: `/${service_name}/saasCustomerInvoicRecord/save`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: oilCustomerInvoicRecord
|
data: oilCustomerInvoicRecord
|
||||||
})
|
})
|
||||||
|
|||||||
34
src/components/generalDetails/README.md
Normal file
34
src/components/generalDetails/README.md
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
组件 参数
|
||||||
|
sourceData : 数据源 类型:对象 {}
|
||||||
|
mappingData:映射表 类型:数组 []
|
||||||
|
isHeader:是否需要标题 默认为false 类型:布尔
|
||||||
|
title:详情标题 默认为 默认详情头 类型:字符串
|
||||||
|
|
||||||
|
|
||||||
|
mappingData 示例
|
||||||
|
[
|
||||||
|
{ //第一层 为卡片
|
||||||
|
carTitle://卡片标题
|
||||||
|
iconClass://图标名
|
||||||
|
isFold:是否可折叠
|
||||||
|
carItems:[
|
||||||
|
{
|
||||||
|
label:名称
|
||||||
|
value:显示的值 支持 string(相对相应的字段) array( 支持嵌套字段如['a','b'],实际为sourceData.a.b) functoin(接收一个参数为当前数据源,需返回一个字符串类型的值)
|
||||||
|
fieldDefault:默认值 value没有数据的时候现实的值
|
||||||
|
remark:备注
|
||||||
|
isCopy::是否可复制
|
||||||
|
field:字段
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
插槽模式 slot
|
||||||
|
header 整个组件的头部
|
||||||
|
field 每个字段都可以使用插槽自定义 插槽名称为相对应的字段
|
||||||
|
index card_bottom 每张卡片都有相对应的底部 index为索引
|
||||||
|
footer 整个组件的底部
|
||||||
|
index_car 整张卡片的插槽名称 index为卡片索引
|
||||||
|
#4_car="data" 将返回 当前卡片对象对应的值
|
||||||
|
|
||||||
@@ -9,9 +9,9 @@
|
|||||||
<slot name="title_bottom"></slot>
|
<slot name="title_bottom"></slot>
|
||||||
</div>
|
</div>
|
||||||
<div class="generalDetails_card_container">
|
<div class="generalDetails_card_container">
|
||||||
<div v-for="(item, index) in dataPage" :key="index">
|
<div name v-for="(item, index) in dataPage" :key="index">
|
||||||
<el-card class="generalDetails_card">
|
<el-card class="generalDetails_card">
|
||||||
<div @click="isShow(item)" class="generalDetails_card_header" slot="header">
|
<div @click="isShow(item)" class="generalDetails_card_header" slot="header">
|
||||||
<div>
|
<div>
|
||||||
<span class="generalDetails-card-header-icon">
|
<span class="generalDetails-card-header-icon">
|
||||||
<svg-icon style="color: #118dde" :icon-class="item.iconClass" />
|
<svg-icon style="color: #118dde" :icon-class="item.iconClass" />
|
||||||
@@ -19,30 +19,37 @@
|
|||||||
<span class="generalDetails-card-header-text">{{ item.title }}</span>
|
<span class="generalDetails-card-header-text">{{ item.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="fold">
|
<div class="fold">
|
||||||
<i :style="{ transform: `rotate(${item.isFold ? 0 : 180}deg)` }"
|
<i
|
||||||
class="el-icon-arrow-down generalDetails_card_arrow_down"></i>
|
:style="{
|
||||||
|
transform: `rotate(${item.isFold ? 0 : 180}deg)`
|
||||||
|
}"
|
||||||
|
class="el-icon-arrow-down generalDetails_card_arrow_down"
|
||||||
|
></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div :style="{ maxHeight: item.isFold ? '100vh' : '0px' }" class="my-cell">
|
<slot :name="`${index}_car`" :item="item">
|
||||||
<div v-for="(i, x) in item.listData " :key="x" class="cell-item">
|
<div :style="{ maxHeight: item.isFold ? '100vh' : '0px' }" class="my-cell">
|
||||||
<span :title="i.remark" class="color-999 test-tst">
|
<div v-for="(i, x) in item.listData" :key="x" class="cell-item">
|
||||||
{{ i.label }}
|
<span :title="i.remark" class="color-999 test-tst">
|
||||||
<i v-if="i.remark" class="header-icon el-icon-info"></i>
|
{{ i.label }}
|
||||||
<i @click="isCopy(i.value, $event)" v-if="i.isCopy" class="el-icon-document-copy"></i>
|
<i v-if="i.remark" class="header-icon el-icon-info"></i>
|
||||||
</span>
|
<i @click="isCopy(i.value, $event)" v-if="i.isCopy" class="el-icon-document-copy"></i>
|
||||||
<br />
|
</span>
|
||||||
<slot class="inner-data" :name="`${i.field}`">
|
<br />
|
||||||
<span class="inner-data">{{ i.value }}</span>
|
<slot class="inner-data" :name="`${i.field}`">
|
||||||
</slot>
|
<span class="inner-data">{{ i.value }}</span>
|
||||||
|
</slot>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</slot>
|
||||||
</el-card>
|
</el-card>
|
||||||
<div>
|
<div >
|
||||||
<slot :name="`${index}card_bottom`"></slot>
|
<slot :name="`${index}card_bottom`"></slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="generalDetails_footer">
|
<div class="generalDetails_footer">
|
||||||
|
|
||||||
<slot name="footer">
|
<slot name="footer">
|
||||||
<el-button @click="close" type="primary" :size="$store.getters.size">关闭</el-button>
|
<el-button @click="close" type="primary" :size="$store.getters.size">关闭</el-button>
|
||||||
</slot>
|
</slot>
|
||||||
@@ -78,8 +85,10 @@ export default {
|
|||||||
dataPage: []
|
dataPage: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
(this.sourceData !== null) && (this.mappingData.length !== 0) && (this.init())
|
console.log('created')
|
||||||
|
this.sourceData !== null && this.mappingData.length !== 0 && this.init()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isShow(item) {
|
isShow(item) {
|
||||||
@@ -100,14 +109,32 @@ export default {
|
|||||||
listData: item.carItems.map((carItem, index) => {
|
listData: item.carItems.map((carItem, index) => {
|
||||||
return {
|
return {
|
||||||
label: carItem.label,
|
label: carItem.label,
|
||||||
value: (typeof carItem.value =='function')&&(carItem.value(this.sourceData)) || this.sourceData[carItem.value] || carItem.fieldDefault || '暂无数据',
|
value:
|
||||||
|
(typeof carItem.value == 'function' && carItem.value(this.sourceData)) ||
|
||||||
|
(Array.isArray(carItem.value) &&
|
||||||
|
carItem.value.reduce((prev, current, index, _arr) =>
|
||||||
|
index == 1
|
||||||
|
? this.sourceData[prev]
|
||||||
|
? this.sourceData[prev][current] !== null && this.sourceData[prev][current] !== undefined
|
||||||
|
? this.sourceData[prev][current]
|
||||||
|
: '暂无数据'
|
||||||
|
: '暂无数据'
|
||||||
|
: typeof prev == 'object'
|
||||||
|
? prev[current]
|
||||||
|
: prev
|
||||||
|
)) ||
|
||||||
|
(this.sourceData[carItem.value] !== null && this.sourceData[carItem.value] !== undefined
|
||||||
|
? String(this.sourceData[carItem.value])
|
||||||
|
: false) ||
|
||||||
|
carItem.fieldDefault ||
|
||||||
|
'暂无数据',
|
||||||
field: carItem.value,
|
field: carItem.value,
|
||||||
remark: carItem.remark,
|
remark: carItem.remark,
|
||||||
isCopy: carItem.isCopy || false
|
isCopy: carItem.isCopy || false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
console.log(this.dataPage)
|
console.log(this.dataPage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -115,9 +142,10 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.title_bottom{
|
.title_bottom {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fold {
|
.fold {
|
||||||
/* position: absolute;
|
/* position: absolute;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
@@ -130,7 +158,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.generalDetails_card_arrow_down {
|
.generalDetails_card_arrow_down {
|
||||||
transition: all .9s;
|
transition: all 0.9s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.generalDetails_card_header {
|
.generalDetails_card_header {
|
||||||
@@ -156,7 +184,7 @@ title {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: all .9s;
|
transition: all 0.9s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-999 {
|
.color-999 {
|
||||||
@@ -196,6 +224,7 @@ title {
|
|||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-top: solid 1px #e5e5e5;
|
border-top: solid 1px #e5e5e5;
|
||||||
|
z-index: 999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.generalDetails_header {
|
.generalDetails_header {
|
||||||
@@ -223,4 +252,4 @@ title {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="padding: 20px;">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form
|
<el-form
|
||||||
ref="form"
|
ref="form"
|
||||||
|
|||||||
@@ -129,7 +129,7 @@
|
|||||||
:size="$store.getters.size"
|
:size="$store.getters.size"
|
||||||
type="text"
|
type="text"
|
||||||
@click="handleDetail(scope.row.id)"
|
@click="handleDetail(scope.row.id)"
|
||||||
><svg-icon icon-class="iconxiangqing1" /> 操作</el-button
|
><svg-icon icon-class="iconxiangqing1" /> 详情</el-button
|
||||||
>
|
>
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
<el-button type="text">
|
<el-button type="text">
|
||||||
@@ -171,14 +171,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</ListLayout>
|
</ListLayout>
|
||||||
|
|
||||||
<!-- 修改密码弹窗 -->
|
<!-- 修改密码抽屉 -->
|
||||||
<el-dialog
|
<el-drawer
|
||||||
v-el-drag-dialog
|
|
||||||
destroy-on-close
|
|
||||||
title="修改密码"
|
title="修改密码"
|
||||||
|
class="table-detail-drawer"
|
||||||
:visible.sync="updatePwdDialog"
|
:visible.sync="updatePwdDialog"
|
||||||
width="55%"
|
direction="ltr"
|
||||||
|
size="55%"
|
||||||
>
|
>
|
||||||
|
<div style="padding: 20px;">
|
||||||
<el-form
|
<el-form
|
||||||
ref="form"
|
ref="form"
|
||||||
:model="updatePwd"
|
:model="updatePwd"
|
||||||
@@ -193,18 +194,20 @@
|
|||||||
<el-button @click="updatePwdDialog = false;">取消</el-button>
|
<el-button @click="updatePwdDialog = false;">取消</el-button>
|
||||||
<el-button type="primary" @click="updatePwdSubmit">提交</el-button>
|
<el-button type="primary" @click="updatePwdSubmit">提交</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</div>>
|
||||||
|
</el-drawer>
|
||||||
|
|
||||||
<!-- 添加弹窗 -->
|
<!-- 添加抽屉 -->
|
||||||
<el-dialog
|
<el-drawer
|
||||||
v-el-drag-dialog
|
|
||||||
destroy-on-close
|
|
||||||
title="添加"
|
title="添加"
|
||||||
|
class="table-detail-drawer"
|
||||||
:visible.sync="addDialog"
|
:visible.sync="addDialog"
|
||||||
width="55%"
|
direction="ltr"
|
||||||
|
size="55%"
|
||||||
>
|
>
|
||||||
<SysCustomerInfoAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
<SysCustomerInfoAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||||
</el-dialog>
|
</el-drawer>
|
||||||
|
|
||||||
|
|
||||||
<!-- 导出弹窗 -->
|
<!-- 导出弹窗 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@@ -232,20 +235,22 @@
|
|||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 修改弹窗 -->
|
<!-- 修改抽屉 -->
|
||||||
<el-dialog
|
<el-drawer
|
||||||
destroy-on-close
|
|
||||||
title="修改"
|
title="修改"
|
||||||
|
class="table-detail-drawer"
|
||||||
:visible.sync="updateDialog"
|
:visible.sync="updateDialog"
|
||||||
width="55%"
|
direction="ltr"
|
||||||
|
size="55%"
|
||||||
>
|
>
|
||||||
<SysCustomerInfoUpdate
|
<SysCustomerInfoUpdate
|
||||||
v-if="updateDialog"
|
v-if="updateDialog"
|
||||||
:sys-customer-info="sysCustomerInfo"
|
:sys-customer-info="sysCustomerInfo"
|
||||||
@getByPage="getByPage"
|
@getByPage="getByPage"
|
||||||
@closeDialog="closeDialog"
|
@closeDialog="closeDialog"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-drawer>
|
||||||
|
|
||||||
|
|
||||||
<!-- 详情抽屉 -->
|
<!-- 详情抽屉 -->
|
||||||
<el-drawer
|
<el-drawer
|
||||||
@@ -253,7 +258,7 @@
|
|||||||
class="table-detail-drawer"
|
class="table-detail-drawer"
|
||||||
:visible.sync="showTableDrawer"
|
:visible.sync="showTableDrawer"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="80%"
|
size="55%"
|
||||||
>
|
>
|
||||||
<SysCustomerInfoInfo
|
<SysCustomerInfoInfo
|
||||||
v-if="showTableDrawer"
|
v-if="showTableDrawer"
|
||||||
@@ -623,8 +628,8 @@ export default {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.table-div >>> .header-container {
|
.table-div >>> .header-container {
|
||||||
position: sticky;
|
/* position: sticky;
|
||||||
top: 0rem;
|
top: 0rem; */
|
||||||
min-height: 152px;
|
min-height: 152px;
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="padding: 20px;">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form
|
<el-form
|
||||||
ref="form"
|
ref="form"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
label-width="100px"
|
label-width="100px"
|
||||||
:size="$store.getters.size"
|
:size="$store.getters.size"
|
||||||
>
|
>
|
||||||
<el-card class="box-card">
|
<el-card class="box-card" style="margin: 0 20px;">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>车辆基础信息</span>
|
<span>车辆基础信息</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
<el-col />
|
<el-col />
|
||||||
</el-row> -->
|
</el-row> -->
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-col :span="24" style="text-align: right">
|
<el-col :span="24" style="text-align: right;padding: 20px;">
|
||||||
<el-button @click="close">取消</el-button>
|
<el-button @click="close">取消</el-button>
|
||||||
<el-button type="primary" @click="submit">提交</el-button>
|
<el-button type="primary" @click="submit">提交</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@@ -190,25 +190,27 @@
|
|||||||
v-el-drag-dialog
|
v-el-drag-dialog
|
||||||
title="添加"
|
title="添加"
|
||||||
:visible.sync="addDialog"
|
:visible.sync="addDialog"
|
||||||
size="60%"
|
size="55%"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
destroy-on-close
|
destroy-on-close
|
||||||
>
|
>
|
||||||
<OilVehicleOwnerAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
<OilVehicleOwnerAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
|
||||||
<!-- 导出弹窗 -->
|
<!-- 导出抽屉 -->
|
||||||
<el-dialog
|
<el-drawer
|
||||||
v-el-drag-dialog
|
v-el-drag-dialog
|
||||||
title="导出"
|
title="导出"
|
||||||
:visible.sync="outPutDialog"
|
:visible.sync="outPutDialog"
|
||||||
width="55%"
|
size="55%"
|
||||||
|
direction="ltr"
|
||||||
|
destroy-on-close
|
||||||
>
|
>
|
||||||
<OilVehicleOwnerOutput
|
<OilVehicleOwnerOutput
|
||||||
@getByPage="getByPage"
|
@getByPage="getByPage"
|
||||||
@closeDialog="closeDialog"
|
@closeDialog="closeDialog"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-drawer>
|
||||||
|
|
||||||
<!-- 导入弹窗 -->
|
<!-- 导入弹窗 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@@ -223,12 +225,12 @@
|
|||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 修改弹窗 -->
|
<!-- 修改抽屉 -->
|
||||||
<el-drawer
|
<el-drawer
|
||||||
v-el-drag-dialog
|
v-el-drag-dialog
|
||||||
title="修改"
|
title="修改"
|
||||||
:visible.sync="updateDialog"
|
:visible.sync="updateDialog"
|
||||||
size="60%"
|
size="55%"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
destroy-on-close
|
destroy-on-close
|
||||||
>
|
>
|
||||||
@@ -246,7 +248,7 @@
|
|||||||
class="table-detail-drawer"
|
class="table-detail-drawer"
|
||||||
:visible.sync="showTableDrawer"
|
:visible.sync="showTableDrawer"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="50%"
|
size="55%"
|
||||||
:withHeader="false"
|
:withHeader="false"
|
||||||
>
|
>
|
||||||
<general-details
|
<general-details
|
||||||
@@ -669,8 +671,8 @@ export default {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.table-div >>> .header-container {
|
.table-div >>> .header-container {
|
||||||
position: sticky;
|
/* position: sticky;
|
||||||
top: 0rem;
|
top: 0rem; */
|
||||||
min-height: 152px;
|
min-height: 152px;
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="padding: 20px;">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form :model="data" label-width="100px" :size="$store.getters.size">
|
<el-form :model="data" label-width="100px" :size="$store.getters.size">
|
||||||
<el-row :gutter="gridNum.row.gutter">
|
<el-row :gutter="gridNum.row.gutter">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
label-width="100px"
|
label-width="100px"
|
||||||
:size="$store.getters.size"
|
:size="$store.getters.size"
|
||||||
>
|
>
|
||||||
<el-card class="box-card">
|
<el-card class="box-card" style="margin: 0 20px;">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>车辆基础信息</span>
|
<span>车辆基础信息</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
<el-col />
|
<el-col />
|
||||||
</el-row> -->
|
</el-row> -->
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-col :span="24" style="text-align: right">
|
<el-col :span="24" style="text-align: right;padding: 20px;;">
|
||||||
<el-button @click="close">取消</el-button>
|
<el-button @click="close">取消</el-button>
|
||||||
<el-button type="primary" @click="submit">提交</el-button>
|
<el-button type="primary" @click="submit">提交</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="padding: 20px;">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form :model="oilCompanyMatch" label-width="140px" :rules="ruleForm" ref="ruleForm" :size="$store.getters.size">
|
<el-form :model="oilCompanyMatch" label-width="140px" :rules="ruleForm" ref="ruleForm" :size="$store.getters.size">
|
||||||
<el-row :gutter="gridNum.row.gutter">
|
<el-row :gutter="gridNum.row.gutter">
|
||||||
|
|||||||
@@ -178,22 +178,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</ListLayout>
|
</ListLayout>
|
||||||
|
|
||||||
<!-- 添加弹窗 -->
|
<!-- 添加抽屉 -->
|
||||||
<el-dialog
|
<el-drawer
|
||||||
v-el-drag-dialog
|
|
||||||
title="添加"
|
title="添加"
|
||||||
|
class="table-detail-drawer"
|
||||||
:visible.sync="addDialog"
|
:visible.sync="addDialog"
|
||||||
width="55%"
|
direction="ltr"
|
||||||
|
size="60%"
|
||||||
>
|
>
|
||||||
<OilCompanyMatchAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
<OilCompanyMatchAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||||
</el-dialog>
|
</el-drawer>
|
||||||
|
|
||||||
|
|
||||||
<!-- 导出弹窗 -->
|
<!-- 导出弹窗 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-el-drag-dialog
|
v-el-drag-dialog
|
||||||
title="导出"
|
title="导出"
|
||||||
:visible.sync="outPutDialog"
|
:visible.sync="outPutDialog"
|
||||||
width="55%"
|
width="60%"
|
||||||
>
|
>
|
||||||
<OilCompanyMatchOutput
|
<OilCompanyMatchOutput
|
||||||
@getByPage="getByPage"
|
@getByPage="getByPage"
|
||||||
@@ -206,7 +208,7 @@
|
|||||||
v-el-drag-dialog
|
v-el-drag-dialog
|
||||||
title="导入"
|
title="导入"
|
||||||
:visible.sync="importDialog"
|
:visible.sync="importDialog"
|
||||||
width="55%"
|
width="60%"
|
||||||
>
|
>
|
||||||
<OilCompanyMatchImport
|
<OilCompanyMatchImport
|
||||||
@getByPage="getByPage"
|
@getByPage="getByPage"
|
||||||
@@ -214,27 +216,29 @@
|
|||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 修改弹窗 -->
|
<!-- 修改抽屉 -->
|
||||||
<el-dialog
|
<el-drawer
|
||||||
v-el-drag-dialog
|
|
||||||
title="修改"
|
title="修改"
|
||||||
|
class="table-detail-drawer"
|
||||||
:visible.sync="updateDialog"
|
:visible.sync="updateDialog"
|
||||||
width="55%"
|
direction="ltr"
|
||||||
|
size="60%"
|
||||||
>
|
>
|
||||||
<OilCompanyMatchUpdate
|
<OilCompanyMatchUpdate
|
||||||
v-if="updateDialog"
|
v-if="updateDialog"
|
||||||
:oil-company-match="oilCompanyMatch"
|
:oil-company-match="oilCompanyMatch"
|
||||||
@getByPage="getByPage"
|
@getByPage="getByPage"
|
||||||
@closeDialog="closeDialog"
|
@closeDialog="closeDialog"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-drawer>
|
||||||
|
|
||||||
|
|
||||||
<!-- 详情抽屉 -->
|
<!-- 详情抽屉 -->
|
||||||
<el-drawer
|
<el-drawer
|
||||||
title="详情"
|
title="详情"
|
||||||
class="table-detail-drawer"
|
class="table-detail-drawer"
|
||||||
:visible.sync="showTableDrawer"
|
:visible.sync="showTableDrawer"
|
||||||
size="55%"
|
size="60%"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
:withHeader="false"
|
:withHeader="false"
|
||||||
>
|
>
|
||||||
@@ -750,8 +754,8 @@ export default {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.table-div >>> .header-container {
|
.table-div >>> .header-container {
|
||||||
position: sticky;
|
/* position: sticky;
|
||||||
top: 0rem;
|
top: 0rem; */
|
||||||
min-height: 152px;
|
min-height: 152px;
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="padding: 20px;">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form :model="oilCompanyMatch" :rules="ruleForm" ref="ruleForm" label-width="140px" :size="$store.getters.size">
|
<el-form :model="oilCompanyMatch" :rules="ruleForm" ref="ruleForm" label-width="140px" :size="$store.getters.size">
|
||||||
<el-row :gutter="gridNum.row.gutter">
|
<el-row :gutter="gridNum.row.gutter">
|
||||||
|
|||||||
@@ -588,8 +588,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.table-div>>>.header-container {
|
.table-div>>>.header-container {
|
||||||
position: sticky;
|
/* position: sticky;
|
||||||
top: 0rem;
|
top: 0rem; */
|
||||||
min-height: 152px;
|
min-height: 152px;
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|||||||
@@ -772,8 +772,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.table-div>>>.header-container {
|
.table-div>>>.header-container {
|
||||||
position: sticky;
|
/* position: sticky;
|
||||||
top: 0rem;
|
top: 0rem; */
|
||||||
min-height: 152px;
|
min-height: 152px;
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|||||||
@@ -116,8 +116,8 @@
|
|||||||
|
|
||||||
<div style="float: right;">
|
<div style="float: right;">
|
||||||
<el-button @click="$emit('close')">取消</el-button>
|
<el-button @click="$emit('close')">取消</el-button>
|
||||||
<el-button @click="update">修改</el-button>
|
<el-button @click="update">提交</el-button>
|
||||||
<el-button type="primary" @click="updateAndAudit">修改并审核</el-button>
|
<el-button type="primary" @click="updateAndAudit">提交并审核</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
<el-col :span="9">
|
<el-col :span="9">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<gl-date-time-picker v-model="page.params.createTime" style="width: 131%" msg="创建时间"
|
<gl-date-time-picker v-model="page.params.createTime" style="width: 134%" msg="创建时间"
|
||||||
@keyup.enter.native="getByPage" />
|
@keyup.enter.native="getByPage" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
<el-col :span="1">
|
<el-col :span="1">
|
||||||
<el-button type="primary" :size="$store.getters.size" icon="el-icon-plus"
|
<el-button type="primary" :size="$store.getters.size" icon="el-icon-plus"
|
||||||
@click="addRecordDialog = true">
|
@click="addRecordDialog = true">
|
||||||
新增</el-button>
|
添加</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="23">
|
<el-col :span="23">
|
||||||
<el-button type="primary" :size="$store.getters.size" icon="el-icon-search" @click="getByPage">查询
|
<el-button type="primary" :size="$store.getters.size" icon="el-icon-search" @click="getByPage">查询
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<div style="float: right;">
|
<div style="float: right;">
|
||||||
<el-button @click="$emit('close')">取消</el-button>
|
<el-button @click="$emit('close')">取消</el-button>
|
||||||
<el-button type="primary" @click="add()">新增</el-button>
|
<el-button type="primary" @click="add()">提交</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -102,6 +102,7 @@
|
|||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="page.params.createTime"
|
v-model="page.params.createTime"
|
||||||
type="datetimerange"
|
type="datetimerange"
|
||||||
|
style="width: 105%"
|
||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
range-separator="~"
|
range-separator="~"
|
||||||
start-placeholder="开始时间"
|
start-placeholder="开始时间"
|
||||||
@@ -120,14 +121,15 @@
|
|||||||
:size="$store.getters.size"
|
:size="$store.getters.size"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
@click="search"
|
@click="search"
|
||||||
> 查询
|
>查询
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
type="info"
|
||||||
:size="$store.getters.size"
|
:size="$store.getters.size"
|
||||||
icon="el-icon-refresh"
|
icon="el-icon-refresh"
|
||||||
@click="page.params = {}"
|
@click="page.params = {}"
|
||||||
>
|
>
|
||||||
重置
|
重置
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<!-- <el-form-item>
|
<!-- <el-form-item>
|
||||||
<el-input v-model="page.params.enableMark" placeholder="启用标识" clearable @keyup.enter.native="getByPage" />
|
<el-input v-model="page.params.enableMark" placeholder="启用标识" clearable @keyup.enter.native="getByPage" />
|
||||||
<el-select v-model="page.params.enableMark" filterable clearable placeholder="油品启用标识">
|
<el-select v-model="page.params.enableMark" filterable clearable placeholder="油品启用标识">
|
||||||
<el-option value="1" label="油品启用" />
|
<el-option value="1" label="油品启用" />
|
||||||
<el-option value="0" label="油品禁用" />
|
<el-option value="0" label="油品禁用" />
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
<el-button class="group-item" :size="$store.getters.size" type="success" @click="piliangAdd"><svg-icon
|
<el-button class="group-item" :size="$store.getters.size" type="success" @click="piliangAdd"><svg-icon
|
||||||
icon-class="iconiconfonticon02" /> 快速调价任务</el-button>
|
icon-class="iconiconfonticon02" /> 快速调价任务</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="8">
|
||||||
<el-button type="primary" :size="$store.getters.size" icon="el-icon-search" @click="search">查询</el-button>
|
<el-button type="primary" :size="$store.getters.size" icon="el-icon-search" @click="search">查询</el-button>
|
||||||
<el-button :size="$store.getters.size" icon="el-icon-refresh" type="info" @click="
|
<el-button :size="$store.getters.size" icon="el-icon-refresh" type="info" @click="
|
||||||
page.params = {}
|
page.params = {}
|
||||||
@@ -158,11 +158,12 @@
|
|||||||
<!-- 分页组件结束 -->
|
<!-- 分页组件结束 -->
|
||||||
</div>
|
</div>
|
||||||
</ListLayout>
|
</ListLayout>
|
||||||
<!-- 历史记录弹窗 -->
|
<!-- 历史记录抽屉 -->
|
||||||
<el-dialog v-el-drag-dialog title="变更历史" :visible.sync="showHistory" width="55%">
|
<el-drawer :withHeader="false" title="变更历史" :visible.sync="showHistory" direction="ltr" size="55%">
|
||||||
<el-table :data="historyData" style="width: 100%">
|
<div style="padding: 20px;">
|
||||||
|
<el-table :data="historyData" style="width: 100%" border>
|
||||||
<el-table-column prop="createTime" label="创建时间" />
|
<el-table-column prop="createTime" label="创建时间" />
|
||||||
|
|
||||||
<el-table-column prop="name" label="基础个人价">
|
<el-table-column prop="name" label="基础个人价">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>
|
<div>
|
||||||
@@ -196,7 +197,9 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog>
|
</div>
|
||||||
|
</el-drawer>
|
||||||
|
|
||||||
<!-- 导出弹窗 -->
|
<!-- 导出弹窗 -->
|
||||||
<el-dialog v-el-drag-dialog title="导出" :visible.sync="outPutDialog" width="20%">
|
<el-dialog v-el-drag-dialog title="导出" :visible.sync="outPutDialog" width="20%">
|
||||||
<OilSiteOilsPriceOutput :page="page" :dataPage="dataPage" v-if="outPutDialog"
|
<OilSiteOilsPriceOutput :page="page" :dataPage="dataPage" v-if="outPutDialog"
|
||||||
@@ -292,7 +295,7 @@ export default {
|
|||||||
return ('禁用');
|
return ('禁用');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '基础个人价',
|
label: '基础个人价',
|
||||||
value: 'personalPriceBase'
|
value: 'personalPriceBase'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="padding: 20px;">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form ref="form" :rules="rules" :model="sysCustomerInfo" label-width="100px" :size="$store.getters.size">
|
<el-form ref="form" :rules="rules" :model="sysCustomerInfo" label-width="100px" :size="$store.getters.size">
|
||||||
<el-row :gutter="gridNum.row.gutter">
|
<el-row :gutter="gridNum.row.gutter">
|
||||||
|
|||||||
@@ -212,16 +212,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</ListLayout>
|
</ListLayout>
|
||||||
|
|
||||||
<!-- 修改密码弹窗 -->
|
<!-- 修改密码抽屉 -->
|
||||||
<el-dialog
|
<el-drawer
|
||||||
v-el-drag-dialog
|
|
||||||
destroy-on-close
|
|
||||||
title="修改密码"
|
title="修改密码"
|
||||||
|
class="table-detail-drawer"
|
||||||
:visible.sync="updatePwdDialog"
|
:visible.sync="updatePwdDialog"
|
||||||
@closeDialog="closeDialog"
|
direction="ltr"
|
||||||
width="55%"
|
size="55%"
|
||||||
:before-close="handleClose"
|
|
||||||
>
|
>
|
||||||
|
<div style="padding: 20px;">
|
||||||
<el-form
|
<el-form
|
||||||
ref="form"
|
ref="form"
|
||||||
:model="updatePwd"
|
:model="updatePwd"
|
||||||
@@ -236,18 +235,20 @@
|
|||||||
<el-button @click="handleClose">取消</el-button>
|
<el-button @click="handleClose">取消</el-button>
|
||||||
<el-button type="primary" @click="updatePwdSubmit">提交</el-button>
|
<el-button type="primary" @click="updatePwdSubmit">提交</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</div>
|
||||||
|
|
||||||
<!-- 添加弹窗 -->
|
</el-drawer>
|
||||||
<el-dialog
|
|
||||||
v-el-drag-dialog
|
<!-- 添加抽屉 -->
|
||||||
destroy-on-close
|
<el-drawer
|
||||||
title="添加"
|
title="添加"
|
||||||
|
class="table-detail-drawer"
|
||||||
:visible.sync="addDialog"
|
:visible.sync="addDialog"
|
||||||
width="55%"
|
direction="ltr"
|
||||||
|
size="55%"
|
||||||
>
|
>
|
||||||
<SysCustomerInfoAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
<SysCustomerInfoAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||||
</el-dialog>
|
</el-drawer>
|
||||||
|
|
||||||
<!-- 登录授权弹窗 -->
|
<!-- 登录授权弹窗 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@@ -290,20 +291,22 @@
|
|||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 修改弹窗 -->
|
<!-- 修改抽屉 -->
|
||||||
<el-dialog
|
<el-drawer
|
||||||
destroy-on-close
|
|
||||||
title="修改"
|
title="修改"
|
||||||
|
class="table-detail-drawer"
|
||||||
:visible.sync="updateDialog"
|
:visible.sync="updateDialog"
|
||||||
width="55%"
|
direction="ltr"
|
||||||
|
size="55%"
|
||||||
>
|
>
|
||||||
<SysCustomerInfoUpdate
|
<SysCustomerInfoUpdate
|
||||||
v-if="updateDialog"
|
v-if="updateDialog"
|
||||||
:sys-customer-info="sysCustomerInfo"
|
:sys-customer-info="sysCustomerInfo"
|
||||||
@getByPage="getByPage"
|
@getByPage="getByPage"
|
||||||
@closeDialog="closeDialog"
|
@closeDialog="closeDialog"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-drawer>
|
||||||
|
|
||||||
|
|
||||||
<!-- 详情抽屉 -->
|
<!-- 详情抽屉 -->
|
||||||
<el-drawer
|
<el-drawer
|
||||||
@@ -311,7 +314,7 @@
|
|||||||
class="table-detail-drawer"
|
class="table-detail-drawer"
|
||||||
:visible.sync="showTableDrawer"
|
:visible.sync="showTableDrawer"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="50%"
|
size="55%"
|
||||||
>
|
>
|
||||||
<SysCustomerInfoInfo
|
<SysCustomerInfoInfo
|
||||||
v-if="showTableDrawer"
|
v-if="showTableDrawer"
|
||||||
@@ -703,8 +706,8 @@ export default {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.table-div >>> .header-container {
|
.table-div >>> .header-container {
|
||||||
position: sticky;
|
/* position: sticky;
|
||||||
top: 0rem;
|
top: 0rem; */
|
||||||
min-height: 152px;
|
min-height: 152px;
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="padding: 20px;">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form ref="form" :rules="rules" :model="sysCustomerInfo" label-width="100px" :size="$store.getters.size">
|
<el-form ref="form" :rules="rules" :model="sysCustomerInfo" label-width="100px" :size="$store.getters.size">
|
||||||
<el-row :gutter="gridNum.row.gutter">
|
<el-row :gutter="gridNum.row.gutter">
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ module.exports = {
|
|||||||
[process.env.VUE_APP_BASE_API]: {
|
[process.env.VUE_APP_BASE_API]: {
|
||||||
// target: "http://uat.xingoil.com/adminapi",
|
// target: "http://uat.xingoil.com/adminapi",
|
||||||
// target: 'https://www.xingoil.com/adminapi',
|
// target: 'https://www.xingoil.com/adminapi',
|
||||||
target: `http://192.168.0.22:38080`,
|
target: `http://192.168.0.27:38080`,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||||
|
|||||||
Reference in New Issue
Block a user