更新检测相关功能
This commit is contained in:
parent
b96157f2c5
commit
ba90e8c90d
@ -136,3 +136,10 @@ export function delWorkInfo(id) {
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
export function detail(params) {
|
||||
return request({
|
||||
url: '/partnerOwn/partner/inspectionDetail',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
@ -82,7 +82,8 @@
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
>录入</el-button>
|
||||
>录入
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
@ -91,7 +92,8 @@
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
>导出</el-button>
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col>
|
||||
<div style="margin-left: 72%;font-weight: bold">
|
||||
<span>
|
||||
@ -149,13 +151,15 @@
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="watchWork(scope.row)"
|
||||
>打印</el-button>
|
||||
>打印
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="xinWork(scope.row)"
|
||||
>结算</el-button>
|
||||
>结算
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@ -163,26 +167,38 @@
|
||||
v-if="scope.row.status&&scope.row.status == 1&&scope.row.isPass&&scope.row.isPass ==1&&scope.row.makeCert!=1"
|
||||
|
||||
@click="zhizheng(scope.row)"
|
||||
>制证</el-button>
|
||||
>制证
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
|
||||
@click="detail(scope.row)"
|
||||
>详情
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
v-if="scope.row.status&&scope.row.status == 0"
|
||||
@click="jieshu(scope.row)"
|
||||
>完工</el-button>
|
||||
>完工
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
>修改</el-button>
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleDelete(scope.row)"
|
||||
>删除</el-button>
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -200,7 +216,8 @@
|
||||
|
||||
<div v-html="htmlStr" id="printMe"></div>
|
||||
|
||||
<el-button type="primary" style="margin-left: 90%;margin-top:20px " v-print="'#printMe'" size="small">打印</el-button>
|
||||
<el-button type="primary" style="margin-left: 90%;margin-top:20px " v-print="'#printMe'" size="small">打印
|
||||
</el-button>
|
||||
|
||||
</el-dialog>
|
||||
<!-- 弹窗 -->
|
||||
@ -244,7 +261,8 @@
|
||||
<span>{{ goodsPrice / 100 }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="优惠金额">
|
||||
<el-input-number :min="0" @input="jisuan" :max="goodsPrice/100" type="text" v-model="reduceMoney"></el-input-number>
|
||||
<el-input-number :min="0" @input="jisuan" :max="goodsPrice/100" type="text"
|
||||
v-model="reduceMoney"></el-input-number>
|
||||
</el-form-item>
|
||||
<el-form-item label="实付金额">
|
||||
<el-input-number type="text" v-model="payMoney"></el-input-number>
|
||||
@ -276,6 +294,17 @@
|
||||
<el-button type="primary" @click="tijiao()">确 定</el-button>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
<el-dialog :title="title" :visible.sync="opendetail" width="800px" append-to-body class="custom-dialog">
|
||||
<div v-for="(item, index) in detailForm" :key="index" class="dialog-item">
|
||||
<div class="item-header">
|
||||
<span class="item-title">{{ item.title }}</span>
|
||||
<span class="item-create-time">{{ item.createTime }}</span>
|
||||
</div>
|
||||
<div class="item-content">
|
||||
<span>{{ item.content }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog :title="title" :visible.sync="addOpen" width="600px" append-to-body>
|
||||
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
@ -350,9 +379,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listWorkOrder,workOrderData,listGoods,addWorkInfo,getWorker,shopInfo,settleAccounts,
|
||||
import {
|
||||
listWorkOrder, workOrderData, listGoods, addWorkInfo, getWorker, shopInfo, settleAccounts,
|
||||
workOrderView, inspectionDetail, offlineCharging,
|
||||
getBankAccountList,makeCertOk,stopInspection,updateWorkInfo,delWorkInfo} from "./api/workOrder";
|
||||
getBankAccountList, makeCertOk, stopInspection, updateWorkInfo, delWorkInfo, detail
|
||||
} from "./api/workOrder";
|
||||
import {getCustomerSource} from "./api/index";
|
||||
import print from 'vue-print-nb'
|
||||
import moment from 'moment';
|
||||
@ -424,8 +455,10 @@
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
openxin: false,
|
||||
opendetail: false,
|
||||
openhe: false,
|
||||
htmlStr: null,
|
||||
detailForm: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
@ -576,6 +609,18 @@
|
||||
})
|
||||
this.openxin = true
|
||||
},
|
||||
detail(row) {
|
||||
console.log('点击详情', row)
|
||||
//根据id查询详情
|
||||
let params = {
|
||||
inspectionInfoId: row.id
|
||||
}
|
||||
detail(params).then(res => {
|
||||
this.detailForm = res.data.stepInfos
|
||||
console.log('详情', this.detailForm)
|
||||
})
|
||||
this.opendetail = true
|
||||
},
|
||||
|
||||
//获取pid
|
||||
getpid() {
|
||||
@ -771,7 +816,8 @@
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
@ -783,8 +829,11 @@
|
||||
};
|
||||
</script>
|
||||
<style media="print">
|
||||
@page {size: auto; /* auto is the initial value */margin: 3mm; /* this affects the margin in the printer settings */
|
||||
@page {
|
||||
size: auto; /* auto is the initial value */
|
||||
margin: 3mm; /* this affects the margin in the printer settings */
|
||||
}
|
||||
|
||||
.w-box {
|
||||
width: 750px;
|
||||
margin: 10px auto;
|
||||
@ -796,6 +845,7 @@
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
|
||||
.box-dis {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@ -803,19 +853,60 @@
|
||||
justify-content: space-between;
|
||||
|
||||
}
|
||||
|
||||
.ws-box {
|
||||
width: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.w-left {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.w-rghit {
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.dazi {
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
}
|
||||
* 对话框整体样式 */
|
||||
.custom-dialog {
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* 每个对话框项的样式 */
|
||||
.dialog-item {
|
||||
margin-bottom: 20px;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid #e4e7ed;
|
||||
}
|
||||
|
||||
/* 标题和创建时间的容器 */
|
||||
.item-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 标题样式 */
|
||||
.item-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* 创建时间样式 */
|
||||
.item-create-time {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* 内容样式 */
|
||||
.item-content {
|
||||
margin-top: 10px;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user