|
@@ -46,10 +46,22 @@
|
|
<div class="table-operator">
|
|
<div class="table-operator">
|
|
<a-row :gutter="16">
|
|
<a-row :gutter="16">
|
|
<a-col class="gutter-row" :span="24">
|
|
<a-col class="gutter-row" :span="24">
|
|
- <a-button type="primary" :loading="loading" ghost v-if="modes=='pages'" @click="deleteMore">
|
|
|
|
|
|
+ <a-button
|
|
|
|
+ id="shoppingCar-deleteMore"
|
|
|
|
+ type="primary"
|
|
|
|
+ :loading="loading"
|
|
|
|
+ ghost
|
|
|
|
+ v-if="modes=='pages'"
|
|
|
|
+ @click="deleteMore">
|
|
批量删除
|
|
批量删除
|
|
</a-button>
|
|
</a-button>
|
|
- <a-button type="primary" :loading="loading" ghost v-if="modes=='modals'" @click="addMore">
|
|
|
|
|
|
+ <a-button
|
|
|
|
+ id="shoppingCar-addMore"
|
|
|
|
+ type="primary"
|
|
|
|
+ :loading="loading"
|
|
|
|
+ ghost
|
|
|
|
+ v-if="modes=='modals'"
|
|
|
|
+ @click="addMore">
|
|
批量添加
|
|
批量添加
|
|
</a-button>
|
|
</a-button>
|
|
<span style="font-weight: bold;margin-left:15px;" v-if="rowSelectionInfo&&rowSelectionInfo.selectedRowKeys.length">已选 {{ rowSelectionInfo.selectedRowKeys.length }} 项</span>
|
|
<span style="font-weight: bold;margin-left:15px;" v-if="rowSelectionInfo&&rowSelectionInfo.selectedRowKeys.length">已选 {{ rowSelectionInfo.selectedRowKeys.length }} 项</span>
|
|
@@ -77,6 +89,7 @@
|
|
<template slot="purchaseQty" slot-scope="text, record">
|
|
<template slot="purchaseQty" slot-scope="text, record">
|
|
<a-input-number
|
|
<a-input-number
|
|
size="small"
|
|
size="small"
|
|
|
|
+ :id="'shoppingCar-qty-'+record.productSn"
|
|
v-model="record.qty"
|
|
v-model="record.qty"
|
|
:precision="0"
|
|
:precision="0"
|
|
:min="1"
|
|
:min="1"
|
|
@@ -118,11 +131,11 @@ export default {
|
|
components: { STable, VSelect, ProductType, ProductBrand },
|
|
components: { STable, VSelect, ProductType, ProductBrand },
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
props: {
|
|
props: {
|
|
- modes: {
|
|
|
|
|
|
+ modes: { // 页面显示方式,页面 or 弹框
|
|
type: String,
|
|
type: String,
|
|
default: 'pages'
|
|
default: 'pages'
|
|
},
|
|
},
|
|
- purchaseType: {
|
|
|
|
|
|
+ purchaseType: { // 采购类型
|
|
type: String,
|
|
type: String,
|
|
default: null
|
|
default: null
|
|
}
|
|
}
|
|
@@ -140,7 +153,7 @@ export default {
|
|
productTypeSn1: '', // 产品一级分类
|
|
productTypeSn1: '', // 产品一级分类
|
|
productTypeSn2: '', // 产品二级分类
|
|
productTypeSn2: '', // 产品二级分类
|
|
productTypeSn3: '', // 产品三级分类
|
|
productTypeSn3: '', // 产品三级分类
|
|
- onlineFalg: undefined
|
|
|
|
|
|
+ onlineFalg: undefined // 是否上线
|
|
},
|
|
},
|
|
paramsData: null,
|
|
paramsData: null,
|
|
openEditPriceModal: false, // 自定义报价弹窗
|
|
openEditPriceModal: false, // 自定义报价弹窗
|
|
@@ -165,7 +178,7 @@ export default {
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- rowSelectionInfo: null
|
|
|
|
|
|
+ rowSelectionInfo: null // 已勾选数据
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -321,6 +334,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 确定添加
|
|
confirmFun (content, params) {
|
|
confirmFun (content, params) {
|
|
const _this = this
|
|
const _this = this
|
|
this.$confirm({
|
|
this.$confirm({
|
|
@@ -350,12 +364,14 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 页面初始化
|
|
pageInit (paramsData) {
|
|
pageInit (paramsData) {
|
|
this.paramsData = paramsData || {}
|
|
this.paramsData = paramsData || {}
|
|
this.getColumns()
|
|
this.getColumns()
|
|
this.setTableH()
|
|
this.setTableH()
|
|
this.resetSearchForm()
|
|
this.resetSearchForm()
|
|
},
|
|
},
|
|
|
|
+ // 计算表格高度
|
|
setTableH () {
|
|
setTableH () {
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|