Compare commits
25 Commits
1a61692803
...
lifei
| Author | SHA1 | Date | |
|---|---|---|---|
| bb65bd1e39 | |||
| ac7df467f4 | |||
| 378d660823 | |||
| bcdbc13b24 | |||
| d105f6e767 | |||
| b083229d5e | |||
| 27459621fa | |||
| cf8ebd30fe | |||
| 4e03e358d6 | |||
| eae2515834 | |||
| 6c11e4a4d7 | |||
| e7fca62c03 | |||
|
|
8e02a1240e | ||
|
|
b3991ebba0 | ||
| 1c9d822b2a | |||
|
|
0752af5887 | ||
| f4d26f411c | |||
| d7cd8533c1 | |||
| 08890f25ac | |||
| c2be494202 | |||
|
|
1ac4ace5c7 | ||
| 380c07fd79 | |||
| 37932ba640 | |||
|
|
641559b0b1 | ||
|
|
c1221ce4c9 |
@@ -12,7 +12,7 @@ VUE_APP_UPLOAD_PRIVATE_URL = '/api/xkhl-dict/imageHandler/uploadProtectedImg'
|
||||
VUE_APP_DOMAIN = '192.168.0.199:38080'
|
||||
|
||||
# 开发环境,不会进行加密,会打印出数据
|
||||
VUE_APP_ENV = 'development'
|
||||
VUE_APP_ENV = 'production'
|
||||
#production
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import request from '@/utils/request'
|
||||
var service_name = 'xkhl-site'
|
||||
var group_name = 'xoilDispatchSitePriceAdjustTask'
|
||||
var group_name = 'saasDispatchSitePriceAdjustTask'
|
||||
export default {
|
||||
getByPage(page) { // 站点分页查询
|
||||
return request({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import request from '@/utils/request'
|
||||
var service_name = 'xkhl-finance'
|
||||
var group_name = 'OilCustomerInvoicRecord'
|
||||
var group_name = 'saasCustomerInvoicRecord'
|
||||
|
||||
export default {
|
||||
fuyous(){
|
||||
@@ -18,14 +18,14 @@ export default {
|
||||
},
|
||||
getInfo(id) { // 根据id查询
|
||||
return request({
|
||||
url: `/${service_name}/${group_name}/getInfo/${id}`,
|
||||
url: `/${service_name}/saasCustomerInvoicRecord/getInfo/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
},
|
||||
|
||||
save(oilCustomerInvoicRecord) { // 保存
|
||||
return request({
|
||||
url: `/${service_name}/${group_name}/save`,
|
||||
url: `/${service_name}/saasCustomerInvoicRecord/save`,
|
||||
method: 'post',
|
||||
data: oilCustomerInvoicRecord
|
||||
})
|
||||
|
||||
@@ -4,14 +4,14 @@ var group_name = 'oilOrderInfo'
|
||||
export default {
|
||||
getStatisticalReportByPage(data) {
|
||||
return request({
|
||||
url: `/${service_name}/${group_name}/getStatisticalReportByPage`,
|
||||
url: `/xkhl-site/saasBOrderInfo/getStatisticalReportByPage`,
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
},
|
||||
getAccountTypeByCompanyId(data) {
|
||||
return request({
|
||||
url: `/${service_name}/${group_name}/getAccountTypeByCompanyId`,
|
||||
url: `/xkhl-site/saasBOrderInfo/getAccountTypeByCompanyId`,
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
|
||||
@@ -30,6 +30,13 @@ export default {
|
||||
data: oilVehicleOwner
|
||||
})
|
||||
},
|
||||
saveDispat(oilVehicleOwner) { // 新保存(调度管理)
|
||||
return request({
|
||||
url: `/xkhl-user/saasCustomerPlatenum/save `,
|
||||
method: 'post',
|
||||
data: oilVehicleOwner
|
||||
})
|
||||
},
|
||||
saveSite(oilVehicleOwner) { // 保存
|
||||
return request({
|
||||
url: `/${service_name}/${group_name}/saveSite`,
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 472 KiB After Width: | Height: | Size: 152 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 7.1 KiB |
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>
|
||||
</div>
|
||||
<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">
|
||||
<div @click="isShow(item)" class="generalDetails_card_header" slot="header">
|
||||
<div @click="isShow(item)" class="generalDetails_card_header" slot="header">
|
||||
<div>
|
||||
<span class="generalDetails-card-header-icon">
|
||||
<svg-icon style="color: #118dde" :icon-class="item.iconClass" />
|
||||
@@ -19,30 +19,37 @@
|
||||
<span class="generalDetails-card-header-text">{{ item.title }}</span>
|
||||
</div>
|
||||
<div class="fold">
|
||||
<i :style="{ transform: `rotate(${item.isFold ? 0 : 180}deg)` }"
|
||||
class="el-icon-arrow-down generalDetails_card_arrow_down"></i>
|
||||
<i
|
||||
:style="{
|
||||
transform: `rotate(${item.isFold ? 0 : 180}deg)`
|
||||
}"
|
||||
class="el-icon-arrow-down generalDetails_card_arrow_down"
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
<div :style="{ maxHeight: item.isFold ? '100vh' : '0px' }" class="my-cell">
|
||||
<div v-for="(i, x) in item.listData " :key="x" class="cell-item">
|
||||
<span :title="i.remark" class="color-999 test-tst">
|
||||
{{ i.label }}
|
||||
<i v-if="i.remark" class="header-icon el-icon-info"></i>
|
||||
<i @click="isCopy(i.value, $event)" v-if="i.isCopy" class="el-icon-document-copy"></i>
|
||||
</span>
|
||||
<br />
|
||||
<slot class="inner-data" :name="`${i.field}`">
|
||||
<span class="inner-data">{{ i.value }}</span>
|
||||
</slot>
|
||||
<slot :name="`${index}_car`" :item="item">
|
||||
<div :style="{ maxHeight: item.isFold ? '100vh' : '0px' }" class="my-cell">
|
||||
<div v-for="(i, x) in item.listData" :key="x" class="cell-item">
|
||||
<span :title="i.remark" class="color-999 test-tst">
|
||||
{{ i.label }}
|
||||
<i v-if="i.remark" class="header-icon el-icon-info"></i>
|
||||
<i @click="isCopy(i.value, $event)" v-if="i.isCopy" class="el-icon-document-copy"></i>
|
||||
</span>
|
||||
<br />
|
||||
<slot class="inner-data" :name="`${i.field}`">
|
||||
<span class="inner-data">{{ i.value }}</span>
|
||||
</slot>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</slot>
|
||||
</el-card>
|
||||
<div>
|
||||
<div >
|
||||
<slot :name="`${index}card_bottom`"></slot>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="generalDetails_footer">
|
||||
|
||||
<slot name="footer">
|
||||
<el-button @click="close" type="primary" :size="$store.getters.size">关闭</el-button>
|
||||
</slot>
|
||||
@@ -78,8 +85,10 @@ export default {
|
||||
dataPage: []
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
(this.sourceData !== null) && (this.mappingData.length !== 0) && (this.init())
|
||||
console.log('created')
|
||||
this.sourceData !== null && this.mappingData.length !== 0 && this.init()
|
||||
},
|
||||
methods: {
|
||||
isShow(item) {
|
||||
@@ -100,14 +109,32 @@ export default {
|
||||
listData: item.carItems.map((carItem, index) => {
|
||||
return {
|
||||
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,
|
||||
remark: carItem.remark,
|
||||
isCopy: carItem.isCopy || false
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
})
|
||||
console.log(this.dataPage)
|
||||
}
|
||||
}
|
||||
@@ -115,9 +142,10 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.title_bottom{
|
||||
.title_bottom {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.fold {
|
||||
/* position: absolute;
|
||||
bottom: 0px;
|
||||
@@ -130,7 +158,7 @@ export default {
|
||||
}
|
||||
|
||||
.generalDetails_card_arrow_down {
|
||||
transition: all .9s;
|
||||
transition: all 0.9s;
|
||||
}
|
||||
|
||||
.generalDetails_card_header {
|
||||
@@ -156,7 +184,7 @@ title {
|
||||
flex-wrap: wrap;
|
||||
max-height: 100vh;
|
||||
overflow: hidden;
|
||||
transition: all .9s;
|
||||
transition: all 0.9s;
|
||||
}
|
||||
|
||||
.color-999 {
|
||||
@@ -196,6 +224,7 @@ title {
|
||||
padding: 15px 20px;
|
||||
box-sizing: border-box;
|
||||
border-top: solid 1px #e5e5e5;
|
||||
z-index: 999999;
|
||||
}
|
||||
|
||||
.generalDetails_header {
|
||||
@@ -223,4 +252,4 @@ title {
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div style="padding: 20px;">
|
||||
<el-row>
|
||||
<el-form
|
||||
ref="form"
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
:size="$store.getters.size"
|
||||
type="text"
|
||||
@click="handleDetail(scope.row.id)"
|
||||
><svg-icon icon-class="iconxiangqing1" /> 操作</el-button
|
||||
><svg-icon icon-class="iconxiangqing1" /> 详情</el-button
|
||||
>
|
||||
<el-dropdown>
|
||||
<el-button type="text">
|
||||
@@ -171,14 +171,15 @@
|
||||
</div>
|
||||
</ListLayout>
|
||||
|
||||
<!-- 修改密码弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
destroy-on-close
|
||||
<!-- 修改密码抽屉 -->
|
||||
<el-drawer
|
||||
title="修改密码"
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="updatePwdDialog"
|
||||
width="55%"
|
||||
direction="ltr"
|
||||
size="55%"
|
||||
>
|
||||
<div style="padding: 20px;">
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="updatePwd"
|
||||
@@ -193,18 +194,20 @@
|
||||
<el-button @click="updatePwdDialog = false;">取消</el-button>
|
||||
<el-button type="primary" @click="updatePwdSubmit">提交</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>>
|
||||
</el-drawer>
|
||||
|
||||
<!-- 添加弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
destroy-on-close
|
||||
<!-- 添加抽屉 -->
|
||||
<el-drawer
|
||||
title="添加"
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="addDialog"
|
||||
width="55%"
|
||||
direction="ltr"
|
||||
size="55%"
|
||||
>
|
||||
<SysCustomerInfoAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||
</el-dialog>
|
||||
<SysCustomerInfoAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||
</el-drawer>
|
||||
|
||||
|
||||
<!-- 导出弹窗 -->
|
||||
<el-dialog
|
||||
@@ -232,20 +235,22 @@
|
||||
/>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 修改弹窗 -->
|
||||
<el-dialog
|
||||
destroy-on-close
|
||||
<!-- 修改抽屉 -->
|
||||
<el-drawer
|
||||
title="修改"
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="updateDialog"
|
||||
width="55%"
|
||||
direction="ltr"
|
||||
size="55%"
|
||||
>
|
||||
<SysCustomerInfoUpdate
|
||||
<SysCustomerInfoUpdate
|
||||
v-if="updateDialog"
|
||||
:sys-customer-info="sysCustomerInfo"
|
||||
@getByPage="getByPage"
|
||||
@closeDialog="closeDialog"
|
||||
/>
|
||||
</el-dialog>
|
||||
</el-drawer>
|
||||
|
||||
|
||||
<!-- 详情抽屉 -->
|
||||
<el-drawer
|
||||
@@ -253,7 +258,7 @@
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="showTableDrawer"
|
||||
direction="ltr"
|
||||
size="80%"
|
||||
size="55%"
|
||||
>
|
||||
<SysCustomerInfoInfo
|
||||
v-if="showTableDrawer"
|
||||
@@ -623,8 +628,8 @@ export default {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.table-div >>> .header-container {
|
||||
position: sticky;
|
||||
top: 0rem;
|
||||
/* position: sticky;
|
||||
top: 0rem; */
|
||||
min-height: 152px;
|
||||
z-index: 4;
|
||||
background: #fff;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div style="padding: 20px;">
|
||||
<el-row>
|
||||
<el-form
|
||||
ref="form"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
label-width="100px"
|
||||
:size="$store.getters.size"
|
||||
>
|
||||
<el-card class="box-card">
|
||||
<el-card class="box-card" style="margin: 0 20px;">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>车辆基础信息</span>
|
||||
</div>
|
||||
@@ -136,7 +136,7 @@
|
||||
<el-col />
|
||||
</el-row> -->
|
||||
</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 type="primary" @click="submit">提交</el-button>
|
||||
</el-col>
|
||||
@@ -197,9 +197,14 @@ export default {
|
||||
}
|
||||
},
|
||||
save() {
|
||||
// 保存
|
||||
// 保存
|
||||
oilVehicleOwnerApi.saveDispatch(this.oilVehicleOwner).then((res) => {
|
||||
this.$message.success(res.msg);
|
||||
this.$emit("closeDialog");
|
||||
this.$emit("getByPage");
|
||||
});
|
||||
// 新保存
|
||||
oilVehicleOwnerApi.saveDispat(this.oilVehicleOwner).then((res) => {
|
||||
this.$emit("closeDialog");
|
||||
this.$emit("getByPage");
|
||||
this.oilVehicleOwner = {};
|
||||
|
||||
@@ -190,25 +190,27 @@
|
||||
v-el-drag-dialog
|
||||
title="添加"
|
||||
:visible.sync="addDialog"
|
||||
size="60%"
|
||||
size="55%"
|
||||
direction="ltr"
|
||||
destroy-on-close
|
||||
>
|
||||
<OilVehicleOwnerAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||
<OilVehicleOwnerAdd v-if="addDialog" @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||
</el-drawer>
|
||||
|
||||
<!-- 导出弹窗 -->
|
||||
<el-dialog
|
||||
<!-- 导出抽屉 -->
|
||||
<el-drawer
|
||||
v-el-drag-dialog
|
||||
title="导出"
|
||||
:visible.sync="outPutDialog"
|
||||
width="55%"
|
||||
size="55%"
|
||||
direction="ltr"
|
||||
destroy-on-close
|
||||
>
|
||||
<OilVehicleOwnerOutput
|
||||
<OilVehicleOwnerOutput
|
||||
@getByPage="getByPage"
|
||||
@closeDialog="closeDialog"
|
||||
/>
|
||||
</el-dialog>
|
||||
</el-drawer>
|
||||
|
||||
<!-- 导入弹窗 -->
|
||||
<el-dialog
|
||||
@@ -223,12 +225,12 @@
|
||||
/>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 修改弹窗 -->
|
||||
<!-- 修改抽屉 -->
|
||||
<el-drawer
|
||||
v-el-drag-dialog
|
||||
title="修改"
|
||||
:visible.sync="updateDialog"
|
||||
size="60%"
|
||||
size="55%"
|
||||
direction="ltr"
|
||||
destroy-on-close
|
||||
>
|
||||
@@ -246,7 +248,7 @@
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="showTableDrawer"
|
||||
direction="ltr"
|
||||
size="50%"
|
||||
size="55%"
|
||||
:withHeader="false"
|
||||
>
|
||||
<general-details
|
||||
@@ -669,8 +671,8 @@ export default {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.table-div >>> .header-container {
|
||||
position: sticky;
|
||||
top: 0rem;
|
||||
/* position: sticky;
|
||||
top: 0rem; */
|
||||
min-height: 152px;
|
||||
z-index: 4;
|
||||
background: #fff;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div style="padding: 20px;">
|
||||
<el-row>
|
||||
<el-form :model="data" label-width="100px" :size="$store.getters.size">
|
||||
<el-row :gutter="gridNum.row.gutter">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
label-width="100px"
|
||||
:size="$store.getters.size"
|
||||
>
|
||||
<el-card class="box-card">
|
||||
<el-card class="box-card" style="margin: 0 20px;">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>车辆基础信息</span>
|
||||
</div>
|
||||
@@ -136,7 +136,7 @@
|
||||
<el-col />
|
||||
</el-row> -->
|
||||
</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 type="primary" @click="submit">提交</el-button>
|
||||
</el-col>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div style="padding: 20px;">
|
||||
<el-row>
|
||||
<el-form :model="oilCompanyMatch" label-width="140px" :rules="ruleForm" ref="ruleForm" :size="$store.getters.size">
|
||||
<el-row :gutter="gridNum.row.gutter">
|
||||
|
||||
@@ -178,23 +178,24 @@
|
||||
</div>
|
||||
</ListLayout>
|
||||
|
||||
<!-- 添加弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
<!-- 添加抽屉 -->
|
||||
<el-drawer
|
||||
title="添加"
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="addDialog"
|
||||
width="55%"
|
||||
v-if="addDialog"
|
||||
direction="ltr"
|
||||
size="60%"
|
||||
>
|
||||
<OilCompanyMatchAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||
</el-dialog>
|
||||
<OilCompanyMatchAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||
</el-drawer>
|
||||
|
||||
|
||||
<!-- 导出弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
title="导出"
|
||||
:visible.sync="outPutDialog"
|
||||
width="55%"
|
||||
width="60%"
|
||||
>
|
||||
<OilCompanyMatchOutput
|
||||
@getByPage="getByPage"
|
||||
@@ -207,7 +208,7 @@
|
||||
v-el-drag-dialog
|
||||
title="导入"
|
||||
:visible.sync="importDialog"
|
||||
width="55%"
|
||||
width="60%"
|
||||
>
|
||||
<OilCompanyMatchImport
|
||||
@getByPage="getByPage"
|
||||
@@ -215,28 +216,29 @@
|
||||
/>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 修改弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
<!-- 修改抽屉 -->
|
||||
<el-drawer
|
||||
title="修改"
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="updateDialog"
|
||||
width="55%"
|
||||
v-if="addDialog"
|
||||
direction="ltr"
|
||||
size="60%"
|
||||
>
|
||||
<OilCompanyMatchUpdate
|
||||
<OilCompanyMatchUpdate
|
||||
v-if="updateDialog"
|
||||
:oil-company-match="oilCompanyMatch"
|
||||
@getByPage="getByPage"
|
||||
@closeDialog="closeDialog"
|
||||
/>
|
||||
</el-dialog>
|
||||
</el-drawer>
|
||||
|
||||
|
||||
<!-- 详情抽屉 -->
|
||||
<el-drawer
|
||||
title="详情"
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="showTableDrawer"
|
||||
size="55%"
|
||||
size="60%"
|
||||
direction="ltr"
|
||||
:withHeader="false"
|
||||
>
|
||||
@@ -752,8 +754,8 @@ export default {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.table-div >>> .header-container {
|
||||
position: sticky;
|
||||
top: 0rem;
|
||||
/* position: sticky;
|
||||
top: 0rem; */
|
||||
min-height: 152px;
|
||||
z-index: 4;
|
||||
background: #fff;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div style="padding: 20px;">
|
||||
<el-row>
|
||||
<el-form :model="oilCompanyMatch" :rules="ruleForm" ref="ruleForm" label-width="140px" :size="$store.getters.size">
|
||||
<el-row :gutter="gridNum.row.gutter">
|
||||
|
||||
@@ -588,8 +588,8 @@ export default {
|
||||
}
|
||||
|
||||
.table-div>>>.header-container {
|
||||
position: sticky;
|
||||
top: 0rem;
|
||||
/* position: sticky;
|
||||
top: 0rem; */
|
||||
min-height: 152px;
|
||||
z-index: 4;
|
||||
background: #fff;
|
||||
|
||||
@@ -772,8 +772,8 @@ export default {
|
||||
}
|
||||
|
||||
.table-div>>>.header-container {
|
||||
position: sticky;
|
||||
top: 0rem;
|
||||
/* position: sticky;
|
||||
top: 0rem; */
|
||||
min-height: 152px;
|
||||
z-index: 4;
|
||||
background: #fff;
|
||||
|
||||
@@ -116,8 +116,8 @@
|
||||
|
||||
<div style="float: right;">
|
||||
<el-button @click="$emit('close')">取消</el-button>
|
||||
<el-button @click="update">修改</el-button>
|
||||
<el-button type="primary" @click="updateAndAudit">修改并审核</el-button>
|
||||
<el-button @click="update">提交</el-button>
|
||||
<el-button type="primary" @click="updateAndAudit">提交并审核</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
|
||||
<el-col :span="9">
|
||||
<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" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -96,7 +96,7 @@
|
||||
<el-col :span="1">
|
||||
<el-button type="primary" :size="$store.getters.size" icon="el-icon-plus"
|
||||
@click="addRecordDialog = true">
|
||||
新增</el-button>
|
||||
添加</el-button>
|
||||
</el-col>
|
||||
<el-col :span="23">
|
||||
<el-button type="primary" :size="$store.getters.size" icon="el-icon-search" @click="getByPage">查询
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
</section>
|
||||
<div style="float: right;">
|
||||
<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>
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
html {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
/* iPhone6的375px尺寸作为16px基准,414px正好18px大小,600 20px */
|
||||
|
||||
/* iPhone6的375px尺寸作为16px基准,414px正好18px大小,600 20px */
|
||||
/* @media screen and (min-width:375px) {
|
||||
html {
|
||||
font-size: calc(100% + 2 * (100vw - 375px) / 39);
|
||||
@@ -43,29 +44,44 @@ html {
|
||||
margin: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-size: calc(100vw - 25.5rem) 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-position: right;
|
||||
background-origin: border-box;
|
||||
background-attachment: fixed;
|
||||
/* background-size: calc(100vw - 25.5rem) 100%; */
|
||||
/* background-repeat: no-repeat; */
|
||||
/* background-position: right; */
|
||||
/* background-origin: border-box; */
|
||||
/* background-attachment: fixed; */
|
||||
animation: start .5s;
|
||||
overflow: auto;
|
||||
background-image: url('../../../assets/img/login/bg@2x.png') !important;
|
||||
/* background-image: url('../../../assets/img/login/bg@2x.png') !important; */
|
||||
background: linear-gradient(to right, #D3DFFB, #FFFFFF, #F0FBFE);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.newlogin_container_tb img {
|
||||
width: 554px;
|
||||
height: 554px;
|
||||
margin-right: 234px;
|
||||
}
|
||||
|
||||
.newlogin_login_container {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 5.7rem 0 0 5.7rem;
|
||||
/* height: 100%;
|
||||
width: 100%; */
|
||||
/* padding: 5.7rem 0 0 5.7rem; */
|
||||
animation: move 1s;
|
||||
/* animation-delay:1s;
|
||||
-webkit-animation-delay:1s; */
|
||||
box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 8px 8px 8px 8px;
|
||||
opacity: 1;
|
||||
padding: 52px 80px 94px 80px;
|
||||
/* width: 460px; */
|
||||
|
||||
}
|
||||
|
||||
.newlogin_login_logo {
|
||||
width: 10.8rem;
|
||||
height: 3.672rem;
|
||||
width: 147px;
|
||||
height: 46px;
|
||||
}
|
||||
|
||||
.newlogin_login_logo img {
|
||||
@@ -74,7 +90,7 @@ html {
|
||||
}
|
||||
|
||||
.newlogin_login_title {
|
||||
color: #1767F9;
|
||||
color: #000000;
|
||||
font-size: 1.45rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
@@ -85,14 +101,14 @@ html {
|
||||
}
|
||||
|
||||
.newlogin_container .el-input {
|
||||
box-shadow: 0px 0px 6px 0px rgba(7, 0, 2, 0.2) !important;
|
||||
border-radius: 36px;
|
||||
/* box-shadow: 0px 0px 6px 0px rgba(7, 0, 2, 0.2) !important; */
|
||||
/* border-radius: 36px; */
|
||||
}
|
||||
|
||||
.newlogin_container .el-input__inner {
|
||||
.newlogin_container .el-input__inner {
|
||||
border: 0px !important;
|
||||
padding-left: 50px !important;
|
||||
border-radius: 36px;
|
||||
/* border-radius: 36px; */
|
||||
height: 2.6rem !important;
|
||||
font-size: .8rem !important;
|
||||
padding-right: 50px !important;
|
||||
@@ -100,7 +116,7 @@ html {
|
||||
}
|
||||
|
||||
.newlogin_container .el-form-item__content .el-input {
|
||||
box-shadow: 0px 0px 6px 0px rgba(7, 0, 2, 0.2) !important;
|
||||
/* box-shadow: 0px 0px 6px 0px rgba(7, 0, 2, 0.2) !important; */
|
||||
|
||||
}
|
||||
|
||||
@@ -112,8 +128,9 @@ html {
|
||||
|
||||
.newlogin_login_from_butten {
|
||||
width: 100%;
|
||||
border-radius: 36px;
|
||||
font-size: 1.16rem;
|
||||
/* border-radius: 36px; */
|
||||
font-size: 14px;
|
||||
background-color: #409EFF !important;
|
||||
}
|
||||
|
||||
.newlogin_container .el-form-item {
|
||||
@@ -133,12 +150,14 @@ html {
|
||||
}
|
||||
|
||||
.newlogin_container .el-button--primary {
|
||||
background: linear-gradient(to right, #1767F9, #4883ED);
|
||||
background-color: #409EFF !important;
|
||||
|
||||
}
|
||||
|
||||
.newlogin_container .el-button--primary:hover,
|
||||
.newlogin_container .el-button--primary:focus {
|
||||
background: linear-gradient(to right, #1767F9, #4883ED);
|
||||
background-color: #409EFF !important;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -166,7 +185,7 @@ html {
|
||||
padding-left: 20px;
|
||||
font-size: 0.8rem;
|
||||
color: #1767F9;
|
||||
cursor:default
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.verifyCode .el-input__inner {
|
||||
|
||||
@@ -1,16 +1,21 @@
|
||||
<template>
|
||||
<div v-loading="this.$store.getters.loading" class="newlogin_container">
|
||||
<div class="newlogin_container_tb">
|
||||
<img style="" src="../../assets/img/login/img.png" alt="" />
|
||||
</div>
|
||||
<div class="newlogin_login_container">
|
||||
<div class="newlogin_login_logo">
|
||||
<img style="" src="../../assets/img/login/logo.png" alt="" />
|
||||
</div>
|
||||
<div class="newlogin_login_title">星油能源调度管理平台</div>
|
||||
<div class="newlogin_login_title">欢迎使用中品调度管理平台</div>
|
||||
<div class="newlogin_login_from_container">
|
||||
<el-form ref="form" :model="loginForm">
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="loginForm.username"
|
||||
placeholder="请输入用户名"
|
||||
|
||||
oninput="if(value.length>11)value=value.slice(0,11)" type="Number" onkeyup="this.value = this.value.replace(/[^\d]/g,'');"
|
||||
>
|
||||
<img
|
||||
slot="prefix"
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
title=""
|
||||
:visible="true"
|
||||
:show-close="false"
|
||||
top="20vh"
|
||||
width="500px"
|
||||
:close-on-click-modal="false"
|
||||
center
|
||||
custom-class="custom-dialog"
|
||||
><el-form label-width="80px" class="addStyle">
|
||||
<el-dialog title="" :visible="true" :show-close="false" top="20vh" width="500px" :close-on-click-modal="false" center
|
||||
custom-class="custom-dialog"><el-form label-width="80px" class="addStyle">
|
||||
<div class="adjust-frame">
|
||||
<div class="titleStyle">
|
||||
<p style="margin:0;color:#409EFF">新增快速调价任务</p>
|
||||
@@ -17,48 +9,22 @@
|
||||
<span>{{ multipleSelection.length }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<img
|
||||
class="close"
|
||||
@click="
|
||||
controlWindows.dialogAdjustStrategyPiliangAdd = false
|
||||
"
|
||||
src="@/assets/img/close_fill.png"
|
||||
alt=""
|
||||
/>
|
||||
<img class="close" @click="
|
||||
controlWindows.dialogAdjustStrategyPiliangAdd = false
|
||||
" src="@/assets/img/close_fill.png" alt="" />
|
||||
<div style="margin: 0 35px;">
|
||||
<template>
|
||||
<div style="margin:40px 0 20px;">
|
||||
<span style="margin: 15px 0; display: block;"
|
||||
>任务名称</span
|
||||
>
|
||||
<el-input
|
||||
type="textarea"
|
||||
:rows="2"
|
||||
placeholder="请输入内容"
|
||||
v-model="taskName"
|
||||
></el-input>
|
||||
<span style="margin: 15px 0; display: block;">任务名称</span>
|
||||
<el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="taskName"></el-input>
|
||||
</div>
|
||||
<el-divider></el-divider>
|
||||
<div
|
||||
style="display:flex;align-items: center;justify-content: space-between;margin-bottom: 20px;"
|
||||
>
|
||||
<div style="display:flex;align-items: center;justify-content: space-between;margin-bottom: 20px;">
|
||||
<div class="mubiaocelue">
|
||||
<div
|
||||
class="special-exhibition"
|
||||
style="margin: -7px 0 12px;"
|
||||
>
|
||||
<span style="margin-right: 10px"
|
||||
>目标策略公式</span
|
||||
>
|
||||
<input
|
||||
class="strategy-input"
|
||||
type="text"
|
||||
v-model="
|
||||
convertPersonalPriceSyncStrategy
|
||||
"
|
||||
@keyup="inputHandle"
|
||||
@blur="blurHandle"
|
||||
/>
|
||||
<div class="special-exhibition" style="margin: -7px 0 12px;">
|
||||
<span style="margin-right: 10px">目标策略公式</span>
|
||||
<input class="strategy-input" type="text" v-model="convertPersonalPriceSyncStrategy
|
||||
" @keyup="inputHandle" @blur="blurHandle" />
|
||||
</div>
|
||||
<div style="margin: 0 0 0 auto;">
|
||||
执行时基础个人价变更
|
||||
@@ -66,11 +32,7 @@
|
||||
</div>
|
||||
<div class="mubiaocelue">
|
||||
<el-radio-group v-model="radio">
|
||||
<el-radio
|
||||
:label="1"
|
||||
@click.native.prevent="selectRadio"
|
||||
>立即应用到个人价</el-radio
|
||||
>
|
||||
<el-radio :label="1" @click.native.prevent="selectRadio">立即应用到个人价</el-radio>
|
||||
</el-radio-group>
|
||||
<el-radio-group v-model="dijiaRadio">
|
||||
<el-radio :label="0">忽略</el-radio>
|
||||
@@ -81,23 +43,13 @@
|
||||
<el-divider></el-divider>
|
||||
<div class="mubiaocelue" style="margin-bottom: 30px;">
|
||||
<span>任务类型</span>
|
||||
<el-radio-group
|
||||
v-model="taskTypeRadio"
|
||||
style="margin:0"
|
||||
>
|
||||
<el-radio-group v-model="taskTypeRadio" style="margin:0">
|
||||
<el-radio :label="1">实时</el-radio>
|
||||
<el-radio :label="2">预约</el-radio>
|
||||
<el-date-picker
|
||||
popper-class="disableButton"
|
||||
:disabled="taskTypeRadio !== 2"
|
||||
v-model="startTime"
|
||||
clearable
|
||||
format="yyyy-MM-dd HH:mm:ss"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
type="datetime"
|
||||
placeholder="预约时间"
|
||||
:picker-options="pickerOptions"
|
||||
/>
|
||||
<el-date-picker popper-class="disableButton" :disabled="taskTypeRadio !== 2"
|
||||
v-model="startTime" clearable format="yyyy-MM-dd HH:mm:ss"
|
||||
value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="预约时间"
|
||||
:picker-options="pickerOptions" />
|
||||
</el-radio-group>
|
||||
</div>
|
||||
<!-- <div class="personal-block">
|
||||
@@ -133,26 +85,12 @@
|
||||
|
||||
<span class="dialog-footer">
|
||||
<template>
|
||||
<el-button
|
||||
style="margin-right: 20px;"
|
||||
type="info"
|
||||
@click="
|
||||
controlWindows.dialogAdjustStrategyPiliangAdd = false
|
||||
"
|
||||
>取 消</el-button
|
||||
>
|
||||
<el-popconfirm
|
||||
confirm-button-text="确定"
|
||||
cancel-button-text="取消"
|
||||
icon="el-icon-info"
|
||||
icon-color="red"
|
||||
title="一旦提交,将立即生效!是否确认提交?"
|
||||
placement="top"
|
||||
@onConfirm="confirm"
|
||||
>
|
||||
<el-button type="primary" slot="reference"
|
||||
>提交</el-button
|
||||
>
|
||||
<el-button style="margin-right: 20px;" type="info" @click="
|
||||
controlWindows.dialogAdjustStrategyPiliangAdd = false
|
||||
">取 消</el-button>
|
||||
<el-popconfirm confirm-button-text="确定" cancel-button-text="取消" icon="el-icon-info" icon-color="red"
|
||||
title="一旦提交,将立即生效!是否确认提交?" placement="top" @onConfirm="confirm">
|
||||
<el-button type="primary" slot="reference">提交</el-button>
|
||||
</el-popconfirm>
|
||||
</template>
|
||||
</span>
|
||||
@@ -164,6 +102,12 @@
|
||||
import AdjustTask from "@/api/AdjustTask/AdjustTask";
|
||||
import { parseTime } from "@/utils/disableTime.js";
|
||||
import moment from "moment";
|
||||
let xxx = () => {
|
||||
let b = new Date();
|
||||
// 获取分钟设置分钟
|
||||
b.setMinutes(b.getMinutes() + 15);
|
||||
return `${b.getHours()}:${b.getMinutes()}:${b.getSeconds()} - 23:59:00`
|
||||
};
|
||||
export default {
|
||||
props: {
|
||||
controlWindows: Object,
|
||||
@@ -180,15 +124,33 @@ export default {
|
||||
taskName: "",
|
||||
startTime: "",
|
||||
userCompany: this.$store.getters.user.userCompany,
|
||||
pickerOptions: {
|
||||
disabledDate(time) {
|
||||
return time.getTime() < Date.now() - 8.64e7;
|
||||
pickerOptions: {
|
||||
xxfn(){
|
||||
|
||||
},
|
||||
selectableRange:
|
||||
parseTime(
|
||||
new Date(moment().format("YYYY-MM-DD HH:mm:ss")),
|
||||
"{hh}:{ii}:{ss}"
|
||||
) + "- 23:59:00"
|
||||
disabledDate(time) {
|
||||
// return time.getTime() < Date.now() - 8.64e7;
|
||||
|
||||
// Date对象 获取当前时间+加15分钟和每一个time作比较 如果小于 返回true 禁用 如果大于等于 返回false 启用
|
||||
// 获取当前时间
|
||||
let b = new Date();
|
||||
// 获取分钟设置分钟
|
||||
// b.setMinutes(b.getMinutes() + 15);
|
||||
b.setDate(b.getDate() -1)
|
||||
// 判断当前时间分钟大不大于设置分钟
|
||||
if (time>b) {
|
||||
// 错误
|
||||
return false
|
||||
// 正确
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
},
|
||||
selectableRange: xxx()
|
||||
// parseTime(
|
||||
// new Date(moment().add(15,'minutes').format("YYYY-MM-DD HH:mm:ss")),
|
||||
// "{hh}:{ii}:{ss}"
|
||||
// ) + "- 23:59:00"
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -285,9 +247,9 @@ export default {
|
||||
data,
|
||||
this.radio
|
||||
? {
|
||||
convertPersonalPrice:
|
||||
item.convertPersonalPrice
|
||||
}
|
||||
convertPersonalPrice:
|
||||
item.convertPersonalPrice
|
||||
}
|
||||
: {}
|
||||
)
|
||||
);
|
||||
@@ -334,26 +296,32 @@ export default {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
::v-deep {
|
||||
.el-divider--horizontal {
|
||||
margin: 30px 0;
|
||||
}
|
||||
|
||||
.custom-dialog {
|
||||
border-radius: 15px;
|
||||
|
||||
// .el-dialog__header {
|
||||
// padding: 10px 20px !important;
|
||||
// }
|
||||
.el-dialog__body {
|
||||
padding: 0 20px 10px;
|
||||
}
|
||||
|
||||
.adjust-frame {
|
||||
position: relative;
|
||||
> p {
|
||||
|
||||
>p {
|
||||
margin: 0;
|
||||
color: #333;
|
||||
font-size: 15px;
|
||||
}
|
||||
> .close {
|
||||
|
||||
>.close {
|
||||
position: absolute;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
@@ -362,24 +330,30 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.exhibition {
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
display: flex;
|
||||
margin-bottom: 15px;
|
||||
|
||||
span {
|
||||
flex: 1;
|
||||
|
||||
&:nth-of-type(1) {
|
||||
color: #a9a9a9;
|
||||
padding-right: 15px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&:nth-of-type(2) {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tip {
|
||||
display: block;
|
||||
width: 150px;
|
||||
@@ -387,6 +361,7 @@ export default {
|
||||
line-height: 25px;
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
.special-exhibition {
|
||||
padding-right: 15px;
|
||||
box-sizing: border-box;
|
||||
@@ -395,34 +370,44 @@ export default {
|
||||
width: 220px;
|
||||
line-height: 30px;
|
||||
background: rgba(211, 211, 211, 0.5);
|
||||
> span {
|
||||
|
||||
>span {
|
||||
flex: 1;
|
||||
|
||||
&:nth-of-type(1) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&:nth-of-type(2) {
|
||||
text-align: left;
|
||||
padding-left: 20px;
|
||||
}
|
||||
}
|
||||
> input {
|
||||
|
||||
>input {
|
||||
width: 100px;
|
||||
height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.addStyle .el-form-item--medium .el-form-item__label {
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
.addStyle .el-form-item__content .el-radio-group {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.titleStyle {
|
||||
display: flex;
|
||||
|
||||
div {
|
||||
margin-left: auto;
|
||||
margin-right: 45px;
|
||||
}
|
||||
|
||||
.el-form-item--medium {
|
||||
|
||||
.el-form-item__label,
|
||||
.el-form-item__content {
|
||||
line-height: 17px;
|
||||
@@ -430,14 +415,17 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-footer {
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.mubiaocelue {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
div {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
<el-date-picker
|
||||
v-model="page.params.createTime"
|
||||
type="datetimerange"
|
||||
style="width: 105%"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
range-separator="~"
|
||||
start-placeholder="开始时间"
|
||||
@@ -120,14 +121,15 @@
|
||||
:size="$store.getters.size"
|
||||
icon="el-icon-search"
|
||||
@click="search"
|
||||
> 查询
|
||||
>查询
|
||||
</el-button>
|
||||
<el-button
|
||||
type="info"
|
||||
:size="$store.getters.size"
|
||||
icon="el-icon-refresh"
|
||||
@click="page.params = {}"
|
||||
>
|
||||
重置
|
||||
重置
|
||||
</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
@@ -431,7 +433,7 @@ export default {
|
||||
tableColumns: [
|
||||
{
|
||||
prop: "taskName",
|
||||
width: 180,
|
||||
width: 160,
|
||||
label: "任务名称",
|
||||
show: true,
|
||||
render: (row, column, cell) => {
|
||||
@@ -443,7 +445,7 @@ export default {
|
||||
},
|
||||
{
|
||||
prop: "siteName",
|
||||
width: 220,
|
||||
width: 230,
|
||||
label: "油站名称",
|
||||
show: true,
|
||||
render: (row, column, cell) => {
|
||||
@@ -455,13 +457,13 @@ export default {
|
||||
},
|
||||
{
|
||||
prop: "oilProductCode",
|
||||
width: 150,
|
||||
width: 230,
|
||||
label: "基础个人价",
|
||||
show: true,
|
||||
render: (row, column, cell) => {
|
||||
return <div>
|
||||
<span class="colorhui">油品:</span><span>{cell}</span><br/>
|
||||
<span class="colorhui">当前基础个人价:</span><span>{row.currentFloorPrice}</span><i v-show={row.floorPriceIgnore==1} class="el-icon-s-check"></i>
|
||||
<span class="colorhui">当前基础个人价:</span><span>{row.floorPriceIgnore}</span><i v-show={row.floorPriceIgnore==1} class="el-icon-s-check"></i>
|
||||
</div>
|
||||
},
|
||||
},
|
||||
@@ -515,7 +517,7 @@ export default {
|
||||
},
|
||||
{
|
||||
prop: "preExecuteTime",
|
||||
minWidth: 220,
|
||||
minWidth: 200,
|
||||
label: "预约时间/执行时间",
|
||||
show: true,
|
||||
render: (row, column, cell) => {
|
||||
@@ -527,7 +529,7 @@ export default {
|
||||
},
|
||||
{
|
||||
prop: "createUserName",
|
||||
minWidth: 220,
|
||||
minWidth: 210,
|
||||
label: "创建人/创建时间",
|
||||
show: true,
|
||||
render: (row, column, cell) => {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
</el-select>
|
||||
</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-option value="1" 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
|
||||
icon-class="iconiconfonticon02" /> 快速调价任务</el-button>
|
||||
</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 :size="$store.getters.size" icon="el-icon-refresh" type="info" @click="
|
||||
page.params = {}
|
||||
@@ -158,11 +158,12 @@
|
||||
<!-- 分页组件结束 -->
|
||||
</div>
|
||||
</ListLayout>
|
||||
<!-- 历史记录弹窗 -->
|
||||
<el-dialog v-el-drag-dialog title="变更历史" :visible.sync="showHistory" width="55%">
|
||||
<el-table :data="historyData" style="width: 100%">
|
||||
<!-- 历史记录抽屉 -->
|
||||
<el-drawer :withHeader="false" title="变更历史" :visible.sync="showHistory" direction="ltr" size="55%">
|
||||
<div style="padding: 20px;">
|
||||
<el-table :data="historyData" style="width: 100%" border>
|
||||
<el-table-column prop="createTime" label="创建时间" />
|
||||
|
||||
|
||||
<el-table-column prop="name" label="基础个人价">
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
@@ -187,16 +188,18 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="address" label="创建人">
|
||||
<el-table-column prop="address" label="创建人/id">
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<div>{{ scope.row.createUserName }}</div>
|
||||
<div> {{ scope.row.createUser }}</div>
|
||||
<div>创建人: {{ scope.row.createUserName?scope.row.createUserName:'暂无数据' }}</div>
|
||||
<div>创建人ID: {{ scope.row.createUser?scope.row.createUser:'暂无数据'}}</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</el-drawer>
|
||||
|
||||
<!-- 导出弹窗 -->
|
||||
<el-dialog v-el-drag-dialog title="导出" :visible.sync="outPutDialog" width="20%">
|
||||
<OilSiteOilsPriceOutput :page="page" :dataPage="dataPage" v-if="outPutDialog"
|
||||
@@ -292,7 +295,7 @@ export default {
|
||||
return ('禁用');
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '基础个人价',
|
||||
value: 'personalPriceBase'
|
||||
@@ -591,12 +594,16 @@ export default {
|
||||
return (
|
||||
<div>
|
||||
<div>
|
||||
<span>更新人</span>
|
||||
<span>{row.createUserName}</span>
|
||||
<span>创建人:</span>
|
||||
<span>{row.createUserName === undefined ? '暂无数据' :row.createUserName}</span>
|
||||
</div>
|
||||
<div>
|
||||
{/* <div>
|
||||
<span>更新时间</span>
|
||||
<span>{row.updateTime}</span>
|
||||
</div> */}
|
||||
<div>
|
||||
<span>ID:</span>
|
||||
<span> {row.createUser?row.createUser:'暂无数据'}</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -178,9 +178,6 @@
|
||||
<el-form-item label="赊销金额">
|
||||
<span> {{scope.row.chargeRechargeBalance|balanceType}}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="充返金额">
|
||||
<span>{{scope.row.rechargeRebateBalance|balanceType}}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="消返金额">
|
||||
<span>{{scope.row.consumeRebateBalance|balanceType}}</span>
|
||||
</el-form-item>
|
||||
@@ -192,9 +189,6 @@
|
||||
<el-form-item label="累计赊销金额">
|
||||
<span> {{dataListChild.sxje?dataListChild.sxje:'0.00'}}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="累计充返金额">
|
||||
<span>{{dataListChild.cfje?dataListChild.cfje:'0.00'}}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="累计消返金额">
|
||||
<span>{{dataListChild.xfje?dataListChild.xfje:'0.00'}}</span>
|
||||
</el-form-item>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div style="padding: 20px;">
|
||||
<el-row>
|
||||
<el-form ref="form" :rules="rules" :model="sysCustomerInfo" label-width="100px" :size="$store.getters.size">
|
||||
<el-row :gutter="gridNum.row.gutter">
|
||||
|
||||
@@ -212,16 +212,15 @@
|
||||
</div>
|
||||
</ListLayout>
|
||||
|
||||
<!-- 修改密码弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
destroy-on-close
|
||||
<!-- 修改密码抽屉 -->
|
||||
<el-drawer
|
||||
title="修改密码"
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="updatePwdDialog"
|
||||
@closeDialog="closeDialog"
|
||||
width="55%"
|
||||
:before-close="handleClose"
|
||||
direction="ltr"
|
||||
size="55%"
|
||||
>
|
||||
<div style="padding: 20px;">
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="updatePwd"
|
||||
@@ -236,18 +235,20 @@
|
||||
<el-button @click="handleClose">取消</el-button>
|
||||
<el-button type="primary" @click="updatePwdSubmit">提交</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 添加弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
destroy-on-close
|
||||
</div>
|
||||
|
||||
</el-drawer>
|
||||
|
||||
<!-- 添加抽屉 -->
|
||||
<el-drawer
|
||||
title="添加"
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="addDialog"
|
||||
width="55%"
|
||||
direction="ltr"
|
||||
size="55%"
|
||||
>
|
||||
<SysCustomerInfoAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||
</el-dialog>
|
||||
<SysCustomerInfoAdd @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||
</el-drawer>
|
||||
|
||||
<!-- 登录授权弹窗 -->
|
||||
<el-dialog
|
||||
@@ -290,20 +291,22 @@
|
||||
/>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 修改弹窗 -->
|
||||
<el-dialog
|
||||
destroy-on-close
|
||||
<!-- 修改抽屉 -->
|
||||
<el-drawer
|
||||
title="修改"
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="updateDialog"
|
||||
width="55%"
|
||||
direction="ltr"
|
||||
size="55%"
|
||||
>
|
||||
<SysCustomerInfoUpdate
|
||||
<SysCustomerInfoUpdate
|
||||
v-if="updateDialog"
|
||||
:sys-customer-info="sysCustomerInfo"
|
||||
@getByPage="getByPage"
|
||||
@closeDialog="closeDialog"
|
||||
/>
|
||||
</el-dialog>
|
||||
</el-drawer>
|
||||
|
||||
|
||||
<!-- 详情抽屉 -->
|
||||
<el-drawer
|
||||
@@ -311,7 +314,7 @@
|
||||
class="table-detail-drawer"
|
||||
:visible.sync="showTableDrawer"
|
||||
direction="ltr"
|
||||
size="50%"
|
||||
size="55%"
|
||||
>
|
||||
<SysCustomerInfoInfo
|
||||
v-if="showTableDrawer"
|
||||
@@ -703,8 +706,8 @@ export default {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.table-div >>> .header-container {
|
||||
position: sticky;
|
||||
top: 0rem;
|
||||
/* position: sticky;
|
||||
top: 0rem; */
|
||||
min-height: 152px;
|
||||
z-index: 4;
|
||||
background: #fff;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div style="padding: 20px;">
|
||||
<el-row>
|
||||
<el-form ref="form" :rules="rules" :model="sysCustomerInfo" label-width="100px" :size="$store.getters.size">
|
||||
<el-row :gutter="gridNum.row.gutter">
|
||||
|
||||
@@ -26,7 +26,7 @@ module.exports = {
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
// target: "http://uat.xingoil.com/adminapi",
|
||||
// target: 'https://www.xingoil.com/adminapi',
|
||||
target: `http://192.168.0.22:38080`,
|
||||
target: `http://119.177.60.118:8000/adminapi`,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
|
||||
Reference in New Issue
Block a user