Commit a0013648 authored by 我在何方's avatar 我在何方
parents 684d0dba 416a900a
...@@ -57,7 +57,11 @@ ...@@ -57,7 +57,11 @@
</el-table-column> </el-table-column>
<el-table-column v-if="showAttr" :label="$t('商品特性')" prop="startTitleZh"> <el-table-column v-if="showAttr" :label="$t('商品特性')" prop="startTitleZh">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{ getAttrNames(row.attrId) }} <!--{{ getAttrNames(row.attrId) }}-->
<template v-if="row.channel && row.channel.attrNameList">
{{row.channel.attrNameList.join(',')}}
</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" prop=""> <el-table-column :label="$t('操作')" prop="">
...@@ -182,7 +186,7 @@ export default { ...@@ -182,7 +186,7 @@ export default {
// 显示产品特性 // 显示产品特性
getAttrName(){ getAttrName(){
return (id) => { return (id) => {
let item = this.attrList.find(item => item.id == id) let item = this.attrList.find(item => item.id === +id)
if(!item) return '' if(!item) return ''
return this.$l(item, 'attrName') return this.$l(item, 'attrName')
} }
......
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
<el-input v-model="queryParams.weightRatioMin" :placeholder="$t('请输入 小')" clearable /> <el-input v-model="queryParams.weightRatioMin" :placeholder="$t('请输入 小')" clearable />
</el-form-item> </el-form-item>
<el-form-item :label="$t('出货渠道')" prop="shippingChannelId"> <el-form-item :label="$t('出货渠道')" prop="channelId">
<el-select v-model="queryParams.shippingChannelId" :placeholder="$t('请选择出货渠道')" @change="selectChannel"> <el-select v-model="queryParams.channelId" :placeholder="$t('请选择出货渠道')" @change="selectChannel">
<el-option v-for="item in channelList" :label="$l(item, 'name')" :value="item.channelId" :key="item.channelId"></el-option> <el-option v-for="item in channelList" :label="$l(item, 'name')" :value="item.channelId" :key="item.channelId"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
......
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
} }
if (typeof this.value.prodAttrIds === 'string' && this.value.prodAttrIds.length > 0) { if (typeof this.value.prodAttrIds === 'string' && this.value.prodAttrIds.length > 0) {
this.prodAttrIds.push(...this.value.prodAttrIds.split(',').map(e => +e)) this.prodAttrIds = this.value.prodAttrIds.split(',').map(e => +e)
} }
console.log(this.prodAttrIds) console.log(this.prodAttrIds)
......
...@@ -339,12 +339,13 @@ export default { ...@@ -339,12 +339,13 @@ export default {
const res = await getProductPrice(id) const res = await getProductPrice(id)
// 填充商品、线路、价格信息、出货渠道(空运) // 填充商品、线路、价格信息、出货渠道(空运)
// this.form.productIdList = [res.data.productId] // this.form.productIdList = [res.data.productId]
/* 23-11-07要求不复制商品和线路 https://zentao.test.jdshangmen.com/bug-view-5145.html
this.selectedRoutes = [{ this.selectedRoutes = [{
"lineId": res.data.warehouseLineId, "lineId": res.data.warehouseLineId,
"channelId": res.data.shippingChannelId, "channelId": res.data.shippingChannelId,
"transportId": res.data.warehouseLineDO.transportType, "transportId": res.data.warehouseLineDO.transportType,
"shippingChannelId":res.data.channelId "shippingChannelId":res.data.channelId
}] }]*/
// 要复制过来的字段 // 要复制过来的字段
const { const {
allPrice, allPrice,
...@@ -395,9 +396,10 @@ export default { ...@@ -395,9 +396,10 @@ export default {
this.$set(this, 'form', Object.assign({}, this.form, data)) this.$set(this, 'form', Object.assign({}, this.form, data))
// 产品选择器默认选择的商品 // 产品选择器默认选择的商品
/* 23-11-07要求不复制商品和线路 https://zentao.test.jdshangmen.com/bug-view-5145.html
getProduct(res.data.productId).then(res => { getProduct(res.data.productId).then(res => {
this.$refs.productSelector.choose(res.data) this.$refs.productSelector.choose(res.data)
}) })*/
}, },
// 同步全部单位 // 同步全部单位
syncAllUnit(){ syncAllUnit(){
......
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
<el-input v-model="quickForm.minus" class="w-100 ml-10 mr-10" :disabled="!!quickForm.plus"></el-input> <el-input v-model="quickForm.minus" class="w-100 ml-10 mr-10" :disabled="!!quickForm.plus"></el-input>
<selector disabled v-model="currencyAndUnit.currency" :options="currencyList" :label-field="$l('title')" value-field="id" class="w-100" /> <selector disabled v-model="currencyAndUnit.currency" :options="currencyList" :label-field="$l('title')" value-field="id" class="w-100" />
/ <selector disabled v-model="currencyAndUnit.unit" :options="unitList" :label-field="$l('title')" value-field="id" class="w-100" /> / <selector disabled v-model="currencyAndUnit.unit" :options="unitList" :label-field="$l('title')" value-field="id" class="w-100" />
<div class="ml-10">{{$t('*针对所有价格')}}</div> <div class="ml-10">{{$t('*针对所有价格')}}</div>
</div> </div>
<div class="mt-10"> <div class="mt-10">
<el-button @click="quickSet" type="primary" :disabled="!quickForm.plus && !quickForm.minus">{{$t('确定')}}</el-button> <el-button @click="quickSet" type="primary" :disabled="!quickForm.plus && !quickForm.minus">{{$t('确定')}}</el-button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment