Commit 3508da5e authored by 黄奎's avatar 黄奎

新增审核

parent 188823a0
......@@ -32,10 +32,15 @@
</el-table-column>
<el-table-column prop="EMail" width="180" label="邮箱">
</el-table-column>
<el-table-column prop="AuditStatusStr" width="100" label="审核状态">
</el-table-column>
<el-table-column prop="address" width="150" label="操作">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="查看" placement="top">
<img @click="getInfo(scope.row)" src="../../assets/img/userman/icon-show.png" alt="">
<img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip>
<el-tooltip v-if="scope.row.AuditStatus==0" class="item" effect="dark" content="审核" placement="top">
<img @click="getInfo(scope.row,1)" src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip>
</template>
</el-table-column>
......@@ -117,10 +122,30 @@
</el-form-item>
<el-form-item label="其他内容">
<el-input type="text" v-model="addMsg.OtherInfo" class="w400" disabled></el-input>
</el-form-item>
</el-form-item> <template v-if="addMsg.AuditStatus!=0">
<el-form-item label="审核状态">
<el-radio v-model="addMsg.AuditStatus" :label="1" disabled>通过</el-radio>
<el-radio v-model="addMsg.AuditStatus" :label="2" disabled>拒绝</el-radio>
</el-form-item>
<el-form-item label="审核内容">
<el-input type="textarea" v-model="addMsg.AuditContent" class="w400" disabled></el-input>
</el-form-item>
</template>
<template v-if="showType==1">
<el-form-item label="审核状态">
<el-radio v-model="auditMsg.AuditStatus" :label="1">通过</el-radio>
<el-radio v-model="auditMsg.AuditStatus" :label="2">拒绝</el-radio>
</el-form-item>
<el-form-item label="审核内容">
<el-input type="textarea" v-model="auditMsg.AuditContent" class="w400"></el-input>
</el-form-item>
</template>
</el-form>
<el-button size="small" style="margin-top:20px;padding:9px 25px;" type="primary" @click="isShowInfo=false">返回
</el-button>
<el-button v-if="showType==1" size="small" style="margin-top:20px;padding:9px 25px;margin-left:20px;"
type="primary" @click="audit()">确定审核
</el-button>
</div>
</template>
</div>
......@@ -139,6 +164,12 @@
tableData: [], //数据列表
isShowInfo: false, //是否显示详情,
addMsg: {},
showType: 0, //0-详情,1-审核
auditMsg: {
Id: 0,
AuditStatus: 1,
AuditContent: ""
}
};
},
created() {
......@@ -161,7 +192,10 @@
this.getList();
},
//获取详情
getInfo(item) {
getInfo(item, type) {
this.clearMsg();
this.showType = type;
this.auditMsg.Id = item.Id;
this.apipost("/api/Trade/GetInvestmentProcurement", {
Id: item.Id
}, res => {
......@@ -170,7 +204,25 @@
this.addMsg = res.data.data;
}
})
}
},
//审核投资采购
audit() {
this.apipost("/api/Trade/AutitInvestmentProcurement", this.auditMsg, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.isShowInfo = false;
this.getList();
} else {
this.Error(res.data.message);
}
})
},
//清空消息
clearMsg() {
this.auditMsg.Id = 0;
this.auditMsg.AuditStatus = 1;
this.auditMsg.AuditContent = "";
},
},
mounted() {}
};
......
......@@ -34,10 +34,15 @@
</el-table-column>
<el-table-column prop="AnnualImport" width="100" label="年进口额">
</el-table-column>
<el-table-column prop="AuditStatusStr" width="100" label="审核状态">
</el-table-column>
<el-table-column prop="address" width="150" label="操作">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="查看" placement="top">
<img @click="getInfo(scope.row)" src="../../assets/img/userman/icon-show.png" alt="">
<img @click="getInfo(scope.row,0)" src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip>
<el-tooltip v-if="scope.row.AuditStatus==0" class="item" effect="dark" content="审核" placement="top">
<img @click="getInfo(scope.row,1)" src="../../assets/img/userman/icon-show.png" alt="">
</el-tooltip>
</template>
</el-table-column>
......@@ -123,9 +128,30 @@
<el-form-item label="其他内容">
<el-input type="text" v-model="addMsg.OtherInfo" class="w400" disabled></el-input>
</el-form-item>
<template v-if="addMsg.AuditStatus!=0">
<el-form-item label="审核状态">
<el-radio v-model="addMsg.AuditStatus" :label="1" disabled>通过</el-radio>
<el-radio v-model="addMsg.AuditStatus" :label="2" disabled>拒绝</el-radio>
</el-form-item>
<el-form-item label="审核内容">
<el-input type="textarea" v-model="addMsg.AuditContent" class="w400" disabled></el-input>
</el-form-item>
</template>
<template v-if="showType==1">
<el-form-item label="审核状态">
<el-radio v-model="auditMsg.AuditStatus" :label="1">通过</el-radio>
<el-radio v-model="auditMsg.AuditStatus" :label="2">拒绝</el-radio>
</el-form-item>
<el-form-item label="审核内容">
<el-input type="textarea" v-model="auditMsg.AuditContent" class="w400"></el-input>
</el-form-item>
</template>
</el-form>
<el-button size="small" style="margin-top:20px;padding:9px 25px;" type="primary" @click="isShowInfo=false">返回
</el-button>
<el-button v-if="showType==1" size="small" style="margin-top:20px;padding:9px 25px;margin-left:20px;"
type="primary" @click="audit()">确定审核
</el-button>
</div>
</template>
</div>
......@@ -144,6 +170,12 @@
tableData: [], //数据列表
isShowInfo: false, //是否显示详情,
addMsg: {},
showType: 0, //0-详情,1-审核
auditMsg: {
Id: 0,
AuditStatus: 1,
AuditContent: ""
}
};
},
created() {
......@@ -166,7 +198,10 @@
this.getList();
},
//获取详情
getInfo(item) {
getInfo(item, type) {
this.clearMsg();
this.showType = type;
this.auditMsg.Id = item.Id;
this.apipost("/api/Trade/GetInvestmentProcurement", {
Id: item.Id
}, res => {
......@@ -175,7 +210,25 @@
this.addMsg = res.data.data;
}
})
}
},
//审核投资采购
audit() {
this.apipost("/api/Trade/AutitInvestmentProcurement", this.auditMsg, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.isShowInfo = false;
this.getList();
} else {
this.Error(res.data.message);
}
})
},
//清空消息
clearMsg() {
this.auditMsg.Id = 0;
this.auditMsg.AuditStatus = 1;
this.auditMsg.AuditContent = "";
},
},
mounted() {}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment