huangbin 4 gadi atpakaļ
vecāks
revīzija
77a64c10fe

+ 1 - 0
src/views/business/plan/components/add/index.vue

@@ -93,6 +93,7 @@
                        name="PlanQty">
             <a-input-number class="dialogInput"
                             style="width: 200px"
+                            :min="0"
                             max="99999999999"
                             v-model:value="formState.PlanQty"
                             placeholder="请输入计划量"></a-input-number>

+ 1 - 0
src/views/business/plan/components/modify/index.vue

@@ -94,6 +94,7 @@
                        name="PlanQty">
             <a-input-number class="dialogInput"
                             style="width: 200px"
+                            :min="0"
                             v-model:value="formState.PlanQty"
                             placeholder="请输入计划量"></a-input-number>
           </a-form-item>

+ 1 - 0
src/views/business/purchase/components/funds/index.vue

@@ -142,6 +142,7 @@
                          name="Amount">
               <a-input-number class="dialogInput"
                               style="width: 200px"
+                              :min="0"
                               suffix="元"
                               type="number"
                               placeholder="请输入登记金额"

+ 1 - 0
src/views/business/purchase/components/invoice/index.vue

@@ -106,6 +106,7 @@
               <a-input-number v-model:value="formState.InvoiceAmount"
                               class="dialogInput"
                               style="width: 200px"
+                              :min="0"
                               suffix="元"
                               placeholder="请输入收票金额" />
               <div class="tip">

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

@@ -114,6 +114,7 @@
                   <a-input-number v-model:value="formState.ReckonRealQty"
                                   class="dialogInput"
                                   style="width: 200px"
+                                  :min="0"
                                   placeholder="请输入交收量"
                                   suffix="单位" />
                   <div class="tip mt10">
@@ -127,6 +128,7 @@
                   <a-input-number disabled
                                   class="dialogInput"
                                   style="width: 200px"
+                                  :min="0"
                                   placeholder="请输入交收量"
                                   suffix="单位" />
                   <div class="tip mt10"><span class="fl">未定价量:--{{selectedRow.enumdicname}}</span><a
@@ -147,6 +149,7 @@
                   <a-input-number v-model:value="formState.ReckonOtherAmount"
                                   class="dialogInput"
                                   style="width: 200px"
+                                  :min="0"
                                   placeholder="请输入其他费用"
                                   suffix="元" />
                 </a-form-item>
@@ -154,6 +157,7 @@
                   <a-input-number readonly
                                   class="dialogInput"
                                   style="width: 200px"
+                                  :min="0"
                                   placeholder="请输入其他费用"
                                   suffix="元" />
                 </a-form-item>
@@ -187,6 +191,7 @@
                       <a-input-number v-model:value="formState.AddMargin"
                                       class="dialogInput"
                                       style="width: 200px;"
+                                      :min="0"
                                       placeholder="请输入调整保证金"
                                       suffix="元" />
                     </a-form-item>
@@ -195,6 +200,7 @@
                       <a-input-number v-model:value="formState.DecMargin"
                                       class="dialogInput"
                                       style="width: 200px;"
+                                      :min="0"
                                       placeholder="请输入调整保证金"
                                       suffix="元" />
                     </a-form-item>
@@ -217,6 +223,7 @@
                     <a-input-number disabled
                                     class="dialogInput"
                                     style="width: 200px;"
+                                    :min="0"
                                     placeholder="请输入调整保证金"
                                     suffix="元" />
                   </div>
@@ -255,12 +262,14 @@
                                       @change="formState.ReckonAdjustAmount= Math.abs(formState.ReckonAdjustAmount)"
                                       class="dialogInput"
                                       style="width: 200px;"
+                                      :min="0"
                                       placeholder="请输入调整金额"
                                       suffix="元"
                                       v-if="checkedObj.adjustAmount===1" />
                       <a-input-number v-model:value="formState.ReckonAdjustAmount"
                                       @change="formState.ReckonAdjustAmount= -1*Math.abs(formState.ReckonAdjustAmount)"
                                       class="dialogInput"
+                                      :min="0"
                                       style="width: 200px;"
                                       placeholder="请输入调整金额"
                                       suffix="元"
