dev
lilu 2 years ago
commit a885d80edc

@ -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>
@ -189,7 +205,7 @@
<a-button class="list-btn"><i class="iconfont icon-duibi"></i>重新比对</a-button> <a-button class="list-btn"><i class="iconfont icon-duibi"></i>重新比对</a-button>
</a-popconfirm> </a-popconfirm>
</template> </template>
<template v-if="taskType === 'DRAFT' || taskType === 'SEAWAY BILL' "> <template v-if="taskType === 'DRAFT' || taskType === 'SEAWAY BILL'">
<a-popconfirm <a-popconfirm
title="确定批量转发当前选择项?" title="确定批量转发当前选择项?"
ok-text="是" ok-text="是"
@ -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>
@ -403,10 +419,10 @@ export default {
return { return {
levelTop: [], levelTop: [],
activeTopKey: '', activeTopKey: '',
levelNextAll: [], levelNextAll: [],
levelNext: [], levelNext: [],
activeNextKey: '', activeNextKey: '',
levelTreeAll: [], levelTreeAll: [],
levelTree: [], levelTree: [],
activeTreeKey: ['0-0-0'], activeTreeKey: ['0-0-0'],
levelLoading: false, levelLoading: false,
@ -448,7 +464,7 @@ export default {
taskTypeList: [], taskTypeList: [],
sourceList: [], sourceList: [],
taskCategoryList: [], taskCategoryList: [],
taskType: '', taskType: '',
// ==== ==== // ==== ====
// //
sendEmailForm: { sendEmailForm: {
@ -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)
@ -506,38 +524,38 @@ export default {
this.init() this.init()
return false return false
} }
const indexArr = selectedKeys[0].split('-') const indexArr = selectedKeys[0].split('-')
if (indexArr.length > 2) { if (indexArr.length > 2) {
const key = this.levelTree[indexArr[2]].actionKey const key = this.levelTree[indexArr[2]].actionKey
const action = key.split('#') const action = key.split('#')
console.log('选择', indexArr[2], key) console.log('选择', indexArr[2], key)
this.taskType = action[2] this.taskType = action[2]
this.init({ this.init({
taskCategory: action[0], taskCategory: action[0],
status: action[1], status: action[1],
taskType: action[2] taskType: action[2]
}) })
} else { } else {
// this.init() // this.init()
} }
}, },
changeTopLevel () { changeTopLevel() {
this.levelNext = this.selectNextLevel(this.levelNextAll, this.activeTopKey) this.levelNext = this.selectNextLevel(this.levelNextAll, this.activeTopKey)
this.activeNextKey = this.levelNext[0].key this.activeNextKey = this.levelNext[0].key
this.levelTree = this.selectTreeLevel(this.levelTreeAll, this.activeNextKey, this.activeTopKey) this.levelTree = this.selectTreeLevel(this.levelTreeAll, this.activeNextKey, this.activeTopKey)
console.log('切换主菜单- 二级菜单', this.levelNext) console.log('切换主菜单- 二级菜单', this.levelNext)
console.log('切换主菜单- 三级菜单', this.levelTree) console.log('切换主菜单- 三级菜单', this.levelTree)
}, },
changeNextLevel () { changeNextLevel() {
this.levelTree = this.selectTreeLevel(this.levelTreeAll, this.activeNextKey, this.activeTopKey) this.levelTree = this.selectTreeLevel(this.levelTreeAll, this.activeNextKey, this.activeTopKey)
}, },
tableRefresh() { tableRefresh() {
const { const {
form: { validateFields }, form: { validateFields }
} = this } = this
validateFields((err, values) => { validateFields((err, values) => {
if (!err) { if (!err) {
if (values.etd) { if (values.etd) {
const time = values.etd.map((item, index) => { const time = values.etd.map((item, index) => {
const str = this.dateFtt('YYYY-MM-DD', item._d) const str = this.dateFtt('YYYY-MM-DD', item._d)
return str return str
@ -552,20 +570,20 @@ export default {
return str return str
}) })
console.log(_time) console.log(_time)
values.taskDateBegin = _time[0] values.taskDateBegin = _time[0]
values.taskDateEnd = _time[1] values.taskDateEnd = _time[1]
} }
if (values.taskType) { if (values.taskType) {
this.taskType = values.taskType this.taskType = values.taskType
} }
console.log(values) console.log(values)
this.init(values) this.init(values)
} }
}) })
}, },
tableReset() { tableReset() {
this.form.resetFields() this.form.resetFields()
this.taskType = '' this.taskType = ''
this.init() this.init()
}, },
@ -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)
}) })
}, },
@ -612,16 +630,16 @@ export default {
this.levelLoading = true this.levelLoading = true
this.levelTop = [] this.levelTop = []
this.activeTopKey = '' this.activeTopKey = ''
this.levelNextAll = [] this.levelNextAll = []
this.levelNext = [] this.levelNext = []
this.activeNextKey = '' this.activeNextKey = ''
this.levelTreeAll = [] this.levelTreeAll = []
this.levelTree = [] this.levelTree = []
this.activeTreeKey = ['0-0-0'] this.activeTreeKey = ['0-0-0']
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,32 +658,32 @@ export default {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
selectNextLevel (list, key) { selectNextLevel(list, key) {
const arr = [] const arr = []
list.map((item, index) => { list.map((item, index) => {
if (item.topKey === key) { if (item.topKey === key) {
arr.push(item) arr.push(item)
} }
}) })
return arr return arr
}, },
selectTreeLevel (list, key, topKey) { selectTreeLevel(list, key, topKey) {
const arr = [] const arr = []
list.map((item, index) => { list.map((item, index) => {
if (item.nextKey === key && item.topKey === topKey) { if (item.nextKey === key && item.topKey === topKey) {
arr.push(item) arr.push(item)
} }
}) })
return arr return arr
}, },
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) {
@ -684,7 +702,7 @@ export default {
return str return str
}) })
console.log(_time) console.log(_time)
values.taskDateBegin = _time[0] values.taskDateBegin = _time[0]
values.taskDateEnd = _time[1] values.taskDateEnd = _time[1]
} }
this.gridOptions.pagerConfig.currentPage = currentPage this.gridOptions.pagerConfig.currentPage = currentPage
@ -699,7 +717,7 @@ export default {
mBlNo: queryParam.mBlNo, mBlNo: queryParam.mBlNo,
etdBegin: queryParam.etdBegin || '', etdBegin: queryParam.etdBegin || '',
etdEnd: queryParam.etdEnd || '', etdEnd: queryParam.etdEnd || '',
taskDateBegin: queryParam.taskDateBegin || '', taskDateBegin: queryParam.taskDateBegin || '',
taskDateEnd: queryParam.taskDateEnd || '', taskDateEnd: queryParam.taskDateEnd || '',
taskType: queryParam.taskType, taskType: queryParam.taskType,
taskSource: queryParam.taskSource, taskSource: queryParam.taskSource,
@ -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,11 +741,11 @@ export default {
this.$message.error(res.message) this.$message.error(res.message)
} }
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
}, },
dateFtt(fmt, date) { dateFtt(fmt, date) {
const o = { const o = {
'Y+': date.getFullYear(), 'Y+': date.getFullYear(),
'M+': date.getMonth() + 1, 'M+': date.getMonth() + 1,
@ -744,7 +762,7 @@ export default {
} }
return fmt return fmt
}, },
padZero(num) { padZero(num) {
return new RegExp(/^\d$/g).test(num) ? `0${num}` : num return new RegExp(/^\d$/g).test(num) ? `0${num}` : num
}, },
selectStatus(type) { selectStatus(type) {
@ -756,10 +774,10 @@ export default {
}) })
return str return str
}, },
toggleAdvanced () { toggleAdvanced() {
this.advanced = !this.advanced this.advanced = !this.advanced
}, },
changePage (data) { changePage(data) {
if (data.taskType === 'VGM_COMPARE') { // VGM if (data.taskType === 'VGM_COMPARE') { // VGM
this.$router.push({ path: '/commontaskmanage/TaskVgmContrast', query: { taskPKId: data.pkId, type: data.status } }) this.$router.push({ path: '/commontaskmanage/TaskVgmContrast', query: { taskPKId: data.pkId, type: data.status } })
} else if (data.taskType === 'INVOICE_BILL_MAIL') { // } else if (data.taskType === 'INVOICE_BILL_MAIL') { //
@ -786,11 +804,9 @@ 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()
const pkIdArr = select.map((item, index) => { const pkIdArr = select.map((item, index) => {
return item.pkId return item.pkId
@ -802,18 +818,20 @@ export default {
} }
CancelTask({ CancelTask({
PKIds: pkIdArr PKIds: pkIdArr
}).then((res) => {
if (res.success) {
this.$message.success('取消任务成功')
} else {
this.$message.error(res.message)
}
}).catch((err) => {
console.log(err)
}) })
.then(res => {
if (res.success) {
this.$message.success('取消任务成功')
} else {
this.$message.error(res.message)
}
})
.catch(err => {
console.log(err)
})
}, },
// //
submitFun () { submitFun() {
const select = this.$refs.xGrid.getCheckboxRecords() const select = this.$refs.xGrid.getCheckboxRecords()
const pkIdArr = select.map((item, index) => { const pkIdArr = select.map((item, index) => {
return item.pkId return item.pkId
@ -825,18 +843,20 @@ export default {
} }
CompleteTask({ CompleteTask({
PKIds: pkIdArr PKIds: pkIdArr
}).then((res) => {
if (res.success) {
this.$message.success('已完成任务')
} else {
this.$message.error(res.message)
}
}).catch((err) => {
console.log(err)
}) })
.then(res => {
if (res.success) {
this.$message.success('已完成任务')
} else {
this.$message.error(res.message)
}
})
.catch(err => {
console.log(err)
})
}, },
// //
downloadFun () { downloadFun() {
const select = this.$refs.xGrid.getCheckboxRecords() const select = this.$refs.xGrid.getCheckboxRecords()
const pkIdArr = select.map((item, index) => { const pkIdArr = select.map((item, index) => {
return item.pkId return item.pkId
@ -851,33 +871,35 @@ export default {
this.DownloadTaskAttach(item, name) this.DownloadTaskAttach(item, name)
}) })
}, },
DownloadTaskAttach (id, name) { DownloadTaskAttach(id, name) {
DownloadTaskAttach({ DownloadTaskAttach({
taskPKId: id taskPKId: id
}).then((res) => {
if (res.message) {
message.error(`${name}下载失败:${res.message}`, 0)
return false
}
const blob = new Blob([res], { type: `application/pdf;chartset=UTF-8` })
const link = document.createElement('a')
link.style.display = 'none'
link.href = URL.createObjectURL(blob)
link.download = name
document.body.appendChild(link)
link.click()
URL.revokeObjectURL(link.href) // URL
document.body.removeChild(link)
}).catch((err) => {
console.log(err)
}) })
.then(res => {
if (res.message) {
message.error(`${name}下载失败:${res.message}`, 0)
return false
}
const blob = new Blob([res], { type: `application/pdf;chartset=UTF-8` })
const link = document.createElement('a')
link.style.display = 'none'
link.href = URL.createObjectURL(blob)
link.download = name
document.body.appendChild(link)
link.click()
URL.revokeObjectURL(link.href) // URL
document.body.removeChild(link)
})
.catch(err => {
console.log(err)
})
}, },
// //
reComparisonFun () { reComparisonFun() {
// //
}, },
// //
SendEmailFun () { SendEmailFun() {
const select = this.$refs.xGrid.getCheckboxRecords() const select = this.$refs.xGrid.getCheckboxRecords()
const pkIdArr = select.map((item, index) => { const pkIdArr = select.map((item, index) => {
return item.pkId return item.pkId
@ -890,35 +912,37 @@ export default {
this.sendEmailPkIds = pkIdArr this.sendEmailPkIds = pkIdArr
this.sendEmailVisible = true this.sendEmailVisible = true
}, },
handleSendEmail () { handleSendEmail() {
this.$refs.sendForm.validate(valid => { this.$refs.sendForm.validate(valid => {
if (valid) { if (valid) {
console.log(this.sendEmailForm.email) console.log(this.sendEmailForm.email)
SendTelexEmail({ SendTelexEmail({
taskPKId: this.sendEmailPkIds[0], taskPKId: this.sendEmailPkIds[0],
toMail: this.sendEmailForm.email toMail: this.sendEmailForm.email
}).then((res) => {
if (res.success) {
this.$message.success('转发成功')
this.handleSendEmailCancel()
} else {
this.$message.error(res.message)
}
}).catch((err) => {
console.log(err)
}) })
.then(res => {
if (res.success) {
this.$message.success('转发成功')
this.handleSendEmailCancel()
} else {
this.$message.error(res.message)
}
})
.catch(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() {
const select = this.$refs.xGrid.getCheckboxRecords() const select = this.$refs.xGrid.getCheckboxRecords()
const pkIdArr = select.map((item, index) => { const pkIdArr = select.map((item, index) => {
return item.pkId return item.pkId
@ -933,23 +957,25 @@ 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)
if (res.success) { .then(res => {
this.paperCalcRes = res.data if (res.success) {
this.paperCalcExtras = res.extras || '' this.paperCalcRes = res.data
this.paperCalcVisible = true this.paperCalcExtras = res.extras || ''
} else { this.paperCalcVisible = true
this.$message.error(res.message) } else {
} this.$message.error(res.message)
}).catch((err) => { }
console.log(err) })
}) .catch(err => {
console.log(err)
})
}, },
handlePaperCalcCancel () { handlePaperCalcCancel() {
this.paperCalcVisible = false this.paperCalcVisible = false
}, },
// COPY // COPY
copyPrintFun () { copyPrintFun() {
const select = this.$refs.xGrid.getCheckboxRecords() const select = this.$refs.xGrid.getCheckboxRecords()
const pkIdArr = select.map((item, index) => { const pkIdArr = select.map((item, index) => {
return item.pkId return item.pkId
@ -966,19 +992,21 @@ export default {
// console.log(query) // console.log(query)
PrintBatch({ PrintBatch({
PKIds: pkIdArr PKIds: pkIdArr
}).then((res) => {
if (res.success) {
debugger
//
} else {
this.$message.error(res.message)
}
}).catch((err) => {
console.log(err)
}) })
.then(res => {
if (res.success) {
debugger
//
} else {
this.$message.error(res.message)
}
})
.catch(err => {
console.log(err)
})
}, },
// COPY // COPY
copyDownloadFun () { copyDownloadFun() {
const select = this.$refs.xGrid.getCheckboxRecords() const select = this.$refs.xGrid.getCheckboxRecords()
const pkIdArr = select.map((item, index) => { const pkIdArr = select.map((item, index) => {
return item.pkId return item.pkId
@ -995,19 +1023,21 @@ export default {
// console.log(query) // console.log(query)
DownloadAttach({ DownloadAttach({
PKIds: pkIdArr PKIds: pkIdArr
}).then((res) => {
if (res.success) {
debugger
// 404
} else {
this.$message.error(res.message)
}
}).catch((err) => {
console.log(err)
}) })
.then(res => {
if (res.success) {
debugger
// 404
} else {
this.$message.error(res.message)
}
})
.catch(err => {
console.log(err)
})
}, },
// //
printBatchFun () { printBatchFun() {
const select = this.$refs.xGrid.getCheckboxRecords() const select = this.$refs.xGrid.getCheckboxRecords()
const pkIdArr = select.map((item, index) => { const pkIdArr = select.map((item, index) => {
return item.pkId return item.pkId
@ -1018,28 +1048,30 @@ export default {
} }
DownloadOriginalTask({ DownloadOriginalTask({
PKIds: pkIdArr PKIds: pkIdArr
}).then((res) => {
if (res.success) {
debugger
//
} else {
this.$message.error(res.message)
}
}).catch((err) => {
console.log(err)
}) })
.then(res => {
if (res.success) {
debugger
//
} else {
this.$message.error(res.message)
}
})
.catch(err => {
console.log(err)
})
}, },
// LARA // LARA
laraPaperRegistFun (data) { laraPaperRegistFun(data) {
console.log('跳转页面', data) console.log('跳转页面', data)
this.$router.push({ name: 'TaskLaraRegist', query: { taskPKId: data.pkId } }) this.$router.push({ name: 'TaskLaraRegist', query: { taskPKId: data.pkId } })
}, },
// LARA // LARA
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>
@ -1064,40 +1096,39 @@ export default {
display: block; display: block;
text-align: right; text-align: right;
} }
.nav-bottom{ .nav-bottom {
width:100%; width: 100%;
text-align: right; text-align: right;
padding-top: 20px; padding-top: 20px;
.icon{ .icon {
font-size: 12px; font-size: 12px;
} }
} }
.list-btn{ .list-btn {
margin-right: 10px; margin-right: 10px;
.iconfont{ .iconfont {
margin-right: 8px; margin-right: 8px;
} }
} }
.task-tit{ .task-tit {
color: @primary-color; color: @primary-color;
cursor: pointer; cursor: pointer;
} }
.nav-loading{ .nav-loading {
width:100%; width: 100%;
height: 100px; height: 100px;
line-height: 100px; line-height: 100px;
text-align: center; text-align: center;
.tip{ .tip {
margin-left: 10px; margin-left: 10px;
} }
} }
.operate-btn{ .operate-btn {
width: 30px; width: 30px;
text-align: center; text-align: center;
display: inline-block; display: inline-block;
&:nth-of-type(1) { &:nth-of-type(1) {
color: @primary-color; color: @primary-color;
} }
} }
</style> </style>

Loading…
Cancel
Save