|
|
@@ -55,15 +55,18 @@ export function usePerformance(buyorsell?: BuyOrSell) {
|
|
|
}
|
|
|
|
|
|
// 履约手动申请
|
|
|
-export function usePerformanceManual(selectedRow: Ermcp.MyPerformancRsp) {
|
|
|
+export function usePerformanceManual({ curstepid }: Ermcp.MyPerformancRsp) {
|
|
|
const loading = shallowRef(false)
|
|
|
|
|
|
- const formData = reactive<Proto.PerformanceManualConfirmReq>({
|
|
|
- PerformancePlanStepID: Long.fromString(selectedRow.curstepid), // uint64 履约计划步骤ID
|
|
|
+ const formData = reactive<Partial<Proto.PerformanceManualConfirmReq>>({
|
|
|
PerformanceExecuteSide: 1, // uint32 履约步骤执行方 1买方 2 卖方
|
|
|
StepRemark: '',
|
|
|
})
|
|
|
|
|
|
+ if (curstepid) {
|
|
|
+ formData.PerformancePlanStepID = Long.fromString(curstepid)
|
|
|
+ }
|
|
|
+
|
|
|
const formSubmit = async () => {
|
|
|
try {
|
|
|
loading.value = true
|
|
|
@@ -81,14 +84,17 @@ export function usePerformanceManual(selectedRow: Ermcp.MyPerformancRsp) {
|
|
|
}
|
|
|
|
|
|
// 履约延期申请
|
|
|
-export function usePerformanceDelay(selectedRow: Ermcp.MyPerformancRsp) {
|
|
|
+export function usePerformanceDelay({ curstepid }: Ermcp.MyPerformancRsp) {
|
|
|
const loading = shallowRef(false)
|
|
|
|
|
|
- const formData = reactive<Proto.PerformanceDelayApplyReq>({
|
|
|
- PerformancePlanStepID: Long.fromString(selectedRow.curstepid), // uint64 履约计划步骤ID
|
|
|
+ const formData = reactive<Partial<Proto.PerformanceDelayApplyReq>>({
|
|
|
applicant: userId.value, // uint64 申请人
|
|
|
})
|
|
|
|
|
|
+ if (curstepid) {
|
|
|
+ formData.PerformancePlanStepID = Long.fromString(curstepid)
|
|
|
+ }
|
|
|
+
|
|
|
const formSubmit = async () => {
|
|
|
try {
|
|
|
loading.value = true
|