|
@@ -58,10 +58,25 @@
|
|
|
:data="loadData"
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
+ <!-- 导入单号 -->
|
|
|
+ <template slot="stockImportNo" slot-scope="text, record">
|
|
|
+ <span class="table-td-link" @click="handleDetail(record)">{{ record.stockImportNo }}</span>
|
|
|
+ </template>
|
|
|
</s-table>
|
|
|
</a-spin>
|
|
|
<!-- 库存导入 -->
|
|
|
<importGuideModal :openModal="openGuideModal" @close="openGuideModal=false" @ok="hanldeImprotOk" />
|
|
|
+ <!-- 库存导入详情 -->
|
|
|
+ <a-modal
|
|
|
+ centered
|
|
|
+ class="chooseImport-modal"
|
|
|
+ :footer="null"
|
|
|
+ title="库存导入明细"
|
|
|
+ v-model="openInventoryImportDetail"
|
|
|
+ @cancel="openInventoryImportDetail=false;detailSn=undefined;"
|
|
|
+ width="70%">
|
|
|
+ <detailList ref="inventoryImportDeail" typeInfo="STOCK_IMPORT" :detailSn="detailSn"></detailList>
|
|
|
+ </a-modal>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -71,9 +86,10 @@ import { STable, VSelect } from '@/components'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import getDate from '@/libs/getDate.js'
|
|
|
import importGuideModal from './importGuideModal.vue'
|
|
|
+import detailList from '@/views/reportData/stockImportReport/detailList.vue'
|
|
|
import { reportStockImportList, reportStockImportCount } from '@/api/reportData'
|
|
|
export default {
|
|
|
- components: { STable, VSelect, rangeDate, importGuideModal },
|
|
|
+ components: { STable, VSelect, rangeDate, importGuideModal, detailList },
|
|
|
mixins: [commonMixin],
|
|
|
data () {
|
|
|
return {
|
|
@@ -88,10 +104,12 @@ export default {
|
|
|
],
|
|
|
beginDate: '',
|
|
|
endDate: '',
|
|
|
- stockImportNo: '',
|
|
|
+ stockImportNo: undefined,
|
|
|
importType: 'STOCK_IMPORT'
|
|
|
},
|
|
|
openGuideModal: false,
|
|
|
+ detailSn: undefined,
|
|
|
+ openInventoryImportDetail: false,
|
|
|
rules: {
|
|
|
'time': [{ required: true, message: '请选择导入时间', trigger: 'change' }]
|
|
|
},
|
|
@@ -128,7 +146,7 @@ export default {
|
|
|
const arr = [
|
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
|
{ title: '导入时间', dataIndex: 'importTime', width: '21%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '导入单号', dataIndex: 'stockImportNo', width: '18%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '导入单号', dataIndex: 'stockImportNo', width: '18%', align: 'center', scopedSlots: { customRender: 'stockImportNo' } },
|
|
|
{ title: '款数', dataIndex: 'productTotalCategory', width: '18%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '数量', dataIndex: 'productTotalQty', width: '18%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
// { title: '成本', dataIndex: 'totalCost', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
@@ -140,6 +158,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 详情
|
|
|
+ handleDetail (row) {
|
|
|
+ this.openInventoryImportDetail = true
|
|
|
+ this.detailSn = row.stockImportNo
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.inventoryImportDeail.handleSearch()
|
|
|
+ })
|
|
|
+ },
|
|
|
// 合计
|
|
|
getCount (params) {
|
|
|
reportStockImportCount(params).then(res => {
|
|
@@ -181,6 +207,7 @@ export default {
|
|
|
this.queryParam.beginDate = getDate.getThreeMonthDays().starttime
|
|
|
this.queryParam.endDate = getDate.getCurrMonthDays().endtime
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
+ this.queryParam.stockImportNo = undefined
|
|
|
this.totalData = null
|
|
|
this.$refs.table.clearTable()
|
|
|
this.handleSearch()
|