|
|
|
@ -95,22 +95,22 @@
|
|
|
|
|
<el-col :span="8" v-if="showSup">
|
|
|
|
|
<el-form-item class="query-form-item" label="送货单位:">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="filterQuery.fromCorp"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
clearable="true"
|
|
|
|
|
reserve-keyword
|
|
|
|
|
placeholder="送货单位"
|
|
|
|
|
:remote-method="findMethod"
|
|
|
|
|
size="mini"
|
|
|
|
|
:loading="corpLoading"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
v-model="filterQuery.fromCorp"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
clearable="true"
|
|
|
|
|
reserve-keyword
|
|
|
|
|
placeholder="送货单位"
|
|
|
|
|
:remote-method="findMethod"
|
|
|
|
|
size="mini"
|
|
|
|
|
:loading="corpLoading"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in fromOptions"
|
|
|
|
|
:key="item.name"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.erpId"
|
|
|
|
|
v-for="item in fromOptions"
|
|
|
|
|
:key="item.name"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.erpId"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
@ -352,22 +352,22 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { deleteByOrderId, rollUnReceivebackOrder, filterInvoiceList } from '../../api/inout/order'
|
|
|
|
|
import { getLocalJoinByUser } from '@/api/basic/busType'
|
|
|
|
|
import { getInvListByUser } from '@/api/system/invWarehouse'
|
|
|
|
|
import { isBlank } from '@/utils/strUtil'
|
|
|
|
|
import {deleteByOrderId, rollUnReceivebackOrder, filterInvoiceList} from '../../api/inout/order'
|
|
|
|
|
import {getLocalJoinByUser} from '@/api/basic/busType'
|
|
|
|
|
import {getInvListByUser} from '@/api/system/invWarehouse'
|
|
|
|
|
import {isBlank} from '@/utils/strUtil'
|
|
|
|
|
import {saveInvoice} from '@/api/inout/invoiceOrder'
|
|
|
|
|
import { selectSysParamByKey } from '@/api/param/systemParamConfig'
|
|
|
|
|
import { filterListInvoice, deleteById, filterBizOrderList } from '@/api/inout/orderDetailBiz'
|
|
|
|
|
import { getCodeList } from '@/api/inout/code'
|
|
|
|
|
import {selectSysParamByKey} from '@/api/param/systemParamConfig'
|
|
|
|
|
import {filterListInvoice, deleteById, filterBizOrderList} from '@/api/inout/orderDetailBiz'
|
|
|
|
|
import {getCodeList} from '@/api/inout/code'
|
|
|
|
|
import AcceptOrder from '@/views/inout/DialogReviewOrder'
|
|
|
|
|
import DialogInvoice from '@/views/inout/DialogInvoice'
|
|
|
|
|
import checkInvoice from '@/views/inout/InvoiceCkeck'
|
|
|
|
|
import InvoiceRegister from '@/views/inout/InvoiceRegister'
|
|
|
|
|
import InvoiceRegistrationDetermine from '@/views/inout/InvoiceRegistrationDetermine'
|
|
|
|
|
import { getDeptListByUser } from '@/api/auth/authDept'
|
|
|
|
|
import { getBasicUnitMaintains } from '@/api/basic/basicUnitMaintain'
|
|
|
|
|
import { previewImage, previewFile } from '@/api/purchase/supCompany'
|
|
|
|
|
import {getDeptListByUser} from '@/api/auth/authDept'
|
|
|
|
|
import {getBasicUnitMaintains} from '@/api/basic/basicUnitMaintain'
|
|
|
|
|
import {previewImage, previewFile} from '@/api/purchase/supCompany'
|
|
|
|
|
import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
@ -379,19 +379,19 @@ const formJson = {
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'InvoiceRegByOrder',
|
|
|
|
|
props:{
|
|
|
|
|
props: {
|
|
|
|
|
inputQuery: {
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
closeDialog:{
|
|
|
|
|
closeDialog: {
|
|
|
|
|
type: Function,
|
|
|
|
|
required: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
defaultSort: { prop: 'createTime', order: 'desc' },
|
|
|
|
|
defaultSort: {prop: 'createTime', order: 'desc'},
|
|
|
|
|
savebillno: null,
|
|
|
|
|
invoiceRow: [],
|
|
|
|
|
inputInv: [],
|
|
|
|
@ -636,7 +636,7 @@ export default {
|
|
|
|
|
let binaryData = []
|
|
|
|
|
previewFile(this.certFileUrl).then(res => {
|
|
|
|
|
binaryData.push(res)
|
|
|
|
|
let URL = window.URL.createObjectURL(new Blob(binaryData, { type: pdf }))
|
|
|
|
|
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}))
|
|
|
|
|
window.open(URL)
|
|
|
|
|
})
|
|
|
|
|
// window.open(this.imgList[0])
|
|
|
|
@ -762,7 +762,7 @@ export default {
|
|
|
|
|
//获取订单列表
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true
|
|
|
|
|
this.currentRow = { billNo: '' }
|
|
|
|
|
this.currentRow = {billNo: ''}
|
|
|
|
|
this.clearDetailList()
|
|
|
|
|
this.filterQuery.vueType = 'supInvoice'
|
|
|
|
|
filterInvoiceList(this.filterQuery)
|
|
|
|
@ -966,7 +966,7 @@ export default {
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
let param = { billNo: row.billNo }
|
|
|
|
|
let param = {billNo: row.billNo}
|
|
|
|
|
rollUnReceivebackOrder(param).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.$message.success('撤回成功')
|
|
|
|
@ -1003,7 +1003,7 @@ export default {
|
|
|
|
|
this.acceptOrderVisible = true
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
parentByFn: function(childValue) {
|
|
|
|
|
parentByFn: function (childValue) {
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -1031,7 +1031,7 @@ export default {
|
|
|
|
|
this.multipleSelection.forEach((obj) => {
|
|
|
|
|
orderFkList.push(obj.billNo)
|
|
|
|
|
})
|
|
|
|
|
this.inputQuery.orderFkList=orderFkList
|
|
|
|
|
this.inputQuery.orderFkList = orderFkList
|
|
|
|
|
saveInvoice(this.inputQuery).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.closeDialog()
|
|
|
|
@ -1048,7 +1048,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
mounted() {
|
|
|
|
|
document.body.ondrop = function(event) {
|
|
|
|
|
document.body.ondrop = function (event) {
|
|
|
|
|
event.preventDefault()
|
|
|
|
|
event.stopPropagation()
|
|
|
|
|
}
|
|
|
|
@ -1062,7 +1062,7 @@ export default {
|
|
|
|
|
this.getInvList()
|
|
|
|
|
this.getDeptList()
|
|
|
|
|
this.getBusType()
|
|
|
|
|
selectSysParamByKey({ paramKey: 'muti_inv_mode' }).then((res) => {
|
|
|
|
|
selectSysParamByKey({paramKey: 'muti_inv_mode'}).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
if (res.data.paramValue === '0') {
|
|
|
|
|
this.enableDept = true
|
|
|
|
|