合并本地

featFunction
zhengmingliang 3 years ago
parent ee4aec9c28
commit 8a7ff1af2b

@ -1,6 +1,6 @@
{ {
"BASE_URL": "http://127.0.0.1:9906", "BASE_URL": "http://127.0.0.1:9996",
"SERVER_IP": "http://127.0.0.1:9906", "SERVER_IP": "http://127.0.0.1:9996",
"hosp_name": "福建省XX市医院" "hosp_name": "福建省XX市医院"
} }

@ -54,7 +54,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small" :disabled="!configParms.typeBus" size="small"
@click.native.stop="handleModifyClick(scope.row)" @click.native.stop="handleModifyClick(scope.row)"
>编辑 >编辑
</el-button </el-button

@ -447,6 +447,7 @@ export default {
hideForm() { hideForm() {
// //
this.formVisible = !this.formVisible; this.formVisible = !this.formVisible;
this.getList();
return true; return true;
}, },
// //

@ -967,6 +967,11 @@ export default {
this.$message.warning("请先选入产品!"); this.$message.warning("请先选入产品!");
return; return;
} }
if (this.repEditQuery.price<0) {
this.$message.error("产品价格不能小于0元");
return;
}
selectData.forEach((obj) => { selectData.forEach((obj) => {
this.postQuery.rlIds.push(obj.id); this.postQuery.rlIds.push(obj.id);
}); });

