定量界面相关调整

20231126-yw
anthonywj 2 years ago
parent bd3d365fbe
commit d4ff3a8297

@ -5,7 +5,7 @@ VUE_APP_TITLE = UDI管理系统
ENV = 'development' ENV = 'development'
# 开发环境 # 开发环境
VUE_APP_BASE_API = 'http://127.0.0.1:9991' VUE_APP_BASE_API = 'http://192.168.0.166:9991'
VUE_APP_SYNC_API ="http://127.0.0.1:10001" VUE_APP_SYNC_API ="http://127.0.0.1:10001"

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

Loading…
Cancel
Save