guoyujia 1 year ago
parent
commit
6e2255c7b8

+ 6 - 5
src/views/business/productionBatch/computedMaterialForm.vue

@@ -27,8 +27,8 @@
                 v-model="form.materialpickUpQuantity"
                 :min="0"
                 :precision="2"
-                style="width: 200px; margin-left: 30px"
                 controls-position="right"
+                style="width: 200px; margin-left: 30px"
                 @input="handleInputMaterialpickUpQuantity"
               />
             </el-form-item>
@@ -43,7 +43,7 @@
               label-width="100px"
               style="margin-top: 30px"
             >
-              <span>{{ form.peqty }}</span>
+              <span style="margin-left: 40px">{{ form.peqty }}</span>
             </el-form-item>
           </el-col>
         </el-row>
@@ -51,6 +51,7 @@
           <el-col :span="18">
             <el-form-item
               label="批数"
+              v-model="form.lotNumber"
               prop="lotNumber"
               label-width="100px"
               style="margin-top: 30px"
@@ -92,7 +93,6 @@ const detailInfo = ref({})
 function open(data) {
   reset();
   detailInfo.value = proxy.deepClone(data);
-  console.log(detailInfo.value)
   getProductionLotAmount({lotno:detailInfo.value.productionPlanNo,lotseq:detailInfo.value.lineNumber}).then(res =>{
     if(res.code == 200) {
       form.value.peqty = res.data[0].peqty
@@ -118,13 +118,14 @@ function reset() {
   proxy.resetForm("formRef");
 }
 //填写领料量
-function handleInputMaterialpickUpQuantity() {
-  form.value.lotNumber = Math.ceil(form.value.materialpickUpQuantity / form.value.peqty);
+function handleInputMaterialpickUpQuantity(data) {
+   form.value.lotNumber = Math.ceil(data / form.value.peqty);
 }
 
 // 投产批数带回
 function handleInputLotNumber(){
   singleSelected.value(form.value.lotNumber)
+  visible.value = false
 };
 
 /** 暴露给父组件的方法 */

+ 1 - 0
src/views/business/productionBatch/form.vue

@@ -312,6 +312,7 @@ function handleUpdateLotNumber(data) {
   }
 }
 function handleInputLotNumber(data) {
+  form.value.lotNumber = data
   handleUpdateLotNumber(data)
 }
 //当尾批switch状态改变时