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