Browse Source

修改库存转移

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

12
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: {},
}); });
@ -1646,13 +1646,13 @@ export function cancleTakeProductPutawayJob(id) {
/** /**
* 制品上架 任务提交 * 制品上架任务 提交
* @param {*} 任务id * @param {*} 任务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,
}); });

33
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", this.getList("refresh")
jobStatusTableNameDetail: "win_job_inventorymove_detail", uni.showToast({
jobStatusSchemaCode: "inventorymovejob", title:"放弃任务成功"
} })
cancelTakeJob(data).then(res => { }else {
this.getList("refresh") this.showMessage("放弃任务失败")
}).catch(res => { }
this.$refs.comMessage.showErrorMessage(message, res => { }).catch(error => {
if (res) { this.showMessage(error)
}
});
}) })
}, },

17
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(); this.getDetail();
// })); }));
// } else { } else {
// this.getDetail(); this.getDetail();
// } }
this.getDetail();
} }
}, },
// //

Loading…
Cancel
Save