Commit f1db4ecf by 王志慧

Merge branch 'feature/584/wzh' into 'SAAS+V5.8.4'

Feature/584/wzh

See merge request !901
2 parents 7ee16a9b 18ea8515
...@@ -853,7 +853,7 @@ export default { ...@@ -853,7 +853,7 @@ export default {
return; return;
} }
if (value === "" || value === null || value === undefined) { if (value === "" || value === null || value === undefined) {
callback(new Error("请选择商品成本带入方式")); callback(new Error("请选择产品成本获取方式"));
return; return;
} }
callback(); callback();
......
...@@ -140,7 +140,7 @@ export const packageGoodsForm = [ ...@@ -140,7 +140,7 @@ export const packageGoodsForm = [
}, },
{ {
name: "productCostType", name: "productCostType",
label: "商品成本带入方式", label: "产品成本获取方式",
type: "flagRadio", type: "flagRadio",
isRequired: true, isRequired: true,
radioGroupList: [ radioGroupList: [
...@@ -356,7 +356,7 @@ export const packageGoodsDetail = [ ...@@ -356,7 +356,7 @@ export const packageGoodsDetail = [
}, },
{ {
name: "productCostTypeStr", name: "productCostTypeStr",
label: "商品成本带入方式", label: "产品成本获取方式",
}, },
{ {
name: "serviceItemDisplay", name: "serviceItemDisplay",
......
...@@ -45,7 +45,7 @@ export function shouldShowPosition(goodsType) { ...@@ -45,7 +45,7 @@ export function shouldShowPosition(goodsType) {
return shouldShowServiceItem(goodsType); return shouldShowServiceItem(goodsType);
} }
/** 自营延保/权益不展示商品成本带入方式 */ /** 自营延保/权益不展示产品成本获取方式 */
export function shouldShowProductCostType(goodsType, supplierCode) { export function shouldShowProductCostType(goodsType, supplierCode) {
return !!goodsType && !isSelfOperatedEquityExtended(goodsType, supplierCode); return !!goodsType && !isSelfOperatedEquityExtended(goodsType, supplierCode);
} }
......
...@@ -216,7 +216,7 @@ export default { ...@@ -216,7 +216,7 @@ export default {
}, },
{ {
name: "productCostTypeStr", name: "productCostTypeStr",
label: "商品成本带入方式", label: "产品成本获取方式",
}, },
{ {
name: "serviceItemDisplay", name: "serviceItemDisplay",
......
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
}, },
{ {
name: "productCostType", name: "productCostType",
label: "商品成本带入方式", label: "产品成本获取方式",
type: "flagRadio", type: "flagRadio",
isRequired: true, isRequired: true,
radioGroupList: [ radioGroupList: [
......
...@@ -159,7 +159,7 @@ export async function getSearchFromSchema(_refreshTableFn) { ...@@ -159,7 +159,7 @@ export async function getSearchFromSchema(_refreshTableFn) {
addHtml: "applicableAreaSelect", addHtml: "applicableAreaSelect",
}, },
{ {
label: "商品成本带入方式", label: "产品成本获取方式",
name: "productCostType", name: "productCostType",
type: "select", type: "select",
optionList: cloneDeep(productCostTypeList), optionList: cloneDeep(productCostTypeList),
...@@ -386,7 +386,7 @@ export async function getTableSchema() { ...@@ -386,7 +386,7 @@ export async function getTableSchema() {
}, },
}, },
{ {
label: "商品成本带入方式", label: "产品成本获取方式",
prop: "productCostTypeStr", prop: "productCostTypeStr",
width: "150", width: "150",
}, },
......
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
</el-button> </el-button>
</el-form-item> </el-form-item>
</div> </div>
<!-- 商品成本带入方式 --> <!-- 产品成本获取方式 -->
<div v-if="item.type === 'flagRadio'"> <div v-if="item.type === 'flagRadio'">
<el-form-item <el-form-item
:id="`groundingGoodsList[${eleIndex}][${item.name}]`" :id="`groundingGoodsList[${eleIndex}][${item.name}]`"
...@@ -817,7 +817,7 @@ export default { ...@@ -817,7 +817,7 @@ export default {
return; return;
} }
if (value === "" || value === null || value === undefined) { if (value === "" || value === null || value === undefined) {
callback(new Error("请选择商品成本带入方式")); callback(new Error("请选择产品成本获取方式"));
return; return;
} }
callback(); callback();
......
...@@ -244,7 +244,7 @@ export default { ...@@ -244,7 +244,7 @@ export default {
recoveryCost: val?.recoveryCost, // 回收成本 recoveryCost: val?.recoveryCost, // 回收成本
warrantyPeriod: val?.upgradeGoods?.warrantyPeriod, // 质保年限 warrantyPeriod: val?.upgradeGoods?.warrantyPeriod, // 质保年限
upgradePrice: val?.upgradeGoods?.upgradePrice, // 参考售价 upgradePrice: val?.upgradeGoods?.upgradePrice, // 参考售价
productCostTypeStr: val?.productCostTypeStr, // 商品成本带入方式 productCostTypeStr: val?.productCostTypeStr, // 产品成本获取方式
serviceItemDisplay: val?.serviceItemDisplay, // 服务项目 serviceItemDisplay: val?.serviceItemDisplay, // 服务项目
upgradeGoods: { upgradeGoods: {
...val?.upgradeGoods, ...val?.upgradeGoods,
......
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
thirdPartyCost: "", // 第三方成本 thirdPartyCost: "", // 第三方成本
validMinSellPriceFlag: false, // 是否校验最低价 validMinSellPriceFlag: false, // 是否校验最低价
serviceItemId: "", // 服务项目 serviceItemId: "", // 服务项目
productCostType: "", // 商品成本带入方式,不默认选中 productCostType: "", // 产品成本获取方式,不默认选中
}, },
], ],
voucherList: [], // 上架凭证 voucherList: [], // 上架凭证
...@@ -315,7 +315,7 @@ export default { ...@@ -315,7 +315,7 @@ export default {
return val?.productCostType === 0 || val?.productCostType === 1 || val?.productCostType === "0" || val?.productCostType === "1" return val?.productCostType === 0 || val?.productCostType === 1 || val?.productCostType === "0" || val?.productCostType === "1"
? Number(val.productCostType) ? Number(val.productCostType)
: ""; : "";
})(), // 商品成本带入方式 })(), // 产品成本获取方式
supplierCode: val?.goodsInfo?.supplierCode, // 供应方 supplierCode: val?.goodsInfo?.supplierCode, // 供应方
upgradeGoods: { upgradeGoods: {
...val?.upgradeGoods, ...val?.upgradeGoods,
......
...@@ -99,7 +99,7 @@ export async function getSearchFormSchema(_refreshTable) { ...@@ -99,7 +99,7 @@ export async function getSearchFormSchema(_refreshTable) {
addHtml: "applicableAreaSelect", addHtml: "applicableAreaSelect",
}, },
{ {
label: "商品成本带入方式", label: "产品成本获取方式",
name: "productCostType", name: "productCostType",
type: "select", type: "select",
optionList: cloneDeep(productCostTypeList), optionList: cloneDeep(productCostTypeList),
...@@ -230,7 +230,7 @@ export async function getTableColumnsSchema() { ...@@ -230,7 +230,7 @@ export async function getTableColumnsSchema() {
}, },
}, },
{ {
label: "商品成本带入方式", label: "产品成本获取方式",
prop: "productCostTypeStr", prop: "productCostTypeStr",
width: "150", width: "150",
......
...@@ -15,7 +15,7 @@ export const sceneTypeOptions = [ ...@@ -15,7 +15,7 @@ export const sceneTypeOptions = [
{ value: "110202", label: "2.3.2 售后延保" }, { value: "110202", label: "2.3.2 售后延保" },
]; ];
// 商品上架 商品成本带入方式 // 商品上架 产品成本获取方式
export const productCostStyleOpt = [ export const productCostStyleOpt = [
{ value: 2, label: "默认带入产品成本" }, { value: 2, label: "默认带入产品成本" },
{ value: 1, label: "自定义成本" }, { value: 1, label: "自定义成本" },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!