修改页面及功能bug

tagView
zhengmingliang 3 years ago
parent f66acdcc08
commit 2f926c4167

@ -600,6 +600,7 @@ export default {
this.editTye = 2; this.editTye = 2;
} else { } else {
this.formName = 1; this.formName = 1;
this.inputQuery.formData={};
this.editTye = 1; this.editTye = 1;
} }
this.addCertVisible = true; this.addCertVisible = true;

@ -1558,8 +1558,12 @@ export default {
}, },
selsectBussinessType(row){ selsectBussinessType(row){
// if(row==null || row==undefined){
// this.$message.info("");
// return;
// }
var busQuery = { var busQuery = {
code: this.currentCode, code: row.code,
page: 1, page: 1,
limit: 10000 limit: 10000
} }

@ -187,7 +187,6 @@ export default {
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.orderIdFk = this.idQuery.orderIdFk; this.query.orderIdFk = this.idQuery.orderIdFk;
let query = { let query = {
orderIdFk: this.idQuery.orderIdFk orderIdFk: this.idQuery.orderIdFk
} }

@ -245,7 +245,7 @@ export default {
listApplyDetail(query) // listApplyDetail(query) //
.then((response) => { .then((response) => {
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
this.total = response.data.total || 0;
this.loading = false; this.loading = false;
}) })
.catch(() => { .catch(() => {

@ -287,6 +287,17 @@ export default {
return; return;
} }
if (status === '2') { if (status === '2') {
if(this.formData.billDate==""){
return this.$message.error("单据日期不能为空!");
}
if(this.formData.locStorageCode=="" || this.formData.locStorageCode==null){
return this.$message.error("仓库不能为空!");
}
if(this.formData.invWarehouseCode=="" || this.formData.invWarehouseCode==null){
return this.$message.error("分库不能为空!");
}
for (let i = 0; i < this.codeArray.length; i++) { for (let i = 0; i < this.codeArray.length; i++) {
if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") { if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") {
return this.$message.error('单据数量不能为0'); return this.$message.error('单据数量不能为0');
@ -337,6 +348,7 @@ export default {
this.thisData.stockOrderLists = this.codeArray; this.thisData.stockOrderLists = this.codeArray;
}, },
closeDialogC2(rData) { closeDialogC2(rData) {
debugger
this.selectProductVisible = false; this.selectProductVisible = false;
this.thisData = {}; this.thisData = {};
if (this.$isNotBlank(rData)) { if (this.$isNotBlank(rData)) {

@ -245,7 +245,6 @@ export default {
listApplyDetail(query) // listApplyDetail(query) //
.then((response) => { .then((response) => {
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
this.total = response.data.total || 0;
this.loading = false; this.loading = false;
}) })
.catch(() => { .catch(() => {

@ -242,7 +242,6 @@ export default {
listApplyDetail(query) // listApplyDetail(query) //
.then((response) => { .then((response) => {
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
this.total = response.data.total || 0;
this.loading = false; this.loading = false;
}) })
.catch(() => { .catch(() => {

@ -162,7 +162,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" width="150"> <!-- <el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
@ -182,7 +182,7 @@
</el-button </el-button
> >
</template> </template>
</el-table-column> </el-table-column> -->
</el-table> </el-table>
</el-card> </el-card>
</el-form> </el-form>

@ -311,6 +311,19 @@ export default {
return; return;
} }
if (status === '2') { if (status === '2') {
if(this.formData.billDate==""){
return this.$message.error("单据日期不能为空!");
}
if(this.formData.billType=="" || this.formData.billType==null){
return this.$message.error("采购类型不能为空!");
}
if(this.formData.locStorageCode=="" || this.formData.locStorageCode==null){
return this.$message.error("采购仓库不能为空!");
}
if(this.formData.invWarehouseCode=="" || this.formData.invWarehouseCode==null){
return this.$message.error("采购分库不能为空!");
}
for (let i = 0; i < this.codeArray.length; i++) { for (let i = 0; i < this.codeArray.length; i++) {
if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") { if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") {
return this.$message.error('单据数量不能为0'); return this.$message.error('单据数量不能为0');

@ -242,7 +242,7 @@ export default {
listApplyDetail(query) // listApplyDetail(query) //
.then((response) => { .then((response) => {
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
this.total = response.data.total || 0;
this.loading = false; this.loading = false;
}) })
.catch(() => { .catch(() => {

@ -252,7 +252,6 @@ export default {
listApplyDetail(query) // listApplyDetail(query) //
.then((response) => { .then((response) => {
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
this.total = response.data.total || 0;
this.loading = false; this.loading = false;
}) })
.catch(() => { .catch(() => {

@ -194,7 +194,7 @@
<el-table-column width="150" label="单据数量" prop="count"> <el-table-column width="150" label="单据数量" prop="count">
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" width="150"> <!-- <el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
@ -214,7 +214,7 @@
</el-button </el-button
> >
</template> </template>
</el-table-column> </el-table-column> -->
</el-table> </el-table>
</el-card> </el-card>
</el-form> </el-form>

@ -536,9 +536,7 @@ export default {
name: [ name: [
{required: true, message: "证书名称", trigger: "blur"} {required: true, message: "证书名称", trigger: "blur"}
], ],
foreign: [
{required: true, message: "请选择产地", trigger: "blur"}
],
}, },
/**--------产品资质设置--------------*/ /**--------产品资质设置--------------*/
@ -617,7 +615,12 @@ export default {
this.currentSup.type = 1; this.currentSup.type = 1;
addSupCertSet(this.currentSup) addSupCertSet(this.currentSup)
.then((response) => { .then((response) => {
if(response.code==20000){
this.getList(); this.getList();
}else{
this.$message.error(response.message);
}
}) })
.catch(() => { .catch(() => {
}); });
@ -627,6 +630,7 @@ export default {
this.getList(); this.getList();
this.$message.success("保存成功!"); this.$message.success("保存成功!");
} else { } else {
this.getList();
this.$message.error(res.message); this.$message.error(res.message);
} }
}) })
@ -689,7 +693,12 @@ export default {
this.currentManufacturer.type = 2; this.currentManufacturer.type = 2;
addSupCertSet(this.currentManufacturer) addSupCertSet(this.currentManufacturer)
.then((response) => { .then((response) => {
if(response.code==20000){
this.getManufacturerList(); this.getManufacturerList();
}else{
this.$message.error(response.message);
}
}) })
.catch(() => { .catch(() => {
}); });
@ -699,6 +708,7 @@ export default {
this.getManufacturerList(); this.getManufacturerList();
this.$message.success("保存成功!"); this.$message.success("保存成功!");
} else { } else {
this.getManufacturerList();
this.$message.error(res.message); this.$message.error(res.message);
} }
}) })
@ -756,7 +766,11 @@ export default {
this.currentProduct.type = 3; this.currentProduct.type = 3;
addSupCertSet(this.currentProduct) addSupCertSet(this.currentProduct)
.then((response) => { .then((response) => {
if(response.code==20000){
this.getProductList(); this.getProductList();
}else{
this.$message.error(response.message);
}
}) })
.catch(() => { .catch(() => {
}); });
@ -766,6 +780,7 @@ export default {
this.getProductList(); this.getProductList();
this.$message.success("保存成功!"); this.$message.success("保存成功!");
} else { } else {
this.getProductList();
this.$message.error(res.message); this.$message.error(res.message);
} }
}) })

@ -573,6 +573,7 @@ export default {
this.editTye = 2; this.editTye = 2;
} else { } else {
this.formName = 1; this.formName = 1;
this.inputQuery.formData = {};
this.editTye = 1; this.editTye = 1;
} }
this.addCertVisible = true; this.addCertVisible = true;

@ -76,7 +76,7 @@
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="生产企业" label="医疗器械注册人"
prop="ylqxzcrbarmc" prop="ylqxzcrbarmc"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
@ -244,20 +244,12 @@ export default {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
this.listQuery = { this.listQuery.udiCode=null
unionCode: null, this.listQuery.unionCode=null
udiCode: null, this.listQuery.cpmctymc=null
ylqxzcrbarmc: "", this.listQuery.ggxh=null
cpmctymc: "", this.listQuery.ylqxzcrbarmc=null
thrPiId: null, this.listQuery.thrPiId=null
nameCode: "",
ggxh: null,
page: 1,
limit: 20,
addType: 1,
billType: this.data.formData.billType,
corpId: this.data.formData.corpId,
};
this.getList(); this.getList();
}, },
tableRowClassName({row}) { tableRowClassName({row}) {

Loading…
Cancel
Save