Compare commits

...

2 Commits

Author SHA1 Message Date
ad9d2e0c11 Merge remote-tracking branch 'origin/main' 2024-04-29 17:02:29 +08:00
3223294e15 页面展示优化 2024-04-29 17:02:16 +08:00
18 changed files with 102 additions and 39 deletions

View File

@ -8,7 +8,7 @@
<version>3.8.7</version> <version>3.8.7</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging> <packaging>war</packaging>
<artifactId>inspur-admin</artifactId> <artifactId>inspur-admin</artifactId>
<description> <description>

View File

@ -117,7 +117,7 @@ public interface OmOrderInfoMapper
*/ */
public List<OmOrderInfo> selectInvainOrder(); public List<OmOrderInfo> selectInvainOrder();
/** /**
* 查询无效订单 * 批量更新订单状态
* *
* @return 结果 * @return 结果
*/ */

View File

@ -340,6 +340,7 @@
FROM om_order_quotation q FROM om_order_quotation q
LEFT JOIN om_order_info a ON a.order_id = q.order_id LEFT JOIN om_order_info a ON a.order_id = q.order_id
<where> <where>
q.del_flag = '0 '
<if test="tenantId != null and tenantId != ''">and q.tenant_id = #{tenantId}</if> <if test="tenantId != null and tenantId != ''">and q.tenant_id = #{tenantId}</if>
<if test="status != null and status != ''">and a.status = #{status}</if> <if test="status != null and status != ''">and a.status = #{status}</if>
<if test="searchValue != null and searchValue != ''">and q.quotation_num like <if test="searchValue != null and searchValue != ''">and q.quotation_num like

View File

