Browse Source

修改任务状态更新

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

8
pages/customerReturn/job/returnDetail.vue

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

9
pages/deliver/job/deliverDetail.vue

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

6
pages/inspect/job/inspectFullDetail.vue

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

6
pages/inspect/job/inspectResult.vue

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

8
pages/inventoryMove/job/inventoryMoveDetail.vue

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

6
pages/issue/job/issueDetail.vue

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

6
pages/productPutaway/job/productPutawayDetail.vue

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

8
pages/productReceipt/job/productReceiptDetail.vue

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

6
pages/productionReceipt/job/productionReceiptDetail.vue

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

8
pages/productionReturn/job/returnDetail.vue

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

10
pages/purchaseReceipt/job/receiptDetail.vue

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

8
pages/purchaseReturn/job/returnDetail.vue

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

6
pages/putaway/job/putawayDetail.vue

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

6
pages/repleinsh/job/repleinshDetail.vue

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

8
pages/scrap/job/scrapJobDetail.vue

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

8
pages/transfer/job/issueDetail.vue

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

8
pages/transfer/job/receiptDetail.vue

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

8
pages/unPlanned/job/issueJobDetail.vue

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

8
pages/unPlanned/job/receiptJobDetail.vue

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

Loading…
Cancel
Save