Browse Source

修改库存转移

wms3.0_pda
lijuncheng 11 months ago
parent
commit
8fccaccba4
  1. 10
      api/request2.js
  2. 29
      pages/inventoryMove/coms/comMoveJob.vue
  3. 15
      pages/inventoryMove/job/inventoryMoveDetail.vue

10
api/request2.js

@ -1095,26 +1095,26 @@ export function getInventoryMoveJobDetail(id) {
} }
/** /**
* 生产收料 任务承接 * 库存转移任务 任务承接
* @param {*} id * @param {*} id
* *
*/ */
export function takeInventoryMoveJob(id) { export function takeInventoryMoveJob(id) {
return request({ return request({
url: baseApi + "/wms/purchasereceipt-job-main/accept?id=" + id, url: baseApi + "/wms/inventorymove-job-main/accept?id=" + id,
method: "put", method: "put",
data: {}, data: {},
}); });
} }
/** /**
* 生产收料 放弃承接 * 库存转移任务 放弃承接
* @param {*} id * @param {*} id
* *
*/ */
export function cancleTakeInventoryMoveJob(id) { export function cancleTakeInventoryMoveJob(id) {
return request({ return request({
url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id, url: baseApi + "/wms/inventorymove-job-main/abandon?id=" + id,
method: "put", method: "put",
data: {}, data: {},
}); });
@ -1652,7 +1652,7 @@ export function cancleTakeProductPutawayJob(id) {
*/ */
export function productPutawayJobSubmit(params) { export function productPutawayJobSubmit(params) {
return request({ return request({
url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit", url: baseApi + "/wms/productputaway-job-main/execute",
method: "put", method: "put",
data: params, data: params,
}); });

29
pages/inventoryMove/coms/comMoveJob.vue

@ -28,12 +28,9 @@
</template> </template>
<script> <script>
import {
getInventoryMoveJobByNumber,
cancelTakeJob
} from '@/api/request.js';
import { import {
getInventoryMoveJobList, getInventoryMoveJobList,
cancleTakeInventoryMoveJob
} from '@/api/request2.js'; } from '@/api/request2.js';
import { import {
@ -226,8 +223,7 @@
this.$refs.comMessage.showQuestionMessage("确定要放弃当前任务?", this.$refs.comMessage.showQuestionMessage("确定要放弃当前任务?",
res => { res => {
if (res) { if (res) {
var id = dataContent.id this.cancleJob(dataContent.id);
this.cancleJob(id);
} }
}); });
} }
@ -238,20 +234,17 @@
}, },
cancleJob(id) { cancleJob(id) {
var data = { cancleTakeInventoryMoveJob(id).then(res => {
jobStatusId: id, if(res.data){
jobStatusTableName: "win_job_inventorymove_main",
jobStatusTableNameDetail: "win_job_inventorymove_detail",
jobStatusSchemaCode: "inventorymovejob",
}
cancelTakeJob(data).then(res => {
this.getList("refresh") this.getList("refresh")
}).catch(res => { uni.showToast({
this.$refs.comMessage.showErrorMessage(message, res => { title:"放弃任务成功"
if (res) { })
}else {
this.showMessage("放弃任务失败")
} }
}); }).catch(error => {
this.showMessage(error)
}) })
}, },

15
pages/inventoryMove/job/inventoryMoveDetail.vue

@ -95,15 +95,14 @@
this.id = option.id; this.id = option.id;
if (this.id != undefined) { if (this.id != undefined) {
// // // //
// if (option.status == "JOB_PENDING") { if (option.status == "1") {
// this.receive((callback => { this.receive((callback => {
// this.received = true; this.received = true;
// this.getDetail();
// }));
// } else {
// this.getDetail();
// }
this.getDetail(); this.getDetail();
}));
} else {
this.getDetail();
}
} }
}, },
// //

Loading…
Cancel
Save