|
@@ -1,289 +1,327 @@
|
|
|
// 接收运单
|
|
|
<template>
|
|
|
- <div class="steel_inbound">
|
|
|
- <div class="sache">
|
|
|
- <el-input placeholder="请输入内容" v-model="inputText" clearable>
|
|
|
- </el-input>
|
|
|
- <el-button type="primary" class="btn" @click="onClick">
|
|
|
- <i class="el-icon-search"></i>查询
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- <template>
|
|
|
- <div>
|
|
|
- <el-tabs v-model="activeName">
|
|
|
- <!-- 已接收 -->
|
|
|
- <el-tab-pane label="已接收" name="first">
|
|
|
- <dilTable v-bind.sync="first" ref="table">
|
|
|
- <el-table-column fixed="right" label="操作" width="50">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button @click="detailclick(scope.row)" type="text" size="small">
|
|
|
- 物资详情
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <!-- 物资详情抽屉 -->
|
|
|
- <el-table-column type="expand" width="1">
|
|
|
- <template slot-scope="props">
|
|
|
- <el-form label-position="center" inline class="demo-table-expand">
|
|
|
- <div v-if="false">{{ props }}</div>
|
|
|
- <div>
|
|
|
- <el-table :data="tableData" border >
|
|
|
- <el-table-column
|
|
|
- v-for="(item, i) in tableHead"
|
|
|
- :key="i"
|
|
|
- :prop="item.prop"
|
|
|
- :label="item.label"
|
|
|
- :width="item.width"
|
|
|
- ></el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- </el-form>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </dilTable>
|
|
|
- </el-tab-pane>
|
|
|
- <!-- 已拒绝 -->
|
|
|
- <el-tab-pane label="已拒绝" name="second">
|
|
|
- <dilTable v-bind.sync="second" ref="table1">
|
|
|
- <el-table-column fixed="right" label="操作" width="50">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button @click="detailclick1(scope.row)" type="text" size="small">
|
|
|
- 物资详情
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <!-- 物资详情抽屉 -->
|
|
|
- <el-table-column type="expand" width="1">
|
|
|
- <template slot-scope="props">
|
|
|
- <el-form label-position="center" inline class="demo-table-expand">
|
|
|
- <div v-if="false">{{ props }}</div>
|
|
|
- <div>
|
|
|
- <el-table :data="tableData1" border >
|
|
|
- <el-table-column
|
|
|
- v-for="(item, i) in tableHead"
|
|
|
- :key="i"
|
|
|
- :prop="item.prop"
|
|
|
- :label="item.label"
|
|
|
- :width="item.width"
|
|
|
- ></el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- </el-form>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </dilTable>
|
|
|
- </el-tab-pane>
|
|
|
- <!-- 未接收 -->
|
|
|
- <el-tab-pane label="未接收" name="third">
|
|
|
- <dilTable v-bind.sync="third" ref="table2">
|
|
|
- <el-table-column fixed="right" label="操作" width="50">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button @click="detailclick2(scope.row)" type="text" size="small">
|
|
|
- 物资详情
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <!-- 物资详情抽屉 -->
|
|
|
- <el-table-column type="expand" width="1">
|
|
|
- <template slot-scope="props">
|
|
|
- <el-form label-position="center" inline class="demo-table-expand">
|
|
|
- <div v-if="false">{{ props }}</div>
|
|
|
- <div>
|
|
|
- <el-table :data="tableData2" border >
|
|
|
- <el-table-column
|
|
|
- v-for="(item, i) in tableHead"
|
|
|
- :key="i"
|
|
|
- :prop="item.prop"
|
|
|
- :label="item.label"
|
|
|
- :width="item.width"
|
|
|
- ></el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- </el-form>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </dilTable>
|
|
|
- </el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </div>
|
|
|
-
|
|
|
+ <div class="steel_inbound">
|
|
|
+ <div class="sache">
|
|
|
+ <el-input placeholder="请输入内容" v-model="inputText" clearable>
|
|
|
+ </el-input>
|
|
|
+ <el-button type="primary" class="btn" @click="onClick">
|
|
|
+ <i class="el-icon-search"></i>查询
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <template>
|
|
|
+ <div>
|
|
|
+ <el-tabs v-model="activeName">
|
|
|
+ <!-- 已接收 -->
|
|
|
+ <el-tab-pane label="已接收" name="first">
|
|
|
+ <dilTable v-bind.sync="first" ref="table">
|
|
|
+ <el-table-column fixed="right" label="操作" width="50">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ @click="detailclick(scope.row)"
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ 物资详情
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- 物资详情抽屉 -->
|
|
|
+ <el-table-column type="expand" width="1">
|
|
|
+ <template slot-scope="props">
|
|
|
+ <el-form
|
|
|
+ label-position="center"
|
|
|
+ inline
|
|
|
+ class="demo-table-expand"
|
|
|
+ >
|
|
|
+ <div v-if="false">{{ props }}</div>
|
|
|
+ <div>
|
|
|
+ <el-table :data="tableData" border>
|
|
|
+ <el-table-column
|
|
|
+ v-for="(item, i) in tableHead"
|
|
|
+ :key="i"
|
|
|
+ :prop="item.prop"
|
|
|
+ :label="item.label"
|
|
|
+ :width="item.width"
|
|
|
+ ></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </dilTable>
|
|
|
+ </el-tab-pane>
|
|
|
+ <!-- 已拒绝 -->
|
|
|
+ <el-tab-pane label="已拒绝" name="second">
|
|
|
+ <dilTable v-bind.sync="second" ref="table1">
|
|
|
+ <el-table-column fixed="right" label="操作" width="50">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ @click="detailclick1(scope.row)"
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ 物资详情
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- 物资详情抽屉 -->
|
|
|
+ <el-table-column type="expand" width="1">
|
|
|
+ <template slot-scope="props">
|
|
|
+ <el-form
|
|
|
+ label-position="center"
|
|
|
+ inline
|
|
|
+ class="demo-table-expand"
|
|
|
+ >
|
|
|
+ <div v-if="false">{{ props }}</div>
|
|
|
+ <div>
|
|
|
+ <el-table :data="tableData1" border>
|
|
|
+ <el-table-column
|
|
|
+ v-for="(item, i) in tableHead"
|
|
|
+ :key="i"
|
|
|
+ :prop="item.prop"
|
|
|
+ :label="item.label"
|
|
|
+ :width="item.width"
|
|
|
+ ></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </dilTable>
|
|
|
+ </el-tab-pane>
|
|
|
+ <!-- 未接收 -->
|
|
|
+ <el-tab-pane label="未接收" name="third">
|
|
|
+ <dilTable v-bind.sync="third" ref="table2">
|
|
|
+ <el-table-column fixed="right" label="操作" width="50">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ @click="detailclick2(scope.row)"
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ 物资详情
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- 物资详情抽屉 -->
|
|
|
+ <el-table-column type="expand" width="1">
|
|
|
+ <template slot-scope="props">
|
|
|
+ <el-form
|
|
|
+ label-position="center"
|
|
|
+ inline
|
|
|
+ class="demo-table-expand"
|
|
|
+ >
|
|
|
+ <div v-if="false">{{ props }}</div>
|
|
|
+ <div>
|
|
|
+ <el-table :data="tableData2" border>
|
|
|
+ <el-table-column
|
|
|
+ v-for="(item, i) in tableHead"
|
|
|
+ :key="i"
|
|
|
+ :prop="item.prop"
|
|
|
+ :label="item.label"
|
|
|
+ :width="item.width"
|
|
|
+ ></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </dilTable>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { getCookie } from "@/utils/util.js";
|
|
|
- export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- inputText: "",
|
|
|
- first: {
|
|
|
- // first请求数据的地址,承运商(运输订单状态为已接收,接收状态为已接收)
|
|
|
- requestUrl: "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=5&carrierSsoId="+ getCookie('userId'),
|
|
|
- },
|
|
|
- second: {
|
|
|
- // second请求数据的地址,承运商暂时设置为默认(运输订单状态为)
|
|
|
- requestUrl: "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=6&carrierSsoId="+ getCookie('userId'),
|
|
|
- },
|
|
|
- third: {
|
|
|
- // second请求数据的地址
|
|
|
- requestUrl: "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=4&carrierSsoId="+ getCookie('userId'),
|
|
|
- },
|
|
|
- activeName: "first",
|
|
|
- //记录旧的row对象(已接收)
|
|
|
- oldRow: "",
|
|
|
- //记录上一个展开的点击次数,单数为展开状态,复数为闭合状态(已接收)
|
|
|
- oldRowCount: 1,
|
|
|
- //记录旧的row对象(已拒绝)
|
|
|
- oldRow1: "",
|
|
|
- //记录上一个展开的点击次数,单数为展开状态,复数为闭合状态(已拒绝)
|
|
|
- oldRowCount1: 1,
|
|
|
- //记录旧的row对象(未接收)
|
|
|
- oldRow1: "",
|
|
|
- //记录上一个展开的点击次数,单数为展开状态,复数为闭合状态(未接收)
|
|
|
- oldRowCount1: 1,
|
|
|
- tableHead: [
|
|
|
- {
|
|
|
- prop: "materialName",
|
|
|
- label: "物资名称",
|
|
|
- width: 150,
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "specificationModel",
|
|
|
- label: "规格型号",
|
|
|
- width: 150,
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "materialNumber",
|
|
|
- label: "物资件数",
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "materialWeight",
|
|
|
- label: "物资重量",
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- ],
|
|
|
- tableData: [],
|
|
|
- tableData1: [],
|
|
|
- tableData2: [],
|
|
|
- }
|
|
|
- },
|
|
|
- methods: {
|
|
|
- onClick(){
|
|
|
- if(this.activeName == "first"){
|
|
|
- this.option1.requestUrl = "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=5&carrierSsoId="+ getCookie('userId')+"&con=" + this.input;
|
|
|
- }else if (this.activeName == "second") {
|
|
|
- this.option1.requestUrl = "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&carrierSsoId="+ getCookie('userId')+"&con=" + this.input;
|
|
|
- } else {
|
|
|
- this.option1.requestUrl = "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=4&carrierSsoId="+ getCookie('userId')+"&con=" + this.input;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- },
|
|
|
- // -------查看物资详情(已接收)
|
|
|
- detailclick(row) {
|
|
|
- // 记录重复点击次数
|
|
|
- if (this.oldRow === row) {
|
|
|
- this.oldRowCount += 1;
|
|
|
- }
|
|
|
- // 切换当前详情表
|
|
|
- this.$refs.table.toggleRowExpansion(row);
|
|
|
- // 打开前关闭上一个详情表
|
|
|
- if (this.oldRow != "") {
|
|
|
- if (this.oldRow != row) {
|
|
|
- if (this.oldRowCount % 2 === 1) {
|
|
|
- this.$refs.table.toggleRowExpansion(this.oldRow);
|
|
|
- } else {
|
|
|
- this.oldRowCount = 1;
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.oldRow = null;
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
- // 重置上一个点击对象
|
|
|
- this.oldRow = row;
|
|
|
- // 根据销售订单物资中间表id查询物资信息
|
|
|
- this.axios
|
|
|
- .post("/api/v1/oms/getOrderMaterialList?orderId=" +row.orderId)
|
|
|
- .then((res) => {
|
|
|
- this.tableData = res.data.data;
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- // -------查看物资详情(已拒绝)
|
|
|
- detailclick1(row) {
|
|
|
- // 记录重复点击次数
|
|
|
- if (this.oldRow1 === row) {
|
|
|
- this.oldRowCount1 += 1;
|
|
|
- }
|
|
|
- // 切换当前详情表
|
|
|
- this.$refs.table1.toggleRowExpansion(row);
|
|
|
- // 打开前关闭上一个详情表
|
|
|
- if (this.oldRow1 != "") {
|
|
|
- if (this.oldRow1 != row) {
|
|
|
- if (this.oldRowCount1 % 2 === 1) {
|
|
|
- this.$refs.table1.toggleRowExpansion(this.oldRow1);
|
|
|
- } else {
|
|
|
- this.oldRowCount1 = 1;
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.oldRow1 = null;
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
- // 重置上一个点击对象
|
|
|
- this.oldRow1 = row;
|
|
|
- // 根据销售订单物资中间表id查询物资信息
|
|
|
- this.axios
|
|
|
- .post("/api/v1/oms/getOrderMaterialList?orderId=" +row.orderId)
|
|
|
- .then((res) => {
|
|
|
- this.tableData1 = res.data.data;
|
|
|
- });
|
|
|
- },
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ inputText: "",
|
|
|
+ first: {
|
|
|
+ // first请求数据的地址,承运商(运输订单状态为已接收,接收状态为已接收)
|
|
|
+ requestUrl:
|
|
|
+ "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=5&carrierSsoId=" +
|
|
|
+ getCookie("userId"),
|
|
|
+ },
|
|
|
+ second: {
|
|
|
+ // second请求数据的地址,承运商暂时设置为默认(运输订单状态为)
|
|
|
+ requestUrl:
|
|
|
+ "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=6&carrierSsoId=" +
|
|
|
+ getCookie("userId"),
|
|
|
+ },
|
|
|
+ third: {
|
|
|
+ // second请求数据的地址
|
|
|
+ requestUrl:
|
|
|
+ "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=4&carrierSsoId=" +
|
|
|
+ getCookie("userId"),
|
|
|
+ },
|
|
|
+ activeName: "first",
|
|
|
+ //记录旧的row对象(已接收)
|
|
|
+ oldRow: "",
|
|
|
+ //记录上一个展开的点击次数,单数为展开状态,复数为闭合状态(已接收)
|
|
|
+ oldRowCount: 1,
|
|
|
+ //记录旧的row对象(已拒绝)
|
|
|
+ oldRow1: "",
|
|
|
+ //记录上一个展开的点击次数,单数为展开状态,复数为闭合状态(已拒绝)
|
|
|
+ oldRowCount1: 1,
|
|
|
+ //记录旧的row对象(未接收)
|
|
|
+ oldRow1: "",
|
|
|
+ //记录上一个展开的点击次数,单数为展开状态,复数为闭合状态(未接收)
|
|
|
+ oldRowCount1: 1,
|
|
|
+ tableHead: [
|
|
|
+ {
|
|
|
+ prop: "materialName",
|
|
|
+ label: "物资名称",
|
|
|
+ width: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "specificationModel",
|
|
|
+ label: "规格型号",
|
|
|
+ width: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "materialNumber",
|
|
|
+ label: "物资件数",
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "materialWeight",
|
|
|
+ label: "物资重量",
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ tableData: [],
|
|
|
+ tableData1: [],
|
|
|
+ tableData2: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ onClick() {
|
|
|
+ if (this.activeName == "first") {
|
|
|
+ this.option1.requestUrl =
|
|
|
+ "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=5&carrierSsoId=" +
|
|
|
+ getCookie("userId") +
|
|
|
+ "&con=" +
|
|
|
+ this.input;
|
|
|
+ } else if (this.activeName == "second") {
|
|
|
+ this.option1.requestUrl =
|
|
|
+ "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&carrierSsoId=" +
|
|
|
+ getCookie("userId") +
|
|
|
+ "&con=" +
|
|
|
+ this.input;
|
|
|
+ } else {
|
|
|
+ this.option1.requestUrl =
|
|
|
+ "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=4&carrierSsoId=" +
|
|
|
+ getCookie("userId") +
|
|
|
+ "&con=" +
|
|
|
+ this.input;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // -------查看物资详情(已接收)
|
|
|
+ detailclick(row) {
|
|
|
+ // 记录重复点击次数
|
|
|
+ if (this.oldRow === row) {
|
|
|
+ this.oldRowCount += 1;
|
|
|
+ }
|
|
|
+ // 切换当前详情表
|
|
|
+ this.$refs.table.toggleRowExpansion(row);
|
|
|
+ // 打开前关闭上一个详情表
|
|
|
+ if (this.oldRow != "") {
|
|
|
+ if (this.oldRow != row) {
|
|
|
+ if (this.oldRowCount % 2 === 1) {
|
|
|
+ this.$refs.table.toggleRowExpansion(this.oldRow);
|
|
|
+ } else {
|
|
|
+ this.oldRowCount = 1;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.oldRow = null;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 重置上一个点击对象
|
|
|
+ this.oldRow = row;
|
|
|
+ // 根据销售订单物资中间表id查询物资信息
|
|
|
+ this.axios
|
|
|
+ .post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
|
|
|
+ .then((res) => {
|
|
|
+ this.tableData = res.data.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
- // -------查看物资详情(未接收)
|
|
|
- detailclick2(row) {
|
|
|
- // 记录重复点击次数
|
|
|
- if (this.oldRow2 === row) {
|
|
|
- this.oldRowCount2 += 1;
|
|
|
- }
|
|
|
- // 切换当前详情表
|
|
|
- this.$refs.table2.toggleRowExpansion(row);
|
|
|
- // 打开前关闭上一个详情表
|
|
|
- if (this.oldRow2 != "") {
|
|
|
- if (this.oldRow2 != row) {
|
|
|
- if (this.oldRowCount2 % 2 === 1) {
|
|
|
- this.$refs.table2.toggleRowExpansion(this.oldRow2);
|
|
|
- } else {
|
|
|
- this.oldRowCount2 = 1;
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.oldRow2 = null;
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
- // 重置上一个点击对象
|
|
|
- this.oldRow2 = row;
|
|
|
- // 根据销售订单物资中间表id查询物资信息
|
|
|
- this.axios
|
|
|
- .post("/api/v1/oms/getOrderMaterialList?orderId=" +row.orderId)
|
|
|
- .then((res) => {
|
|
|
- this.tableData2 = res.data.data;
|
|
|
- });
|
|
|
- },
|
|
|
+ // -------查看物资详情(已拒绝)
|
|
|
+ detailclick1(row) {
|
|
|
+ // 记录重复点击次数
|
|
|
+ if (this.oldRow1 === row) {
|
|
|
+ this.oldRowCount1 += 1;
|
|
|
+ }
|
|
|
+ // 切换当前详情表
|
|
|
+ this.$refs.table1.toggleRowExpansion(row);
|
|
|
+ // 打开前关闭上一个详情表
|
|
|
+ if (this.oldRow1 != "") {
|
|
|
+ if (this.oldRow1 != row) {
|
|
|
+ if (this.oldRowCount1 % 2 === 1) {
|
|
|
+ this.$refs.table1.toggleRowExpansion(this.oldRow1);
|
|
|
+ } else {
|
|
|
+ this.oldRowCount1 = 1;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.oldRow1 = null;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 重置上一个点击对象
|
|
|
+ this.oldRow1 = row;
|
|
|
+ // 根据销售订单物资中间表id查询物资信息
|
|
|
+ this.axios
|
|
|
+ .post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
|
|
|
+ .then((res) => {
|
|
|
+ this.tableData1 = res.data.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
- }
|
|
|
- }
|
|
|
+ // -------查看物资详情(未接收)
|
|
|
+ detailclick2(row) {
|
|
|
+ // 记录重复点击次数
|
|
|
+ if (this.oldRow2 === row) {
|
|
|
+ this.oldRowCount2 += 1;
|
|
|
+ }
|
|
|
+ // 切换当前详情表
|
|
|
+ this.$refs.table2.toggleRowExpansion(row);
|
|
|
+ // 打开前关闭上一个详情表
|
|
|
+ if (this.oldRow2 != "") {
|
|
|
+ if (this.oldRow2 != row) {
|
|
|
+ if (this.oldRowCount2 % 2 === 1) {
|
|
|
+ this.$refs.table2.toggleRowExpansion(this.oldRow2);
|
|
|
+ } else {
|
|
|
+ this.oldRowCount2 = 1;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.oldRow2 = null;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 重置上一个点击对象
|
|
|
+ this.oldRow2 = row;
|
|
|
+ // 根据销售订单物资中间表id查询物资信息
|
|
|
+ this.axios
|
|
|
+ .post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
|
|
|
+ .then((res) => {
|
|
|
+ this.tableData2 = res.data.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
</script>
|
|
|
<style lang="scss" scode>
|
|
|
- .steel_inbound {
|
|
|
- .sache {
|
|
|
- padding: 1.25rem 0.375rem;
|
|
|
- .el-input {
|
|
|
- width: 20%;
|
|
|
- margin-right: 1.25rem;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+.steel_inbound {
|
|
|
+ .sache {
|
|
|
+ padding: 1.25rem 0.375rem;
|
|
|
+ .el-input {
|
|
|
+ width: 20%;
|
|
|
+ margin-right: 1.25rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|