@@ -285,6 +294,7 @@
                     <a-input-number disabled
                                     class="dialogInput"
                                     style="width: 200px;"
+                                    :min="0"
                                     placeholder="请输入调整金额"
                                     suffix="元" />
                   </div>

+ 1 - 0
src/views/business/purchase/components/storage/index.vue

@@ -120,6 +120,7 @@
               <a-input-number class="dialogInput"
                               style="width: 200px"
                               suffix="单位"
+                              :min="0"
                               placeholder="请输入入库数量"
                               v-model:value="formState.Qty">
               </a-input-number>

+ 1 - 0
src/views/business/sell/components/funds/index.vue

@@ -143,6 +143,7 @@
               <a-input-number class="dialogInput"
                               style="width: 200px"
                               suffix="元"
+                              :min="0"
                               type="number"
                               placeholder="请输入登记金额"
                               v-model:value="formState.Amount" />

+ 1 - 0
src/views/business/sell/components/invoice/index.vue

@@ -107,6 +107,7 @@
                               class="dialogInput"
                               style="width: 200px"
                               suffix="元"
+                              :min="0"
                               placeholder="请输入收票金额" />
               <div class="tip">
                 <div>应收票额:{{ selectedRow.invoiceamount }} {{ selectedRow.currencyname }}</div>

+ 10 - 0
src/views/business/sell/components/settlement/index.vue

@@ -114,6 +114,7 @@
                   <a-input-number v-model:value="formState.ReckonRealQty"
                                   class="dialogInput"
                                   style="width: 200px"
+                                  :min="0"
                                   placeholder="请输入交收量"
                                   suffix="单位" />
                   <div class="tip mt10"><span>待交收量:{{selectedRow.unsureqty}}吨</span><a
@@ -125,6 +126,7 @@
                   <a-input-number disabled
                                   class="dialogInput"
                                   style="width: 200px"
+                                  :min="0"
                                   placeholder="请输入交收量"
                                   suffix="单位" />
                   <div class="tip mt10"><span class="fl">未定价量:--吨</span><a class="blue fr">全部登记</a>
@@ -145,6 +147,7 @@
                                   class="dialogInput"
                                   style="width: 200px"
                                   placeholder="请输入其他费用"
+                                  :min="0"
                                   suffix="元" />
                 </a-form-item>
                 <a-form-item v-else>
@@ -152,6 +155,7 @@
                                   class="dialogInput"
                                   style="width: 200px"
                                   placeholder="请输入其他费用"
+                                  :min="0"
                                   suffix="元" />
                 </a-form-item>
               </a-form-item>
@@ -184,6 +188,7 @@
                       <a-input-number v-model:value="formState.AddMargin"
                                       class="dialogInput"
                                       style="width: 200px;"
+                                      :min="0"
                                       placeholder="请输入调整保证金"
                                       suffix="元" />
                     </a-form-item>
@@ -191,6 +196,7 @@
                                  v-else>
                       <a-input-number v-model:value="formState.DecMargin"
                                       class="dialogInput"
+                                      :min="0"
                                       style="width: 200px;"
                                       placeholder="请输入调整保证金"
                                       suffix="元" />
@@ -214,6 +220,7 @@
                     <a-input-number disabled
                                     class="dialogInput"
                                     style="width: 200px;"
+                                    :min="0"
                                     placeholder="请输入调整保证金"
                                     suffix="元" />
                   </div>
@@ -253,11 +260,13 @@
                                       class="dialogInput"
                                       style="width: 200px;"
                                       placeholder="请输入调整金额"
+                                      :min="0"
                                       suffix="元"
                                       v-if="checkedObj.adjustAmount===1" />
                       <a-input-number v-model:value="formState.ReckonAdjustAmount"
                                       @change="formState.ReckonAdjustAmount= -1*Math.abs(formState.ReckonAdjustAmount)"
                                       class="dialogInput"
+                                      :min="0"
                                       style="width: 200px;"
                                       placeholder="请输入调整金额"
                                       suffix="元"
@@ -283,6 +292,7 @@
                                     class="dialogInput"
                                     style="width: 200px;"
                                     placeholder="请输入调整金额"
+                                    :min="0"
                                     suffix="元" />
                   </div>
                 </a-form-item>

+ 2 - 2
src/views/business/sell/components/someprice/index.vue

