-
提交订单
@@ -22,7 +22,7 @@
-
@@ -30,10 +30,11 @@
@@ -44,7 +45,7 @@
-
@@ -61,10 +62,9 @@
-
-
-
-
-
@@ -180,13 +180,13 @@
-
+
-
+
-
+
@@ -301,22 +301,27 @@ export default {
data() {
return {
- formData: {
+ //单据相关
+ orderFormData: {
billNo: null,
corpOrderId: null,
action: null,
- createTime: new Date(),
invCode: null,
fromCorp: null,
fromInvCode: null,
remark: null,
- code: "",
fromType: 2,
+ },
+
+ //扫码相关
+ codeFormData: {
+ code: "",
batchNo: null,
produceDate: null,
expireDate: null,
serialNo: null,
},
+
curInvOptions: [],
busTypeOptions: [],
fromInvOptions: [],
@@ -348,12 +353,8 @@ export default {
formVisible: false,
deleteLoading: false,
orderNo: null,
-
fromStorageOptions: [],
-
-
curRow: null,
-
dialogTableVisible: false,
sitcomScan: false,
selectRlTitle: "绑定产品",
@@ -382,7 +383,7 @@ export default {
.then((response) => {
this.curInvOptions = response.data || [];
if (this.curInvOptions != null && this.curInvOptions.length == 1) {
- this.formData.invWarehouseCode = this.curInvOptions[0].code;
+ this.orderFormData.invWarehouseCode = this.curInvOptions[0].code;
this.getBusTypeByInv()
}
})
@@ -392,14 +393,14 @@ export default {
//仓库改变
changeInv() {
- this.formData.action = null;
+ this.orderFormData.action = null;
this.getBusTypeByInv();
},
//根据仓库,用户获取单据类型
getBusTypeByInv() {
let query = {
- code: this.formData.invCode,
+ code: this.orderFormData.invCode,
};
findByInvUser(query)
.then((response) => {
@@ -442,11 +443,11 @@ export default {
this.curAction = this.getActionItem(item);
if (this.curAction.corpType == 0 || this.curAction.corpType == 2 || (this.curAction.corpType == 1 && !this.curAction.genUnit)) {
//1.切换往来单位
- this.formData.fromCorp = null;
+ this.orderFormData.fromCorp = null;
this.findMethod();
} else if (this.curAction.corpType == 3) {
//2. 切换往来仓库
- this.formData.fromInvCode = null;
+ this.orderFormData.fromInvCode = null;
this.findFromInvList();
}
},
@@ -454,13 +455,13 @@ export default {
//获取往来仓库列表
findFromInvList(val) {
let cQuery = {
- locInvCode: this.formData.invCode,
+ locInvCode: this.orderFormData.invCode,
};
findByFrom(cQuery)
.then((response) => {
this.fromInvOptions = response.data || [];
if (val == 1) {
- this.formData.fromInvCode = this.fromInvOptions[0].code;
+ this.orderFormData.fromInvCode = this.fromInvOptions[0].code;
}
})
.catch(() => {
@@ -480,30 +481,28 @@ export default {
addCode(event) {
this.originCode = "";
this.sictomText = "";
- this.formData.corpOrderId = this.formData.corpOrderId.trim();
- this.formData.batchNo = "";
- this.formData.produceDate = "";
- this.formData.expireDate = "";
- this.formData.serialNo = "";
+ this.orderFormData.corpOrderId = this.orderFormData.corpOrderId.trim();
+ this.codeFormData.batchNo = "";
+ this.codeFormData.produceDate = "";
+ this.codeFormData.expireDate = "";
+ this.codeFormData.serialNo = "";
this.actionEnable = true;
if (event == null) {
} else event.target.select();
this.$refs.inputRef.select();
- if (this.$isBlank(this.formData.action)) {
+ if (this.$isBlank(this.orderFormData.action)) {
this.$message.warning("请选择单据类型!");
return;
}
- if (this.$isBlank(this.formData.corpOrderId)) {
+ if (this.$isBlank(this.orderFormData.corpOrderId)) {
let date = new Date();
- this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
+ this.orderFormData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
}
- this.formData.code = this.formData.code.trim();
- if (this.$isBlank(this.formData.code)) return;
+ this.codeFormData.code = this.codeFormData.code.trim();
+ if (this.$isBlank(this.codeFormData.code)) return;
this.loading = true;
- let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData)));
- tQuery.orderId = this.idQuery.id;
- tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}');
- tQuery.action = this.formData.action;
+ let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData)));
+ tQuery.code = this.codeFormData.code;
this.addCodeSubmit(tQuery);
this.$refs.inputRef.select();
},
@@ -565,10 +564,10 @@ export default {
} else if (response.code == 507) {
this.editOriginCodeVisible = true;
this.editTitle = response.message;
- this.formData.produceDate = response.data.produceDate;
- this.formData.expireDate = response.data.expireDate;
- this.formData.batchNo = response.data.batchNo;
- this.formData.serialNo = response.data.serialNo;
+ this.codeFormData.produceDate = response.data.produceDate;
+ this.codeFormData.expireDate = response.data.expireDate;
+ this.codeFormData.batchNo = response.data.batchNo;
+ this.codeFormData.serialNo = response.data.serialNo;
this.$message({
type: 'error',
message: "提交失败!" + this.editTitle,
@@ -592,32 +591,15 @@ export default {
refreshCodesPanel() {
this.isCodeAlive = false;
- this.idQuery =
this.$nextTick(() => { //重新加载组件
this.isCodeAlive = true
})
},
- submit(formName) {
- if (this.total < 1) {
- this.$message.error('未添加条码');
- return;
- }
- let tQuery = {
- orderId: this.idQuery.id,
- locStorageCode: this.formData.locStorageCode,
- invStorageCode: this.formData.invStorageCode,
- invWarehouseCode: this.formData.invWarehouseCode,
- fromInvCode: this.formData.fromInvCode,
- subInvCode: this.formData.subInvCode,
- action: this.formData.action,
- fromCorp: this.formData.fromCorp,
- fromCorpId: this.formData.fromCorpId,
- outChangeEnable: this.formData.outChangeEnable,
- preCheck: this.formData.preCheck,
- deptCode: this.formData.deptCode,
- }
+ submit() {
+ let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData)));
+ tQuery.orderId = this.idQuery.billNo;
submitOrderWeb(tQuery)
.then((response) => {
if (response.code === 20000) {
@@ -630,23 +612,8 @@ export default {
});
},
saveOrder() {
- if (this.total < 1) {
- this.$message.error('未添加条码');
- return;
- }
- if (this.formData.action == null || this.formData.action == '') {
- this.$message.error('未选择扫码单据类型');
- return
- }
-
-
- if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
- this.$message.error('当前分库不能为空');
- return;
- }
- let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData)));
+ let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData)));
tQuery.orderId = this.idQuery.billNo;
- tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}');
saveOrderWeb(tQuery).then((response) => {
if (response.code === 20000) {
this.closeDialog();
@@ -676,42 +643,40 @@ export default {
this.checkSuccess = true;
let tQuery = {
originCode: this.originCode,
- code: this.formData.code.trim(),
+ code: this.codeFormData.code.trim(),
}
enterCodeWeb(tQuery).then((response) => {
if (response.code === 20000) {
this.$refs.inputRef.focus();
this.$refs.inputRef.select();
- this.formData.code = response.data;
+ this.codeFormData.code = response.data;
this.addCode();
} else {
if (response.code == 502) {
this.checkSuccess = false;
- this.formData.code = response.data;
- this.originCode = this.formData.code;
+ this.codeFormData.code = response.data;
+ this.originCode = this.codeFormData.code;
} else if (response.code == 501) {
this.checkSuccess = false;
- // this.formData.code = response.data;
- // this.originCode = this.formData.code;
this.$message.error(response.message);
} else if (response.code == 503) {
this.checkSuccess = false;
- this.formData.code = response.data;
+ this.codeFormData.code = response.data;
this.$confirm(response.message, "提示", {
type: "warning",
})
.then(() => {
- this.formData.code = response.data;
+ this.codeFormData.code = response.data;
this.addCode();
})
.catch(() => {
- this.formData.code = this.originCode;
+ this.codeFormData.code = this.originCode;
});
} else if (response.code == 508) {
this.originCode = "";
- this.formData.code = "01" + response.data.nameCode;
- this.originCode = this.formData.code;
+ this.codeFormData.code = "01" + response.data.nameCode;
+ this.originCode = this.codeFormData.code;
} else {
this.$alert(response.message, '提示', {
confirmButtonText: '确定',
@@ -732,8 +697,8 @@ export default {
repeatAddCode(editData) {
let tQuery = editData;
tQuery.orderId = this.idQuery.id;
- tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}');
- tQuery.action = this.formData.action;
+ tQuery.actDate = parseTime(this.orderFormData.actDate, '{y}-{m}-{d} {h}:{i}:{s}');
+ tQuery.action = this.orderFormData.action;
this.closeCodeDialog();
this.addCodeSubmit(tQuery);
@@ -822,7 +787,7 @@ export default {
window.sc = new A.KeyScaner(inputer);//传入要监听的DOM节点
sc.onInput = function (text) {
if (text.includes("delete")) {
- that.formData.code = "";
+ that.codeFormData.code = "";
that.sictomText = "";
that.originCode = "";
return;
@@ -831,44 +796,34 @@ export default {
let tempTxt = text;
let str = tempTxt.replace(/[\r]/g, "");
that.sictomText = that.sictomText + str;
- that.formData.code = that.sictomText;
+ that.codeFormData.code = that.sictomText;
} else {
- that.formData.code = text;
- // setTimeout(function(){ that.formData.code = text; }, 3000);
-
-
+ that.codeFormData.code = text;
}
};
inputer.focus();
},
created() {
- this.formData.code = '';
+ this.codeFormData.code = '';
this.codeArray = [];
if (this.$isNotBlank(this.idQuery.billNo)) {
- this.formData.actDate = new Date(this.idQuery.actDate);
- this.formData.corpOrderId = this.idQuery.corpOrderId;
this.corpOrderIdDisabled = true;
- this.formData.action = this.idQuery.action;
- this.formData.fromCorp = this.idQuery.fromCorp;
- this.formData.deptCode = this.idQuery.deptCode
- this.formData.invCode = this.idQuery.invCode;
- this.formData.fromInvCode = this.idQuery.fromInvCode;
- this.formData.preCheck = this.idQuery.preCheck;
- this.formData.remark = this.idQuery.remark;
+ this.orderFormData = this.idQuery;
this.actionEnable = true;
this.refreshCodesPanel();
//选择框候选数据
this.findInvByUser();
this.getBusTypeByInv();
- this.findMethod(this.formData.fromCorp);
+ this.findMethod(this.orderFormData.fromCorp);
this.findFromInvList();
} else {
this.corpOrderIdDisabled = false;
- this.formData.actDate = new Date();
let date = new Date();
- this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
- this.formData.invCode = this.$store.getters.locInvCode;
+ this.orderFormData.createTime = parseTime(date, '{y}-{m}-{d} {h}:{i}:{s}');
+ this.orderFormData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
+ this.orderFormData.deptCode = this.$store.getters.deptCode;
+ this.orderFormData.invCode = this.$store.getters.locInvCode;
this.findInvByUser();
}
diff --git a/src/views/inout/IoCreateOrderBizDetail.vue b/src/views/inout/IoCreateOrderBizDetail.vue
index 143669d6..297c6f69 100644
--- a/src/views/inout/IoCreateOrderBizDetail.vue
+++ b/src/views/inout/IoCreateOrderBizDetail.vue
@@ -1,20 +1,33 @@
-
- 产品录入
-
-
+
+
+
+ 产品录入
+
+ 第三方单据选入
+
+
+
+
+
+
@@ -239,7 +252,7 @@ export default {
rowStyle({row, rowIndex}) {
let rowBackground = {};
- if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId)) {
+ if (!row.checkSuccess) {
rowBackground.color = '#f60303';
}
return rowBackground;
@@ -327,7 +340,8 @@ export default {
}
,
created() {
- this.getOrderDetails();
+ if (this.idQuery.billNo != null)
+ this.getOrderDetails();
}
,
}
diff --git a/src/views/inout/IoCreateOrderCodeDetail.vue b/src/views/inout/IoCreateOrderCodeDetail.vue
index 819b6314..eb94fd3d 100644
--- a/src/views/inout/IoCreateOrderCodeDetail.vue
+++ b/src/views/inout/IoCreateOrderCodeDetail.vue
@@ -91,7 +91,8 @@ export default {
},
},
created() {
- this.getOrderDetails();
+ if (this.idQuery.billNo != null)
+ this.getOrderDetails();
},
}
diff --git a/src/views/inout/IoCreateOrderCodes.vue b/src/views/inout/IoCreateOrderCodes.vue
index 5b68e513..33d45a75 100644
--- a/src/views/inout/IoCreateOrderCodes.vue
+++ b/src/views/inout/IoCreateOrderCodes.vue
@@ -200,7 +200,8 @@ export default {
},
},
created() {
- this.getCodeList();
+ if (this.idQuery.billNo != null)
+ this.getCodeList();
},
}
diff --git a/src/views/inout/IoNewOrder.vue b/src/views/inout/IoNewOrder.vue
index 4e46707b..d06acf70 100644
--- a/src/views/inout/IoNewOrder.vue
+++ b/src/views/inout/IoNewOrder.vue
@@ -122,7 +122,7 @@
删除
@@ -306,8 +306,7 @@ export default {
fromCorpId: "",
fromCorp: "",
},
- idQuery: {
- },
+ idQuery: {},
storageList: [],
subInvList: [],
errOrderVisible: false,
@@ -342,7 +341,7 @@ export default {
"11": "仓库盘点"
},
deleteData: {
- id: "",
+ billNo: "",
status: 10,
},
dialogTableVisible: false,
@@ -558,7 +557,7 @@ export default {
},
deleteOrders(data) {
this.loading = true;
- this.deleteData.id = data;
+ this.deleteData.billNo = data;
deleteByOrderId(this.deleteData)
.then((response) => {
diff --git a/src/views/inout/IoUnCheckedOrder.vue b/src/views/inout/IoUnCheckedOrder.vue
new file mode 100644
index 00000000..99d1b612
--- /dev/null
+++ b/src/views/inout/IoUnCheckedOrder.vue
@@ -0,0 +1,856 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 显示/隐藏搜索栏
+ 重置
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ fromTypeMap[scope.row.fromType] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.createTime }}
+
+
+
+
+ {{
+ checkStatus[scope.row.status]
+ }}
+
+
+
+
+
+ 编辑
+
+ 删除
+
+ 校验单据
+
+
+
+
+
+
+
+
+
+
+ 单据 {{ currentRow.billNo }}-业务详情
+
+
+
+
+
+
+
+ 重置
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+
+
+
+
+
+
+
+
+
+ 单据 {{ currentRow.billNo }}-扫码详情
+
+
+
+
+
+
+
+ 重置
+
+ 查询
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+
+
+
+
+
+
+
+
+
+ 单据 {{ currentRow.billNo }}-扫码明细
+
+
+
+
+
+
+
+ 重置
+
+ 查询
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/inout/stockOrderNewSelectProduct.vue b/src/views/inout/stockOrderNewSelectProduct.vue
index 2b409c27..45ffe0d3 100644
--- a/src/views/inout/stockOrderNewSelectProduct.vue
+++ b/src/views/inout/stockOrderNewSelectProduct.vue
@@ -1,126 +1,140 @@
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
+
-
-
+
+
+
+
-
-
+
+
+
+
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
- 查询
- 确定
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 详情
-
-
-
-
-
+
+
+
+
+
+ 显示/隐藏搜索栏
+ 重置
+ 查询
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
-
@@ -134,7 +148,6 @@
取 消
-
@@ -163,6 +176,7 @@ export default {
data() {
return {
loading: false,
+ showSearch: true,
listQuery: {
udiCode: null,
cpmctymc: null,
@@ -201,6 +215,10 @@ export default {
this.getList();
},
+ hideSearch() {
+ this.showSearch = !this.showSearch;
+ },
+
search() {
this.listQuery.page = 1;
this.getList();
@@ -257,7 +275,7 @@ export default {
if (this.currentCert == null) {
this.$message.error("请先选择对应的注册证!");
} else {
- this.multipleSelection.zczbhhzbapzbh = this.currentCert;
+ this.currentRow.zczbhhzbapzbh = this.currentCert;
this.combine();
}
},
diff --git a/src/views/system/dept/invRelUsers.vue b/src/views/system/dept/invRelUsers.vue
index a9fe949f..3cc0b7b1 100644
--- a/src/views/system/dept/invRelUsers.vue
+++ b/src/views/system/dept/invRelUsers.vue
@@ -205,12 +205,14 @@ export default {
limit: 10
};
},
- loadUserList(val) { //获取仓库用户列表
- if (val != null) {
- this.userQuery.page = val;
- }
+ loadUserList() { //获取仓库用户列表
+
+ // if (val != null) {
+ // this.userQuery.page = val;
+ // }
//加载用户数据
warehouseUserList(this.userQuery).then((res) => {
+
this.userData = res.data.list;
this.userTotal = res.data.total;
}).catch((error) => {
@@ -261,6 +263,10 @@ export default {
},
addUserData() { //提交选入用户
+ if(this.selectAddUser.length==0){
+ this.$message.error("请选择要选入的用户!");
+ return;
+ }
let query = {
code: this.currentCode,
userList: JSON.stringify(this.selectAddUser)
diff --git a/src/views/system/dept/invWarehouse.vue b/src/views/system/dept/invWarehouse.vue
index 52e2f210..7629b259 100644
--- a/src/views/system/dept/invWarehouse.vue
+++ b/src/views/system/dept/invWarehouse.vue
@@ -33,7 +33,7 @@
:default-expand-all="isExpandAll"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
>
-
+
-
+
+
+
+
+
+
+
-
@@ -263,7 +263,7 @@
:total="subTotal"
:page.sync="thirdSubQuery.page"
:limit.sync="thirdSubQuery.limit"
- @pagination="getList"
+ @pagination="intentSubSelect"
/>