diff --git a/src/api/address-manage/index.js b/src/api/address-manage/index.js index 65954a3e..e52b0a62 100644 --- a/src/api/address-manage/index.js +++ b/src/api/address-manage/index.js @@ -39,6 +39,15 @@ export const getAddressListApi = (data = {}) => { }) } +export const delAddressApi = (data) => { + return request({ + url: '/material-mall/bm_company_address/delAddress?id=' + data, + method: 'POST' + }) +} + + + // 需求列表详情 export const getLeaseDetailsByIdApi = (data = {}) => { return request({ diff --git a/src/views/EquipmentSharedOrder/order/index.vue b/src/views/EquipmentSharedOrder/order/index.vue index dab91cc2..ee792e78 100644 --- a/src/views/EquipmentSharedOrder/order/index.vue +++ b/src/views/EquipmentSharedOrder/order/index.vue @@ -138,7 +138,7 @@ {{ item.buyerName }} - 承租方所属单位---: + 承租方所属单位: {{ item.companyName }} diff --git a/src/views/EquipmentTypeConfig/index.vue b/src/views/EquipmentTypeConfig/index.vue index 20ac65ec..bd699eb2 100644 --- a/src/views/EquipmentTypeConfig/index.vue +++ b/src/views/EquipmentTypeConfig/index.vue @@ -5,7 +5,7 @@
- 装备分类--- + 装备分类
- 新建收货地址 - + size="mini" + @click="handleAddAddress" + type="primary" + class="primary-lease" + > + 新建收货地址 + -
- - - - - - - - - - -
+
+ + + + + + + + + + +
-
- -
- +
+ +
+ { + delAddressApi(id).then(res => { + this.$message({ + type: 'success', + message: '操作成功!' + }) + this.getLeaseListData() + }) + }) + }, + // 编辑地址 async onRepublish(row) { this.dialogTitle = '编辑收货地址' @@ -282,7 +311,7 @@ export default { // 提交表单 async onSubmit(type) { - this.$refs.addOrEditFormRef.validate(async (valid) => { + this.$refs.addOrEditFormRef.validate(async(valid) => { if (valid) { const SUBMIT_API = this.dialogTitle === '新增收货地址' ? addAddressInfoApi @@ -331,19 +360,20 @@ export default { }, // 区县变化 - async onCountyChange(id) {}, + async onCountyChange(id) { + }, // 审核处理 onAuditing(id, leaseStatus) { MessageBox.confirm(`是否${leaseStatus === 1 ? '通过' : '驳回'}此次接单申请?`, '温馨提示', { confirmButtonText: '确定', cancelButtonText: '取消', - type: 'success', + type: 'success' }) - .then(async () => { + .then(async() => { const res = await maLeaseAuditApi({ id, - leaseStatus, + leaseStatus }) if (res.code == 200) { Message({ @@ -354,7 +384,8 @@ export default { this.getLeaseListData() } }) - .catch(() => {}) + .catch(() => { + }) } }, mounted() { @@ -368,13 +399,16 @@ export default { ::v-deep .upload-tip .el-form-item__label { color: transparent; } + .el-pagination { justify-content: flex-end; padding: 5px 0; } + ::v-deep .el-pagination.is-background .el-pager li.is-active { background-color: #3cb4a6; } + ::v-deep .el-form--inline .el-form-item { margin-right: 6px; width: 95%; @@ -416,10 +450,12 @@ export default { } } } + .img-items:hover .mask-img { visibility: visible; } } + .app-container-content { ::v-deep .el-dialog { display: flex !important; @@ -430,10 +466,12 @@ export default { left: 50% !important; transform: translate(-50%, -50%) !important; max-height: 100vh !important; + .el-dialog__body { flex: 1; overflow-y: scroll !important; } + .dialog-content { padding: 20px; } @@ -441,30 +479,30 @@ export default { } ::v-deep .el-table { - // 启用斑马纹 - &.el-table--striped .el-table__body { - tr.el-table__row--striped td { - background-color: #F6FBFA !important; // 浅紫色 - } - } - - .el-table__header { - background: #E9F0EE; - - th { - background: #E9F0EE !important; - color: #606266; - font-weight: 600; - height: 50px; - } - } - - &.el-table--striped .el-table__body tr.el-table__row:hover>td.el-table__cell { - background-color: #CCF1E9 !important; + // 启用斑马纹 + &.el-table--striped .el-table__body { + tr.el-table__row--striped td { + background-color: #F6FBFA !important; // 浅紫色 } } - .content-box { + .el-table__header { + background: #E9F0EE; + + th { + background: #E9F0EE !important; + color: #606266; + font-weight: 600; + height: 50px; + } + } + + &.el-table--striped .el-table__body tr.el-table__row:hover > td.el-table__cell { + background-color: #CCF1E9 !important; + } +} + +.content-box { border-radius: 8px; height: calc(100vh - 120px); display: flex; @@ -504,7 +542,7 @@ export default { padding-top: 6px; margin-top: auto; - ::v-deep .pagination-container { + ::v-deep .pagination-container { padding: 0px 20px !important; /* margin-bottom: 30px; */ } @@ -529,7 +567,7 @@ export default { } } - &.el-table--striped .el-table__body tr.el-table__row:hover>td.el-table__cell { + &.el-table--striped .el-table__body tr.el-table__row:hover > td.el-table__cell { background-color: #CCF1E9 !important; } } diff --git a/src/views/business/outbound/details.vue b/src/views/business/outbound/details.vue index e653a97b..34d9f3f4 100644 --- a/src/views/business/outbound/details.vue +++ b/src/views/business/outbound/details.vue @@ -154,9 +154,9 @@ - - - + + +