|
@@ -23,6 +23,7 @@
|
|
style="width:200px"
|
|
style="width:200px"
|
|
v-model="input"
|
|
v-model="input"
|
|
placeholder="请输入查询条件"
|
|
placeholder="请输入查询条件"
|
|
|
|
+ clearable
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
@@ -83,7 +84,6 @@
|
|
ref="tableRef"
|
|
ref="tableRef"
|
|
border
|
|
border
|
|
stripe
|
|
stripe
|
|
- @filter-change="filterChange"
|
|
|
|
style="width: 100%; margin-top: 20px"
|
|
style="width: 100%; margin-top: 20px"
|
|
max-height="800px"
|
|
max-height="800px"
|
|
@cell-click="cellClik"
|
|
@cell-click="cellClik"
|
|
@@ -97,13 +97,6 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">{{ scope.row.group + 1 }}</template>
|
|
<template slot-scope="scope">{{ scope.row.group + 1 }}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- prop="saleOrderNo"
|
|
|
|
- label="销售订单号"
|
|
|
|
- width="200px"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- </el-table-column>
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="consigneeName"
|
|
prop="consigneeName"
|
|
label="下单客户"
|
|
label="下单客户"
|
|
@@ -141,9 +134,6 @@
|
|
label="车牌号"
|
|
label="车牌号"
|
|
align="center"
|
|
align="center"
|
|
width="250px"
|
|
width="250px"
|
|
- :filter-multiple="true"
|
|
|
|
- :filters="filterData()"
|
|
|
|
- :filter-method="filterTag"
|
|
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-autocomplete
|
|
<el-autocomplete
|
|
@@ -155,56 +145,13 @@
|
|
:disabled="scope.row.isCapacityShow != 1"
|
|
:disabled="scope.row.isCapacityShow != 1"
|
|
></el-autocomplete>
|
|
></el-autocomplete>
|
|
<el-button
|
|
<el-button
|
|
- @click="updateCapacity(row)"
|
|
|
|
|
|
+ @click="updateCapacity(scope.row)"
|
|
type="primary"
|
|
type="primary"
|
|
v-if="scope.row.isCapacityShow == 1"
|
|
v-if="scope.row.isCapacityShow == 1"
|
|
>提交</el-button
|
|
>提交</el-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- prop="capacityTel"
|
|
|
|
- label="司机电话"
|
|
|
|
- width="250px"
|
|
|
|
- align="center"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-input
|
|
|
|
- style="width:120px"
|
|
|
|
- v-model="scope.row.capacityTel"
|
|
|
|
- placeholder="请输入电话号码"
|
|
|
|
- :disabled="scope.row.isTelShow != 1"
|
|
|
|
- ></el-input>
|
|
|
|
- <el-button
|
|
|
|
- @click="updateDriverTel(scope.row)"
|
|
|
|
- type="primary"
|
|
|
|
- v-if="scope.row.isTelShow == 1"
|
|
|
|
- >提交</el-button
|
|
|
|
- >
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="addressPlace"
|
|
|
|
- label="收货地址"
|
|
|
|
- :width="flexColumnWidth('addressPlace', tableData, 'max')"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-input
|
|
|
|
- style="width:300px"
|
|
|
|
- v-model="scope.row.addressPlace"
|
|
|
|
- placeholder="请输入收货地址"
|
|
|
|
- :disabled="scope.row.isAddressShow != 1"
|
|
|
|
- ></el-input>
|
|
|
|
- <el-button
|
|
|
|
- @click="updateAddress(scope.row)"
|
|
|
|
- type="primary"
|
|
|
|
- v-if="scope.row.isAddressShow == 1"
|
|
|
|
- >选择</el-button
|
|
|
|
- >
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="orderStatus" label="运单状态" align="center">
|
|
|
|
- </el-table-column>
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="materialName"
|
|
prop="materialName"
|
|
label="物资名称"
|
|
label="物资名称"
|
|
@@ -242,6 +189,28 @@
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="addressPlace"
|
|
|
|
+ label="收货地址"
|
|
|
|
+ :width="flexColumnWidth('addressPlace', tableData, 'max')"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input
|
|
|
|
+ style="width:280px"
|
|
|
|
+ v-model="scope.row.addressPlace"
|
|
|
|
+ placeholder="请输入收货地址"
|
|
|
|
+ :disabled="scope.row.isAddressShow != 1"
|
|
|
|
+ ></el-input>
|
|
|
|
+ <el-button
|
|
|
|
+ @click="updateAddress(scope.row)"
|
|
|
|
+ type="primary"
|
|
|
|
+ v-if="scope.row.isAddressShow == 1"
|
|
|
|
+ >选择</el-button
|
|
|
|
+ >
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="orderStatus" label="运单状态" align="center">
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop="grossWeight" label="毛重"> </el-table-column>
|
|
<el-table-column prop="grossWeight" label="毛重"> </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="grossWeightTime"
|
|
prop="grossWeightTime"
|
|
@@ -294,6 +263,27 @@
|
|
align="center"
|
|
align="center"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="capacityTel"
|
|
|
|
+ label="司机电话"
|
|
|
|
+ width="250px"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input
|
|
|
|
+ style="width:120px"
|
|
|
|
+ v-model="scope.row.capacityTel"
|
|
|
|
+ placeholder="请输入电话号码"
|
|
|
|
+ :disabled="scope.row.isTelShow != 1"
|
|
|
|
+ ></el-input>
|
|
|
|
+ <el-button
|
|
|
|
+ @click="updateDriverTel(scope.row)"
|
|
|
|
+ type="primary"
|
|
|
|
+ v-if="scope.row.isTelShow == 1"
|
|
|
|
+ >提交</el-button
|
|
|
|
+ >
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop="saler" label="业务员" align="center">
|
|
<el-table-column prop="saler" label="业务员" align="center">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -312,6 +302,13 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="isSelfMention" label="是否自提" align="center">
|
|
<el-table-column prop="isSelfMention" label="是否自提" align="center">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="saleOrderNo"
|
|
|
|
+ label="销售订单号"
|
|
|
|
+ width="200px"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="saleOrderStatus"
|
|
prop="saleOrderStatus"
|
|
label="销售订单状态"
|
|
label="销售订单状态"
|
|
@@ -429,7 +426,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { sjTime } from "@/utils/sharedJsFile";
|
|
|
|
|
|
+import { sjTime, isVehicleNumber } from "@/utils/sharedJsFile";
|
|
import { getCookie } from "@/utils/util.js";
|
|
import { getCookie } from "@/utils/util.js";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -471,10 +468,9 @@ export default {
|
|
1,
|
|
1,
|
|
2,
|
|
2,
|
|
3,
|
|
3,
|
|
- 4,
|
|
|
|
- 5,
|
|
|
|
- 6,
|
|
|
|
7,
|
|
7,
|
|
|
|
+ 8,
|
|
|
|
+ 14,
|
|
16,
|
|
16,
|
|
17,
|
|
17,
|
|
18,
|
|
18,
|
|
@@ -489,6 +485,21 @@ export default {
|
|
27,
|
|
27,
|
|
29
|
|
29
|
|
],
|
|
],
|
|
|
|
+ //钢材多拼车辆线路ID
|
|
|
|
+ //索引从1-10为1-10拼路线ID
|
|
|
|
+ lineSpelling: [
|
|
|
|
+ 0,
|
|
|
|
+ 110001,
|
|
|
|
+ 110002,
|
|
|
|
+ 110003,
|
|
|
|
+ 110004,
|
|
|
|
+ 110005,
|
|
|
|
+ 110006,
|
|
|
|
+ 110007,
|
|
|
|
+ 110008,
|
|
|
|
+ 110009,
|
|
|
|
+ 110010
|
|
|
|
+ ],
|
|
tableTitle: "销售钢材统计报表",
|
|
tableTitle: "销售钢材统计报表",
|
|
//所有省
|
|
//所有省
|
|
provinceList: [],
|
|
provinceList: [],
|
|
@@ -576,10 +587,6 @@ export default {
|
|
changeScreen() {
|
|
changeScreen() {
|
|
console.log(this.screen);
|
|
console.log(this.screen);
|
|
},
|
|
},
|
|
- filterChange(filters) {},
|
|
|
|
- filterTag(value, row, column) {
|
|
|
|
- return row.capacityNo == value;
|
|
|
|
- },
|
|
|
|
// 数组对象去重
|
|
// 数组对象去重
|
|
deWeight(arr) {
|
|
deWeight(arr) {
|
|
for (var i = 0; i < arr.length - 1; i++) {
|
|
for (var i = 0; i < arr.length - 1; i++) {
|
|
@@ -594,6 +601,7 @@ export default {
|
|
},
|
|
},
|
|
cellClik(row, column, cell, event) {
|
|
cellClik(row, column, cell, event) {
|
|
if (row.group != this.clickIndex) {
|
|
if (row.group != this.clickIndex) {
|
|
|
|
+ // this.getSteelReport();
|
|
this.tableData.forEach(item => {
|
|
this.tableData.forEach(item => {
|
|
if (item.group == this.clickIndex) {
|
|
if (item.group == this.clickIndex) {
|
|
this.$set(item, "isCapacityShow", 0);
|
|
this.$set(item, "isCapacityShow", 0);
|
|
@@ -629,6 +637,7 @@ export default {
|
|
handleSelectCarrier(row, index, item) {
|
|
handleSelectCarrier(row, index, item) {
|
|
this.carrierList.forEach(item => {
|
|
this.carrierList.forEach(item => {
|
|
if (item.carrierName == row.carrierName) {
|
|
if (item.carrierName == row.carrierName) {
|
|
|
|
+ row.newCarrierId = item.carrierId;
|
|
row.carrierId = item.carrierId;
|
|
row.carrierId = item.carrierId;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -707,6 +716,10 @@ export default {
|
|
this.$message.warning("请先注册车牌号或者选中弹出后再提交!");
|
|
this.$message.warning("请先注册车牌号或者选中弹出后再提交!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if (!isVehicleNumber(row.capacityNo)) {
|
|
|
|
+ this.$message.error("请输入正确格式的车牌号!");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (row.capacityIds != 0) {
|
|
if (row.capacityIds != 0) {
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
@@ -733,6 +746,45 @@ export default {
|
|
loading.close();
|
|
loading.close();
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
|
|
+ if (row.carrierIds == 0) {
|
|
|
|
+ this.$message.error("请先选择承运商!");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ let i = 0;
|
|
|
|
+ this.tableData.forEach(e => {
|
|
|
|
+ if (row.group == e.group) {
|
|
|
|
+ i++;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ row.lineId = this.lineSpelling[i];
|
|
|
|
+ row.driverTel = row.capacityTel;
|
|
|
|
+ row.capacityNumber = row.capacityNo;
|
|
|
|
+ let arr = [];
|
|
|
|
+ arr.push(row);
|
|
|
|
+ const loading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: "正在变更车牌号",
|
|
|
|
+ spinner: "el-icon-loading",
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
|
|
+ });
|
|
|
|
+ this.axios
|
|
|
|
+ .post("/api/v1/ams/dispatchSteelOrder", arr)
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == "200") {
|
|
|
|
+ this.$message.success("派车成功!");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("派车失败,请联系管理员");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.$message.error("派车失败,请联系管理员");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//修改司机电话号码
|
|
//修改司机电话号码
|
|
@@ -769,9 +821,9 @@ export default {
|
|
loading.close();
|
|
loading.close();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- //关闭金蝶分录
|
|
|
|
|
|
+ //关闭车辆金蝶分录
|
|
deleteEasEntryId(row) {
|
|
deleteEasEntryId(row) {
|
|
- this.$confirm(title, {
|
|
|
|
|
|
+ this.$confirm("确定关闭该车金蝶分录吗?", "提示", {
|
|
confirmButtonText: "是",
|
|
confirmButtonText: "是",
|
|
cancelButtonText: "否",
|
|
cancelButtonText: "否",
|
|
center: true,
|
|
center: true,
|
|
@@ -780,58 +832,96 @@ export default {
|
|
.then(() => {
|
|
.then(() => {
|
|
let map = row;
|
|
let map = row;
|
|
map.isCloseEas = Number(0);
|
|
map.isCloseEas = Number(0);
|
|
- map.saleOrderId = this.$route.params.saleOrderId;
|
|
|
|
|
|
+ const loading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: "正在关闭车辆",
|
|
|
|
+ spinner: "el-icon-loading",
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
|
|
+ });
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/ams/updateCarAddress", map)
|
|
.post("/api/v1/ams/updateCarAddress", map)
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
- this.$message.success("关闭成功");
|
|
|
|
- this.getOrderList();
|
|
|
|
|
|
+ this.$message.success("关闭车辆成功");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
} else {
|
|
} else {
|
|
- this.$message.error("关闭失败");
|
|
|
|
- this.getOrderList();
|
|
|
|
|
|
+ this.$message.error("关闭车辆失败");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
- this.$message.error("关闭失败");
|
|
|
|
- this.getOrderList();
|
|
|
|
|
|
+ this.$message.error("关闭车辆失败");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
});
|
|
});
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
- this.$message.info("取消删除");
|
|
|
|
|
|
+ this.$message.info("取消关闭");
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//修改承运商授权
|
|
//修改承运商授权
|
|
updateTruckCarrier(row) {
|
|
updateTruckCarrier(row) {
|
|
- if (row.carrierId == null) {
|
|
|
|
|
|
+ if (row.newCarrierId == null) {
|
|
this.$message.warning("请注册承运商或者选中弹出层之后再提交!");
|
|
this.$message.warning("请注册承运商或者选中弹出层之后再提交!");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- const loading = this.$loading({
|
|
|
|
- lock: true,
|
|
|
|
- text: "正在修改承运商授权",
|
|
|
|
- spinner: "el-icon-loading",
|
|
|
|
- background: "rgba(0, 0, 0, 0.7)"
|
|
|
|
- });
|
|
|
|
- this.axios
|
|
|
|
- .post("/api/v1/ams/updateTruckNoCarrier", row)
|
|
|
|
- .then(res => {
|
|
|
|
- if (res.data.code == "200") {
|
|
|
|
- this.$message.success("修改承运商授权成功");
|
|
|
|
- this.getSteelReport();
|
|
|
|
- loading.close();
|
|
|
|
- } else {
|
|
|
|
|
|
+ if (row.carrierIds != 0) {
|
|
|
|
+ const loading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: "正在修改承运商授权",
|
|
|
|
+ spinner: "el-icon-loading",
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
|
|
+ });
|
|
|
|
+ this.axios
|
|
|
|
+ .post("/api/v1/ams/updateTruckNoCarrier", row)
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == "200") {
|
|
|
|
+ this.$message.success("修改承运商授权成功");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("修改失败,请联系管理员!");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
this.$message.error("修改失败,请联系管理员!");
|
|
this.$message.error("修改失败,请联系管理员!");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
loading.close();
|
|
loading.close();
|
|
- }
|
|
|
|
- })
|
|
|
|
- .catch(() => {
|
|
|
|
- this.$message.error("修改失败,请联系管理员!");
|
|
|
|
- this.getSteelReport();
|
|
|
|
- loading.close();
|
|
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ //授权承运商
|
|
|
|
+ let arr = [];
|
|
|
|
+ arr.push(row);
|
|
|
|
+ const loading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: "正在授权承运商",
|
|
|
|
+ spinner: "el-icon-loading",
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
});
|
|
});
|
|
|
|
+ this.axios
|
|
|
|
+ .post("/api/v1/ams/dispatchToCarrier", arr)
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == "200") {
|
|
|
|
+ this.$message.success("授权承运商成功");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("授权失败,请联系管理员");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.$message.error("授权失败,请联系管理员");
|
|
|
|
+ this.getSteelReport();
|
|
|
|
+ loading.close();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
updateAddress(row) {
|
|
updateAddress(row) {
|
|
this.drawer = true;
|
|
this.drawer = true;
|
|
@@ -841,6 +931,8 @@ export default {
|
|
this.county = row.addressTown;
|
|
this.county = row.addressTown;
|
|
this.addressId = row.shipperAddressId;
|
|
this.addressId = row.shipperAddressId;
|
|
this.getAllProvince();
|
|
this.getAllProvince();
|
|
|
|
+ this.onchangeProvince();
|
|
|
|
+ this.onchangeCity();
|
|
},
|
|
},
|
|
//获取所有省数据
|
|
//获取所有省数据
|
|
getAllProvince() {
|
|
getAllProvince() {
|
|
@@ -919,6 +1011,7 @@ export default {
|
|
);
|
|
);
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ //修改收货地址
|
|
addAddressClick() {
|
|
addAddressClick() {
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
@@ -955,7 +1048,6 @@ export default {
|
|
},
|
|
},
|
|
//记录每一行的合并数
|
|
//记录每一行的合并数
|
|
getSpanArr(data) {
|
|
getSpanArr(data) {
|
|
- console.log("我执行");
|
|
|
|
//每次调用方法初始化
|
|
//每次调用方法初始化
|
|
this.spanArr = [];
|
|
this.spanArr = [];
|
|
for (var i = 0; i < data.length; i++) {
|
|
for (var i = 0; i < data.length; i++) {
|
|
@@ -1007,6 +1099,7 @@ export default {
|
|
arr.push(map);
|
|
arr.push(map);
|
|
let updateMap = {
|
|
let updateMap = {
|
|
orderId: row.orderId,
|
|
orderId: row.orderId,
|
|
|
|
+ saleOrderMaterialId: row.saleOrderMaterialId,
|
|
mapList: arr
|
|
mapList: arr
|
|
};
|
|
};
|
|
this.axios
|
|
this.axios
|
|
@@ -1028,6 +1121,7 @@ export default {
|
|
loading.close();
|
|
loading.close();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ //关闭单条分录
|
|
closeEasEntryId(row) {
|
|
closeEasEntryId(row) {
|
|
console.log(row);
|
|
console.log(row);
|
|
this.$prompt("确定关闭该条分录吗?", "警告", {
|
|
this.$prompt("确定关闭该条分录吗?", "警告", {
|
|
@@ -1049,7 +1143,8 @@ export default {
|
|
saleOrderMaterialId: row.saleOrderMaterialId,
|
|
saleOrderMaterialId: row.saleOrderMaterialId,
|
|
saleMaterialId: row.saleMaterialId,
|
|
saleMaterialId: row.saleMaterialId,
|
|
reason: value,
|
|
reason: value,
|
|
- number: row.saleOrderNo
|
|
|
|
|
|
+ number: row.saleOrderNo,
|
|
|
|
+ closeEntryId: row.closeEntryId
|
|
};
|
|
};
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/ams/closeSteelMaterialId", map)
|
|
.post("/api/v1/ams/closeSteelMaterialId", map)
|
|
@@ -1084,6 +1179,7 @@ export default {
|
|
let consigneeName = null;
|
|
let consigneeName = null;
|
|
let capacityNo = null;
|
|
let capacityNo = null;
|
|
let remark = null;
|
|
let remark = null;
|
|
|
|
+ let saler = null;
|
|
if (this.startTime && this.endTime) {
|
|
if (this.startTime && this.endTime) {
|
|
startTime = sjTime(this.startTime);
|
|
startTime = sjTime(this.startTime);
|
|
endTime = sjTime(this.endTime);
|
|
endTime = sjTime(this.endTime);
|
|
@@ -1091,6 +1187,9 @@ export default {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
carrierSsoId = getCookie("userId");
|
|
carrierSsoId = getCookie("userId");
|
|
}
|
|
}
|
|
|
|
+ if (getCookie("orgCode") == "xiaoshouyewuyuan") {
|
|
|
|
+ saler = getCookie("loginName");
|
|
|
|
+ }
|
|
if (this.screen == "下单客户") {
|
|
if (this.screen == "下单客户") {
|
|
consigneeName = this.input;
|
|
consigneeName = this.input;
|
|
} else if (this.screen == "承运商") {
|
|
} else if (this.screen == "承运商") {
|
|
@@ -1117,7 +1216,9 @@ export default {
|
|
"&carrierName=" +
|
|
"&carrierName=" +
|
|
carrierName +
|
|
carrierName +
|
|
"&capacityNo=" +
|
|
"&capacityNo=" +
|
|
- capacityNo
|
|
|
|
|
|
+ capacityNo +
|
|
|
|
+ "&saler=" +
|
|
|
|
+ saler
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData = res.data.data;
|
|
this.tableData = res.data.data;
|
|
@@ -1131,9 +1232,13 @@ export default {
|
|
//获取钢材统计报表
|
|
//获取钢材统计报表
|
|
getSteelReport() {
|
|
getSteelReport() {
|
|
let carrierSsoId = null;
|
|
let carrierSsoId = null;
|
|
|
|
+ let saler = null;
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
carrierSsoId = getCookie("userId");
|
|
carrierSsoId = getCookie("userId");
|
|
}
|
|
}
|
|
|
|
+ if (getCookie("orgCode") == "xiaoshouyewuyuan") {
|
|
|
|
+ saler = getCookie("loginName");
|
|
|
|
+ }
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
"/api/v1/tms/getSaleSteelReport?startTime=" +
|
|
"/api/v1/tms/getSaleSteelReport?startTime=" +
|
|
@@ -1142,6 +1247,8 @@ export default {
|
|
null +
|
|
null +
|
|
"&carrierSsoId=" +
|
|
"&carrierSsoId=" +
|
|
carrierSsoId +
|
|
carrierSsoId +
|
|
|
|
+ "&saler=" +
|
|
|
|
+ saler +
|
|
"&i=" +
|
|
"&i=" +
|
|
new Date()
|
|
new Date()
|
|
)
|
|
)
|