pull/1/head
张同海 2 years ago
parent 5f5d9c32b7
commit a3210a6877

@ -82,7 +82,7 @@
<template v-if="['bookingSpace', 'cutOff'].includes(modelType)"> <template v-if="['bookingSpace', 'cutOff'].includes(modelType)">
<a-form> <a-form>
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="24" class="book-model-box"> <!-- <a-col :span="24" class="book-model-box">
<a-checkbox class="book-check" @change="bookingCheckChange" /> <a-checkbox class="book-check" @change="bookingCheckChange" />
<a-form-item <a-form-item
label="使用货代代码" label="使用货代代码"
@ -102,7 +102,7 @@
> >
<a-input :allowClear="true" v-model="bookingModelFrom.forwarderName" /> <a-input :allowClear="true" v-model="bookingModelFrom.forwarderName" />
</a-form-item> </a-form-item>
</a-col> </a-col> -->
<a-col :span="24"> <a-col :span="24">
<a-form-item <a-form-item
label="文件功能" label="文件功能"
@ -397,7 +397,6 @@
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }" :wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
has-feedback has-feedback
> >
<div class="box-flex"> <div class="box-flex">
<a-textarea <a-textarea
class="remark-input" class="remark-input"
@ -1912,7 +1911,7 @@ export default {
} }
} }
.cabin-box{ .cabin-box {
/deep/ .ant-modal-body .ant-input-affix-wrapper { /deep/ .ant-modal-body .ant-input-affix-wrapper {
position: relative; position: relative;
z-index: 1; z-index: 1;

@ -83,7 +83,7 @@
<template v-if="['bookingSpace', 'cutOff'].includes(modelType)"> <template v-if="['bookingSpace', 'cutOff'].includes(modelType)">
<a-form> <a-form>
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="24" class="book-model-box"> <!-- <a-col :span="24" class="book-model-box">
<a-checkbox class="book-check" @change="bookingCheckChange" /> <a-checkbox class="book-check" @change="bookingCheckChange" />
<a-form-item <a-form-item
label="使用货代代码" label="使用货代代码"
@ -103,7 +103,7 @@
> >
<a-input :allowClear="true" v-model="bookingModelFrom.forwarderName" /> <a-input :allowClear="true" v-model="bookingModelFrom.forwarderName" />
</a-form-item> </a-form-item>
</a-col> </a-col> -->
<a-col :span="24"> <a-col :span="24">
<a-form-item <a-form-item
label="文件功能" label="文件功能"

@ -57,7 +57,7 @@
</vxe-column> </vxe-column>
<vxe-column title="操作" fixed="right" width="200" align="center"> <vxe-column title="操作" fixed="right" width="200" align="center">
<template #default="{ row }"> <template #default="{ row }">
<vxe-button type="text" @click="$refs.editForm.edit(row)"></vxe-button> <vxe-button type="text" @click="$refs.editForm.edit(row)"><a-icon type="form"/></vxe-button>
<a-popconfirm <a-popconfirm
title="请确认删除?" title="请确认删除?"
ok-text="是" ok-text="是"
@ -68,7 +68,7 @@
} }
" "
> >
<vxe-button type="text">删除</vxe-button> <vxe-button type="text"><a-icon type="delete"/></vxe-button>
</a-popconfirm> </a-popconfirm>
</template> </template>
</vxe-column> </vxe-column>

@ -92,6 +92,15 @@
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8">
<a-form-item label="发送类型" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-select placeholder="请选择发送类型" v-decorator="['sendType']">
<a-select-option v-for="item in SendTypeData" :key="item.id" :value="item.code">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-divider orientation="left">发送方</a-divider> <a-divider orientation="left">发送方</a-divider>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> <a-form-item label="名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
@ -199,10 +208,12 @@ export default {
confirmLoading: false, confirmLoading: false,
form: this.$form.createForm(this), form: this.$form.createForm(this),
EdiNameData: [], EdiNameData: [],
carrierCodeData: [] carrierCodeData: [],
SendTypeData: []
} }
}, },
mounted() { mounted() {
this.SendTypeData = this.$options.filters['dictData']('EdiSendType')
this.EdiNameData = this.$options.filters['dictData']('edi_type') this.EdiNameData = this.$options.filters['dictData']('edi_type')
SysTenantPage().then(res => { SysTenantPage().then(res => {
this.SysTenantData = res.data.rows this.SysTenantData = res.data.rows
@ -271,7 +282,8 @@ export default {
tenantName: record.tenantName, tenantName: record.tenantName,
carrierid: record.carrierid, carrierid: record.carrierid,
sendcompanycode: record.sendcompanycode, sendcompanycode: record.sendcompanycode,
sendsubcompanycode: record.sendsubcompanycode sendsubcompanycode: record.sendsubcompanycode,
sendType: record.sendType
}) })
}, 100) }, 100)
}, },

