Commit 8601521c by wangzhihui

```

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

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