|
@@ -87,7 +87,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-// import { customerBundleDelayList, customerBundleExportDelay } from '@/api/FinancialManagement'
|
|
|
+import { stockFlowList } from '@/api/stockFlow'
|
|
|
import { STable } from '@/components'
|
|
|
export default {
|
|
|
components: { STable },
|
|
@@ -96,9 +96,6 @@ export default {
|
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
|
queryParam: { // 查询条件
|
|
|
orderBundleNo: '', // 订单编号
|
|
|
- orderBundle: {
|
|
|
- custMobile: '' // 客户手机
|
|
|
- },
|
|
|
bundleName: '', // 套餐名称
|
|
|
itemName: '', // 服务名称
|
|
|
brand: undefined, // 产品品牌
|
|
@@ -118,8 +115,8 @@ export default {
|
|
|
{ title: '单据类型', dataIndex: 'productBdrand', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '单据审核时间', dataIndex: 'prodfuctBrand', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '单位名称', dataIndex: 'produhctBrand', width: 200, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '仓库', dataIndex: 'productBrangd', width: 140, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '仓位', dataIndex: 'productBjrand', width: 140, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '仓库', dataIndex: 'warehouseName', width: 140, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '仓位', dataIndex: 'warehouseLocationName', width: 140, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
{ title: '数量', scopedSlots: { customRender: 'number' }, width: 100, align: 'center' },
|
|
|
{ title: '总成本', dataIndex: 'inventoryMoney', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '总售价', dataIndex: 'inventoryMoneys', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
@@ -127,30 +124,14 @@ export default {
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
- // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
|
|
|
- // 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.disabled = false
|
|
|
- // return data
|
|
|
- // })
|
|
|
- const _this = this
|
|
|
- return new Promise(function (resolve, reject) {
|
|
|
- const data = {
|
|
|
- pageNo: 1,
|
|
|
- pageSize: 10,
|
|
|
- list: [
|
|
|
- { id: '1', productNum: 'jgqp11111111111', productName: '产品1', productOldNum: 'jgqp111123545', productBrand: '箭冠品牌', productType: '产品分类1', inventoryNum: '5', inventoryMoney: '122' }
|
|
|
- ]
|
|
|
- }
|
|
|
+ return stockFlowList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
+ 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.disabled = false
|
|
|
- resolve(data)
|
|
|
+ this.disabled = false
|
|
|
+ return data
|
|
|
})
|
|
|
}
|
|
|
}
|