领用,发票,日月季年

20231126-yw
anthonywj 1 year ago
parent fdc60ee5f5
commit 84905777f7

@ -9,7 +9,7 @@ ENV = 'production'
#林纪裕cd #林纪裕cd
# VUE_APP_BASE_API = 'http://www.linjiyu.lol:81/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://www.linjiyu.lol:81/UDI_WMS_MC/'
VUE_APP_BASE_API = 'http://www.linjiyu.lol:83/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://www.linjiyu.lol:83/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/'
@ -30,7 +30,7 @@ VUE_APP_BASE_API = 'http://www.linjiyu.lol:83/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://192.168.0.242:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://192.168.0.242:9150/UDI_WMS_MC/'
# 平潭正式 # 平潭正式
# VUE_APP_BASE_API = 'http://55.55.0.62:9150/UDI_WMS_MC/' VUE_APP_BASE_API = 'http://55.55.0.62:9150/UDI_WMS_MC/'
# 吴总测试服务器. # 吴总测试服务器.

@ -39,6 +39,16 @@ export function findByFrom(query) {
} }
//获取上级仓库
export function findByUp(query) {
return axios({
url: "/spms/inv/warehouse/findByUp",
method: "get",
params: query
});
}
export function filterSubByInv(query) { export function filterSubByInv(query) {
return axios({ return axios({
url: "/spms/inv/warehouse/findByUser", url: "/spms/inv/warehouse/findByUser",

@ -360,7 +360,7 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.scanPreIn" style="width: 65%" <el-select v-model="inputQuery.scanPreIn" style="width: 65%"
:disabled=" inputQuery.mainAction == 'WareHouseIn' || inputQuery.corpType !== 1 || inputQuery.advancePreIn==1 || inputQuery.vailInv==1" :disabled=" inputQuery.advancePreIn==1 || inputQuery.vailInv==1"
@change="outChange" @change="outChange"
placeholder="是否启用"> placeholder="是否启用">
<el-option label="是" :value="true"></el-option> <el-option label="是" :value="true"></el-option>
@ -381,7 +381,7 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.advancePreIn" style="width: 65%" <el-select v-model="inputQuery.advancePreIn" style="width: 65%"
:disabled=" inputQuery.mainAction == 'WareHouseIn' || inputQuery.corpType !== 1 || inputQuery.scanPreIn==1 || inputQuery.vailInv==1" :disabled=" inputQuery.scanPreIn==1 || inputQuery.vailInv==1"
@change="outChange" @change="outChange"
placeholder="是否启用"> placeholder="是否启用">
<el-option label="是" :value="true"></el-option> <el-option label="是" :value="true"></el-option>
@ -446,7 +446,7 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-col span="5"> <el-col span="5">
<el-select v-model="inputQuery.preInBack" <el-select v-model="inputQuery.preInBack"
:disabled="inputQuery.scanPreIn ==false " @change="getPreInBack" :disabled="inputQuery.scanPreIn ==false || inputQuery.corpType ==2 " @change="getPreInBack"
style="width: 65%" style="width: 65%"
placeholder="是否退回" placeholder="是否退回"
> >

@ -13,7 +13,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="query-form-item" label="发票代码:"> <el-form-item class="query-form-item" label="发票代码:">
<el-input v-model="invoiceQuery.invoiceEncode" placeholder="请输入发票代码" style="width: 90%" <el-input v-model="invoiceQuery.invoiceCode" placeholder="请输入发票代码" style="width: 90%"
clearable="true" clearable="true"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -30,15 +30,15 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item class="query-form-item" label="开票日期:"> <el-form-item class="query-form-item" label="开票日期:">
<el-date-picker <el-date-picker
:picker-options="pickerOptions" :picker-options="pickerOptions"
v-model="actDateRange" v-model="actDateRange"
type="daterange" type="daterange"
format="yyyy 年 MM 月 dd 日" format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
style="width: 90%" style="width: 90%"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -49,9 +49,9 @@
<el-button-group> <el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-refresh" icon="el-icon-refresh"
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit"
@ -72,57 +72,57 @@
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column
label="发票代码" width="150" label="发票代码" width="150"
prop="invoiceEncode" prop="invoiceEncode"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="机器编码" width="150" label="机器编码" width="150"
prop="machineNo" prop="machineNo"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="发票编码" width="150" label="发票编码" width="150"
prop="invoiceCode" prop="invoiceCode"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="开票日期" width="150" label="开票日期" width="150"
prop="invoiceDate" prop="invoiceDate"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="发票价格" label="发票价格"
prop="price" width="100" prop="price" width="100"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="登记时间" width="190" label="登记时间" width="190"
prop="createTime" prop="createTime"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="备注" label="备注"
prop="remark" width="140" prop="remark" width="140"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="操作" width="160" fixed="right"> <el-table-column label="操作" width="160" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="editInvoice(scope.row)" @click.native.stop="editInvoice(scope.row)"
>编辑 >编辑
</el-button </el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="deleteInvoice(scope.row)" @click.native.stop="deleteInvoice(scope.row)"
>删除 >删除
</el-button </el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="!scope.row.licenseUrl" :disabled="!scope.row.licenseUrl"
@click.native.stop="showImgViewer(scope.row)" @click.native.stop="showImgViewer(scope.row)"
>预览 >预览
</el-button </el-button
> >
@ -131,26 +131,26 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="invoicTotal>0" v-show="invoicTotal>0"
:total="invoicTotal" :total="invoicTotal"
:page.sync="invoiceQuery.page" :page.sync="invoiceQuery.page"
:limit.sync="invoiceQuery.limit" :limit.sync="invoiceQuery.limit"
@pagination="getInvoiceList" @pagination="getInvoiceList"
/> />
</el-card> </el-card>
<el-dialog <el-dialog
title="发票编辑" title="发票编辑"
:visible.sync="Upinvoice" :visible.sync="Upinvoice"
:before-close="freshen" :before-close="freshen"
width="60%" width="60%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="Upinvoice" v-if="Upinvoice"
> >
<Dialog-invoice <Dialog-invoice
:closeDialog="closeAcceptDialog" :closeDialog="closeAcceptDialog"
:inputQuery="curInvoice" :inputQuery="curInvoice"
></Dialog-invoice> ></Dialog-invoice>
</el-dialog> </el-dialog>
@ -228,30 +228,30 @@
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column
label="DI/物资编码" width="150" label="DI/物资编码" width="150"
prop="nameCode" prop="nameCode"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="物资名称" label="物资名称"
prop="coName" prop="coName"
width="150" width="150"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="规格型号" label="规格型号"
width="150" width="150"
prop="spec" prop="spec"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="批次号" label="批次号"
width="100" width="100"
prop="batchNo" prop="batchNo"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="数量" label="数量"
prop="count" prop="count"
width="100" width="100"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="扫码数量" label="扫码数量"
@ -259,43 +259,43 @@
width="100" width="100"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="价格" label="价格"
prop="price" prop="price"
width="100" width="100"
></el-table-column> ></el-table-column>
<el-table-column label="金额" prop="amout" width="100"></el-table-column> <el-table-column label="金额" prop="amout" width="100"></el-table-column>
<el-table-column <el-table-column
label="生产日期" label="生产日期"
prop="productDate" prop="productDate"
width="100" width="100"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="失效日期" label="失效日期"
prop="expireDate" prop="expireDate"
width="100" width="100"
></el-table-column> ></el-table-column>
<el-table-column width="100" label="计量单位" prop="measname"> <el-table-column width="100" label="计量单位" prop="measname">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="生产企业" label="生产企业"
prop="manufacturer" prop="manufacturer"
width="160" width="160"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="注册/备案号" label="注册/备案号"
width="160" width="160"
prop="certCode" prop="certCode"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="productTotal>0" v-show="productTotal>0"
:total="productTotal" :total="productTotal"
:page.sync="productQuery.page" :page.sync="productQuery.page"
:limit.sync="productQuery.limit" :limit.sync="productQuery.limit"
@pagination="getProductDetailList" @pagination="getProductDetailList"
/> />
</el-tab-pane> </el-tab-pane>
@ -323,41 +323,41 @@
</el-table> </el-table>
<pagination <pagination
v-show="codeTotal>0" v-show="codeTotal>0"
:total="codeTotal" :total="codeTotal"
:page.sync="codeQuery.page" :page.sync="codeQuery.page"
:limit.sync="codeQuery.limit" :limit.sync="codeQuery.limit"
@pagination="getCodeDetailList" @pagination="getCodeDetailList"
/> />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-dialog <el-dialog
title="发票登记" title="发票登记"
:visible.sync="checkInvoice" :visible.sync="checkInvoice"
width="60%" width="60%"
:before-close="closeAcceptDialog" :before-close="closeAcceptDialog"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="checkInvoice" v-if="checkInvoice"
> >
<invoiceRegCkeck <invoiceRegCkeck
:curInvoice="curInvoice" :curInvoice="curInvoice"
:closeDialog="closeAcceptDialog" :closeDialog="closeAcceptDialog"
></invoiceRegCkeck> ></invoiceRegCkeck>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="发票—确认登记" title="发票—确认登记"
:visible.sync="determineVisible" :visible.sync="determineVisible"
width="80%" width="80%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="determineVisible" v-if="determineVisible"
> >
<InvoiceRegistrationDetermine <InvoiceRegistrationDetermine
:closeDialog="closeDetermineDialog" :closeDialog="closeDetermineDialog"
:determineData="determineData" :determineData="determineData"
></InvoiceRegistrationDetermine> ></InvoiceRegistrationDetermine>
</el-dialog> </el-dialog>
@ -451,7 +451,7 @@ export default {
imgList: [], imgList: [],
imgViewerVisible: false, imgViewerVisible: false,
cowEn:null, cowEn: null,
// //
orderLoading: false, orderLoading: false,
orderList: [], orderList: [],
@ -600,30 +600,30 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
this.par = row this.par = row
this.par.regId = this.regId this.par.regId = this.regId
deleteInvoice(row) deleteInvoice(row)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.getInvoiceList() this.getInvoiceList()
this.$message({ this.$message({
type: 'success', type: 'success',
message: '删除成功!' message: '删除成功!'
})
}
})
.catch(() => {
}) })
}) }
.catch(() => { })
}) .catch(() => {
})
})
.catch(() => {
})
}, },
showImgViewer(row) { showImgViewer(row) {
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
'/udiwms/image/register/file/getImage?type=image2&name=' + row.licenseUrl '/udiwms/image/register/file/getImage?type=image2&name=' + row.licenseUrl
this.imgList = [] this.imgList = []
this.imgList.push(this.certFileUrl) this.imgList.push(this.certFileUrl)
let index = row.licenseUrl.lastIndexOf('.') let index = row.licenseUrl.lastIndexOf('.')
@ -664,19 +664,19 @@ export default {
this.currentRow = {billNo: ''} this.currentRow = {billNo: ''}
let query = {invoiceEncode: row.invoiceEncode} let query = {invoiceEncode: row.invoiceEncode}
orderDetail(query) orderDetail(query)
.then((response) => { .then((response) => {
this.orderLoading = false this.orderLoading = false
if (response.code === 20000) { if (response.code === 20000) {
this.orderList = response.data.list || [] this.orderList = response.data.list || []
} else { } else {
this.$message.error(response.message) this.$message.error(response.message)
} }
}) })
.catch((error) => { .catch((error) => {
this.$message.error(error.message) this.$message.error(error.message)
this.orderLoading = false this.orderLoading = false
this.orderList = [] this.orderList = []
}) })
}, },
// //
clearDetailList() { clearDetailList() {
@ -688,7 +688,7 @@ export default {
// this.resultDetailList = []; // this.resultDetailList = [];
}, },
handleInvoiceChange(val) { handleInvoiceChange(val) {
this.cowEn=val; this.cowEn = val;
this.getOrderList(val) this.getOrderList(val)
this.getProductDetailList(val) this.getProductDetailList(val)
}, },
@ -766,13 +766,13 @@ export default {
}, },
getUser() { getUser() {
getUserBean() getUserBean()
.then((res) => { .then((res) => {
if (res.code == 20000) { if (res.code == 20000) {
if (res.data.customerId == "110") { if (res.data.customerId == "110") {
this.showSup = true; this.showSup = true;
}
} }
}) }
})
}, },
}, },
created() { created() {

@ -348,10 +348,9 @@
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column
label="发票码" width="150" label="发票码" width="150"
prop="invoiceEncode" prop="invoiceEncode"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="物资名称" label="物资名称"
prop="cpmctymc" width="150" prop="cpmctymc" width="150"
@ -367,15 +366,15 @@
prop="batchNo" prop="batchNo"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
label="发票代码" width="150"
prop="invoiceCode"
></el-table-column>
<el-table-column <el-table-column
label="机器编码" width="150" label="机器编码" width="150"
prop="machineNo" prop="machineNo"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
label="发票编码" width="150"
prop="invoiceCode"
></el-table-column>
<el-table-column <el-table-column
label="开票日期" width="150" label="开票日期" width="150"
prop="invoiceDate" prop="invoiceDate"

@ -4,16 +4,16 @@
<el-row type="flex" justify="end"> <el-row type="flex" justify="end">
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px;margin-top: -5px"> <el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px;margin-top: -5px">
<el-button <el-button
type="primary" type="primary"
@click.native="saveOrder('1')" @click.native="saveOrder('1')"
:loading="loading" :loading="loading"
>草稿保存 >草稿保存
</el-button </el-button
> >
<el-button <el-button
type="primary" type="primary"
@click.native="saveOrder('2')" @click.native="saveOrder('2')"
:loading="loading" :loading="loading"
>提交单据 >提交单据
</el-button </el-button
> >
@ -29,13 +29,13 @@
<el-col :span="11"> <el-col :span="11">
<el-form-item prop="createTime" label="创建时间:"> <el-form-item prop="createTime" label="创建时间:">
<el-date-picker <el-date-picker
:disabled="true" :disabled="true"
v-model="formData.createTime" v-model="formData.createTime"
type="datetime" type="datetime"
placeholder="选择日期" placeholder="选择日期"
style="width: 100%" style="width: 100%"
:clearable="false" :clearable="false"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -45,31 +45,31 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="11"> <el-col :span="11">
<el-form-item prop="invCode" label="当前仓库:"> <el-form-item prop="invCode" label="当前仓库:">
<el-select v-model="formData.invCode" @change="subStorageChange" placeholder="当前仓库信息" <el-select v-model="formData.invCode" @change="subStorageChange" placeholder="当前仓库信息"
style="width: 100%;" style="width: 100%;"
:disabled="codeArray.length>0" :disabled="codeArray.length>0"
clearable> clearable>
<el-option <el-option
v-for="item in invList" v-for="item in invList"
:key="item.name" :key="item.name"
:label="item.name" :label="item.name"
:value="item.code"> :value="item.code">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item class="query-form-item" prop="targetInvCode" label="领用仓库:"> <el-form-item class="query-form-item" prop="targetInvCode" label="领用仓库:">
<el-select v-model="formData.targetInvCode" placeholder="请选择领用仓库" @change="getTargerType" <el-select v-model="formData.targetInvCode" placeholder="请选择领用仓库" @change="getTargerType"
clearable="true" clearable="true"
:disabled="codeArray.length>0" :disabled="true"
style="width: 100%" style="width: 100%"
> >
<el-option <el-option
v-for="item in fromOptions" v-for="item in fromOptions"
:key="item.code" :key="item.code"
:label="item.name" :label="item.name"
:value="item.code"> :value="item.code">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -77,20 +77,20 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<!-- <el-col :span="11">--> <!-- <el-col :span="11">-->
<!-- <el-form-item prop="billType" label="领用类型:">--> <!-- <el-form-item prop="billType" label="领用类型:">-->
<!-- <el-select v-model="formData.billType" placeholder="请选择领用类型" style="width: 100%"--> <!-- <el-select v-model="formData.billType" placeholder="请选择领用类型" style="width: 100%"-->
<!-- clearable>--> <!-- clearable>-->
<!-- <el-option--> <!-- <el-option-->
<!-- v-for="item in busTypes"--> <!-- v-for="item in busTypes"-->
<!-- :key="item.originAction"--> <!-- :key="item.originAction"-->
<!-- :label="item.originName"--> <!-- :label="item.originName"-->
<!-- :value="item.originAction">--> <!-- :value="item.originAction">-->
<!-- <span style="float: left">{{ item.originName }}</span>--> <!-- <span style="float: left">{{ item.originName }}</span>-->
<!-- </el-option>--> <!-- </el-option>-->
<!-- </el-select>--> <!-- </el-select>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </el-col>--> <!-- </el-col>-->
<el-col :span="11"> <el-col :span="11">
<el-form-item prop="remark" label="备注:"> <el-form-item prop="remark" label="备注:">
<el-input v-model="formData.remark" auto-complete="off"></el-input> <el-input v-model="formData.remark" auto-complete="off"></el-input>
@ -107,10 +107,10 @@
<el-card> <el-card>
<el-button-group style="display: flex"> <el-button-group style="display: flex">
<el-button <el-button
type="primary" type="primary"
@click.native.stop="selectProductFunction()" @click.native.stop="selectProductFunction()"
style="margin: 0px 60px 10px auto; height: 35px" style="margin: 0px 60px 10px auto; height: 35px"
:loading="loading" :loading="loading"
>产品录入 >产品录入
</el-button </el-button
> >
@ -157,19 +157,19 @@
<el-dialog <el-dialog
title="库存设备录入" title="库存设备录入"
:visible.sync="selectInvProductVisible" :visible.sync="selectInvProductVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
width="85%" width="85%"
v-if="selectInvProductVisible" v-if="selectInvProductVisible"
:append-to-body='true' :append-to-body='true'
> >
<dialogInvProduct <dialogInvProduct
:closeDialog="closeDialogC2" :closeDialog="closeDialogC2"
:invQueryData="formData" :invQueryData="formData"
:codeArray="codeArray" :codeArray="codeArray"
:type="1" :type="1"
></dialogInvProduct> ></dialogInvProduct>
</el-dialog> </el-dialog>
</div> </div>
@ -178,7 +178,7 @@
<script> <script>
import {getBusChange} from "@/api/basic/busTypeChange"; import {getBusChange} from "@/api/basic/busTypeChange";
import {inserThrOrderWeb, updateReceive, updateReceiveDetail, delReceiveDetail} from "@/api/thrsys/thrOrderReceive"; import {inserThrOrderWeb, updateReceive, updateReceiveDetail, delReceiveDetail} from "@/api/thrsys/thrOrderReceive";
import {filterSubByInv, findByFrom, findInvByUser} from "@/api/system/invSubWarehouse"; import {filterSubByInv, findByFrom, findByUp, findInvByUser} from "@/api/system/invSubWarehouse";
import dialogInvProduct from "../DialogSelectInvProduct"; import dialogInvProduct from "../DialogSelectInvProduct";
import {getOrderDetail} from "@/api/inout/receiveOrder"; import {getOrderDetail} from "@/api/inout/receiveOrder";
import {parseTime} from "@/utils/coTools"; import {parseTime} from "@/utils/coTools";
@ -265,7 +265,7 @@ export default {
invQueryData: {}, invQueryData: {},
type: 1, type: 1,
Receive: {}, Receive: {},
ischeck:false, ischeck: false,
}; };
}, },
components: { components: {
@ -279,24 +279,26 @@ export default {
filter: 3 filter: 3
}; };
findInvByUser(query) findInvByUser(query)
.then((response) => { .then((response) => {
this.invList = response.data || []; this.invList = response.data || [];
}) })
.catch(() => { .catch(() => {
}); });
}, },
// //
findFromInv() { findFromInv() {
let cQuery = { let cQuery = {
locInvCode: this.formData.invCode, locInvCode: this.formData.invCode,
type:1,
}; };
findByFrom(cQuery) findByUp(cQuery)
.then((response) => { .then((response) => {
this.fromOptions = response.data || []; this.fromOptions = response.data || [];
}) if (this.fromOptions != null && this.fromOptions.length > 0) {
.catch(() => { this.formData.targetInvCode = this.fromOptions[0].code;
}); }
})
.catch(() => {
});
}, },
// //
getBusType() { getBusType() {
@ -305,17 +307,17 @@ export default {
type: 1, type: 1,
}; };
getBusChange(query) getBusChange(query)
.then((response) => { .then((response) => {
this.busTypes = response.data.list || []; this.busTypes = response.data.list || [];
}) })
.catch(() => { .catch(() => {
}); });
}, },
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },
getTargerType(){ getTargerType() {
this.formData.advanceType= this.fromOptions.find(item => item.code == this.formData.targetInvCode).advanceType this.formData.advanceType = this.fromOptions.find(item => item.code == this.formData.targetInvCode).advanceType
console.log(this.formData) console.log(this.formData)
}, },
saveOrder(status) { saveOrder(status) {
@ -387,17 +389,17 @@ export default {
tQuery.subErpOrders = this.codeArray; tQuery.subErpOrders = this.codeArray;
tQuery.thirdPartyDate = 2; tQuery.thirdPartyDate = 2;
updateReceive(tQuery) updateReceive(tQuery)
.then(response => { .then(response => {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success(tMessage + "成功"); this.$message.success(tMessage + "成功");
this.closeDialog(true); this.closeDialog(true);
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}) })
}, },
selectProductFunction(event) { selectProductFunction(event) {
@ -416,7 +418,7 @@ export default {
this.getOrderDetailList(); this.getOrderDetailList();
}, },
save(){ save() {
if (this.$isNotBlank(this.Receive)) { if (this.$isNotBlank(this.Receive)) {
console.log("this.Receive:") console.log("this.Receive:")
console.log(this.Receive) console.log(this.Receive)
@ -425,8 +427,8 @@ export default {
updateReceiveDetail(this.Receive).then(res => { updateReceiveDetail(this.Receive).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
this.loading = false; this.loading = false;
this.ischeck=false; this.ischeck = false;
this.selectedIndex=null; this.selectedIndex = null;
this.$message.success('修改成功'); this.$message.success('修改成功');
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
@ -436,7 +438,7 @@ export default {
} }
}, },
rowChange(val) { rowChange(val) {
this.Receive=val; this.Receive = val;
console.log("var:") console.log("var:")
console.log(this.Receive) console.log(this.Receive)
this.ischeck = true; this.ischeck = true;
@ -446,7 +448,7 @@ export default {
this.focusNext('iCount'); this.focusNext('iCount');
}, },
tableCountChange(row) { tableCountChange(row) {
this.Receive = row; this.Receive = row;
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {
row.index = rowIndex; row.index = rowIndex;
@ -475,17 +477,17 @@ export default {
_this.detailLoading = true; _this.detailLoading = true;
if (_this.$isNotBlank(row.id)) { if (_this.$isNotBlank(row.id)) {
delReceiveDetail({id: row.id}) delReceiveDetail({id: row.id})
.then(response => { .then(response => {
_this.detailLoading = false; _this.detailLoading = false;
if (response.code === 20000) { if (response.code === 20000) {
_this.getOrderDetailList(); _this.getOrderDetailList();
} else { } else {
_this.$message.error(response.message); _this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {
_this.detailLoading = false; _this.detailLoading = false;
}) })
} else { } else {
_this.$message.success('删除成功'); _this.$message.success('删除成功');
_this.codeArray.splice(index, 1); _this.codeArray.splice(index, 1);
@ -499,7 +501,7 @@ export default {
}); });
}, },
subStorageChange(item) { subStorageChange(item) {
this.formData.targetInvCode=''; this.formData.targetInvCode = '';
this.getBusType(); this.getBusType();
this.findFromInv(); this.findFromInv();
}, },
@ -508,16 +510,16 @@ export default {
this.loading = true; this.loading = true;
this.query.orderIdFk = this.formData.billNo; this.query.orderIdFk = this.formData.billNo;
getOrderDetail(this.query) // getOrderDetail(this.query) //
.then((response) => { .then((response) => {
this.codeArray = response.data.list || []; this.codeArray = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
this.loading = false; this.loading = false;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = []; this.list = [];
this.total = 0; this.total = 0;
}); });
}, },
}, },
filters: {}, filters: {},
@ -545,8 +547,8 @@ export default {
billType: "HCLY", billType: "HCLY",
billNo: null, billNo: null,
createTime: parseTime( createTime: parseTime(
date, date,
"{y}-{m}-{d} {h}:{i}:{s}" "{y}-{m}-{d} {h}:{i}:{s}"
), ),
}; };
this.orderEditor = false; this.orderEditor = false;

@ -33,10 +33,10 @@
>查询 >查询
</el-button </el-button
> >
<!--<el-button type="primary" icon="el-icon-search" @click="onSubmit" <!--<el-button type="primary" icon="el-icon-search" @click="onSubmit"
>汇总 >汇总
</el-button </el-button
>--> >-->
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -46,6 +46,7 @@
@current-change="handleSelectionChange"> @current-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="仓库" type="invName"></el-table-column>
<el-table-column label="记录号" prop="recordKey"></el-table-column> <el-table-column label="记录号" prop="recordKey"></el-table-column>
<el-table-column label="名称" prop="title"></el-table-column> <el-table-column label="名称" prop="title"></el-table-column>
<el-table-column label="汇总日期" prop="date"></el-table-column> <el-table-column label="汇总日期" prop="date"></el-table-column>
@ -192,7 +193,7 @@ export default {
page: 1, page: 1,
limit: 10 limit: 10
}, },
key:null, key: null,
detailLoading: false, detailLoading: false,
detailList: [], detailList: [],
detailTotal: 0, detailTotal: 0,
@ -285,18 +286,18 @@ export default {
this.detailTotal = 0; this.detailTotal = 0;
}, },
excel(){ excel() {
if(isBlank(this.currentRow.recordKey)){ if (isBlank(this.currentRow.recordKey)) {
return this.$message.error("请选择要导出的数据!"); return this.$message.error("请选择要导出的数据!");
} }
let params={billNo:this.currentRow.recordKey,key:"day"}; let params = {billNo: this.currentRow.recordKey, key: "day"};
excelImport(params ).then( res =>{ excelImport(params).then(res => {
let blob = new Blob([res],{type: "application/vnd.ms-excel"}); let blob = new Blob([res], {type: "application/vnd.ms-excel"});
let url = window.URL.createObjectURL(blob); // urlblob let url = window.URL.createObjectURL(blob); // urlblob
let a = document.createElement("a"); let a = document.createElement("a");
a.href = url; a.href = url;
a.click(); a.click();
this.$message("成功") this.$message("成功")
}) })
}, },

@ -42,6 +42,7 @@
@current-change="handleSelectionChange"> @current-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="仓库" type="invName"></el-table-column>
<el-table-column label="名称" prop="title"></el-table-column> <el-table-column label="名称" prop="title"></el-table-column>
<el-table-column label="记录号" prop="recordKey"></el-table-column> <el-table-column label="记录号" prop="recordKey"></el-table-column>
<el-table-column label="汇总日期" prop="date"></el-table-column> <el-table-column label="汇总日期" prop="date"></el-table-column>
@ -263,13 +264,13 @@ export default {
this.getList(); this.getList();
}, },
excel(){ excel() {
if(isBlank(this.currentRow.recordKey)){ if (isBlank(this.currentRow.recordKey)) {
return this.$message.error("请选择要导出的数据!"); return this.$message.error("请选择要导出的数据!");
} }
let params={billNo:this.currentRow.recordKey,key:"month"}; let params = {billNo: this.currentRow.recordKey, key: "month"};
excelImport(params ).then( res =>{ excelImport(params).then(res => {
let blob = new Blob([res],{type: "application/vnd.ms-excel"}); let blob = new Blob([res], {type: "application/vnd.ms-excel"});
let url = window.URL.createObjectURL(blob); // urlblob let url = window.URL.createObjectURL(blob); // urlblob
let a = document.createElement("a"); let a = document.createElement("a");
a.href = url; a.href = url;

@ -42,6 +42,7 @@
@current-change="handleSelectionChange"> @current-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="仓库" type="invName"></el-table-column>
<el-table-column label="名称" prop="title"></el-table-column> <el-table-column label="名称" prop="title"></el-table-column>
<el-table-column label="记录号" prop="recordKey"></el-table-column> <el-table-column label="记录号" prop="recordKey"></el-table-column>
<el-table-column label="汇总日期" prop="date"></el-table-column> <el-table-column label="汇总日期" prop="date"></el-table-column>
@ -283,13 +284,13 @@ export default {
this.detailList = []; this.detailList = [];
this.detailTotal = 0; this.detailTotal = 0;
}, },
excel(){ excel() {
if(isBlank(this.currentRow.recordKey)){ if (isBlank(this.currentRow.recordKey)) {
return this.$message.error("请选择要导出的数据!"); return this.$message.error("请选择要导出的数据!");
} }
let params={billNo:this.currentRow.recordKey,key:"quarter"}; let params = {billNo: this.currentRow.recordKey, key: "quarter"};
excelImport(params ).then( res =>{ excelImport(params).then(res => {
let blob = new Blob([res],{type: "application/vnd.ms-excel"}); let blob = new Blob([res], {type: "application/vnd.ms-excel"});
let url = window.URL.createObjectURL(blob); // urlblob let url = window.URL.createObjectURL(blob); // urlblob
let a = document.createElement("a"); let a = document.createElement("a");
a.href = url; a.href = url;

@ -42,6 +42,7 @@
@current-change="handleSelectionChange"> @current-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="仓库" type="invName"></el-table-column>
<el-table-column label="名称" prop="title"></el-table-column> <el-table-column label="名称" prop="title"></el-table-column>
<el-table-column label="记录号" prop="recordKey"></el-table-column> <el-table-column label="记录号" prop="recordKey"></el-table-column>
<el-table-column label="汇总日期" prop="date"></el-table-column> <el-table-column label="汇总日期" prop="date"></el-table-column>
@ -258,13 +259,13 @@ export default {
this.filterQuery.page = 1; this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
excel(){ excel() {
if(isBlank(this.currentRow.recordKey)){ if (isBlank(this.currentRow.recordKey)) {
return this.$message.error("请选择要导出的数据!"); return this.$message.error("请选择要导出的数据!");
} }
let params={billNo:this.currentRow.recordKey,key:"year"}; let params = {billNo: this.currentRow.recordKey, key: "year"};
excelImport(params ).then( res =>{ excelImport(params).then(res => {
let blob = new Blob([res],{type: "application/vnd.ms-excel"}); let blob = new Blob([res], {type: "application/vnd.ms-excel"});
let url = window.URL.createObjectURL(blob); // urlblob let url = window.URL.createObjectURL(blob); // urlblob
let a = document.createElement("a"); let a = document.createElement("a");
a.href = url; a.href = url;

Loading…
Cancel
Save