计件工资界面优化

master
Yangwl 6 months ago
parent 01e4f0b1fd
commit 62eec951dd

@ -257,7 +257,7 @@
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body> <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body v-loading="upload.loading">
<el-upload <el-upload
ref="upload" ref="upload"
:limit="1" :limit="1"
@ -273,9 +273,9 @@
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div> <div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
<div class="el-upload__tip text-center" slot="tip"> <div class="el-upload__tip text-center" slot="tip">
<!-- <div class="el-upload__tip" slot="tip">--> <div class="el-upload__tip" slot="tip">
<!-- <el-checkbox v-model="upload.updateSupport" /> 是否更新已经存在的数据--> <el-checkbox v-model="upload.updateSupport" /> 是否更新已经存在的单价信息
<!-- </div>--> </div>
<span>仅允许导入xlsxlsx格式文件</span> <span>仅允许导入xlsxlsx格式文件</span>
<el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;" @click="importTemplate"></el-link> <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;" @click="importTemplate"></el-link>
</div> </div>
@ -347,6 +347,7 @@ export default {
}], }],
value: '', value: '',
upload: { upload: {
loading: false,
// //
open: false, open: false,
// //
@ -574,10 +575,14 @@ export default {
}, },
// //
handleFileUploadProgress(event, file, fileList) { handleFileUploadProgress(event, file, fileList) {
console.log(1)
this.upload.isUploading = true; this.upload.isUploading = true;
console.log(this.upload.isUploading)
}, },
// //
handleFileSuccess(response, file, fileList) { handleFileSuccess(response, file, fileList) {
console.log(2)
this.upload.loading=false;
this.upload.open = false; this.upload.open = false;
this.upload.isUploading = false; this.upload.isUploading = false;
this.$refs.upload.clearFiles(); this.$refs.upload.clearFiles();
@ -586,6 +591,8 @@ export default {
}, },
// //
submitFileForm() { submitFileForm() {
console.log(3)
this.upload.loading=true;
this.$refs.upload.submit(); this.$refs.upload.submit();
}, },
handleSearch() { handleSearch() {

@ -76,11 +76,11 @@
<el-table-column label="产线名称" align="center" width="250" prop="equipmentName" /> <el-table-column label="产线名称" align="center" width="250" prop="equipmentName" />
<el-table-column label="操作者" width="110" align="center" prop="nickName" /> <el-table-column label="操作者" width="110" align="center" prop="nickName" />
<el-table-column label="子工序名称" width="110" align="center" prop="childprocessName" /> <el-table-column label="子工序名称" width="110" align="center" prop="childprocessName" />
<el-table-column label="工序单价" align="center" prop="attr1" /> <el-table-column label="工序单价" width="110" align="center" prop="attr1" />
<el-table-column label="件数" align="center" prop="totalQuantity" /> <el-table-column label="件数PC" width="100" align="center" prop="totalQuantity" />
<el-table-column label="薪酬(元)" width="110" align="center" prop="result" /> <el-table-column label="薪酬(元)" width="110" align="center" prop="result" />
<el-table-column label="人数" align="center" prop="headCount" /> <el-table-column label="人数" align="center" prop="headCount" />
<el-table-column label="平均工资(元)" width="110" align="center" prop="avgResult" /> <!-- <el-table-column label="平均工资(元)" width="110" align="center" prop="avgResult" />-->
<el-table-column label="实际工资(元)" width="110" align="center" prop="realWages" /> <el-table-column label="实际工资(元)" width="110" align="center" prop="realWages" />
<el-table-column label="备注" align="center" prop="remark"> <el-table-column label="备注" align="center" prop="remark">
<template slot-scope="scope"> <template slot-scope="scope">
@ -98,7 +98,7 @@
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"p
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['unitPriceReport:report:edit']" v-hasPermi="['unitPriceReport:report:edit']"
>工资修改</el-button> >工资修改</el-button>
@ -128,8 +128,8 @@
<el-form ref="form" :model="form" label-width="100px"> <el-form ref="form" :model="form" label-width="100px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="实际工资" prop="attr1" > <el-form-item label="实际工资" prop="attr2" >
<el-input v-model="form.attr1" /> <el-input v-model="form.attr2" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -166,7 +166,7 @@
<!-- <el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>--> <!-- <el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>-->
<el-select <el-select
v-model="form.remark" v-model="form.remark"
placeholder="工单状态" placeholder="备注"
clearable clearable
style="width: 240px" style="width: 240px"
> >
@ -328,10 +328,10 @@ export default {
getReport(picId).then(response => { getReport(picId).then(response => {
this.form = response.data.MesUnitpriceReport; this.form = response.data.MesUnitpriceReport;
this.open = true; this.open = true;
if (response.data.attr1 === null || response.data.attr1 === undefined) { if (response.data.attr2 === null || response.data.attr2 === undefined) {
this.form.attr1 = row.avgResult; this.form.attr2 = row.result;
} else { } else {
this.form.attr1 = response.data.attr1; this.form.attr2 = response.data.attr2;
} }
this.MesUnitPriceInfo=response.data.MesUnitPriceInfo; this.MesUnitPriceInfo=response.data.MesUnitPriceInfo;
}); });

Loading…
Cancel
Save