|
@@ -5,7 +5,7 @@
|
|
|
@resert="getDataList" @detail="openEdit" @onRefresh="onRefresh">
|
|
|
</module-view>
|
|
|
<!-- 注册/编辑弹窗 -->
|
|
|
- <el-dialog :title="popTitle+'仓库'" :visible.sync="dialogFormVisible" width="30%">
|
|
|
+ <el-dialog :title="popTitle+'仓库'" :visible.sync="dialogFormVisible" width="960px" height="450px">
|
|
|
<by-form :propConfig="addConfig" ref="addFormId"></by-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
@@ -110,28 +110,53 @@
|
|
|
triggerRowCheck: 'row'
|
|
|
},
|
|
|
columns: [{
|
|
|
+ width: 200,
|
|
|
title: '名称',
|
|
|
field: 'name',
|
|
|
isDetail: true,
|
|
|
},
|
|
|
{
|
|
|
+ width: 120,
|
|
|
title: '第三方仓库名称',
|
|
|
field: 'financeStorehouseName',
|
|
|
},
|
|
|
{
|
|
|
+ width: 120,
|
|
|
title: '第三方系统名称',
|
|
|
field: 'financeType',
|
|
|
},
|
|
|
{
|
|
|
+ width: 120,
|
|
|
title: '第三方仓库编码',
|
|
|
field: 'financeStorehouseNo',
|
|
|
},
|
|
|
{
|
|
|
+ width: 120,
|
|
|
+ title: '省',
|
|
|
+ field: 'tmsShipmentProvince',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 120,
|
|
|
+ title: '市',
|
|
|
+ field: 'tmsShipmentCity',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 150,
|
|
|
+ title: '县/区',
|
|
|
+ field: 'tmsShipmentRegion',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 150,
|
|
|
+ title: '街道',
|
|
|
+ field: 'tmsShipmentStreet',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 200,
|
|
|
title: '地址',
|
|
|
field: 'address',
|
|
|
},
|
|
|
{
|
|
|
- width: 100,
|
|
|
+ width: 70,
|
|
|
title: '仓位',
|
|
|
action: true,
|
|
|
plugins: [{
|
|
@@ -145,7 +170,7 @@
|
|
|
}
|
|
|
}]
|
|
|
}, {
|
|
|
- width: 120,
|
|
|
+ width: 104,
|
|
|
title: '操作',
|
|
|
action: true,
|
|
|
plugins: [{
|
|
@@ -294,44 +319,68 @@
|
|
|
required: true, message: '请输入名称', trigger: 'blur'
|
|
|
}],
|
|
|
address: [{
|
|
|
- required: true, message: '请输入地址', trigger: 'blur'
|
|
|
- }]
|
|
|
+ required: true, message: '请输入详细地址', trigger: 'blur'
|
|
|
+ }],
|
|
|
+ tmsShipmentProvince: [{
|
|
|
+ required: true, message: '请选择仓库地址', trigger: 'change'
|
|
|
+ }],
|
|
|
}
|
|
|
},
|
|
|
columns: [
|
|
|
[
|
|
|
{
|
|
|
- span: 23,
|
|
|
+ span: 24,
|
|
|
labelWidth: '110px',
|
|
|
label: '名称',
|
|
|
prop: 'name',
|
|
|
component: 'by-input',
|
|
|
},
|
|
|
{
|
|
|
- span: 23,
|
|
|
+ span: 24,
|
|
|
labelWidth: '110px',
|
|
|
label: '第三方仓库名称',
|
|
|
prop: 'financeStorehouseName',
|
|
|
component: 'by-input',
|
|
|
},
|
|
|
{
|
|
|
- span: 23,
|
|
|
+ span: 24,
|
|
|
labelWidth: '110px',
|
|
|
label: '第三方系统名称',
|
|
|
prop: 'financeType',
|
|
|
component: 'by-input',
|
|
|
},
|
|
|
{
|
|
|
- span: 23,
|
|
|
+ span: 24,
|
|
|
labelWidth: '110px',
|
|
|
label: '第三方仓库编码',
|
|
|
prop: 'financeStorehouseNo',
|
|
|
component: 'by-input',
|
|
|
},
|
|
|
+ ],
|
|
|
+ [{
|
|
|
+ labelWidth: '110px',
|
|
|
+ label: '仓库地址',
|
|
|
+ prop: 'tmsShipmentProvince',
|
|
|
+ component: 'by-area',
|
|
|
+ compConfig: {
|
|
|
+ attr: {
|
|
|
+ province: 'tmsShipmentProvince', //省
|
|
|
+ provinceCode: 'tmsShipmentProvinceNo', //省编码
|
|
|
+ city: 'tmsShipmentCity', //市
|
|
|
+ cityCode: 'tmsShipmentCityNo', //市编码
|
|
|
+ county: 'tmsShipmentRegion', //县/区
|
|
|
+ countyCode: 'tmsShipmentRegionNo', //县/区编码
|
|
|
+ town: 'tmsShipmentStreet', //街道
|
|
|
+ townCode: 'tmsShipmentStreetNo', //街道编码
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ [
|
|
|
{
|
|
|
- span: 23,
|
|
|
+ span: 24,
|
|
|
labelWidth: '110px',
|
|
|
- label: '地址',
|
|
|
+ label: '详细地址',
|
|
|
prop: 'address',
|
|
|
component: 'by-input',
|
|
|
},
|
|
@@ -409,6 +458,7 @@
|
|
|
confirm() {
|
|
|
(this as any).$refs.addFormId.validate().then(() => {
|
|
|
let query = (this as any).$refs.addFormId.getValue();
|
|
|
+ console.log(query);
|
|
|
this.dialogFormVisible = false;
|
|
|
if (this.popTitle === '注册') {
|
|
|
let loading = this.$loading({ target: '.main-container' });
|
|
@@ -592,6 +642,8 @@
|
|
|
openEdit(e : any) {
|
|
|
this.popTitle = '编辑'
|
|
|
this.dialogFormVisible = true;
|
|
|
+ e.tmsShipmentProvince = "北京市"
|
|
|
+ e.tmsShipmentProvinceNo= "110000"
|
|
|
setTimeout(() => {
|
|
|
if ((this as any).$refs.addFormId) (this as any).$refs.addFormId.setValue(e);
|
|
|
}, 0)
|