|
@@ -16,7 +16,7 @@
|
|
|
:disabled="disabled"
|
|
:disabled="disabled"
|
|
|
size="small"
|
|
size="small"
|
|
|
@click="editCustomer"
|
|
@click="editCustomer"
|
|
|
- >{{ form.id ? "确认修改" : "确认新增" }}
|
|
|
|
|
|
|
+ >保存
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<containerTitle title="起止地信息" style="margin-top: 50px"></containerTitle>
|
|
<containerTitle title="起止地信息" style="margin-top: 50px"></containerTitle>
|
|
@@ -24,45 +24,78 @@
|
|
|
<el-table
|
|
<el-table
|
|
|
ref="singleTable"
|
|
ref="singleTable"
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ :header-cell-style="{color:'#000'}"
|
|
|
highlight-current-row
|
|
highlight-current-row
|
|
|
style="width: 100%">
|
|
style="width: 100%">
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
property="date"
|
|
property="date"
|
|
|
align="center"
|
|
align="center"
|
|
|
- width="120">
|
|
|
|
|
|
|
+ width="40">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-tooltip class="item" effect="dark" content="增加途径地址" placement="top">
|
|
|
|
|
+ <el-button type="primary" icon="el-icon-plus" size="mini" circle
|
|
|
|
|
+ v-if="(scope.$index+1) === tableData.length" @click="addAddress"></el-button>
|
|
|
|
|
+ </el-tooltip>
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
property="date"
|
|
property="date"
|
|
|
label="省份"
|
|
label="省份"
|
|
|
align="center"
|
|
align="center"
|
|
|
width="120">
|
|
width="120">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-select v-model="scope.row.date" filterable size="small" placeholder="请选择">
|
|
|
|
|
+ <el-option label="北京" value="1"></el-option>
|
|
|
|
|
+ <el-option label="山东" value="2"></el-option>
|
|
|
|
|
+ <el-option label="天津" value="3"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
property="name"
|
|
property="name"
|
|
|
label="城市"
|
|
label="城市"
|
|
|
align="center"
|
|
align="center"
|
|
|
width="120">
|
|
width="120">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-select v-model="scope.row.name" filterable size="small" placeholder="请选择">
|
|
|
|
|
+ <el-option label="测试城市0" value="1"></el-option>
|
|
|
|
|
+ <el-option label="测试城市1" value="2"></el-option>
|
|
|
|
|
+ <el-option label="测试城市2" value="3"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
property="address"
|
|
property="address"
|
|
|
align="center"
|
|
align="center"
|
|
|
|
|
+ width="160"
|
|
|
label="区/县">
|
|
label="区/县">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-select v-model="scope.row.name" filterable size="small" placeholder="请选择">
|
|
|
|
|
+ <el-option label="测试城市0" value="1"></el-option>
|
|
|
|
|
+ <el-option label="测试城市1" value="2"></el-option>
|
|
|
|
|
+ <el-option label="测试城市2" value="3"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
property="address"
|
|
property="address"
|
|
|
align="center"
|
|
align="center"
|
|
|
label="详细地址">
|
|
label="详细地址">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-input v-model="scope.row.address" size="small" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</basic-container>
|
|
</basic-container>
|
|
|
- <containerTitle title="委托"></containerTitle>
|
|
|
|
|
|
|
+ <containerTitle title="箱信息"></containerTitle>
|
|
|
<basic-container>
|
|
<basic-container>
|
|
|
<avue-crud :data="entrustList" :option="entrustOptionTwo"></avue-crud>
|
|
<avue-crud :data="entrustList" :option="entrustOptionTwo"></avue-crud>
|
|
|
</basic-container>
|
|
</basic-container>
|
|
|
<containerTitle title="货物信息"></containerTitle>
|
|
<containerTitle title="货物信息"></containerTitle>
|
|
|
<basic-container>
|
|
<basic-container>
|
|
|
- 货物信息
|
|
|
|
|
-<!-- <avue-form :option="option" v-model="form"></avue-form>-->
|
|
|
|
|
|
|
+ <avue-form :option="goodsOptionForm" v-model="goodsForm"></avue-form>
|
|
|
|
|
+ <avue-crud :data="goodsList" :option="goodsOptionCrud"></avue-crud>
|
|
|
</basic-container>
|
|
</basic-container>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -71,41 +104,107 @@
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- form:{},
|
|
|
|
|
|
|
+ form: {},
|
|
|
|
|
+ goodsForm: {},
|
|
|
tableData: [{
|
|
tableData: [{
|
|
|
date: '2016-05-02',
|
|
date: '2016-05-02',
|
|
|
name: '王小虎',
|
|
name: '王小虎',
|
|
|
address: '上海市普陀区金沙江路 1518 弄'
|
|
address: '上海市普陀区金沙江路 1518 弄'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ date: '2016-05-02',
|
|
|
|
|
+ name: '王小虎',
|
|
|
|
|
+ address: '上海市普陀区金沙江路 1518 弄'
|
|
|
}],
|
|
}],
|
|
|
- entrustList:[],
|
|
|
|
|
- entrustOptionTwo:{
|
|
|
|
|
- align:'center',
|
|
|
|
|
- menuAlign:'center',
|
|
|
|
|
- column:[
|
|
|
|
|
|
|
+ entrustList: [],
|
|
|
|
|
+ goodsOptionForm: {
|
|
|
|
|
+ menuBtn:false,
|
|
|
|
|
+ column: [
|
|
|
{
|
|
{
|
|
|
- label:'尺寸',
|
|
|
|
|
- prop:'name'
|
|
|
|
|
- },{
|
|
|
|
|
- label:'箱型',
|
|
|
|
|
- prop:'sex'
|
|
|
|
|
- },{
|
|
|
|
|
- label:'箱量',
|
|
|
|
|
- prop:'sex'
|
|
|
|
|
- },{
|
|
|
|
|
- label:'总重量(dun)',
|
|
|
|
|
- prop:'sex'
|
|
|
|
|
- },{
|
|
|
|
|
- label:'陆运费',
|
|
|
|
|
- prop:'sex'
|
|
|
|
|
- },{
|
|
|
|
|
- label:'备注',
|
|
|
|
|
- prop:'sex'
|
|
|
|
|
|
|
+ label: '提单号',
|
|
|
|
|
+ prop: 'name'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '场站',
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '到厂时间',
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '工厂名称',
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '货物名称',
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '备注',
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ goodsList:[],
|
|
|
|
|
+ goodsOptionCrud: {
|
|
|
|
|
+ index:true,
|
|
|
|
|
+ cellBtn:true,
|
|
|
|
|
+ addBtn:false,
|
|
|
|
|
+ addRowBtn:true,
|
|
|
|
|
+ column: [{
|
|
|
|
|
+ label: '尺寸箱型',
|
|
|
|
|
+ cell: true,
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '箱量',
|
|
|
|
|
+ cell: true,
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '是否派箱',
|
|
|
|
|
+ cell: true,
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '车队是否受理',
|
|
|
|
|
+ cell: true,
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ entrustOptionTwo: {
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ menuAlign: 'center',
|
|
|
|
|
+ index:true,
|
|
|
|
|
+ cellBtn:true,
|
|
|
|
|
+ addBtn:false,
|
|
|
|
|
+ addRowBtn:true,
|
|
|
|
|
+ column: [ {
|
|
|
|
|
+ label: '尺寸箱型',
|
|
|
|
|
+ cell: true,
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '箱量',
|
|
|
|
|
+ cell: true,
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '总重量(吨)',
|
|
|
|
|
+ cell: true,
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '陆运费',
|
|
|
|
|
+ cell: true,
|
|
|
|
|
+ prop: 'sex'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '备注',
|
|
|
|
|
+ cell: true,
|
|
|
|
|
+ prop: 'sex'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ //地址新增
|
|
|
|
|
+ addAddress(){
|
|
|
|
|
+ this.tableData.push({})
|
|
|
|
|
+ },
|
|
|
|
|
+ backToList() {
|
|
|
|
|
+ this.$emit('backToList')
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|