Commit 46724175 by 前端

ui走查

1 parent de0d0f3a
...@@ -3,21 +3,21 @@ ...@@ -3,21 +3,21 @@
<div class="glsx-combi-form"> <div class="glsx-combi-form">
<el-form @submit.native.prevent :ref="formRef" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form @submit.native.prevent :ref="formRef" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label ? item.label + ':' : ''" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label ? item.label + ':' : '' }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'"> <el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
<span class="tips-icon"></span> <span class="tips-icon"></span>
</el-tooltip> </el-tooltip>
{{ item.label }} {{ item.label ? item.label + ':' : '' }}
</span> </span>
<span v-else-if="!item.isHide && item.label" slot="label"> <span v-else-if="!item.isHide && item.label" slot="label">
<span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label }}</span> <span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label ? item.label + ':' : '' }}</span>
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<span v-else-if="item.type === 'showTxt'">{{ formObj[item.name] }}</span> <span v-else-if="item.type === 'showTxt'">{{ formObj[item.name] }}</span>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
<el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" @blur="e => handleInputBlur(e, item)"> <el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 3" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" @blur="e => handleInputBlur(e, item)">
<span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span> <span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span>
<span v-if="item.append" slot="append">{{ item.append }}</span> <span v-if="item.append" slot="append">{{ item.append }}</span>
</el-input> </el-input>
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
}, },
labelPaddingRight: { labelPaddingRight: {
type: Number, type: Number,
default: 15 default: 8
}, },
formData: { formData: {
type: Array, type: Array,
......
...@@ -193,9 +193,9 @@ ...@@ -193,9 +193,9 @@
<div class="fixed_bottom"> <div class="fixed_bottom">
<!-- <div class="ma_top"></div> --> <!-- <div class="ma_top"></div> -->
<div class="flex_cc ma_bot"> <div class="flex_cc ma_bot">
<el-button v-if="![3, 5].includes(routeInfo.addOrEdit)" class="custom_black" @click="handleReset">重置</el-button> <el-button class="btn-three" plain v-if="![3, 5].includes(routeInfo.addOrEdit)" @click="handleReset">重置</el-button>
<div class="mar-10"></div> <div class="mar-10"></div>
<el-button class="custom_blue" v-if="![3, 5].includes(routeInfo.addOrEdit)" @click="handleDraft">草稿</el-button> <el-button plain v-if="![3, 5].includes(routeInfo.addOrEdit)" @click="handleDraft">草稿</el-button>
<div class="mar-10"></div> <div class="mar-10"></div>
<el-button v-if="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button> <el-button v-if="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
<div class="mar-10"></div> <div class="mar-10"></div>
...@@ -331,10 +331,10 @@ export default { ...@@ -331,10 +331,10 @@ export default {
maxlength: 16 maxlength: 16
}, },
{ {
label: '车辆价格', label: '车辆价格/元',
name: 'invoicePrice', name: 'invoicePrice',
type: 'input', type: 'input',
append: '元', placeholder: '请输入车辆价格',
maxlength: 11, maxlength: 11,
inputBlur: () => { inputBlur: () => {
this.packageToPrice() this.packageToPrice()
...@@ -537,7 +537,7 @@ export default { ...@@ -537,7 +537,7 @@ export default {
type: 'input', type: 'input',
inputType: 'textarea', inputType: 'textarea',
isDisabled: true, isDisabled: true,
rows: 6 rows: 3
} }
], ],
// 店面信息 // 店面信息
...@@ -1870,12 +1870,15 @@ export default { ...@@ -1870,12 +1870,15 @@ export default {
} }
} }
#productInfo .sub-el-form { #productInfo .sub-el-form {
// width: 686px;
.edit-form-container { .edit-form-container {
// padding: 20px 0 1px 20px;
margin-top: 10px; margin-top: 10px;
// background: #f9f9f9; }
// margin-left: 25px; }
#otherInfo {
/deep/ .el-textarea__inner {
width: 580px;
height: 75px;
} }
} }
...@@ -2165,19 +2168,13 @@ export default { ...@@ -2165,19 +2168,13 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding-top: 16px; padding-top: 16px;
// height: 78px; // height: 78px;
.custom_black {
background: #ffffff;
color: #333333;
border: 1px solid #333333;
}
.custom_blue {
background: #ffffff;
color: #5850ff;
border: 1px solid #5850ff;
}
.mar-10 { .mar-10 {
width: 20px; width: 20px;
} }
} }
} }
.reset-btn {
background-color: transparent;
}
</style> </style>
...@@ -385,9 +385,10 @@ export default { ...@@ -385,9 +385,10 @@ export default {
} }
}, },
{ {
label: '无忧保障服务费', label: '无忧保障服务费/元',
prop: 'actualSalesPrice', prop: 'actualSalesPrice',
width: '200px', width: '200px',
align: 'right',
formatter: cellValue => { formatter: cellValue => {
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-' return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
} }
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
], ],
editFormDataCar: [ editFormDataCar: [
{ {
label: '品牌', label: '主营品牌',
name: 'vehicleBrandId', name: 'vehicleBrandId',
addHtml: 'vehicleBrandId' addHtml: 'vehicleBrandId'
}, },
...@@ -659,4 +659,8 @@ export default { ...@@ -659,4 +659,8 @@ export default {
.edit-equity /deep/ .el-dialog__body { .edit-equity /deep/ .el-dialog__body {
height: 520px; height: 520px;
} }
/deep/ .combi-form-label {
color: #333;
}
</style> </style>
...@@ -83,8 +83,8 @@ ...@@ -83,8 +83,8 @@
</div> </div>
<div class="operate-btn flex_cc"> <div class="operate-btn flex_cc">
<el-button class="reset-btn" v-show="routeInfo.addOrEdit == '1'" @click="handleReset">重置</el-button> <el-button v-show="routeInfo.addOrEdit == '1'" plain class="btn-three" @click="handleReset">重置</el-button>
<el-button v-show="!['3', '5'].includes(routeInfo.addOrEdit)" class="plain" @click="handleDraft(2)">草稿</el-button> <el-button v-show="!['3', '5'].includes(routeInfo.addOrEdit)" plain @click="handleDraft(2)">草稿</el-button>
<el-button v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm(1)">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button> <el-button v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm(1)">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
</div> </div>
...@@ -217,10 +217,10 @@ export default { ...@@ -217,10 +217,10 @@ export default {
maxlength: 16 maxlength: 16
}, },
{ {
label: '发票价格', label: '发票价格/元',
name: 'invoicePrice', name: 'invoicePrice',
type: 'input', type: 'input',
append: '元', placeholder: '请输入发票价格',
maxlength: 11, maxlength: 11,
inputBlur: () => { inputBlur: () => {
this.packageToPrice() this.packageToPrice()
...@@ -396,18 +396,18 @@ export default { ...@@ -396,18 +396,18 @@ export default {
}, },
editFormDataOther: [ editFormDataOther: [
{ {
label: '建议销售价', label: '建议销售价/元',
name: 'suggestedSellingPrice', name: 'suggestedSellingPrice',
type: 'input', type: 'input',
append: '元', placeholder: '请输入建议销售价',
isDisabled: true, isDisabled: true,
maxlength: 11 maxlength: 11
}, },
{ {
label: '实际销售价', label: '实际销售价/元',
name: 'actualSalesPrice', name: 'actualSalesPrice',
type: 'input', type: 'input',
append: '元', placeholder: '请输入实际销售价',
maxlength: 11 maxlength: 11
}, },
{ {
...@@ -1435,17 +1435,9 @@ export default { ...@@ -1435,17 +1435,9 @@ export default {
cursor: pointer; cursor: pointer;
} }
.plain {
border: 1px solid #5850ff;
color: #5850ff;
}
.reset-btn {
border: 1px solid #909090;
color: #333333;
}
.sub-el-form { .sub-el-form {
margin-left: 50px; margin-left: 50px;
} }
/* 表格 */ /* 表格 */
</style> </style>
...@@ -1106,7 +1106,7 @@ export default { ...@@ -1106,7 +1106,7 @@ export default {
} }
}, },
{ {
label: '实际销售价', label: '实际销售价/元',
prop: 'actualSalesPrice', prop: 'actualSalesPrice',
width: '160px', width: '160px',
align: 'right', align: 'right',
...@@ -1141,7 +1141,7 @@ export default { ...@@ -1141,7 +1141,7 @@ export default {
} }
}, },
{ {
label: '退单金额', label: '退单金额/元',
prop: 'rollbackAmount', prop: 'rollbackAmount',
width: '160px', width: '160px',
align: 'right', align: 'right',
......
...@@ -656,4 +656,7 @@ export default { ...@@ -656,4 +656,7 @@ export default {
.edit-equity /deep/ .el-dialog__body { .edit-equity /deep/ .el-dialog__body {
height: 520px; height: 520px;
} }
/deep/ .combi-form-label {
color: #333;
}
</style> </style>
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
</div> </div>
<div class="pannel tableTopButton"> <div class="pannel tableTopButton">
<el-button size="small" @click="toshowDialog">查看礼券</el-button> <el-button size="small" type="primary" plain @click="toshowDialog">查看礼券</el-button>
<GLButton size="small" fn="导出礼券" @click="toExport">导出数据</GLButton> <GLButton size="small" fn="导出礼券" @click="toExport">导出</GLButton>
</div> </div>
<div class="table_wrap"> <div class="table_wrap">
<GLTable ref="table" :hasNum="false" :tableData="tableData" :tableTotal="tableTotal" :tableParams="tableParams" @refreshTable="toGetCouponsList"></GLTable> <GLTable ref="table" :tableData="tableData" :tableTotal="tableTotal" :tableParams="tableParams" @refreshTable="toGetCouponsList"></GLTable>
</div> </div>
<GLDialog :visible.sync="dialogTableVisible" bigTitle="111" mode="big" :hasFooter="false"> <GLDialog :visible.sync="dialogTableVisible" bigTitle="111" mode="big" :hasFooter="false">
<div slot="custombigtitle" class="customTitle"> <div slot="custombigtitle" class="customTitle">
......
...@@ -19,9 +19,6 @@ ...@@ -19,9 +19,6 @@
<div v-if="curDivisionType == 1" class="pannel"> <div v-if="curDivisionType == 1" class="pannel">
<GLCombiForm ref="showSearch2" :key="refreshKey2" :formObj="searchForm" :formData="searchFormData2" @handleOk="handleOkFn" @handleRest="handleRestFn"></GLCombiForm> <GLCombiForm ref="showSearch2" :key="refreshKey2" :formObj="searchForm" :formData="searchFormData2" @handleOk="handleOkFn" @handleRest="handleRestFn"></GLCombiForm>
</div> </div>
<div class="pannel tableTopButton">
<GLButton size="small" fn="导出分账订单" @click="toExport">导出数据</GLButton>
</div>
<div class="tipper flex_scb"> <div class="tipper flex_scb">
<div class="tip_text"> <div class="tip_text">
<span>共</span> <span>共</span>
...@@ -43,6 +40,7 @@ ...@@ -43,6 +40,7 @@
<span>元)。</span> <span>元)。</span>
</template> </template>
</div> </div>
<GLButton size="small" plain fn="导出分账订单" @click="toExport">导出数据</GLButton>
</div> </div>
<!-- 线上分账 --> <!-- 线上分账 -->
...@@ -107,7 +105,7 @@ export default { ...@@ -107,7 +105,7 @@ export default {
width: '200px' width: '200px'
}, },
{ {
label: '总分账金额(元)', label: '总分账金额/元',
prop: 'divisionMoney', prop: 'divisionMoney',
align: 'right', align: 'right',
width: '150px' width: '150px'
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
<div class="pannel"> <div class="pannel">
<GLCombiForm :key="refreshKey" ref="showSearch" :rowNumber="rowNumber" :formObj="searchForm" :formData="searchFormData" @handleOk="handleOkFn" @handleRest="handleRestFn"></GLCombiForm> <GLCombiForm :key="refreshKey" ref="showSearch" :rowNumber="rowNumber" :formObj="searchForm" :formData="searchFormData" @handleOk="handleOkFn" @handleRest="handleRestFn"></GLCombiForm>
</div> </div>
<div class="pannel tableTopButton">
<GLButton size="small" fn="导出精品升级订单" @click="toExport">导出数据</GLButton>
</div>
<div v-if="accountLevel == 1 && !isAdmin" style="height: 18px"></div> <div v-if="accountLevel == 1 && !isAdmin" style="height: 18px"></div>
<div class="tipper flex_scb"> <div class="tipper flex_scb">
<div class="tip_text"> <div class="tip_text">
...@@ -24,6 +21,7 @@ ...@@ -24,6 +21,7 @@
<el-select class="myfindWidth" size="small" collapse-tags multiple @removeTag="removeTag" v-model="tableCoulumList" @change="changTableCoulum" placeholder="请选择要展示的字段"> <el-select class="myfindWidth" size="small" collapse-tags multiple @removeTag="removeTag" v-model="tableCoulumList" @change="changTableCoulum" placeholder="请选择要展示的字段">
<el-option v-for="item in fieldList" :disabled="item.disabled" :key="item.value" :label="item.label" :value="item"></el-option> <el-option v-for="item in fieldList" :disabled="item.disabled" :key="item.value" :label="item.label" :value="item"></el-option>
</el-select> </el-select>
<GLButton style="margin-left: 8px;" size="small" fn="导出精品升级订单" @click="toExport">导出数据</GLButton>
</div> </div>
</div> </div>
...@@ -322,11 +320,15 @@ export default { ...@@ -322,11 +320,15 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '商品ID', label: '商品ID',
prop: 'codeId' prop: 'codeId',
width: 150,
line: 1
}, },
{ {
label: '商品名称', label: '商品名称',
prop: 'goodsName' prop: 'goodsName',
width: 150,
line: 1
}, },
{ {
label: '商品分类', label: '商品分类',
...@@ -334,10 +336,12 @@ export default { ...@@ -334,10 +336,12 @@ export default {
}, },
{ {
label: '品牌商', label: '品牌商',
prop: 'plateName' prop: 'plateName',
width: 150,
line: 1
}, },
{ {
label: '商品售价', label: '商品售价/元',
prop: 'saleprice', prop: 'saleprice',
align: 'right' align: 'right'
}, },
...@@ -346,11 +350,11 @@ export default { ...@@ -346,11 +350,11 @@ export default {
prop: 'upgradeWarrantyPeriodName' prop: 'upgradeWarrantyPeriodName'
}, },
{ {
label: '数量(件)', label: '数量/件',
prop: 'number' prop: 'number'
}, },
{ {
label: '支付金额', label: '支付金额/元',
prop: 'totalPrice', prop: 'totalPrice',
align: 'right' align: 'right'
} }
...@@ -463,7 +467,7 @@ export default { ...@@ -463,7 +467,7 @@ export default {
}, },
{ {
value: 'subTotalPrice', value: 'subTotalPrice',
label: '支付金额', label: '支付金额/元',
level: 3, level: 3,
width: '110', width: '110',
align: 'right', align: 'right',
...@@ -471,9 +475,9 @@ export default { ...@@ -471,9 +475,9 @@ export default {
}, },
{ {
value: 'actualIncomeMoney', value: 'actualIncomeMoney',
label: '总分账金额', label: '总分账金额/元',
level: 3, level: 3,
width: '110', width: '150',
align: 'right', align: 'right',
disabled: true disabled: true
}, },
...@@ -493,7 +497,7 @@ export default { ...@@ -493,7 +497,7 @@ export default {
}, },
{ {
value: 'shopProfitMoney', value: 'shopProfitMoney',
label: '分账金额', label: '分账金额/元',
level: 3, level: 3,
width: '110', width: '110',
align: 'right', align: 'right',
...@@ -603,15 +607,15 @@ export default { ...@@ -603,15 +607,15 @@ export default {
width: '200' width: '200'
}, },
{ {
label: '支付金额', label: '支付金额/元',
prop: 'subTotalPrice', prop: 'subTotalPrice',
width: '110', width: '110',
align: 'right' align: 'right'
}, },
{ {
label: '总分账金额', label: '总分账金额/元',
prop: 'actualIncomeMoney', prop: 'actualIncomeMoney',
width: '110', width: '150',
align: 'right' align: 'right'
}, },
{ {
...@@ -625,7 +629,7 @@ export default { ...@@ -625,7 +629,7 @@ export default {
width: '200' width: '200'
}, },
{ {
label: '分账金额', label: '分账金额/元',
prop: 'shopProfitMoney', prop: 'shopProfitMoney',
width: '110', width: '110',
align: 'right' align: 'right'
...@@ -663,7 +667,7 @@ export default { ...@@ -663,7 +667,7 @@ export default {
} }
}, },
watch: { watch: {
tableCoulumList: function (newvalue, oldvalue) { tableCoulumList: function(newvalue, oldvalue) {
this.handlerNewTableCoulum(newvalue) this.handlerNewTableCoulum(newvalue)
} }
}, },
...@@ -720,7 +724,7 @@ export default { ...@@ -720,7 +724,7 @@ export default {
label: levelName[accountLevel + 1], label: levelName[accountLevel + 1],
name: 'merchantIdss', name: 'merchantIdss',
type: 'select', type: 'select',
optionList: child[0]&&child[0].children?child[0].children:[], optionList: child[0] && child[0].children ? child[0].children : [],
optionId: 'id', optionId: 'id',
optionLabel: 'merchantName', optionLabel: 'merchantName',
isClear: true isClear: true
...@@ -732,21 +736,21 @@ export default { ...@@ -732,21 +736,21 @@ export default {
label: levelName[accountLevel + 2], label: levelName[accountLevel + 2],
name: 'merchantIdsss', name: 'merchantIdsss',
type: 'select', type: 'select',
optionList: child2[0]&&child2[0].children?child2[0].children:[], optionList: child2[0] && child2[0].children ? child2[0].children : [],
optionId: 'id', optionId: 'id',
optionLabel: 'merchantName', optionLabel: 'merchantName',
isClear: true isClear: true
} }
const isAdd = this.judgeAdd(newForm2,this.searchFormData,'name') const isAdd = this.judgeAdd(newForm2, this.searchFormData, 'name')
if(!isAdd){ if (!isAdd) {
this.searchFormData.push(newForm2) this.searchFormData.push(newForm2)
} }
this.refreshKey = Date.now() this.refreshKey = Date.now()
} }
} }
this.rowNumber = 3 this.rowNumber = 3
const isAdd = this.judgeAdd(newForm,this.searchFormData,'name') const isAdd = this.judgeAdd(newForm, this.searchFormData, 'name')
if(!isAdd){ if (!isAdd) {
this.searchFormData.push(newForm) this.searchFormData.push(newForm)
} }
this.refreshKey = Date.now() this.refreshKey = Date.now()
...@@ -757,10 +761,10 @@ export default { ...@@ -757,10 +761,10 @@ export default {
}) })
}, },
// 判断是否需要添加下拉框 // 判断是否需要添加下拉框
judgeAdd(obj,objList,tag){ judgeAdd(obj, objList, tag) {
let flag = false let flag = false
objList.forEach(item=>{ objList.forEach(item => {
if(item[tag]==obj[tag]){ if (item[tag] == obj[tag]) {
flag = true flag = true
} }
}) })
...@@ -1113,7 +1117,7 @@ export default { ...@@ -1113,7 +1117,7 @@ export default {
.table_wrap /deep/ .el-table__row > td { .table_wrap /deep/ .el-table__row > td {
border-right: none; border-right: none;
} }
.table_wrap /deep/ .el-table th.is-leaf:first-child { // .table_wrap /deep/ .el-table th.is-leaf:first-child {
border-right: none; // border-right: none;
} // }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!