Browse Source

修改任务状态更新

wms3.0_pda
lijuncheng 8 months ago
parent
commit
81f2cbe9c8
  1. 8
      pages/count/job/countDetail.vue
  2. 8
      pages/customerReturn/job/returnDetail.vue
  3. 9
      pages/deliver/job/deliverDetail.vue
  4. 6
      pages/inspect/job/inspectFullDetail.vue
  5. 6
      pages/inspect/job/inspectResult.vue
  6. 8
      pages/inventoryMove/job/inventoryMoveDetail.vue
  7. 6
      pages/issue/job/issueDetail.vue
  8. 6
      pages/productPutaway/job/productPutawayDetail.vue
  9. 8
      pages/productReceipt/job/productReceiptDetail.vue
  10. 6
      pages/productionReceipt/job/productionReceiptDetail.vue
  11. 8
      pages/productionReturn/job/returnDetail.vue
  12. 10
      pages/purchaseReceipt/job/receiptDetail.vue
  13. 8
      pages/purchaseReturn/job/returnDetail.vue
  14. 6
      pages/putaway/job/putawayDetail.vue
  15. 6
      pages/repleinsh/job/repleinshDetail.vue
  16. 8
      pages/scrap/job/scrapJobDetail.vue
  17. 8
      pages/transfer/job/issueDetail.vue
  18. 8
      pages/transfer/job/receiptDetail.vue
  19. 8
      pages/unPlanned/job/issueJobDetail.vue
  20. 8
      pages/unPlanned/job/receiptJobDetail.vue

8
pages/count/job/countDetail.vue

