Commit 02bea569 by 张立顺

Merge branch 'dev_v4.16.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into dev_v4.16.0
2 parents 34960f97 53c40a81
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="d2-form-block distribution-form" id="distribution-form"> <div class="d2-form-block distribution-form" id="distribution-form">
<p class="edit-sub-title title-backgroud">分配到门店</p> <p class="edit-sub-title title-backgroud">分配到门店</p>
<div class="add-btns"> <div class="add-btns">
<el-button type="primary" style="width: 140px;" @click="handleClick()" :disabled="!goodsInfoData.baseGoodsId">添加分配</el-button> <el-button type="primary" style="width: 140px;" @click="handleClick()">添加分配</el-button>
<div class="assi_type"> <div class="assi_type">
<span>分配方式:</span> <span>分配方式:</span>
<el-radio-group v-model="goodsInfoData.distributionType" <el-radio-group v-model="goodsInfoData.distributionType"
......
...@@ -314,15 +314,6 @@ export default { ...@@ -314,15 +314,6 @@ export default {
}) })
return document.getElementById('specificationDetailList').scrollIntoView() return document.getElementById('specificationDetailList').scrollIntoView()
} }
if (num == 1) {
if ((this.goodsInfoData.distributionType == '0' && !this.goodsInfoData.linkMerchants.length) || (this.goodsInfoData.distributionType == '1' && !this.goodsInfoData.speciLinkMerchants.length)) {
this.$message({
message: '请分配到门店',
type: 'error'
})
return document.getElementById('distribution-form').scrollIntoView()
}
}
let arr = confirmShopData.map(item => { let arr = confirmShopData.map(item => {
item.shopPriceEmpty = true item.shopPriceEmpty = true
item.shopMinPriceEmpty = true item.shopMinPriceEmpty = true
...@@ -372,7 +363,7 @@ export default { ...@@ -372,7 +363,7 @@ export default {
delete item.specificationDataEmpty delete item.specificationDataEmpty
} }
// 对比商品数据 下架/草稿商品是否有变化 提交/关联门店 // 对比商品数据 下架/草稿商品是否有变化 提交/关联门店
if (![1, 2].includes(this.goodsInfoData.status) && num && this.copyUpgradeGoodsList.length && JSON.stringify(confirmShopData) !== JSON.stringify(this.copyUpgradeGoodsList)) { if (![1, 2].includes(this.goodsInfoData.status) && num && JSON.stringify(confirmShopData) !== JSON.stringify(this.copyUpgradeGoodsList)) {
return this.$confirm('商品内容未保存,请先做保存', '提示', { return this.$confirm('商品内容未保存,请先做保存', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
showCancelButton: false, showCancelButton: false,
...@@ -381,6 +372,15 @@ export default { ...@@ -381,6 +372,15 @@ export default {
document.getElementById('specificationDetailList').scrollIntoView() document.getElementById('specificationDetailList').scrollIntoView()
}) })
} }
if (num == 1) {
if ((this.goodsInfoData.distributionType == '0' && !this.goodsInfoData.linkMerchants.length) || (this.goodsInfoData.distributionType == '1' && !this.goodsInfoData.speciLinkMerchants.length)) {
this.$message({
message: '请分配到门店',
type: 'error'
})
return document.getElementById('distribution-form').scrollIntoView()
}
}
callback() callback()
}, },
saveAssignByMerchantEvent(data, isDelete) { saveAssignByMerchantEvent(data, isDelete) {
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
label: '采购数量', label: '采购数量',
prop: 'goodsNumber', prop: 'goodsNumber',
formatter: (cellValue) => { formatter: (cellValue) => {
return membraneTypeList.includes(cellValue.goodsType) == 1 ? `${cellValue.goodsNumber}卷/${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件` return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷/${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件`
} }
}, },
{ {
......
...@@ -10,8 +10,7 @@ ...@@ -10,8 +10,7 @@
@confirmDialog="handleClose"> @confirmDialog="handleClose">
<div> <div>
<div class="header" <div class="header"
slot="header" slot="header">
style="padding: 10px 20px;">
<d2-search ref="showSearch" <d2-search ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
...@@ -231,4 +230,7 @@ export default { ...@@ -231,4 +230,7 @@ export default {
margin-right: 24px; margin-right: 24px;
padding: 6.5px 10px; padding: 6.5px 10px;
} }
.show-search {
margin-left: -65px;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!