huangbin 4 лет назад
Родитель
Сommit
dd62b17240
1 измененных файлов с 23 добавлено и 10 удалено
  1. 23 10
      src/views/business/purchase/components/settlement/index.vue

+ 23 - 10
src/views/business/purchase/components/settlement/index.vue

@@ -47,7 +47,8 @@
         <a-row :gutter="24">
           <a-col :span="12">
             <a-form-item label="合同签署量">
-              <span class="white">{{ formatValue(selectedRow.qty + selectedRow.enumdicname) }}</span>
+              <span
+                    class="white">{{ formatValue(selectedRow.qty + selectedRow.enumdicname) }}</span>
             </a-form-item>
           </a-col>
           <a-col :span="12">
@@ -74,7 +75,8 @@
           </a-col>
           <a-col :span="12">
             <a-form-item label="调整金额">
-              <span class="white">{{ selectedRow.reckonadjustamount + selectedRow.currencyname }}</span>
+              <span
+                    class="white">{{ selectedRow.reckonadjustamount + selectedRow.currencyname }}</span>
             </a-form-item>
           </a-col>
           <a-col :span="12">
@@ -84,7 +86,8 @@
           </a-col>
           <a-col :span="24">
             <a-form-item label="其他费用">
-              <span class="white">{{ selectedRow.reckonotheramount + selectedRow.currencyname }}</span>
+              <span
+                    class="white">{{ selectedRow.reckonotheramount + selectedRow.currencyname }}</span>
             </a-form-item>
           </a-col>
         </a-row>
@@ -113,8 +116,11 @@
                                   style="width: 200px"
                                   placeholder="请输入交收量"
                                   suffix="单位" />
-                  <div class="tip mt10"><span>待交收量:{{selectedRow.unsureqty}}吨</span><a class="blue fr"
-                       @click="formState.ReckonRealQty=selectedRow.unsureqty">全部登记</a></div>
+                  <div class="tip mt10">
+                    <span>待交收量:{{selectedRow.unsureqty}}{{selectedRow.enumdicname}}</span><a
+                       class="blue fr"
+                       @click="formState.ReckonRealQty=selectedRow.unsureqty">全部登记</a>
+                  </div>
                 </a-form-item>
                 <a-form-item class="relative"
                              v-else>
@@ -123,7 +129,9 @@
                                   style="width: 200px"
                                   placeholder="请输入交收量"
                                   suffix="单位" />
-                  <div class="tip mt10"><span class="fl">未定价量:--吨</span><a class="blue fr">全部登记</a></div>
+                  <div class="tip mt10"><span class="fl">未定价量:--{{selectedRow.enumdicname}}</span><a
+                       class="blue fr">全部登记</a>
+                  </div>
                 </a-form-item>
               </a-form-item>
             </a-col>
@@ -157,7 +165,8 @@
                 <template #label>
                   <a-checkbox value="调整保证金"
                               v-model:checked="checkedObj.margin"
-                              @change="()=>checkedObj.margin = !checkedObj.margin">调整保证金</a-checkbox>
+                              @change="()=>checkedObj.margin = !checkedObj.margin">调整保证金
+                  </a-checkbox>
                 </template>
                 <a-form-item class="relative"
                              v-if="checkedObj.margin">
@@ -220,7 +229,8 @@
                 <template #label>
                   <a-checkbox value="调整金额"
                               v-model:checked="checkedObj.justAmount"
-                              @change="()=>checkedObj.justAmount = !checkedObj.justAmount">调整金额</a-checkbox>
+                              @change="()=>checkedObj.justAmount = !checkedObj.justAmount">调整金额
+                  </a-checkbox>
                 </template>
                 <a-form-item class="relative"
                              v-if="checkedObj.justAmount">
@@ -229,11 +239,13 @@
                     <a-row style="width: 200px">
                       <a-col :span="12">
                         <a-radio :value="1"
-                                 @focus="()=>{formState.ReckonAdjustAmount  ?formState.ReckonAdjustAmount= Math.abs(formState.ReckonAdjustAmount):0}">增加</a-radio>
+                                 @focus="()=>{formState.ReckonAdjustAmount  ?formState.ReckonAdjustAmount= Math.abs(formState.ReckonAdjustAmount):0}">
+                          增加</a-radio>
                       </a-col>
                       <a-col :span="12">
                         <a-radio :value="2"
-                                 @focus="()=>{formState.ReckonAdjustAmount  ?formState.ReckonAdjustAmount= -1* Math.abs(formState.ReckonAdjustAmount):0}">减少</a-radio>
+                                 @focus="()=>{formState.ReckonAdjustAmount  ?formState.ReckonAdjustAmount= -1* Math.abs(formState.ReckonAdjustAmount):0}">
+                          减少</a-radio>
                       </a-col>
                     </a-row>
                   </a-radio-group>
@@ -319,6 +331,7 @@ export default defineComponent({
         const { visible, cancel } = closeModal('purchase_pending_settlement');
         const loading = ref<boolean>(false);
         const { rules, formState, formRef, checkedObj } = handleForm();
+
         function submit() {
             const wrapEl = unref(formRef);
             wrapEl.validate().then((nameList: any) => {