|
|
@@ -384,7 +384,7 @@
|
|
|
style="color: #67c23a"
|
|
|
@click="openReduceLoss(row, $index)"
|
|
|
v-if="!row.extInfo.isLoss && item.currentTaskDiagram.isFirstTask != 1"
|
|
|
- >减损</el-link
|
|
|
+ >增加</el-link
|
|
|
>
|
|
|
|
|
|
<el-link
|
|
|
@@ -423,7 +423,7 @@
|
|
|
)
|
|
|
"
|
|
|
v-else-if="row.extInfo.isLoss == 3"
|
|
|
- >减损撤回</el-link
|
|
|
+ >撤回</el-link
|
|
|
>
|
|
|
<el-link type="warning" @click="getCancle($index)" v-else>取消</el-link>
|
|
|
<el-link type="danger" @click="getDelete($index)" v-if="!isChoose"
|
|
|
@@ -741,7 +741,7 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog
|
|
|
- title="减损数"
|
|
|
+ title="增加数"
|
|
|
:visible.sync="reduceLossVisible"
|
|
|
v-if="reduceLossVisible"
|
|
|
width="30%"
|
|
|
@@ -757,7 +757,7 @@
|
|
|
<el-form-item label="批次号">
|
|
|
<el-input v-model="reduceLossForm.batchNo" style="width: 220px"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="减损数">
|
|
|
+ <el-form-item label="增加数">
|
|
|
<el-input
|
|
|
v-model="reduceLossForm.quantity"
|
|
|
style="width: 220px"
|
|
|
@@ -1265,13 +1265,13 @@
|
|
|
{
|
|
|
minWidth: 100,
|
|
|
prop: 'extInfo.isLoss',
|
|
|
- label: '是否损耗',
|
|
|
+ label: '是否增减',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (row) => {
|
|
|
- if (row.extInfo.isLoss == 3) return '已损耗';
|
|
|
+ if (row.extInfo.isLoss == 3) return '增加';
|
|
|
return row.extInfo.isLoss && row.extInfo.isLoss == 1
|
|
|
- ? '是'
|
|
|
+ ? '损耗'
|
|
|
: '否';
|
|
|
}
|
|
|
},
|
|
|
@@ -1292,7 +1292,7 @@
|
|
|
{
|
|
|
columnKey: 'action',
|
|
|
label: '操作',
|
|
|
- width: 180,
|
|
|
+ width: 250,
|
|
|
align: 'center',
|
|
|
resizable: false,
|
|
|
slot: 'action',
|
|
|
@@ -2072,8 +2072,8 @@
|
|
|
|
|
|
async getReduceLossParam() {
|
|
|
if (this.reduceLossForm.quantity) {
|
|
|
- if (Number(this.reduceLossData.feedQuantity) == 0) {
|
|
|
- this.$message.warning('减损数不能为0');
|
|
|
+ if (Number(this.reduceLossData.feedQuantity) <= 0) {
|
|
|
+ this.$message.warning('增加数不能小于0');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -2081,7 +2081,7 @@
|
|
|
Number(this.reduceLossData.feedQuantity) <
|
|
|
Number(this.reduceLossForm.quantity)
|
|
|
) {
|
|
|
- this.$message.warning('减损数不能大于数量');
|
|
|
+ this.$message.warning('增加数不能大于数量');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -2100,20 +2100,24 @@
|
|
|
});
|
|
|
|
|
|
if (dataList.length != 0) {
|
|
|
- this.refreshReduceLossData(dataList);
|
|
|
+ this.refreshReduceLossData(dataList,'add');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
this.reduceLossVisible = false;
|
|
|
},
|
|
|
|
|
|
- refreshReduceLossData(list) {
|
|
|
+ refreshReduceLossData(list,type) {
|
|
|
const number = this.sub(
|
|
|
Number(this.list[this.reduceLossIndex].feedQuantity),
|
|
|
Number(this.reduceLossForm.quantity)
|
|
|
);
|
|
|
- this.list[this.reduceLossIndex].extInfo.sourceQuantity = number;
|
|
|
- this.list[this.reduceLossIndex].feedQuantity = number;
|
|
|
+
|
|
|
+ if(!type) {
|
|
|
+ this.list[this.reduceLossIndex].extInfo.sourceQuantity = number;
|
|
|
+ this.list[this.reduceLossIndex].feedQuantity = number;
|
|
|
+ }
|
|
|
+
|
|
|
this.list[this.reduceLossIndex].extInfo.newWeight =
|
|
|
(Number(this.list[this.reduceLossIndex].extInfo.newWeight) * 100000) /
|
|
|
100000 -
|