|
@@ -156,7 +156,7 @@
|
|
|
class="button-primary"
|
|
|
:loading="addLoading"
|
|
|
@click="handleAdd(record,0)"
|
|
|
- >添加</a-button>
|
|
|
+ >添加</a-button>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</div>
|
|
@@ -386,7 +386,7 @@ export default {
|
|
|
{ title: '产品图片', scopedSlots: { customRender: 'imageUrl' }, width: '6%', align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
|
|
|
]
|
|
|
- // 产品来源
|
|
|
+ // 产品来源
|
|
|
if (this.isDealerUp) {
|
|
|
arr.splice(1, 0, { title: '产品编码', scopedSlots: { customRender: 'code' }, width: '15%', align: 'center', sorter: true })
|
|
|
arr.splice(6, 0, { title: '产品来源', dataIndex: 'sysFlagDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } })
|
|
@@ -503,25 +503,27 @@ export default {
|
|
|
}
|
|
|
// 添加
|
|
|
if (type == 0) {
|
|
|
- if(this.isDealerUp){
|
|
|
- if(row.purchasePrice){
|
|
|
+ if (this.isDealerUp) {
|
|
|
+ if (row.purchasePrice) {
|
|
|
params.productSn = row.productSn
|
|
|
params.purchaseBillSn = this.detail.purchaseBillSn
|
|
|
params.purchaseBillNo = this.detail.purchaseBillNo
|
|
|
params.price = row.purchasePrice
|
|
|
params.qty = row.qty
|
|
|
- }else{
|
|
|
+ params.priceLevel = row.priceLevel
|
|
|
+ } else {
|
|
|
this.$message.warning('成本价不能为空!')
|
|
|
return
|
|
|
}
|
|
|
- }else{
|
|
|
- if(row.purchasePrice&&row.terminalPrice&&row.carOwnersPrice){
|
|
|
+ } else {
|
|
|
+ if (row.purchasePrice && row.terminalPrice && row.carOwnersPrice) {
|
|
|
params.productSn = row.productSn
|
|
|
params.purchaseBillSn = this.detail.purchaseBillSn
|
|
|
params.purchaseBillNo = this.detail.purchaseBillNo
|
|
|
params.price = row.purchasePrice
|
|
|
params.qty = row.qty
|
|
|
- }else{
|
|
|
+ params.priceLevel = row.priceLevel
|
|
|
+ } else {
|
|
|
this.$message.warning('成本价、终端会员价、车主零售价不能为空!')
|
|
|
return
|
|
|
}
|