新表详情

zhangtao
laozt 1 year ago
parent dd5c2b72b3
commit 77190ea5cc

@ -21,7 +21,7 @@ export function listGetNew(query) {
// 查询企业新详细 // 查询企业新详细
export function getNew(id) { export function getNew(id) {
return request({ return request({
url: '/system/new/' + id, url: '/pharmaceuticals/new/' + id,
method: 'get' method: 'get'
}) })
} }

@ -192,16 +192,14 @@
:label="value" :label="value"
v-for="(key, value) in elDesLabels" v-for="(key, value) in elDesLabels"
:key="key" :key="key"
:span=" :span="1"
key == 'majorProduct' ||
key == 'businessScope' ||
key == 'subdistrict' ||
key == 'rigisterAddress'
? 2
: 1
"
> >
{{ infoData[key] || "/" }} <dict-tag
v-if="key == 'supervisionLarge'"
:options="dict.type.category"
:value="infoData[key]"
/>
<span v-else>{{ infoData[key] || "/" }}</span>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
@ -237,7 +235,7 @@ export default {
], ],
data() { data() {
return { return {
options: [ options: [
{ {
value: "A", value: "A",
label: "A", label: "A",
@ -295,6 +293,15 @@ export default {
// //
rules: {}, rules: {},
elDesLabels: { elDesLabels: {
企业名称: "enterpriseName",
统一社会信用代码: "enterpriseId",
"所在乡镇(街道)": "district",
行业监管大类: "supervisionLarge",
安全风险等级: "riskLevel",
标准化等级: "standLevel",
上次检查时间: "examineEndTime",
},
elDesLabels2: {
企业名称: "enterpriseName", 企业名称: "enterpriseName",
统一社会信用代码: "uuitNo", 统一社会信用代码: "uuitNo",
法定代表人: "legalPerson", 法定代表人: "legalPerson",
@ -409,36 +416,44 @@ export default {
this.addShow = false; this.addShow = false;
}, },
handleInfo(row) { handleInfo(row) {
getNew(row.id).then((res) => {
this.addShow = true;
console.log(res);
let infoObj = res.data;
infoObj.district = this.componendDistrict(infoObj.district) || "/";
this.infoData = infoObj;
});
return;
getByUuto(row.enterpriseId.trim()).then((res) => { getByUuto(row.enterpriseId.trim()).then((res) => {
// console.log(res.data); // console.log(res.data);
let infoObj = res.data; let infoObj = res.data;
// //
this.addShow = true; // infoObj["aboveDesignated"] =
infoObj["aboveDesignated"] = // infoObj.aboveDesignated == 1 ? "" : "";
infoObj.aboveDesignated == 1 ? "规上" : "规下"; // infoObj["riskReport"] = infoObj.riskReport == 1 ? "" : "";
infoObj["riskReport"] = infoObj.riskReport == 1 ? "是" : "否"; // infoObj["aboveDesignatedTwo"] =
infoObj["aboveDesignatedTwo"] = // infoObj.aboveDesignatedTwo == 1
infoObj.aboveDesignatedTwo == 1 // ? ""
? "大型" // : infoObj.aboveDesignatedTwo == 2
: infoObj.aboveDesignatedTwo == 2 // ? ""
? "中型" // : infoObj.aboveDesignatedTwo == 3
: infoObj.aboveDesignatedTwo == 3 // ? ""
? "小型" // : infoObj.aboveDesignatedTwo == 4
: infoObj.aboveDesignatedTwo == 4 // ? ""
? "微型" // : "";
: ""; // infoObj["supervisionLarge"] = this.supervisionLarge(
infoObj["supervisionLarge"] = this.supervisionLarge( // infoObj.supervisionLarge
infoObj.supervisionLarge // );
); // infoObj["district"] =
infoObj["subdistrict"] = // this.componendDistrict(infoObj.subdistrict) || "/";
this.componendDistrict(infoObj.subdistrict) || "/";
// infoObj["createTime"] = this.$moment(infoObj.createTime).format(
// "yyyy-MM-DD"
// );
// infoObj["updateTime"] = this.$moment(infoObj.createTime).format(
// "yyyy-MM-DD"
// );
infoObj["createTime"] = this.$moment(infoObj.createTime).format(
"yyyy-MM-DD"
);
infoObj["updateTime"] = this.$moment(infoObj.createTime).format(
"yyyy-MM-DD"
);
this.infoData = infoObj; this.infoData = infoObj;
}); });
}, },

Loading…
Cancel
Save