|
|
@@ -0,0 +1,86 @@
|
|
|
+<template>
|
|
|
+ <!-- 修改客户资料 -->
|
|
|
+ <a-modal class="commonModal modify-custom"
|
|
|
+ title="修改"
|
|
|
+ v-if="visible"
|
|
|
+ v-model:visible="visible"
|
|
|
+ centered
|
|
|
+ :maskClosable="maskClosableFlag"
|
|
|
+ @cancel="cancel"
|
|
|
+ width="890px">
|
|
|
+ <template #footer>
|
|
|
+ <a-button key="submit"
|
|
|
+ type="primary"
|
|
|
+ :loading="loading"
|
|
|
+ @click="submit">完成</a-button>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </a-modal>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts">
|
|
|
+import { defineComponent, ref } from 'vue';
|
|
|
+import { closeModal } from '@/common/setup/modal/index';
|
|
|
+import { initData } from '@/common/methods/index';
|
|
|
+
|
|
|
+export default defineComponent({
|
|
|
+ name: 'modify-custom',
|
|
|
+ components: {},
|
|
|
+ props: {
|
|
|
+ // selectedRow: {
|
|
|
+ // type:
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ setup() {
|
|
|
+ const { visible, cancel } = closeModal('goods_info_hedge_normal_modify');
|
|
|
+
|
|
|
+ const loading = ref<boolean>(false);
|
|
|
+ const maskClosableFlag = ref<boolean>(false);
|
|
|
+ function submit() {
|
|
|
+ loading.value = true;
|
|
|
+ setTimeout(() => {
|
|
|
+ loading.value = false;
|
|
|
+ cancel();
|
|
|
+ }, 2000);
|
|
|
+ }
|
|
|
+ initData(() => {});
|
|
|
+ return {
|
|
|
+ visible,
|
|
|
+ cancel,
|
|
|
+ submit,
|
|
|
+ loading,
|
|
|
+ maskClosableFlag: false,
|
|
|
+ };
|
|
|
+ },
|
|
|
+});
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less">
|
|
|
+.modify-custom {
|
|
|
+ .upload {
|
|
|
+ display: inline-flex;
|
|
|
+ .ant-btn.uploadBtn {
|
|
|
+ width: 60px;
|
|
|
+ height: 30px;
|
|
|
+ background: @m-blue0;
|
|
|
+ border: 0;
|
|
|
+ padding: 0;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 14px;
|
|
|
+ color: @m-white0;
|
|
|
+ .rounded-corners(3px);
|
|
|
+ &:hover {
|
|
|
+ background: rgba(@m-blue0, 0);
|
|
|
+ color: rgba(@m-white0, 0.8);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .look {
|
|
|
+ color: @m-blue0;
|
|
|
+ font-size: 14px;
|
|
|
+ margin-left: 10px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style
|
|
|
+>;
|