|
@@ -88,6 +88,50 @@
|
|
</div>
|
|
</div>
|
|
<!-- 物流通知 -->
|
|
<!-- 物流通知 -->
|
|
<div v-show="type === 3" class="table">
|
|
<div v-show="type === 3" class="table">
|
|
|
|
+ <el-form ref="invoiceOrderForm" :model="invoiceOrderForm" label-width="120px" label-position="left" size="mini">
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="8">
|
|
|
|
+ <el-form-item prop="invoiceId" label="发货单">
|
|
|
|
+ <el-input v-model="invoiceOrderForm.invoiceId" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col
|
|
|
|
+ :xs="24"
|
|
|
|
+ :sm="12"
|
|
|
|
+ :lg="8"
|
|
|
|
+ ><el-form-item prop="time" label="发货单时间">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="invoiceOrderForm.time"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ type="daterange"
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
+ range-separator="至"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ /></el-form-item></el-col>
|
|
|
|
+ <el-col
|
|
|
|
+ :xs="24"
|
|
|
|
+ :sm="12"
|
|
|
|
+ :lg="8"
|
|
|
|
+ ><el-form-item prop="userName" label="收货客户">
|
|
|
|
+ <el-input v-model="invoiceOrderForm.userName" /> </el-form-item></el-col>
|
|
|
|
+ <el-col
|
|
|
|
+ :xs="24"
|
|
|
|
+ :sm="12"
|
|
|
|
+ :lg="8"
|
|
|
|
+ ><el-form-item prop="address" label="收货地址">
|
|
|
|
+ <el-input v-model="invoiceOrderForm.address" /> </el-form-item></el-col>
|
|
|
|
+ <el-col
|
|
|
|
+ :xs="24"
|
|
|
|
+ :sm="12"
|
|
|
|
+ :lg="8"
|
|
|
|
+ ><el-form-item prop="remark" label="内容"> <el-input v-model="invoiceOrderForm.remark" /> </el-form-item></el-col>
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="8">
|
|
|
|
+ <el-button size="mini" @click="handleReset('invoiceOrde')">重置</el-button>
|
|
|
|
+ <el-button size="mini" type="primary" @click="getListInvoiceOrder">查询</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form>
|
|
<el-table
|
|
<el-table
|
|
ref="table"
|
|
ref="table"
|
|
v-loading="listLoading"
|
|
v-loading="listLoading"
|
|
@@ -134,7 +178,7 @@
|
|
<div style="display: flex">
|
|
<div style="display: flex">
|
|
<el-input v-model="specification" clearable style="margin-right: 10px" />
|
|
<el-input v-model="specification" clearable style="margin-right: 10px" />
|
|
<el-button @click="handleReset">重置</el-button>
|
|
<el-button @click="handleReset">重置</el-button>
|
|
- <el-button type="primary" @click="getArrivalNotice">查询</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="getArrivalNotice">查询</el-button>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -224,10 +268,10 @@
|
|
:preview-src-list="[imageURL + item.url]"
|
|
:preview-src-list="[imageURL + item.url]"
|
|
/>
|
|
/>
|
|
<div v-else class="box2" @click="openLink(item.url)">
|
|
<div v-else class="box2" @click="openLink(item.url)">
|
|
- <img v-if="checkFileType(item.url) == 'word'" src="@/assets/common/word.png" />
|
|
|
|
- <img v-if="checkFileType(item.url) == 'excel'" src="@/assets/common/excel.png" />
|
|
|
|
- <img v-if="checkFileType(item.url) == 'ppt'" src="@/assets/common/ppt.png" />
|
|
|
|
- <img v-if="checkFileType(item.url) == 'pdf'" src="@/assets/common/pdf.png" />
|
|
|
|
|
|
+ <img v-if="checkFileType(item.url) == 'word'" src="@/assets/common/word.png">
|
|
|
|
+ <img v-if="checkFileType(item.url) == 'excel'" src="@/assets/common/excel.png">
|
|
|
|
+ <img v-if="checkFileType(item.url) == 'ppt'" src="@/assets/common/ppt.png">
|
|
|
|
+ <img v-if="checkFileType(item.url) == 'pdf'" src="@/assets/common/pdf.png">
|
|
<div class="name ellipsis-3">{{ item.name }}</div>
|
|
<div class="name ellipsis-3">{{ item.name }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -289,6 +333,7 @@ import { getArrivalNotice } from '@/api/stock'
|
|
import { getListOrderTrack } from '@/api/supply/pickup'
|
|
import { getListOrderTrack } from '@/api/supply/pickup'
|
|
import { getFileUrl } from '@/api/common'
|
|
import { getFileUrl } from '@/api/common'
|
|
export default {
|
|
export default {
|
|
|
|
+ // eslint-disable-next-line vue/require-prop-types
|
|
props: ['mesType'],
|
|
props: ['mesType'],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -309,6 +354,15 @@ export default {
|
|
logisticsDetail: [],
|
|
logisticsDetail: [],
|
|
arrivalNoticeList: [],
|
|
arrivalNoticeList: [],
|
|
specification: '',
|
|
specification: '',
|
|
|
|
+ invoiceOrderForm: {
|
|
|
|
+ time: [],
|
|
|
|
+ invoiceId: '',
|
|
|
|
+ address: '',
|
|
|
|
+ startTime: '',
|
|
|
|
+ endTime: '',
|
|
|
|
+ remark: '',
|
|
|
|
+ userName: ''
|
|
|
|
+ },
|
|
fnArr: ['getDataList', 'getFileList', 'getRebateList', 'getListInvoiceOrder', 'getArrivalNotice']
|
|
fnArr: ['getDataList', 'getFileList', 'getRebateList', 'getListInvoiceOrder', 'getArrivalNotice']
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -367,9 +421,14 @@ export default {
|
|
},
|
|
},
|
|
// 获取物流列表
|
|
// 获取物流列表
|
|
async getListInvoiceOrder() {
|
|
async getListInvoiceOrder() {
|
|
|
|
+ const time = this.invoiceOrderForm.time
|
|
|
|
+ delete this.invoiceOrderForm.time
|
|
const data = {
|
|
const data = {
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
- pageNum: this.currentPage
|
|
|
|
|
|
+ pageNum: this.currentPage,
|
|
|
|
+ ...this.invoiceOrderForm,
|
|
|
|
+ startTime: time.length ? time[0] : '',
|
|
|
|
+ endTime: time.length ? time[1] : ''
|
|
}
|
|
}
|
|
const res = await getListInvoiceOrder(data)
|
|
const res = await getListInvoiceOrder(data)
|
|
this.invoiceOrderList = res.data.records
|
|
this.invoiceOrderList = res.data.records
|
|
@@ -385,11 +444,16 @@ export default {
|
|
this.arrivalNoticeList = res.data.records
|
|
this.arrivalNoticeList = res.data.records
|
|
this.listTotal = res.data.total
|
|
this.listTotal = res.data.total
|
|
},
|
|
},
|
|
- handleReset() {
|
|
|
|
|
|
+ handleReset(type) {
|
|
this.pageSize = 10
|
|
this.pageSize = 10
|
|
this.pageNum = 1
|
|
this.pageNum = 1
|
|
- this.specification = ''
|
|
|
|
- this.getArrivalNotice()
|
|
|
|
|
|
+ if (type) {
|
|
|
|
+ this.$refs.invoiceOrderForm.resetFields()
|
|
|
|
+ this.getListInvoiceOrder()
|
|
|
|
+ } else {
|
|
|
|
+ this.specification = ''
|
|
|
|
+ this.getArrivalNotice()
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 更改每页数量
|
|
// 更改每页数量
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
@@ -487,4 +551,11 @@ export default {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
+::v-deep .el-form-item--mini .el-form-item__content, ::v-deep .el-form-item--mini .el-form-item__label{
|
|
|
|
+ line-height: 27px;
|
|
|
|
+}
|
|
|
|
+::v-deep .el-range-editor--mini .el-range-separator {
|
|
|
|
+ line-height: 27px;
|
|
|
|
+}
|
|
|
|
+</style>
|