Commit 8601521c by wangzhihui

```

feat(purchaseOrder): 新增调拨订单相关字段显示

- 在采购订单详情对话框中新增是否转调拨、调入方门店、调入方仓库、
  调出方门店、调出方仓库等字段的显示
- 在采购订单列表页面添加仅查看调拨订单的筛选开关
- 新增关联调拨单号字段显示
- 优化代码格式,移除多余空格和换行
```
1 parent b11c4057
<template>
<GLDialog v-if="dialogShow" bigTitle="详细信息" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false"
@onOk="dialogShow = false" @onCancel="dialogShow = false" :hasFooter="false">
<GLDialog v-if="dialogShow" bigTitle="详细信息" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false" @onOk="dialogShow = false" @onCancel="dialogShow = false" :hasFooter="false">
<div class="detail-content" v-if="dialogShow">
<div class="addressTitle">
<img src="@/images/addressIcon.webp" alt="" class="icon" />
......@@ -17,8 +16,7 @@
</span>
<span class="address">
收货地址:
<span class="label">{{ detailInfo.provinceName }}{{ detailInfo.cityName }}{{ detailInfo.areaName }}{{
detailInfo.contactAddress }}</span>
<span class="label">{{ detailInfo.provinceName }}{{ detailInfo.cityName }}{{ detailInfo.areaName }}{{ detailInfo.contactAddress }}</span>
</span>
<span class="address" v-if="detailInfo.purchaseOrderRemark">
备注:
......@@ -30,8 +28,7 @@
</span>
</div>
<div class="table-class">
<GLTable ref="purchaseOrderDetailTable" :tableParams="tableParams" @refreshTable="refreshTable"
:tableData="detailInfo.tableData" :pageConf="pageConf" :tableTotal="detailInfo.tableTotal">
<GLTable ref="purchaseOrderDetailTable" :tableParams="tableParams" @refreshTable="refreshTable" :tableData="detailInfo.tableData" :pageConf="pageConf" :tableTotal="detailInfo.tableTotal">
<template slot="film" slot-scope="scope">
<el-tooltip v-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1" placement="top">
<div class="film-txt">(...{{ scope.scope.filmRollList.length }})</div>
......@@ -40,26 +37,27 @@
<div v-for="(item, index) in scope.scope.filmRollList" :key="index">{{ item }}</div>
</div>
</el-tooltip>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">{{
scope.scope.filmRollList[0] }}</div>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">{{ scope.scope.filmRollList[0] }}</div>
<div v-else>--</div>
</template>
<template slot="upgradeGoodsName" slot-scope="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'" class="return" src="@/assets/retrun.png" alt="">
<img v-if="scope.scope.refundStatus == 'Y'" class="return" src="@/assets/retrun.png" alt="" />
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template slot="carName" slot-scope="scope">
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" placement="top">
<div slot="content" class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">{{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}` }}</div>
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">{{ `${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}` }}</div>
</div>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
<div v-else>--</div>
</template>
<template slot="isAllocateHtml" slot-scope="scope">
<el-checkbox :checked="scope.scope.isAllocate === 1" disabled />
</template>
</GLTable>
</div>
</div>
......@@ -77,15 +75,17 @@ export default {
},
paramsObj: {
type: Object,
default: () => { }
default: () => {}
}
},
filters: {
formatCar(list) {
console.log(list, 'list')
let str = list.map(item => {
return `${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}).join(',')
let str = list
.map(item => {
return `${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
})
.join(',')
return str.length > 15 ? str.substring(0, 15) + '...' : str
}
},
......@@ -101,7 +101,6 @@ export default {
this.$emit('update:visible', val)
}
}
},
data() {
return {
......@@ -131,7 +130,7 @@ export default {
label: '适用车型',
prop: 'carName',
addHtml: 'carName',
width: 200,
width: 200
},
{
label: '系列',
......@@ -157,6 +156,32 @@ export default {
width: 100
},
{
label: '是否转调拨',
prop: 'isAllocate',
addHtml: 'isAllocateHtml',
width: 200
},
{
label: '调入方门店',
prop: 'callInMerchantName',
width: 200
},
{
label: '调入方仓库',
prop: 'callInYqMerchantName',
width: 200
},
{
label: '调出方门店',
prop: 'callOutMerchantName',
width: 200
},
{
label: '调出方仓库',
prop: 'callOutYqMerchantName',
width: 200
},
{
label: '膜卷号',
prop: 'filmRollList',
addHtml: 'film',
......@@ -306,7 +331,7 @@ export default {
font-size: 14px;
color: #666666;
>span {
> span {
margin-right: 20px;
margin-bottom: 10px;
}
......
......@@ -2,7 +2,12 @@
<template>
<div class="purchase">
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset">
<template slot="onlyAllocateOrderHtml">
<el-switch v-model="searchForm.onlyAllocateOrder"></el-switch>
</template>
</GLCombiForm>
<div class="table-header">
<h2>采购订单列表</h2>
<div>
......@@ -72,7 +77,8 @@ export default {
orderTimeStr: [],
putTimeStr: [],
placeOrderTimeStr: [],
warehousingTimeStr: []
warehousingTimeStr: [],
onlyAllocateOrder: false
},
tableSearchForm: {},
paramsObj: {},
......@@ -136,6 +142,11 @@ export default {
optionId: 'id',
optionLabel: 'label',
optionsName: 'purchaseTypeList'
},
{
label: '仅查看调拨订单',
name: 'onlyAllocateOrder',
addHtml: 'onlyAllocateOrderHtml'
}
],
tableButtonList: [
......@@ -253,6 +264,10 @@ export default {
prop: 'merchantName'
},
{
label: '关联调拨单号',
prop: 'relatedAllocateCode'
},
{
label: '采购类型',
prop: 'purchaseType',
formatter: cellValue => {
......@@ -529,7 +544,8 @@ export default {
orderTimeStr: [],
putTimeStr: [],
placeOrderTimeStr: [],
warehousingTimeStr: []
warehousingTimeStr: [],
onlyAllocateOrder: false
}
this.handleSearch()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!