Commit b8055691 by 王志慧

commit

1 parent 2ab4a28c
...@@ -10,7 +10,6 @@ html { ...@@ -10,7 +10,6 @@ html {
.container { .container {
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px; padding: 20px;
} }
...@@ -22,6 +21,7 @@ html { ...@@ -22,6 +21,7 @@ html {
.commodity .edit-container { .commodity .edit-container {
margin-bottom: 32px; margin-bottom: 32px;
} }
// form-start // form-start
......
<!-- 订单详情 --> <!-- 订单详情 -->
<template> <template>
<div class="order-detail marketing"> <div class="order-detail marketing">
<div class="edit-box"> <div class="edit-box bgf">
<div class="container m-b-20"> <div class="m-b-20">
<p class="edit-title">基础信息</p> <p class="edit-title">基础信息</p>
<el-form label-width="120px" :inline="true"> <el-form label-width="120px" :inline="true" class="context-wrap">
<el-row v-for="(item, index) in detailFormDataRow" :key="index"> <el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item"> <el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : subItem.isNum ? '0' + (subItem.suffix || '') : '-' }}</span> <span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : subItem.isNum ? '0' + (subItem.suffix || '') : '-' }}</span>
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<div class="container edit-container"> <div class="edit-container bgf">
<p class="edit-title">使用门店</p> <p class="edit-title">使用门店</p>
<GLTable ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="detailForm.merchantList"></GLTable> <GLTable ref="warehousListRef" class="context-wrap" :hasPage="false" :tableParams="tableParams" :tableData="detailForm.merchantList"></GLTable>
</div> </div>
</div> </div>
<GLFooter> <!-- <GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button> <el-button @click="handleCancel" size="medium">取消</el-button>
</GLFooter> </GLFooter> -->
</div> </div>
</template> </template>
...@@ -153,6 +153,7 @@ export default { ...@@ -153,6 +153,7 @@ export default {
} }
if (this.detailForm.goodsCodeName != '太阳膜') { if (this.detailForm.goodsCodeName != '太阳膜') {
this.detailForm.warrantyPeriod = '-' this.detailForm.warrantyPeriod = '-'
this.detailForm.giftCost = '-'
} else { } else {
this.detailForm.warrantyPeriod = (this.detailForm.warrantyPeriod || 0) + '年' this.detailForm.warrantyPeriod = (this.detailForm.warrantyPeriod || 0) + '年'
} }
...@@ -197,4 +198,17 @@ export default { ...@@ -197,4 +198,17 @@ export default {
margin-top: 10px; margin-top: 10px;
margin-right: 20px; margin-right: 20px;
} }
.edit-title{
height: 56px;
background: #FFFFFF;
line-height: 56px;
border-bottom:1px solid #F0F1F7;
padding-left:20px;
}
.bgf{
background: #FFFFFF;
}
.context-wrap{
padding:20px;
}
</style> </style>
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">使用门店</p> <p class="edit-title">使用门店</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormMerchantRef" :isEdit="isEdit" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container m-r-20" ref="editFormMerchantRef" :isEdit="isEdit" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="editRule">
<div slot="merchantTable" class="merchant-table" :style="{ width: `calc(100% - ${defaultLabelWidth} )` }"> <div slot="merchantTable" :style="{ width: `calc(100% - ${defaultLabelWidth} )` }">
<div class="table-title"> <div class="table-title">
使用门店列表 使用门店列表
<el-button type="default" @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换门店' : '选择门店' }}</el-button> <el-button type="primary" plain @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换门店' : '选择门店' }}</el-button>
</div> </div>
<GLTable ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList"> <GLTable ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList">
<span slot="customBtn" slot-scope="scope"> <span slot="customBtn" slot-scope="scope">
......
...@@ -3,18 +3,21 @@ ...@@ -3,18 +3,21 @@
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header"> <div class="table-header">
<GLButton type="primary" size="small" @click="handleEdit('add')" fn="新增">新增商品</GLButton> <h2>商品管理列表</h2>
<el-button type="primary" size="small" @click="handleExport">导出</el-button> <div>
<GLButton type="primary" plain size="small" @click="handleEdit('add')" fn="新增">新增商品</GLButton>
<el-button size="small" @click="handleExport">导出</el-button>
</div>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="commofityRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="commofityRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="merchantName" slot-scope="scope"> <div slot="merchantName" slot-scope="scope">
<span v-if="scope.scope.merchantList.length == 1">{{ scope.scope.merchantList[0].merchantName }}</span> <span v-if="scope.scope.merchantList.length == 1">{{ scope.scope.merchantList[0].merchantName }}</span>
<el-tooltip v-else-if="scope.scope.merchantList.length >1" placement="top" effect="light"> <el-tooltip v-else-if="scope.scope.merchantList.length > 1" placement="top" effect="light">
<div slot="content"> <div slot="content">
<div class="text-3 font-12 weight-6" style="line-height:24px">上家门店</div> <div class="text-3 font-12 weight-6" style="line-height:24px">上家门店</div>
<div class="text-6 font-12" style="line-height:24px" v-for="item in scope.scope.merchantList" :key="item">{{item.merchantName}}</div> <div class="text-6 font-12" style="line-height:24px" v-for="item in scope.scope.merchantList" :key="item">{{ item.merchantName }}</div>
</div> </div>
<div class="use-store"> <div class="use-store">
<img src="@/assets/store.png" /> <img src="@/assets/store.png" />
...@@ -284,4 +287,16 @@ export default { ...@@ -284,4 +287,16 @@ export default {
margin-right: 8px; margin-right: 8px;
} }
} }
.table-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
margin-top: 20px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333;
}
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!