Browse Source

叫料标签 :叫料总数量= 叫料包装数量*包装数量

master_hella_20240701
yufei0306 6 months ago
parent
commit
e90cabd834
  1. 5
      src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts
  2. 6
      src/views/wms/basicDataManage/labelManage/callmaterials/index.vue

5
src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts

@ -97,7 +97,7 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '叫料包装数量', label: '叫料包装数量',
field: 'qty', field: 'callmaterialQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 120 width: 120
@ -114,7 +114,7 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '包装数量', label: '包装数量',
field: 'callmaterialQty', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 120 width: 120
@ -138,6 +138,7 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
disabled: true,
style: {width:'100%'}, style: {width:'100%'},
min: 0, min: 0,
precision: 6 precision: 6

6
src/views/wms/basicDataManage/labelManage/callmaterials/index.vue

@ -49,6 +49,12 @@
:apiCreate="CallmaterialsApi.createCallmaterials" :apiCreate="CallmaterialsApi.createCallmaterials"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
:isBusiness="false" :isBusiness="false"
:sumFormDataByForm ="(formRef,formModel)=>{
const {qty=0,callmaterialQty=0} = formModel
formRef.value.setValues({
callmaterialQtySum:qty*callmaterialQty,
})
}"
/> />
<!-- 详情 --> <!-- 详情 -->

Loading…
Cancel
Save