diff --git a/resources/beike/admin/views/pages/logistics/form/form.blade.php b/resources/beike/admin/views/pages/logistics/form/form.blade.php index d4e10579..611a4cb3 100644 --- a/resources/beike/admin/views/pages/logistics/form/form.blade.php +++ b/resources/beike/admin/views/pages/logistics/form/form.blade.php @@ -144,9 +144,25 @@ - + + + +
+ +
{{ __('product.g') }}
+
+
+ + + + + {{-- {{ __('admin/logistics.unit',['unit'=>__('product.g')]) }} - +
--}} {{ __('admin/logistics.unit',['unit'=>'USD']) }} @@ -159,34 +175,34 @@ {{-- 续重范围 START --------------------------------------------------------}} - {{--续重范围列表--}} -
+ {{--续重范围列表 v-for="(cwItem,cwIndex) in continuation_weight_list" :key="cwIndex" --}} +
+ class="form-control" style="flex: 0 0 130px" readonly/>
-
{{ __('product.g') }}
-
- -
+ {{--
--}} + {{-- --}} + {{--
--}}
{{--续重范围添加--}} - + {{----}} {{-- 续重范围 END --------------------------------------------------------}} @@ -351,7 +367,9 @@ } } }, - created() {}, + created() { + console.log(this.continuation_weight_list); + }, methods: { dev() { console.log(1); @@ -735,7 +753,12 @@ // 续重范围 - 续重范围改变 continuationWeightChange(e,field = 'min',cwIndex = 0){ let value = e.currentTarget.value || e.target.value; - this.continuation_weight_list[cwIndex][field] = value || 0; + let info = this.continuation_weight_list[cwIndex] || {}; + info[field] = parseFloat(value) || 0; + + this.continuation_weight_list[cwIndex] = info; + console.log(this.continuation_weight_list); + }, // 续重范围 - 删除续重范围 continuationWeightRemove(cwIndex){ @@ -744,6 +767,12 @@ delete weightList[cwIndex]; _this.continuation_weight_list = Object.values(weightList); + }, + // 首重改变 + firstChange(event){ + // let value = event.currentTarget.value || event.target.value; + this.continuationWeightChange(event,'min',0) + this.$forceUpdate(); } diff --git a/resources/beike/admin/views/pages/logistics/index.blade.php b/resources/beike/admin/views/pages/logistics/index.blade.php index ff353467..e16880b3 100644 --- a/resources/beike/admin/views/pages/logistics/index.blade.php +++ b/resources/beike/admin/views/pages/logistics/index.blade.php @@ -120,7 +120,7 @@
{{ __('admin/logistics.first_weight') }}
-
{{ $logistic['first_weight'] }}KG
+
{{ $logistic['first_weight'] }}{{ __('product.g') }}
{{ __('admin/logistics.first_weight_fee') }}
@@ -130,7 +130,7 @@
{{ __('admin/logistics.add_weight') }}
-
{{ $logistic['add_weight'] }}KG
+
{{ $logistic['add_weight'] }}{{ __('product.g') }}
{{ __('admin/logistics.continuation_weight_fee') }}