Explorar el Código

批次号展示

zhangqing hace 1 año
padre
commit
adc82c5637
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. 5 3
      src/views/saleOrder/salesToProductionNewTwo.vue

+ 5 - 3
src/views/saleOrder/salesToProductionNewTwo.vue

@@ -818,9 +818,11 @@ export default {
             if (this.form.factoriesId) {//查询工厂名称
                 this.form.factoriesIdName = this.factoryList.find((v) => v.id == this.form.factoriesId).name;
             }
-            // if (this.form.salesOrders.length > 0) { //多条订单时,拼接批次号(订单数量)
-            //     this.form.batchNo = this.form.salesOrders.map((v) => v.batchNo + `(${measuringUnit})`).join(',');
-            // } 
+            if (this.form.salesOrders.length > 1) { //多条订单时,拼接批次号(订单数量)
+                this.form.batchNo = this.form.salesOrders.map((v) => v.batchNo + `(生产数量:${v.contractNum})`).join(',');
+            } else {
+                this.form.batchNo = this.form.salesOrders[0].batchNo
+            }
             console.log(this.form.salesOrders,'123666');
 
             this.$refs.form.validate((valid) => {