|
@@ -31,7 +31,7 @@
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
<!-- 未授权 -->
|
|
|
<el-tab-pane label="未授权" name="four">
|
|
|
- <dilTable v-bind.sync="option4" ref="table">
|
|
|
+ <mergeRowTable v-bind.sync="option4" ref="table">
|
|
|
<el-table-column fixed="right" label="操作" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -46,106 +46,26 @@
|
|
|
size="small"
|
|
|
>钢材派车</el-button
|
|
|
>
|
|
|
- <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>
|
|
|
+ </mergeRowTable>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<!-- 未派车 -->
|
|
|
<el-tab-pane label="未派车" name="five">
|
|
|
- <dilTable v-bind.sync="option0" ref="table0">
|
|
|
+ <mergeRowTable v-bind.sync="option0" ref="table0">
|
|
|
<el-table-column fixed="right" label="操作" width="160">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button @click="updateCarrier(scope)" type="text" size="small"
|
|
|
>修改承运商授权</el-button
|
|
|
>
|
|
|
- <el-button
|
|
|
- @click="detailclick0(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="tableData0" 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>
|
|
|
+ </mergeRowTable>
|
|
|
</el-tab-pane>
|
|
|
<!-- 已派车 -->
|
|
|
<el-tab-pane label="已派车" name="first">
|
|
|
- <dilTable v-bind.sync="option" ref="table3">
|
|
|
- <el-table-column fixed="right" label="操作" align="center" width="80">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- @click="detailclick3(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="tableData3" 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>
|
|
|
+ <mergeRowTable v-bind.sync="option" ref="table3"> </mergeRowTable>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
@@ -166,26 +86,32 @@ export default {
|
|
|
option: {
|
|
|
// 表格请求数据的地址
|
|
|
requestUrl: "/api/v1/ams/getHaveCarTruckNoList?apiId=466",
|
|
|
+ comparison: "saleOrderMaterialId",
|
|
|
+ columnIndexs: [0, 1, 2, 3, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
|
|
},
|
|
|
option2: {
|
|
|
// 表格请求数据的地址
|
|
|
- requestUrl: "/api/v1/ams/getSaleOrderReportedes?apiId=408",
|
|
|
+ requestUrl: "/api/v1/ams/getSaleOrderReportedes?apiId=408"
|
|
|
},
|
|
|
option3: {
|
|
|
// 表格请求数据的地址
|
|
|
- requestUrl: "/api/v1/ams/getAmsSaleOrderApprovedes?apiId=409",
|
|
|
+ requestUrl: "/api/v1/ams/getAmsSaleOrderApprovedes?apiId=409"
|
|
|
},
|
|
|
option4: {
|
|
|
// 表格请求数据的地址
|
|
|
requestUrl: "/api/v1/ams/getSteelTruckNoList?apiId=411",
|
|
|
+ comparison: "saleOrderMaterialId",
|
|
|
+ columnIndexs: [0, 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 15]
|
|
|
},
|
|
|
option0: {
|
|
|
// 表格请求数据的地址
|
|
|
requestUrl: "/api/v1/ams/getNoCarTruckNoList?apiId=466",
|
|
|
+ comparison: "saleOrderMaterialId",
|
|
|
+ columnIndexs: [0, 1, 2, 3, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
|
|
},
|
|
|
carrierOption: {
|
|
|
requestUrl: "/api/v1/uc/getCarrierListByLike?apiId=412",
|
|
|
- selectionType: "radio",
|
|
|
+ selectionType: "radio"
|
|
|
},
|
|
|
mapList: [],
|
|
|
mapItemList: [],
|
|
@@ -213,23 +139,23 @@ export default {
|
|
|
{
|
|
|
prop: "materialName",
|
|
|
label: "物资名称",
|
|
|
- width: 150,
|
|
|
+ width: 150
|
|
|
},
|
|
|
{
|
|
|
prop: "specificationModel",
|
|
|
label: "规格型号",
|
|
|
- width: 150,
|
|
|
+ width: 150
|
|
|
},
|
|
|
{
|
|
|
prop: "materialNumber",
|
|
|
label: "物资件数",
|
|
|
- width: 100,
|
|
|
+ width: 100
|
|
|
},
|
|
|
{
|
|
|
prop: "materialWeight",
|
|
|
label: "物资重量",
|
|
|
- width: 100,
|
|
|
- },
|
|
|
+ width: 100
|
|
|
+ }
|
|
|
],
|
|
|
//(销售公司已审批)
|
|
|
tableData: [],
|
|
@@ -240,7 +166,7 @@ export default {
|
|
|
//(未上报)
|
|
|
tableData3: [],
|
|
|
//(未派车)
|
|
|
- tableData0: [],
|
|
|
+ tableData0: []
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -270,9 +196,9 @@ export default {
|
|
|
updateTruckCapacity() {
|
|
|
let map = {
|
|
|
carrierId: this.carrierId,
|
|
|
- saleOrderMaterialId: this.saleOrderMaterialId,
|
|
|
+ saleOrderMaterialId: this.saleOrderMaterialId
|
|
|
};
|
|
|
- this.axios.post("/api/v1/ams/updateTruckNoCarrier", map).then((res) => {
|
|
|
+ this.axios.post("/api/v1/ams/updateTruckNoCarrier", map).then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
this.$message.success("修改授权成功");
|
|
|
this.getRequestUrl();
|
|
@@ -293,11 +219,11 @@ export default {
|
|
|
"/api/v1/ams/getSteelTruckNoList?apiId=411&con=" + this.input;
|
|
|
// console.log("aaaa" + this.input);
|
|
|
} else if (this.activeName == "five") {
|
|
|
- this.option0.requestUrl =
|
|
|
- "/api/v1/ams/getNoCarTruckNoList?apiId=466&con=" + this.input;
|
|
|
+ this.option0.requestUrl =
|
|
|
+ "/api/v1/ams/getNoCarTruckNoList?apiId=466&con=" + this.input;
|
|
|
} else if (this.activeName == "first") {
|
|
|
- this.option.requestUrl =
|
|
|
- "/api/v1/ams/getHaveCarTruckNoList?apiId=466&con=" + this.input;
|
|
|
+ this.option.requestUrl =
|
|
|
+ "/api/v1/ams/getHaveCarTruckNoList?apiId=466&con=" + this.input;
|
|
|
}
|
|
|
},
|
|
|
seeclick(saleOrderId) {
|
|
@@ -338,7 +264,7 @@ export default {
|
|
|
"/api/v1/ams/getTruckNoMaterialList?saleOrderMaterialId=" +
|
|
|
row.saleOrderMaterialId
|
|
|
)
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
this.tableData = res.data.data;
|
|
|
});
|
|
|
},
|
|
@@ -372,7 +298,7 @@ export default {
|
|
|
"/api/v1/ams/getTruckNoMaterialList?saleOrderMaterialId=" +
|
|
|
row.saleOrderMaterialId
|
|
|
)
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
this.tableData3 = res.data.data;
|
|
|
});
|
|
|
},
|
|
@@ -406,11 +332,11 @@ export default {
|
|
|
"/api/v1/ams/getTruckNoMaterialList?saleOrderMaterialId=" +
|
|
|
row.saleOrderMaterialId
|
|
|
)
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
this.tableData0 = res.data.data;
|
|
|
});
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|