表单样式调整

szh-new
lijingjia 4 months ago
parent e97c582754
commit c7a048e4a2

@ -79,7 +79,7 @@
label="" label=""
> >
<a-textarea <a-textarea
v-model:value="formData.Body" v-model:value="formData.body"
:autoSize="{ :autoSize="{
minRows: 10, minRows: 10,
maxRows: 15 maxRows: 15
@ -120,7 +120,9 @@
sendTo: [], sendTo: [],
ccTo: [], ccTo: [],
title: '', title: '',
body: '' body: '',
// id
bookingId: ''
}) })
// //
const rules = { const rules = {
@ -239,12 +241,15 @@
ccTo, ccTo,
title: formData.title, title: formData.title,
body: formData.body, body: formData.body,
fileList: String(fileList.value) bookingId: id.value,
fileList: fileList.value
} }
form.value.validate().then(() => { form.value.validate().then(() => {
sloading.value = true sloading.value = true
SendShippingOrderEmail(postData).then(res => { SendShippingOrderEmail(postData).then(res => {
sloading.value = false sloading.value = false
visible.value = false
createMessage.success('发送成功!')
}) })
}) })
.catch(error => { .catch(error => {

@ -81,7 +81,7 @@ service.interceptors.response.use(
const status = error.response.status const status = error.response.status
// 鉴权失败 // 鉴权失败
if (/401|403|10216/.test(status)) { if (/401|403|10216/.test(status)) {
useUserStore().toLoginPage() // useUserStore().getUserInfoAction()
} else { } else {
$message.error(error.response.statusText) $message.error(error.response.statusText)
} }

@ -3,21 +3,18 @@ import { ref, onMounted } from 'vue'
import { BasicColumn, FormSchema } from '/@/components/Table' import { BasicColumn, FormSchema } from '/@/components/Table'
import { GetTaskPlatEnumDict } from './api' import { GetTaskPlatEnumDict } from './api'
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
{ {
field: 'mBlNo', field: 'mBlNo',
label: '提单号', label: '提单号',
component: 'Input', component: 'Input',
colProps: { span: 6 }, colProps: { span: 4 },
}, },
{ {
field: 'goodsCode', field: 'goodsCode',
label: '接收人', label: '接收人',
component: 'Input', component: 'Input',
colProps: { span: 6 }, colProps: { span: 4 },
}, },
{ {
field: 'etd', field: 'etd',
@ -25,7 +22,7 @@ export const searchFormSchema: FormSchema[] = [
component: 'RangePicker', component: 'RangePicker',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
colProps: { span: 6 }, colProps: { span: 4 },
componentProps: { componentProps: {
allowClear: true, allowClear: true,
}, },
@ -36,7 +33,7 @@ export const searchFormSchema: FormSchema[] = [
component: 'RangePicker', component: 'RangePicker',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
colProps: { span: 6 }, colProps: { span: 4 },
componentProps: { componentProps: {
allowClear: true, allowClear: true,
}, },
@ -47,7 +44,7 @@ export const searchFormSchema: FormSchema[] = [
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
colProps: { span: 6 }, colProps: { span: 4 },
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {
return { return {
api: () => { api: () => {
@ -80,7 +77,7 @@ export const searchFormSchema: FormSchema[] = [
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
colProps: { span: 6 }, colProps: { span: 4 },
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {
return { return {
api: () => { api: () => {
@ -113,7 +110,7 @@ export const searchFormSchema: FormSchema[] = [
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
colProps: { span: 6 }, colProps: { span: 4 },
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {
return { return {
api: () => { api: () => {
@ -146,7 +143,7 @@ export const searchFormSchema: FormSchema[] = [
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
colProps: { span: 6 }, colProps: { span: 4 },
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {
return { return {
api: () => { api: () => {

Loading…
Cancel
Save