ソースを参照

收货-维护货品属性增加中包规格

zhaohuanhuan 15 時間 前
コミット
79aedc661a
1 ファイル変更15 行追加1 行削除
  1. 15 1
      src/views/inbound/takeDelivery/components/Attribute.vue

+ 15 - 1
src/views/inbound/takeDelivery/components/Attribute.vue

@@ -59,6 +59,16 @@
                        clearable
                        autocomplete="off"
             />
+             <van-field v-if="attribute.includes('carton') && midPackSpecEnabled"
+                       v-model="midPackSpec"
+                       name="midPackSpec"
+                       type="number"
+                       label="中包规格:"
+                       placeholder="请输入每箱中包规格"
+                       :label-width="70"
+                       clearable
+                       autocomplete="off"
+            />
           </van-cell-group>
         </van-form>
       </div>
@@ -82,7 +92,10 @@ const packCarton = ref('')
 const weight = ref('')
 const packId=ref('')
 const attribute = ref([])
+const midPackSpec = ref('')
+const midPackSpecEnabled = ref(false)
 const show = (item, attributeMap) => {
+  midPackSpec.value =''
   length.value =''
   width.value =''
   height.value = ''
@@ -90,6 +103,7 @@ const show = (item, attributeMap) => {
   packId.value =attributeMap.packId
   weight.value = ''
   attribute.value = item
+  midPackSpecEnabled.value = attributeMap.midPackSpecEnabled
   attributeTrueFalseBy.value = true
 }
 
@@ -120,7 +134,7 @@ const beforeClose = (action) =>
         length: length.value ? length.value / 100 : undefined,
         width: width.value ? width.value / 100 : undefined,
         packCarton: packCarton.value,
-        packId: packCarton.value ? '1/' + packCarton.value : 'STANDARD',
+        packId: midPackSpecEnabled.value ? '1/' +midPackSpec.value+'/' + packCarton.value : packCarton.value ? '1/' + packCarton.value : 'STANDARD',
         weight: weight.value ? weight.value: undefined ,
         cube:(height.value && width.value && length.value)? (height.value / 100) * (length.value / 100) * (width.value / 100):undefined,
       }