Browse Source

7.16修改部分功能

master
xiaobai 3 years ago
parent
commit
7eaf733473
  1. 10
      src/views/allot/rwd_list.vue
  2. 25
      src/views/allot/tuihui_list.vue
  3. 2
      src/views/allot/zuofei_list.vue
  4. 11
      src/views/bjd/dj_create.vue
  5. 1508
      src/views/bjd/dj_input.vue
  6. 5
      src/views/bjd/dj_list.vue
  7. 3
      src/views/bjd/jj_list.vue
  8. 2
      src/views/search/list.vue
  9. 36
      src/views/task/list.vue

10
src/views/allot/rwd_list.vue

@ -98,6 +98,7 @@
<el-table-column align="center" label="查看报检" width="60"> <el-table-column align="center" label="查看报检" width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="success" size="small" circle icon="el-icon-view" title="预览报检单" @click="editBjd(scope.$index)" /> <el-button type="success" size="small" circle icon="el-icon-view" title="预览报检单" @click="editBjd(scope.$index)" />
<el-button type="info" size="small" circle icon="el-icon-edit" title="修改报检单" @click="modifyBjd(scope.$index)" />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -222,6 +223,15 @@ export default {
this.$router.push({ path: '/bjd/bjd-jj-input/' + bjd.bjdId + '/' + bjd.shebeizhongleidaima + '/' + bjd.shebeizhongleidaima + type }) this.$router.push({ path: '/bjd/bjd-jj-input/' + bjd.bjdId + '/' + bjd.shebeizhongleidaima + '/' + bjd.shebeizhongleidaima + type })
} }
}, },
modifyBjd($index) {
const bjd = this.list[$index]
const type = '/finish'
if (bjd.jianyanleibie === 'DJ') {
this.$router.push({ path: '/bjd/bjd-dj-input/' + bjd.bjdId + '/' + bjd.shebeizhongleidaima + '/' + bjd.shebeizhongleidaima + type, params: { form: 1 }})
} else {
this.$router.push({ path: '/bjd/bjd-jj-input/' + bjd.bjdId + '/' + bjd.shebeizhongleidaima + '/' + bjd.shebeizhongleidaima + type, params: { form: 1 }})
}
},
printRwd() { printRwd() {
if (this.multipleSelection.length > 1) { if (this.multipleSelection.length > 1) {
this.$message({ message: '只能打印一份任务单', type: 'error' }) this.$message({ message: '只能打印一份任务单', type: 'error' })

25
src/views/allot/tuihui_list.vue

@ -19,11 +19,11 @@
</sticky> </sticky>
<el-form> <el-form>
<el-form-item> <el-form-item>
<el-select v-model="listQuery.searchRw.shebeizhongleidaima" placeholder="请选择设备种类" clearable> <el-select v-model="listQuery.shebeizhongleidaima" placeholder="请选择设备种类" clearable>
<el-option v-for="item in sbzlList" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in sbzlList" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
<el-input v-model="listQuery.searchRw.serialNumber" placeholder="报检单号" clearable style="width: 160px" @keyup.enter.native="handleFilter" /> <el-input v-model="listQuery.serialNumber" placeholder="报检单号" clearable style="width: 160px" @keyup.enter.native="handleFilter" />
<el-input v-model="listQuery.searchRw.shiyongdanwei" placeholder="使用单位名称" clearable style="width: 300px" @keyup.enter.native="handleFilter" /> <el-input v-model="listQuery.shiyongdanwei" placeholder="使用单位名称" clearable style="width: 300px" @keyup.enter.native="handleFilter" />
<el-button type="primary" icon="el-icon-search" @click="handleFilter"> <el-button type="primary" icon="el-icon-search" @click="handleFilter">
查询 查询
</el-button> </el-button>
@ -31,8 +31,8 @@
清除 清除
</el-button> </el-button>
<br> <br>
<el-input v-model="listQuery.searchRw.zhucedaima" placeholder="注册代码" clearable style="width: 220px" @keyup.enter.native="handleFilter" /> <el-input v-model="listQuery.zhucedaima" placeholder="注册代码" clearable style="width: 220px" @keyup.enter.native="handleFilter" />
<el-input v-model="listQuery.searchRw.shiyongdengjibianhao" placeholder="使用登记证编号" clearable style="width: 180px" @keyup.enter.native="handleFilter" /> <el-input v-model="listQuery.shiyongdengjibianhao" placeholder="使用登记证编号" clearable style="width: 180px" @keyup.enter.native="handleFilter" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -76,9 +76,6 @@
<el-button type="danger" size="mini" circle icon="el-icon-close" title="拒绝" @click="updateBohui(scope.row.id, 'danger')" /> <el-button type="danger" size="mini" circle icon="el-icon-close" title="拒绝" @click="updateBohui(scope.row.id, 'danger')" />
</span>&nbsp;&nbsp;&nbsp;&nbsp; </span>&nbsp;&nbsp;&nbsp;&nbsp;
<el-button size="mini" type="info" icon="el-icon-message" title="查看退回原因" circle @click="viewBohui(scope.row.id)" /> <el-button size="mini" type="info" icon="el-icon-message" title="查看退回原因" circle @click="viewBohui(scope.row.id)" />
<el-button size="mini" type="info" title="查看退回附件" circle @click="viewFujian(scope.row.id)">
<svg-icon icon-class="old" />
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -159,8 +156,7 @@ export default {
tempDepartment: {}, tempDepartment: {},
listQuery: { listQuery: {
pageNum: 1, // pageNum: 1, //
pageRow: 20, // pageRow: 20 //
searchRw: {}
}, },
renwudan: { renwudan: {
teamId: '', teamId: '',
@ -192,7 +188,7 @@ export default {
} }
}, },
created() { created() {
this.getList() // this.getList()
this.getSbzlList() this.getSbzlList()
this.getDepartment() this.getDepartment()
this.getUserList(this.departmentId) this.getUserList(this.departmentId)
@ -263,7 +259,7 @@ export default {
}, },
viewBohui(id) { // viewBohui(id) { //
this.api({ this.api({
url: '/taskinfoView/list', url: '/taskinfo/list',
method: 'get', method: 'get',
params: { params: {
renwuId: id renwuId: id
@ -465,11 +461,14 @@ export default {
}, },
handleFilter() { handleFilter() {
// //
console.log(this.listQuery)
this.listQuery.pageNum = 1 this.listQuery.pageNum = 1
this.getList() this.getList()
}, },
clearSearch() { clearSearch() {
this.listQuery.searchRw = { this.listQuery = {
pageNum: 1, //
pageRow: 20
} }
this.getList() this.getList()
}, },

2
src/views/allot/zuofei_list.vue

@ -123,7 +123,7 @@ export default {
}, },
viewBohui(id) { // viewBohui(id) { //
this.api({ this.api({
url: '/taskinfoView/list', url: '/taskinfo/list',
method: 'get', method: 'get',
params: { params: {
renwuId: id renwuId: id

11
src/views/bjd/dj_create.vue

@ -243,8 +243,15 @@ export default {
}, },
handleFilter() { handleFilter() {
// //
this.listQuery.pageNum = 1 if (!this.listQuery.shebeizhongleidaima) {
this.getList() this.$message({
message: '请先选择设备种类',
type: 'warning'
})
} else {
this.listQuery.pageNum = 1
this.getList()
}
}, },
clearSearch() { clearSearch() {
this.listQuery = { this.listQuery = {

1508
src/views/bjd/dj_input.vue

File diff suppressed because it is too large

5
src/views/bjd/dj_list.vue

@ -284,10 +284,11 @@ export default {
return false return false
} else { } else {
for (let i = 0; i < this.multipleSelection.length; i++) { for (let i = 0; i < this.multipleSelection.length; i++) {
this.$confirm('共' + this.multipleSelection.length + '条报检项目将作废,是否继续?', '提示', { this.$prompt('请输入作废原因', '共' + this.multipleSelection.length + '条报检项目将作废,是否继续?', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' inputPattern: /\S/,
inputErrorMessage: '作废原因不能为空'
}).then(() => { }).then(() => {
for (let i = 0; i < this.multipleSelection.length; i++) { for (let i = 0; i < this.multipleSelection.length; i++) {
this.ids.push(this.multipleSelection[i].id) this.ids.push(this.multipleSelection[i].id)

3
src/views/bjd/jj_list.vue

@ -23,9 +23,6 @@
<el-button type="info" icon="el-icon-delete" @click="delBjd"> <el-button type="info" icon="el-icon-delete" @click="delBjd">
删除 删除
</el-button> </el-button>
<el-button v-if="hasRole('JDFPRW')" type="primary" icon="el-icon-delete" @click="showUpdateSgLxrDhDialog">
修改施工联系人电话
</el-button>
</div> </div>
</sticky> </sticky>
<el-form> <el-form>

2
src/views/search/list.vue

@ -234,7 +234,7 @@ export default {
this.taskInfoListData.length = 0 this.taskInfoListData.length = 0
this.loading = true this.loading = true
this.api({ this.api({
url: '/taskinfoView/list', url: '/taskinfo/list',
method: 'get', method: 'get',
params: { params: {
renwuId: taskinfo.id, renwuId: taskinfo.id,

36
src/views/task/list.vue

@ -21,6 +21,9 @@
<el-button v-if="notHasDepartmentId(74)" type="success" icon="el-icon-success" @click="completeRenwu"> <el-button v-if="notHasDepartmentId(74)" type="success" icon="el-icon-success" @click="completeRenwu">
任务完成 任务完成
</el-button> </el-button>
<el-button type="info" icon="el-icon-minus" @click="terminationFn">
终止任务
</el-button>
</div> </div>
</sticky> </sticky>
<el-form> <el-form>
@ -627,6 +630,7 @@ export default {
deleteRenwu() { deleteRenwu() {
if (!this.$refs.list.selection.length) { if (!this.$refs.list.selection.length) {
this.$message.error('请选择要作废的任务') this.$message.error('请选择要作废的任务')
return false
} }
this.$prompt('正在执行作废任务操作,确定继续?', '提示', { this.$prompt('正在执行作废任务操作,确定继续?', '提示', {
inputType: 'textarea', inputType: 'textarea',
@ -664,6 +668,7 @@ export default {
completeRenwu() { completeRenwu() {
if (!this.$refs.list.selection.length) { if (!this.$refs.list.selection.length) {
this.$message.error('请选择要完成的任务') this.$message.error('请选择要完成的任务')
return false
} }
this.$confirm('正在执行任务完成操作,确定继续?', '提示', { this.$confirm('正在执行任务完成操作,确定继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -689,6 +694,37 @@ export default {
}) })
}) })
}, },
//
terminationFn() {
if (!this.$refs.list.selection.length) {
this.$message.error('请选择要终止的任务')
return false
}
this.$prompt('请输入终止原因', '确认提前终止任务?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputPattern: /\S/,
inputErrorMessage: '终止原因不能为空'
}).then(() => {
this.apibjd({
url: 'renwu/terminateRenwu',
method: 'put',
params: {
renwuIds: this.$refs.list.selection.map(rw => {
return rw.id
}).join(',')
}
}).then(data => {
this.$message.success('任务已终止')
this.getList()
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
})
})
},
/** /**
* 显示相关鉴证文件上传窗口 * 显示相关鉴证文件上传窗口
* @param renwuId * @param renwuId

Loading…
Cancel
Save