修改首营和供应商采购bug

tagView
zhengmingliang 3 years ago
parent 2f926c4167
commit 54de7f7e4f

@ -504,8 +504,9 @@ export default {
}, },
onModifySubmit(val) { onModifySubmit(val) {
var status= this.inputQuery.auditStatus;
if (this.editType == 0) { // if (this.editType == 0) { //
this.$refs["inputQuery"].validate(valid => { this.$refs["inputQuery"].validate(valid => {
if (valid) { if (valid) {
this.$confirm("是否确定提交保存?", "提示", { this.$confirm("是否确定提交保存?", "提示", {
@ -522,6 +523,7 @@ export default {
this.closeDialog(); this.closeDialog();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
this.inputQuery.auditStatus=status;
} }
}); });
}).catch(() => { }).catch(() => {
@ -531,9 +533,14 @@ export default {
} }
}); });
} else { // } else { //
if(val!=0){
var str="企业信息已通过审核,是否确认重新提交审核?";
}else{
var str="是否确定提交保存?";
}
this.$refs["inputQuery"].validate(valid => { this.$refs["inputQuery"].validate(valid => {
if (valid) { if (valid) {
this.$confirm("企业信息已通过审核,是否确认重新提交审核?", "提示", { this.$confirm(str, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
@ -547,6 +554,7 @@ export default {
this.closeDialog(); this.closeDialog();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
this.inputQuery.auditStatus=status;
} }
}); });
}).catch(() => { }).catch(() => {

@ -280,6 +280,7 @@ export default {
}, },
methods: { methods: {
saveOrder(status) { saveOrder(status) {
debugger
this.$refs["dataForm"].validate(valid => { this.$refs["dataForm"].validate(valid => {
if (valid) { if (valid) {
if (this.codeArray.length < 1) { if (this.codeArray.length < 1) {
@ -287,7 +288,7 @@ export default {
return; return;
} }
if (status === '2') { if (status === '2') {
if(this.formData.billDate==""){ if(this.formData.billDate=="" || this.formData.billDate==null){
return this.$message.error("单据日期不能为空!"); return this.$message.error("单据日期不能为空!");
} }
if(this.formData.locStorageCode=="" || this.formData.locStorageCode==null){ if(this.formData.locStorageCode=="" || this.formData.locStorageCode==null){
@ -348,7 +349,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)) {

@ -114,7 +114,7 @@
</el-card> </el-card>
<el-card> <el-card>
<el-button-group style="display: flex"> <!-- <el-button-group style="display: flex">
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
@ -124,7 +124,7 @@
>产品录入 >产品录入
</el-button </el-button
> >
</el-button-group> </el-button-group> -->
<el-table v-loading="loading" :data="codeArray" style="width: 100%;" <el-table v-loading="loading" :data="codeArray" style="width: 100%;"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"

@ -304,6 +304,7 @@ export default {
}, },
methods: { methods: {
saveOrder(status) { saveOrder(status) {
debugger
this.$refs["dataForm"].validate(valid => { this.$refs["dataForm"].validate(valid => {
if (valid) { if (valid) {
if (this.codeArray.length < 1) { if (this.codeArray.length < 1) {
@ -312,7 +313,7 @@ export default {
} }
if (status === '2') { if (status === '2') {
if(this.formData.billDate==""){ if(this.formData.billDate=="" || this.formData.billDate==null){
return this.$message.error("单据日期不能为空!"); return this.$message.error("单据日期不能为空!");
} }
if(this.formData.billType=="" || this.formData.billType==null){ if(this.formData.billType=="" || this.formData.billType==null){

@ -243,7 +243,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(() => {

@ -32,7 +32,7 @@
</div> </div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item prop="name"> <el-form-item prop="code">
<el-input v-model="formData.code" auto-complete="off" <el-input v-model="formData.code" auto-complete="off"
:disabled="formData.auditStatus == 1"></el-input> :disabled="formData.auditStatus == 1"></el-input>
</el-form-item> </el-form-item>
@ -206,7 +206,10 @@ export default {
}, },
formRules: { formRules: {
name: [ name: [
{required: true, message: "电子档名称", trigger: "blur"} {required: true, message: "请输入证书名称", trigger: "blur"}
],
code: [
{required: true, message: "请输入证书编号", trigger: "blur"}
], ],
}, },
loading: false, loading: false,

@ -116,7 +116,7 @@
<div> <div>
<p class="form-title">生产企业资质设置</p> <p class="form-title">生产企业资质设置</p>
</div> </div>
<div style=" float: right; <div style="float: right;
text-align: right; text-align: right;
margin-bottom: 8px;" margin-bottom: 8px;"
> >
@ -160,10 +160,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
:page-size="query.limit" :page-size="manufacturerQuery.limit"
@current-change="handleCurrentChange" @current-change="handleManufacturerChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="manufacturerTotal"
> >
</el-pagination> </el-pagination>
<el-dialog <el-dialog
@ -252,7 +252,7 @@
<div> <div>
<p class="form-title">产品资质设置</p> <p class="form-title">产品资质设置</p>
</div> </div>
<div style=" float: right; <div style="float: right;
text-align: right; text-align: right;
margin-bottom: 8px;" margin-bottom: 8px;"
> >
@ -305,10 +305,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
:page-size="query.limit" :page-size="productQuery.limit"
@current-change="handleCurrentChange" @current-change="handleProductChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="productTotal"
> >
</el-pagination> </el-pagination>
@ -641,6 +641,9 @@ export default {
}, },
cancelDialog() { cancelDialog() {
this.getList();
this.getManufacturerList();
this.getProductList();
this.addDialogVisible = false; this.addDialogVisible = false;
this.addManufacturerDialogVisible = false; this.addManufacturerDialogVisible = false;
this.addProductDialogVisible = false; this.addProductDialogVisible = false;
@ -648,6 +651,10 @@ export default {
/**--------生产企业资质设置--------------*/ /**--------生产企业资质设置--------------*/
handleManufacturerChange(val) {
this.manufacturerQuery.page = val;
this.getManufacturerList();
},
getManufacturerList() { getManufacturerList() {
this.manufacturerLoading = true; this.manufacturerLoading = true;
filterCertSet(this.manufacturerQuery) filterCertSet(this.manufacturerQuery)
@ -720,6 +727,10 @@ export default {
/**--------产品资质设置--------------*/ /**--------产品资质设置--------------*/
handleProductChange(val) {
this.productQuery.page = val;
this.getProductList();
},
getProductList() { getProductList() {
this.productLoading = true; this.productLoading = true;
filterCertSet(this.productQuery) filterCertSet(this.productQuery)

@ -472,6 +472,10 @@ export default {
this.getRegistrationList(); this.getRegistrationList();
}, },
onSubmit2() { onSubmit2() {
if(this.currentManufacturer==null){
this.$message.error("请先选中生产企业!");
return
}
this.getRegistrationList(); this.getRegistrationList();
}, },
registrationDialog(row) { registrationDialog(row) {

@ -505,6 +505,7 @@ 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;
this.certQuery.auditStatus=20;
filterCompanyCert(this.certQuery) filterCompanyCert(this.certQuery)
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;

@ -189,6 +189,7 @@ export default {
erpName: "", erpName: "",
keys: [], keys: [],
}, },
ids:[],
radioCheck: null, radioCheck: null,
dataList: [], dataList: [],
pageTotal: 1, pageTotal: 1,
@ -317,6 +318,16 @@ export default {
this.$message.error('未选择产品'); this.$message.error('未选择产品');
return; return;
} }
if(this.ids.length>0){
for(var i=0;i<this.ids.length;i++){
if(this.ids[i]==this.multipleSelection.rlId){
this.$message.error("该产品已录入!");
return
}
}
}
let str = this.multipleSelection.zczbhhzbapzbh; let str = this.multipleSelection.zczbhhzbapzbh;
if (str.search(",") != -1) { if (str.search(",") != -1) {
this.currentCert = null; this.currentCert = null;
@ -328,6 +339,7 @@ export default {
}, },
combine() { combine() {
let ids = []; let ids = [];
let data = { let data = {
relId: this.multipleSelection.rlId, relId: this.multipleSelection.rlId,
@ -362,26 +374,35 @@ export default {
selectCert() { selectCert() {
if (this.currentCert == null) { if (this.currentCert == null) {
this.$message.error("请先选择对应的注册证!"); this.$message.error("请先选择对应的注册证!");
} }else{
this.multipleSelection.zczbhhzbapzbh = this.currentCert; this.multipleSelection.zczbhhzbapzbh = this.currentCert;
this.combine(); this.combine();
}
}, },
}, },
components: {udiRlDetailDialog}, components: {udiRlDetailDialog},
created() { created() {
if (this.$isNotBlank(this.data)) { if (this.$isNotBlank(this.data)) {
this.listQuery.nameCode = this.data.udi;
if (this.data.billType != null) { // this.listQuery.nameCode = this.data.udi;
this.listQuery.billType = this.data.billType; // if (this.data.billType != null) {
} else // this.listQuery.billType = this.data.billType;
this.listQuery.billType = this.data.formData.billType; // } else
// this.listQuery.billType = this.data.formData.billType;
if (this.data.formData != null) { // if (this.data.formData != null) {
this.listQuery.corpId = this.data.formData.corpId; // this.listQuery.corpId = this.data.formData.corpId;
// }
// this.orderEditor = this.data.orderEditor;
// this.orderId = this.data.orderId;
this.ids=[];
if(this.data.stockOrderLists.length>0){
for(var i=0;i<this.data.stockOrderLists.length;i++){
this.ids.push(this.data.stockOrderLists[i].productId);
}
} }
this.orderEditor = this.data.orderEditor;
this.orderId = this.data.orderId;
} }
this.getList(); this.getList();
}, },

Loading…
Cancel
Save