|
@@ -34,9 +34,7 @@
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-model-item label="省份">
|
|
|
<a-form-model-item prop="provinceSn">
|
|
|
- <a-select id="shortageStatisticsCList-provinceSn" allowClear v-model="queryParam.provinceSn" placeholder="请选择省">
|
|
|
- <a-select-option v-for="item in addrProvinceList" :value="item.areaSn" :key="item.areaSn + 'a'">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
+ <Area id="shortageStatisticsCList-provinceSn" v-model="queryParam.provinceSn" placeholder="请选择省"></Area>
|
|
|
</a-form-model-item>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
@@ -132,8 +130,6 @@
|
|
|
bordered>
|
|
|
<!-- 单号 -->
|
|
|
<template slot="salesBillNo" slot-scope="text, record">
|
|
|
- <!-- <span style="color: #ed1c24;cursor: pointer;" v-if="$hasPermissions('B_salesDetail')" @click="handleDetail(record)">{{ record.salesBillNo }}</span>
|
|
|
- <span v-else>{{ record.salesBillNo }}</span> -->
|
|
|
{{ record.salesBillNo }}
|
|
|
</template>
|
|
|
</s-table>
|
|
@@ -149,15 +145,14 @@ import { STable, VSelect } from '@/components'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import custList from '@/views/common/custList.vue'
|
|
|
import subarea from '@/views/common/subarea.js'
|
|
|
-import { getArea } from '@/api/data'
|
|
|
+import Area from '@/views/common/area.js'
|
|
|
import { productTypeQuery } from '@/api/productType'
|
|
|
-import { productBrandQuery } from '@/api/productBrand'
|
|
|
import ProductBrand from '@/views/common/productBrand.js'
|
|
|
import { oosBuyerList, oosBuyerDetailCount, oosBuyerDetailPageCount, oosDetailExport } from '@/api/oos'
|
|
|
export default {
|
|
|
name: 'ShortageStatisticsCList',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { STable, VSelect, custList, subarea, rangeDate, ProductBrand },
|
|
|
+ components: { STable, VSelect, custList, subarea, Area, rangeDate, ProductBrand },
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
@@ -208,8 +203,6 @@ export default {
|
|
|
return data
|
|
|
})
|
|
|
},
|
|
|
- addrProvinceList: [], // 省下拉
|
|
|
- productBrandList: [], // 品牌下拉数据
|
|
|
productType: [],
|
|
|
productTypeList: [], // 分类下拉数据
|
|
|
productTotal: null,
|
|
@@ -361,52 +354,12 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 产品品牌 列表
|
|
|
- getProductBrand () {
|
|
|
- productBrandQuery({}).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.productBrandList = res.data
|
|
|
- } else {
|
|
|
- this.productBrandList = []
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- // 省/市/区
|
|
|
- getArea (leve, sn) {
|
|
|
- let params
|
|
|
- if (leve == 'province') {
|
|
|
- params = { type: '2' }
|
|
|
- } else {
|
|
|
- params = { parentId: sn, type: leve == 'city' ? '3' : '4' }
|
|
|
- }
|
|
|
- getArea(params).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- if (leve == 'province') {
|
|
|
- this.addrProvinceList = res.data || []
|
|
|
- } else if (leve == 'city') {
|
|
|
- this.addrCityList = res.data || []
|
|
|
- } else if (leve == 'district') {
|
|
|
- this.addrDistrictList = res.data || []
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (leve == 'province') {
|
|
|
- this.addrProvinceList = []
|
|
|
- } else if (leve == 'city') {
|
|
|
- this.addrCityList = []
|
|
|
- } else if (leve == 'district') {
|
|
|
- this.addrDistrictList = []
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
pageInit () {
|
|
|
const _this = this
|
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
|
_this.setTableH()
|
|
|
})
|
|
|
this.getProductType()
|
|
|
- this.getProductBrand()
|
|
|
- this.getArea('province')
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|