|
|
|
@ -80,14 +80,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
<el-col :span="20" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span style="width:6%" >作业区:</span>
|
|
|
|
|
<el-select v-model="inParam.scdw" placeholder="作业区" clearable style="width: 15%" @change="bzClick">
|
|
|
|
|
<el-option
|
|
|
|
@ -132,11 +125,20 @@
|
|
|
|
|
<!-- <el-button type="info" @click="updates('2')" style="width: 5%">批量</el-button>-->
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4" >
|
|
|
|
|
<el-form-item style="float: right" >
|
|
|
|
|
<el-col :span="16" style="text-align: right">
|
|
|
|
|
<el-button type="success" @click="slpgclick">派工</el-button>
|
|
|
|
|
<el-button type="success" @click="saveclick">报工</el-button>
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" style="text-align: right">
|
|
|
|
|
<el-upload :action="uploadAction"
|
|
|
|
|
:show-file-list="false"
|
|
|
|
|
:before-upload="beforeAvatarUpload"
|
|
|
|
|
:data="fileList"
|
|
|
|
|
:on-success="handleAvatarSuccess"
|
|
|
|
|
:headers="heads">
|
|
|
|
|
<el-button type="success" @click="uploadExcel">excel报工</el-button>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
@ -236,7 +238,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
list: [],
|
|
|
|
|
heads: { token: getToken() },
|
|
|
|
|
uploadAction: process.env.VUE_APP_BASE_API + '/dmCzplpNew/uploadPl',
|
|
|
|
|
uploadAction: process.env.VUE_APP_BASE_API + '/zyjh/pwdr',
|
|
|
|
|
fileList: {},
|
|
|
|
|
dictData:{},
|
|
|
|
|
height: '500px',
|
|
|
|
|
projectData:[],
|
|
|
|
@ -388,12 +391,32 @@ export default {
|
|
|
|
|
window.addEventListener('resize', this.getHeight)
|
|
|
|
|
this.getHeight()
|
|
|
|
|
this.initBase()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
uploadExcel() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
beforeAvatarUpload(file) {
|
|
|
|
|
// 文件类型
|
|
|
|
|
console.debug(file.type)
|
|
|
|
|
const isType = file.type === 'application/vnd.ms-excel'
|
|
|
|
|
const isTypeComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
|
|
|
const fileType = isType || isTypeComputer
|
|
|
|
|
startLoading()
|
|
|
|
|
return fileType
|
|
|
|
|
},
|
|
|
|
|
handleAvatarSuccess(res, file) {
|
|
|
|
|
endLoading()
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message({ message: '导入成功', type: 'success' })
|
|
|
|
|
} else {
|
|
|
|
|
Message({
|
|
|
|
|
message: res.message || 'Error',
|
|
|
|
|
type: 'error',
|
|
|
|
|
duration: 5 * 1000
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
headerCellStyle ({ column, columnIndex }) {
|
|
|
|
|
if (['pwry','pwpgrq','pwpgry','pwfkry','pwfkrq'].includes(column.property)) {
|
|
|
|
|
return {
|
|
|
|
|