|
|
|
@ -383,21 +383,16 @@ |
|
|
|
style="width: 100%; margin-top: -10px;" |
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
<el-table-column v-if="!isEditDialogMode" type="selection" width="30" align="center" fixed="left" /> |
|
|
|
<el-table-column prop="orderRef1" label="PO号" header-align="center" align="center" width="120"/> |
|
|
|
<el-table-column prop="orderRef2" label="PO行号" header-align="center" align="center" width="60"/> |
|
|
|
<el-table-column prop="partNo" label="产品编码" header-align="center" align="left" min-width="120" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="orderRef1" label="PO号" header-align="center" align="center" width="120"/> |
|
|
|
<el-table-column prop="item" label="Item" header-align="center" align="left" min-width="100" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="sku" label="SKU" header-align="center" align="left" min-width="120" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="partDesc" label="物料名称" header-align="center" align="left" min-width="150" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="planner" label="Planner" header-align="center" align="left" min-width="120" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="qty" label="订单数量" header-align="center" align="right" width="80"/> |
|
|
|
<el-table-column prop="waitInspectQty" label="未验货数量" header-align="center" align="right" width="80"/> |
|
|
|
<el-table-column label="此次验货数量" header-align="center" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input-number |
|
|
|
v-model="scope.row.inspectQty" |
|
|
|
:min="0" |
|
|
|
:max="scope.row.waitInspectQty || 999999" |
|
|
|
:max="scope.row.qty || 999999" |
|
|
|
size="mini" |
|
|
|
:controls="false" |
|
|
|
style="width: 100%; box-sizing: border-box;"> |
|
|
|
@ -418,7 +413,7 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="crd" |
|
|
|
label="CRD日期" |
|
|
|
label="CRD" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="160" |
|
|
|
@ -436,6 +431,8 @@ |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="eta" label="ETA" header-align="center" align="center" width="110"/> |
|
|
|
<el-table-column prop="planner" label="Planner" header-align="center" align="left" min-width="120" show-overflow-tooltip/> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<el-table |
|
|
|
@ -453,14 +450,11 @@ |
|
|
|
<el-link style="cursor: pointer" @click="deleteEditPoRow(scope.$index)">删除</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="orderRef2" label="PO行号" header-align="center" align="center" width="60"/> |
|
|
|
<el-table-column prop="orderRef1" label="PO号" header-align="center" align="center" width="120"/> |
|
|
|
<el-table-column prop="orderRef2" label="PO行号" header-align="center" align="center" width="80"/> |
|
|
|
<el-table-column prop="partNo" label="产品编码" header-align="center" align="left" min-width="120" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="item" label="Item" header-align="center" align="left" min-width="100" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="sku" label="SKU" header-align="center" align="left" min-width="120" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="partDesc" label="物料名称" header-align="center" align="left" min-width="150" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="totalQty" label="未验货数量" header-align="center" align="right" width="90"/> |
|
|
|
<el-table-column label="验货数量" header-align="center" align="center" width="150"> |
|
|
|
<el-table-column prop="aQty" label="订单数量" header-align="center" align="right" width="80"/> |
|
|
|
<el-table-column label="此次验货数量" header-align="center" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input-number |
|
|
|
v-if="editPoEditMode" |
|
|
|
@ -473,7 +467,7 @@ |
|
|
|
<span v-else>{{ scope.row.qty }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="运输方式" header-align="center" align="center" width="120"> |
|
|
|
<el-table-column label="运输方式" header-align="center" align="center" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-select v-if="editPoEditMode" v-model="scope.row.shipMothod" placeholder="请选择" size="mini" style="width: 100%;"> |
|
|
|
<el-option |
|
|
|
@ -486,7 +480,7 @@ |
|
|
|
<span v-else>{{ scope.row.shipMothod }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="CRD日期" header-align="center" align="center" width="160"> |
|
|
|
<el-table-column label="CRD" header-align="center" align="center" width="160"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-date-picker |
|
|
|
v-if="editPoEditMode" |
|
|
|
@ -501,6 +495,8 @@ |
|
|
|
<span v-else>{{ scope.row.crd }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="eta" label="ETA" header-align="center" align="center" width="110"/> |
|
|
|
<el-table-column prop="planner" label="Planner" header-align="center" align="left" min-width="120" show-overflow-tooltip/> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
@ -2481,7 +2477,11 @@ export default { |
|
|
|
shipMothod: row.shipMethod || row.shipMothod || '', // 保持字段一致性 |
|
|
|
crd: row.crd || '', |
|
|
|
waitInspectQty: row.waitInspectQty || 0, |
|
|
|
totalQty: row.waitInspectQty || 0 // 新增明细的未验货数量取PO的可用待验数量 |
|
|
|
totalQty: row.waitInspectQty || 0, // 新增明细的未验货数量取PO的可用待验数量 |
|
|
|
aQty: row.qty || 0, // 订单数量(A_Qty):选择弹窗行的 qty 即 A_Qty,下面 qty 会被本次验货数量覆盖 |
|
|
|
item: row.item || '', |
|
|
|
eta: row.eta || '', |
|
|
|
planner: row.planner || '' |
|
|
|
})) |
|
|
|
|
|
|
|
// 将新PO明细添加到编辑列表中 |
|
|
|
@ -3276,7 +3276,7 @@ export default { |
|
|
|
supplierNo: item.supplierNo || item.supplier_no || this.addFormData.supplierNo || '', |
|
|
|
supplierName: item.supplierName || item.supplier_name || this.addFormData.supplierName || '', |
|
|
|
planner: item.planner || '', |
|
|
|
inspectQty: item.waitInspectQty || 0, // 默认值为未验货数量 |
|
|
|
inspectQty: item.qty || 0, // 此次验货数量默认=订单数量(A_Qty),上限同订单数量 |
|
|
|
shipMethod: item.shipMethod || '',// 运输方式 |
|
|
|
crd: item.crd ? item.crd.split(' ')[0] : '' |
|
|
|
})) |
|
|
|
|