|
|
@ -11,9 +11,9 @@
|
|
|
|
<a-col
|
|
|
|
<a-col
|
|
|
|
:md="6"
|
|
|
|
:md="6"
|
|
|
|
:lg="6"
|
|
|
|
:lg="6"
|
|
|
|
:xl="4"
|
|
|
|
:xl="!advanced?3:4"
|
|
|
|
:key="findex"
|
|
|
|
:key="findex"
|
|
|
|
v-show="(findex < 4 && !advanced) || advanced"
|
|
|
|
v-show="(findex < 6 && !advanced) || advanced"
|
|
|
|
class="from-label">
|
|
|
|
class="from-label">
|
|
|
|
<a-form-item style="padding-left: 10px; padding-right: 10px" :label="formLabel.title">
|
|
|
|
<a-form-item style="padding-left: 10px; padding-right: 10px" :label="formLabel.title">
|
|
|
|
<formLabel
|
|
|
|
<formLabel
|
|
|
@ -29,7 +29,7 @@
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<a-col :xl="formBtnCol || (!advanced && 8)" :lg="24" :md="24" :sm="24">
|
|
|
|
<a-col style="padding: 0px;" :xl="!advanced?6:8" :lg="24" :md="24" :sm="24">
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
class="table-page-search-submitButtons"
|
|
|
|
class="table-page-search-submitButtons"
|
|
|
|
:style="(advanced && { float: 'right', overflow: 'hidden' }) || {}">
|
|
|
|
:style="(advanced && { float: 'right', overflow: 'hidden' }) || {}">
|
|
|
@ -349,20 +349,34 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<template #dzRemark="{ row }">
|
|
|
|
<template #dzRemark="{ row }">
|
|
|
|
<div >
|
|
|
|
<a-spin :spinning="row.dzmarkLoading">
|
|
|
|
<a-popover placement="topLeft" :content="row.dzRemark">
|
|
|
|
<a-popover placement="topLeft">
|
|
|
|
<a-icon style="cursor: pointer;" @click="handleOpenMark(row,1)" type="edit" />
|
|
|
|
<template slot="content">
|
|
|
|
{{ row.dzRemark }}
|
|
|
|
{{ row.dzRemark }}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<div style="display: flex;align-items: center;">
|
|
|
|
|
|
|
|
<a-input @blur="getBlurMark(row,1)" @focus="getFocusMark(row,1)" style="margin-top: 0px;" v-model="row.dzRemark" default-value="mysite">
|
|
|
|
|
|
|
|
</a-input>
|
|
|
|
|
|
|
|
<a-icon v-show="row.rowDzMark" style="cursor: pointer;margin-left: 5px;color:#36cfc9;" @mousedown.native="handleSaveMark(row,1)" type="check-circle" theme="filled" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</a-popover>
|
|
|
|
</a-popover>
|
|
|
|
</div>
|
|
|
|
</a-spin>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<template #czRemark="{ row }">
|
|
|
|
<template #czRemark="{ row }">
|
|
|
|
<div >
|
|
|
|
<div >
|
|
|
|
<a-popover placement="topLeft" :content="row.czRemark">
|
|
|
|
<a-spin :spinning="row.czmarkLoading">
|
|
|
|
<a-icon style="cursor: pointer;" @click="handleOpenMark(row,2)" type="edit" />
|
|
|
|
<a-popover placement="topLeft">
|
|
|
|
{{ row.czRemark }}
|
|
|
|
<template slot="content">
|
|
|
|
</a-popover>
|
|
|
|
{{ row.czRemark }}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<div style="display: flex;align-items: center;">
|
|
|
|
|
|
|
|
<a-input @blur="getBlurMark(row,2)" @focus="getFocusMark(row,2)" style="margin-top: 0px;" v-model="row.czRemark" default-value="mysite">
|
|
|
|
|
|
|
|
</a-input>
|
|
|
|
|
|
|
|
<a-icon v-show="row.rowCzMark" style="cursor: pointer;margin-left: 5px;color:#36cfc9;" @mousedown.native="handleSaveMark(row,2)" type="check-circle" theme="filled" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</a-popover>
|
|
|
|
|
|
|
|
</a-spin>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -764,23 +778,6 @@
|
|
|
|
</a-form>
|
|
|
|
</a-form>
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
|
|
|
|
|
|
|
|
|
<a-modal :title="marktitle" :visible="markFlag" >
|
|
|
|
|
|
|
|
<div style="margin-top:20px">
|
|
|
|
|
|
|
|
<a-input v-if="marktitle==='操作备注'" v-model="editRowData.czRemark"></a-input>
|
|
|
|
|
|
|
|
<a-input v-if="marktitle==='单证备注'" v-model="editRowData.dzRemark"></a-input>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<template slot="footer">
|
|
|
|
|
|
|
|
<a-button key="back" @click="markFlag = false">取消</a-button>
|
|
|
|
|
|
|
|
<a-popconfirm
|
|
|
|
|
|
|
|
title="确定修改吗"
|
|
|
|
|
|
|
|
ok-text="是"
|
|
|
|
|
|
|
|
cancel-text="否"
|
|
|
|
|
|
|
|
@confirm="handleSaveMark(editRowData)"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-button key="submit" type="primary" :loading="markLoading" >确定</a-button>
|
|
|
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</a-modal>
|
|
|
|
|
|
|
|
</a-spin>
|
|
|
|
</a-spin>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -848,7 +845,6 @@ export default {
|
|
|
|
spinning: false,
|
|
|
|
spinning: false,
|
|
|
|
isUpload: false,
|
|
|
|
isUpload: false,
|
|
|
|
markFlag: false,
|
|
|
|
markFlag: false,
|
|
|
|
markLoading: false,
|
|
|
|
|
|
|
|
marktitle: '',
|
|
|
|
marktitle: '',
|
|
|
|
refshYZloading: false,
|
|
|
|
refshYZloading: false,
|
|
|
|
nowFirst: false,
|
|
|
|
nowFirst: false,
|
|
|
@ -2012,6 +2008,10 @@ export default {
|
|
|
|
item.bookstatus = bookstatus
|
|
|
|
item.bookstatus = bookstatus
|
|
|
|
item.refshYzitemLoad = false
|
|
|
|
item.refshYzitemLoad = false
|
|
|
|
item.atdLoading = false
|
|
|
|
item.atdLoading = false
|
|
|
|
|
|
|
|
item.rowDzMark = false
|
|
|
|
|
|
|
|
item.rowCzMark = false
|
|
|
|
|
|
|
|
item.czmarkLoading = false
|
|
|
|
|
|
|
|
item.dzmarkLoading = false
|
|
|
|
let hasGoods = 0
|
|
|
|
let hasGoods = 0
|
|
|
|
item.goodsStatusList.map((gitem, gindex) => {
|
|
|
|
item.goodsStatusList.map((gitem, gindex) => {
|
|
|
|
if (gitem.finishTime || gitem.remark) {
|
|
|
|
if (gitem.finishTime || gitem.remark) {
|
|
|
@ -2104,23 +2104,26 @@ export default {
|
|
|
|
addCancel() {
|
|
|
|
addCancel() {
|
|
|
|
this.addVisible = false
|
|
|
|
this.addVisible = false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleSaveMark(row) {
|
|
|
|
handleSaveMark(row, type) {
|
|
|
|
const data = {
|
|
|
|
const data = {
|
|
|
|
id: row.id,
|
|
|
|
id: row.id,
|
|
|
|
czRemark: row.czRemark,
|
|
|
|
czRemark: row.czRemark,
|
|
|
|
dzRemark: row.dzRemark
|
|
|
|
dzRemark: row.dzRemark
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.markLoading = true
|
|
|
|
if (type === 1) {
|
|
|
|
|
|
|
|
row.dzmarkLoading = true
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
row.czmarkLoading = true
|
|
|
|
|
|
|
|
}
|
|
|
|
SaveInList(data).then(res => {
|
|
|
|
SaveInList(data).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('修改成功')
|
|
|
|
this.$message.success('修改成功')
|
|
|
|
this.markFlag = false
|
|
|
|
row.dzmarkLoading = false
|
|
|
|
this.editRow.czRemark = row.czRemark
|
|
|
|
row.czmarkLoading = false
|
|
|
|
this.editRow.dzRemark = row.dzRemark
|
|
|
|
|
|
|
|
this.markLoading = false
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.markLoading = false
|
|
|
|
row.dzmarkLoading = false
|
|
|
|
|
|
|
|
row.czmarkLoading = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -2200,6 +2203,20 @@ export default {
|
|
|
|
pressEnterFun() {
|
|
|
|
pressEnterFun() {
|
|
|
|
this.tableRefresh()
|
|
|
|
this.tableRefresh()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
getFocusMark(row, type) {
|
|
|
|
|
|
|
|
if (type === 1) {
|
|
|
|
|
|
|
|
row.rowDzMark = true
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
row.rowCzMark = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getBlurMark(row, type) {
|
|
|
|
|
|
|
|
if (type === 1) {
|
|
|
|
|
|
|
|
row.rowDzMark = false
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
row.rowCzMark = false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
remarkhover(e, data) {
|
|
|
|
remarkhover(e, data) {
|
|
|
|
if (data.bookremark.length > 0) {
|
|
|
|
if (data.bookremark.length > 0) {
|
|
|
|
const maxWidth = window.innerWidth
|
|
|
|
const maxWidth = window.innerWidth
|
|
|
|