|
@@ -2,19 +2,20 @@
|
|
<template>
|
|
<template>
|
|
<div class="steelDetailsOrder">
|
|
<div class="steelDetailsOrder">
|
|
<div class="sache">
|
|
<div class="sache">
|
|
|
|
+ <label class="el-form-item__label" style="width: auto;">订单日期:</label>
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="startTime"
|
|
v-model="startTime"
|
|
- type="datetime"
|
|
|
|
|
|
+ type="date"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
- style="width:220px"
|
|
|
|
|
|
+ style="width:200px"
|
|
>
|
|
>
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
<span>至</span>
|
|
<span>至</span>
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="endTime"
|
|
v-model="endTime"
|
|
- type="datetime"
|
|
|
|
|
|
+ type="date"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
- style="width:220px"
|
|
|
|
|
|
+ style="width:200px"
|
|
>
|
|
>
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
<el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
|
|
<el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
|
|
@@ -30,8 +31,13 @@
|
|
<el-tabs v-model="activeName">
|
|
<el-tabs v-model="activeName">
|
|
<!-- 未结算 -->
|
|
<!-- 未结算 -->
|
|
<el-tab-pane label="未结算" name="first">
|
|
<el-tab-pane label="未结算" name="first">
|
|
- <dilTable v-bind.sync="options1" ref="excelDom">
|
|
|
|
- <el-table-column fixed="right" label="操作" width="145">
|
|
|
|
|
|
+ <mergeRowTable
|
|
|
|
+ v-bind.sync="options1"
|
|
|
|
+ ref="excelDom"
|
|
|
|
+ :stripe="false"
|
|
|
|
+ :isPagination="false"
|
|
|
|
+ >
|
|
|
|
+ <el-table-column fixed="right" label="操作" width="120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
v-if="ssoId == null"
|
|
v-if="ssoId == null"
|
|
@@ -42,17 +48,11 @@
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- </dilTable>
|
|
|
|
|
|
+ </mergeRowTable>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<!-- 已结算 -->
|
|
<!-- 已结算 -->
|
|
<el-tab-pane label="已结算" name="second">
|
|
<el-tab-pane label="已结算" name="second">
|
|
- <dilTable v-bind.sync="options2">
|
|
|
|
- <!-- <el-table-column fixed="right" label="操作" width="40">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-button type="text" size="mini" @click="getclick(scope)">查看</el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column> -->
|
|
|
|
- </dilTable>
|
|
|
|
|
|
+ <mergeRowTable v-bind.sync="options2"> </mergeRowTable>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
@@ -98,24 +98,6 @@
|
|
></dilTable>
|
|
></dilTable>
|
|
</vue-scorll>
|
|
</vue-scorll>
|
|
</div>
|
|
</div>
|
|
- <!-- <el-form-item label="新详单地址" :label-width="formLabelWidth">
|
|
|
|
- <el-input
|
|
|
|
- style="width:250px"
|
|
|
|
- v-model="newAddress"
|
|
|
|
- disabled
|
|
|
|
- ></el-input>
|
|
|
|
- <label>现单价</label>
|
|
|
|
- <el-input
|
|
|
|
- style="width:100px"
|
|
|
|
- v-model="newPriceValue"
|
|
|
|
- disabled
|
|
|
|
- ></el-input>
|
|
|
|
- <el-button type="primary" placeholder="()" @click="select"
|
|
|
|
- >浏览</el-button
|
|
|
|
- >
|
|
|
|
- </el-form-item>-->
|
|
|
|
-
|
|
|
|
- <!-- class="dialog-footer" slot="footer"-->
|
|
|
|
<div class="opreation">
|
|
<div class="opreation">
|
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
<el-button type="primary" @click="makeSure">确 定</el-button>
|
|
<el-button type="primary" @click="makeSure">确 定</el-button>
|
|
@@ -131,6 +113,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
aaadrawer: false,
|
|
aaadrawer: false,
|
|
|
|
+ pageSize: 100,
|
|
ops: {
|
|
ops: {
|
|
vuescroll: {},
|
|
vuescroll: {},
|
|
scrollPanel: {},
|
|
scrollPanel: {},
|
|
@@ -157,14 +140,8 @@ export default {
|
|
//省市县(区)查询值
|
|
//省市县(区)查询值
|
|
addresText: null,
|
|
addresText: null,
|
|
noSettleDetailsColumn: [],
|
|
noSettleDetailsColumn: [],
|
|
- //达钢的干基
|
|
|
|
- DaDryBasis: null,
|
|
|
|
- //九江收货的干基
|
|
|
|
- JiuDryBasis: null,
|
|
|
|
//单价
|
|
//单价
|
|
Fee: null,
|
|
Fee: null,
|
|
- //途损费
|
|
|
|
- damageFee: null,
|
|
|
|
//加载
|
|
//加载
|
|
selectLineLoading: false,
|
|
selectLineLoading: false,
|
|
input: '',
|
|
input: '',
|
|
@@ -174,7 +151,9 @@ export default {
|
|
detailsId: null,
|
|
detailsId: null,
|
|
options1: {
|
|
options1: {
|
|
// first请求数据的地址
|
|
// first请求数据的地址
|
|
- requestUrl: ''
|
|
|
|
|
|
+ requestUrl: '',
|
|
|
|
+ comparison: 'orderId',
|
|
|
|
+ columnIndexs: [0, 2, 3, 4, 5, 7, 13, 14, 16, 17, 18]
|
|
},
|
|
},
|
|
options2: {
|
|
options2: {
|
|
// second请求数据的地址
|
|
// second请求数据的地址
|
|
@@ -204,7 +183,9 @@ export default {
|
|
// addressText:null,
|
|
// addressText:null,
|
|
//缓存当前选中的运输单价
|
|
//缓存当前选中的运输单价
|
|
priceMap: {},
|
|
priceMap: {},
|
|
- formLabelWidth: '125px'
|
|
|
|
|
|
+ formLabelWidth: '125px',
|
|
|
|
+ orderId: null,
|
|
|
|
+ placeId: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -276,8 +257,6 @@ export default {
|
|
var title = tableTitle
|
|
var title = tableTitle
|
|
let tHeader = []
|
|
let tHeader = []
|
|
let filterVal = []
|
|
let filterVal = []
|
|
- console.log('进入了导出')
|
|
|
|
- console.log(columnData)
|
|
|
|
columnData.forEach(e1 => {
|
|
columnData.forEach(e1 => {
|
|
if (tHeader.indexOf(e1.label) === -1) {
|
|
if (tHeader.indexOf(e1.label) === -1) {
|
|
tHeader.push(e1.label)
|
|
tHeader.push(e1.label)
|
|
@@ -408,9 +387,13 @@ export default {
|
|
},
|
|
},
|
|
//修改详单单价
|
|
//修改详单单价
|
|
priceValueUpdate(row) {
|
|
priceValueUpdate(row) {
|
|
|
|
+ this.orderId = row.orderId
|
|
this.originalAddress = row.realAddress
|
|
this.originalAddress = row.realAddress
|
|
this.originalPriceValue = row.priceValue
|
|
this.originalPriceValue = row.priceValue
|
|
this.detailsId = row.detailsId
|
|
this.detailsId = row.detailsId
|
|
|
|
+
|
|
|
|
+ this.Address.requestUrl =
|
|
|
|
+ '/api/v1/ams/getAddressDeliveryAddress?apiId=511&i=' + new Date()
|
|
this.dialogFormVisible = true
|
|
this.dialogFormVisible = true
|
|
},
|
|
},
|
|
//运输订单点击浏览的事件
|
|
//运输订单点击浏览的事件
|
|
@@ -451,8 +434,9 @@ export default {
|
|
if (this.place != null) {
|
|
if (this.place != null) {
|
|
this.place = null
|
|
this.place = null
|
|
}
|
|
}
|
|
- ;(this.address = val.address), (this.addressId = val.addressId)
|
|
|
|
-
|
|
|
|
|
|
+ this.placeId = val.placeId
|
|
|
|
+ this.address = val.address
|
|
|
|
+ this.addressId = val.addressId
|
|
this.priceId = val.priceid
|
|
this.priceId = val.priceid
|
|
// this.priceMap = {};
|
|
// this.priceMap = {};
|
|
// this.priceMap = val;
|
|
// this.priceMap = val;
|
|
@@ -465,29 +449,82 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.dialogFormVisible = false
|
|
this.dialogFormVisible = false
|
|
let mapValue = {
|
|
let mapValue = {
|
|
|
|
+ orderId: this.orderId,
|
|
detailsId: this.detailsId,
|
|
detailsId: this.detailsId,
|
|
- priceId: this.priceId
|
|
|
|
|
|
+ priceId: this.priceId,
|
|
|
|
+ placeId: this.placeId
|
|
}
|
|
}
|
|
//是否确定修改详单地址!
|
|
//是否确定修改详单地址!
|
|
- this.$confirm('是否确定修改详单地址', '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
|
|
+ this.$confirm('确定修改', '提示', {
|
|
|
|
+ confirmButtonText: '仅修改单价',
|
|
|
|
+ cancelButtonText: '修改下货地址和单价',
|
|
|
|
+ distinguishCancelAndClose: true,
|
|
type: 'warning',
|
|
type: 'warning',
|
|
center: true
|
|
center: true
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
//初始化修改详单地址对话框的信息
|
|
//初始化修改详单地址对话框的信息
|
|
- ;(this.newPriceValue = null),
|
|
|
|
- (this.newAddress = null),
|
|
|
|
- (this.address = null),
|
|
|
|
- (this.addresText = null),
|
|
|
|
- (this.addressId = null),
|
|
|
|
- (this.priceId = null),
|
|
|
|
|
|
+ this.newPriceValue = null
|
|
|
|
+ this.newAddress = null
|
|
|
|
+ this.address = null
|
|
|
|
+ this.addresText = null
|
|
|
|
+ this.addressId = null
|
|
|
|
+ this.priceId = null
|
|
|
|
+ this.axios
|
|
|
|
+ .post('/api/v1/bms/updateDetailsOrder', mapValue)
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == '0') {
|
|
|
|
+ this.$message.success('修改详单单价成功!')
|
|
|
|
+ let startTime = null
|
|
|
|
+ let endTime = null
|
|
|
|
+ let carrierSsoId = null
|
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
|
+ carrierSsoId = getCookie('userId')
|
|
|
|
+ }
|
|
|
|
+ if (this.startTime && this.endTime) {
|
|
|
|
+ startTime = sjTime(this.startTime)
|
|
|
|
+ endTime = sjTime(this.endTime)
|
|
|
|
+ }
|
|
|
|
+ //重置未结算详单表单信息
|
|
|
|
+ this.options1.requestUrl =
|
|
|
|
+ '/api/v1/bms/getSteelTruckDetailsOrder?apiId=507&orderType=1&con=' +
|
|
|
|
+ this.input +
|
|
|
|
+ '&startTime=' +
|
|
|
|
+ startTime +
|
|
|
|
+ '&endTime=' +
|
|
|
|
+ endTime +
|
|
|
|
+ '&status=0' +
|
|
|
|
+ '&i=' +
|
|
|
|
+ new Date()
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('修改详单单价失败,请联系管理员!')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ .catch(action => {
|
|
|
|
+ if (action === 'cancel') {
|
|
|
|
+ mapValue.updatePlace = 1
|
|
|
|
+ this.newPriceValue = null
|
|
|
|
+ this.newAddress = null
|
|
|
|
+ this.address = null
|
|
|
|
+ this.addresText = null
|
|
|
|
+ this.addressId = null
|
|
|
|
+ this.priceId = null
|
|
this.axios
|
|
this.axios
|
|
.post('/api/v1/bms/updateDetailsOrder', mapValue)
|
|
.post('/api/v1/bms/updateDetailsOrder', mapValue)
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == '0') {
|
|
if (res.data.code == '0') {
|
|
- this.$message.success('修改详单单价成功!')
|
|
|
|
|
|
+ this.$message.success('修改详单单价和地址成功!')
|
|
|
|
+ let startTime = null
|
|
|
|
+ let endTime = null
|
|
|
|
+ let carrierSsoId = null
|
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
|
+ carrierSsoId = getCookie('userId')
|
|
|
|
+ }
|
|
|
|
+ if (this.startTime && this.endTime) {
|
|
|
|
+ startTime = sjTime(this.startTime)
|
|
|
|
+ endTime = sjTime(this.endTime)
|
|
|
|
+ }
|
|
//重置未结算详单表单信息
|
|
//重置未结算详单表单信息
|
|
this.options1.requestUrl =
|
|
this.options1.requestUrl =
|
|
'/api/v1/bms/getSteelTruckDetailsOrder?apiId=507&orderType=1&con=' +
|
|
'/api/v1/bms/getSteelTruckDetailsOrder?apiId=507&orderType=1&con=' +
|
|
@@ -499,16 +536,10 @@ export default {
|
|
'&status=0' +
|
|
'&status=0' +
|
|
'&i=' +
|
|
'&i=' +
|
|
new Date()
|
|
new Date()
|
|
- } else {
|
|
|
|
- this.$message.error('修改详单单价失败,请联系管理员!')
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- })
|
|
|
|
- .catch(() => {
|
|
|
|
- this.$message({
|
|
|
|
- type: 'info',
|
|
|
|
- message: '取消修改详单单价!'
|
|
|
|
- })
|
|
|
|
|
|
+ }
|
|
|
|
+ //初始化修改详单地址对话框的信息
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|