|
@@ -262,13 +262,13 @@ export default {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
selectionType: "select",
|
|
selectionType: "select",
|
|
comparison: "saleNumber",
|
|
comparison: "saleNumber",
|
|
- columnIndexs: [0,1,2,7,8,9, 10, 11, 12, 13, 14, 15, 16, 17]
|
|
|
|
|
|
+ columnIndexs: [0, 1, 2, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
|
|
},
|
|
},
|
|
option2: {
|
|
option2: {
|
|
// 表格请求数据的地址
|
|
// 表格请求数据的地址
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
comparison: "saleNumber",
|
|
comparison: "saleNumber",
|
|
- columnIndexs: [0,1,6,7,8, 9, 10, 11, 12, 13, 14, 15, 16]
|
|
|
|
|
|
+ columnIndexs: [0, 1, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
|
|
},
|
|
},
|
|
option4: {
|
|
option4: {
|
|
// 表格请求数据的地址
|
|
// 表格请求数据的地址
|
|
@@ -478,7 +478,6 @@ export default {
|
|
var workbook = null;
|
|
var workbook = null;
|
|
//设置读取操作
|
|
//设置读取操作
|
|
reader.onload = function(e) {
|
|
reader.onload = function(e) {
|
|
- console.log(e);
|
|
|
|
data = e.target.result;
|
|
data = e.target.result;
|
|
workbook = XLSX.read(data, {
|
|
workbook = XLSX.read(data, {
|
|
type: "binary"
|
|
type: "binary"
|
|
@@ -565,7 +564,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (e1.includes("车序号")) {
|
|
if (e1.includes("车序号")) {
|
|
- if (isNumber(e[e1])) {
|
|
|
|
|
|
+ if (typeof e[e1] != "undefined" && isNumber(e[e1])) {
|
|
map.truckNo = e[e1];
|
|
map.truckNo = e[e1];
|
|
} else {
|
|
} else {
|
|
throw new Error(
|
|
throw new Error(
|
|
@@ -629,7 +628,15 @@ export default {
|
|
if (typeof map.isSelfMention === "undefined") {
|
|
if (typeof map.isSelfMention === "undefined") {
|
|
map.isSelfMention = "否";
|
|
map.isSelfMention = "否";
|
|
}
|
|
}
|
|
- if (map.saleRemark && map.receiveName && map.materialName) {
|
|
|
|
|
|
+ if (
|
|
|
|
+ map.saleRemark &&
|
|
|
|
+ map.receiveName &&
|
|
|
|
+ map.materialName &&
|
|
|
|
+ map.truckNo &&
|
|
|
|
+ map.province &&
|
|
|
|
+ map.district &&
|
|
|
|
+ map.saleArea
|
|
|
|
+ ) {
|
|
that.tableData.push(map);
|
|
that.tableData.push(map);
|
|
}
|
|
}
|
|
} catch (e) {
|
|
} catch (e) {
|
|
@@ -884,6 +891,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
deleteSaleOrder(row) {
|
|
deleteSaleOrder(row) {
|
|
|
|
+ console.log(row);
|
|
this.$prompt("此操作将关闭订单且下面的待运输订单,是否继续?", "提示", {
|
|
this.$prompt("此操作将关闭订单且下面的待运输订单,是否继续?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
@@ -899,7 +907,9 @@ export default {
|
|
reason: value
|
|
reason: value
|
|
};
|
|
};
|
|
this.axios
|
|
this.axios
|
|
- .post("/api/v1/ams/deleteSaleOrderSame", mapValue)
|
|
|
|
|
|
+ .post(
|
|
|
|
+ "/api/v1/ams/deleteSaleOrderById?saleOrderId=" + row.saleOrderId
|
|
|
|
+ )
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.$message.success("关闭成功");
|
|
this.$message.success("关闭成功");
|