Merge remote-tracking branch 'origin/fengcang' into fengcang

fengcang
anthonyywj2 3 years ago
commit 9dac1a5864

@ -465,11 +465,9 @@ export default {
}); });
}, },
handleChange(response, files, fileList) { handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) { if (response.code != 20000) {
this.$message.error(response.message); this.$message.error(response.message);
} else { } else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success(response.data); this.$message.success(response.data);
this.getList(); this.getList();
} }

@ -19,7 +19,7 @@
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <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="handleAddClick" <el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.typeBus" :disabled="!configParms.typeBus"
>新增 >新增
@ -117,6 +117,13 @@
> >
</div> </div>
</el-dialog> </el-dialog>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
></el-pagination>
</el-card> </el-card>
</div> </div>
</template> </template>
@ -184,7 +191,14 @@ export default {
this.modifyDialogVisible = false; this.modifyDialogVisible = false;
this.addDialogVisible = false; this.addDialogVisible = false;
}, },
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() { getList() {
this.loading = true; this.loading = true;
getLocalBusType(this.filterQuery) getLocalBusType(this.filterQuery)

@ -241,7 +241,6 @@ export default {
this.getList(); this.getList();
}, },
handleChange(val) { handleChange(val) {
console.log(val);
this.currentRow = val; this.currentRow = val;
}, },
handleDetailClick(row) { handleDetailClick(row) {
@ -263,7 +262,6 @@ export default {
this.listQuery.customerId = store.getters.customerId; this.listQuery.customerId = store.getters.customerId;
stockOrderDetailFilterProduct(this.listQuery) stockOrderDetailFilterProduct(this.listQuery)
.then((response) => { .then((response) => {
console.log(response)
this.loading = false; this.loading = false;
if (response.code === 20000) { if (response.code === 20000) {
this.dataList = response.data.list || []; this.dataList = response.data.list || [];
@ -292,7 +290,6 @@ export default {
let ids = []; let ids = [];
selection.forEach((obj, index) => { selection.forEach((obj, index) => {
console.log("obj:===" + obj + "==" + obj.relIdFk)
let data = { let data = {
relId: obj.rlId, relId: obj.rlId,
} }

@ -545,7 +545,6 @@ export default {
} }
submitOrderWeb(tQuery) submitOrderWeb(tQuery)
.then((response) => { .then((response) => {
console.log(response)
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
this.closeDialog(); this.closeDialog();
@ -698,7 +697,6 @@ export default {
this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
} }
this.formData.code = this.formData.code.trim(); this.formData.code = this.formData.code.trim();
console.log(this.formData.code);
if (this.$isBlank(this.formData.code)) return; if (this.$isBlank(this.formData.code)) return;
this.loading = true; this.loading = true;
@ -796,7 +794,6 @@ export default {
}, },
unitChange(row) { unitChange(row) {
console.log(row);
this.formData.fromCorpId = row.erpId; this.formData.fromCorpId = row.erpId;
this.formData.fromCorp = row.name; this.formData.fromCorp = row.name;
this.curRow = row; this.curRow = row;
@ -809,7 +806,6 @@ export default {
}, },
deleteCode(index, row) { deleteCode(index, row) {
console.log(row.id)
this.$confirm("是否确定移除一个条码?", "提示", { this.$confirm("是否确定移除一个条码?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -915,7 +911,6 @@ export default {
} }
, ,
findMethod(query) { findMethod(query) {
console.log(query);
this.fromOptions = []; this.fromOptions = [];
let cQuery = { let cQuery = {
key: query, key: query,
@ -1022,9 +1017,7 @@ export default {
} }
, ,
getActionItem(action) { getActionItem(action) {
console.log("-----")
for (let i = 0; i < this.busTypes.length; i++) { for (let i = 0; i < this.busTypes.length; i++) {
console.log(this.busTypes[i].action + "--" + action)
if (this.busTypes[i].action == action) { if (this.busTypes[i].action == action) {
return this.busTypes[i]; return this.busTypes[i];
} }
@ -1045,13 +1038,11 @@ export default {
// //
bindRl(val) { bindRl(val) {
console.log("curRow.erpId = " + val.id);
this.curRow = val; this.curRow = val;
this.selectRlVisible = true; this.selectRlVisible = true;
} }
, ,
handleUnitClick(row) { handleUnitClick(row) {
console.log("curRow.erpId = " + row.id);
this.curRow = row; this.curRow = row;
this.dialogTableVisible = true; this.dialogTableVisible = true;
} }
@ -1061,7 +1052,6 @@ export default {
id: this.curRow.id, id: this.curRow.id,
supId: row.erpId, supId: row.erpId,
}; };
console.log("row.erpId = " + row.erpId);
updateCodeBindSup(query).then((response) => { updateCodeBindSup(query).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("绑定成功"); this.$message.success("绑定成功");
@ -1083,7 +1073,6 @@ export default {
relId: row.id, relId: row.id,
mySupId: row.unitFk, mySupId: row.unitFk,
}; };
console.log("row.relId = " + row.id);
updateCodeBindSup(query).then((response) => { updateCodeBindSup(query).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("绑定成功"); this.$message.success("绑定成功");
@ -1105,7 +1094,6 @@ export default {
} }
, ,
closeBindDialog(val) { closeBindDialog(val) {
console.log("closeBindDialog" + val);
this.selectRlVisible = false; this.selectRlVisible = false;
this.dialogTableVisible = false; this.dialogTableVisible = false;
} }
@ -1150,7 +1138,6 @@ export default {
} else { } else {
that.formData.code = text; that.formData.code = text;
console.log(" that.formData.code = " + that.formData.code);
// setTimeout(function(){ that.formData.code = text; }, 3000); // setTimeout(function(){ that.formData.code = text; }, 3000);

@ -321,6 +321,7 @@ export default {
isDefault: null, isDefault: null,
page: 1, page: 1,
limit: 20, limit: 20,
parentId: null,
thirdSysFk: null, thirdSysFk: null,
}, },
mergeList: [], mergeList: [],
@ -464,7 +465,6 @@ export default {
this.$refs["dataForm"].clearValidate(); this.$refs["dataForm"].clearValidate();
// //
this.$refs["dataForm"].resetFields(); this.$refs["dataForm"].resetFields();
this.getList();
} }
}, },
// //
@ -530,7 +530,11 @@ export default {
return false; return false;
} }
this.$message.success("删除成功"); this.$message.success("删除成功");
this.loadSubData(row.parentId); let param = {
code: row.parentId,
thirdSysFk: row.thirdSysFk
}
this.loadSubData(param);
}) })
.catch(() => { .catch(() => {
this.deleteLoading = false; this.deleteLoading = false;
@ -551,7 +555,11 @@ export default {
} }
saveSubWarehouse(this.subData, this.subFromName).then((response) => { saveSubWarehouse(this.subData, this.subFromName).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.loadSubData(this.subData.parentId); let row = {
code: this.subData.parentId,
thirdSysFk: this.subData.thirdSysFk
}
this.loadSubData(row);
this.subFormVisible = false; this.subFormVisible = false;
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);

Loading…
Cancel
Save