|
|
@@ -1,87 +1,98 @@
|
|
|
<template>
|
|
|
- <!-- 延期-->
|
|
|
- <Drawer :title="'延期申请'"
|
|
|
- :placement="'bottom'"
|
|
|
- :visible="visible"
|
|
|
- @cancel="cancel">
|
|
|
- <div class="listed">
|
|
|
- <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="品种">
|
|
|
- <span class="white">{{selectedRow.deliverygoodsname}}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="仓库">
|
|
|
- <span class="white">{{selectedRow.warehousename}}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="履约商品">
|
|
|
- <span class="white">{{selectedRow.wrtypename}}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="当前步骤">
|
|
|
- <span class="white">{{selectedRow.curstepname}}((超期天数:331)</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="关联单号">
|
|
|
- <span class="white">86989565623</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="申请延期天数"
|
|
|
- name="days">
|
|
|
- <a-input-number class="commonInput"
|
|
|
- :min="1"
|
|
|
- v-model:value="formState.days"
|
|
|
- style="width: 140px" />
|
|
|
- <span>天</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="备注"
|
|
|
- name="remark">
|
|
|
- <a-input class="commonInput"
|
|
|
- v-model:value="formState.remark"
|
|
|
- style="width: 100%" />
|
|
|
- </a-form-item>
|
|
|
- </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-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </Drawer>
|
|
|
+ <!-- 延期-->
|
|
|
+ <Drawer
|
|
|
+ :title="'延期申请'"
|
|
|
+ :placement="'right'"
|
|
|
+ class="delistingBottom"
|
|
|
+ :visible="visible"
|
|
|
+ @cancel="cancel"
|
|
|
+ >
|
|
|
+ <div class="listed">
|
|
|
+ <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="品种">
|
|
|
+ <span class="white ml10">{{selectedRow.deliverygoodsname}}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="仓库">
|
|
|
+ <span class="white ml10">{{selectedRow.warehousename}}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="履约商品">
|
|
|
+ <span class="white ml10">{{selectedRow.wrtypename}}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="当前步骤">
|
|
|
+ <span class="white ml10">{{selectedRow.curstepname}}((超期天数:331)</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="关联单号">
|
|
|
+ <span class="white ml10">86989565623</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="申请延期天数" name="days" class="relative">
|
|
|
+ <a-input-number
|
|
|
+ class="commonInput ml10"
|
|
|
+ :min="1"
|
|
|
+ v-model:value="formState.days"
|
|
|
+ style="width: 200px"
|
|
|
+ />
|
|
|
+ <div class="day">天</div>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="备注" name="remark">
|
|
|
+ <a-input
|
|
|
+ class="commonInput ml10"
|
|
|
+ v-model:value="formState.remark"
|
|
|
+ style="width: 420px"
|
|
|
+ />
|
|
|
+ </a-form-item>
|
|
|
+ </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-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </Drawer>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import { WrPosition } from '@/services/go/wrtrade/interface';
|
|
|
+import {WrPerformancePlan, WrPosition} from '@/services/go/wrtrade/interface';
|
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
import { handleForm } from './setup';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { FormState } from './interface';
|
|
|
+import {PerformanceDelayApplyReq, PerformanceManualConfirmReq} from "@/services/proto/performance/interface";
|
|
|
+import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
|
|
|
+import {performanceDelayApply, performanceManualConfirm} from "@/services/proto/performance";
|
|
|
+import {getUserId} from "@/services/bus/account";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: ModalEnum.performance_information_buy_performance_extension,
|
|
|
@@ -89,7 +100,7 @@ export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
|
props: {
|
|
|
selectedRow: {
|
|
|
- type: Object as PropType<WrPosition>,
|
|
|
+ type: Object as PropType<WrPerformancePlan>,
|
|
|
default: {},
|
|
|
},
|
|
|
},
|
|
|
@@ -98,7 +109,20 @@ export default defineComponent({
|
|
|
const loading = ref<boolean>(false);
|
|
|
const { rules, formState, formRef } = handleForm();
|
|
|
function submit() {
|
|
|
- validateAction<FormState>(formRef, formState).then((param) => {});
|
|
|
+ validateAction<FormState>(formRef, formState).then((param) => {
|
|
|
+ // 延期申请
|
|
|
+ const paramReq: PerformanceDelayApplyReq = {
|
|
|
+ PerformancePlanStepID: props.selectedRow.curstepid,
|
|
|
+ delaydays: param.days as number,
|
|
|
+ applicant: getUserId(),
|
|
|
+ applyremark: param.remark
|
|
|
+ };
|
|
|
+ debugger;
|
|
|
+ requestResultLoadingAndInfo(performanceDelayApply, paramReq, loading, ['延期成功', '延期失败:']).then(() => {
|
|
|
+ cancel(true);
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
}
|
|
|
return {
|
|
|
visible,
|
|
|
@@ -114,4 +138,9 @@ export default defineComponent({
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
+.day {
|
|
|
+ .position(absolute, auto, -24px, 0, auto);
|
|
|
+ line-height: 26px;
|
|
|
+ color: @m-grey1;
|
|
|
+}
|
|
|
</style>;
|