1.修复部分查询问题,单据编辑保存数量校验放在后端实时校验

fencang
x_z 3 years ago
parent 3811e418ce
commit a4c9a80ed5

@ -683,10 +683,10 @@ export default {
formData: formJson,
formRules: {
name: [
{required: true, message: "请输入仓库货位名", trigger: "blur"}
{required: true, message: "请输入仓库", trigger: "blur"}
],
code: [
{required: true, message: "请输入仓库货位代码", trigger: "blur"}
{required: true, message: "请输入仓库码", trigger: "blur"}
]
},
pidData: {},

@ -31,7 +31,7 @@
<el-form-item>
<el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" icon="search" @click="clearAll"
v-if="!this.thirdSysDetail.enabled">清空全部
</el-button>
@ -67,7 +67,7 @@
<script>
import {
getCorps, delCorps, delAll, downloadAll
delCorps, delAll, downloadAll
} from "../../api/thrsys/thrCorps";
import {getBasicThirdSys, filterDetailByKey} from "../../api/basic/basicThirdSys";
import {ucloudUnit} from "../../api/basic/basicUnitMaintain";
@ -97,9 +97,6 @@
methods: {
onReset() {
// this.$router.push({
// path: "",
// });
this.filterQuery = {
unitId: null,
name: null,
@ -109,10 +106,11 @@
};
this.getList();
},
search() {
this.filterQuery.page =1;
this.getList();
},
getList() {
if (this.filterQuery.thirdSys == null) {
this.$message.warning("请先选择第三方系统!")
return;
@ -213,11 +211,9 @@
});
},
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
} else {
console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success("文件上传成功,请稍后刷新查看!");
}
},

@ -124,7 +124,7 @@
v-model="rowData.companyName"
filterable
remote
:disabled="rowData.companyName!=null"
:disabled="rowData.companyName != null && rowData.companyName != ''"
clearable="true"
reserve-keyword
placeholder="请输入企业名称"
@ -354,6 +354,7 @@
id: "",
checkType: "",
roles: "",
companyName: ""
},
rowDataRules: {
nickName: [
@ -509,6 +510,7 @@
if (this.$isBlank(this.rowData.companyName)) {
return this.$message.warning("请输入企业名称");
}
this.checkQuery.companyName = this.rowData.companyName;
this.checkRegister();
this.centerDialogVisible = false;
},

@ -118,6 +118,7 @@
:loading="loading"
:disabled="corpOrderIdDisabled"
@change="unitChange"
@focus="findMethod('')"
>
<el-option
v-for="item in fromOptions"

@ -101,6 +101,7 @@
placeholder="请输入往来单位"
:remote-method="findMethod"
:loading="loading"
@focus="findMethod('')"
@change="selectOne"
>
<el-option
@ -645,7 +646,6 @@ export default {
}
},
findStorageMethod(query) {
console.log(query);
if (this.formData.locStorageCode == null)
return;
this.fromStorageOptions = [];
@ -706,12 +706,10 @@ export default {
if (status == '3') {
tQuery.subErpOrders.forEach((obj) => {
obj.reCount = obj.count;
console.log(obj.reCount);
});
}
console.log(tQuery);
insertStockOrderWeb(tQuery)
.then(response => {
this.loading = false;
@ -792,7 +790,6 @@ export default {
this.invQueryData = {
locStorageCode: this.formData.corpId,
};
console.log("his.invQueryData " + this.invQueryData.locStorageCode);
this.selectInvProductVisible = true;
} else {
this.selectProductVisible = true;
@ -820,7 +817,6 @@ export default {
stockOrderDetailQueryProduct(tQuery).then((response) => {
this.loading = false;
console.log(response)
if (response.code === 20000) {
if (response.data.getType === "1") {
this.loading = true;
@ -874,7 +870,6 @@ export default {
rData.forEach((obj, index) => {
this.codeArray.unshift(obj);
});
console.log(this.codeArray);
this.$refs.multipleTable.setCurrentRow(this.codeArray[0]);
this.currentRow = this.codeArray[0];
this.selectedIndex = 0;
@ -1134,7 +1129,6 @@ export default {
this.loading = true;
stockOrderDetail(this.query) //
.then((response) => {
console.log(response)
this.codeArray = response.data.list || [];
this.total = response.data.total || 0;
this.loading = false;
@ -1180,15 +1174,11 @@ export default {
});
},
selectOne(event) {
this.formData.corpName = event.name;
this.formData.corpId = event.erpId;
this.formData.unitIdFk = event.erpId;
// console.log("this.inputQuery.companyId" + item);
console.log("this.inputQuery.companyId" + event.erpId);
},
findMethod(query) {
console.log(query);
this.fromOptions = [];
let cQuery = {
key: query,
@ -1301,7 +1291,7 @@ export default {
this.formData.billdate = new Date();
// this.generateBillNo();
}
this.findMethod();
this.getBusType();
this.getStorage();
this.findSubInvByInv();

@ -769,7 +769,6 @@ export default {
this.detailLoading = true;
stockOrderDetail(this.detailQuery)
.then((response) => {
console.log(response)
this.detailLoading = false;
this.detailList = response.data.list || [];
})
@ -889,12 +888,6 @@ export default {
if (valid) {
this.detailLoading = true;
let tQuery = this.detailFormData;
if (this.detailCountMax) {
if (this.detailFormData.count < this.detailFormData.reCount) {
this.$message.error("实际数量不能高于订单数量");
return;
}
}
// if (this.$isBlank(tQuery.batchNo)) {
// if (!tQuery.allowNoBatch) {
// return this.$message.error('');

Loading…
Cancel
Save