@ -27,7 +27,7 @@
<el-form-item> <el-form-item>
<el-button-group style="margin-left: 10px;display:flex;"> <el-button-group style="margin-left: 10px;display:flex;">
<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="onSubmit"></el-button>
<el-button type="primary" @click.native="handleForm(null, null,'addTop')" <el-button type="primary" @click.native="handleForm(null, null,'addTop')"
:disabled="!configParms.basicInv" :disabled="!configParms.basicInv"
>添加仓库 >添加仓库
@ -56,6 +56,7 @@
style="width: 100%;margin-bottom: 20px;" style="width: 100%;margin-bottom: 20px;"
row-key="id" row-key="id"
border border
ref="mergeTable"
highlight-current-row highlight-current-row
@current-change="handInvCurrentChange"> @current-change="handInvCurrentChange">
<el-table-column label width="45"> <el-table-column label width="45">
@ -907,7 +908,12 @@ export default {
this.getList(); this.getList();
}, },
onSubmit() { onSubmit() {
this.radioCheck=null;
this.subRadioCheck=null;
this.userQuery.page = 1;
this.busQuery.page = 1;
this.getList(); this.getList();
this.$refs.mergeTable.setCurrentRow();
}, },
getList() { getList() {
this.loading = true; this.loading = true;
@ -916,6 +922,9 @@ export default {
this.loading = false; this.loading = false;
this.mergeList = response.data.list || []; this.mergeList = response.data.list || [];
this.subList = []; this.subList = [];
this.userData = [];
this.bussinessTypeData = [];
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;

@ -242,6 +242,15 @@ export default {
this.getList(); this.getList();
}, },
onSubmit() { onSubmit() {
            if(this.filterQuery.invStorageCode==null || this.filterQuery.invStorageCode==""){
                this.$message.error("当前仓库不能为空");
                return
            }else if(this.filterQuery.invWarehouseCode==null || this.filterQuery.invWarehouseCode==""){
                this.$message.error("当前分库不能为空");
                return
            }
this.loading = true; this.loading = true;
this.filterQuery.page = 1; this.filterQuery.page = 1;
this.getList(); this.getList();
@ -266,6 +275,8 @@ export default {
this.getList(); this.getList();
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.filterQuery.customerId = store.getters.customerId; this.filterQuery.customerId = store.getters.customerId;
filterProducts(this.filterQuery) filterProducts(this.filterQuery)

@ -156,6 +156,7 @@ export default {
corpName: null, corpName: null,
type: 1, type: 1,
editStatus: 1, editStatus: 1,
thirdPartyDate:2,
}, },
formName: null, formName: null,
formMap: { formMap: {
@ -231,6 +232,7 @@ export default {
corpName: null, corpName: null,
type: 1, type: 1,
editStatus: 1, editStatus: 1,
thirdPartyDate:2,
}; };
this.actDateRange = []; this.actDateRange = [];
this.getList(); this.getList();

@ -232,6 +232,7 @@ export default {
page: 1, page: 1,
limit: 10, limit: 10,
corpName: null, corpName: null,
thirdPartyDate:1,
}; };
this.actDateRange = []; this.actDateRange = [];
this.getList(); this.getList();

@ -13,7 +13,7 @@
> >
<el-button <el-button
type="primary" type="primary"
@click.native="saveOrder('0')" @click.native="saveOrder('2')"
:loading="loading" :loading="loading"
>提交单据 >提交单据
</el-button </el-button
@ -555,8 +555,11 @@ export default {
let tQuery = this.formData; let tQuery = this.formData;
tQuery.editStatus = status; tQuery.editStatus = status;
tQuery.subErpOrders = this.codeArray; tQuery.subErpOrders = this.codeArray;
tQuery.thirdPartyDate = 2;
// tQuery.billType = this.formData.bi; // tQuery.billType = this.formData.bi;
console.log(tQuery); console.log(tQuery);
debugger
inserThrOrderWeb(tQuery) inserThrOrderWeb(tQuery)
.then(response => { .then(response => {
this.loading = false; this.loading = false;

@ -407,7 +407,7 @@ export default {
userName: row.userName, userName: row.userName,
checkPassword: "", checkPassword: "",
employeeName: row.employeeName, employeeName: row.employeeName,
userFlag: 1, userFlag: row.userFlag,
comments: row.comments, comments: row.comments,
roles: row.roles, roles: row.roles,
dept: row.dept, dept: row.dept,
@ -484,6 +484,7 @@ export default {
this.$message.success("操作成功"); this.$message.success("操作成功");
// //
this.list.splice(index, 1); this.list.splice(index, 1);
this.getList();
}) })
.catch(() => { .catch(() => {
this.deleteLoading = false; this.deleteLoading = false;

@ -465,9 +465,9 @@ export default {
} }
}, },
formSubmit() { formSubmit() {
var regu = "^[ ]+$";
var re = new RegExp(regu);
if (this.$isBlank(this.formData.name)) { if (this.$isBlank(this.formData.name) || re.test(this.formData.name)) {
this.$message.error("请输入角色名称!"); this.$message.error("请输入角色名称!");
return; return;
} }

@ -26,7 +26,7 @@
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.locStorageCode" placeholder="请选择当前仓库" clearable="true" <el-select v-model="filterQuery.locStorageCode" placeholder="请选择当前仓库" clearable="true"
@change="invChange" @change="invChangetwo"
size="mini"> size="mini">
<el-option <el-option
v-for="item in storageList" v-for="item in storageList"
@ -579,8 +579,9 @@ export default {
}); });
}, },
invChange() { invChange() {
this.subInvList = []; this.subInvList = [];
this.filterQuery.invWarehouseCode = "";
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode
}; };
@ -591,6 +592,20 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
invChangetwo() {
this.subInvList = [];
this.filterQuery.invWarehouseCode = "";
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
}, },
filters: { filters: {
statusFilterType(status) { statusFilterType(status) {
@ -613,8 +628,8 @@ export default {
this.filterQuery = Object.assign(this.filterQuery, query); this.filterQuery = Object.assign(this.filterQuery, query);
this.filterQuery.limit = parseInt(this.filterQuery.limit); this.filterQuery.limit = parseInt(this.filterQuery.limit);
// //
this.getStorage(); this.getStorage();
}, },
}; };
</script> </script>

@ -341,6 +341,7 @@ export default {
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("验收成功!"); this.$message.success("验收成功!");
this.closeDialog(); this.closeDialog();
this.$emit('childByValue', 1)
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }

@ -148,6 +148,7 @@ export default {
originType: null, originType: null,
page: 1, page: 1,
limit: 10, limit: 10,
editStatus: 2,
customerId: null, customerId: null,
}, },
combineQuery: { combineQuery: {

@ -913,7 +913,7 @@ export default {
this.selectProductVisible = false; this.selectProductVisible = false;
this.selectInvProductVisible = false; this.selectInvProductVisible = false;
this.thisData = {}; this.thisData = {};
rData=rData.reverse();
if (this.$isNotBlank(rData)) { if (this.$isNotBlank(rData)) {
this.codeArray = []; this.codeArray = [];
rData.forEach((obj, index) => { rData.forEach((obj, index) => {

@ -86,9 +86,7 @@
<el-pagination <el-pagination
:page-size="detailQuery.limit" :page-size="detailQuery.limit"
:current-page="detailQuery.page" @current-change="detailHandleCurrentChange"
:current-page.sync="detailQuery.page"
@current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="detailTotal" :total="detailTotal"
> >
@ -153,10 +151,6 @@ export default {
type: Object, type: Object,
required: true, required: true,
}, },
orderIdFk: {
type: String,
required: true,
}
}, },
data() { data() {
return { return {
@ -272,8 +266,9 @@ export default {
} }
} }
}, },
handleCurrentChange(val) {
this.detailQuery.page = val; detailHandleCurrentChange(val) {
this.query.page = val;
this.getStockOrderDetailList(); this.getStockOrderDetailList();
}, },
getStockOrderDetailList(row) { getStockOrderDetailList(row) {
@ -293,10 +288,6 @@ export default {
}); });
}, },
}, },
created() {
this.detailQuery.orderIdFk = this.orderIdFk;
this.getStockOrderDetailList();
}
} }
</script> </script>

@ -309,6 +309,7 @@ export default {
getStockOrderDetailInstrumentById(tQuery).then((response) => { getStockOrderDetailInstrumentById(tQuery).then((response) => {
this.loading = false; this.loading = false;
if (response.code === 20000) { if (response.code === 20000) {
this.closeDialog(response.data); this.closeDialog(response.data);
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);

@ -284,7 +284,7 @@
<StockOrderEdit <StockOrderEdit
:closeDialog="closeDialog" :closeDialog="closeDialog"
:detailList="detailList" :detailList="detailList"
:orderIdFk="detailQuery.orderIdFk"
></StockOrderEdit> ></StockOrderEdit>
</el-dialog> </el-dialog>
@ -473,6 +473,7 @@
<acceptOrder <acceptOrder
:closeDialog="closeAcceptDialog" :closeDialog="closeAcceptDialog"
:orderQuery="acceptQuery" :orderQuery="acceptQuery"
v-on:childByValue="parentByFn"
></acceptOrder> ></acceptOrder>
</el-dialog> </el-dialog>
@ -673,6 +674,9 @@ export default {
} }
}) })
}, },
parentByFn: function (childValue) {
this.getList();
},
changeFun(row) { changeFun(row) {
let _this = this; let _this = this;
_this.multipId = []; //ID _this.multipId = []; //ID
@ -946,7 +950,6 @@ export default {
// //
handleDetailForm(index, row) { handleDetailForm(index, row) {
this.stockOrderEditVisible = true; this.stockOrderEditVisible = true;
this.detailQuery.orderIdFk = row.id;
}, },
hideDetailForm() { hideDetailForm() {
// //

Loading…
Cancel
Save