@ -103,7 +103,6 @@
return {
id: '',
receiptJob: {},
received: false,
fromLocationCode: '',
isShowPackingCode: true,
scanCount: 0,
@ -114,7 +113,8 @@
editInventoryStatus: false,
package: {}, //
label: {}, //
currentEditItem: {}
currentEditItem: {},
jobStatus:""
};
},
onLoad(option) {
@ -123,7 +123,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -141,7 +140,7 @@
onBackPress(e) {
//
if (e.from === 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeCountJob(this.id).then(res => {
uni.navigateBack();
@ -187,6 +186,7 @@
that.showMessage('未获取到详情');
} else {
that.jobContent = res.data;
that.jobStatus = res.data.status;
that.fromLocationCode = that.jobContent.locationCode;
that.subList = res.data.subList;
that.detailSource = that.getDataSource(that.subList)

8
pages/customerReturn/job/returnDetail.vue

@ -82,7 +82,6 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
@ -92,6 +91,7 @@
toLocationCode: "",
toLocationInfo: {},
tolocationTypeList: [],
jobStatus:""
};
},
onLoad(option) {
@ -100,7 +100,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -118,7 +117,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeCustomerReturnJob(this.id).then(res => {
uni.navigateBack();
@ -167,8 +166,9 @@
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList)
that.jobStatus = res.data.status
that.detailSource = getDataSource(that.subList)
that.fromLocationCode = that.subList[0].fromLocationCode
that.toLocationCode = that.subList[0].toLocationCode
that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)

9
pages/deliver/job/deliverDetail.vue

@ -104,8 +104,8 @@
detailOptions: [],
scanOptions: [],
status: "",
received: false,
toLocationCode: ""
toLocationCode: "",
jobStatus:""
};
},
@ -119,7 +119,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -138,7 +137,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeDeliverJob(this.id).then(res => {
uni.navigateBack();
@ -179,6 +178,8 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status;
that.subList = res.data.subList;
that.detailSource = getDataSource(that.detailSource, that.subList)
that.toLocationCode = that.subList[0].toLocationCode

6
pages/inspect/job/inspectFullDetail.vue

@ -91,7 +91,6 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
@ -100,6 +99,7 @@
fromInventoryStatuses: "",
managementList: [],
selectedItem: {},
jobStatus:""
};
},
onLoad(option) {
@ -108,7 +108,6 @@
// //
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -127,7 +126,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeInspectJob(this.id).then(res => {
uni.navigateBack();
@ -204,6 +203,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
this.jobContent.failedQty = 0;
this.jobContent.crackQty = 0;
this.jobContent.notPassedQty = 0;

6
pages/inspect/job/inspectResult.vue

@ -173,7 +173,6 @@
failedReasonArray: [],
nextStep: '',
submitting: false,
received: false,
locations: [],
value: ['0'],
jobContent: {}, //
@ -181,6 +180,7 @@
detailSource: [], //
nextActionList: [],
nextAction: null,
jobStatus:""
}
},
@ -199,7 +199,6 @@
// //
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -210,7 +209,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeInspectJob(this.id).then(res => {
uni.navigateBack();
@ -257,6 +256,7 @@
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.detailList = res.data.subList;
that.jobStatus = res.data.status
that.inspectType = that.jobContent.inspectType;
that.jobContent.goodQty = null, //
that.jobContent.failedQty = null, //

8
pages/inventoryMove/job/inventoryMoveDetail.vue

@ -92,7 +92,6 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
@ -103,7 +102,8 @@
managementList: [],
businessTypeCode: '',
toLocationCode: '',
toInventoryStatus: ''
toInventoryStatus: '',
jobStatus:""
};
},
props: {
@ -116,7 +116,6 @@
// //
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -135,7 +134,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeInventoryMoveJob(this.id).then(res => {
uni.navigateBack();
@ -223,6 +222,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList)
} else {

6
pages/issue/job/issueDetail.vue

@ -95,7 +95,7 @@
detailSource: [], //
detailOptions: [],
scanOptions: [],
received:false
jobStatus:""
};
},
@ -109,7 +109,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -128,7 +127,7 @@
onBackPress(e) {
//
if (e.from === 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeIssueJob(this.id).then(res => {
uni.navigateBack();
@ -192,6 +191,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.detailSource = getDataSource(that.detailSource, that.subList)

6
pages/productPutaway/job/productPutawayDetail.vue

@ -102,7 +102,6 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
@ -112,6 +111,7 @@
toLocationCode: "",
toLocationInfo: {},
tolocationTypeList: [],
jobStatus:""
};
},
onLoad(option) {
@ -120,7 +120,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -138,7 +137,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeProductPutawayJob(this.id).then(res => {
uni.navigateBack();
@ -183,6 +182,7 @@
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.subList = res.data.subList;
that.jobStatus = res.data.status
that.fromLocationCode = that.subList[0].fromLocationCode
that.toLocationCode = that.subList[0].toLocationCode
that.tolocationTypeList = getLocationTypeArray(that.jobContent.toLocationTypes)

8
pages/productReceipt/job/productReceiptDetail.vue

@ -97,7 +97,6 @@
return {
id: '',
receiptJob: {},
received: false,
toLocationCode: '',
isShowPackingCode: true,
scanCount: 0,
@ -105,7 +104,8 @@
subList: [], //subList
detailSource: [], //
toLocationTypeList: [],
managementList: []
managementList: [],
jobStatus:""
};
},
@ -115,7 +115,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -134,7 +133,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeProductReceiptJob(this.id).then(res => {
uni.navigateBack();
@ -184,6 +183,7 @@
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.subList = res.data.subList;
that.jobStatus = res.data.status
that.toLocationCode = that.subList[0].toLocationCode
that.toLocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
that.detailSource = getDataSource(that.subList)

6
pages/productionReceipt/job/productionReceiptDetail.vue

@ -100,7 +100,6 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
@ -109,6 +108,7 @@
fromLocationCode: "",
toLocationCode: "",
tolocationTypeList: [],
jobStatus:""
};
},
onLoad(option) {
@ -117,7 +117,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -135,7 +134,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeProductionReceiptJob(this.id).then(res => {
uni.navigateBack();
@ -179,6 +178,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.fromLocationCode = that.subList[0].fromLocationCode
that.toLocationCode = that.subList[0].toLocationCode

8
pages/productionReturn/job/returnDetail.vue

@ -104,7 +104,6 @@
return {
id: '',
jobContent: {},
received: false,
toLocationCode: '',
scanCount: 0,
jobContent: {}, //
@ -115,7 +114,8 @@
toLocationTypeList: [],
toLocationInfo: {},
businessTypeInfo: {},
titleInfo: ""
titleInfo: "",
jobStatus:""
};
},
onLoad(option) {
@ -124,7 +124,6 @@
// //
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -142,7 +141,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeProductionReturnJob(this.id).then(res => {
uni.navigateBack();
@ -190,6 +189,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList)

10
pages/purchaseReceipt/job/receiptDetail.vue

@ -95,7 +95,6 @@
return {
id: '',
receiptJob: {},
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
@ -104,7 +103,8 @@
toLocationCode: '',
toLocationInfo: {},
businessTypeInfo: {},
managementList: []
managementList: [],
jobStatus:""
};
},
onLoad(option) {
@ -113,7 +113,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -131,7 +130,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakePurchaseReceiptJob(this.id).then(res => {
uni.navigateBack();
@ -187,7 +186,8 @@
that.toLocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes);
// that.jobContent.toLocationTypeList = that.toLocationTypeList;
that.subList = res.data.subList;
this.toLocationCode = that.subList[0].toLocationCode
that.jobStatus = res.data.status
that.toLocationCode = that.subList[0].toLocationCode
that.detailSource = getDataSource(that.subList)
} else {
that.showMessage('列表数据为0');

8
pages/purchaseReturn/job/returnDetail.vue

@ -90,13 +90,13 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
detailSource: [], //
businessTypeInfo: {},
managementList: []
managementList: [],
jobStatus:""
};
},
onLoad(option) {
@ -105,7 +105,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -123,7 +122,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakePurchasereturnJob(this.id).then(res => {
uni.navigateBack();
@ -179,6 +178,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.toLocationCode = that.jobContent.toLocationCode
that.detailSource = getDataSource(that.subList);

6
pages/putaway/job/putawayDetail.vue

@ -97,7 +97,6 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
@ -106,6 +105,7 @@
fromLocationCode: "",
toLocationCode: "",
tolocationTypeList: [],
jobStatus:""
};
},
onLoad(option) {
@ -114,7 +114,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -132,7 +131,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakePutawayJob(this.id).then(res => {
uni.navigateBack();
@ -180,6 +179,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList)

6
pages/repleinsh/job/repleinshDetail.vue

@ -100,7 +100,7 @@
scanOptions: [],
toLocationCode: '',
tolocationTypeList: [],
received:false,
jobStatus:""
};
},
@ -114,7 +114,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -133,7 +132,7 @@
onBackPress(e) {
//
if (e.from === 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeRepleinshJob(this.id).then(res => {
uni.navigateBack();
@ -183,6 +182,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.toLocationCode = that.subList[0].toLocationCode
that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)

8
pages/scrap/job/scrapJobDetail.vue

@ -86,14 +86,14 @@
return {
id: '',
receiptJob: {},
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
detailSource: [], //
toLocationInfo: {},
businessTypeInfo: {},
managementList: []
managementList: [],
jobStatus:""
};
},
onLoad(option) {
@ -102,7 +102,6 @@
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -120,7 +119,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeScrapJob(this.id).then(res => {
uni.navigateBack();
@ -173,6 +172,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList)
} else {

8
pages/transfer/job/issueDetail.vue

@ -92,7 +92,6 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
@ -100,7 +99,8 @@
toLocationCode: "",
businessTypeInfo: {},
managementList: [],
tolocationTypeList:[]
tolocationTypeList:[],
jobStatus:""
};
},
onLoad(option) {
@ -109,7 +109,6 @@
// //
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -127,7 +126,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeTransferIssueJob(this.id).then(res => {
uni.navigateBack();
@ -182,6 +181,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList =res.data.subList
that.detailSource = getDataSource(that.subList)
that.fromLocationCode = that.subList[0].fromLocationCode

8
pages/transfer/job/receiptDetail.vue

@ -101,7 +101,6 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
@ -109,7 +108,8 @@
toLocationCode: "",
businessTypeInfo: {},
managementList: [],
toLocationTypeList: []
toLocationTypeList: [],
jobStatus:""
};
},
onLoad(option) {
@ -118,7 +118,6 @@
// //
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -136,7 +135,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeTransferReceiptJob(this.id).then(res => {
uni.navigateBack();
@ -192,6 +191,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList)
that.fromLocationCode = that.subList[0].fromLocationCode

8
pages/unPlanned/job/issueJobDetail.vue

@ -87,13 +87,13 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
detailSource: [], //
businessTypeInfo: {},
managementList: []
managementList: [],
jobStatus:""
};
},
onLoad(option) {
@ -102,7 +102,6 @@
// //
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -120,7 +119,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeUnPlannedIssueJob(this.id).then(res => {
uni.navigateBack();
@ -167,6 +166,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList)
} else {

8
pages/unPlanned/job/receiptJobDetail.vue

@ -88,7 +88,6 @@
data() {
return {
id: '',
received: false,
scanCount: 0,
jobContent: {}, //
subList: [], //subList
@ -97,7 +96,8 @@
toLocationCode: '',
toLocationInfo: {},
businessTypeInfo: {},
managementList: []
managementList: [],
jobStatus:""
};
},
onLoad(option) {
@ -106,7 +106,6 @@
// //
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
@ -124,7 +123,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.received) {
if (this.jobStatus=="2") {
//
cancleTakeUnPlannedReceiptJob(this.id).then(res => {
uni.navigateBack();
@ -167,6 +166,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status
that.toLocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes);
that.subList = res.data.subList;
this.toLocationCode = that.subList[0].toLocationCode

Loading…
Cancel
Save