|
|
@ -11,36 +11,22 @@
|
|
|
|
<a-form :form="form">
|
|
|
|
<a-form :form="form">
|
|
|
|
<a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item label="EDI类型名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="类型" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input
|
|
|
|
<a-select
|
|
|
|
placeholder="请输入EDI类型名称"
|
|
|
|
placeholder="请选择类型"
|
|
|
|
v-decorator="['ediname', { rules: [{ required: true, message: '请输入EDI类型名称!' }] }]"
|
|
|
|
v-decorator="['typeCode', { rules: [{ required: true, message: '请选择类型!' }] }]"
|
|
|
|
/>
|
|
|
|
>
|
|
|
|
</a-form-item>
|
|
|
|
<a-select-option v-for="item in TypeData" :key="item.code" :value="item.code">
|
|
|
|
</a-col>
|
|
|
|
{{ item.value }}
|
|
|
|
<a-col :span="8">
|
|
|
|
</a-select-option>
|
|
|
|
<a-form-item label="服务器IP" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
</a-select>
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入服务器IP"
|
|
|
|
|
|
|
|
v-decorator="['serverip', { rules: [{ required: true, message: '请输入服务器IP!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="文件夹" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入文件夹"
|
|
|
|
|
|
|
|
v-decorator="['foldername', { rules: [{ required: true, message: '请输入文件夹!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
<a-row>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
<a-input
|
|
|
|
<a-input
|
|
|
|
placeholder="请输入用户名"
|
|
|
|
placeholder="请输入账号"
|
|
|
|
v-decorator="['username', { rules: [{ required: true, message: '请输入用户名!' }] }]"
|
|
|
|
v-decorator="['account', { rules: [{ required: true, message: '请输入账号!' }] }]"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -52,99 +38,11 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-col :span="19">
|
|
|
|
<a-form-item label="发送方名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="备注" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入发送方名称"
|
|
|
|
|
|
|
|
v-decorator="['sendname', { rules: [{ required: true, message: '请输入发送方名称!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
<a-row>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="发送方联系人" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入发送方联系人"
|
|
|
|
|
|
|
|
v-decorator="['sendattn', { rules: [{ required: true, message: '请输入发送方联系人!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="发送方电话" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入发送方电话"
|
|
|
|
|
|
|
|
v-decorator="['sendtel', { rules: [{ required: true, message: '请输入发送方电话!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="发送方邮箱" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入发送方邮箱"
|
|
|
|
|
|
|
|
v-decorator="['sendemail', { rules: [{ required: true, message: '请输入发送方邮箱!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
<a-row>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="接收方邮箱" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入接收方邮箱"
|
|
|
|
|
|
|
|
v-decorator="['receiveemail', { rules: [{ required: true, message: '请输入接收方邮箱!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="接收方操作" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入接收方操作"
|
|
|
|
|
|
|
|
v-decorator="['receiveop', { rules: [{ required: true, message: '请输入接收方操作!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="接收方销售" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
<a-input
|
|
|
|
placeholder="请输入接收方销售"
|
|
|
|
placeholder="请输入备注"
|
|
|
|
v-decorator="['receivesale', { rules: [{ required: true, message: '请输入接收方销售!' }] }]"
|
|
|
|
v-decorator="['remark', { rules: [{ required: true, message: '请输入备注!' }] }]"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
<a-row>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="接收方部门" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入接收方部门"
|
|
|
|
|
|
|
|
v-decorator="['receivedept', { rules: [{ required: true, message: '请输入接收方部门!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="发送人电话" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入发送人电话"
|
|
|
|
|
|
|
|
v-decorator="['shippertel', { rules: [{ required: true, message: '请输入发送人电话!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="收货人电话" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入收货人电话"
|
|
|
|
|
|
|
|
v-decorator="['consigneetel', { rules: [{ required: true, message: '请输入收货人电话!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
<a-row>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="通知人电话" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入通知人电话"
|
|
|
|
|
|
|
|
v-decorator="['notifypartytel', { rules: [{ required: true, message: '请输入通知人电话!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -155,10 +53,12 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { DjyEdiSettingEdit } from '@/api/modular/main/EDIParameterSettingService'
|
|
|
|
import { DjyWebsiteAccountConfigEdit } from '@/api/modular/main/WebSiteaccount'
|
|
|
|
|
|
|
|
import { sysDictDataPage } from '@/api/modular/system/dictDataManage'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
TypeData: [],
|
|
|
|
labelCol: {
|
|
|
|
labelCol: {
|
|
|
|
xs: { span: 24 },
|
|
|
|
xs: { span: 24 },
|
|
|
|
sm: { span: 7 }
|
|
|
|
sm: { span: 7 }
|
|
|
@ -167,37 +67,41 @@ export default {
|
|
|
|
xs: { span: 24 },
|
|
|
|
xs: { span: 24 },
|
|
|
|
sm: { span: 15 }
|
|
|
|
sm: { span: 15 }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
labelCol2: {
|
|
|
|
|
|
|
|
xs: { span: 24 },
|
|
|
|
|
|
|
|
sm: { span: 3 }
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
wrapperCol2: {
|
|
|
|
|
|
|
|
xs: { span: 24 },
|
|
|
|
|
|
|
|
sm: { span: 21 }
|
|
|
|
|
|
|
|
},
|
|
|
|
typeData: [],
|
|
|
|
typeData: [],
|
|
|
|
visible: false,
|
|
|
|
visible: false,
|
|
|
|
confirmLoading: false,
|
|
|
|
confirmLoading: false,
|
|
|
|
form: this.$form.createForm(this)
|
|
|
|
form: this.$form.createForm(this),
|
|
|
|
|
|
|
|
data: {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '349716496130117' }).then(res => {
|
|
|
|
|
|
|
|
this.TypeData = res.data.rows
|
|
|
|
|
|
|
|
console.log(this.TypeData)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
// 初始化方法
|
|
|
|
// 初始化方法
|
|
|
|
edit(record) {
|
|
|
|
edit(record) {
|
|
|
|
|
|
|
|
this.data = record
|
|
|
|
console.log(record)
|
|
|
|
console.log(record)
|
|
|
|
this.visible = true
|
|
|
|
this.visible = true
|
|
|
|
const typeOption = this.$options
|
|
|
|
const typeOption = this.$options
|
|
|
|
this.typeData = typeOption.filters['dictData']('edi_type')
|
|
|
|
this.typeData = typeOption.filters['dictData']('edi_type')
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
ediname: record.ediname,
|
|
|
|
typeCode: record.typeCode,
|
|
|
|
serverip: record.serverip,
|
|
|
|
account: record.account,
|
|
|
|
foldername: record.foldername,
|
|
|
|
|
|
|
|
username: record.username,
|
|
|
|
|
|
|
|
password: record.password,
|
|
|
|
password: record.password,
|
|
|
|
sendname: record.sendname,
|
|
|
|
remark: record.remark
|
|
|
|
sendattn: record.sendattn,
|
|
|
|
|
|
|
|
sendtel: record.sendtel,
|
|
|
|
|
|
|
|
sendemail: record.sendemail,
|
|
|
|
|
|
|
|
receiveemail: record.receiveemail,
|
|
|
|
|
|
|
|
receiveop: record.receiveop,
|
|
|
|
|
|
|
|
receivesale: record.receivesale,
|
|
|
|
|
|
|
|
receivedept: record.receivedept,
|
|
|
|
|
|
|
|
shippertel: record.shippertel,
|
|
|
|
|
|
|
|
consigneetel: record.consigneetel,
|
|
|
|
|
|
|
|
notifypartytel: record.notifypartytel
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
console.log(this.form.getFieldsValue())
|
|
|
|
console.log(this.form.getFieldsValue())
|
|
|
|
}, 100)
|
|
|
|
}, 100)
|
|
|
@ -217,7 +121,9 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(this.form, values.id)
|
|
|
|
console.log(this.form, values.id)
|
|
|
|
DjyEdiSettingEdit(values)
|
|
|
|
values.id = this.data.id
|
|
|
|
|
|
|
|
console.log(values)
|
|
|
|
|
|
|
|
DjyWebsiteAccountConfigEdit(values)
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('编辑成功')
|
|
|
|
this.$message.success('编辑成功')
|
|
|
|