@ -92,6 +92,15 @@
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8">
<a-form-item label="发送类型" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-select placeholder="请选择发送类型" v-decorator="['sendType']">
<a-select-option v-for="item in SendTypeData" :key="item.id" :value="item.code">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-divider orientation="left">发送方</a-divider> <a-divider orientation="left">发送方</a-divider>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> <a-form-item label="名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
@ -200,10 +209,12 @@ export default {
form: this.$form.createForm(this), form: this.$form.createForm(this),
EdiNameData: [], EdiNameData: [],
data: {}, data: {},
carrierCodeData: [] carrierCodeData: [],
SendTypeData: []
} }
}, },
mounted() { mounted() {
this.SendTypeData = this.$options.filters['dictData']('EdiSendType')
this.EdiNameData = this.$options.filters['dictData']('edi_type') this.EdiNameData = this.$options.filters['dictData']('edi_type')
SysTenantPage().then(res => { SysTenantPage().then(res => {
this.SysTenantData = res.data.rows this.SysTenantData = res.data.rows
@ -252,7 +263,8 @@ export default {
tenantName: record.tenantName, tenantName: record.tenantName,
carrierid: record.carrierid, carrierid: record.carrierid,
sendcompanycode: record.sendcompanycode, sendcompanycode: record.sendcompanycode,
sendsubcompanycode: record.sendsubcompanycode sendsubcompanycode: record.sendsubcompanycode,
sendType: record.sendType
}) })
console.log(this.form.getFieldsValue()) console.log(this.form.getFieldsValue())
}, 100) }, 100)

@ -86,13 +86,14 @@
<span v-if="item.title == 'EDI类型'">{{ FnREdiName(row[item.dataIndex]) }}</span> <span v-if="item.title == 'EDI类型'">{{ FnREdiName(row[item.dataIndex]) }}</span>
<span v-else-if="item.title == ''">{{ FnRName(row[item.dataIndex]) }}</span> <span v-else-if="item.title == ''">{{ FnRName(row[item.dataIndex]) }}</span>
<span v-else-if="item.title == ''">{{ FnRCarrier(row[item.dataIndex]) }}</span> <span v-else-if="item.title == ''">{{ FnRCarrier(row[item.dataIndex]) }}</span>
<span v-else-if="item.title == ''">{{ FnRSendType(row[item.dataIndex]) }}</span>
<span v-else>{{ row[item.dataIndex] }}</span> <span v-else>{{ row[item.dataIndex] }}</span>
</template> </template>
</vxe-column> </vxe-column>
<vxe-column title="操作" fixed="right" width="200" align="center"> <vxe-column title="操作" fixed="right" width="200" align="center">
<template #default="{ row }"> <template #default="{ row }">
<vxe-button type="text" @click="$refs.addForm.copy(row)"></vxe-button> <vxe-button type="text" @click="$refs.addForm.copy(row)"><a-icon type="copy"/></vxe-button>
<vxe-button type="text" @click="$refs.editForm.edit(row)"></vxe-button> <vxe-button type="text" @click="$refs.editForm.edit(row)"><a-icon type="form"/></vxe-button>
<a-popconfirm <a-popconfirm
title="请确认删除?" title="请确认删除?"
ok-text="是" ok-text="是"
@ -103,7 +104,7 @@
} }
" "
> >
<vxe-button type="text">删除</vxe-button> <vxe-button type="text"><a-icon type="delete"/></vxe-button>
</a-popconfirm> </a-popconfirm>
</template> </template>
</vxe-column> </vxe-column>
@ -192,6 +193,12 @@ export default {
width: '100', width: '100',
dataIndex: 'password' dataIndex: 'password'
}, },
{
title: '发送类型',
align: 'center',
width: '100',
dataIndex: 'sendType'
},
{ {
title: '发送方代码', title: '发送方代码',
align: 'center', align: 'center',
@ -289,6 +296,7 @@ export default {
// Promise // Promise
loadData: [], loadData: [],
EdiNameData: [], EdiNameData: [],
SendTypeData: [],
CodeData: [] CodeData: []
} }
}, },
@ -298,6 +306,7 @@ export default {
SysTenantPage().then(res => { SysTenantPage().then(res => {
this.SysTenantData = res.data.rows this.SysTenantData = res.data.rows
}) })
this.SendTypeData = this.$options.filters['dictData']('EdiSendType')
this.EdiNameData = this.$options.filters['dictData']('edi_type') this.EdiNameData = this.$options.filters['dictData']('edi_type')
commondbCarrierlist().then(res => { commondbCarrierlist().then(res => {
this.CodeData = res.data this.CodeData = res.data
@ -336,6 +345,15 @@ export default {
}) })
return RData return RData
}, },
FnRSendType(data) {
let RData = ''
this.SendTypeData.forEach(item => {
if (data == item.code) {
RData = item.name
}
})
return RData
},
toggleAdvanced() { toggleAdvanced() {
this.advanced = !this.advanced this.advanced = !this.advanced
}, },

@ -134,10 +134,10 @@
{{ RMain(row) }} {{ RMain(row) }}
</template> </template>
</vxe-column> </vxe-column>
<vxe-column title="操作" fixed="right" width="250" align="center"> <vxe-column title="操作" fixed="right" width="150" align="center">
<template #default="{ row }"> <template #default="{ row }">
<vxe-button type="text" v-if="row.type == 'ExcelTemplate'" @click="FnExcel(row)"></vxe-button> <vxe-button type="text" v-if="row.type == 'ExcelTemplate'" @click="FnExcel(row)"></vxe-button>
<vxe-button type="text" @click="$refs.editForm.edit(row)"></vxe-button> <vxe-button type="text" @click="$refs.editForm.edit(row)"><a-icon type="form"/></vxe-button>
<a-popconfirm <a-popconfirm
title="请确认删除?" title="请确认删除?"
ok-text="是" ok-text="是"
@ -148,7 +148,7 @@
} }
" "
> >
<vxe-button type="text">删除</vxe-button> <vxe-button type="text"><a-icon type="delete"/></vxe-button>
</a-popconfirm> </a-popconfirm>
</template> </template>
</vxe-column> </vxe-column>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save