From ffa268a0585b4a1f7dac573c2c443bae97ac9a47 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 28 五月 2025 16:29:31 +0800
Subject: [PATCH] 提交一把订单
---
company/src/components/business/setCompany.vue | 219 +++++++++++++++++++++++++++---------------------------
1 files changed, 109 insertions(+), 110 deletions(-)
diff --git a/company/src/components/business/setCompany.vue b/company/src/components/business/setCompany.vue
index f4c690d..32172bd 100644
--- a/company/src/components/business/setCompany.vue
+++ b/company/src/components/business/setCompany.vue
@@ -76,117 +76,116 @@
</template>
<script>
- import BaseOpera from '@/components/base/BaseOpera'
- import GlobalWindow from '@/components/common/GlobalWindow'
- import RichEditor from '@/components/common/RichEditor'
- import { saveLpInfo, getById } from '@/api/business/insurance'
- export default {
- name: 'setCompany',
- extends: BaseOpera,
- components: { GlobalWindow, RichEditor },
- data () {
- return {
- uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/upload?folder=INSURANCE',
- activeNames: ['1', '2', '3', '4', '5', '6'],
- specialAgreement: '',
- form: {
- id: null,
- lpStampTempFile: null,
- lpStampTempFileCopy: [],
- lpFile: null,
- lpFileCopy: [],
- lpYggxFileInfo: '',
- lpMzFileInfo: '',
- lpZyFileInfo: '',
- lpScFileInfo: '',
- lpOtherFileInfo: ''
- }
- }
- },
- created () {
- this.config({
- api: '/business/knowledge',
- 'field.id': 'id'
- })
- },
- methods: {
- confirm () {
- this.isWorking = true
- saveLpInfo(this.form)
- .then(res => {
- this.isWorking = false
- this.$emit('success')
- this.$message.success('淇濆瓨鎴愬姛')
- this.visible = false
- })
- },
- open (title, id) {
- this.title = title
-
- getById(id)
- .then(res => {
- this.visible = true
- this.$nextTick(() => {
- setTimeout(() => {
- for (const key in this.form) {
- this.form[key] = res[key]
- }
- if (this.form.lpStampTempFile) {
- this.form.lpStampTempFileCopy = [this.form.lpStampTempFile]
- }
- if (this.form.lpFile) {
- this.form.lpFileCopy = [this.form.lpFile]
- }
- }, 1000)
- })
- })
- },
- getWangedditor1(val) {
- this.form.lpYggxFileInfo = val
- },
- getWangedditor2(val) {
- this.form.lpMzFileInfo = val
- },
- getWangedditor3(val) {
- this.form.lpZyFileInfo = val
- },
- getWangedditor4(val) {
- this.form.lpScFileInfo = val
- },
- getWangedditor5(val) {
- this.form.lpOtherFileInfo = val
- },
- handleFileSuccess(e) {
- e.data.name = e.data.originname
- e.data.fileurl = e.data.imgaddr
- this.form.lpFile = e.data
- this.form.lpFileCopy = [e.data]
- },
- uploadError(e) {
- this.$message.error('涓婁紶澶辫触')
- },
- handleRemove() {
- this.form.lpFile = null
- this.form.lpFileCopy = []
- },
- handleFileSuccess1(e) {
- e.data.name = e.data.originname
- e.data.fileurl = e.data.imgaddr
- this.form.lpStampTempFile = e.data
- this.form.lpStampTempFileCopy = [e.data]
- },
- uploadError1(e) {
- this.$message.error('涓婁紶澶辫触')
- },
- handleRemove1() {
- this.form.lpStampTempFile = null
- this.form.lpStampTempFileCopy = []
- },
- handleExceed() {
- this.$message.warning('鍙兘涓婁紶涓�涓枃浠讹紒')
- }
- }
+import BaseOpera from '@/components/base/BaseOpera'
+import GlobalWindow from '@/components/common/GlobalWindow'
+import RichEditor from '@/components/common/RichEditor'
+import { saveLpInfo, getById } from '@/api/business/insurance'
+export default {
+ name: 'setCompany',
+ extends: BaseOpera,
+ components: { GlobalWindow, RichEditor },
+ data () {
+ return {
+ uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/upload?folder=insurance',
+ activeNames: ['1', '2', '3', '4', '5', '6'],
+ specialAgreement: '',
+ form: {
+ id: null,
+ lpStampTempFile: null,
+ lpStampTempFileCopy: [],
+ lpFile: null,
+ lpFileCopy: [],
+ lpYggxFileInfo: '',
+ lpMzFileInfo: '',
+ lpZyFileInfo: '',
+ lpScFileInfo: '',
+ lpOtherFileInfo: ''
+ }
}
+ },
+ created () {
+ this.config({
+ api: '/business/knowledge',
+ 'field.id': 'id'
+ })
+ },
+ methods: {
+ confirm () {
+ this.isWorking = true
+ saveLpInfo(this.form)
+ .then(res => {
+ this.isWorking = false
+ this.$emit('success')
+ this.$message.success('淇濆瓨鎴愬姛')
+ this.visible = false
+ })
+ },
+ open (title, id) {
+ this.title = title
+ getById(id)
+ .then(res => {
+ this.visible = true
+ this.$nextTick(() => {
+ setTimeout(() => {
+ for (const key in this.form) {
+ this.form[key] = res[key]
+ }
+ if (this.form.lpStampTempFile) {
+ this.form.lpStampTempFileCopy = [this.form.lpStampTempFile]
+ }
+ if (this.form.lpFile) {
+ this.form.lpFileCopy = [this.form.lpFile]
+ }
+ }, 1000)
+ })
+ })
+ },
+ getWangedditor1 (val) {
+ this.form.lpYggxFileInfo = val
+ },
+ getWangedditor2 (val) {
+ this.form.lpMzFileInfo = val
+ },
+ getWangedditor3 (val) {
+ this.form.lpZyFileInfo = val
+ },
+ getWangedditor4 (val) {
+ this.form.lpScFileInfo = val
+ },
+ getWangedditor5 (val) {
+ this.form.lpOtherFileInfo = val
+ },
+ handleFileSuccess (e) {
+ e.data.name = e.data.originname
+ e.data.fileurl = e.data.imgaddr
+ this.form.lpFile = e.data
+ this.form.lpFileCopy = [e.data]
+ },
+ uploadError (e) {
+ this.$message.error('涓婁紶澶辫触')
+ },
+ handleRemove () {
+ this.form.lpFile = null
+ this.form.lpFileCopy = []
+ },
+ handleFileSuccess1 (e) {
+ e.data.name = e.data.originname
+ e.data.fileurl = e.data.imgaddr
+ this.form.lpStampTempFile = e.data
+ this.form.lpStampTempFileCopy = [e.data]
+ },
+ uploadError1 (e) {
+ this.$message.error('涓婁紶澶辫触')
+ },
+ handleRemove1 () {
+ this.form.lpStampTempFile = null
+ this.form.lpStampTempFileCopy = []
+ },
+ handleExceed () {
+ this.$message.warning('鍙兘涓婁紶涓�涓枃浠讹紒')
+ }
+ }
+}
</script>
<style lang="scss" scoped>
--
Gitblit v1.9.3