li.shaoyi 4 years ago
parent
commit
a15ac9471c

+ 3 - 3
src/views/business/purchase/components/funds/setup.ts

@@ -5,15 +5,15 @@ import { reactive, ref, UnwrapRef } from "vue";
  */
  */
 export function handleForm() {
 export function handleForm() {
     interface FormState {
     interface FormState {
-        payType: number 
+        payType: number
         Amount: number | null
         Amount: number | null
-        Remark:String
+        Remark: string
     }
     }
     const formRef = ref();
     const formRef = ref();
     const formState: UnwrapRef<FormState> = reactive({
     const formState: UnwrapRef<FormState> = reactive({
         payType: 1,
         payType: 1,
         Amount: null,
         Amount: null,
-        Remark:''
+        Remark: ''
     })
     })
     const rules = {
     const rules = {
         Amount: [{ required: true, message: '请输入登记价格', trigger: 'blur', type: 'number' }],
         Amount: [{ required: true, message: '请输入登记价格', trigger: 'blur', type: 'number' }],

+ 3 - 3
src/views/business/purchase/components/setup.ts

@@ -47,7 +47,7 @@ export function settlementReq(spotcontractid: string, req: SettlementReq, loadin
 /**
 /**
  * 款项登记
  * 款项登记
  */
  */
-export function fundsReq(spotcontractid: string, req: FundsReq, loading: Ref<boolean>, Remark: String): Promise<string> {
+export function fundsReq(spotcontractid: string, req: FundsReq, loading: Ref<boolean>, Remark: string): Promise<string> {
     return operationContractRsp(3,
     return operationContractRsp(3,
         operationContractReqBuilder(req, spotcontractid, 3),
         operationContractReqBuilder(req, spotcontractid, 3),
         loading)
         loading)
@@ -56,7 +56,7 @@ export function fundsReq(spotcontractid: string, req: FundsReq, loading: Ref<boo
 /**
 /**
  * 发票登记
  * 发票登记
  */
  */
-export function invoiceReq(spotcontractid: string, req: InvoiceReq, loading: Ref<boolean>, attachUrl?: String): Promise<string> {
+export function invoiceReq(spotcontractid: string, req: InvoiceReq, loading: Ref<boolean>, attachUrl?: string): Promise<string> {
     return operationContractRsp(4,
     return operationContractRsp(4,
         operationContractReqBuilder(req, spotcontractid, 4, "", attachUrl),
         operationContractReqBuilder(req, spotcontractid, 4, "", attachUrl),
         loading)
         loading)
@@ -69,7 +69,7 @@ export function invoiceReq(spotcontractid: string, req: InvoiceReq, loading: Ref
  * @param id 操作的合同id
  * @param id 操作的合同id
  * @param type 操作类型
  * @param type 操作类型
  */
  */
-export function operationContractReqBuilder(req: Object, id: string, type: number, Remark?: String, attachUrl?: String): ErmcpContractOperateApplyReq {
+export function operationContractReqBuilder(req: Object, id: string, type: number, Remark?: string, attachUrl?: string): ErmcpContractOperateApplyReq {
     return {
     return {
         OperateType: 1, // uint32 操作类型-1:登记2:确认3:拒绝4:撤销
         OperateType: 1, // uint32 操作类型-1:登记2:确认3:拒绝4:撤销
         Remark: '',
         Remark: '',

+ 129 - 165
src/views/business/sell/components/funds/index.vue

@@ -1,174 +1,138 @@
 <template>
 <template>
-  <!-- 款项登记-->
-  <a-modal class="commonModal paddingDialog funds"
-           title="款项登记"
-           v-model:visible="visible"
-           centered
-           @cancel="cancel"
-           width="890px">
-    <template #footer>
-      <a-button key="submit"
-                class="cancelBtn"
-                @click="cancel">取消
-      </a-button>
-      <a-button key="submit"
-                type="primary"
-                :loading="loading"
-                @click="submit">款项登记
-      </a-button>
-    </template>
-    <fieldset class="formFieldSet">
-      <legend>合同基本信息</legend>
-      <a-form class="inlineForm">
-        <a-row :gutter="24">
-          <a-col :span="12">
-            <a-form-item label="合同编号">
-              <span class="white">{{ formatValue(selectedRow.contractno) }}</span>
-            </a-form-item>
-          </a-col>
-          <a-col :span="12">
-            <a-form-item label="定价类型">
-              <span class="white">{{ getPriceTypeName(selectedRow.pricetype) }}</span>
-            </a-form-item>
-          </a-col>
-        </a-row>
-        <a-row :gutter="24">
-          <a-col :span="12">
-            <a-form-item label="采购方">
-              <span class="white">{{ formatValue(selectedRow.accountname) }}</span>
-            </a-form-item>
-          </a-col>
-          <a-col :span="12">
-            <a-form-item label="现货品种">
-              <span class="white">{{ formatValue(selectedRow.deliverygoodsname) }}</span>
-            </a-form-item>
-          </a-col>
-        </a-row>
-        <a-row :gutter="24">
-          <a-col :span="12">
-            <a-form-item label="暂定价货款总额">
-              <span
-                    class="white">{{ selectedRow.pricetype === 3 ? formatValue(selectedRow.loanamount) : 0 }}</span>
-            </a-form-item>
-          </a-col>
-        </a-row>
-      </a-form>
-    </fieldset>
+    <!-- 款项登记-->
+    <a-modal class="commonModal paddingDialog funds" title="款项登记" v-model:visible="visible" centered @cancel="cancel" width="890px">
+        <template #footer>
+            <a-button key="submit" class="cancelBtn" @click="cancel">取消 </a-button>
+            <a-button key="submit" type="primary" :loading="loading" @click="submit">款项登记 </a-button>
+        </template>
+        <fieldset class="formFieldSet">
+            <legend>合同基本信息</legend>
+            <a-form class="inlineForm">
+                <a-row :gutter="24">
+                    <a-col :span="12">
+                        <a-form-item label="合同编号">
+                            <span class="white">{{ formatValue(selectedRow.contractno) }}</span>
+                        </a-form-item>
+                    </a-col>
+                    <a-col :span="12">
+                        <a-form-item label="定价类型">
+                            <span class="white">{{ getPriceTypeName(selectedRow.pricetype) }}</span>
+                        </a-form-item>
+                    </a-col>
+                </a-row>
+                <a-row :gutter="24">
+                    <a-col :span="12">
+                        <a-form-item label="采购方">
+                            <span class="white">{{ formatValue(selectedRow.accountname) }}</span>
+                        </a-form-item>
+                    </a-col>
+                    <a-col :span="12">
+                        <a-form-item label="现货品种">
+                            <span class="white">{{ formatValue(selectedRow.deliverygoodsname) }}</span>
+                        </a-form-item>
+                    </a-col>
+                </a-row>
+                <a-row :gutter="24">
+                    <a-col :span="12">
+                        <a-form-item label="暂定价货款总额">
+                            <span class="white">{{ selectedRow.pricetype === 3 ? formatValue(selectedRow.loanamount) : 0 }}</span>
+                        </a-form-item>
+                    </a-col>
+                </a-row>
+            </a-form>
+        </fieldset>
 
 
-    <fieldset class="formFieldSet">
-      <legend>已登记信息</legend>
-      <a-form class="inlineForm">
-        <a-row :gutter="24">
-          <a-col :span="12">
-            <a-form-item label="已定价额">
-              <span class="white">{{ selectedRow.pricedamount + " 元"}}</span>
-            </a-form-item>
-          </a-col>
-          <a-col :span="12">
-            <a-form-item label="调整金额">
-              <span class="white">{{ selectedRow.reckonadjustamount + " 元"}}</span>
-            </a-form-item>
-          </a-col>
-        </a-row>
+        <fieldset class="formFieldSet">
+            <legend>已登记信息</legend>
+            <a-form class="inlineForm">
+                <a-row :gutter="24">
+                    <a-col :span="12">
+                        <a-form-item label="已定价额">
+                            <span class="white">{{ selectedRow.pricedamount + ' 元' }}</span>
+                        </a-form-item>
+                    </a-col>
+                    <a-col :span="12">
+                        <a-form-item label="调整金额">
+                            <span class="white">{{ selectedRow.reckonadjustamount + ' 元' }}</span>
+                        </a-form-item>
+                    </a-col>
+                </a-row>
 
 
-        <a-row :gutter="24">
-          <a-col :span="12">
-            <a-form-item label="货款总额">
-              <span
-                    class="white">{{ selectedRow.pricedamount + selectedRow.reckonadjustamount }}{{handleCurrencyname(selectedRow.currencyname) + " 元"}}</span>
-            </a-form-item>
-          </a-col>
-          <a-col :span="12">
-            <a-form-item label="保证金">
-              <span
-                    class="white">{{ selectedRow.margin }}{{handleCurrencyname(selectedRow.currencyname) + " 元"}}</span>
-            </a-form-item>
-          </a-col>
-        </a-row>
+                <a-row :gutter="24">
+                    <a-col :span="12">
+                        <a-form-item label="货款总额">
+                            <span class="white">{{ selectedRow.pricedamount + selectedRow.reckonadjustamount }}{{ handleCurrencyname(selectedRow.currencyname) + ' 元' }}</span>
+                        </a-form-item>
+                    </a-col>
+                    <a-col :span="12">
+                        <a-form-item label="保证金">
+                            <span class="white">{{ selectedRow.margin }}{{ handleCurrencyname(selectedRow.currencyname) + ' 元' }}</span>
+                        </a-form-item>
+                    </a-col>
+                </a-row>
 
 
-        <a-row :gutter="24">
-          <a-col :span="12">
-            <a-form-item label="其他费用">
-              <span
-                    class="white">{{ selectedRow.reckonotheramount }}{{handleCurrencyname(selectedRow.currencyname)  + " 元"}}</span>
-            </a-form-item>
-          </a-col>
-          <a-col :span="12">
-            <a-form-item label="合计总额">
-              <span
-                    class="white">{{ formatValue(selectedRow.totalamount) }}{{handleCurrencyname(selectedRow.currencyname)  + " 元"}}</span>
-            </a-form-item>
-          </a-col>
-        </a-row>
+                <a-row :gutter="24">
+                    <a-col :span="12">
+                        <a-form-item label="其他费用">
+                            <span class="white">{{ selectedRow.reckonotheramount }}{{ handleCurrencyname(selectedRow.currencyname) + ' 元' }}</span>
+                        </a-form-item>
+                    </a-col>
+                    <a-col :span="12">
+                        <a-form-item label="合计总额">
+                            <span class="white">{{ formatValue(selectedRow.totalamount) }}{{ handleCurrencyname(selectedRow.currencyname) + ' 元' }}</span>
+                        </a-form-item>
+                    </a-col>
+                </a-row>
 
 
-        <a-row :gutter="24">
-          <a-col :span="12">
-            <a-form-item label="已收付额">
-              <span
-                    class="white">{{ selectedRow.payamount }}{{handleCurrencyname(selectedRow.currencyname)  + " 元"}}</span>
-            </a-form-item>
-          </a-col>
-          <a-col :span="12">
-            <a-form-item label="预收款额">
-              <span
-                    class="white">{{ selectedRow.prepayamount }}{{handleCurrencyname(selectedRow.currencyname)  + " 元"}}</span>
-            </a-form-item>
-          </a-col>
-        </a-row>
-      </a-form>
-    </fieldset>
+                <a-row :gutter="24">
+                    <a-col :span="12">
+                        <a-form-item label="已收付额">
+                            <span class="white">{{ selectedRow.payamount }}{{ handleCurrencyname(selectedRow.currencyname) + ' 元' }}</span>
+                        </a-form-item>
+                    </a-col>
+                    <a-col :span="12">
+                        <a-form-item label="预收款额">
+                            <span class="white">{{ selectedRow.prepayamount }}{{ handleCurrencyname(selectedRow.currencyname) + ' 元' }}</span>
+                        </a-form-item>
+                    </a-col>
+                </a-row>
+            </a-form>
+        </fieldset>
 
 
-    <fieldset class="formFieldSet">
-      <legend>本次款项信息</legend>
-      <a-form class="inlineForm"
-              ref="formRef"
-              :model="formState"
-              :rules="rules">
-        <a-row :gutter="24">
-          <a-col :span="12">
-            <a-form-item label="应收款额"
-                         name="unpayamount">
-              <span class="white">{{selectedRow.unpayamount}}</span>
-            </a-form-item>
-          </a-col>
-          <a-col :span="12">
-            <a-form-item label="款项类型">
-              <a-radio-group class="commonRadioGroup"
-                             v-model:value="formState.payType">
-                <a-radio :value="1">收款通知</a-radio>
-                <a-radio :value="2">退款申请</a-radio>
-              </a-radio-group>
-            </a-form-item>
-          </a-col>
-        </a-row>
-        <a-row :gutter="24">
-          <a-col :span="12">
-            <a-form-item label="登记金额"
-                         name="Amount">
-              <a-input-number class="dialogInput"
-                              style="width: 200px"
-                              suffix="元"
-                              :min="0"
-                              type="number"
-                              placeholder="请输入登记金额"
-                              v-model:value="formState.Amount" />
-              {{handleCurrencyname(selectedRow.currencyname)}}
-            </a-form-item>
-          </a-col>
-          <a-col :span="24">
-            <a-form-item label="备注"
-                         name="PricedQty"
-                         class="relative">
-              <a-input class="dialogInput"
-                       style="width: 608px"
-                       placeholder="请输入备注信息"
-                       v-model:value="formState.Remark" />
-            </a-form-item>
-          </a-col>
-        </a-row>
-      </a-form>
-    </fieldset>
-  </a-modal>
+        <fieldset class="formFieldSet">
+            <legend>本次款项信息</legend>
+            <a-form class="inlineForm" ref="formRef" :model="formState" :rules="rules">
+                <a-row :gutter="24">
+                    <a-col :span="12">
+                        <a-form-item label="应收款额" name="unpayamount">
+                            <span class="white">{{ selectedRow.unpayamount }}</span>
+                        </a-form-item>
+                    </a-col>
+                    <a-col :span="12">
+                        <a-form-item label="款项类型">
+                            <a-radio-group class="commonRadioGroup" v-model:value="formState.payType">
+                                <a-radio :value="1">收款通知</a-radio>
+                                <a-radio :value="2">退款申请</a-radio>
+                            </a-radio-group>
+                        </a-form-item>
+                    </a-col>
+                </a-row>
+                <a-row :gutter="24">
+                    <a-col :span="12">
+                        <a-form-item label="登记金额" name="Amount">
+                            <a-input-number class="dialogInput" style="width: 200px" suffix="元" :min="0" type="number" placeholder="请输入登记金额" v-model:value="formState.Amount" />
+                            {{ handleCurrencyname(selectedRow.currencyname) }}
+                        </a-form-item>
+                    </a-col>
+                    <a-col :span="24">
+                        <a-form-item label="备注" name="PricedQty" class="relative">
+                            <a-input class="dialogInput" style="width: 608px" placeholder="请输入备注信息" v-model:value="formState.Remark" />
+                        </a-form-item>
+                    </a-col>
+                </a-row>
+            </a-form>
+        </fieldset>
+    </a-modal>
 </template>
 </template>
 
 
 <script lang="ts">
 <script lang="ts">

+ 3 - 3
src/views/business/sell/components/funds/setup.ts

@@ -5,15 +5,15 @@ import { reactive, ref, UnwrapRef } from "vue";
  */
  */
 export function handleForm() {
 export function handleForm() {
     interface FormState {
     interface FormState {
-        payType: number 
+        payType: number
         Amount: number | null
         Amount: number | null
-        Remark:String
+        Remark: string
     }
     }
     const formRef = ref();
     const formRef = ref();
     const formState: UnwrapRef<FormState> = reactive({
     const formState: UnwrapRef<FormState> = reactive({
         payType: 1,
         payType: 1,
         Amount: null,
         Amount: null,
-        Remark:''
+        Remark: ''
     })
     })
     const rules = {
     const rules = {
         Amount: [{ required: true, message: '请输入登记价格', trigger: 'blur', type: 'number' }],
         Amount: [{ required: true, message: '请输入登记价格', trigger: 'blur', type: 'number' }],