|
@@ -305,6 +305,7 @@
|
|
:corpType="'GC'"
|
|
:corpType="'GC'"
|
|
:disabled="goodsForm.status !== 0"
|
|
:disabled="goodsForm.status !== 0"
|
|
v-model="scope.row.corpId"
|
|
v-model="scope.row.corpId"
|
|
|
|
+ @clear="clear(scope.row)"
|
|
@getCorpData="(row)=>{withAddress(row,scope)}"/>
|
|
@getCorpData="(row)=>{withAddress(row,scope)}"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -362,6 +363,24 @@
|
|
placeholder="请输入内容"></el-input>
|
|
placeholder="请输入内容"></el-input>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ width="40">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="scope.$index !== tableData.length-1" style="margin: -5px auto">
|
|
|
|
+ <el-tooltip class="item" effect="dark" content="向上移动" placement="right" v-if="scope.$index > 1">
|
|
|
|
+ <div class="single" style="margin-bottom: -5px">
|
|
|
|
+ <el-button type="text" style="margin-right: -0.5rem" icon="el-icon-arrow-up" size="mini" @click="moveUp(scope.row,scope.$index)"></el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ <el-tooltip class="item" effect="dark" content="向下移动" placement="right" v-if="scope.$index > 0 && scope.$index < tableData.length-2">
|
|
|
|
+ <div class="single" style="margin-top: -5px">
|
|
|
|
+ <el-button type="text" style="margin-right: -0.5rem" icon="el-icon-arrow-down" size="mini" @click="moveDown(scope.row,scope.$index)"></el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</basic-container>
|
|
</basic-container>
|
|
<containerTitle title="车辆信息"></containerTitle>
|
|
<containerTitle title="车辆信息"></containerTitle>
|
|
@@ -566,7 +585,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- returnButton:Boolean,
|
|
|
|
|
|
+ returnButton: Boolean,
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
lineArr: [],
|
|
lineArr: [],
|
|
activeIndex: '1',
|
|
activeIndex: '1',
|
|
@@ -1509,10 +1528,10 @@ export default {
|
|
//查询业务员
|
|
//查询业务员
|
|
this.salesmanQuery()
|
|
this.salesmanQuery()
|
|
})
|
|
})
|
|
- } else if (this.id.slice(0, 2) === '首页'||this.id.slice(0, 2) === '台账') {
|
|
|
|
- if (this.id.slice(0, 2) === '首页'){
|
|
|
|
|
|
+ } else if (this.id.slice(0, 2) === '首页' || this.id.slice(0, 2) === '台账') {
|
|
|
|
+ if (this.id.slice(0, 2) === '首页') {
|
|
this.returnButton = true
|
|
this.returnButton = true
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
this.returnButton = false
|
|
this.returnButton = false
|
|
}
|
|
}
|
|
detailDelegationList({id: this.id.slice(2, this.id.length), kind: '1'}).then(res => {
|
|
detailDelegationList({id: this.id.slice(2, this.id.length), kind: '1'}).then(res => {
|
|
@@ -1544,7 +1563,7 @@ export default {
|
|
this.goodsForm.status = 2
|
|
this.goodsForm.status = 2
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
detailDelegationList({id: this.id, kind: '1'}).then(res => {
|
|
detailDelegationList({id: this.id, kind: '1'}).then(res => {
|
|
this.goodsForm = res.data.data
|
|
this.goodsForm = res.data.data
|
|
this.tableData = res.data.data.orderAddressList
|
|
this.tableData = res.data.data.orderAddressList
|
|
@@ -1583,11 +1602,11 @@ export default {
|
|
businessType: "出口",
|
|
businessType: "出口",
|
|
shippingMode: "集装箱",
|
|
shippingMode: "集装箱",
|
|
status: 0,
|
|
status: 0,
|
|
- salesman:JSON.parse(localStorage.getItem("saber-userInfo")).content.user_id,
|
|
|
|
|
|
+ salesman: JSON.parse(localStorage.getItem("saber-userInfo")).content.user_id,
|
|
belongCompany: res.data.data ? res.data.data.belongCompany : '',
|
|
belongCompany: res.data.data ? res.data.data.belongCompany : '',
|
|
bsDate: new Date((new Date).getTime() + 8 * 60 * 60 * 1000).toJSON().split('T').join(' ').substr(0, 19)//获取当天时间并格式化
|
|
bsDate: new Date((new Date).getTime() + 8 * 60 * 60 * 1000).toJSON().split('T').join(' ').substr(0, 19)//获取当天时间并格式化
|
|
}
|
|
}
|
|
- this.salesmanQuery('',true)
|
|
|
|
|
|
+ this.salesmanQuery('', true)
|
|
})
|
|
})
|
|
this.entrustList = []
|
|
this.entrustList = []
|
|
}
|
|
}
|
|
@@ -1628,10 +1647,10 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//查询业务员
|
|
//查询业务员
|
|
- salesmanQuery(realName,type) {
|
|
|
|
|
|
+ salesmanQuery(realName, type) {
|
|
getSalesman({realName: realName, userExt: this.goodsForm.corpId}).then(res => {
|
|
getSalesman({realName: realName, userExt: this.goodsForm.corpId}).then(res => {
|
|
this.salesmanList = res.data.data
|
|
this.salesmanList = res.data.data
|
|
- if (type){
|
|
|
|
|
|
+ if (type) {
|
|
this.changeSelect(this.goodsForm.salesman)
|
|
this.changeSelect(this.goodsForm.salesman)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1803,6 +1822,12 @@ export default {
|
|
addAddress() {
|
|
addAddress() {
|
|
this.tableData.splice(this.tableData.length - 1, 0, {})
|
|
this.tableData.splice(this.tableData.length - 1, 0, {})
|
|
},
|
|
},
|
|
|
|
+ moveUp(row,index){
|
|
|
|
+ this.tableData[index] = this.tableData.splice(index -1 ,1,row)[0]
|
|
|
|
+ },
|
|
|
|
+ moveDown(row,index){
|
|
|
|
+ this.tableData[index] = this.tableData.splice(index +1 ,1,row)[0]
|
|
|
|
+ },
|
|
//返回主列表
|
|
//返回主列表
|
|
backToList(value) {
|
|
backToList(value) {
|
|
if (value === 0) {
|
|
if (value === 0) {
|
|
@@ -2095,6 +2120,9 @@ export default {
|
|
//查询业务员
|
|
//查询业务员
|
|
this.salesmanQuery()
|
|
this.salesmanQuery()
|
|
},
|
|
},
|
|
|
|
+ clear(row) {
|
|
|
|
+ row.corpName = ''
|
|
|
|
+ },
|
|
//选择地址客户带出地址
|
|
//选择地址客户带出地址
|
|
withAddress(row, scope) {
|
|
withAddress(row, scope) {
|
|
this.$set(this.tableData[scope.$index], 'contacts', row.attn)
|
|
this.$set(this.tableData[scope.$index], 'contacts', row.attn)
|
|
@@ -2149,4 +2177,7 @@ export default {
|
|
padding: 10px 15px;
|
|
padding: 10px 15px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
+.single ::v-deep .el-button--mini{
|
|
|
|
+ padding: 0 0 !important;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|