|
|
|
@ -138,6 +138,14 @@
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="isSp ==110"
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native="rollback(scope.row)"
|
|
|
|
|
>回退
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -314,10 +322,9 @@
|
|
|
|
|
import {
|
|
|
|
|
stockOrderList, stockOrderDetail,
|
|
|
|
|
deleteStockOrderById, deleteStockOrderDetailById,
|
|
|
|
|
copyStockOrderDetail, submitStockOrder,
|
|
|
|
|
uploadStockOrderDetail, uploadStockOrderDetailCount,
|
|
|
|
|
generateStockOrderQRCodeText, supplementOrder,
|
|
|
|
|
updateStockOrderDetail
|
|
|
|
|
copyStockOrderDetail, uploadStockOrderDetail,
|
|
|
|
|
supplementOrder, updateStockOrderDetail,
|
|
|
|
|
rollbackOrder
|
|
|
|
|
} from "../../api/warehouse/stockOrder";
|
|
|
|
|
import stockOrderDistribution from "./stockOrderDistribution";
|
|
|
|
|
import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
|
|
|
|
@ -899,6 +906,22 @@ export default {
|
|
|
|
|
message: '取消补单'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
rollback(row) {
|
|
|
|
|
this.$confirm('此操作将回退单据, 是否继续?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
let param = {billNo: row.billNo};
|
|
|
|
|
rollbackOrder(param).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.$message.success("回退成功");
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message.info('回退失败');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|