|
|
@@ -385,6 +385,22 @@
|
|
|
v-if="row.confirm == 0 || !row.confirm"
|
|
|
>确认</el-link
|
|
|
>
|
|
|
+ <el-link
|
|
|
+ type="text"
|
|
|
+ @click="
|
|
|
+ returnBatch(
|
|
|
+ [
|
|
|
+ {
|
|
|
+ returnId: row.id,
|
|
|
+ returnQt: row.feedQuantity
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ $index
|
|
|
+ )
|
|
|
+ "
|
|
|
+ v-if="row.extInfo.isLoss"
|
|
|
+ >撤回</el-link
|
|
|
+ >
|
|
|
<el-link type="warning" @click="getCancle($index)" v-else>取消</el-link>
|
|
|
<el-link type="danger" @click="getDelete($index)" v-if="!isChoose"
|
|
|
>删除</el-link
|
|
|
@@ -761,7 +777,8 @@
|
|
|
import {
|
|
|
getTaskInstanceList,
|
|
|
getComputeParam,
|
|
|
- saveParam
|
|
|
+ saveParam,
|
|
|
+ returnBatch
|
|
|
} from '@/api/produce/job';
|
|
|
import { queryProductLicense } from '@/api/produce';
|
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
@@ -1729,7 +1746,13 @@
|
|
|
this.batchForm.unit = item.unit;
|
|
|
this.batchVisible = true;
|
|
|
},
|
|
|
-
|
|
|
+ returnBatch(returnBatchDetailPOList, index) {
|
|
|
+ returnBatch({returnBatchDetailPOList}).then((res) => {
|
|
|
+ // this.list.splice(index, 1);
|
|
|
+ // this.$set(this.item, 'product', this.list);
|
|
|
+ this.$emit('reloadData');
|
|
|
+ });
|
|
|
+ },
|
|
|
batchInput(val) {
|
|
|
let newVal = val.replace(/[^\d.]/g, '');
|
|
|
|