|
@@ -83,11 +83,11 @@
|
|
:span-method="objectSpanMethod"
|
|
:span-method="objectSpanMethod"
|
|
ref="tableRef"
|
|
ref="tableRef"
|
|
border
|
|
border
|
|
- stripe
|
|
|
|
style="width: 100%; margin-top: 20px"
|
|
style="width: 100%; margin-top: 20px"
|
|
@cell-click="cellClik"
|
|
@cell-click="cellClik"
|
|
|
|
+ @row-click="rowClick"
|
|
:row-style="{ height: '30px' }"
|
|
:row-style="{ height: '30px' }"
|
|
- :cell-style="{ fontWeight: '700' }"
|
|
|
|
|
|
+ :cell-style="{ fontWeight: '500' }"
|
|
:key="saleSteelKey"
|
|
:key="saleSteelKey"
|
|
id="salesLogisticsStat_saleSteelAllReport_table"
|
|
id="salesLogisticsStat_saleSteelAllReport_table"
|
|
individual-panel
|
|
individual-panel
|
|
@@ -98,7 +98,6 @@
|
|
width="50"
|
|
width="50"
|
|
label="序号"
|
|
label="序号"
|
|
align="center"
|
|
align="center"
|
|
- fixed="left"
|
|
|
|
:resizable="false"
|
|
:resizable="false"
|
|
>
|
|
>
|
|
<template slot-scope="scope">{{ scope.row.group + 1 }}</template>
|
|
<template slot-scope="scope">{{ scope.row.group + 1 }}</template>
|
|
@@ -106,26 +105,24 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="consigneeName"
|
|
prop="consigneeName"
|
|
label="下单客户"
|
|
label="下单客户"
|
|
- :width="flexColumnWidth('consigneeName', tableData, 'max')"
|
|
|
|
|
|
+ width="160px"
|
|
align="center"
|
|
align="center"
|
|
- fixed
|
|
|
|
|
|
+ show-overflow-tooltip
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="carrierName"
|
|
prop="carrierName"
|
|
label="承运商"
|
|
label="承运商"
|
|
align="center"
|
|
align="center"
|
|
- width="250px"
|
|
|
|
- fixed
|
|
|
|
|
|
+ width="120px"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-autocomplete
|
|
<el-autocomplete
|
|
- style="width: 120px"
|
|
|
|
|
|
+ style="width: 100px"
|
|
v-model="scope.row.carrierName"
|
|
v-model="scope.row.carrierName"
|
|
:fetch-suggestions="querySearchCarrier"
|
|
:fetch-suggestions="querySearchCarrier"
|
|
placeholder="请输入承运商"
|
|
placeholder="请输入承运商"
|
|
@select="handleSelectCarrier(scope.row, scope.$index)"
|
|
@select="handleSelectCarrier(scope.row, scope.$index)"
|
|
- :disabled="scope.row.isCarrierShow != 1"
|
|
|
|
>
|
|
>
|
|
</el-autocomplete>
|
|
</el-autocomplete>
|
|
<el-button
|
|
<el-button
|
|
@@ -141,8 +138,7 @@
|
|
column-key="capacityNo"
|
|
column-key="capacityNo"
|
|
label="车牌号"
|
|
label="车牌号"
|
|
align="center"
|
|
align="center"
|
|
- width="250px"
|
|
|
|
- fixed
|
|
|
|
|
|
+ width="150px"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-autocomplete
|
|
<el-autocomplete
|
|
@@ -151,7 +147,6 @@
|
|
:fetch-suggestions="querySearch"
|
|
:fetch-suggestions="querySearch"
|
|
placeholder="请输入车牌号"
|
|
placeholder="请输入车牌号"
|
|
@select="handleSelect(scope.row, scope.$index)"
|
|
@select="handleSelect(scope.row, scope.$index)"
|
|
- :disabled="scope.row.isCapacityShow != 1"
|
|
|
|
></el-autocomplete>
|
|
></el-autocomplete>
|
|
<el-button
|
|
<el-button
|
|
@click="updateCapacity(scope.row)"
|
|
@click="updateCapacity(scope.row)"
|
|
@@ -187,7 +182,6 @@
|
|
</button>
|
|
</button>
|
|
<input
|
|
<input
|
|
v-model="scope.row.materialNum"
|
|
v-model="scope.row.materialNum"
|
|
- disabled
|
|
|
|
style="
|
|
style="
|
|
width: 40px;
|
|
width: 40px;
|
|
height: 40px;
|
|
height: 40px;
|
|
@@ -214,7 +208,6 @@
|
|
style="width: 280px"
|
|
style="width: 280px"
|
|
v-model="scope.row.addressPlace"
|
|
v-model="scope.row.addressPlace"
|
|
placeholder="请输入收货地址"
|
|
placeholder="请输入收货地址"
|
|
- :disabled="scope.row.isAddressShow != 1"
|
|
|
|
></el-input>
|
|
></el-input>
|
|
<el-button
|
|
<el-button
|
|
@click="updateAddress(scope.row)"
|
|
@click="updateAddress(scope.row)"
|
|
@@ -242,13 +235,15 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="arrivalAddress"
|
|
prop="arrivalAddress"
|
|
label="抵达地址"
|
|
label="抵达地址"
|
|
- :width="flexColumnWidth('arrivalAddress', tableData, 'max')"
|
|
|
|
|
|
+ width="280px"
|
|
|
|
+ show-overflow-tooltip
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="receiptAddress"
|
|
prop="receiptAddress"
|
|
label="签收地址"
|
|
label="签收地址"
|
|
- :width="flexColumnWidth('receiptAddress', tableData, 'max')"
|
|
|
|
|
|
+ width="280px"
|
|
|
|
+ show-overflow-tooltip
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -269,7 +264,6 @@
|
|
style="width: 120px"
|
|
style="width: 120px"
|
|
v-model="scope.row.capacityTel"
|
|
v-model="scope.row.capacityTel"
|
|
placeholder="请输入电话号码"
|
|
placeholder="请输入电话号码"
|
|
- :disabled="scope.row.isTelShow != 1"
|
|
|
|
></el-input>
|
|
></el-input>
|
|
<el-button
|
|
<el-button
|
|
@click="updateDriverTel(scope.row)"
|
|
@click="updateDriverTel(scope.row)"
|
|
@@ -306,12 +300,15 @@
|
|
width="100px"
|
|
width="100px"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column prop="closeEntryId" label="金蝶分录ID" width="100px">
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- label="操作"
|
|
|
|
|
|
+ label="分录操作"
|
|
prop="singleOp"
|
|
prop="singleOp"
|
|
fixed="right"
|
|
fixed="right"
|
|
width="120px"
|
|
width="120px"
|
|
align="center"
|
|
align="center"
|
|
|
|
+ v-if="operateShow == 1"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@@ -328,14 +325,22 @@
|
|
v-if="scope.row.deletedStatus != null"
|
|
v-if="scope.row.deletedStatus != null"
|
|
>反关闭分录</el-button
|
|
>反关闭分录</el-button
|
|
>
|
|
>
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ size="small"
|
|
|
|
+ @click="adverseCloseSaleMaterial(scope.row)"
|
|
|
|
+ v-if="scope.row.deletedStatus != null"
|
|
|
|
+ >反关闭分录</el-button
|
|
|
|
+ >
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="someSignle"
|
|
prop="someSignle"
|
|
- label="操作"
|
|
|
|
|
|
+ label="整车操作"
|
|
fixed="right"
|
|
fixed="right"
|
|
- width="120px"
|
|
|
|
|
|
+ width="80px"
|
|
align="center"
|
|
align="center"
|
|
|
|
+ v-if="operateShow == 1"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@@ -344,8 +349,8 @@
|
|
@click="deleteEasEntryId(scope.row)"
|
|
@click="deleteEasEntryId(scope.row)"
|
|
v-if="
|
|
v-if="
|
|
scope.row.carStatus == 4 ||
|
|
scope.row.carStatus == 4 ||
|
|
- scope.row.carStatus == 5 ||
|
|
|
|
- scope.row.carStatus == null
|
|
|
|
|
|
+ scope.row.carStatus == 5 ||
|
|
|
|
+ scope.row.carStatus == null
|
|
"
|
|
"
|
|
>关闭车辆</el-button
|
|
>关闭车辆</el-button
|
|
>
|
|
>
|
|
@@ -445,16 +450,16 @@ export default {
|
|
options: [
|
|
options: [
|
|
{
|
|
{
|
|
value: "下单客户",
|
|
value: "下单客户",
|
|
- lable: "下单客户",
|
|
|
|
|
|
+ lable: "下单客户"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "承运商",
|
|
value: "承运商",
|
|
- lable: "承运商",
|
|
|
|
|
|
+ lable: "承运商"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
value: "车牌号",
|
|
value: "车牌号",
|
|
- lable: "车牌号",
|
|
|
|
- },
|
|
|
|
|
|
+ lable: "车牌号"
|
|
|
|
+ }
|
|
],
|
|
],
|
|
startTime: null,
|
|
startTime: null,
|
|
endTime: null,
|
|
endTime: null,
|
|
@@ -470,8 +475,26 @@ export default {
|
|
pos: 0,
|
|
pos: 0,
|
|
isCellClick: 0,
|
|
isCellClick: 0,
|
|
columnIndexs: [
|
|
columnIndexs: [
|
|
- 0, 1, 2, 3, 7, 8, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
|
|
|
|
- 29,
|
|
|
|
|
|
+ 0,
|
|
|
|
+ 1,
|
|
|
|
+ 2,
|
|
|
|
+ 3,
|
|
|
|
+ 7,
|
|
|
|
+ 8,
|
|
|
|
+ 14,
|
|
|
|
+ 16,
|
|
|
|
+ 17,
|
|
|
|
+ 18,
|
|
|
|
+ 19,
|
|
|
|
+ 20,
|
|
|
|
+ 21,
|
|
|
|
+ 22,
|
|
|
|
+ 23,
|
|
|
|
+ 24,
|
|
|
|
+ 25,
|
|
|
|
+ 26,
|
|
|
|
+ 27,
|
|
|
|
+ 29
|
|
],
|
|
],
|
|
mergeList: [
|
|
mergeList: [
|
|
"someSignle",
|
|
"someSignle",
|
|
@@ -494,11 +517,38 @@ export default {
|
|
"consigneeTel",
|
|
"consigneeTel",
|
|
"isSelfMention"
|
|
"isSelfMention"
|
|
],
|
|
],
|
|
|
|
+ mergeList: [
|
|
|
|
+ "序号",
|
|
|
|
+ "整车操作",
|
|
|
|
+ "销售订单状态",
|
|
|
|
+ "销售订单号",
|
|
|
|
+ "发货单位",
|
|
|
|
+ "司机电话",
|
|
|
|
+ "运输订单号",
|
|
|
|
+ "签收地址",
|
|
|
|
+ "抵达地址",
|
|
|
|
+ "出厂时间",
|
|
|
|
+ "进厂时间",
|
|
|
|
+ "运单状态",
|
|
|
|
+ "车牌号",
|
|
|
|
+ "承运商",
|
|
|
|
+ "下单客户",
|
|
|
|
+ "收货地址"
|
|
|
|
+ ],
|
|
//钢材多拼车辆线路ID
|
|
//钢材多拼车辆线路ID
|
|
//索引从1-10为1-10拼路线ID
|
|
//索引从1-10为1-10拼路线ID
|
|
lineSpelling: [
|
|
lineSpelling: [
|
|
- 0, 110001, 110002, 110003, 110004, 110005, 110006, 110007, 110008,
|
|
|
|
- 110009, 110010,
|
|
|
|
|
|
+ 0,
|
|
|
|
+ 110001,
|
|
|
|
+ 110002,
|
|
|
|
+ 110003,
|
|
|
|
+ 110004,
|
|
|
|
+ 110005,
|
|
|
|
+ 110006,
|
|
|
|
+ 110007,
|
|
|
|
+ 110008,
|
|
|
|
+ 110009,
|
|
|
|
+ 110010
|
|
],
|
|
],
|
|
tableTitle: "销售钢材统计报表",
|
|
tableTitle: "销售钢材统计报表",
|
|
//所有省
|
|
//所有省
|
|
@@ -524,7 +574,8 @@ export default {
|
|
//省市县Id
|
|
//省市县Id
|
|
addressId: null,
|
|
addressId: null,
|
|
addressRow: {},
|
|
addressRow: {},
|
|
- saleSteelKey:false
|
|
|
|
|
|
+ operateShow: 0,
|
|
|
|
+ saleSteelKey: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {},
|
|
created() {},
|
|
@@ -532,20 +583,27 @@ export default {
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ rowClick() {
|
|
|
|
+ if (this.operateShow == 1) {
|
|
|
|
+ this.operateShow = 0;
|
|
|
|
+ } else {
|
|
|
|
+ this.operateShow = 1;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//反关闭整条分录
|
|
//反关闭整条分录
|
|
adverseCloseSaleMaterial(row) {
|
|
adverseCloseSaleMaterial(row) {
|
|
console.log(row.saleMaterialId);
|
|
console.log(row.saleMaterialId);
|
|
this.$confirm("确定反关闭该条分录?", "提示", {
|
|
this.$confirm("确定反关闭该条分录?", "提示", {
|
|
cancelButtonText: "确定",
|
|
cancelButtonText: "确定",
|
|
confirmButtonText: "取消",
|
|
confirmButtonText: "取消",
|
|
- center: true,
|
|
|
|
|
|
+ center: true
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
"/api/v1/ams/adverseCloseSaleMaterial?saleMaterialId=" +
|
|
"/api/v1/ams/adverseCloseSaleMaterial?saleMaterialId=" +
|
|
row.saleMaterialId
|
|
row.saleMaterialId
|
|
)
|
|
)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.$message.success("反关闭成功");
|
|
this.$message.success("反关闭成功");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
@@ -567,35 +625,35 @@ export default {
|
|
lock: true,
|
|
lock: true,
|
|
text: "正在导出Excel",
|
|
text: "正在导出Excel",
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
});
|
|
});
|
|
var title = this.tableTitle;
|
|
var title = this.tableTitle;
|
|
let tHeader = [];
|
|
let tHeader = [];
|
|
let filterVal = [];
|
|
let filterVal = [];
|
|
this.$refs.tableRef.columns.forEach(item => {
|
|
this.$refs.tableRef.columns.forEach(item => {
|
|
- if (item.label != undefined && item.property != undefined) {
|
|
|
|
- arr.push(item.property);
|
|
|
|
- }
|
|
|
|
|
|
+ if (item.label != undefined && item.property != undefined) {
|
|
|
|
+ arr.push(item.property);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
|
|
|
|
- for (var k = 0; k < arr.length; k++){
|
|
|
|
|
|
+ for (var k = 0; k < arr.length; k++) {
|
|
var prop = arr[k];
|
|
var prop = arr[k];
|
|
this.$refs.tableRef.$children.forEach(item => {
|
|
this.$refs.tableRef.$children.forEach(item => {
|
|
- console.log('itme.prop',item.prop,prop);
|
|
|
|
- if(item.prop === prop){
|
|
|
|
- tHeader.push(item.label);
|
|
|
|
- filterVal.push(item.prop);
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
|
|
+ console.log("itme.prop", item.prop, prop);
|
|
|
|
+ if (item.prop === prop) {
|
|
|
|
+ tHeader.push(item.label);
|
|
|
|
+ filterVal.push(item.prop);
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
this.downloadLoading = true;
|
|
this.downloadLoading = true;
|
|
require.ensure([], () => {
|
|
require.ensure([], () => {
|
|
const {
|
|
const {
|
|
- export_json_to_excel,
|
|
|
|
|
|
+ export_json_to_excel
|
|
} = require("@/assets/excel/Export2Excel.js"); //这里必须使用绝对路径,使用@/+存放export2Excel的路径
|
|
} = require("@/assets/excel/Export2Excel.js"); //这里必须使用绝对路径,使用@/+存放export2Excel的路径
|
|
- let data = this.tableData.map((v) => filterVal.map((j) => v[j])); //3.formatJson格式转换
|
|
|
|
|
|
+ let data = this.tableData.map(v => filterVal.map(j => v[j])); //3.formatJson格式转换
|
|
export_json_to_excel(tHeader, data, title); // (title)导出的表格名称
|
|
export_json_to_excel(tHeader, data, title); // (title)导出的表格名称
|
|
});
|
|
});
|
|
loading.close();
|
|
loading.close();
|
|
@@ -606,7 +664,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.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);
|
|
this.$set(item, "isCarrierShow", 0);
|
|
this.$set(item, "isCarrierShow", 0);
|
|
@@ -639,7 +697,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.newCarrierId = item.carrierId;
|
|
row.carrierId = item.carrierId;
|
|
row.carrierId = item.carrierId;
|
|
@@ -651,7 +709,7 @@ export default {
|
|
if (queryString.length > 1) {
|
|
if (queryString.length > 1) {
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/uc/getCarrierMesByLike?index=" + queryString)
|
|
.post("/api/v1/uc/getCarrierMesByLike?index=" + queryString)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.carrierList = [];
|
|
this.carrierList = [];
|
|
if (res.data.data.length == 0) {
|
|
if (res.data.data.length == 0) {
|
|
@@ -669,7 +727,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
createFilterCarrier(queryString) {
|
|
createFilterCarrier(queryString) {
|
|
- return (restaurants) => {
|
|
|
|
|
|
+ return restaurants => {
|
|
return (
|
|
return (
|
|
restaurants.value1.toLowerCase().indexOf(queryString.toLowerCase()) >
|
|
restaurants.value1.toLowerCase().indexOf(queryString.toLowerCase()) >
|
|
-1
|
|
-1
|
|
@@ -681,7 +739,7 @@ export default {
|
|
if (queryString.length > 3) {
|
|
if (queryString.length > 3) {
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/uc/getCapacityByLike?index=" + queryString)
|
|
.post("/api/v1/uc/getCapacityByLike?index=" + queryString)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
this.capacityList = [];
|
|
this.capacityList = [];
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
if (res.data.data.length == 0) {
|
|
if (res.data.data.length == 0) {
|
|
@@ -700,7 +758,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
createFilter(queryString) {
|
|
createFilter(queryString) {
|
|
- return (restaurants) => {
|
|
|
|
|
|
+ return restaurants => {
|
|
return (
|
|
return (
|
|
restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) >
|
|
restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) >
|
|
-1
|
|
-1
|
|
@@ -709,13 +767,14 @@ export default {
|
|
},
|
|
},
|
|
//车牌号弹出层
|
|
//车牌号弹出层
|
|
handleSelect(row, index) {
|
|
handleSelect(row, index) {
|
|
- this.capacityList.forEach((item) => {
|
|
|
|
|
|
+ this.capacityList.forEach(item => {
|
|
if (item.capacityNumber === row.capacityNo) {
|
|
if (item.capacityNumber === row.capacityNo) {
|
|
row.newsCapacityId = item.capacityId;
|
|
row.newsCapacityId = item.capacityId;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
updateCapacity(row) {
|
|
updateCapacity(row) {
|
|
|
|
+ row.capacityId = row.newsCapacityId;
|
|
if (row.newsCapacityId == null) {
|
|
if (row.newsCapacityId == null) {
|
|
this.$message.warning("请先注册车牌号或者选中弹出后再提交!");
|
|
this.$message.warning("请先注册车牌号或者选中弹出后再提交!");
|
|
return;
|
|
return;
|
|
@@ -729,11 +788,11 @@ export default {
|
|
lock: true,
|
|
lock: true,
|
|
text: "正在变更车牌号",
|
|
text: "正在变更车牌号",
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
});
|
|
});
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/ams/updateCapacityNumberInFactory", row)
|
|
.post("/api/v1/ams/updateCapacityNumberInFactory", row)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.$message.success("变更车牌号成功!");
|
|
this.$message.success("变更车牌号成功!");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
@@ -755,7 +814,7 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
let i = 0;
|
|
let i = 0;
|
|
- this.tableData.forEach((e) => {
|
|
|
|
|
|
+ this.tableData.forEach(e => {
|
|
if (row.group == e.group) {
|
|
if (row.group == e.group) {
|
|
i++;
|
|
i++;
|
|
}
|
|
}
|
|
@@ -769,11 +828,11 @@ export default {
|
|
lock: true,
|
|
lock: true,
|
|
text: "正在变更车牌号",
|
|
text: "正在变更车牌号",
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
});
|
|
});
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/ams/dispatchSteelOrder", arr)
|
|
.post("/api/v1/ams/dispatchSteelOrder", arr)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.$message.success("派车成功!");
|
|
this.$message.success("派车成功!");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
@@ -797,7 +856,7 @@ export default {
|
|
lock: true,
|
|
lock: true,
|
|
text: "修改电话号码中",
|
|
text: "修改电话号码中",
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
});
|
|
});
|
|
if (row.capacityTel == null || row.capacityTel == "") {
|
|
if (row.capacityTel == null || row.capacityTel == "") {
|
|
this.$message.error("电话号码不能为空");
|
|
this.$message.error("电话号码不能为空");
|
|
@@ -806,9 +865,9 @@ export default {
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/uc/updateDriverTel", {
|
|
.post("/api/v1/uc/updateDriverTel", {
|
|
orderId: parseInt(row.orderId),
|
|
orderId: parseInt(row.orderId),
|
|
- driverTel: row.capacityTel,
|
|
|
|
|
|
+ driverTel: row.capacityTel
|
|
})
|
|
})
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.$message.success("修改成功");
|
|
this.$message.success("修改成功");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
@@ -831,7 +890,7 @@ export default {
|
|
confirmButtonText: "是",
|
|
confirmButtonText: "是",
|
|
cancelButtonText: "否",
|
|
cancelButtonText: "否",
|
|
center: true,
|
|
center: true,
|
|
- type: "warning",
|
|
|
|
|
|
+ type: "warning"
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
let map = row;
|
|
let map = row;
|
|
@@ -840,11 +899,11 @@ export default {
|
|
lock: true,
|
|
lock: true,
|
|
text: "正在关闭车辆",
|
|
text: "正在关闭车辆",
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
|
+ 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.$message.success("关闭车辆成功");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
@@ -877,11 +936,11 @@ export default {
|
|
lock: true,
|
|
lock: true,
|
|
text: "正在修改承运商授权",
|
|
text: "正在修改承运商授权",
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
});
|
|
});
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/ams/updateTruckNoCarrier", row)
|
|
.post("/api/v1/ams/updateTruckNoCarrier", row)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.$message.success("修改承运商授权成功");
|
|
this.$message.success("修改承运商授权成功");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
@@ -905,11 +964,11 @@ export default {
|
|
lock: true,
|
|
lock: true,
|
|
text: "正在授权承运商",
|
|
text: "正在授权承运商",
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
});
|
|
});
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/ams/dispatchToCarrier", arr)
|
|
.post("/api/v1/ams/dispatchToCarrier", arr)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.$message.success("授权承运商成功");
|
|
this.$message.success("授权承运商成功");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
@@ -940,7 +999,7 @@ export default {
|
|
},
|
|
},
|
|
//获取所有省数据
|
|
//获取所有省数据
|
|
getAllProvince() {
|
|
getAllProvince() {
|
|
- this.axios.post("/api/v1/uc/getAllProvince").then((res) => {
|
|
|
|
|
|
+ this.axios.post("/api/v1/uc/getAllProvince").then(res => {
|
|
this.provinceList = res.data.data;
|
|
this.provinceList = res.data.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -953,7 +1012,7 @@ export default {
|
|
"&i=" +
|
|
"&i=" +
|
|
new Date()
|
|
new Date()
|
|
)
|
|
)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
this.cityList = res.data.data;
|
|
this.cityList = res.data.data;
|
|
// this.city = "";
|
|
// this.city = "";
|
|
// this.county = "";
|
|
// this.county = "";
|
|
@@ -968,7 +1027,7 @@ export default {
|
|
"&i=" +
|
|
"&i=" +
|
|
new Date()
|
|
new Date()
|
|
)
|
|
)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
this.countyList = res.data.data;
|
|
this.countyList = res.data.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -977,13 +1036,11 @@ export default {
|
|
let mapValue = {
|
|
let mapValue = {
|
|
addressProvince: this.province,
|
|
addressProvince: this.province,
|
|
addressDistrict: this.city,
|
|
addressDistrict: this.city,
|
|
- addressTown: this.county,
|
|
|
|
|
|
+ addressTown: this.county
|
|
};
|
|
};
|
|
- this.axios
|
|
|
|
- .post("/api/v1/uc/getPlaceByAllAddress", mapValue)
|
|
|
|
- .then((res) => {
|
|
|
|
- this.addressId = res.data.data[0].addressId;
|
|
|
|
- });
|
|
|
|
|
|
+ this.axios.post("/api/v1/uc/getPlaceByAllAddress", mapValue).then(res => {
|
|
|
|
+ this.addressId = res.data.data[0].addressId;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
//收货地址弹出层
|
|
//收货地址弹出层
|
|
handleSelect1(item) {
|
|
handleSelect1(item) {
|
|
@@ -998,7 +1055,7 @@ export default {
|
|
"&index=" +
|
|
"&index=" +
|
|
queryString
|
|
queryString
|
|
)
|
|
)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
var restaurants = res.data.data;
|
|
var restaurants = res.data.data;
|
|
var results = queryString
|
|
var results = queryString
|
|
@@ -1010,7 +1067,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
createFilter1(queryString) {
|
|
createFilter1(queryString) {
|
|
- return (restaurants) => {
|
|
|
|
|
|
+ return restaurants => {
|
|
return (
|
|
return (
|
|
restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) >
|
|
restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) >
|
|
-1
|
|
-1
|
|
@@ -1023,7 +1080,7 @@ export default {
|
|
lock: true,
|
|
lock: true,
|
|
text: "正在修改收货地址",
|
|
text: "正在修改收货地址",
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
});
|
|
});
|
|
let map = this.addressRow;
|
|
let map = this.addressRow;
|
|
map.isCloseEas = Number(1);
|
|
map.isCloseEas = Number(1);
|
|
@@ -1032,7 +1089,7 @@ export default {
|
|
map.shipperAddressId = this.addressId;
|
|
map.shipperAddressId = this.addressId;
|
|
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.$message.success("修改收货地址成功!");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
@@ -1074,7 +1131,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.totalCapacity = data[data.length - 1].group + 1;
|
|
this.totalCapacity = data[data.length - 1].group + 1;
|
|
- this.totalNumber = data.reduce(function (prev, item) {
|
|
|
|
|
|
+ this.totalNumber = data.reduce(function(prev, item) {
|
|
return prev + item.materialNum;
|
|
return prev + item.materialNum;
|
|
}, 0);
|
|
}, 0);
|
|
}
|
|
}
|
|
@@ -1085,7 +1142,7 @@ export default {
|
|
const _col = _row > 0 ? 1 : 0;
|
|
const _col = _row > 0 ? 1 : 0;
|
|
return {
|
|
return {
|
|
rowspan: _row,
|
|
rowspan: _row,
|
|
- colspan: _col,
|
|
|
|
|
|
+ colspan: _col
|
|
};
|
|
};
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1095,11 +1152,11 @@ export default {
|
|
lock: true,
|
|
lock: true,
|
|
text: "修改物资件数中",
|
|
text: "修改物资件数中",
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
});
|
|
});
|
|
let map = {
|
|
let map = {
|
|
materialId: row.materialId,
|
|
materialId: row.materialId,
|
|
- materialNum: row.materialNum,
|
|
|
|
|
|
+ materialNum: row.materialNum
|
|
};
|
|
};
|
|
let arr = [];
|
|
let arr = [];
|
|
arr.push(map);
|
|
arr.push(map);
|
|
@@ -1107,11 +1164,11 @@ export default {
|
|
orderId: row.orderId,
|
|
orderId: row.orderId,
|
|
saleOrderId: row.saleOrderId,
|
|
saleOrderId: row.saleOrderId,
|
|
saleOrderMaterialId: row.saleOrderMaterialId,
|
|
saleOrderMaterialId: row.saleOrderMaterialId,
|
|
- mapList: arr,
|
|
|
|
|
|
+ mapList: arr
|
|
};
|
|
};
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/oms/updateMaterialMes", updateMap)
|
|
.post("/api/v1/oms/updateMaterialMes", updateMap)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.$message.success("修改物资数量成功");
|
|
this.$message.success("修改物资数量成功");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
@@ -1135,7 +1192,7 @@ export default {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
center: true,
|
|
center: true,
|
|
- inputPlaceholder: "请输入关闭理由",
|
|
|
|
|
|
+ inputPlaceholder: "请输入关闭理由"
|
|
})
|
|
})
|
|
.then(({ value }) => {
|
|
.then(({ value }) => {
|
|
if (value != null || value != "") {
|
|
if (value != null || value != "") {
|
|
@@ -1143,7 +1200,7 @@ export default {
|
|
lock: true,
|
|
lock: true,
|
|
text: "正在关闭该条分录",
|
|
text: "正在关闭该条分录",
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
- background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
});
|
|
});
|
|
let map = {
|
|
let map = {
|
|
orderId: row.orderId,
|
|
orderId: row.orderId,
|
|
@@ -1151,11 +1208,11 @@ export default {
|
|
saleMaterialId: row.saleMaterialId,
|
|
saleMaterialId: row.saleMaterialId,
|
|
reason: value,
|
|
reason: value,
|
|
number: row.saleOrderNo,
|
|
number: row.saleOrderNo,
|
|
- closeEntryId: row.closeEntryId,
|
|
|
|
|
|
+ closeEntryId: row.closeEntryId
|
|
};
|
|
};
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/ams/closeSteelMaterialId", map)
|
|
.post("/api/v1/ams/closeSteelMaterialId", map)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.$message.success("关闭成功");
|
|
this.$message.success("关闭成功");
|
|
this.getSteelReport();
|
|
this.getSteelReport();
|
|
@@ -1227,8 +1284,9 @@ export default {
|
|
"&saler=" +
|
|
"&saler=" +
|
|
saler
|
|
saler
|
|
)
|
|
)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
this.tableData = res.data.data;
|
|
this.tableData = res.data.data;
|
|
|
|
+ this.operateShow = 0;
|
|
this.getSpanArr(res.data.data);
|
|
this.getSpanArr(res.data.data);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -1238,8 +1296,33 @@ export default {
|
|
},
|
|
},
|
|
//获取钢材统计报表
|
|
//获取钢材统计报表
|
|
getSteelReport() {
|
|
getSteelReport() {
|
|
|
|
+ let startTime = null;
|
|
|
|
+ let endTime = null;
|
|
let carrierSsoId = null;
|
|
let carrierSsoId = null;
|
|
|
|
+ let carrierName = null;
|
|
|
|
+ let consigneeName = null;
|
|
|
|
+ let capacityNo = null;
|
|
|
|
+ let remark = null;
|
|
let saler = null;
|
|
let saler = null;
|
|
|
|
+ if (this.startTime && this.endTime) {
|
|
|
|
+ startTime = sjTime(this.startTime);
|
|
|
|
+ endTime = sjTime(this.endTime);
|
|
|
|
+ }
|
|
|
|
+ if (getCookie("orgCode") == "chengyunshang") {
|
|
|
|
+ carrierSsoId = getCookie("userId");
|
|
|
|
+ }
|
|
|
|
+ if (getCookie("orgCode") == "xiaoshouyewuyuan") {
|
|
|
|
+ saler = getCookie("loginName");
|
|
|
|
+ }
|
|
|
|
+ if (this.screen == "下单客户") {
|
|
|
|
+ consigneeName = this.input;
|
|
|
|
+ } else if (this.screen == "承运商") {
|
|
|
|
+ carrierName = this.input;
|
|
|
|
+ } else if (this.screen == "车牌号") {
|
|
|
|
+ capacityNo = this.input;
|
|
|
|
+ } else {
|
|
|
|
+ remark = this.input;
|
|
|
|
+ }
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
carrierSsoId = getCookie("userId");
|
|
carrierSsoId = getCookie("userId");
|
|
}
|
|
}
|
|
@@ -1257,11 +1340,20 @@ export default {
|
|
"&saler=" +
|
|
"&saler=" +
|
|
saler +
|
|
saler +
|
|
"&i=" +
|
|
"&i=" +
|
|
- new Date()
|
|
|
|
|
|
+ new Date() +
|
|
|
|
+ "&remark=" +
|
|
|
|
+ remark +
|
|
|
|
+ "&consigneeName=" +
|
|
|
|
+ consigneeName +
|
|
|
|
+ "&carrierName=" +
|
|
|
|
+ carrierName +
|
|
|
|
+ "&capacityNo=" +
|
|
|
|
+ capacityNo
|
|
)
|
|
)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(res => {
|
|
this.tableData = res.data.data;
|
|
this.tableData = res.data.data;
|
|
this.getSpanArr(res.data.data);
|
|
this.getSpanArr(res.data.data);
|
|
|
|
+ this.operateShow = 0;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//控制列自动撑开
|
|
//控制列自动撑开
|
|
@@ -1335,9 +1427,9 @@ export default {
|
|
var that = this;
|
|
var that = this;
|
|
that.$nextTick(() => {
|
|
that.$nextTick(() => {
|
|
that.saleSteelKey = !that.saleSteelKey;
|
|
that.saleSteelKey = !that.saleSteelKey;
|
|
- });
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -1350,6 +1442,11 @@ export default {
|
|
.table {
|
|
.table {
|
|
margin-left: 20px;
|
|
margin-left: 20px;
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
|
|
+ ::-webkit-scrollbar {
|
|
|
|
+ // width: 20px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ background-color: transparent;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.address {
|
|
.address {
|
|
.button-box {
|
|
.button-box {
|