|
@@ -31,22 +31,27 @@
|
|
</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="状态">
|
|
|
|
- <v-select code="ENABLE_FLAG" id="productInfoList-enabledFlag" v-model="queryParam.enabledFlag" allowClear placeholder="请选择状态"></v-select>
|
|
|
|
|
|
+ <a-form-item label="产品状态">
|
|
|
|
+ <v-select code="ONLINE_FLAG" id="productInfoList-onlineFalg" v-model="queryParam.onlineFalg " allowClear placeholder="请选择产品状态"></v-select>
|
|
</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-select allowClear v-model="queryParam.stockEmptyFlag" placeholder="请选择查看是否有库存">
|
|
|
|
- <a-select-option value="0">
|
|
|
|
- 是
|
|
|
|
- </a-select-option>
|
|
|
|
- <a-select-option value="1">
|
|
|
|
- 否
|
|
|
|
- </a-select-option>
|
|
|
|
- </a-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
|
|
+ <a-form-item label="启用状态">
|
|
|
|
+ <v-select code="ENABLE_FLAG" id="productInfoList-enabledFlag" v-model="queryParam.enabledFlag" allowClear placeholder="请选择启用状态"></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="是否有库存">
|
|
|
|
+ <a-select allowClear v-model="queryParam.stockEmptyFlag" placeholder="请选择查看是否有库存">
|
|
|
|
+ <a-select-option value="0">
|
|
|
|
+ 是
|
|
|
|
+ </a-select-option>
|
|
|
|
+ <a-select-option value="1">
|
|
|
|
+ 否
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
</template>
|
|
</template>
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
<a-button type="primary" @click="searchForm(true)" :disabled="disabled" id="productInfoList-refresh">查询</a-button>
|
|
<a-button type="primary" @click="searchForm(true)" :disabled="disabled" id="productInfoList-refresh">查询</a-button>
|
|
@@ -74,34 +79,34 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col class="gutter-row " :span="16" style="text-align: right;">
|
|
<a-col class="gutter-row " :span="16" style="text-align: right;">
|
|
<a-dropdown v-model="showCell">
|
|
<a-dropdown v-model="showCell">
|
|
- <a-button type="link" class="button-default"> <a-icon type="setting" /> 显示</a-button>
|
|
|
|
- <a-menu slot="overlay">
|
|
|
|
- <a-menu-item>
|
|
|
|
- <a-checkbox v-model="isTerminalPrice">
|
|
|
|
- 自定义终端价
|
|
|
|
- </a-checkbox>
|
|
|
|
- </a-menu-item>
|
|
|
|
- <a-menu-item>
|
|
|
|
- <a-checkbox v-model="isCarOwnersPrice">
|
|
|
|
- 自定义车主价
|
|
|
|
- </a-checkbox>
|
|
|
|
- </a-menu-item>
|
|
|
|
- <a-menu-item>
|
|
|
|
- <a-checkbox v-model="isCityPrice">
|
|
|
|
- 市级价
|
|
|
|
- </a-checkbox>
|
|
|
|
- </a-menu-item>
|
|
|
|
- <a-menu-item>
|
|
|
|
- <a-checkbox v-model="isZdPrice">
|
|
|
|
- 终端价
|
|
|
|
- </a-checkbox>
|
|
|
|
- </a-menu-item>
|
|
|
|
- <a-menu-item>
|
|
|
|
- <a-checkbox v-model="isCzPrice">
|
|
|
|
- 车主价
|
|
|
|
- </a-checkbox>
|
|
|
|
- </a-menu-item>
|
|
|
|
- </a-menu>
|
|
|
|
|
|
+ <a-button type="link" class="button-default"> <a-icon type="setting" /> 显示</a-button>
|
|
|
|
+ <a-menu slot="overlay">
|
|
|
|
+ <a-menu-item>
|
|
|
|
+ <a-checkbox v-model="isTerminalPrice">
|
|
|
|
+ 自定义终端价
|
|
|
|
+ </a-checkbox>
|
|
|
|
+ </a-menu-item>
|
|
|
|
+ <a-menu-item>
|
|
|
|
+ <a-checkbox v-model="isCarOwnersPrice">
|
|
|
|
+ 自定义车主价
|
|
|
|
+ </a-checkbox>
|
|
|
|
+ </a-menu-item>
|
|
|
|
+ <a-menu-item>
|
|
|
|
+ <a-checkbox v-model="isCityPrice">
|
|
|
|
+ 市级价
|
|
|
|
+ </a-checkbox>
|
|
|
|
+ </a-menu-item>
|
|
|
|
+ <a-menu-item>
|
|
|
|
+ <a-checkbox v-model="isZdPrice">
|
|
|
|
+ 终端价
|
|
|
|
+ </a-checkbox>
|
|
|
|
+ </a-menu-item>
|
|
|
|
+ <a-menu-item>
|
|
|
|
+ <a-checkbox v-model="isCzPrice">
|
|
|
|
+ 车主价
|
|
|
|
+ </a-checkbox>
|
|
|
|
+ </a-menu-item>
|
|
|
|
+ </a-menu>
|
|
</a-dropdown>
|
|
</a-dropdown>
|
|
<a-divider type="vertical" style="margin:5px 0;"/>
|
|
<a-divider type="vertical" style="margin:5px 0;"/>
|
|
<a-dropdown>
|
|
<a-dropdown>
|
|
@@ -216,8 +221,8 @@ export default {
|
|
openGuideModal: false,
|
|
openGuideModal: false,
|
|
isTerminalPrice: true,
|
|
isTerminalPrice: true,
|
|
isCarOwnersPrice: true,
|
|
isCarOwnersPrice: true,
|
|
- isCityPrice: true,
|
|
|
|
- isZdPrice: true,
|
|
|
|
|
|
+ isCityPrice: true,
|
|
|
|
+ isZdPrice: true,
|
|
isCzPrice: true,
|
|
isCzPrice: true,
|
|
openEditPriceModal: false, // 自定义报价弹窗
|
|
openEditPriceModal: false, // 自定义报价弹窗
|
|
iconShowFlag: false, // 列表配置图标显示
|
|
iconShowFlag: false, // 列表配置图标显示
|
|
@@ -263,16 +268,17 @@ export default {
|
|
// { title: '车主价', dataIndex: 'carOwnersPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
// { title: '车主价', dataIndex: 'carOwnersPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
// { title: '自定义终端价', dataIndex: 'price1', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
// { title: '自定义终端价', dataIndex: 'price1', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
// { title: '自定义车主价', dataIndex: 'price2', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
// { title: '自定义车主价', dataIndex: 'price2', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
- { title: '可用库存', dataIndex: 'currentStockQty', width: '7%', align: 'center', customRender: function (text) {return text || text == 0 ? text : '--'}},
|
|
|
|
- { title: '状态', scopedSlots: { customRender: 'enabledFlag' }, width: '7%', align: 'center' },
|
|
|
|
|
|
+ { title: '可用库存', dataIndex: 'currentStockQty', width: '7%', align: 'center', customRender: function (text) { return text || text == 0 ? text : '--' } },
|
|
|
|
+ { title: '产品状态', dataIndex: 'status', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '启用状态', scopedSlots: { customRender: 'enabledFlag' }, width: '7%', align: 'center' },
|
|
{ title: '产品图片', scopedSlots: { customRender: 'imageUrl' }, width: '6%', align: 'center' },
|
|
{ title: '产品图片', scopedSlots: { customRender: 'imageUrl' }, width: '6%', align: 'center' },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '12%', align: 'center' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '12%', align: 'center' }
|
|
]
|
|
]
|
|
if (_this.currentDealerInfo.dealerLevel && _this.currentDealerInfo.dealerLevel == 'PROVINCE') { // 省级
|
|
if (_this.currentDealerInfo.dealerLevel && _this.currentDealerInfo.dealerLevel == 'PROVINCE') { // 省级
|
|
arr.push(
|
|
arr.push(
|
|
- { title: '省级价', dataIndex: 'provincePrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
|
|
+ { title: '省级价', dataIndex: 'provincePrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
)
|
|
)
|
|
- if(_this.isCityPrice){
|
|
|
|
|
|
+ if (_this.isCityPrice) {
|
|
arr.push(
|
|
arr.push(
|
|
{ title: '市级价', dataIndex: 'cityPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
{ title: '市级价', dataIndex: 'cityPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
)
|
|
)
|
|
@@ -285,7 +291,7 @@ export default {
|
|
if (_this.currentDealerInfo.isShowSpecialPrice && _this.currentDealerInfo.isShowSpecialPrice == '1') { // 是否展示特约价
|
|
if (_this.currentDealerInfo.isShowSpecialPrice && _this.currentDealerInfo.isShowSpecialPrice == '1') { // 是否展示特约价
|
|
arr.push({ title: '特约价', dataIndex: 'specialPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
arr.push({ title: '特约价', dataIndex: 'specialPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
if (_this.isZdPrice) {
|
|
if (_this.isZdPrice) {
|
|
arr.push({ title: '终端价', dataIndex: 'terminalPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
arr.push({ title: '终端价', dataIndex: 'terminalPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
}
|
|
}
|