1.增加单据回退接口

featFunction
x_z 3 years ago
parent 386287656f
commit e96c1432bd

@ -287,6 +287,14 @@ export function findOrderByStockOrder(query) {
});
}
export function rollbackOrder(params) {
return axios({
url: "/udiwms/stock/order/rollback",
method: "get",
params: params
});
}

@ -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: {

@ -133,6 +133,13 @@
</el-button
>
<el-button
type="text"
size="small"
@click.native="rollback(scope.row)"
>回退
</el-button>
</template>
</el-table-column>
</el-table>
@ -460,7 +467,7 @@ import {
deleteStockOrderById, deleteStockOrderDetailById,
copyStockOrderDetail,
uploadStockOrderDetail,
updateStockOrderDetail, updateStatus
updateStockOrderDetail, updateStatus, rollbackOrder
} from "../../api/warehouse/stockOrder";
import stockOrderDistribution from "./stockOrderDistribution";
import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
@ -1036,6 +1043,22 @@ export default {
.catch(() => {
});
},
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: {

Loading…
Cancel
Save