|
@@ -30,12 +30,6 @@
|
|
>
|
|
>
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
</el-button>
|
|
</el-button>
|
|
- <!-- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- class="btn"
|
|
|
|
- @click="makeSure"
|
|
|
|
- style="margin: 10px;">确认配单
|
|
|
|
- </el-button> -->
|
|
|
|
</div>
|
|
</div>
|
|
<!-- 采购订单号 -->
|
|
<!-- 采购订单号 -->
|
|
<dilTable
|
|
<dilTable
|
|
@@ -107,7 +101,7 @@
|
|
width="120px"
|
|
width="120px"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" width="80px" prop="weight" label="标重">
|
|
|
|
|
|
+ <el-table-column align="center" width="80px" prop="wagonWeight" label="标重">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<!-- <el-table-column
|
|
<!-- <el-table-column
|
|
align="center"
|
|
align="center"
|
|
@@ -198,6 +192,11 @@
|
|
</template>
|
|
</template>
|
|
</el-autocomplete>
|
|
</el-autocomplete>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="有拼装:">
|
|
|
|
+ <el-switch
|
|
|
|
+ v-model="isAssembly">
|
|
|
|
+ </el-switch>
|
|
|
|
+ </el-form-item>
|
|
</div>
|
|
</div>
|
|
</el-form>
|
|
</el-form>
|
|
<dil-form :formId="102" v-model="form1" ref="from1"></dil-form>
|
|
<dil-form :formId="102" v-model="form1" ref="from1"></dil-form>
|
|
@@ -262,6 +261,7 @@ export default {
|
|
form1: {},
|
|
form1: {},
|
|
tableData: [],
|
|
tableData: [],
|
|
input: "",
|
|
input: "",
|
|
|
|
+ isAssembly:false,
|
|
value: undefined,
|
|
value: undefined,
|
|
//船名
|
|
//船名
|
|
remark: null,
|
|
remark: null,
|
|
@@ -600,7 +600,7 @@ export default {
|
|
if (state == 1) {
|
|
if (state == 1) {
|
|
let map = {
|
|
let map = {
|
|
portName: this.sendStation,
|
|
portName: this.sendStation,
|
|
- wagonList: this.list,
|
|
|
|
|
|
+ wagonList: this.tableData,
|
|
// unloadingPointId:this.unloadPointId,
|
|
// unloadingPointId:this.unloadPointId,
|
|
purchaseOrderRailPlanId: this.purchaseOrderId,
|
|
purchaseOrderRailPlanId: this.purchaseOrderId,
|
|
materialId: this.materialId,
|
|
materialId: this.materialId,
|
|
@@ -613,8 +613,24 @@ export default {
|
|
resultRemarks: this.form1.resultRemarks,
|
|
resultRemarks: this.form1.resultRemarks,
|
|
userId: getCookie("userId"),
|
|
userId: getCookie("userId"),
|
|
resultType: 1,
|
|
resultType: 1,
|
|
- purchaseNo: this.form1.purchaseOrderNo
|
|
|
|
|
|
+ purchaseNo: this.form1.purchaseOrderNo,
|
|
|
|
+ isAssembly:this.isAssembly
|
|
};
|
|
};
|
|
|
|
+ console.log(map);
|
|
|
|
+ //校验拼装车的标重
|
|
|
|
+ if(this.isAssembly){
|
|
|
|
+ let flag=false;
|
|
|
|
+ map.wagonList.forEach((item)=>{
|
|
|
|
+ if(typeof item.wagonWeight !='undefined'){
|
|
|
|
+ flag=true;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if(!flag){
|
|
|
|
+ this.$message.warning("拼装车的标重不存在!");
|
|
|
|
+ this.disable = false;
|
|
|
|
+ return ;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.axios
|
|
this.axios
|
|
.post("/api/v1/tms/addWarehouseOutResult", map)
|
|
.post("/api/v1/tms/addWarehouseOutResult", map)
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -698,7 +714,7 @@ export default {
|
|
materialName: row["品名"],
|
|
materialName: row["品名"],
|
|
wagonNo: row["车皮号"],
|
|
wagonNo: row["车皮号"],
|
|
mineral: row["矿种"],
|
|
mineral: row["矿种"],
|
|
- weight: row["计费 吨位"]
|
|
|
|
|
|
+ wagonWeight: row["标重"]
|
|
};
|
|
};
|
|
that.tableData.push(temp);
|
|
that.tableData.push(temp);
|
|
} else {
|
|
} else {
|