diff --git a/api/httpRequest3.js b/api/httpRequest3.js
index d51a546d..aeec1a3e 100644
--- a/api/httpRequest3.js
+++ b/api/httpRequest3.js
@@ -27,27 +27,27 @@ function service(options = {}) {
if(res.data.code==0){
resolve(res.data);
}else {
- reject( res.data.msg)
+ reject("系统:"+res.data.msg)
}
}else {
- reject( res.data.msg)
+ reject("系统:"+ res.data.msg)
}
} else {
- reject(res.data.msg)
+ reject("系统:"+res.data.msg)
}
};
options.fail = (error) => {
var message = error.errMsg
if (message === 'Network Error') {
- message = '后端接口连接异常'
+ message = '接口连接异常'
} else if (message.includes('timeout')) {
- message = '系统接口请求超时'
+ message = '接口请求超时'
} else if (message.includes('Request failed with status code')) {
- message = '系统接口' + message.substr(message.length - 3) + '异常'
+ message = '接口' + message.substr(message.length - 3) + '异常'
}
- reject(message);
+ reject("系统:"+message);
};
uni.request(options);
});
diff --git a/pages/productionReturn/coms/comReturnDetailCard.vue b/pages/productionReturn/coms/comReturnDetailCard.vue
new file mode 100644
index 00000000..1aff431e
--- /dev/null
+++ b/pages/productionReturn/coms/comReturnDetailCard.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/productionReturn/coms/returnDetailInfoPopup.vue b/pages/productionReturn/coms/returnDetailInfoPopup.vue
new file mode 100644
index 00000000..d01fcc04
--- /dev/null
+++ b/pages/productionReturn/coms/returnDetailInfoPopup.vue
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+ 标包数量 :
+ {{dataContent.stdPackQty}}
+
+
+ 标包单位 :
+ {{getStdPackUnitInfo(dataContent.stdPackUnit)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/productionReturn/job/returnDetail.vue b/pages/productionReturn/job/returnDetail.vue
index ac488a07..42a8aa97 100644
--- a/pages/productionReturn/job/returnDetail.vue
+++ b/pages/productionReturn/job/returnDetail.vue
@@ -7,17 +7,37 @@
-
-
+
+
+
+ 车间
+ {{jobContent.workshopCode}}
+
+
+ 生产线
+ {{titleInfo.productionLineCode}}
+
+
+ 工位
+ {{ titleInfo.workStationCode }}
+
+
+ 原材料库
+ {{ titleInfo.toLocationCode}}
+
+
+
+
+
+
-
-
+
+
@@ -29,8 +49,8 @@
style="background-color:ghostwhite; width: 100%; ">
+ :isShowEdit="jobContent.allowModifyLocation=='TRUE'" @getLocation='scanLocationCode'
+ :locationTypeList="toLocationTypeList">
@@ -78,7 +98,7 @@
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import requiredLocation from '@/mycomponents/location/requiredLocation.vue'
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
- import comDetailCard from "@/mycomponents/detail/comDetailCard.vue"
+ import comReturnDetailCard from "@/pages/productionReturn/coms/comReturnDetailCard.vue"
import detailInfoPopup from '@/pages/productionReturn/coms/detailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
@@ -91,7 +111,7 @@
requiredLocation,
// winScanPackAndLocation,
winScanPack,
- comDetailCard,
+ comReturnDetailCard,
detailInfoPopup,
comMessage,
jobTop
@@ -109,9 +129,10 @@
detailSource: [], //绑定在页面上的数据源
fromLocationCode: '',
toLocationCode: '',
- tolocationTypeList: [],
+ toLocationTypeList: [],
toLocationInfo: {},
- businessTypeInfo: {}
+ businessTypeInfo: {},
+ titleInfo: ""
};
},
onLoad(option) {
@@ -192,6 +213,7 @@
that.fromLocationCode = that.subList[0].fromLocationCode
that.toLocationCode = that.subList[0].toLocationCode
that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
+ that.titleInfo = that.subList[0];
} else {
that.showMessage('列表数据为0');
}
@@ -278,11 +300,12 @@
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.package.qty)
+ itemDetail.inventoryStatus = "OK"
itemDetail.stdPackQty = result.package.stdPackQty
itemDetail.stdPackUnit = result.package.stdPackUnit
this.calcHandleQty();
-
-
+
+
//合格退料时不能查库存余额,因为生产退料时新生成的批次是000000 --nxt
// let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
// let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
diff --git a/pages/repleinsh/job/repleinshDetail.vue b/pages/repleinsh/job/repleinshDetail.vue
index 08437cf9..a4a1f3ed 100644
--- a/pages/repleinsh/job/repleinshDetail.vue
+++ b/pages/repleinsh/job/repleinshDetail.vue
@@ -57,7 +57,7 @@
getDirectoryItemArray,
getPackingNumberAndBatch,
} from '@/common/basic.js';
-
+
import {
getDataSource
} from '@/pages/issue/js/issue.js';
@@ -198,6 +198,7 @@
submit() {
+
uni.showLoading({
title: "提交中....",
mask: true
diff --git a/pages/unPlanned/job/receiptJobDetail.vue b/pages/unPlanned/job/receiptJobDetail.vue
index 43ae3769..a8a18ab0 100644
--- a/pages/unPlanned/job/receiptJobDetail.vue
+++ b/pages/unPlanned/job/receiptJobDetail.vue
@@ -87,7 +87,6 @@
data() {
return {
id: '',
- receiptJob: {},
received: false,
scanCount: 0,
jobContent: {}, //任务内容
@@ -231,6 +230,7 @@
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
itemDetail.toLocationCode = this.toLocationCode;
+ itemDetail.stdPackQty = result.package.stdPackQty
itemDetail.labelQty = Number(result.label.qty);
calcHandleQty(this.detailSource);
this.continueScan()
diff --git a/static/config.json b/static/config.json
index f1ce854b..7426682e 100644
--- a/static/config.json
+++ b/static/config.json
@@ -18,7 +18,7 @@
"request_url": {
"name": "request_url",
- "value": "http://192.168.0.180:12080/admin-api",
+ "value": "http://dev.ccwin-in.com:25100/api/admin-api",
"dev2": "http://192.168.0.157:12080/admin-api",
"chefang": "http://192.168.0.180:12080/admin-api",
"chenxinming": "http://192.168.0.230:12080/admin-api",