|
@@ -7,12 +7,12 @@
|
|
<a-row :gutter="15">
|
|
<a-row :gutter="15">
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="创建时间">
|
|
<a-form-item label="创建时间">
|
|
- <rangeDate ref="rangeDate" :value="time" @change="dateChange" />
|
|
|
|
|
|
+ <rangeDate id="urgentItemsOffsetList-creatDate" ref="rangeDate" :value="time" @change="dateChange" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="客户名称">
|
|
<a-form-item label="客户名称">
|
|
- <custList ref="custList" v-model="queryParam.buyerNameCurrent"></custList>
|
|
|
|
|
|
+ <custList id="urgentItemsOffsetList-custList" ref="custList" v-model="queryParam.buyerNameCurrent"></custList>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
@@ -42,7 +42,7 @@
|
|
<v-select
|
|
<v-select
|
|
v-model="queryParam.status"
|
|
v-model="queryParam.status"
|
|
ref="status"
|
|
ref="status"
|
|
- id="chainTransferInList-status"
|
|
|
|
|
|
+ id="urgentItemsOffsetList-status"
|
|
code="URGENT_STATUS"
|
|
code="URGENT_STATUS"
|
|
placeholder="请选择状态"
|
|
placeholder="请选择状态"
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
@@ -52,7 +52,7 @@
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="urgentItemsOffsetList-refresh">查询</a-button>
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="urgentItemsOffsetList-refresh">查询</a-button>
|
|
<a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="urgentItemsOffsetList-reset">重置</a-button>
|
|
<a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="urgentItemsOffsetList-reset">重置</a-button>
|
|
- <a @click="advanced=!advanced" style="margin-left: 8px">
|
|
|
|
|
|
+ <a @click="advanced=!advanced" style="margin-left: 8px" id="urgentItemsOffsetList-advanced">
|
|
{{ advanced ? '收起' : '展开' }}
|
|
{{ advanced ? '收起' : '展开' }}
|
|
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
</a>
|
|
</a>
|
|
@@ -74,7 +74,7 @@
|
|
bordered>
|
|
bordered>
|
|
<!-- 单号 -->
|
|
<!-- 单号 -->
|
|
<template slot="urgentBillNo" slot-scope="text, record">
|
|
<template slot="urgentBillNo" slot-scope="text, record">
|
|
- <span class="table-td-link" v-if="$hasPermissions('M_urgentDetail')" @click="handleDetail(record)">{{ record.urgentBillNo }}</span>
|
|
|
|
|
|
+ <span class="table-td-link" :id="'urgentItemsOffsetDetail-view-'+record.id" v-if="$hasPermissions('M_urgentDetail')" @click="handleDetail(record)">{{ record.urgentBillNo }}</span>
|
|
<span v-else>{{ record.urgentBillNo }}</span>
|
|
<span v-else>{{ record.urgentBillNo }}</span>
|
|
</template>
|
|
</template>
|
|
<!-- 状态 -->
|
|
<!-- 状态 -->
|
|
@@ -89,7 +89,7 @@
|
|
v-if="record.status == 'WAIT' && $hasPermissions('B_urgentWriteDown')"
|
|
v-if="record.status == 'WAIT' && $hasPermissions('B_urgentWriteDown')"
|
|
@click="handleWriteDown(record)"
|
|
@click="handleWriteDown(record)"
|
|
class="button-primary"
|
|
class="button-primary"
|
|
- id="urgentItemsOffsetDetail-btn-submit">冲减</a-button>
|
|
|
|
|
|
+ :id="'urgentItemsOffsetDetail-writeDown-'+record.id">冲减</a-button>
|
|
<span v-else>--</span>
|
|
<span v-else>--</span>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
@@ -99,12 +99,14 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
|
+import getDate from '@/libs/getDate.js'
|
|
import { urgentList, urgentWriteDown } from '@/api/urgent'
|
|
import { urgentList, urgentWriteDown } from '@/api/urgent'
|
|
|
|
+// 组件
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import stateIcon from '@/views/common/stateIcon'
|
|
import stateIcon from '@/views/common/stateIcon'
|
|
import custList from '@/views/common/custList.vue'
|
|
import custList from '@/views/common/custList.vue'
|
|
-import getDate from '@/libs/getDate.js'
|
|
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'UrgentOffsetList',
|
|
name: 'UrgentOffsetList',
|
|
components: { STable, VSelect, rangeDate, custList, stateIcon },
|
|
components: { STable, VSelect, rangeDate, custList, stateIcon },
|
|
@@ -112,15 +114,15 @@ export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
- tableHeight: 0,
|
|
|
|
|
|
+ tableHeight: 0, // 表格高度
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
- time: [
|
|
|
|
|
|
+ time: [ // 创建时间默认值
|
|
getDate.getCurrMonthDays().starttime,
|
|
getDate.getCurrMonthDays().starttime,
|
|
getDate.getCurrMonthDays().endtime
|
|
getDate.getCurrMonthDays().endtime
|
|
],
|
|
],
|
|
queryParam: { // 查询条件
|
|
queryParam: { // 查询条件
|
|
- beginDate: getDate.getCurrMonthDays().starttime,
|
|
|
|
- endDate: getDate.getCurrMonthDays().endtime,
|
|
|
|
|
|
+ beginDate: getDate.getCurrMonthDays().starttime, // 开始时间
|
|
|
|
+ endDate: getDate.getCurrMonthDays().endtime, // 结束时间
|
|
buyerNameCurrent: undefined, // 客户名称
|
|
buyerNameCurrent: undefined, // 客户名称
|
|
bizBillNo: '', // 关联单号
|
|
bizBillNo: '', // 关联单号
|
|
urgentBillNo: '', // 急件单号
|
|
urgentBillNo: '', // 急件单号
|
|
@@ -162,7 +164,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- // 时间 change
|
|
|
|
|
|
+ // 创建时间选择
|
|
dateChange (date) {
|
|
dateChange (date) {
|
|
this.queryParam.beginDate = date[0]
|
|
this.queryParam.beginDate = date[0]
|
|
this.queryParam.endDate = date[1]
|
|
this.queryParam.endDate = date[1]
|
|
@@ -188,7 +190,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 重置
|
|
|
|
|
|
+ // 重置列表
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
this.$refs.rangeDate.resetDate(this.time)
|
|
this.$refs.rangeDate.resetDate(this.time)
|
|
this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
|
|
this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
|
|
@@ -201,16 +203,18 @@ export default {
|
|
this.$refs.custList.resetForm()
|
|
this.$refs.custList.resetForm()
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
- // 详情
|
|
|
|
|
|
+ // 查看详情
|
|
handleDetail (row) {
|
|
handleDetail (row) {
|
|
- this.$router.push({ path: `/salesManagement/urgentItemsOffset/detail/${row.urgentBillSn}` })
|
|
|
|
|
|
+ this.$router.push({ name: 'urgentItemsOffsetDetail', params: { sn: row.urgentBillSn } })
|
|
},
|
|
},
|
|
|
|
+ // 页面初始化
|
|
pageInit () {
|
|
pageInit () {
|
|
const _this = this
|
|
const _this = this
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
_this.setTableH()
|
|
_this.setTableH()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 计算表格高度
|
|
setTableH () {
|
|
setTableH () {
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
this.tableHeight = window.innerHeight - tableSearchH - 195
|
|
this.tableHeight = window.innerHeight - tableSearchH - 195
|
|
@@ -223,6 +227,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
|
|
+ // 展开收起
|
|
advanced (newValue, oldValue) {
|
|
advanced (newValue, oldValue) {
|
|
const _this = this
|
|
const _this = this
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|