|
@@ -812,6 +812,26 @@
|
|
|
v-hasPermi="['fleet:ftmsorderbillscars:edit']"
|
|
|
>变更</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-document-delete"
|
|
|
+ @click.native.prevent="selectStowage(scope.row)"
|
|
|
+ v-if="schedulingList[0].transProp == '1'"
|
|
|
+ :disabled="scope.row.mBillNo"
|
|
|
+ v-hasPermi="['fleet:ftmsorderbillscars:edit']"
|
|
|
+ >配载</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-document-delete"
|
|
|
+ @click.native.prevent="changescarsRow(scope.row)"
|
|
|
+ v-if="schedulingList[0].transProp == '1'"
|
|
|
+ :disabled="!scope.row.mBillNo"
|
|
|
+ v-hasPermi="['fleet:ftmsorderbillscars:edit']"
|
|
|
+ >撤销配载</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -1369,6 +1389,7 @@ import {
|
|
|
changeFtmsorderbillscars,
|
|
|
addFtmsorderbillscars,
|
|
|
singleChangeFtmsorderbillscars,
|
|
|
+ selectStowage
|
|
|
} from "@/api/fleet/ftmsorderbillscars";
|
|
|
import { getBasicInformation } from "@/api/kaihe/basicdata/container";
|
|
|
import { company } from "@/api/fleet/carManage";
|
|
@@ -1495,6 +1516,8 @@ export default {
|
|
|
fWbuOptions: [],
|
|
|
ffeeunitidList: [],
|
|
|
carManages: [],
|
|
|
+ stowageList: [],
|
|
|
+ stowageDialog: false,
|
|
|
disabled2: false,
|
|
|
polList: [],
|
|
|
podList: [],
|
|
@@ -1840,7 +1863,6 @@ export default {
|
|
|
// }
|
|
|
// });
|
|
|
},
|
|
|
-
|
|
|
//单条订单调度提交
|
|
|
addscarsRow(row) {
|
|
|
if (row.billStatus == 5) {
|
|
@@ -1918,6 +1940,15 @@ export default {
|
|
|
this.$message.error("此条数据没有提交,不能申请撤回");
|
|
|
}
|
|
|
},
|
|
|
+ // 查询可配载数据
|
|
|
+ selectStowage(row) {
|
|
|
+ selectStowage(row).then((response) => {
|
|
|
+ this.stowageDialog = true;
|
|
|
+ if (response.rows) {
|
|
|
+ this.stowageList = response.rows;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
changescarsRow(row) {
|
|
|
if (row.billStatus == 6) {
|
|
|
changeFtmsorderbillscars(row.id).then((response) => {
|