|
@@ -5,45 +5,35 @@
|
|
|
<a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="创建时间">
|
|
|
- <a-range-picker
|
|
|
- style="width:100%"
|
|
|
- id="productInfoList-time"
|
|
|
- :disabledDate="disabledDate"
|
|
|
- v-model="time"
|
|
|
- :format="dateFormat"
|
|
|
- :placeholder="['开始时间', '结束时间']" />
|
|
|
+ <a-form-item label="产品名称">
|
|
|
+ <a-input id="productInfoList-name" v-model.trim="queryParam.name" allowClear placeholder="请输入产品名称"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="产品名称">
|
|
|
- <a-input id="productInfoList-productName" v-model.trim="queryParam.productName" allowClear placeholder="请输入产品名称"/>
|
|
|
+ <a-form-item label="产品编码/原厂编码">
|
|
|
+ <a-input id="productInfoList-queryWord" v-model.trim="queryParam.queryWord" allowClear placeholder="请输入产品编码/原厂编码"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="产品编码/原厂编码">
|
|
|
- <a-input id="productInfoList-productCode" v-model.trim="queryParam.productCode" allowClear placeholder="请输入产品编码"/>
|
|
|
+ <a-form-item label="品牌">
|
|
|
+ <a-select
|
|
|
+ placeholder="请选择"
|
|
|
+ id="productInfoList-productBrandSn"
|
|
|
+ allowClear
|
|
|
+ v-model="queryParam.productBrandSn"
|
|
|
+ :showSearch="true"
|
|
|
+ option-filter-prop="children"
|
|
|
+ :filter-option="filterOption">
|
|
|
+ <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
|
|
|
+ </a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<template v-if="advanced">
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="品牌">
|
|
|
- <a-select
|
|
|
- placeholder="请选择"
|
|
|
- id="productInfoList-productBrandSn"
|
|
|
- allowClear
|
|
|
- v-model="queryParam.productBrandSn"
|
|
|
- :showSearch="true"
|
|
|
- option-filter-prop="children"
|
|
|
- :filter-option="filterOption">
|
|
|
- <a-select-option v-for="item in productBrandList" :key="item.productBrandSn" :value="item.productBrandSn">{{ item.productBrandName }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="产品分类">
|
|
|
<a-cascader
|
|
|
@change="changeProductType"
|
|
|
+ expand-trigger="hover"
|
|
|
change-on-select
|
|
|
:options="productTypeList"
|
|
|
:fieldNames="{ label: 'productTypeName', value: 'id', children: 'children' }"
|
|
@@ -53,8 +43,13 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="单据状态">
|
|
|
- <v-select code="ENABLED_FLAG" id="productInfoList-enabledFlag" v-model="queryParam.enabledFlag" allowClear placeholder="请选择单据状态"></v-select>
|
|
|
+ <a-form-item label="产品状态">
|
|
|
+ <v-select code="ENABLED_FLAG" id="productInfoList-state" v-model="queryParam.state" allowClear placeholder="请选择产品状态"></v-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="定价状态">
|
|
|
+ <v-select code="ENABLED_FLAG" id="productInfoList-pricingState" v-model="queryParam.pricingState" allowClear placeholder="请选择定价状态"></v-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</template>
|
|
@@ -72,9 +67,27 @@
|
|
|
<!-- 操作按钮 -->
|
|
|
<div class="table-operator">
|
|
|
<a-button id="productInfoList-add" type="primary" class="button-error" @click="handleEdit()">新增</a-button>
|
|
|
- <a-button id="productInfoList-import" :loading="loading" @click="handleBatchAudit" style="margin: 0 15px;">批量审核</a-button>
|
|
|
- <a-button id="productInfoList-import" :loading="loading" @click="handleBatchLaunch" style="margin: 0 15px;">批量上线</a-button>
|
|
|
- <a-button id="productInfoList-import" :loading="loading" @click="handleBatchDownline" style="margin: 0 15px;">批量下线</a-button>
|
|
|
+ <a-button
|
|
|
+ id="productInfoList-import"
|
|
|
+ type="primary"
|
|
|
+ class="button-warning"
|
|
|
+ :loading="loading"
|
|
|
+ @click="handleBatchAudit"
|
|
|
+ style="margin: 0 15px;">批量审核</a-button>
|
|
|
+ <a-button
|
|
|
+ id="productInfoList-import"
|
|
|
+ type="primary"
|
|
|
+ class="button-primary"
|
|
|
+ :loading="loading"
|
|
|
+ @click="handleBatchLaunch"
|
|
|
+ style="margin: 0 15px;">批量上线</a-button>
|
|
|
+ <a-button
|
|
|
+ id="productInfoList-import"
|
|
|
+ type="primary"
|
|
|
+ class="button-grey"
|
|
|
+ :loading="loading"
|
|
|
+ @click="handleBatchDownline"
|
|
|
+ style="margin: 0 15px;">批量下线</a-button>
|
|
|
<span style="margin-left: 8px">
|
|
|
<template v-if="hasSelected">{{ `已选 ${selectedRowKeys.length} 项` }}</template>
|
|
|
</span>
|
|
@@ -88,10 +101,10 @@
|
|
|
:rowKey="(record) => record.id"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
- :scroll="{ x: 1830 }"
|
|
|
+ :scroll="{ x: 2140, y: tableHeight }"
|
|
|
bordered>
|
|
|
<!-- 自定义表头 -->
|
|
|
- <template slot="terminaldsdPriceTitle">
|
|
|
+ <template slot="arrowFalgTitle">
|
|
|
<a-tooltip placement="top">
|
|
|
<template slot="title">
|
|
|
<span>自有即箭冠产品,非自有即非箭冠产品</span>
|
|
@@ -99,134 +112,93 @@
|
|
|
自有<a-icon type="question-circle" :style="{ marginLeft: '10px' }" />
|
|
|
</a-tooltip>
|
|
|
</template>
|
|
|
- <!-- 产品图片 -->
|
|
|
- <template slot="productPic" slot-scope="text, record">
|
|
|
- <img :src="record.productPic[0]" width="30" height="30" class="productPic" @click="openPicModal=true" />
|
|
|
+ <template slot="arrowFalg" slot-scope="text, record">
|
|
|
+ <span v-if="record.arrowFalg">{{ record.arrowFalg == 1 ? '是' : '否' }}</span>
|
|
|
+ <span v-else>--</span>
|
|
|
</template>
|
|
|
- <!-- 产品类别 -->
|
|
|
+ <!-- 产品分类 -->
|
|
|
<template slot="productType" slot-scope="text, record">
|
|
|
- <a-tooltip placement="top">
|
|
|
- <template slot="title">
|
|
|
- <span>{{ record.productTypeName }}</span>
|
|
|
- </template>
|
|
|
- {{ record.productTypeName3 }}
|
|
|
- </a-tooltip>
|
|
|
+ <span v-if="record.productTypeName2 || record.productTypeName3">{{ record.productTypeName2 }} {{ record.productTypeName3 ? '>' : '' }} {{ record.productTypeName3 }}</span>
|
|
|
+ <span v-else>--</span>
|
|
|
</template>
|
|
|
- <!-- 状态 -->
|
|
|
- <template slot="status" slot-scope="text, record">
|
|
|
- <a-tag :color="record.status==1?'green':'red'" >{{ record.status==1? '待提交': '待单据审核' }}</a-tag>
|
|
|
+ <!-- 定价状态 -->
|
|
|
+ <template slot="pricingState" slot-scope="text, record">
|
|
|
+ <a-badge :color="record.pricingState=='WAIT_PRICING'?'gold':record.pricingState=='WAIT_PRICING_AUDIT'?'volcano':'#87d068'" :text="record.pricingStateDictValue" />
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
- <a-button size="small" type="link" @click="handleAudit(record)" id="productInfoList-audit-btn">审核</a-button>
|
|
|
- <a-divider type="vertical" style="margin: 0;" />
|
|
|
- <a-button size="small" type="link" @click="handleLaunch(record)" id="productInfoList-launch-btn">上线</a-button>
|
|
|
- <a-divider type="vertical" style="margin: 0;" />
|
|
|
- <a-button size="small" type="link" @click="handleDownline(record)" id="productInfoList-downline-btn">下线</a-button>
|
|
|
- <a-divider type="vertical" style="margin: 0;" />
|
|
|
- <a-button size="small" type="link" @click="handleEdit(record)" id="productInfoList-edit-btn">编辑</a-button>
|
|
|
- <a-divider type="vertical" style="margin: 0;" />
|
|
|
- <a-button size="small" type="link" @click="handleDetail(record)" id="productInfoList-detail-btn">详情</a-button>
|
|
|
- <a-divider type="vertical" style="margin: 0;" />
|
|
|
- <a-button size="small" type="link" @click="handleDel(record)" id="productInfoList-del-btn">删除</a-button>
|
|
|
+ <a-button size="small" type="link" class="button-warning" @click="handleAudit(record)" id="productInfoList-audit-btn">审核</a-button>
|
|
|
+ <a-button size="small" type="link" class="button-primary" @click="handleLaunch(record)" id="productInfoList-launch-btn">上线</a-button>
|
|
|
+ <a-button size="small" type="link" class="button-grey" @click="handleDownline(record)" id="productInfoList-downline-btn">下线</a-button>
|
|
|
+ <a-button size="small" type="link" class="button-info" @click="handleEdit(record)" id="productInfoList-edit-btn">编辑</a-button>
|
|
|
+ <a-button size="small" type="link" class="button-success" @click="handleDetail(record)" id="productInfoList-detail-btn">详情</a-button>
|
|
|
+ <a-button size="small" type="link" class="button-error" @click="handleDel(record)" id="productInfoList-del-btn">删除</a-button>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
<!-- 产品详情 -->
|
|
|
- <product-info-detail-modal :openModal="openModal" :itemId="itemId" @close="closeModal" />
|
|
|
- <!-- 查看产品图片 -->
|
|
|
- <look-pic-modal :openModal="openPicModal" :itemId="itemId" @close="closePicModal" />
|
|
|
+ <product-info-detail-modal :openModal="openModal" :itemSn="itemSn" @close="closeModal" />
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import moment from 'moment'
|
|
|
-import { dealerProductBrandQuery } from '@/api/dealerProductBrand'
|
|
|
-import { dealerProductTypeQuery } from '@/api/dealerProductType'
|
|
|
-import { dealerProductList, dealerProductUpdate, dealerProductExport } from '@/api/dealerProduct'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import productInfoDetailModal from './detailModal.vue'
|
|
|
-import lookPicModal from './lookPicModal.vue'
|
|
|
+import { productBrandQuery } from '@/api/productBrand'
|
|
|
+import { productTypeQuery } from '@/api/productType'
|
|
|
+import { productList, productAudit, productBatchAudit, productDel } from '@/api/product'
|
|
|
export default {
|
|
|
- components: { STable, VSelect, productInfoDetailModal, lookPicModal },
|
|
|
+ components: { STable, VSelect, productInfoDetailModal },
|
|
|
data () {
|
|
|
return {
|
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
|
+ tableHeight: 0,
|
|
|
queryParam: { // 查询条件
|
|
|
- productCode: '', // 产品编码
|
|
|
- productName: '', // 产品名称
|
|
|
- origCode: '', // 原厂编码
|
|
|
- productBrandSn: undefined, // 产品品牌
|
|
|
- productTypeSn1: '', // 产品一级类别
|
|
|
- productTypeSn2: '', // 产品二级类别
|
|
|
- productTypeSn3: '', // 产品三级类别
|
|
|
- enabledFlag: undefined // 状态
|
|
|
+ // name: '', // 产品名称
|
|
|
+ // queryWord: '', // 产品编码/原厂编码
|
|
|
+ // productBrandSn: undefined, // 产品品牌
|
|
|
+ // productTypeSn1: '', // 产品一级分类
|
|
|
+ // productTypeSn2: '', // 产品二级分类
|
|
|
+ // productTypeSn3: '', // 产品三级分类
|
|
|
+ // state: undefined, // 产品状态
|
|
|
+ // pricingState: undefined // 定价状态
|
|
|
},
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
- exportLoading: false, // 导出loading
|
|
|
- dateFormat: 'YYYY-MM-DD',
|
|
|
- time: [], // 创建时间
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
|
|
|
- { title: '产品图片', scopedSlots: { customRender: 'productPic' }, width: 140, align: 'center' },
|
|
|
- { title: '产品名称', dataIndex: 'productName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品编码', dataIndex: 'productCode', width: 140, align: 'center' },
|
|
|
- { title: '原厂编码', dataIndex: 'origCode', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '品牌', dataIndex: 'productBrandName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品名称', dataIndex: 'name', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品编码', dataIndex: 'code', width: 220, align: 'center' },
|
|
|
+ { title: '原厂编码', dataIndex: 'origCode', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '品牌', dataIndex: 'productBrandName', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品分类', scopedSlots: { customRender: 'productType' }, width: 200, align: 'center' },
|
|
|
- { slots: { title: 'terminaldsdPriceTitle' }, dataIndex: 'terminaldsdPrice', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '最后修改时间', dataIndex: 'cssreateDate', width: 160, align: 'center' },
|
|
|
- { title: '产品状态', scopedSlots: { customRender: 'status' }, width: 100, align: 'center' },
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: 310, align: 'center', fixed: 'right' }
|
|
|
+ { slots: { title: 'arrowFalgTitle' }, scopedSlots: { customRender: 'arrowFalg' }, width: 100, align: 'center' },
|
|
|
+ { title: '最近修改时间', dataIndex: 'updateDate', width: 160, align: 'center' },
|
|
|
+ { title: '产品状态', dataIndex: 'stateDictValue', width: 140, align: 'center' },
|
|
|
+ { title: '定价状态', scopedSlots: { customRender: 'pricingState' }, width: 140, align: 'center' },
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: 300, align: 'center', fixed: 'right' }
|
|
|
],
|
|
|
selectedRowKeys: [], // Check here to configure the default column
|
|
|
loading: false,
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
- // 创建时间
|
|
|
- // if (this.time && this.time.length > 0) {
|
|
|
- // this.queryParam.beginDate = moment(this.time[0]).format(this.dateFormat)
|
|
|
- // this.queryParam.endDate = moment(this.time[1]).format(this.dateFormat)
|
|
|
- // } else {
|
|
|
- // this.queryParam.beginDate = undefined
|
|
|
- // this.queryParam.endDate = undefined
|
|
|
- // }
|
|
|
- // return dealerProductList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
- // const data = res.data
|
|
|
- // const no = (data.pageNo - 1) * data.pageSize
|
|
|
- // for (var i = 0; i < data.list.length; i++) {
|
|
|
- // data.list[i].no = no + i + 1
|
|
|
- // const productTypeName1 = data.list[i].productTypeName1 ? data.list[i].productTypeName1 : ''
|
|
|
- // const productTypeName2 = data.list[i].productTypeName2 ? ' > ' + data.list[i].productTypeName2 : ''
|
|
|
- // const productTypeName3 = data.list[i].productTypeName3 ? ' > ' + data.list[i].productTypeName3 : ''
|
|
|
- // data.list[i].productTypeName = productTypeName1 + productTypeName2 + productTypeName3
|
|
|
- // }
|
|
|
- // this.disabled = false
|
|
|
- // return data
|
|
|
- // })
|
|
|
- const _this = this
|
|
|
- return new Promise(function (resolve, reject) {
|
|
|
- const data = {
|
|
|
- pageNo: 1,
|
|
|
- pageSize: 10,
|
|
|
- list: [
|
|
|
- { id: '1', productNum: 'jgqp11111111111', productName: '产品1', productPic: ['https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', 'https://qn.antdv.com/vue.png'], productOldNum: 'jgqp111123545', productBrand: '箭冠品牌', productType: '产品分类1', inventoryNum: '5', inventoryMoney: '122' }
|
|
|
- ]
|
|
|
- }
|
|
|
+ if (this.tableHeight == 0) {
|
|
|
+ this.tableHeight = window.innerHeight - 380
|
|
|
+ }
|
|
|
+ return productList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
+ const data = res.data
|
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
|
data.list[i].no = no + i + 1
|
|
|
}
|
|
|
- _this.disabled = false
|
|
|
- resolve(data)
|
|
|
+ this.disabled = false
|
|
|
+ return data
|
|
|
})
|
|
|
},
|
|
|
openModal: false, // 查看详情 弹框
|
|
|
- openPicModal: false, // 查看图片 弹框
|
|
|
- itemId: '', // 当前产品id
|
|
|
+ itemSn: '', // 当前sn
|
|
|
productBrandList: [], // 品牌下拉数据
|
|
|
- productTypeList: [] // 类别下拉数据
|
|
|
+ productTypeList: [] // 分类下拉数据
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -235,19 +207,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- // 不可选日期
|
|
|
- disabledDate (date, dateStrings) {
|
|
|
- return date && date.valueOf() > Date.now()
|
|
|
- },
|
|
|
- // // 批量出库
|
|
|
- // handleOutbounds () {
|
|
|
- // this.loading = true
|
|
|
- // // ajax request after empty completing
|
|
|
- // setTimeout(() => {
|
|
|
- // this.loading = false
|
|
|
- // this.selectedRowKeys = []
|
|
|
- // }, 1000)
|
|
|
- // },
|
|
|
onSelectChange (selectedRowKeys) {
|
|
|
console.log('selectedRowKeys changed: ', selectedRowKeys)
|
|
|
this.selectedRowKeys = selectedRowKeys
|
|
@@ -264,7 +223,7 @@ export default {
|
|
|
content: '确认要批量审核吗?',
|
|
|
centered: true,
|
|
|
onOk () {
|
|
|
- // salesDel({ id: row.id }).then(res => {
|
|
|
+ // productBatchAudit({ sn: row.productSn }).then(res => {
|
|
|
// if (res.status == 200) {
|
|
|
// _this.$message.success(res.message)
|
|
|
// _this.$refs.table.refresh()
|
|
@@ -298,22 +257,20 @@ export default {
|
|
|
handleBatchDownline () {},
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
- this.queryParam.productCode = ''
|
|
|
- this.queryParam.productName = ''
|
|
|
- this.queryParam.origCode = ''
|
|
|
+ this.queryParam.name = ''
|
|
|
+ this.queryParam.queryWord = ''
|
|
|
this.queryParam.productBrandSn = undefined
|
|
|
this.queryParam.productTypeSn1 = ''
|
|
|
this.queryParam.productTypeSn2 = ''
|
|
|
this.queryParam.productTypeSn3 = ''
|
|
|
- this.queryParam.enabledFlag = undefined
|
|
|
- this.queryParam.beginDate = ''
|
|
|
- this.queryParam.endDate = ''
|
|
|
+ this.queryParam.state = undefined
|
|
|
+ this.queryParam.pricingState = undefined
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
// 新增/编辑
|
|
|
handleEdit (row) {
|
|
|
if (row) { // 编辑
|
|
|
- this.$router.push({ path: `/productManagement/productInfo/edit/${row.id}` })
|
|
|
+ this.$router.push({ path: `/productManagement/productInfo/edit/${row.id}/${row.productSn}` })
|
|
|
} else { // 新增
|
|
|
this.$router.push({ path: '/productManagement/productInfo/add' })
|
|
|
}
|
|
@@ -326,12 +283,12 @@ export default {
|
|
|
content: '确认要审核吗?',
|
|
|
centered: true,
|
|
|
onOk () {
|
|
|
- // salesDel({ id: row.id }).then(res => {
|
|
|
- // if (res.status == 200) {
|
|
|
- // _this.$message.success(res.message)
|
|
|
- // _this.$refs.table.refresh()
|
|
|
- // }
|
|
|
- // })
|
|
|
+ productAudit({ sn: row.productSn }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ _this.$message.success(res.message)
|
|
|
+ _this.$refs.table.refresh()
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -362,12 +319,12 @@ export default {
|
|
|
content: '确认要删除吗?',
|
|
|
centered: true,
|
|
|
onOk () {
|
|
|
- // salesDel({ id: row.id }).then(res => {
|
|
|
- // if (res.status == 200) {
|
|
|
- // _this.$message.success(res.message)
|
|
|
- // _this.$refs.table.refresh()
|
|
|
- // }
|
|
|
- // })
|
|
|
+ productDel({ sn: row.productSn }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ _this.$message.success(res.message)
|
|
|
+ _this.$refs.table.refresh()
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -378,20 +335,15 @@ export default {
|
|
|
},
|
|
|
// 详情
|
|
|
handleDetail (row) {
|
|
|
- this.itemId = row.id
|
|
|
+ this.itemSn = row.productSn
|
|
|
this.openModal = true
|
|
|
},
|
|
|
// 关闭弹框
|
|
|
closeModal () {
|
|
|
- this.itemId = ''
|
|
|
+ this.itemSn = ''
|
|
|
this.openModal = false
|
|
|
},
|
|
|
- // 关闭查看图片弹框
|
|
|
- closePicModal () {
|
|
|
- this.itemId = ''
|
|
|
- this.openPicModal = false
|
|
|
- },
|
|
|
- // 产品类别 change
|
|
|
+ // 产品分类 change
|
|
|
changeProductType (val, opt) {
|
|
|
this.queryParam.productTypeSn1 = val[0] ? val[0] : ''
|
|
|
this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
@@ -399,7 +351,7 @@ export default {
|
|
|
},
|
|
|
// 产品品牌 列表
|
|
|
getProductBrand () {
|
|
|
- dealerProductBrandQuery({}).then(res => {
|
|
|
+ productBrandQuery({}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.productBrandList = res.data
|
|
|
} else {
|
|
@@ -407,9 +359,9 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 产品类别 列表
|
|
|
+ // 产品分类 列表
|
|
|
getProductType () {
|
|
|
- dealerProductTypeQuery({}).then(res => {
|
|
|
+ productTypeQuery({}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.productTypeList = res.data
|
|
|
} else {
|
|
@@ -426,11 +378,3 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
-
|
|
|
-<style lang="less">
|
|
|
- .productInfoList-wrap{
|
|
|
- .productPic{
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- }
|
|
|
-</style>
|