Commit 2270b9b5 by 前端

Merge branch 'SAAS+V5.1.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.1.0
2 parents c1b55c9c 968e3ebd
...@@ -409,7 +409,8 @@ export default { ...@@ -409,7 +409,8 @@ export default {
couponDate: '', couponDate: '',
toShopDate: '', toShopDate: '',
merchantId: '', merchantId: '',
inviteMode: '' // inviteMode: '',
trafficEffectiveness: ''
} }
this.$refs.recordListTable.refreshTable() this.$refs.recordListTable.refreshTable()
}, },
......
...@@ -102,7 +102,10 @@ export default { ...@@ -102,7 +102,10 @@ export default {
} }
}, { }, {
label: '备注', label: '备注',
prop: 'remark' prop: 'remark',
formatter: (cellValue) => {
return cellValue.remark || '无'
}
}] }]
}, },
// 基本数据 // 基本数据
......
...@@ -637,6 +637,7 @@ export default { ...@@ -637,6 +637,7 @@ export default {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
color: #333333; color: #333333;
margin-right: 20px;
} }
.icon { .icon {
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
发货单号: 发货单号:
<span>{{ detailInfo.deliveryNumber }}</span> <span>{{ detailInfo.deliveryNumber }}</span>
</div> </div>
<!-- <div> <div>
发货仓库: 发货仓库:
<span>{{ detailInfo.shippingWarehouseName }}</span> <span>{{ detailInfo.shippingWarehouseName }}</span>
</div> --> </div>
<div> <div>
承运公司: 承运公司:
<span>{{ detailInfo.deliveryCompany }}</span> <span>{{ detailInfo.deliveryCompany }}</span>
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<script> <script>
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { factoryView, factoryUpdate } from '@/api/purchaseShopping.js' import { factoryView, factoryUpdate, deliveryPdf } from '@/api/purchaseShopping.js'
import { baseConfig } from '@/main' import { baseConfig } from '@/main'
export default { export default {
...@@ -278,7 +278,7 @@ export default { ...@@ -278,7 +278,7 @@ export default {
}, },
handleSign(row) { handleSign(row) {
const params = { const params = {
id: row.orderDeliveryId id: row.id
} }
deliveryPdf(params).then((res) => { deliveryPdf(params).then((res) => {
console.log(res) console.log(res)
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<auth-button category="Button" :show-btn-ids="['9090704']" /> <auth-button category="Button" :show-btn-ids="['9090704']" />
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams" :get-list-api="getListApi" @selectionTable="handleSelectionTable" :before-search-fn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams" :get-list-api="getListApi" @selectionTable="handleSelectionTable" :before-search-fn="beforeSearchFn" @searchChange="searchChange" @setTableFinishFun="setTableFinishFun">
<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="">
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</div> </div>
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;" v-if="scope.scope.deliveryStatus != 1">
<auth-button :data="scope.scope" :show-btn-ids="['9090701']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090701']" />
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
...@@ -165,20 +165,6 @@ export default { ...@@ -165,20 +165,6 @@ export default {
maxlength: 50 maxlength: 50
}, },
{ {
label: '订单编号',
name: 'orderCode',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '下单商户',
name: 'merchantName',
type: 'input',
isClear: true,
maxlength: 50
},
{
label: '发货状态', label: '发货状态',
name: 'deliveryStatus', name: 'deliveryStatus',
type: 'select', type: 'select',
...@@ -193,6 +179,20 @@ export default { ...@@ -193,6 +179,20 @@ export default {
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 50 maxlength: 50
},
{
label: '订单编号',
name: 'orderCode',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '下单商户',
name: 'merchantName',
type: 'input',
isClear: true,
maxlength: 50
} }
], ],
selectedList: [], selectedList: [],
...@@ -395,6 +395,10 @@ export default { ...@@ -395,6 +395,10 @@ export default {
this.$set(this.dialogData, 'deliveryNumber', event.replace(/[^a-zA-Z0-9]/g, '')) this.$set(this.dialogData, 'deliveryNumber', event.replace(/[^a-zA-Z0-9]/g, ''))
}, },
searchChange() {
this.clearMutiSelect = true
},
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = deepClone(this.searchForm) this.tableSearchForm = deepClone(this.searchForm)
...@@ -431,7 +435,8 @@ export default { ...@@ -431,7 +435,8 @@ export default {
for (const key in this.searchForm) { for (const key in this.searchForm) {
this.searchForm[key] = '' this.searchForm[key] = ''
} }
this.$refs.purchaseAndDeliveryTable.refreshTable() this.clearMutiSelect = true
this.$refs.purchaseAndDeliveryTable.refreshTable(true)
}, },
handleExport() { handleExport() {
// this.filterSearchTime() // this.filterSearchTime()
...@@ -539,7 +544,7 @@ export default { ...@@ -539,7 +544,7 @@ export default {
}, },
getMutiDate() { getMutiDate() {
console.log(this.$refs.purchaseAndDeliveryTable) console.log(this.$refs.purchaseAndDeliveryTable)
var selectedData = this.$refs.purchaseAndDeliveryTable.mutiSelectArr[this.tableParams.mutiSelectName] var selectedData = this.$refs.purchaseAndDeliveryTable.mutiSelectArr[this.tableParams.mutiSelectName] || []
let deleteIds = [] let deleteIds = []
this.selectedList.forEach(item => { this.selectedList.forEach(item => {
if (!this.$refs.purchaseAndDeliveryTable.data.map(k => k.id).includes(item.id) && !selectedData.map(k => k.id).includes(item.id)) { if (!this.$refs.purchaseAndDeliveryTable.data.map(k => k.id).includes(item.id) && !selectedData.map(k => k.id).includes(item.id)) {
......
...@@ -92,8 +92,8 @@ export default { ...@@ -92,8 +92,8 @@ export default {
label: '发货时间', label: '发货时间',
name: 'deliveryDate', name: 'deliveryDate',
type: 'datePicker', type: 'datePicker',
isClear: true, isClear: true
pickerOptions: 'rangePickerOptions' // pickerOptions: 'rangePickerOptions'
}, { }, {
label: '所属订单', label: '所属订单',
name: 'orderCode', name: 'orderCode',
...@@ -145,11 +145,11 @@ export default { ...@@ -145,11 +145,11 @@ export default {
} }
}, { }, {
label: '所属商户', label: '所属商户',
prop: 'merchantName', prop: 'merchantName'
width: '150px'
}, { }, {
label: '状态', label: '状态',
prop: 'putStatus', prop: 'putStatus',
width: '120px',
formatter: (cellValue) => { formatter: (cellValue) => {
return this.baseData.invouceType.find(item => item.confId === cellValue.putStatus)?.confName return this.baseData.invouceType.find(item => item.confId === cellValue.putStatus)?.confName
}, },
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<auth-button category="Button" :show-btn-ids="['9090405']" /> <auth-button category="Button" :show-btn-ids="['9090405']" />
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams" :get-list-api="getListApi" @selectionTable="handleSelectionTable" :before-search-fn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @current-change="handleCurrentChange"> <d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams" :get-list-api="getListApi" @selectionTable="handleSelectionTable" :before-search-fn="beforeSearchFn" @searchChange="searchChange" @setTableFinishFun="setTableFinishFun" @current-change="handleCurrentChange">
<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="">
...@@ -36,13 +36,19 @@ ...@@ -36,13 +36,19 @@
</el-tooltip> </el-tooltip>
<div v-else>-</div> <div v-else>-</div>
</div> </div>
<div slot="remark" slot-scope="scope">
<el-tooltip v-if="scope.scope.remark" effect="dark" placement="top" :content="scope.scope.remark">
<span class="one-line-ellipsis">{{ scope.scope.remark }}</span>
</el-tooltip>
<div v-else>-</div>
</div>
<div slot="auth-button" slot-scope="scope" width="400"> <div slot="auth-button" slot-scope="scope" width="400">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px"> <span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
<span v-if="scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3)" style="margin-right: 10px"> <span v-if="scope.scope.refundStatus != 'Y' && (scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3) && scope.scope.distributionStatus == 0" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090402']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090402']" />
</span> </span>
<!-- 分配 --> <!-- 分配 -->
...@@ -50,11 +56,11 @@ ...@@ -50,11 +56,11 @@
<auth-button :data="scope.scope" :show-btn-ids="['9090404']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090404']" />
</span> </span>
<!-- 驳回 --> <!-- 驳回 -->
<span v-if="scope.scope.purchaseOrderDeliveryStatus == 1"> <span v-if="scope.scope.purchaseOrderDeliveryStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090403']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090403']" />
</span> </span>
<!-- 结束 --> <!-- 结束 -->
<span v-if="scope.scope.purchaseOrderDeliveryStatus == 3"> <span v-if="scope.scope.purchaseOrderDeliveryStatus == 3" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090406']" /> <auth-button :data="scope.scope" :show-btn-ids="['9090406']" />
</span> </span>
</div> </div>
...@@ -250,8 +256,8 @@ export default { ...@@ -250,8 +256,8 @@ export default {
label: "下单时间", label: "下单时间",
name: "placeOrderTimeStr", name: "placeOrderTimeStr",
type: "datePicker", type: "datePicker",
isClear: true, isClear: true
pickerOptions: "rangePickerOptions" // pickerOptions: "rangePickerOptions"
}, },
{ {
label: "下单商户", label: "下单商户",
...@@ -298,8 +304,8 @@ export default { ...@@ -298,8 +304,8 @@ export default {
label: "审核时间", label: "审核时间",
name: "reviewedTimeStr", name: "reviewedTimeStr",
type: "datePicker", type: "datePicker",
isClear: true, isClear: true
pickerOptions: "rangePickerOptions" // pickerOptions: "rangePickerOptions"
}, },
{ {
label: "发货方", label: "发货方",
...@@ -365,7 +371,9 @@ export default { ...@@ -365,7 +371,9 @@ export default {
}, },
{ {
label: "备注", label: "备注",
prop: "remark" prop: "remark",
addHtml: 'remark',
width: '104px'
}, },
{ {
label: "已发货数量", label: "已发货数量",
...@@ -597,6 +605,10 @@ export default { ...@@ -597,6 +605,10 @@ export default {
) )
}, },
searchChange() {
this.clearMutiSelect = true
},
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise((resolve) => {
var selectedData = this.$refs?.purchaseAndDeliveryTable?.mutiSelectArr[this.tableParams.mutiSelectName] || [] var selectedData = this.$refs?.purchaseAndDeliveryTable?.mutiSelectArr[this.tableParams.mutiSelectName] || []
...@@ -650,7 +662,8 @@ export default { ...@@ -650,7 +662,8 @@ export default {
for (const key in this.searchForm) { for (const key in this.searchForm) {
this.searchForm[key] = "" this.searchForm[key] = ""
} }
this.$refs.purchaseAndDeliveryTable.refreshTable() this.clearMutiSelect = true
this.$refs.purchaseAndDeliveryTable.refreshTable(true)
}, },
handleExport() { handleExport() {
this.filterSearchTime() this.filterSearchTime()
...@@ -717,7 +730,7 @@ export default { ...@@ -717,7 +730,7 @@ export default {
handleBatchAllocat() { handleBatchAllocat() {
this.selectedList = this.getMutiDate() this.selectedList = this.getMutiDate()
if (this.selectedList.length == 0) { if (this.selectedList.length == 0) {
this.notice.errorTips('请选择要发货的订单') this.notice.errorTips('请选择要分配的订单')
return true return true
} }
if (this.selectedList.filter(item => item.deliveryStatus != 1).length) { if (this.selectedList.filter(item => item.deliveryStatus != 1).length) {
...@@ -762,8 +775,7 @@ export default { ...@@ -762,8 +775,7 @@ export default {
}, },
getMutiDate() { getMutiDate() {
console.log(this.$refs.purchaseAndDeliveryTable) var selectedData = this.$refs.purchaseAndDeliveryTable.mutiSelectArr[this.tableParams.mutiSelectName] || []
var selectedData = this.$refs.purchaseAndDeliveryTable.mutiSelectArr[this.tableParams.mutiSelectName]
let deleteIds = [] let deleteIds = []
this.selectedList.forEach(item => { this.selectedList.forEach(item => {
if (!this.$refs.purchaseAndDeliveryTable.data.map(k => k.id).includes(item.id) && !selectedData.map(k => k.id).includes(item.id)) { if (!this.$refs.purchaseAndDeliveryTable.data.map(k => k.id).includes(item.id) && !selectedData.map(k => k.id).includes(item.id)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!