Ver código fonte

修改 议价单 拒绝不能输入的bug

huangbin 4 anos atrás
pai
commit
e35ec0287a

+ 1 - 1
public/config/app.config.json

@@ -1,3 +1,3 @@
 {
-    "apiUrl": "http://192.168.31.139:8080/cfg?key=test_139"
+    "apiUrl": "http://192.168.31.176:8080/cfg?key=test_176"
 }

+ 55 - 61
src/views/order/commodity_contract/components/commodity_contract_bargain/components/commodity_contract_bargain_refuse_order/index.vue

@@ -1,34 +1,28 @@
 <template>
   <!-- 商品合约 议价单 撤单 -->
-  <a-modal class="commonModal reasonModal"
-           title="原因"
-           v-model:visible="visible"
-           centered
-           @click="cancel"
-           :maskClosable="false">
+  <a-modal
+    class="commonModal reasonModal"
+    title="原因"
+    v-model:visible="visible"
+    centered
+    @click="cancel"
+    :maskClosable="false"
+  >
     <template #footer>
-      <a-button key="submit"
-                @click="cancel"
-                class="cancelBtn">取消</a-button>
-      <a-button key="submit"
-                type="primary"
-                @click="submit">提交</a-button>
+      <a-button key="submit" @click="cancel" class="cancelBtn">取消</a-button>
+      <a-button key="submit" type="primary" @click="submit">提交</a-button>
     </template>
-    <a-form class="inlineForm"
-            ref="formRef"
-            :model="formState"
-            :rules="rules">
+    <a-form class="inlineForm" ref="formRef" :model="formState" :rules="rules">
       <a-row :gutter="24">
         <a-col :span="24">
-          <a-form-item label="原因"
-                       class="relative"
-                       name="AuditRemark">
-            <a-textarea class="dialogInput"
-                        style="width: 100%"
-                        placeholder="请输入原因"
-                        v-model:value="formState.AuditRemark"
-                        readonly
-                        :autosize="{ minRows: 8, maxRows: 24 }" />
+          <a-form-item label="原因" class="relative" name="AuditRemark">
+            <a-textarea
+              class="dialogInput"
+              style="width: 100%"
+              placeholder="请输入原因"
+              v-model:value="formState.AuditRemark"
+              :autosize="{ minRows: 8, maxRows: 24 }"
+            />
           </a-form-item>
         </a-col>
       </a-row>