@@ -99,7 +99,7 @@
               <a-input-number class="dialogInput"
                               style="width: 200px"
                               v-model:value="formState.PricedPrice"
-                              ::min="0"
+                              :min="0"
                               placeholder="请输入点价价格" />
             </a-form-item>
           </a-col>
@@ -125,7 +125,7 @@
               <a-input-number class="dialogInput"
                               style="width: 200px"
                               v-model:value="formState.PricedQty"
-                              ::min="0"
+                              :min="0"
                               :max="selectedRow.unpricedqty"
                               placeholder="请输入点价数量" />
               <div class="tip mt10">

+ 1 - 0
src/views/business/sell/components/storage/index.vue

@@ -124,6 +124,7 @@
               <a-input-number class="dialogInput"
                               style="width: 200px"
                               suffix="单位"
+                              :min="0"
                               placeholder="请输入出库数量"
                               v-model:value="formState.Qty">
               </a-input-number>

+ 1 - 0
src/views/information/goods/components/hedgingModify/index.vue

@@ -45,6 +45,7 @@
                 <a-input-number class="dialogInput"
                                 style="width: 200px"
                                 type="number"
+                                :min="0"
                                 placeholder="请输入套保比例"
                                 v-model:value="formState.needhedgeratio" />
                 <div class="backUnit">%</div>

+ 2 - 0
src/views/information/goods/components/modify/index.vue

@@ -126,6 +126,7 @@
                            :rules="rules.gldwrstandards.convertfactor">
                 <a-input-number class="dialogInput"
                                 style="width: 200px"
+                                :min="0"
                                 v-model:value="domain.convertfactor"
                                 placeholder="请输入标仓系数"></a-input-number>
               </a-form-item>
@@ -249,6 +250,7 @@
                            :rules="rules.wrsconvertdetails.convertratio">
                 <a-input-number class="dialogInput"
                                 style="width: 200px"
+                                :min="0"
                                 v-model:value="domain.convertratio"
                                 placeholder="请输入套保系数"></a-input-number>
               </a-form-item>

+ 1 - 0
src/views/information/spot-contract/components/add/index.vue

@@ -276,6 +276,7 @@
                 <a-input-number class="dialogInput suffixGrey"
                                 v-model:value="formState.PriceMove"
                                 placeholder="请输入升贴水"
+                                :min="0"
                                 :suffix="`${payCurrencyUnit}/${numberUnit}`"
                                 style="width: 200px" />
               </a-form-item>

+ 1 - 0
src/views/information/spot-contract/components/modify/index.vue

@@ -263,6 +263,7 @@
                 <a-input-number class="dialogInput suffixGrey"
                                 v-model:value="formState.PriceMove"
                                 placeholder="请输入升贴水"
+                                :min="0"
                                 :suffix="`${payCurrencyUnit}/${numberUnit}`"
                                 style="width: 200px" />
               </a-form-item>

+ 3 - 0
src/views/market/spot_trade/components/post_buying/index.vue

@@ -33,6 +33,7 @@
                            name="FixedPrice">
                 <a-input-number class="commonInput"
                                 style="width: 260px"
+                                :min="0"
                                 v-model:value="formState.FixedPrice" />
               </a-form-item>
             </a-col>
@@ -42,6 +43,7 @@
                            name="PriceMove">
                 <a-input-number class="commonInput"
                                 style="width: 260px"
+                                :min="0"
                                 v-model:value="formState.PriceMove" />
               </a-form-item>
             </a-col>
@@ -51,6 +53,7 @@
                            name="OrderQty">
                 <a-input-number class="commonInput"
                                 style="width: 260px"
+                                :min="0"
                                 v-model:value="formState.OrderQty" />
               </a-form-item>
             </a-col>

+ 3 - 0
src/views/order/pre_sale_warehouse_receipt/components/pre_sale_warehouse_receipt_order_summary/components/listed/index.vue

@@ -34,6 +34,7 @@
                            name="FixedPrice">
                 <a-input-number class="dialogInput"
                                 style="width: 140px"
+                                :min="0"
                                 v-model:value="formState.FixedPrice"
                                 placeholder="请输入挂牌价" />
               </a-form-item>
