| | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="承运商" prop="HCarrierName"> |
| | | <el-input v-model="form.HCarrierName" placeholder="请输入承运商"> |
| | | <el-button slot="append" icon="el-icon-search" @click="openDataDialog(6)"></el-button> |
| | | <el-input v-model="form.HCarrierName" placeholder="请输入承运商" disabled> |
| | | <!-- <el-button slot="append" icon="el-icon-search" @click="openDataDialog(6)"></el-button> --> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="车型最大容积" prop="HCarTypeMaxVolume"> |
| | | <el-input v-model="form.HCarTypeMaxVolume" placeholder="请输入车型最大容积" readonly /> |
| | | <el-input v-model="form.HCarTypeMaxVolume" placeholder="请输入车型最大容积" disabled /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="总体积(立方米)" prop="HTotalVolume"> |
| | | <el-input v-model="form.HTotalVolume" placeholder="请输入总体积" /> |
| | | <el-input v-model="form.HTotalVolume" placeholder="请输入总体积" disabled/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="装载率" prop="HLoadingRate"> |
| | | <el-input v-model="form.HLoadingRate" placeholder="请输入装载率" /> |
| | | <el-input v-model="form.HLoadingRate" placeholder="请输入装载率" disabled/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column align="center" label="物料数量" width="120"> |
| | | <el-table-column align="center" label="物料数量" width="150"> |
| | | <template slot-scope="scope"> |
| | | <el-input-number v-model="scope.row.HQty" :min="0" style="width: 90px;" |
| | | <el-input-number v-model="scope.row.HQty" :min="0" style="width: 120px;" |
| | | controls-position="right" |
| | | @change="checkTotalQtyExceed(scope.row)"></el-input-number> |
| | | </template> |
| | |
| | | <GyCar @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyCarShow" /> |
| | | <GyDriver @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyDriverShow" /> |
| | | <ContractTransport @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" |
| | | v-if="ContractTransportShow" /> |
| | | v-if="ContractTransportShow" :propHBeginAddrName="form.HBeginAddr" :propHBeginHEndAddrName="form.HEndAddr" :propHCarTypeName="form.HCarTypeID"/> |
| | | <GyMaterialPackingRelation @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" |
| | | :propHMaterID="editData[zbIndex].HMaterID" :propHOrgID="form.HOrgID" |
| | | v-if="gyMaterialPackingRelationShow" /> |
| | |
| | | this.gyCartypeShow = false |
| | | this.gyCarShow = false |
| | | this.gyDriverShow = false |
| | | this.AreaDialogShow = false |
| | | this.ContractTransportShow = false |
| | | this.gyMaterialPackingRelationShow = false |
| | | }, |
| | |
| | | // 创建物料ID映射 |
| | | var materialMap = {}; |
| | | for (var i = 0; i < dataArray.length; i++) { |
| | | console.log(dataArray) |
| | | orginHQTY = dataArray[i].数量; |
| | | var materialId = dataArray[i].HMaterID; |
| | | if (!materialMap[materialId]) { |
| | |
| | | let result = response.data; |
| | | if (result.count == 1) { |
| | | let res = result.data; |
| | | console.log(11,res) |
| | | var newRows = []; |
| | | // 为每个源单行创建对应的子表行 |
| | | for (var materialId in materialMap) { |
| | |
| | | } |
| | | |
| | | // 计算相关数量 |
| | | var qty = 0; |
| | | var snp = 1; |
| | | var qty = orginHQTY || 0; |
| | | var snp = 0; |
| | | var mouldQty = 0; |
| | | var length = 0; |
| | | var width = 0; |
| | | var height = 0; |
| | | var rowVolume = (length * width * height * mouldQty).toFixed(2); |
| | | |
| | | var HPackQTY = 0; |
| | | var rowVolume = 0; |
| | | newRows.push({ |
| | | "HSourceInterID": sourceInfo.hmainid, |
| | | "HSourceEntryID": sourceInfo.hsubid, |
| | |
| | | "HMaterNumber": dataArray[j].物料代码, |
| | | "HMaterName": dataArray[j].物料名称, |
| | | "HUnitID": dataArray[j].HUnitID, |
| | | "HPackV": dataArray[j].托单位体积, |
| | | "HStandardQtyForMouldInPack": dataArray[j].容器数量/托, |
| | | "HMouldID": 0, |
| | | "HMouldNumber": '', |
| | | "HMouldName": '', |
| | |
| | | } |
| | | |
| | | // 计算相关数量 |
| | | var qty = materialInfo.HSNP || 0; |
| | | var snp = materialInfo.HSNP || 1; |
| | | var mouldQty = snp > 0 ? Math.ceil(qty / snp) : 0; |
| | | var length = parseFloat(materialInfo.长度) || 0; |
| | | var width = parseFloat(materialInfo.宽度) || 0; |
| | | var height = parseFloat(materialInfo.高度) || 0; |
| | | // var rowVolume = (length * width * height * mouldQty).toFixed(2); |
| | | var qty = orginHQTY || 0; |
| | | var snp = materialInfo.HSNP || 0; |
| | | var mouldQty = 0; |
| | | |
| | | //HPackQTY=HMouldQty/HStandardQtyForMouldInPack |
| | | var HPackQTY = 0; |
| | | if(materialInfo.HStandardQtyForMouldInPack===0) |
| | | { |
| | | HPackQTY=0 |
| | | }else |
| | | { |
| | | HPackQTY=Math.ceil(mouldQty/materialInfo.HStandardQtyForMouldInPack) |
| | | if (snp > 0) { |
| | | mouldQty = Math.ceil(qty / snp); |
| | | } |
| | | |
| | | var HPackQTY = 0; |
| | | if (materialInfo.HStandardQtyForMouldInPack > 0 && mouldQty > 0) { |
| | | HPackQTY = Math.ceil(mouldQty / materialInfo.HStandardQtyForMouldInPack); |
| | | } |
| | | |
| | | var rowVolume = (HPackQTY*materialInfo.HPackV).toFixed(2); |
| | | newRows.push({ |
| | | "HSourceInterID": sourceInfo.hmainid, |