@ -187,7 +187,7 @@ export default {
changeLoginStatus() { changeLoginStatus() {
if (this.loginStatus === 0) { if (this.loginStatus === 0) {
this.loginStatus = 1; this.loginStatus = 1;
this.title = "装备运维知识服务台后台"; this.title = "装备运维知识服务管理平台";
} else if (this.loginStatus === 1) { } else if (this.loginStatus === 1) {
this.loginStatus = 0; this.loginStatus = 0;
this.title = "装备运维知识服务平台"; this.title = "装备运维知识服务平台";
@ -211,7 +211,7 @@ export default {
const tenantId = Cookies.get("tenantId"); const tenantId = Cookies.get("tenantId");
if (tenantId == "00000000") { if (tenantId == "00000000") {
this.loginStatus = 1; this.loginStatus = 1;
this.title = "装备运维知识服务台后台"; this.title = "装备运维知识服务管理平台";
} else { } else {
this.loginStatus = 0; this.loginStatus = 0;
this.title = "装备运维知识服务平台"; this.title = "装备运维知识服务平台";

View File

@ -417,7 +417,7 @@
/> />
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row> <el-row v-if="!isDisabled">
<el-form-item <el-form-item
label="合规性审查意见" label="合规性审查意见"
prop="complianceReview" prop="complianceReview"
@ -445,7 +445,14 @@
type="primary" type="primary"
@click="submitForm(4)" @click="submitForm(4)"
> </el-button> > </el-button>
<el-button @click="cancel"> </el-button> <el-button
v-if="!isDisabled"
@click="cancel"
> </el-button>
<el-button
v-if="isDisabled"
@click="cancel"
> </el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -453,7 +460,7 @@
<script> <script>
import { import {
listByOmApplication, listApplication,
getApplication, getApplication,
addApplication, addApplication,
updateApplication, updateApplication,
@ -521,7 +528,7 @@ export default {
// //
this.queryParams.status = "3"; this.queryParams.status = "3";
this.loading = true; this.loading = true;
listByOmApplication(this.queryParams).then((response) => { listApplication(this.queryParams).then((response) => {
this.applicationList = response.rows; this.applicationList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;

View File

@ -5,7 +5,6 @@
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:file-list="fileList" :file-list="fileList"
:limit="limit" :limit="limit"
accept=".zip,.rar"
:on-error="handleUploadError" :on-error="handleUploadError"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-success="handleUploadSuccess" :on-success="handleUploadSuccess"
@ -143,26 +142,26 @@ export default {
}, },
// //
handleBeforeUpload(file) { handleBeforeUpload(file) {
// // //
if (this.fileType) { // if (this.fileType) {
const fileName = file.name.split("."); // const fileName = file.name.split(".");
const fileExt = fileName[fileName.length - 1]; // const fileExt = fileName[fileName.length - 1];
const isTypeOk = this.fileType.indexOf(fileExt) >= 0; // const isTypeOk = this.fileType.indexOf(fileExt) >= 0;
if (!isTypeOk) { // if (!isTypeOk) {
this.$modal.msgError( // this.$modal.msgError(
`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!` // `, ${this.fileType.join("/")}!`
); // );
return false; // return false;
} // }
} // }
// // //
if (this.fileSize) { // if (this.fileSize) {
const isLt = file.size / 1024 / 1024 < this.fileSize; // const isLt = file.size / 1024 / 1024 < this.fileSize;
if (!isLt) { // if (!isLt) {
this.$modal.msgError(`上传文件大小不能超过 ${this.fileSize} MB!`); // this.$modal.msgError(` ${this.fileSize} MB!`);
return false; // return false;
} // }
} // }
this.$modal.loading("正在上传文件,请稍候..."); this.$modal.loading("正在上传文件,请稍候...");
this.number++; this.number++;
return true; return true;

View File

@ -405,13 +405,13 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row v-if="!isDisabled">
<el-form-item <el-form-item
:disabled="isDisabled"
label="资料审查意见" label="资料审查意见"
prop="infoReview" prop="infoReview"
> >
<el-input <el-input
:disabled="isDisabled"
v-model="form.infoReview" v-model="form.infoReview"
type="textarea" type="textarea"
placeholder="请输入内容" placeholder="请输入内容"
@ -433,7 +433,14 @@
type="primary" type="primary"
@click="submitForm(2)" @click="submitForm(2)"
> </el-button> > </el-button>
<el-button @click="cancel"> </el-button> <el-button
v-if="!isDisabled"
@click="cancel"
> </el-button>
<el-button
v-if="isDisabled"
@click="cancel"
> </el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -441,7 +448,7 @@
<script> <script>
import { import {
listByOmApplication, listApplication,
getApplication, getApplication,
addApplication, addApplication,
updateApplication, updateApplication,
@ -509,7 +516,7 @@ export default {
// //
this.queryParams.status = "1"; this.queryParams.status = "1";
this.loading = true; this.loading = true;
listByOmApplication(this.queryParams).then((response) => { listApplication(this.queryParams).then((response) => {
this.applicationList = response.rows; this.applicationList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;

View File

@ -103,6 +103,23 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item
label="状态"
prop="status"
>
<el-select
v-model="queryParams.status"
placeholder="请选择状态"
clearable
>
<el-option
v-for="dict in dict.type.om_application_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
@ -446,7 +463,7 @@
</template> </template>
<script> <script>
import { listByOmApplication, getApplication } from "@/api/om/application"; import { listApplication, getApplication } from "@/api/om/application";
export default { export default {
name: "Application", name: "Application",
dicts: [ dicts: [
@ -511,7 +528,7 @@ export default {
/** 查询团队注册申请列表 */ /** 查询团队注册申请列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listByOmApplication(this.queryParams).then((response) => { listApplication(this.queryParams).then((response) => {
this.applicationList = response.rows; this.applicationList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;

View File

@ -401,6 +401,7 @@ import {
addApplication, addApplication,
updateApplication, updateApplication,
uniqueCheck, uniqueCheck,
delApplication,
} from "@/api/om/application"; } from "@/api/om/application";
import FileUploadOm from "@/views/om/application/fileUpload"; import FileUploadOm from "@/views/om/application/fileUpload";
export default { export default {
@ -654,6 +655,21 @@ export default {
"_self" "_self"
); );
}, },
/** 删除按钮操作 */
handleDelete(row) {
const teamId = row.id;
const teamName = row.teamName;
this.$modal
.confirm('是否确认删除名称为"' + teamName + '"运维团队申请?')
.then(function () {
return delApplication(teamId);
})
.then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
})
.catch(() => {});
},
}, },
}; };
</script> </script>

View File

@ -492,9 +492,9 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const teamIds = row.teamId || this.ids; const teamIds = row.teamId;
this.$modal this.$modal
.confirm('是否确认删除运维团队:"' + teamIds + '"') .confirm('是否确认删除运维团队:"' + row.teamName + '"')
.then(function () { .then(function () {
return delTeamInfo(teamIds); return delTeamInfo(teamIds);
}) })

View File

@ -680,9 +680,11 @@
prop="remark" prop="remark"
> >
<el-input <el-input
v-if="!isView"
v-model="formQuotation.remark" v-model="formQuotation.remark"
placeholder="请输入备注" placeholder="请输入备注"
/> />
<span v-if="isView">{{ formQuotation.remark }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -632,9 +632,11 @@
prop="remark" prop="remark"
> >
<el-input <el-input
v-if="!isView"
v-model="formQuotation.remark" v-model="formQuotation.remark"
placeholder="请输入备注" placeholder="请输入备注"
/> />
<span v-if="isView">{{ formQuotation.remark }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -654,9 +654,11 @@
prop="remark" prop="remark"
> >
<el-input <el-input
v-if="!isView"
v-model="formQuotation.remark" v-model="formQuotation.remark"
placeholder="请输入备注" placeholder="请输入备注"
/> />
<span v-if="isView">{{ formQuotation.remark }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -716,9 +716,11 @@
prop="remark" prop="remark"
> >
<el-input <el-input
v-if="!isView"
v-model="formQuotation.remark" v-model="formQuotation.remark"
placeholder="请输入备注" placeholder="请输入备注"
/> />
<span v-if="isView">{{ formQuotation.remark }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -589,9 +589,11 @@
prop="remark" prop="remark"
> >
<el-input <el-input
v-if="!isView"
v-model="formQuotation.remark" v-model="formQuotation.remark"
placeholder="请输入备注" placeholder="请输入备注"
/> />
<span v-if="isView">{{ formQuotation.remark }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -696,9 +696,11 @@
prop="remark" prop="remark"
> >
<el-input <el-input
v-if="!isView"
v-model="formQuotation.remark" v-model="formQuotation.remark"
placeholder="请输入备注" placeholder="请输入备注"
/> />
<span v-if="isView">{{ formQuotation.remark }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -668,9 +668,11 @@
prop="remark" prop="remark"
> >
<el-input <el-input
v-if="!isView"
v-model="formQuotation.remark" v-model="formQuotation.remark"
placeholder="请输入备注" placeholder="请输入备注"
/> />
<span v-if="isView">{{ formQuotation.remark }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -675,9 +675,11 @@
prop="remark" prop="remark"
> >
<el-input <el-input
v-if="!isView"
v-model="formQuotation.remark" v-model="formQuotation.remark"
placeholder="请输入备注" placeholder="请输入备注"
/> />
<span v-if="isView">{{ formQuotation.remark }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>