@@ -43,6 +44,7 @@
               <a-form-item label="基差"
                            name="PriceMove">
                 <a-input-number class="commonInput"
+                                :min="0"
                                 v-model:value="formState.PriceMove"
                                 style="width: 140px" />
               </a-form-item>
@@ -54,6 +56,7 @@
                            name="OrderQty">
                 <a-input-number class="dialogInput"
                                 style="width: 140px"
+                                :min="0"
                                 :suffix="selectedRow.enumdicname"
                                 v-model:value="formState.OrderQty"
                                 placeholder="请输入挂牌数量" />

+ 2 - 0
src/views/order/spot_warran/components/spot_warrant_spot_details/components/listing/index.vue

@@ -33,6 +33,7 @@
               <a-form-item label="挂牌价"
                            name="FixedPrice">
                 <a-input-number class="dialogInput"
+                                :min="0"
                                 style="width: 140px"
                                 v-model:value="formState.FixedPrice"
                                 placeholder="请输入挂牌价" />
@@ -43,6 +44,7 @@
               <a-form-item label="升贴水"
                            name="PriceMove">
                 <a-input-number class="commonInput"
+                                :min="0"
                                 v-model:value="formState.PriceMove"
                                 style="width: 140px" />
               </a-form-item>

+ 99 - 99
src/views/order/spot_warran/components/spot_warrant_spot_details/components/pick_up/index.vue

@@ -1,103 +1,103 @@
 <template>
