同步自助平台代码

feature-order-fix
zhengmingliang 2 years ago
parent 0e91e27c59
commit 31bfb201e1

@ -271,6 +271,9 @@ export default {
onSubmit() { onSubmit() {
this.loading = true; this.loading = true;
this.formData.customerId = this.inputQuery.customerId; this.formData.customerId = this.inputQuery.customerId;
if(this.formData.customerId==null){
this.formData.customerId=store.getters.customerId
}
this.formData.type = this.addType; this.formData.type = this.addType;
//1:2.3. //1:2.3.
if (this.addType == 2) { if (this.addType == 2) {

@ -87,6 +87,7 @@
</el-table> </el-table>
<el-pagination <el-pagination
:page-size="filterQuery.limit" :page-size="filterQuery.limit"
:current-page.sync="filterQuery.page"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
@ -187,6 +188,7 @@
</el-table> </el-table>
<el-pagination <el-pagination
:page-size="filterManufacturerQuery.limit" :page-size="filterManufacturerQuery.limit"
:current-page.sync="filterManufacturerQuery.page"
@current-change="handleManuChange" @current-change="handleManuChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="manufacturerTotal" :total="manufacturerTotal"
@ -292,6 +294,7 @@
</el-table> </el-table>
<el-pagination <el-pagination
:page-size="registrationQuery.limit" :page-size="registrationQuery.limit"
:current-page.sync="registrationQuery.page"
@current-change="certHandleCurrentChange" @current-change="certHandleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="certTotal" :total="certTotal"
@ -553,7 +556,7 @@ export default {
.then((response) => { .then((response) => {
this.manufacturerLoading = false; this.manufacturerLoading = false;
this.manufacturerList = response.data.list || []; this.manufacturerList = response.data.list || [];
this.total = response.data.total || 0; this.manufacturerTotal = response.data.total || 0;
}) })
.catch(() => { .catch(() => {
this.manufacturerLoading = false; this.manufacturerLoading = false;
@ -575,10 +578,14 @@ export default {
this.addInfoVisible = true; this.addInfoVisible = true;
}, },
closeManufacturerDialog(type) { closeManufacturerDialog(type) {
if(type==true){
this.addInfoVisible = false; this.addInfoVisible = false;
this.enterpriseId = null; this.enterpriseId = null;
this.manufacturerList = []; this.manufacturerList = [];
this.getManufacturerList(); this.getManufacturerList();
}else{
this.getManufacturerList();
}
}, },
handleManuChange(val) { handleManuChange(val) {
@ -639,6 +646,7 @@ export default {
.then((response) => { .then((response) => {
this.registrationLoading = false; this.registrationLoading = false;
this.registrationList = response.data.list || []; this.registrationList = response.data.list || [];
this.certTotal= response.data.total
}) })
.catch(() => { .catch(() => {
this.registrationLoading = false; this.registrationLoading = false;
@ -647,7 +655,7 @@ export default {
}, },
certHandleCurrentChange(val) { certHandleCurrentChange(val) {
this.registrationQuery.page = val; this.registrationQuery.page = val;
this.registrationList(); this.getRegistrationList();
} }
}, },

@ -22,6 +22,7 @@
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="草稿" value="0"></el-option> <el-option label="草稿" value="0"></el-option>
<el-option label="未审核" value="6"></el-option> <el-option label="未审核" value="6"></el-option>
<el-option label="变更未审核" value="3"></el-option>
<el-option label="已审核" value="1"></el-option> <el-option label="已审核" value="1"></el-option>
<el-option label="已拒绝" value="2"></el-option> <el-option label="已拒绝" value="2"></el-option>
</el-select> </el-select>
@ -93,6 +94,7 @@
</el-table> </el-table>
<el-pagination <el-pagination
:page-size="filterQuery.limit" :page-size="filterQuery.limit"
:current-page.sync="filterQuery.page"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
@ -195,6 +197,7 @@
</el-table> </el-table>
<el-pagination <el-pagination
:page-size="registrationQuery.limit" :page-size="registrationQuery.limit"
:current-page.sync="registrationQuery.page"
@current-change="certHandleCurrentChange" @current-change="certHandleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="certTotal" :total="certTotal"
@ -353,6 +356,7 @@ export default {
this.registrationList = []; this.registrationList = [];
}, },
onSubmit() { onSubmit() {
this.filterQuery.page=1
this.getList(); this.getList();
this.registrationList = []; this.registrationList = [];
}, },
@ -470,6 +474,7 @@ export default {
this.$message.error("请先选中生产企业!"); this.$message.error("请先选中生产企业!");
return return
} }
this.registrationQuery.page=1;
this.getRegistrationList(); this.getRegistrationList();
}, },
registrationDialog(row) { registrationDialog(row) {
@ -538,6 +543,7 @@ export default {
.then((response) => { .then((response) => {
this.registrationLoading = false; this.registrationLoading = false;
this.registrationList = response.data.list || []; this.registrationList = response.data.list || [];
this.certTotal = response.data.total;
}) })
.catch(() => { .catch(() => {
this.registrationLoading = false; this.registrationLoading = false;
@ -550,7 +556,7 @@ export default {
}, },
certHandleCurrentChange(val) { certHandleCurrentChange(val) {
this.registrationQuery.page = val; this.registrationQuery.page = val;
this.registrationList(); this.getRegistrationList();
} }
}, },

@ -505,13 +505,13 @@ export default {
this.certLoading = true; this.certLoading = true;
this.certQuery.customerId = this.inputQuery.customerId; this.certQuery.customerId = this.inputQuery.customerId;
this.certQuery.type = 1; this.certQuery.type = 1;
if(this.editType==2){ this.certQuery.auditStatus=25;
this.certQuery.auditStatus=25;
}
filterCompanyCert(this.certQuery) filterCompanyCert(this.certQuery)
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;
this.certList = response.data.list || []; this.certList = response.data.list || [];
this.certTotal=response.data.total
}) })
.catch(() => { .catch(() => {
this.certLoading = false; this.certLoading = false;

@ -610,6 +610,7 @@ export default {
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;
this.certList = response.data.list || []; this.certList = response.data.list || [];
this.certTotal=response.data.total;
}) })
.catch(() => { .catch(() => {
this.certLoading = false; this.certLoading = false;

@ -427,7 +427,9 @@ export default {
this.selectedOptions = this.inputQuery.placeAreaCode.split(","); this.selectedOptions = this.inputQuery.placeAreaCode.split(",");
if(this.inputQuery.productionAreaCode!=null){
this.selectedOptions2 = this.inputQuery.productionAreaCode.split(","); this.selectedOptions2 = this.inputQuery.productionAreaCode.split(",");
}
this.getCompanyCertList(); this.getCompanyCertList();
this.findMethod(); this.findMethod();
@ -460,6 +462,7 @@ export default {
} }
}); });
}).catch(() => { }).catch(() => {
this.addCloseDialog(false);
}); });
}, },
@ -502,6 +505,7 @@ export default {
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;
this.certList = response.data.list || []; this.certList = response.data.list || [];
this.certTotal=response.data.total;
}) })
.catch(() => { .catch(() => {
this.certLoading = false; this.certLoading = false;

@ -561,6 +561,7 @@ export default {
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;
this.certList = response.data.list || []; this.certList = response.data.list || [];
this.certTotal=response.data.total
}) })
.catch(() => { .catch(() => {
this.certLoading = false; this.certLoading = false;

@ -589,6 +589,7 @@ export default {
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;
this.certList = response.data.list || []; this.certList = response.data.list || [];
this.certTotal=response.data.total;
}) })
.catch(() => { .catch(() => {
this.certLoading = false; this.certLoading = false;

@ -710,6 +710,10 @@ export default {
}).catch(() => { }).catch(() => {
}); });
}, },
certHandleCurrentChange(val) {
this.certQuery.page = val;
this.getCompanyCertList();
},
getCompanyCertList() { getCompanyCertList() {
this.certLoading = true; this.certLoading = true;
this.certQuery.customerId = this.inputQuery.customerId; this.certQuery.customerId = this.inputQuery.customerId;
@ -719,6 +723,7 @@ export default {
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;
this.certList = response.data.list || []; this.certList = response.data.list || [];
this.certTotal=response.data.total
}) })
.catch(() => { .catch(() => {
this.certLoading = false; this.certLoading = false;

Loading…
Cancel
Save