|
@@ -2,34 +2,40 @@
|
|
|
<template>
|
|
|
<div id="endMaintenance">
|
|
|
<page-title>分解计划</page-title>
|
|
|
- <div class="main">
|
|
|
- <span class="text">待分解的计划</span>
|
|
|
- <span class="a"></span>
|
|
|
- </div>
|
|
|
<dilTable v-bind.sync="first" >
|
|
|
</dilTable>
|
|
|
- <div class="main">
|
|
|
- <span class="text">选择线路</span>
|
|
|
- <span class="a"></span>
|
|
|
- </div>
|
|
|
- <dilTable v-bind.sync="zero" @radio-change="currentRadioChange1">
|
|
|
- </dilTable>
|
|
|
- <div class="main">
|
|
|
- <span class="text">分解</span>
|
|
|
- <span class="a"></span>
|
|
|
- </div>
|
|
|
+ <div class="lineId from">
|
|
|
+ <span class="text">选择路线:</span>
|
|
|
+ <el-input class="input" v-model="lineName" disabled> </el-input>
|
|
|
+ <el-button type="primary" @click="drawerLine()">浏览</el-button>
|
|
|
+ </div>
|
|
|
+ <el-drawer
|
|
|
+ :visible.sync="linedrawer"
|
|
|
+ :direction="direction"
|
|
|
+ :before-close="handleClose"
|
|
|
+ size="40%"
|
|
|
+ >
|
|
|
+ <el-input placeholder="请输入内容" v-model="input" style="margin-top: 10px;margin-right: 10px;width:250px;" clearable> </el-input>
|
|
|
+ <el-button type="primary" class="btn" @click="onclick()" style="margin-bottom:15px">
|
|
|
+ <i class="el-icon-search"></i>查询
|
|
|
+ </el-button>
|
|
|
+ <dilTable v-bind.sync="zero" @radio-change="currentRadioChange1" ></dilTable>
|
|
|
+ </el-drawer>
|
|
|
+ <div class="form-box">
|
|
|
+ <dil-form :formId="318" v-model="form"></dil-form>
|
|
|
+ </div>
|
|
|
<el-drawer
|
|
|
:visible.sync="drawer"
|
|
|
:direction="direction"
|
|
|
:before-close="handleClose"
|
|
|
size="30%"
|
|
|
>
|
|
|
- <el-input placeholder="请输入内容" v-model="input" style="margin-top:10px;margin-left:20px" clearable> </el-input>
|
|
|
+ <el-input placeholder="请输入内容" v-model="input" style="margin-top:10px;margin-right: 10px;width:250px;" clearable> </el-input>
|
|
|
<el-button type="primary" class="btn" @click="onclick()" style="margin-bottom:15px">
|
|
|
<i class="el-icon-search"></i>查询
|
|
|
</el-button>
|
|
|
- <dilTable v-bind.sync="second" @radio-change="currentRadioChange" ></dilTable>
|
|
|
-</el-drawer>
|
|
|
+ <dilTable v-bind.sync="second" @radio-change="currentRadioChange" ></dilTable>
|
|
|
+ </el-drawer>
|
|
|
<div style="margin-left:0.625rem">
|
|
|
<vxe-toolbar>
|
|
|
<template #buttons>
|
|
@@ -43,11 +49,6 @@
|
|
|
@edit-closed="editClosedEvent"
|
|
|
@edit-actived="editActivedEvent">
|
|
|
<vxe-table-column type="seq" width="60" title="序号"></vxe-table-column>
|
|
|
- <vxe-table-column field="purchaseOrderNo" title="采购订单号" >
|
|
|
- <template #edit="{ row }">
|
|
|
- <vxe-input v-model="row.purchaseOrderNo" type="text" disabled></vxe-input>
|
|
|
- </template>
|
|
|
- </vxe-table-column>
|
|
|
<vxe-table-column field="planNo" title="运输计划号">
|
|
|
<template #edit="{ row }">
|
|
|
<vxe-input v-model="row.planNo" type="text" disabled></vxe-input>
|
|
@@ -66,14 +67,14 @@
|
|
|
<vxe-input v-model="row.materialName" type="text" disabled></vxe-input>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="materialWeight" title="物资重量"
|
|
|
+ <vxe-table-column field="materialWeight" title="物资重量" width="100"
|
|
|
:edit-render="{}"
|
|
|
>
|
|
|
<template #edit="{ row }">
|
|
|
<vxe-input v-model="row.materialWeight" type="text"></vxe-input>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column field="materialNumber" title="物资数量"
|
|
|
+ <vxe-table-column field="materialNumber" title="物资数量" width="100"
|
|
|
:edit-render="{}"
|
|
|
>
|
|
|
<template #edit="{ row }">
|
|
@@ -94,14 +95,7 @@
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
|
- <div class="main">
|
|
|
- <span class="text">选择订单类型</span>
|
|
|
- <span class="a"></span>
|
|
|
- </div>
|
|
|
- <div class="form-box" style="margin-left: 16rem">
|
|
|
- <dil-form :formId="318" v-model="form"></dil-form>
|
|
|
- </div>
|
|
|
- <div class="" style="margin-left:40rem">
|
|
|
+ <div class="button-box">
|
|
|
<el-button type="primary" @click="makeSure">确认分解</el-button>
|
|
|
<el-button type="primary" @click="cancel">返回</el-button>
|
|
|
</div>
|
|
@@ -116,6 +110,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ lineName:null,
|
|
|
+ linedrawer:false,
|
|
|
tableData:[],
|
|
|
direction: "rtl",
|
|
|
input:'',
|
|
@@ -154,6 +150,9 @@ export default {
|
|
|
this.selectRow = row
|
|
|
console.log(row.purchaseOrderNo)
|
|
|
},
|
|
|
+ drawerLine(){
|
|
|
+ this.linedrawer = true
|
|
|
+ },
|
|
|
onclick(){
|
|
|
this.second.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246&con="+this.input
|
|
|
},
|
|
@@ -163,6 +162,7 @@ export default {
|
|
|
},
|
|
|
currentRadioChange1(selection){
|
|
|
this.mapList0=selection
|
|
|
+ this.lineName = this.mapList0.lineName
|
|
|
console.log(this.mapList0.lineId)
|
|
|
},
|
|
|
handleClose(done){
|
|
@@ -177,12 +177,12 @@ export default {
|
|
|
},
|
|
|
information() {
|
|
|
//查看需求详情
|
|
|
- this.$axios
|
|
|
+ this.axios
|
|
|
.post(
|
|
|
"/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=1&planId=" + this.$route.params.planId
|
|
|
)
|
|
|
.then((res) => {
|
|
|
- console.log(res)
|
|
|
+ console.log(res)
|
|
|
const planRow = res.data.data.list
|
|
|
this.purchaseOrderNo = planRow[0].purchaseOrderNo,
|
|
|
this.requirementNo = planRow[0].requirementNumber,
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
mapList:this.$refs.xTable.getInsertRecords()
|
|
|
};
|
|
|
console.log(BmsTrainFreight)
|
|
|
- this.$axios
|
|
|
+ this.axios
|
|
|
.post("/api/v1/oms/addInwardOrder", BmsTrainFreight)
|
|
|
.then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
@@ -241,11 +241,35 @@ export default {
|
|
|
// 返回
|
|
|
cancel() {
|
|
|
console.log(this.sumNum(this.$refs.xTable.getInsertRecords(), 'materialWeight'))
|
|
|
- // this.$router.go(-1);
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
+.el-form-item{
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+.form-box,
|
|
|
+.button-box{
|
|
|
+ display: flex;
|
|
|
+ text-align: center;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ margin-top: 0.3125rem;
|
|
|
+ margin-bottom: 1.25rem;
|
|
|
+}
|
|
|
+.lineId {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ .text {
|
|
|
+ display: inline-block;
|
|
|
+ width: 170px;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ .input{
|
|
|
+ width: 250px;
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|