-    <!-- 现货仓单 现货明细 提货 true -->
-    <Drawer :title="'提货'" :placement="'right'" :visible="visible" @cancel="cancel">
-        <!-- 挂牌 -->
-        <div class="listed">
-            <div class="condition">
-                <a-button class="conditionBtn">{{selectedRow.deliverygoodsname}}</a-button>
-                <a-button class="conditionBtn">{{selectedRow.wrtypename}}</a-button>
-                <a-button class="conditionBtn">{{selectedRow.warehousename}}</a-button>
-            </div>
-            <div class="formBar">
-                <a-form
-                    class="inlineForm dialogForm"
-                    ref="formRef"
-                    :model="formState"
-                    :rules="rules"
-                >
-                    <a-row :gutter="24">
-                        <a-col :span="12">
-                            <a-form-item label="提货数量" name="OutQty">
-                                <a-input-number
-                                    class="commonInput"
-                                    v-model:value="formState.OutQty"
-                                    :max="selectedRow.enableqty"
-                                    :suffix="selectedRow.enumdicname"
-                                    style="width: 140px"
-                                />
-                            </a-form-item>
-                        </a-col>
-                        <a-col :span="12">
-                            <a-form-item label="提货人" name="ContactName">
-                                <a-input
-                                    class="commonInput"
-                                    v-model:value="formState.ContactName"
-                                    style="width: 140px"
-                                />
-                            </a-form-item>
-                        </a-col>
-                    </a-row>
-                    <a-row :gutter="24">
-                        <a-col :span="12" class="mt-20">
-                            <a-form-item>
-                                <a-progress class="formProgress" :percent="30" />
-                                <div class="unit">
-                                    <span>0</span>
-                                    <span>{{selectedRow.enableqty}}{{selectedRow.enumdicname}}</span>
-                                </div>
-                            </a-form-item>
-                        </a-col>
-                        <a-col :span="12">&nbsp;</a-col>
-                    </a-row>
-                    <a-row :gutter="24">
-                        <a-col :span="12">
-                            <a-form-item label="联系方式" name="ContactNum">
-                                <a-input
-                                    class="commonInput"
-                                    v-model:value="formState.ContactNum"
-                                    style="width: 140px"
-                                />
-                            </a-form-item>
-                        </a-col>
-                        <a-col :span="12">
-                            <a-form-item label="预约日期" name="AppointmentDate">
-                                <a-date-picker
-                                    class="commonDatePicker dialogDatePicker"
-                                    v-model:value="formState.AppointmentDate"
-                                    style="width: 140px"
-                                />
-                            </a-form-item>
-                        </a-col>
-                    </a-row>
-                    <a-row :gutter="24">
-                        <a-col :span="12">
-                            <a-form-item label="备注" name="AppointmentRemark">
-                                <a-input
-                                    class="commonInput"
-                                    v-model:value="formState.AppointmentRemark"
-                                    style="width: 140px"
-                                />
-                            </a-form-item>
-                        </a-col>
-                        <a-col :span="12">&nbsp;</a-col>
-                    </a-row>
-                    <a-row :gutter="24" type="flex" justify="center">
-                        <a-col :span="24">
-                            <a-form-item class="tc">
-                                <a-button
-                                    class="listedBtn"
-                                    :loading="loading"
-                                    :disabled="loading"
-                                    @click="submit"
-                                >提货</a-button>
-                                <a-button class="ml10 cancelBtn" @click="cancel">取消</a-button>
-                            </a-form-item>
-                        </a-col>
-                    </a-row>
-                </a-form>
-            </div>
-        </div>
-    </Drawer>
+  <!-- 现货仓单 现货明细 提货 true -->
+  <Drawer :title="'提货'"
+          :placement="'right'"
+          :visible="visible"
+          @cancel="cancel">
+    <!-- 挂牌 -->
+    <div class="listed">
+      <div class="condition">
+        <a-button class="conditionBtn">{{selectedRow.deliverygoodsname}}</a-button>
+        <a-button class="conditionBtn">{{selectedRow.wrtypename}}</a-button>
+        <a-button class="conditionBtn">{{selectedRow.warehousename}}</a-button>
+      </div>
+      <div class="formBar">
+        <a-form class="inlineForm dialogForm"
+                ref="formRef"
+                :model="formState"
+                :rules="rules">
+          <a-row :gutter="24">
+            <a-col :span="12">
+              <a-form-item label="提货数量"
+                           name="OutQty">
+                <a-input-number class="commonInput"
+                                v-model:value="formState.OutQty"
+                                :min="0"
+                                :max="selectedRow.enableqty"
+                                :suffix="selectedRow.enumdicname"
+                                style="width: 140px" />
+              </a-form-item>
+            </a-col>
+            <a-col :span="12">
+              <a-form-item label="提货人"
+                           name="ContactName">
+                <a-input class="commonInput"
+                         v-model:value="formState.ContactName"
+                         style="width: 140px" />
+              </a-form-item>
+            </a-col>
+          </a-row>
+          <a-row :gutter="24">
+            <a-col :span="12"
+                   class="mt-20">
+              <a-form-item>
+                <a-progress class="formProgress"
+                            :percent="30" />
+                <div class="unit">
+                  <span>0</span>
+                  <span>{{selectedRow.enableqty}}{{selectedRow.enumdicname}}</span>
+                </div>
+              </a-form-item>
+            </a-col>
+            <a-col :span="12">&nbsp;</a-col>
+          </a-row>
+          <a-row :gutter="24">
+            <a-col :span="12">
+              <a-form-item label="联系方式"
+                           name="ContactNum">
+                <a-input class="commonInput"
+                         v-model:value="formState.ContactNum"
+                         style="width: 140px" />
+              </a-form-item>
+            </a-col>
+            <a-col :span="12">
+              <a-form-item label="预约日期"
+                           name="AppointmentDate">
+                <a-date-picker class="commonDatePicker dialogDatePicker"
+                               v-model:value="formState.AppointmentDate"
+                               style="width: 140px" />
+              </a-form-item>
+            </a-col>
+          </a-row>
+          <a-row :gutter="24">
+            <a-col :span="12">
+              <a-form-item label="备注"
+                           name="AppointmentRemark">
+                <a-input class="commonInput"
+                         v-model:value="formState.AppointmentRemark"
+                         style="width: 140px" />
+              </a-form-item>
+            </a-col>
+            <a-col :span="12">&nbsp;</a-col>
+          </a-row>
+          <a-row :gutter="24"
+                 type="flex"
+                 justify="center">
+            <a-col :span="24">
+              <a-form-item class="tc">
+                <a-button class="listedBtn"
+                          :loading="loading"
+                          :disabled="loading"
+                          @click="submit">提货</a-button>
+                <a-button class="ml10 cancelBtn"
+                          @click="cancel">取消</a-button>
+              </a-form-item>
+            </a-col>
+          </a-row>
+        </a-form>
+      </div>
+    </div>
+  </Drawer>
 </template>
 
 <script lang="ts">