Commit 4615ebe1 by zhangxw

Merge branch 'dev_v4.20.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into zhangxw_dev_v4.20.0
2 parents c699f761 2e513432
......@@ -9,12 +9,8 @@
<div class="selectContainer">
<div>选择日期</div>
<div class="daySelect">
<el-date-picker v-model="dateValue"
type="date"
:picker-options="pickerOptions"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
placeholder="选择日期" />
<el-date-picker v-model="dateValue" type="date" :picker-options="pickerOptions" format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd" placeholder="选择日期" />
<!-- <el-select v-model="model"
placeholder="">
<el-option v-for="item in options"
......@@ -25,25 +21,21 @@
</el-select> -->
</div>
<!-- -->
<el-button type="primary"
@click="exportDailyReport"
:loading="exportDailyReportBtn"
class="exportBtn">导出日报</el-button>
<el-button type="primary" @click="exportDailyReport" :loading="exportDailyReportBtn"
class="exportBtn">导出日报</el-button>
<!-- <span class="exportBtn">
<auth-button category="Button"
:showBtnIds="['90702']"></auth-button>
</span> -->
</div>
<div class="inputTargetBtn">
<div @click="goCheck"
style="margin-right: 32px;"><i class="el-icon-chat-round"></i>查看企微推送对象</div>
<div @click="outputVisible = true"><i class="el-icon-edit"></i>输入单店产值目标</div>
<div @click="goCheck" style="margin-right: 32px;"><i class="el-icon-chat-round"></i>查看企微推送对象</div>
<div @click="outputVisible = true"><i class="el-icon-edit"></i>编辑单店信息</div>
</div>
</div>
</el-card>
</el-col>
<outputValueDialog v-if="outputVisible"
:is-show.sync="outputVisible" />
<outputValueDialog v-if="outputVisible" :is-show.sync="outputVisible" />
</el-row>
</template>
......@@ -138,6 +130,7 @@ export default {
display: flex;
height: 30px;
font-size: 14px;
.reportTips {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
......@@ -146,29 +139,36 @@ export default {
padding-right: 25px;
border-right: 1px solid #dcdfe6;
}
.selectContainer {
display: flex;
align-items: center;
padding-left: 25px;
.exportBtn {
font-size: 12px;
padding: 8px 10px;
}
}
.daySelect {
margin: 0 8px;
.el-input__inner {
height: 30px;
}
.el-input__icon {
line-height: 30px;
}
}
.inputTargetBtn {
display: flex;
margin-left: auto;
line-height: 30px;
cursor: pointer;
.el-icon-edit,
.el-icon-chat-round {
margin-right: 5px;
......
......@@ -39,9 +39,10 @@
<el-form-item label="支付状态:">
{{ detail.upgradeFlag == 'N' ? '战败' : payStatusOpts[detail.payStatus || $$(detail.payOrder, 'payStatus')] }}
</el-form-item>
<el-form-item label="收款凭证:">
<img v-if="detail.payVoucher" class="order-img" :src="detail.payVoucher"
@click="handleEnlargeImg(detail.payVoucher)">
<el-form-item label="收款凭证:" class="photoItem">
<img v-if="detail.payVoucher || detail.payOrder.payVoucher" class="order-img"
:src="detail.payVoucher || detail.payOrder.payVoucher"
@click="handleEnlargeImg(detail.payVoucher || detail.payOrder.payVoucher)">
<span v-else>无</span>
</el-form-item>
<el-form-item label="退款订单:" v-if="detail.status == 12">
......@@ -56,9 +57,9 @@
</p>
<el-form class="edit-sub-block" :inline="true">
<el-form-item label="用户姓名:">
{{ detail.customerName }}
{{ detail.customerName || $$(detail, 'customer', 'customerName') }}
</el-form-item>
<!-- <el-form-item label="车架号:">
<!-- <el-form-item label="车架号:">
{{ detail.standNo }}
</el-form-item> -->
<el-form-item label="评论:">
......@@ -74,12 +75,13 @@
<el-form-item label="客户签名:" class="photoItem" v-if="detail.electronicSignature">
<img class="order-img" :src="detail.electronicSignature"
@click="handleEnlargeImg(detail.electronicSignature)">
<!-- <span v-else>无</span> -->
</el-form-item>
<el-form-item label="客户车辆施工图片:" class="photoItem" v-if="detail.customerPhotos">
<img v-for="(item, index) in detail.customerPhotos" :key="index" class="order-img" :src="item.customerPhoto"
<el-form-item label="客户车辆施工图片:" class="photoItem photoItemList" v-if="detail.customerPhotos">
<!-- <span v-for="(itemtest, indexTest) in 10" :key="index"> -->
<img v-for="(item, index) in detail.customerPhotos" :key="index" class="img" :src="item.customerPhoto"
@click="handleEnlargeImg(item.customerPhoto)">
<!-- <span v-else>无</span> -->
<!-- </span> -->
</el-form-item>
</el-form>
</div>
......@@ -131,7 +133,7 @@
<el-table-column :prop="'upgradeGoodsTypeName'" align="center" label="商品分类" />
<el-table-column :prop="'upgradeBrandMerchantName'" align="center" label="品牌商" />
<el-table-column :prop="'upgradePrice'" align="center" label="商品售价" />
<!-- <el-table-column
<!-- <el-table-column
prop="upgradeDiscount"
align="center"
label="优惠折扣">
......@@ -198,9 +200,8 @@ import { mapActions } from 'vuex'
import signRefundDialog from './signRefundDialog'
import { deepClone } from '@/common/util'
import { payType } from '@/common/constants.js'
// import { getOrderDetail } from '@api/order'
import dayjs from 'dayjs'
import { getList, goodsOrderDetail } from '@api/order'
import { goodsOrderDetail } from '@api/order'
export default {
name: 'OrderDetail',
components: {
......@@ -341,9 +342,11 @@ export default {
getGoodsOrderDetail() {
const routerParams = this.$route.params.detail
goodsOrderDetail({ orderCode: routerParams?.orderCode || '230331185108355' }).then(res => {
goodsOrderDetail({ orderCode: routerParams?.orderCode }).then(res => {
console.log(res)
this.detail = res
const clientSignatureDTOList = res.clientSignatureDTOList[0] || []
this.detail = Object.assign(clientSignatureDTOList, res)
// const orderInfo = res
if (this.detail.source == 7) {
this.detail.createdDate = dayjs(this.detail.createdDate).format('YYYY-MM-DD HH:mm:ss')
}
......@@ -359,6 +362,7 @@ export default {
this.detail.evaluation = evaluateList.reduce((prev, item) => {
return prev + ' ' + evaluateLabelList[item]
}, '')
// this.detail = Object.assign(this.detail, res)
// this.detail = Object.assign(res, res.payOrder)
})
......@@ -429,6 +433,24 @@ export default {
}
.photoItem {
height: 100px;
// display: flex;
min-height: 100px;
.el-form-item__content {
height: auto !important;
}
}
.order-detail .form_gp .el-form-item.photoItemList {
// width: 400px;
display: flex;
width: auto;
height: auto;
.img {
width: 80px;
height: 80px;
margin-left: 10px;
}
}
</style>
......@@ -10,22 +10,22 @@
<div class="multiple-type" v-for="(item, index) in formObjConfig" :key="index">
<!-- <template v-if=""></template> -->
<el-form-item :prop="item.typeName" :rules="[{
required: true,
message: item.message,
trigger: 'blur'
}]" label-width="234px" :label="item.label">
required: true,
message: item.message,
trigger: 'blur'
}]" label-width="234px" :label="item.label">
<el-select class="w432" v-model="formObj[item.typeName]" placeholder="请选择对账费用">
<el-option v-for="(optionsItem, optionsIndex) in item.options" :key="optionsIndex"
:label="optionsItem.label" :value="optionsItem.expenseCategoryCalculateType"></el-option>
</el-select>
</el-form-item>
<el-form-item label-width="0px" :prop="item.valueName" :rules="[
{ required: true, message: '请输入', trigger: 'blur' },
{
pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
message: '请输入正确额格式,可保留两位小数'
}
]" class="ml20">
{ required: true, message: '请输入', trigger: 'blur' },
{
pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
message: '请输入正确额格式,可保留两位小数'
}
]" class="ml20">
<el-input v-model="formObj[item.valueName]" v-if="formObj[item.typeName] == 3" type="number"
oninput="if(value>999999)value=999999;if(value<0)value=0"></el-input>
<el-input v-model="formObj[item.valueName]" v-else type="number"
......@@ -345,7 +345,7 @@ export default {
return false
}
// 删除子组件中对应的数据
this.deletedetailItems(targetName)
// this.deletedetailItems(targetName)
// console.log(`classification${targetName}`)
// 去除对应关闭tab下已选的商品
const childCop = this.$refs[`classification${targetName}`][0]
......@@ -388,14 +388,14 @@ export default {
})
},
// 删除子组件中对应的数据
deletedetailItems(targetName) {
// 获取点击删除的0时候的下标
this.editableTabs.forEach((tab, index) => {
if (tab.name === targetName) {
deleteIndex = index
}
})
},
// deletedetailItems(targetName) {
// // 获取点击删除的0时候的下标
// this.editableTabs.forEach((tab, index) => {
// if (tab.name === targetName) {
// deleteIndex = index
// }
// })
// },
deleteGoodsItem(item) {
this.goodsSelectList = this.goodsSelectList.filter(
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!