|
@@ -34,8 +34,8 @@
|
|
:disabled="localDataSource.length==0"
|
|
:disabled="localDataSource.length==0"
|
|
@click="handlePrint('export')">导出Excel</a-button>
|
|
@click="handlePrint('export')">导出Excel</a-button>
|
|
</div>
|
|
</div>
|
|
- <a-descriptions size="small" :column="3">
|
|
|
|
- <a-descriptions-item label="盘点单号" :span="3">
|
|
|
|
|
|
+ <a-descriptions size="small" :column="2">
|
|
|
|
+ <a-descriptions-item label="盘点单号" :span="2">
|
|
{{ (basicInfoData&&basicInfoData.checkWarehouseNo) || '--' }}
|
|
{{ (basicInfoData&&basicInfoData.checkWarehouseNo) || '--' }}
|
|
<div style="display: inline-block;margin-left: 10px;">
|
|
<div style="display: inline-block;margin-left: 10px;">
|
|
<a-tag color="red" v-if="basicInfoData&&basicInfoData.stateDictValue">{{ basicInfoData.stateDictValue }}</a-tag>
|
|
<a-tag color="red" v-if="basicInfoData&&basicInfoData.stateDictValue">{{ basicInfoData.stateDictValue }}</a-tag>
|
|
@@ -43,7 +43,7 @@
|
|
</a-descriptions-item>
|
|
</a-descriptions-item>
|
|
<a-descriptions-item label="盘点类型">{{ (basicInfoData&&basicInfoData.checkTypeDictValue) || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="盘点类型">{{ (basicInfoData&&basicInfoData.checkTypeDictValue) || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="是否区分仓库" v-if="basicInfoData&&basicInfoData.checkType=='SELECT'">{{ (basicInfoData&&basicInfoData.warehouseFlagDictValue) || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="是否区分仓库" v-if="basicInfoData&&basicInfoData.checkType=='SELECT'">{{ (basicInfoData&&basicInfoData.warehouseFlagDictValue) || '--' }}</a-descriptions-item>
|
|
- <a-descriptions-item label="盘点仓库" v-if="basicInfoData&&basicInfoData.warehouseFlag=='1'" :span="3">{{ (basicInfoData&&basicInfoData.warehouseNameList) || '--' }}</a-descriptions-item>
|
|
|
|
|
|
+ <a-descriptions-item label="盘点仓库" v-if="basicInfoData&&basicInfoData.warehouseFlag=='1'" :span="2">{{ (basicInfoData&&basicInfoData.warehouseNameList) || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="创建人">{{ (basicInfoData&&basicInfoData.creatorName) || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="创建人">{{ (basicInfoData&&basicInfoData.creatorName) || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="创建时间">{{ (basicInfoData&&basicInfoData.createDate) || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="创建时间">{{ (basicInfoData&&basicInfoData.createDate) || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="审核时间">{{ (basicInfoData&&basicInfoData.checkSuperviseTime) || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="审核时间">{{ (basicInfoData&&basicInfoData.checkSuperviseTime) || '--' }}</a-descriptions-item>
|
|
@@ -55,11 +55,19 @@
|
|
<div slot="message">
|
|
<div slot="message">
|
|
<div style="display: flex;justify-content: space-between;align-items: center;">
|
|
<div style="display: flex;justify-content: space-between;align-items: center;">
|
|
<div>
|
|
<div>
|
|
- 总款数: <strong>{{ productTotal&&(productTotal.totalCategory || productTotal.totalCategory==0) ? productTotal.totalCategory : '--' }}</strong> ,
|
|
|
|
- 总数量: <strong>{{ productTotal&&(productTotal.stockQty || productTotal.stockQty==0) ? productTotal.stockQty : '--' }}</strong> ,
|
|
|
|
- 总成本: <strong>{{ productTotal&&(productTotal.checkCost || productTotal.checkCost==0) ? '¥'+productTotal.checkCost : '--' }}</strong> ,
|
|
|
|
- 盘盈数量: <strong>{{ productTotal&&(productTotal.checkProfitQty || productTotal.checkProfitQty==0) ? productTotal.checkProfitQty : '--' }}</strong> ,
|
|
|
|
- 盘亏数量: <strong>{{ productTotal&&(productTotal.checkLossQty || productTotal.checkLossQty==0) ? productTotal.checkLossQty : '--' }}</strong>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ 总款数: <strong>{{ productTotal&&(productTotal.totalCategory || productTotal.totalCategory==0) ? productTotal.totalCategory : '--' }}</strong> ,
|
|
|
|
+ 总数量: <strong>{{ productTotal&&(productTotal.stockQty || productTotal.stockQty==0) ? productTotal.stockQty : '--' }}</strong> ,
|
|
|
|
+ 总成本: <strong>{{ productTotal&&(productTotal.checkCost || productTotal.checkCost==0) ? '¥'+productTotal.checkCost : '--' }}</strong> ,
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ 盘盈总数量: <strong>{{ productTotal&&(productTotal.checkProfitQty || productTotal.checkProfitQty==0) ? productTotal.checkProfitQty : '--' }}</strong>,
|
|
|
|
+ <span v-if="basicInfoData&&basicInfoData.state=='FINISH'">盘盈总成本: <strong>{{ productTotal&&(productTotal.checkProfitCost || productTotal.checkProfitCost==0) ? productTotal.checkProfitCost : '--' }}</strong>,</span>
|
|
|
|
+ 盘亏总数量: <strong>{{ productTotal&&(productTotal.checkLossQty || productTotal.checkLossQty==0) ? productTotal.checkLossQty : '--' }}</strong>,
|
|
|
|
+ <span v-if="basicInfoData&&basicInfoData.state=='FINISH'">盘亏总成本: <strong>{{ productTotal&&(productTotal.checkLossCost || productTotal.checkLossCost==0) ? productTotal.checkLossCost : '--' }}</strong>,</span>
|
|
|
|
+ 盈亏总数量: <strong>{{ productTotal&&(productTotal.totalCheckProfitLossQty || productTotal.totalCheckProfitLossQty==0) ? productTotal.totalCheckProfitLossQty : '--' }}</strong>,
|
|
|
|
+ <span v-if="basicInfoData&&basicInfoData.state=='FINISH'">盈亏总成本: <strong>{{ productTotal&&(productTotal.totalCheckProfitLossCost || productTotal.totalCheckProfitLossCost==0) ? productTotal.totalCheckProfitLossCost : '--' }}</strong>,</span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<span style="color: red;display: inline-block;margin-right: 8px;">红色代表盘盈</span>
|
|
<span style="color: red;display: inline-block;margin-right: 8px;">红色代表盘盈</span>
|
|
@@ -70,42 +78,45 @@
|
|
</a-alert>
|
|
</a-alert>
|
|
<!-- 筛选条件 -->
|
|
<!-- 筛选条件 -->
|
|
<div class="table-page-search-wrapper">
|
|
<div class="table-page-search-wrapper">
|
|
- <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
|
- <a-row :gutter="15">
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="产品编码" prop="productCode">
|
|
|
|
- <a-input id="inventoryCheckMakeInventoryList-productCode" v-model="queryParam.productCode" placeholder="请输入" allowClear />
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="产品名称" prop="productName">
|
|
|
|
- <a-input id="inventoryCheckMakeInventoryList-productName" v-model="queryParam.productName" placeholder="请输入" allowClear />
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
- <a-form-item label="产品分类">
|
|
|
|
- <ProductType id="inventoryCheckMakeInventoryList-productType" @change="changeProductType" v-model="productType"></ProductType>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <template v-if="advanced && (basicInfoData&&basicInfoData.warehouseFlag=='1')">
|
|
|
|
- <a-col :md="6" :sm="24" v-if="basicInfoData&&basicInfoData.warehouseFlag=='1'">
|
|
|
|
- <a-form-item label="仓库">
|
|
|
|
- <a-select id="inventoryCheckMakeInventoryList-warehouseSn" allowClear placeholder="请选择仓库" v-model="queryParam.warehouseSn" >
|
|
|
|
- <a-select-option v-for="item in warehouseList" :key="item.warehouseSn" :value="item.warehouseSn">{{ item.name }}</a-select-option>
|
|
|
|
- </a-select>
|
|
|
|
|
|
+ <div style="display: flex;justify-content: space-between;">
|
|
|
|
+ <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
|
+ <a-row :gutter="15">
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="产品编码" prop="productCode">
|
|
|
|
+ <a-input id="inventoryCheckMakeInventoryList-productCode" v-model="queryParam.productCode" placeholder="请输入" allowClear />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- </template>
|
|
|
|
- <a-col :md="5" :sm="24" style="margin-bottom: 10px;">
|
|
|
|
- <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="inventoryCheckMakeInventoryList-refresh">查询</a-button>
|
|
|
|
- <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="inventoryCheckMakeInventoryList-reset">重置</a-button>
|
|
|
|
- <a @click="advanced=!advanced" style="margin-left: 5px" v-if="basicInfoData&&basicInfoData.warehouseFlag=='1'">
|
|
|
|
- {{ advanced ? '收起' : '展开' }}
|
|
|
|
- <a-icon :type="advanced ? 'up' : 'down'"/>
|
|
|
|
- </a>
|
|
|
|
- </a-col>
|
|
|
|
- </a-row>
|
|
|
|
- </a-form>
|
|
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="产品名称" prop="productName">
|
|
|
|
+ <a-input id="inventoryCheckMakeInventoryList-productName" v-model="queryParam.productName" placeholder="请输入" allowClear />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="产品分类">
|
|
|
|
+ <ProductType id="inventoryCheckMakeInventoryList-productType" @change="changeProductType" v-model="productType"></ProductType>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <template v-if="advanced && (basicInfoData&&basicInfoData.warehouseFlag=='1')">
|
|
|
|
+ <a-col :md="6" :sm="24" v-if="basicInfoData&&basicInfoData.warehouseFlag=='1'">
|
|
|
|
+ <a-form-item label="仓库">
|
|
|
|
+ <a-select id="inventoryCheckMakeInventoryList-warehouseSn" allowClear placeholder="请选择仓库" v-model="queryParam.warehouseSn" >
|
|
|
|
+ <a-select-option v-for="item in warehouseList" :key="item.warehouseSn" :value="item.warehouseSn">{{ item.name }}</a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ </template>
|
|
|
|
+ <a-col :md="5" :sm="24" style="margin-bottom: 10px;">
|
|
|
|
+ <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="inventoryCheckMakeInventoryList-refresh">查询</a-button>
|
|
|
|
+ <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="inventoryCheckMakeInventoryList-reset">重置</a-button>
|
|
|
|
+ <a @click="advanced=!advanced" style="margin-left: 5px" v-if="basicInfoData&&basicInfoData.warehouseFlag=='1'">
|
|
|
|
+ {{ advanced ? '收起' : '展开' }}
|
|
|
|
+ <a-icon :type="advanced ? 'up' : 'down'"/>
|
|
|
|
+ </a>
|
|
|
|
+ </a-col>
|
|
|
|
+ </a-row>
|
|
|
|
+ </a-form>
|
|
|
|
+ <div style="flex-shrink: 0;margin-left: 5px;"><a-checkbox v-model="isPrice"><span style="display: inline-block;margin-top: 1px;">仅显示盈亏</span></a-checkbox></div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<s-table
|
|
<s-table
|
|
@@ -128,6 +139,10 @@
|
|
<template slot="checkProfitLossQty" slot-scope="text, record">
|
|
<template slot="checkProfitLossQty" slot-scope="text, record">
|
|
<span :style="{ color: record.checkProfitLossQty>0?'red':record.checkProfitLossQty<0?'green':'', fontWeight: record.checkProfitLossQty!=0?'bold':'' }">{{ (record.checkProfitLossQty || record.checkProfitLossQty==0) ? Math.abs(record.checkProfitLossQty) : '--' }}</span>
|
|
<span :style="{ color: record.checkProfitLossQty>0?'red':record.checkProfitLossQty<0?'green':'', fontWeight: record.checkProfitLossQty!=0?'bold':'' }">{{ (record.checkProfitLossQty || record.checkProfitLossQty==0) ? Math.abs(record.checkProfitLossQty) : '--' }}</span>
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- 盈亏成本 -->
|
|
|
|
+ <template slot="checkProfitLossCost" slot-scope="text, record">
|
|
|
|
+ <span :style="{ color: record.checkProfitLossCost>0?'red':record.checkProfitLossCost<0?'green':'', fontWeight: record.checkProfitLossCost!=0?'bold':'' }">{{ (record.checkProfitLossCost || record.checkProfitLossCost==0) ? '¥'+formatDecimal(Math.abs(record.checkProfitLossCost), 2) : '--' }}</span>
|
|
|
|
+ </template>
|
|
</s-table>
|
|
</s-table>
|
|
</a-card>
|
|
</a-card>
|
|
</a-spin>
|
|
</a-spin>
|
|
@@ -139,10 +154,11 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import moment from 'moment'
|
|
|
|
|
|
+import { downloadExcel } from '@/libs/JGPrint.js'
|
|
import { STable } from '@/components'
|
|
import { STable } from '@/components'
|
|
import printModal from './printModal.vue'
|
|
import printModal from './printModal.vue'
|
|
import ProductType from '@/views/common/productType.js'
|
|
import ProductType from '@/views/common/productType.js'
|
|
|
|
+import { formatDecimal } from '@/libs/tools'
|
|
import { checkWarehouseDetailList, checkWarehouseDetail, checkWarehouseDetailCount, checkWarehouseDetailExport, checkWarehouseDetailPrint, checkWarehouseWarehouse } from '@/api/checkWarehouse'
|
|
import { checkWarehouseDetailList, checkWarehouseDetail, checkWarehouseDetailCount, checkWarehouseDetailExport, checkWarehouseDetailPrint, checkWarehouseWarehouse } from '@/api/checkWarehouse'
|
|
export default {
|
|
export default {
|
|
name: 'InventoryCheckingDetailModal',
|
|
name: 'InventoryCheckingDetailModal',
|
|
@@ -174,15 +190,24 @@ export default {
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
- return checkWarehouseDetailList(Object.assign(parameter, this.queryParam, { checkWarehouseSn: this.itemSn })).then(res => {
|
|
|
|
- this.getDetailCount()
|
|
|
|
- const data = res.data
|
|
|
|
- const no = (data.pageNo - 1) * data.pageSize
|
|
|
|
- for (var i = 0; i < data.list.length; i++) {
|
|
|
|
- data.list[i].no = no + i + 1
|
|
|
|
|
|
+ this.spinning = true
|
|
|
|
+ const params = Object.assign(parameter, this.queryParam, { checkWarehouseSn: this.itemSn })
|
|
|
|
+ if (this.isPrice) {
|
|
|
|
+ params.profitLossFlag = 1
|
|
|
|
+ }
|
|
|
|
+ return checkWarehouseDetailList(params).then(res => {
|
|
|
|
+ let data
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ data = res.data
|
|
|
|
+ this.getDetailCount(params)
|
|
|
|
+ const no = (data.pageNo - 1) * data.pageSize
|
|
|
|
+ for (var i = 0; i < data.list.length; i++) {
|
|
|
|
+ data.list[i].no = no + i + 1
|
|
|
|
+ }
|
|
|
|
+ this.localDataSource = data.list || []
|
|
|
|
+ this.disabled = false
|
|
}
|
|
}
|
|
- this.localDataSource = data.list || []
|
|
|
|
- this.disabled = false
|
|
|
|
|
|
+ this.spinning = false
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -191,6 +216,7 @@ export default {
|
|
productType: [],
|
|
productType: [],
|
|
warehouseList: [], // 仓库 下拉数据
|
|
warehouseList: [], // 仓库 下拉数据
|
|
localDataSource: [],
|
|
localDataSource: [],
|
|
|
|
+ isPrice: false, // 仅显示盈亏
|
|
openPrintModal: false,
|
|
openPrintModal: false,
|
|
nowType: null,
|
|
nowType: null,
|
|
printerType: 'NEEDLE' // 打印机类型
|
|
printerType: 'NEEDLE' // 打印机类型
|
|
@@ -200,13 +226,14 @@ export default {
|
|
columns () {
|
|
columns () {
|
|
const arr = [
|
|
const arr = [
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
- { title: '产品编码', dataIndex: 'productCode', width: '16%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '产品名称', dataIndex: 'productName', width: '19%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
- { title: '产品分类', scopedSlots: { customRender: 'productType' }, align: 'center', width: '12%' },
|
|
|
|
|
|
+ { title: '产品编码', dataIndex: 'productCode', width: '13%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '产品名称', dataIndex: 'productName', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
+ { title: '产品分类', scopedSlots: { customRender: 'productType' }, align: 'center', width: '11%' },
|
|
{ title: '单位', dataIndex: 'productUnit', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单位', dataIndex: 'productUnit', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '库存数量', dataIndex: 'stockQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '库存数量', dataIndex: 'stockQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '盘点数量', dataIndex: 'checkQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '盘点数量', dataIndex: 'checkQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
- { title: '盈亏数量', scopedSlots: { customRender: 'checkProfitLossQty' }, width: '6%', align: 'center' }
|
|
|
|
|
|
+ { title: '盈亏数量', scopedSlots: { customRender: 'checkProfitLossQty' }, width: '6%', align: 'center' },
|
|
|
|
+ { title: '盈亏成本', scopedSlots: { customRender: 'checkProfitLossCost' }, width: '6%', align: 'right' }
|
|
]
|
|
]
|
|
if (this.basicInfoData && this.basicInfoData.warehouseFlag == '1') {
|
|
if (this.basicInfoData && this.basicInfoData.warehouseFlag == '1') {
|
|
arr.splice(4, 0, { title: '仓库', dataIndex: 'warehouseName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true })
|
|
arr.splice(4, 0, { title: '仓库', dataIndex: 'warehouseName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true })
|
|
@@ -216,6 +243,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 保留两位小数(不四舍五入)
|
|
|
|
+ formatDecimal,
|
|
// 详情
|
|
// 详情
|
|
getDetail () {
|
|
getDetail () {
|
|
checkWarehouseDetail({ sn: this.itemSn }).then(res => {
|
|
checkWarehouseDetail({ sn: this.itemSn }).then(res => {
|
|
@@ -227,8 +256,8 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 合计
|
|
// 合计
|
|
- getDetailCount () {
|
|
|
|
- checkWarehouseDetailCount(Object.assign(this.queryParam, { checkWarehouseSn: this.itemSn })).then(res => {
|
|
|
|
|
|
+ getDetailCount (params) {
|
|
|
|
+ checkWarehouseDetailCount(params).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.productTotal = res.data
|
|
this.productTotal = res.data
|
|
if (res.data && res.data.checkLossQty) {
|
|
if (res.data && res.data.checkLossQty) {
|
|
@@ -303,7 +332,7 @@ export default {
|
|
reader.readAsText(res)
|
|
reader.readAsText(res)
|
|
} else {
|
|
} else {
|
|
if (this.nowType == 'export' || this.nowType == 'typeExport') {
|
|
if (this.nowType == 'export' || this.nowType == 'typeExport') {
|
|
- this.download(res)
|
|
|
|
|
|
+ downloadExcel(res, '库存盘点')
|
|
} else {
|
|
} else {
|
|
this.print(res, objs.type)
|
|
this.print(res, objs.type)
|
|
}
|
|
}
|
|
@@ -322,18 +351,6 @@ export default {
|
|
window.frames['printficd'].focus()
|
|
window.frames['printficd'].focus()
|
|
window.frames['printficd'].print()
|
|
window.frames['printficd'].print()
|
|
}
|
|
}
|
|
- },
|
|
|
|
- download (data) {
|
|
|
|
- if (!data) { return }
|
|
|
|
- const url = window.URL.createObjectURL(new Blob([data]))
|
|
|
|
- const link = document.createElement('a')
|
|
|
|
- link.style.display = 'none'
|
|
|
|
- link.href = url
|
|
|
|
- const a = moment().format('YYYYMMDDHHmmss')
|
|
|
|
- const fname = '库存盘点' + a
|
|
|
|
- link.setAttribute('download', fname + '.xlsx')
|
|
|
|
- document.body.appendChild(link)
|
|
|
|
- link.click()
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -357,9 +374,13 @@ export default {
|
|
},
|
|
},
|
|
itemSn (newValue, oldValue) {
|
|
itemSn (newValue, oldValue) {
|
|
if (this.isShow && newValue) {
|
|
if (this.isShow && newValue) {
|
|
|
|
+ this.isPrice = false
|
|
this.getDetail()
|
|
this.getDetail()
|
|
this.getWarehouseList()
|
|
this.getWarehouseList()
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ isPrice (newValue, oldValue) {
|
|
|
|
+ this.$refs.table.refresh(true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|