|
@@ -27,107 +27,106 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { getCookie } from "@/utils/util.js";
|
|
+import { getCookie } from '@/utils/util.js'
|
|
export default {
|
|
export default {
|
|
- name: "saleOrder",
|
|
+ name: 'saleOrder',
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- activeName: "four",
|
|
+ activeName: 'four',
|
|
drawer: false,
|
|
drawer: false,
|
|
- input: "",
|
|
+ input: '',
|
|
- index: "",
|
|
+ index: '',
|
|
carrierId: null,
|
|
carrierId: null,
|
|
carrierName: null,
|
|
carrierName: null,
|
|
option4: {
|
|
option4: {
|
|
// 表格请求数据的地址
|
|
// 表格请求数据的地址
|
|
- requestUrl: "",
|
|
+ requestUrl: '',
|
|
- comparison: "saleNumber",
|
|
+ comparison: 'saleNumber',
|
|
columnIndexs: [0, 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 15, 16]
|
|
columnIndexs: [0, 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 15, 16]
|
|
},
|
|
},
|
|
mapList: [],
|
|
mapList: [],
|
|
mapItemList: [],
|
|
mapItemList: [],
|
|
//(销售公司已审批)
|
|
//(销售公司已审批)
|
|
tableData: []
|
|
tableData: []
|
|
- };
|
|
+ }
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.initUrl();
|
|
+ this.initUrl()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
initUrl() {
|
|
initUrl() {
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
this.option4.requestUrl =
|
|
this.option4.requestUrl =
|
|
- "/api/v1/ams/getSaleOrderListToCarrier?apiId=467&carrierSsoId=" +
|
|
+ '/api/v1/ams/getSaleOrderListToCarrier?apiId=467&carrierSsoId=' +
|
|
- getCookie("userId");
|
|
+ getCookie('userId')
|
|
} else {
|
|
} else {
|
|
this.option4.requestUrl =
|
|
this.option4.requestUrl =
|
|
- "/api/v1/ams/getSaleOrderListToCarrier?apiId=467&carrierSsoId=" +
|
|
+ '/api/v1/ams/getSaleOrderListToCarrier?apiId=467&carrierSsoId=' + null
|
|
- null;
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
refresh() {
|
|
refresh() {
|
|
- this.$router.go(0);
|
|
+ this.$router.go(0)
|
|
},
|
|
},
|
|
handleClick(tab, event) {
|
|
handleClick(tab, event) {
|
|
- console.log(tab, event);
|
|
+ console.log(tab, event)
|
|
},
|
|
},
|
|
onclick() {
|
|
onclick() {
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
- if (this.activeName == "four") {
|
|
+ if (this.activeName == 'four') {
|
|
this.option4.requestUrl =
|
|
this.option4.requestUrl =
|
|
- "/api/v1/ams/getSaleOrderListToCarrier?apiId=467&carrierSsoId=" +
|
|
+ '/api/v1/ams/getSaleOrderListToCarrier?apiId=467&carrierSsoId=' +
|
|
- getCookie("userId") +
|
|
+ getCookie('userId') +
|
|
- "&con=" +
|
|
+ '&con=' +
|
|
- this.input;
|
|
+ this.input
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- if (this.activeName == "four") {
|
|
+ if (this.activeName == 'four') {
|
|
this.option4.requestUrl =
|
|
this.option4.requestUrl =
|
|
- "/api/v1/ams/getSaleOrderListToCarrier?apiId=467&con=" +
|
|
+ '/api/v1/ams/getSaleOrderListToCarrier?apiId=467&con=' +
|
|
this.input +
|
|
this.input +
|
|
- "&carrierSsoId=" +
|
|
+ '&carrierSsoId=' +
|
|
- "";
|
|
+ ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
seeclick(saleOrderId) {
|
|
seeclick(saleOrderId) {
|
|
- this.$router.push("/saleOrderDetail/" + saleOrderId);
|
|
+ this.$router.push('/saleOrderDetail/' + saleOrderId)
|
|
},
|
|
},
|
|
steelSendClick(saleOrderId) {
|
|
steelSendClick(saleOrderId) {
|
|
- this.$router.push("/addSaleOrderSteelSendCarrier/" + saleOrderId);
|
|
+ this.$router.push('/addSaleOrderSteelSendCarrier/' + saleOrderId)
|
|
},
|
|
},
|
|
// -------查看物资详情 (已审批)
|
|
// -------查看物资详情 (已审批)
|
|
detailclick(row) {
|
|
detailclick(row) {
|
|
// 记录重复点击次数
|
|
// 记录重复点击次数
|
|
if (this.oldRow === row) {
|
|
if (this.oldRow === row) {
|
|
- this.oldRowCount += 1;
|
|
+ this.oldRowCount += 1
|
|
}
|
|
}
|
|
// 切换当前详情表
|
|
// 切换当前详情表
|
|
- this.$refs.table.toggleRowExpansion(row);
|
|
+ this.$refs.table.toggleRowExpansion(row)
|
|
// 打开前关闭上一个详情表
|
|
// 打开前关闭上一个详情表
|
|
- if (this.oldRow != "") {
|
|
+ if (this.oldRow != '') {
|
|
if (this.oldRow != row) {
|
|
if (this.oldRow != row) {
|
|
if (this.oldRowCount % 2 === 1) {
|
|
if (this.oldRowCount % 2 === 1) {
|
|
- this.$refs.table.toggleRowExpansion(this.oldRow);
|
|
+ this.$refs.table.toggleRowExpansion(this.oldRow)
|
|
} else {
|
|
} else {
|
|
- this.oldRowCount = 1;
|
|
+ this.oldRowCount = 1
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.oldRow = null;
|
|
+ this.oldRow = null
|
|
- return;
|
|
+ return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 重置上一个点击对象
|
|
// 重置上一个点击对象
|
|
- this.oldRow = row;
|
|
+ this.oldRow = row
|
|
// 根据销售订单id查询物资信息
|
|
// 根据销售订单id查询物资信息
|
|
this.axios
|
|
this.axios
|
|
- .post("/api/v1/ams/getSaleMaterialList?saleOrderId=" + row.saleOrderId)
|
|
+ .post('/api/v1/ams/getSaleMaterialList?saleOrderId=' + row.saleOrderId)
|
|
.then(res => {
|
|
.then(res => {
|
|
- this.tableData = res.data.data;
|
|
+ this.tableData = res.data.data
|
|
- });
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-};
|
|
+}
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.salePlan {
|
|
.salePlan {
|