|
|
|
@ -260,7 +260,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
selectProductFunction() {
|
|
|
|
|
if(this.query.id==null) {
|
|
|
|
|
inserThrOrderWeb({innerOrderEntity: this.formData})
|
|
|
|
|
inserThrOrderWeb({innerOrderEntity: this.formData,editStatus:1})
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
@ -293,7 +293,16 @@ export default {
|
|
|
|
|
tableRowClassName({row, rowIndex}) {
|
|
|
|
|
row.index = rowIndex;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 刷新表单
|
|
|
|
|
resetForm() {
|
|
|
|
|
if (this.$refs["dataForm"]) {
|
|
|
|
|
// 清空验证信息表单
|
|
|
|
|
this.$refs["dataForm"].clearValidate();
|
|
|
|
|
// 刷新表单
|
|
|
|
|
this.$refs["dataForm"].resetFields();
|
|
|
|
|
this.getList();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
deleteCodeArray(index, row) {
|
|
|
|
|
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
@ -335,7 +344,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
getStockOrderDetailList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listInnerOrderDetail({orderIdFk:this.pId}) //查找该单号下的所有条码
|
|
|
|
|
listInnerOrderDetail({orderIdFk:this.formData.id}) //查找该单号下的所有条码
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.codeArray = response.data.list || [];
|
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
@ -366,6 +375,7 @@ export default {
|
|
|
|
|
this.formData.billDate = this.idQuery.formData.createTime;
|
|
|
|
|
this.orderEditor = true;
|
|
|
|
|
this.sValue = this.formData.corpName;
|
|
|
|
|
this.getStockOrderDetailList();
|
|
|
|
|
} else {
|
|
|
|
|
this.formData = {
|
|
|
|
|
id: null,
|
|
|
|
|