Commit 9ff51c21 by 张立顺

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

…stem into dev_v4.20.0
2 parents f20f11a6 b6382fb3
...@@ -259,7 +259,7 @@ export default { ...@@ -259,7 +259,7 @@ export default {
resArr.push({ resArr.push({
confId: v.id, confId: v.id,
confNameValue: v?.upgradeGoodsName, confNameValue: v?.upgradeGoodsName,
confTypeNameValue: `(${val?.goodsInfo?.goodsTypeName} / ${val?.goodsInfo?.goodsName})`, confTypeNameValue: `(${val?.goodsInfo?.goodsTypeName} / ${val?.goodsInfo?.goodsName} / ${v?.commodityCode})`,
valueObj: { valueObj: {
upgradeGoodsName: v?.upgradeGoodsName, upgradeGoodsName: v?.upgradeGoodsName,
goodsName: val?.goodsInfo?.goodsName, goodsName: val?.goodsInfo?.goodsName,
...@@ -316,7 +316,7 @@ export default { ...@@ -316,7 +316,7 @@ export default {
let defaultSelect = [{ let defaultSelect = [{
confId: res?.upgradeGoodsId, confId: res?.upgradeGoodsId,
confNameValue: res?.upgradeGoodsName, confNameValue: res?.upgradeGoodsName,
confTypeNameValue: `(${res?.goodsTypeName} / ${res?.goodsName})`, confTypeNameValue: `(${res?.goodsTypeName} / ${res?.goodsName} / ${v?.commodityCode})`,
}] }]
res.serviceItemNames = res.upgradeGoods?.upgradeGoodsServiceItemsList?.map(v => {return v.serviceName})?.join(',') res.serviceItemNames = res.upgradeGoods?.upgradeGoodsServiceItemsList?.map(v => {return v.serviceName})?.join(',')
this.editData = res || {} this.editData = res || {}
......
...@@ -99,6 +99,7 @@ import { getParkStore } from '@api/editCustomer' ...@@ -99,6 +99,7 @@ import { getParkStore } from '@api/editCustomer'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { baseSupplyModeList, upgradeSupplyModeList } from './constants/data' import { baseSupplyModeList, upgradeSupplyModeList } from './constants/data'
import { getShopMerchantList } from '@api/deviceManage' import { getShopMerchantList } from '@api/deviceManage'
import { baseConfig } from '@/main'
export default { export default {
name: 'groundingIndex', name: 'groundingIndex',
data() { data() {
...@@ -358,6 +359,7 @@ export default { ...@@ -358,6 +359,7 @@ export default {
confValue: '已下架' confValue: '已下架'
}] }]
}, },
selfBuildGoodsType: baseConfig.selfBuildGoodsType || ''
} }
}, },
mounted() { mounted() {
...@@ -379,8 +381,8 @@ export default { ...@@ -379,8 +381,8 @@ export default {
this.baseData.merchantServiceList = res this.baseData.merchantServiceList = res
this.getOptionsList() this.getOptionsList()
}) })
// 获取全部分类 // 获取全部类目 屏蔽服务商自建类目
getProductTypeBySceneId({ sceneType: '' }).then(res => { getProductTypeBySceneId({ categoryTypeList: this.selfBuildGoodsType}).then(res => {
this.baseData.productTypeList = res this.baseData.productTypeList = res
this.getOptionsList() this.getOptionsList()
}) })
......
...@@ -38,11 +38,10 @@ ...@@ -38,11 +38,10 @@
</td> </td>
<td :style="{ width: specsWidth }"> <td :style="{ width: specsWidth }">
<el-input <el-input
style="width: 80px;"
size="small" size="small"
:class="{ 'w-100-per': true }" :class="{ 'w-100-per': true, 'w-150-per': true }"
placeholder="商品编码" placeholder="商品编码"
maxlength="10" maxlength="20"
v-model.trim="batchObj.type" v-model.trim="batchObj.type"
@input="handleBatchTypeInput" @input="handleBatchTypeInput"
@blur="handleBatchTypeBlur"> @blur="handleBatchTypeBlur">
...@@ -194,10 +193,10 @@ ...@@ -194,10 +193,10 @@
<td :style="{ width: specsWidth }"> <td :style="{ width: specsWidth }">
<el-input placeholder="商品编码" <el-input placeholder="商品编码"
size="small" size="small"
:class="{ 'w-80-per': true, 'w-100-per': true, }" :class="{ 'w-80-per': true, 'w-100-per': true, 'w-150-per': true }"
style="transform: translateX(0);" style="transform: translateX(0);"
v-model.trim="subItem.type" v-model.trim="subItem.type"
maxlength="10" maxlength="20"
@input="handleTypeInput($event, subIndex)"> @input="handleTypeInput($event, subIndex)">
</el-input> </el-input>
</td> </td>
...@@ -901,6 +900,9 @@ export default { ...@@ -901,6 +900,9 @@ export default {
padding: 0 10px; padding: 0 10px;
} }
} }
.w-150-per {
width: 150px;
}
.w-80-per-noTansform{ .w-80-per-noTansform{
transform: translateX(0px); transform: translateX(0px);
} }
......
...@@ -99,9 +99,9 @@ ...@@ -99,9 +99,9 @@
<td :style="{ width: specsWidth }"> <td :style="{ width: specsWidth }">
<el-input placeholder="商品编码" <el-input placeholder="商品编码"
size="small" size="small"
:class="{ 'w-80-per': true, 'w-100-per': true, }" :class="{ 'w-80-per': true, 'w-100-per': true, 'w-150-per': true }"
v-model.trim="subItem.type" v-model.trim="subItem.type"
maxlength="10" maxlength="20"
@input="handleTypeInput($event, subIndex)"> @input="handleTypeInput($event, subIndex)">
</el-input> </el-input>
</td> </td>
...@@ -475,6 +475,9 @@ export default { ...@@ -475,6 +475,9 @@ export default {
padding: 0 10px; padding: 0 10px;
} }
} }
.w-150-per {
width: 150px;
}
.color-red{ .color-red{
color: #eb4e4e; color: #eb4e4e;
font-size: 14px; font-size: 14px;
......
...@@ -20,6 +20,7 @@ import { deepClone } from '@/common/util' ...@@ -20,6 +20,7 @@ import { deepClone } from '@/common/util'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { getBrandSupplyMerchant, addBrandSupplyMerchant, editBrandSupplyMerchant, getProductTypeBySceneId } from '@/api/product' import { getBrandSupplyMerchant, addBrandSupplyMerchant, editBrandSupplyMerchant, getProductTypeBySceneId } from '@/api/product'
import productForm from './productForm.vue' import productForm from './productForm.vue'
import { baseConfig } from '@/main'
export default { export default {
name: 'sourceMaterial', name: 'sourceMaterial',
data() { data() {
...@@ -138,7 +139,8 @@ export default { ...@@ -138,7 +139,8 @@ export default {
}], }],
baseData: { baseData: {
productType: [] productType: []
} },
selfBuildGoodsType: baseConfig.selfBuildGoodsType || '' // 服务商自建类目值
} }
}, },
...@@ -189,8 +191,9 @@ export default { ...@@ -189,8 +191,9 @@ export default {
get: 'd2admin/base/get', get: 'd2admin/base/get',
close: 'd2admin/page/close' close: 'd2admin/page/close'
}), }),
// 获取全部类目 屏蔽服务商自建类目
getGoodTypeList() { getGoodTypeList() {
getProductTypeBySceneId({}).then(res => { getProductTypeBySceneId({categoryTypeList: this.selfBuildGoodsType}).then(res => {
this.editForm[0].formBlock[this.editForm[0].formBlock.findIndex(val => val.name == 'goodsType')].optionList = res this.editForm[0].formBlock[this.editForm[0].formBlock.findIndex(val => val.name == 'goodsType')].optionList = res
}) })
}, },
......
...@@ -69,6 +69,7 @@ import { getProductTypeBySceneId } from '@api/product' ...@@ -69,6 +69,7 @@ import { getProductTypeBySceneId } from '@api/product'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { baseGoodsDelete } from '@api/commodity' import { baseGoodsDelete } from '@api/commodity'
import drawerDetail from './components/drawerDetail.vue' import drawerDetail from './components/drawerDetail.vue'
import { baseConfig } from '@/main'
export default { export default {
name: 'Commodity', name: 'Commodity',
data() { data() {
...@@ -217,7 +218,8 @@ export default { ...@@ -217,7 +218,8 @@ export default {
confId: 3, confId: 3,
confValue: '草稿' confValue: '草稿'
}] }]
} },
selfBuildGoodsType: baseConfig.selfBuildGoodsType || '' // 服务商自建类目值
} }
}, },
...@@ -234,8 +236,8 @@ export default { ...@@ -234,8 +236,8 @@ export default {
mounted() { mounted() {
var allOpt = { confId: '', confValue: '全部' } var allOpt = { confId: '', confValue: '全部' }
this.baseData.statusList.unshift(allOpt) this.baseData.statusList.unshift(allOpt)
// 获取全部类目 // 获取全部类目 屏蔽服务商自建类目
getProductTypeBySceneId({ sceneType: '' }).then(res => { getProductTypeBySceneId({ categoryTypeList: this.selfBuildGoodsType }).then(res => {
this.baseData.productTypeList = res this.baseData.productTypeList = res
this.getBaseData() this.getBaseData()
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!