diff --git a/api/request2.js b/api/request2.js
index dc99bdff..e1b48b61 100644
--- a/api/request2.js
+++ b/api/request2.js
@@ -373,6 +373,16 @@ export function getWorkShopLineStation() {
});
}
+/**
+ * 查询客户物品
+ */
+export function getCustomerItemList(params) {
+ return request({
+ url: baseApi + "/wms/customeritem/senior",
+ method: "post",
+ data: params,
+ });
+}
diff --git a/mycomponents/popup/selectList.vue b/mycomponents/popup/selectList.vue
index 998412ec..a5069733 100644
--- a/mycomponents/popup/selectList.vue
+++ b/mycomponents/popup/selectList.vue
@@ -31,7 +31,8 @@
+
+
diff --git a/pages/deliver/coms/comDeliverRequestPopup.vue b/pages/deliver/coms/comDeliverRequestPopup.vue
new file mode 100644
index 00000000..474c39f2
--- /dev/null
+++ b/pages/deliver/coms/comDeliverRequestPopup.vue
@@ -0,0 +1,272 @@
+
+
+
+
+
+
+
+ {{title}}
+
+
+
+
+
+
+
+ 客户 :
+
+
+ {{customerName}}
+
+
+
+
+
+
+
+
+ 零件 :
+
+
+
+
+
+
+
+
+
+
+ 数量 :
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/deliver/record/deliverRecord.vue b/pages/deliver/record/deliverRecord.vue
index 338dcbde..7dbe4113 100644
--- a/pages/deliver/record/deliverRecord.vue
+++ b/pages/deliver/record/deliverRecord.vue
@@ -8,7 +8,7 @@
-
@@ -32,6 +32,9 @@
+
@@ -101,27 +104,23 @@
received: false,
isShowPackingCode: true,
scanCount: 0,
- jobContent: {}, //任务内容
subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
locationTypeList: [],
- toLocationInfo: {},
businessTypeInfo: {},
fromLocationInfo: {},
fromLocationCode: "",
- toLocationInfo: {},
toLocationCode: "",
isShowLocation: false,
fromlocationTypeList: [],
tolocationTypeList: [],
allowModifyLocation: false,
- inInventoryStatus: "", //目标入库库存状态
- outInventoryStatus: "", //来源出库库存状态
businessType: {},
customerList: [],
customer: "",
fromType: "",
- showToLoaction: true
+ showToLoaction: true,
+ dataContent:{}
};
},
onLoad(option) {
@@ -168,8 +167,10 @@
methods: {
updateTitle() {
if (this.fromType == "requestType") {
+ this.showToLoaction = false
updateTitle("制品发货申请")
} else {
+ this.showToLoaction = true
updateTitle("制品发货记录")
}
},
@@ -179,14 +180,18 @@
let balance = result.balance;
let label = result.label;
let pack = result.package;
+ let labelQty =result.label.qty;
+ let balanceQty =result.balance.qty;
var item = this.detailSource.find(res => {
if (res.itemCode == balance.itemCode) {
return res
}
})
+ var qty =labelQty>balanceQty?balanceQty:labelQty
if (item == undefined) {
- var itemp = createItemInfo(balance, pack);
+ var itemp = createItemInfo(qty, pack);
let newDetail = createDetailInfo(balance, pack); //
+ if(labelQty)
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
@@ -246,6 +251,17 @@
}
this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
},
+
+ scanLocationCode(location, code) {
+ this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
+ this.toLocationCode = code
+ this.detailSource.forEach(item => {
+ item.subList.forEach(detail => {
+ detail.toLocationCode = code
+ })
+ })
+ })
+ },
showFromLocationPopup() {
this.$nextTick(() => {
this.$refs.scanLocationCode.openScanPopup();
@@ -278,19 +294,19 @@
return;
}
console.log("客户", this.customer)
- if (this.toLocationCode == "") {
+ if (this.toLocationCode == ""&&this.showToLoaction) {
this.showMessage("请先选择目标库位")
return;
}
- //允许部分提交
uni.showLoading({
title: "提交中....",
mask: true
});
- var params = this.setParams();
- console.log("提交" + JSON.stringify(params))
+
if (this.fromType == "requestType") {
+ var params = this.setRequestParams();
+ console.log("提交" + JSON.stringify(params))
// deliverRequestSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
@@ -325,8 +341,6 @@
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
- // var subItem = {};
- // Object.assign(subItem, detail)
detail.toPackingNumber = detail.packingNumber;
detail.toContainerNumber = detail.containerNumber
detail.toBatch = detail.toBatch;
@@ -337,9 +351,47 @@
}
})
})
- this.jobContent.subList = subList
- this.jobContent.creator = creator;
- return this.jobContent;
+ this.dataContent.subList = subList
+ this.dataContent.creator = creator;
+ return this.dataContent;
+ },
+
+ setRequestParams(){
+ var subList = []
+ var supplierCode=""
+ this.detailSource.forEach(item => {
+ item.subList.forEach(detail => {
+ if (detail.scaned) {
+ detail.soNumber =detail.package.soNumber;
+ detail.soLine = detail.soLine.soNumber;
+ // soNumber: 926926926,
+ // soLine: 926,
+ // itemCode: THILDD0A691AG,
+ // remark: ,
+ // qty: 2,
+ // uom: EA
+ subList.push(detail)
+ }
+ })
+ })
+
+ this.dataContent.subList = subList
+ this.dataContent.deliverPlanNumber = "DP20231130-0001"
+ this.dataContent.customerCode = "CF"
+ this.dataContent.customerDockCode = ""
+ this.dataContent.carrierCode = ""
+ this.dataContent.transferMode = ""
+ this.dataContent.vehiclePlateNumber = ""
+ this.dataContent.remark = ""
+ this.dataContent.dueTime = ""
+ this.dataContent.departmentCode = "研发部门"
+ this.dataContent.status = 1
+ this.dataContent.autoCommit = "FALSE"
+ this.dataContent.autoAgree = "FALSE"
+ this.dataContent.autoExecute = "FALSE"
+ this.dataContent.directCreateRecord = "FALSE"
+
+ return this.dataContent;
},
showMessage(message) {
diff --git a/pages/deliver/request/deliverRequest.vue b/pages/deliver/request/deliverRequest.vue
index fd05e66b..2554664d 100644
--- a/pages/deliver/request/deliverRequest.vue
+++ b/pages/deliver/request/deliverRequest.vue
@@ -193,7 +193,7 @@
openScanDetailPopup() {
uni.navigateTo({
- url: "../record/deliverRecord?fromType=" + this.fromType
+ url: "./deliverRequestCreate"
})
},
diff --git a/pages/deliver/request/deliverRequestCreate.vue b/pages/deliver/request/deliverRequestCreate.vue
new file mode 100644
index 00000000..76134316
--- /dev/null
+++ b/pages/deliver/request/deliverRequestCreate.vue
@@ -0,0 +1,222 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/purchaseReturn/record/returnRecord.vue b/pages/purchaseReturn/record/returnRecord.vue
index 50382afb..d0aa5b87 100644
--- a/pages/purchaseReturn/record/returnRecord.vue
+++ b/pages/purchaseReturn/record/returnRecord.vue
@@ -321,6 +321,9 @@
})
this.dataContent.subList = subList
+ this.dataContent.purchaseReceiptRecordNumber="";
+ this.transferMode ="";
+
this.dataContent.supplierCode = supplierCode
this.dataContent.businessType = "PurchasePutaway"
this.dataContent.departmentCode= "研发部门";
diff --git a/static/config.json b/static/config.json
index 0e975816..2f6ce912 100644
--- a/static/config.json
+++ b/static/config.json
@@ -18,8 +18,9 @@
"request_url": {
"name": "request_url",
- "value": "http://dev.ccwin-in.com:25100/api/admin-api",
+ "value": "http://192.168.0.178:12080/admin-api",
"dev2":"http://192.168.0.157:12080/admin-api",
+ "chefang":"http://192.168.0.178:12080/admin-api",
"dev":"http://dev.ccwin-in.com:25100/api/admin-api",
"local":"http://localhost:12080",
"desc": "api请求地址"