@@ -50,44 +44,44 @@ import { FormState } from './interface';
 import { handleForm } from './setup';
 
 export default defineComponent({
-    name: 'commodity_contract_bargain_refuse_order',
-    components: { Drawer },
-    emits: ['cancel', 'update'],
-    props: {
-        selectedRow: {
-            type: Object as PropType<QueryTjmdTransferApplyRsp>,
-            default: {},
-        },
+  name: 'commodity_contract_bargain_refuse_order',
+  components: { Drawer },
+  emits: ['cancel', 'update'],
+  props: {
+    selectedRow: {
+      type: Object as PropType<QueryTjmdTransferApplyRsp>,
+      default: {},
     },
-    setup(props, context) {
-        const { visible, cancel } = _closeModal(context);
-        const loading = ref<boolean>(false);
-        const { rules, formState, formRef } = handleForm();
-        function submit() {
-            validateAction<FormState>(formRef, formState).then((res) => {
-                const param: TradeHoldTransferApplyAuditReqType = {
-                    ApplyID: props.selectedRow.applyid,
-                    ApplyStatus: 2, // 1:撤销2:拒绝3:通过
-                    AuditSrc: 2,
-                    AuditorID: geLoginID_number()!.toString(),
-                    AuditRemark: res.AuditRemark,
-                };
-                requestResultLoadingAndInfo(tradeHoldTransferApplyAuditReq, param, loading, ['撤单成功', '撤单失败:']).then(() => {
-                    // Bus.$emit('spotTrade', true);
-                    cancel(true);
-                });
-            });
-        }
-
-        return {
-            visible,
-            cancel,
-            submit,
-            rules,
-            formState,
-            formRef,
+  },
+  setup(props, context) {
+    const { visible, cancel } = _closeModal(context);
+    const loading = ref<boolean>(false);
+    const { rules, formState, formRef } = handleForm();
+    function submit() {
+      validateAction<FormState>(formRef, formState).then((res) => {
+        const param: TradeHoldTransferApplyAuditReqType = {
+          ApplyID: props.selectedRow.applyid,
+          ApplyStatus: 2, // 1:撤销2:拒绝3:通过
+          AuditSrc: 2,
+          AuditorID: geLoginID_number()!.toString(),
+          AuditRemark: res.AuditRemark,
         };
-    },
+        requestResultLoadingAndInfo(tradeHoldTransferApplyAuditReq, param, loading, ['撤单成功', '撤单失败:']).then(() => {
+          // Bus.$emit('spotTrade', true);
+          cancel(true);
+        });
+      });
+    }
+
+    return {
+      visible,
+      cancel,
+      submit,
+      rules,
+      formState,
+      formRef,
+    };
+  },
 });
 </script>
 

+ 55 - 61
src/views/order/swap_the_order/components/swap_commodity_contract_bargain/components/commodity_contract_bargain_refuse_order/index.vue

@@ -1,34 +1,28 @@
 <template>
   <!-- 商品合约 议价单 撤单 -->
-  <a-modal class="commonModal reasonModal"
-           title="原因"
-           v-model:visible="visible"
-           centered
-           @click="cancel"
-           :maskClosable="false">
+  <a-modal
+    class="commonModal reasonModal"
+    title="原因"
+    v-model:visible="visible"
+    centered
+    @click="cancel"
+    :maskClosable="false"
+  >
     <template #footer>
-      <a-button key="submit"
-                @click="cancel"
-                class="cancelBtn">取消</a-button>
-      <a-button key="submit"
-                type="primary"
-                @click="submit">提交</a-button>
+      <a-button key="submit" @click="cancel" class="cancelBtn">取消</a-button>
+      <a-button key="submit" type="primary" @click="submit">提交</a-button>
     </template>
-    <a-form class="inlineForm"
-            ref="formRef"
-            :model="formState"
-            :rules="rules">
+    <a-form class="inlineForm" ref="formRef" :model="formState" :rules="rules">
       <a-row :gutter="24">
         <a-col :span="24">
-          <a-form-item label="原因"
-                       class="relative"
-                       name="AuditRemark">
-            <a-textarea class="dialogInput"
-                        style="width: 100%"
-                        placeholder="请输入原因"
-                        v-model:value="formState.AuditRemark"
-                        readonly
-                        :autosize="{ minRows: 8, maxRows: 24 }" />
+          <a-form-item label="原因" class="relative" name="AuditRemark">
+            <a-textarea
+              class="dialogInput"
+              style="width: 100%"
+              placeholder="请输入原因"
+              v-model:value="formState.AuditRemark"
+              :autosize="{ minRows: 8, maxRows: 24 }"
+            />
           </a-form-item>
         </a-col>
       </a-row>
@@ -50,44 +44,44 @@ import { FormState } from './interface';
 import { handleForm } from './setup';
 
 export default defineComponent({
-    name: 'commodity_contract_bargain_refuse_order',
-    components: { Drawer },
-    emits: ['cancel', 'update'],
-    props: {
-        selectedRow: {
-            type: Object as PropType<QueryTjmdTransferApplyRsp>,
-            default: {},
-        },
+  name: 'commodity_contract_bargain_refuse_order',
+  components: { Drawer },
+  emits: ['cancel', 'update'],
+  props: {
+    selectedRow: {
+      type: Object as PropType<QueryTjmdTransferApplyRsp>,
+      default: {},
     },
-    setup(props, context) {
-        const { visible, cancel } = _closeModal(context);
-        const loading = ref<boolean>(false);
-        const { rules, formState, formRef } = handleForm();
-        function submit() {
-            validateAction<FormState>(formRef, formState).then((res) => {
-                const param: TradeHoldTransferApplyAuditReqType = {
-                    ApplyID: props.selectedRow.applyid,
-                    ApplyStatus: 2, // 1:撤销2:拒绝3:通过
-                    AuditSrc: 2,
-                    AuditorID: geLoginID_number()!.toString(),
-                    AuditRemark: res.AuditRemark,
-                };
-                requestResultLoadingAndInfo(tradeHoldTransferApplyAuditReq, param, loading, ['撤单成功', '撤单失败:']).then(() => {
-                    // Bus.$emit('spotTrade', true);
-                    cancel(true);
-                });
-            });
-        }
-
-        return {
-            visible,
-            cancel,
-            submit,
-            rules,
-            formState,
-            formRef,
+  },
+  setup(props, context) {
+    const { visible, cancel } = _closeModal(context);
+    const loading = ref<boolean>(false);
+    const { rules, formState, formRef } = handleForm();
+    function submit() {
+      validateAction<FormState>(formRef, formState).then((res) => {
+        const param: TradeHoldTransferApplyAuditReqType = {
+          ApplyID: props.selectedRow.applyid,
+          ApplyStatus: 2, // 1:撤销2:拒绝3:通过
+          AuditSrc: 2,
+          AuditorID: geLoginID_number()!.toString(),
+          AuditRemark: res.AuditRemark,
         };
-    },
+        requestResultLoadingAndInfo(tradeHoldTransferApplyAuditReq, param, loading, ['撤单成功', '撤单失败:']).then(() => {
+          // Bus.$emit('spotTrade', true);
+          cancel(true);
+        });
+      });
+    }
+
+    return {
+      visible,
+      cancel,
+      submit,
+      rules,
+      formState,
+      formRef,
+    };
+  },
 });
 </script>