ysy %!s(int64=2) %!d(string=hai) anos
pai
achega
d37de192e7
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      src/views/saleOrder/salesToProduction.vue

+ 5 - 2
src/views/saleOrder/salesToProduction.vue

@@ -344,7 +344,7 @@ export default {
        
         requiredFormingNum = Number(requiredFormingNum) + Number(item.requiredFormingNum);
 
-        if(this.form.weightUnit == 'G' || this.form.weightUnit == 'g') {
+        if(this.form.weightUnit == 'G' || this.form.weightUnit == 'g' ||  this.form.weightUnit == '克') {
            this.form.newWeightUnit = 'kg'
            _sumOrderWeight = (this.form.sumOrderWeight * Number(this.form.marginCoefficient || 1))/ 1000
         } else {
@@ -506,7 +506,10 @@ export default {
                   brandNo: params.brandNo,
                   categoryId: params.categoryId,
                   productCode: params.productCode,
-                  productName: params.productName
+                  productName: params.productName,
+
+                  newWeightUnit: this.form.newWeightUnit,
+                  newSumOrderWeight: this.form.newSumOrderWeight
                 }
               };
               if (this.$route.query.type == 'edit') {