app商品及组件功能调整

jg-waiwang-pro
mhsnet 5 months ago
parent ec1f74e881
commit 471f615edc

@ -2,20 +2,36 @@
<view :class="'jnpf-checkbox jnpf-checkbox-right'">
<view v-if="direction === 'horizontal'">
<u-checkbox-group @change="onChange" :disabled="disabled" style="display: flow-root;">
<u-checkbox v-model="item.checked" label-size='26' v-for="(item, index) in newOptions" :key="index"
<template v-if="showOnly">
<u-checkbox v-if="item.checked" v-model="item.checked" label-size='26' v-for="(item, index) in newOptions" :key="index"
:name="item[props.value]">
{{ item[props.label] }}
</u-checkbox>
</template>
<template v-else>
<u-checkbox label-size='26' v-for="(item, index) in newOptions" :key="index"
:name="item[props.value]">
{{ item[props.label] }}
</u-checkbox>
</template>
</u-checkbox-group>
</view>
<!-- -->
<view class="u-select__body u-select__body__multiple" v-else>
<scroll-view :scroll-y="true" style="height: 100%">
<u-checkbox-group @change="onChange" wrap :disabled="disabled">
<template v-if="showOnly">
<u-checkbox v-if="item.checked" v-model="item.checked" :name="item[props.value]" v-for="(item,i) in newOptions"
:key="i">
{{ item[props.label] }}
</u-checkbox>
</template>
<template v-else>
<u-checkbox v-model="item.checked" :name="item[props.value]" v-for="(item,i) in newOptions"
:key="i">
{{ item[props.label] }}
</u-checkbox>
</template>
</u-checkbox-group>
</scroll-view>
</view>
@ -52,6 +68,10 @@
disabled: {
type: Boolean,
default: false
},
showOnly: {
type: Boolean,
default: false
}
},
data() {

@ -2,17 +2,34 @@
<view :class="'jnpf-radio jnpf-radio-right'">
<view class="" v-if="direction === 'horizontal'">
<u-radio-group @change="onChange" :disabled="disabled" v-model="initValue" style="display:flow-root;">
<template v-if="showOnly">
<u-radio v-if="item[props.value] == initValue" label-size='26' v-for="(item, index) in options" :key="index" :name="item[props.value]">
{{ item[props.label] }}
</u-radio>
</template>
<template v-else>
<u-radio label-size='26' v-for="(item, index) in options" :key="index" :name="item[props.value]">
{{ item[props.label] }}
</u-radio>
</template>
</u-radio-group>
</view>
<!-- -->
<view class="radio-c" v-else>
<u-radio-group @change="onChange" :disabled="disabled" v-model="initValue">
<!-- <u-radio label-size='26' v-for="(item, index) in options" :key="index" :name="item[props.value]">
{{ item[props.label] }}
</u-radio> -->
<template v-if="showOnly">
<u-radio v-if="item[props.value] == initValue" label-size='26' v-for="(item, index) in options" :key="index" :name="item[props.value]">
{{ item[props.label] }}
</u-radio>
</template>
<template v-else>
<u-radio label-size='26' v-for="(item, index) in options" :key="index" :name="item[props.value]">
{{ item[props.label] }}
</u-radio>
</template>
</u-radio-group>
</view>
</view>
@ -47,6 +64,10 @@
disabled: {
type: Boolean,
default: false
},
showOnly: {
type: Boolean,
default: false
}
},
data() {

@ -4,10 +4,7 @@
label-align="right" :label-width="labelwidth" class="jnpf-form">
<view class="u-p-l-20 u-p-r-20 form-item-box">
<u-form-item>
<jnpf-text
:textStyle='{"color":"#62A2CB","font-weight":"bold","text-decoration":"none","font-size":16,"line-height":32,"font-style":"normal","text-align":"center"}'
value="商品类型" content="商品类型">
</jnpf-text>
<view style="float: left; width:8px; height: 16px;background-color: cadetblue;margin-right: 8px;"></view>商品类型
</u-form-item>
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
@ -15,16 +12,13 @@
prop="productTypeId">
<jnpf-radio v-model="dataForm.productTypeId" :disabled="judgeWrite('productTypeId')"
@change="changeData('productTypeId',-1)" optionType="default" direction="horizontal"
:props="productTypeIdProps" :options="productTypeIdOptions">
:props="productTypeIdProps" :options="productTypeIdOptions" :showOnly="true">
</jnpf-radio>
</u-form-item>
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
<u-form-item>
<jnpf-text
:textStyle='{"color":"#62A2CB","font-weight":"bold","text-decoration":"none","font-size":16,"line-height":32,"font-style":"normal","text-align":"center"}'
value="基本信息" content="基本信息">
</jnpf-text>
<view style="float: left; width:8px; height: 16px;background-color: cadetblue;margin-right: 8px;"></view>基本信息
</u-form-item>
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
@ -104,10 +98,7 @@
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
<u-form-item>
<jnpf-text
:textStyle='{"color":"#62A2CB","font-weight":"bold","text-decoration":"none","font-size":16,"line-height":32,"font-style":"normal","text-align":"center"}'
value="商品特性" content="商品特性">
</jnpf-text>
<view style="float: left; width:8px; height: 16px;background-color: cadetblue;margin-right: 8px;"></view>商品特性
</u-form-item>
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
@ -148,11 +139,14 @@
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
<u-form-item>
<view style="float: left; width:8px; height: 16px;background-color: cadetblue;margin-right: 8px;"></view>供应链/财务信息
</u-form-item>
<!-- <u-form-item>
<jnpf-text
:textStyle='{"color":"#62A2CB","font-weight":"bold","text-decoration":"none","font-size":16,"line-height":32,"font-style":"normal","text-align":"center"}'
value="供应链/财务信息" content="供应链/财务信息">
</jnpf-text>
</u-form-item>
</u-form-item> -->
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
<u-form-item v-if="judgeShow('firstSupplierId')" :required="requiredList.firstSupplierId" label="首选供应商"
@ -195,10 +189,7 @@
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
<u-form-item>
<jnpf-text
:textStyle='{"color":"#62A2CB","font-weight":"bold","text-decoration":"none","font-size":16,"line-height":32,"font-style":"normal","text-align":"center"}'
value="单位/价格信息" content="单位/价格信息">
</jnpf-text>
<view style="float: left; width:8px; height: 16px;background-color: cadetblue;margin-right: 8px;"></view>单位/价格信息
</u-form-item>
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
@ -303,10 +294,7 @@
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
<u-form-item>
<jnpf-text
:textStyle='{"color":"#62A2CB","font-weight":"bold","text-decoration":"none","font-size":16,"line-height":32,"font-style":"normal","text-align":"center"}'
value="销售信息" content="销售信息">
</jnpf-text>
<view style="float: left; width:8px; height: 16px;background-color: cadetblue;margin-right: 8px;"></view>销售信息
</u-form-item>
</view>
@ -333,10 +321,7 @@
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
<u-form-item>
<jnpf-text
:textStyle='{"color":"#62A2CB","font-weight":"bold","text-decoration":"none","font-size":16,"line-height":32,"font-style":"normal","text-align":"center"}'
value="库存信息" content="库存信息">
</jnpf-text>
<view style="float: left; width:8px; height: 16px;background-color: cadetblue;margin-right: 8px;"></view>库存信息
</u-form-item>
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
@ -397,10 +382,7 @@
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
<u-form-item>
<jnpf-text
:textStyle='{"color":"#62A2CB","font-weight":"bold","text-decoration":"none","font-size":16,"line-height":32,"font-style":"normal","text-align":"center"}'
value="适配业务范围" content="适配业务范围">
</jnpf-text>
<view style="float: left; width:8px; height: 16px;background-color: cadetblue;margin-right: 8px;"></view>适配业务范围
</u-form-item>
</view>
<view class="u-p-l-20 u-p-r-20 form-item-box">
@ -411,7 +393,7 @@
:disabled="judgeWrite('jnpf_jg_product_business_jnpf_businessLineId')"
@change="changeData('jnpf_jg_product_business_jnpf_businessLineId',-1)" optionType="default"
direction="horizontal" :props="jnpf_jg_product_business_jnpf_businessLineIdProps"
:options="jnpf_jg_product_business_jnpf_businessLineIdOptions">
:options="jnpf_jg_product_business_jnpf_businessLineIdOptions" :showOnly="true">
</jnpf-checkbox>
</u-form-item>
</view>
@ -745,7 +727,7 @@
"multiple": false,
"children": ""
},
labelwidth: 120 * 1.5,
labelwidth: 130 * 1.5,
menuId: '',
jurisdictionType: '',
ruleList: {

Loading…
Cancel
Save