|
@@ -84,8 +84,8 @@
|
|
|
:scroll="{ x: 1595 }"
|
|
|
bordered>
|
|
|
<!-- 采购单号 -->
|
|
|
- <template slot="purchaseNo" slot-scope="text, record">
|
|
|
- <span style="color: #ed1c24;cursor: pointer;">{{ record.purchaseNo }}</span>
|
|
|
+ <template slot="purchaseBillNo" slot-scope="text, record">
|
|
|
+ <span style="color: #ed1c24;cursor: pointer;">{{ record.purchaseBillNo }}</span>
|
|
|
</template>
|
|
|
<!-- 业务/审核状态 -->
|
|
|
<template slot="auditStatus" slot-scope="text, record">
|
|
@@ -116,7 +116,7 @@
|
|
|
<script>
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import basicInfoModal from './basicInfoModal.vue'
|
|
|
-// import { getRoleList, getServiceList } from '@/api/manage'
|
|
|
+import { purchaseList } from '@/api/purchase'
|
|
|
export default {
|
|
|
components: { STable, VSelect, basicInfoModal },
|
|
|
data () {
|
|
@@ -130,12 +130,12 @@ export default {
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
|
- { title: '采购单号', scopedSlots: { customRender: 'purchaseNo' }, width: 140, align: 'center' },
|
|
|
- { title: '创建时间', dataIndex: 'creatDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '采购单号', scopedSlots: { customRender: 'purchaseBillNo' }, width: 140, align: 'center' },
|
|
|
+ { title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '供应商', dataIndex: 'custName', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品款数', dataIndex: 'totalP', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '采购数量', dataIndex: 'totalNums', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '采购金额(¥)', dataIndex: 'totalPrice', width: 115, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '产品款数', dataIndex: 'totalCategory', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '采购数量', dataIndex: 'totalQty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '采购金额(¥)', dataIndex: 'totalAmount', width: 115, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '业务状态', scopedSlots: { customRender: 'auditStatus' }, width: 100, align: 'center' },
|
|
|
{ title: '财务状态', scopedSlots: { customRender: 'financialStatus' }, width: 100, align: 'center' },
|
|
|
{ title: '重要提示', dataIndex: 'shDate', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
@@ -144,31 +144,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', purchaseNo: 'jgqp1111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
|
|
|
- ],
|
|
|
- count: 10
|
|
|
- }
|
|
|
+ return purchaseList(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
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -204,8 +187,6 @@ export default {
|
|
|
this.$confirm({
|
|
|
title: '提示',
|
|
|
content: '删除后不可恢复,确定要进行删除吗?',
|
|
|
- okText: '确定',
|
|
|
- cancelText: '取消',
|
|
|
centered: true,
|
|
|
onOk () {
|
|
|
// delectRolePower({
|