|
|
@ -5,9 +5,7 @@
|
|
|
|
<x-card style="padding-bottom: 20px">
|
|
|
|
<x-card style="padding-bottom: 20px">
|
|
|
|
<div slot="content">
|
|
|
|
<div slot="content">
|
|
|
|
<template v-if="levelLoading">
|
|
|
|
<template v-if="levelLoading">
|
|
|
|
<div class="nav-loading">
|
|
|
|
<div class="nav-loading"><a-icon type="loading" /><span class="tip">加载中...</span></div>
|
|
|
|
<a-icon type="loading" /><span class="tip">加载中...</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
<template v-else>
|
|
|
|
<div class="nav-title">
|
|
|
|
<div class="nav-title">
|
|
|
@ -34,7 +32,14 @@
|
|
|
|
</a-tabs>
|
|
|
|
</a-tabs>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<div class="nav-bottom">
|
|
|
|
<div class="nav-bottom">
|
|
|
|
<a-button type="link" class="icon" :icon="levelreLoading ? 'loading' : 'reload'" size="small" @click="getCurrentTotalStat">点击重新加载</a-button>
|
|
|
|
<a-button
|
|
|
|
|
|
|
|
type="link"
|
|
|
|
|
|
|
|
class="icon"
|
|
|
|
|
|
|
|
:icon="levelreLoading ? 'loading' : 'reload'"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click="getCurrentTotalStat"
|
|
|
|
|
|
|
|
>点击重新加载</a-button
|
|
|
|
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</x-card>
|
|
|
|
</x-card>
|
|
|
@ -55,7 +60,10 @@
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :md="7" :sm="24">
|
|
|
|
<a-col :md="7" :sm="24">
|
|
|
|
<a-form-item label="开船日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
<a-form-item label="开船日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
<a-range-picker format="YYYY-MM-DD" v-decorator="['etd', { rules: [{ required: false, message: '请输入提单号' }] }]"/>
|
|
|
|
<a-range-picker
|
|
|
|
|
|
|
|
format="YYYY-MM-DD"
|
|
|
|
|
|
|
|
v-decorator="['etd', { rules: [{ required: false, message: '请输入提单号' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :md="5" :sm="24">
|
|
|
|
<a-col :md="5" :sm="24">
|
|
|
@ -101,7 +109,10 @@
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :md="7" :sm="24">
|
|
|
|
<a-col :md="7" :sm="24">
|
|
|
|
<a-form-item label="任务日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
<a-form-item label="任务日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
<a-range-picker format="YYYY-MM-DD" v-decorator="['taskDate', { rules: [{ required: false, message: '请输入提单号' }] }]"/>
|
|
|
|
<a-range-picker
|
|
|
|
|
|
|
|
format="YYYY-MM-DD"
|
|
|
|
|
|
|
|
v-decorator="['taskDate', { rules: [{ required: false, message: '请输入提单号' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :md="5" :sm="24">
|
|
|
|
<a-col :md="5" :sm="24">
|
|
|
@ -110,11 +121,7 @@
|
|
|
|
:dropdownMatchSelectWidth="false"
|
|
|
|
:dropdownMatchSelectWidth="false"
|
|
|
|
v-decorator="['status', { rules: [{ required: false, message: '请输入任务状态' }] }]"
|
|
|
|
v-decorator="['status', { rules: [{ required: false, message: '请输入任务状态' }] }]"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select-option
|
|
|
|
<a-select-option v-for="(status, stindex) in statusList" :key="stindex" :value="status.code">
|
|
|
|
v-for="(status, stindex) in statusList"
|
|
|
|
|
|
|
|
:key="stindex"
|
|
|
|
|
|
|
|
:value="status.code"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ status.name }}
|
|
|
|
{{ status.name }}
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
@ -126,14 +133,23 @@
|
|
|
|
:dropdownMatchSelectWidth="false"
|
|
|
|
:dropdownMatchSelectWidth="false"
|
|
|
|
v-decorator="['taskType', { rules: [{ required: false, message: '请输入任务类型' }] }]"
|
|
|
|
v-decorator="['taskType', { rules: [{ required: false, message: '请输入任务类型' }] }]"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select-option v-for="(taskItem, tindex) in taskTypeList" :key="tindex" :value="taskItem.code">
|
|
|
|
<a-select-option
|
|
|
|
|
|
|
|
v-for="(taskItem, tindex) in taskTypeList"
|
|
|
|
|
|
|
|
:key="tindex"
|
|
|
|
|
|
|
|
:value="taskItem.code"
|
|
|
|
|
|
|
|
>
|
|
|
|
{{ taskItem.name }}
|
|
|
|
{{ taskItem.name }}
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<a-col :md="(!advanced && 7) || 24" :sm="24" :labelCol="{ span: 2, offset: 12 }" :wrapperCol="wrapperCol">
|
|
|
|
<a-col
|
|
|
|
|
|
|
|
:md="(!advanced && 7) || 24"
|
|
|
|
|
|
|
|
:sm="24"
|
|
|
|
|
|
|
|
:labelCol="{ span: 2, offset: 12 }"
|
|
|
|
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
|
|
|
|
>
|
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
|
<a-button type="primary" @click="tableRefresh">查询</a-button>
|
|
|
|
<a-button type="primary" @click="tableRefresh">查询</a-button>
|
|
|
|
<a-button style="margin-left: 8px" @click="tableReset">重置</a-button>
|
|
|
|
<a-button style="margin-left: 8px" @click="tableReset">重置</a-button>
|
|
|
@ -305,7 +321,10 @@
|
|
|
|
<template slot="title">
|
|
|
|
<template slot="title">
|
|
|
|
LARA登记
|
|
|
|
LARA登记
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<span class="operate-btn iconfont icon-electronic-signature" @click="laraPaperRegistFun(row)"></span>
|
|
|
|
<span
|
|
|
|
|
|
|
|
class="operate-btn iconfont icon-electronic-signature"
|
|
|
|
|
|
|
|
@click="laraPaperRegistFun(row)"
|
|
|
|
|
|
|
|
></span>
|
|
|
|
</a-tooltip>
|
|
|
|
</a-tooltip>
|
|
|
|
<a-tooltip>
|
|
|
|
<a-tooltip>
|
|
|
|
<template slot="title">
|
|
|
|
<template slot="title">
|
|
|
@ -340,10 +359,7 @@
|
|
|
|
}"
|
|
|
|
}"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input
|
|
|
|
<a-input placeholder="请输入发送邮箱" v-model="sendEmailForm.email" />
|
|
|
|
placeholder="请输入发送邮箱"
|
|
|
|
|
|
|
|
v-model="sendEmailForm.email"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model>
|
|
|
|
</a-form-model>
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
@ -458,7 +474,10 @@ export default {
|
|
|
|
sendEmailVisible: false,
|
|
|
|
sendEmailVisible: false,
|
|
|
|
sendEmailModelconfirm: false,
|
|
|
|
sendEmailModelconfirm: false,
|
|
|
|
sendFormRules: {
|
|
|
|
sendFormRules: {
|
|
|
|
email: [{ required: true, message: '请输入邮箱', trigger: 'blur' }, { type: 'email', message: '请输入有效的邮箱' }]
|
|
|
|
email: [
|
|
|
|
|
|
|
|
{ required: true, message: '请输入邮箱', trigger: 'blur' },
|
|
|
|
|
|
|
|
{ type: 'email', message: '请输入有效的邮箱' }
|
|
|
|
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 页数计算
|
|
|
|
// 页数计算
|
|
|
|
paperCalcVisible: false,
|
|
|
|
paperCalcVisible: false,
|
|
|
@ -497,8 +516,7 @@ export default {
|
|
|
|
this.getParaInfo('SOURCE')
|
|
|
|
this.getParaInfo('SOURCE')
|
|
|
|
this.getParaInfo('CATEGORY')
|
|
|
|
this.getParaInfo('CATEGORY')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {},
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
onSelect(selectedKeys, info) {
|
|
|
|
onSelect(selectedKeys, info) {
|
|
|
|
console.log('selected', selectedKeys, info)
|
|
|
|
console.log('selected', selectedKeys, info)
|
|
|
@ -533,7 +551,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tableRefresh() {
|
|
|
|
tableRefresh() {
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
form: { validateFields },
|
|
|
|
form: { validateFields }
|
|
|
|
} = this
|
|
|
|
} = this
|
|
|
|
validateFields((err, values) => {
|
|
|
|
validateFields((err, values) => {
|
|
|
|
if (!err) {
|
|
|
|
if (!err) {
|
|
|
@ -576,7 +594,7 @@ export default {
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
currentPage: 1,
|
|
|
|
currentPage: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSizes: [10, 20, 50, 100, 200, 500],
|
|
|
|
pageSizes: [10, 20, 50, 100, 200, 500]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.gridOptions.data = []
|
|
|
|
this.gridOptions.data = []
|
|
|
|
this.getList(queryParam)
|
|
|
|
this.getList(queryParam)
|
|
|
@ -586,7 +604,7 @@ export default {
|
|
|
|
GetParaInfo({
|
|
|
|
GetParaInfo({
|
|
|
|
ParaType: type
|
|
|
|
ParaType: type
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
if (type === 'STATUS') {
|
|
|
|
if (type === 'STATUS') {
|
|
|
|
this.statusList = res.data.rows
|
|
|
|
this.statusList = res.data.rows
|
|
|
@ -603,7 +621,7 @@ export default {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -621,7 +639,7 @@ export default {
|
|
|
|
GetCurrentTotalStat({
|
|
|
|
GetCurrentTotalStat({
|
|
|
|
isReCalc: false
|
|
|
|
isReCalc: false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
this.levelLoading = false
|
|
|
|
this.levelLoading = false
|
|
|
|
this.levelreLoading = false
|
|
|
|
this.levelreLoading = false
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
@ -640,7 +658,7 @@ export default {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -665,7 +683,7 @@ export default {
|
|
|
|
handlePageChange({ currentPage, pageSize }) {
|
|
|
|
handlePageChange({ currentPage, pageSize }) {
|
|
|
|
console.log(currentPage, pageSize)
|
|
|
|
console.log(currentPage, pageSize)
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
form: { validateFields },
|
|
|
|
form: { validateFields }
|
|
|
|
} = this
|
|
|
|
} = this
|
|
|
|
validateFields((err, values) => {
|
|
|
|
validateFields((err, values) => {
|
|
|
|
if (!err) {
|
|
|
|
if (!err) {
|
|
|
@ -709,7 +727,7 @@ export default {
|
|
|
|
pageNo: currentPage,
|
|
|
|
pageNo: currentPage,
|
|
|
|
pageSize: pageSize
|
|
|
|
pageSize: pageSize
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
const _data = res.data.items.map((item, index) => {
|
|
|
|
const _data = res.data.items.map((item, index) => {
|
|
|
|
item.row_id = (currentPage - 1) * pageSize + index
|
|
|
|
item.row_id = (currentPage - 1) * pageSize + index
|
|
|
@ -723,7 +741,7 @@ export default {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -786,9 +804,7 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return res[0].name
|
|
|
|
return res[0].name
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cancelFun () {
|
|
|
|
cancelFun() {},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 取消
|
|
|
|
// 取消
|
|
|
|
removeFun() {
|
|
|
|
removeFun() {
|
|
|
|
const select = this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
const select = this.$refs.xGrid.getCheckboxRecords()
|
|
|
@ -802,13 +818,15 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
CancelTask({
|
|
|
|
CancelTask({
|
|
|
|
PKIds: pkIdArr
|
|
|
|
PKIds: pkIdArr
|
|
|
|
}).then((res) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('取消任务成功')
|
|
|
|
this.$message.success('取消任务成功')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((err) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -825,13 +843,15 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
CompleteTask({
|
|
|
|
CompleteTask({
|
|
|
|
PKIds: pkIdArr
|
|
|
|
PKIds: pkIdArr
|
|
|
|
}).then((res) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('已完成任务')
|
|
|
|
this.$message.success('已完成任务')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((err) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -854,7 +874,8 @@ export default {
|
|
|
|
DownloadTaskAttach(id, name) {
|
|
|
|
DownloadTaskAttach(id, name) {
|
|
|
|
DownloadTaskAttach({
|
|
|
|
DownloadTaskAttach({
|
|
|
|
taskPKId: id
|
|
|
|
taskPKId: id
|
|
|
|
}).then((res) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
if (res.message) {
|
|
|
|
if (res.message) {
|
|
|
|
message.error(`${name}下载失败:${res.message}`, 0)
|
|
|
|
message.error(`${name}下载失败:${res.message}`, 0)
|
|
|
|
return false
|
|
|
|
return false
|
|
|
@ -868,7 +889,8 @@ export default {
|
|
|
|
link.click()
|
|
|
|
link.click()
|
|
|
|
URL.revokeObjectURL(link.href) // 释放URL对象
|
|
|
|
URL.revokeObjectURL(link.href) // 释放URL对象
|
|
|
|
document.body.removeChild(link)
|
|
|
|
document.body.removeChild(link)
|
|
|
|
}).catch((err) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -897,25 +919,27 @@ export default {
|
|
|
|
SendTelexEmail({
|
|
|
|
SendTelexEmail({
|
|
|
|
taskPKId: this.sendEmailPkIds[0],
|
|
|
|
taskPKId: this.sendEmailPkIds[0],
|
|
|
|
toMail: this.sendEmailForm.email
|
|
|
|
toMail: this.sendEmailForm.email
|
|
|
|
}).then((res) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('转发成功')
|
|
|
|
this.$message.success('转发成功')
|
|
|
|
this.handleSendEmailCancel()
|
|
|
|
this.handleSendEmailCancel()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((err) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleSendEmailCancel() {
|
|
|
|
handleSendEmailCancel() {
|
|
|
|
this.sendEmailPkIds = []
|
|
|
|
this.sendEmailPkIds = []
|
|
|
|
this.sendEmailVisible = false
|
|
|
|
this.sendEmailVisible = false
|
|
|
|
this.$refs.sendForm.resetFields();
|
|
|
|
this.$refs.sendForm.resetFields()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 页数计算
|
|
|
|
// 页数计算
|
|
|
|
laraPaperCalc() {
|
|
|
|
laraPaperCalc() {
|
|
|
@ -933,7 +957,8 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
query = query.substring(0, query.length - 1)
|
|
|
|
query = query.substring(0, query.length - 1)
|
|
|
|
console.log(query)
|
|
|
|
console.log(query)
|
|
|
|
LaraPaperCalc(query).then((res) => {
|
|
|
|
LaraPaperCalc(query)
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.paperCalcRes = res.data
|
|
|
|
this.paperCalcRes = res.data
|
|
|
|
this.paperCalcExtras = res.extras || ''
|
|
|
|
this.paperCalcExtras = res.extras || ''
|
|
|
@ -941,7 +966,8 @@ export default {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((err) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -966,14 +992,16 @@ export default {
|
|
|
|
// console.log(query)
|
|
|
|
// console.log(query)
|
|
|
|
PrintBatch({
|
|
|
|
PrintBatch({
|
|
|
|
PKIds: pkIdArr
|
|
|
|
PKIds: pkIdArr
|
|
|
|
}).then((res) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
debugger
|
|
|
|
debugger
|
|
|
|
// 暂时报错
|
|
|
|
// 暂时报错
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((err) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -995,14 +1023,16 @@ export default {
|
|
|
|
// console.log(query)
|
|
|
|
// console.log(query)
|
|
|
|
DownloadAttach({
|
|
|
|
DownloadAttach({
|
|
|
|
PKIds: pkIdArr
|
|
|
|
PKIds: pkIdArr
|
|
|
|
}).then((res) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
debugger
|
|
|
|
debugger
|
|
|
|
// 暂时报错 接口404 文档中也没有 等更新
|
|
|
|
// 暂时报错 接口404 文档中也没有 等更新
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((err) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1018,14 +1048,16 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DownloadOriginalTask({
|
|
|
|
DownloadOriginalTask({
|
|
|
|
PKIds: pkIdArr
|
|
|
|
PKIds: pkIdArr
|
|
|
|
}).then((res) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
debugger
|
|
|
|
debugger
|
|
|
|
// 接口调用成功,但是无下载数据????
|
|
|
|
// 接口调用成功,但是无下载数据????
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((err) => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1038,8 +1070,8 @@ export default {
|
|
|
|
laraRecordFun(data) {
|
|
|
|
laraRecordFun(data) {
|
|
|
|
console.log('跳转页面', data)
|
|
|
|
console.log('跳转页面', data)
|
|
|
|
this.$router.push({ name: 'TaskLaraRecord', query: { taskPKId: data.pkId } })
|
|
|
|
this.$router.push({ name: 'TaskLaraRecord', query: { taskPKId: data.pkId } })
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
<style lang="less" scoped>
|
|
|
@ -1098,6 +1130,5 @@ export default {
|
|
|
|
&:nth-of-type(1) {
|
|
|
|
&:nth-of-type(1) {
|
|
|
|
color: @primary-color;
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|