|
@@ -61,9 +61,9 @@
|
|
</a-form>
|
|
</a-form>
|
|
</div>
|
|
</div>
|
|
<!-- 总计 -->
|
|
<!-- 总计 -->
|
|
- <a-alert type="info" showIcon style="margin-bottom:15px">
|
|
|
|
|
|
+ <!-- <a-alert type="info" showIcon style="margin-bottom:15px">
|
|
<div slot="message">合计:<strong>{{ total }}</strong>条</div>
|
|
<div slot="message">合计:<strong>{{ total }}</strong>条</div>
|
|
- </a-alert>
|
|
|
|
|
|
+ </a-alert> -->
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<s-table
|
|
<s-table
|
|
class="sTable"
|
|
class="sTable"
|
|
@@ -102,7 +102,13 @@
|
|
class="button-warning"
|
|
class="button-warning"
|
|
@click="handleAudit(record)"
|
|
@click="handleAudit(record)"
|
|
id="productPricingList-audit-btn">审核</a-button>
|
|
id="productPricingList-audit-btn">审核</a-button>
|
|
- <a-button size="small" type="link" v-if="$hasPermissions('B_productPricing_edit')" class="button-info" @click="handleEdit(record)" id="productPricingList-edit-btn">编辑</a-button>
|
|
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ v-if="$hasPermissions('B_productPricing_edit')"
|
|
|
|
+ class="button-info"
|
|
|
|
+ @click="handleEdit(record)"
|
|
|
|
+ id="productPricingList-edit-btn">编辑</a-button>
|
|
<span v-if="!(record.pricingState=='WAIT_PRICING_AUDIT' && $hasPermissions('B_productPricing_audit')) && !$hasPermissions('B_productPricing_edit')">--</span>
|
|
<span v-if="!(record.pricingState=='WAIT_PRICING_AUDIT' && $hasPermissions('B_productPricing_audit')) && !$hasPermissions('B_productPricing_edit')">--</span>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
@@ -125,7 +131,6 @@ export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
- tableHeight: 0,
|
|
|
|
queryParam: { // 查询条件
|
|
queryParam: { // 查询条件
|
|
name: '', // 产品名称
|
|
name: '', // 产品名称
|
|
queryWord: '', // 产品编码/原厂编码
|
|
queryWord: '', // 产品编码/原厂编码
|
|
@@ -158,9 +163,6 @@ export default {
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
- if (this.tableHeight == 0) {
|
|
|
|
- this.tableHeight = window.innerHeight - 380
|
|
|
|
- }
|
|
|
|
return productPricingList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
return productPricingList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
const data = res.data
|
|
const data = res.data
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
@@ -180,6 +182,11 @@ export default {
|
|
productTypeList: [] // 分类下拉数据
|
|
productTypeList: [] // 分类下拉数据
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ tableHeight () {
|
|
|
|
+ return window.innerHeight - (this.advanced ? 375 : 320)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|