|
@@ -165,7 +165,9 @@
|
|
<!-- 审核弹窗 -->
|
|
<!-- 审核弹窗 -->
|
|
<reviewModal v-drag :openModal="openReviewModal" :itemSn="itemSn" @ok="okReviewModal" @close="closeReviewModal"></reviewModal>
|
|
<reviewModal v-drag :openModal="openReviewModal" :itemSn="itemSn" @ok="okReviewModal" @close="closeReviewModal"></reviewModal>
|
|
<!-- 上传凭证 -->
|
|
<!-- 上传凭证 -->
|
|
- <uploadVoucherModal v-drag :openModal="openVoucherModal" :itemSn="itemSn" @close="openVoucherModal=false"></uploadVoucherModal>
|
|
|
|
|
|
+ <uploadVoucherModal v-drag :openModal="openVoucherModal" :itemSn="itemSn" @ok="handleSearch" @close="openVoucherModal=false"></uploadVoucherModal>
|
|
|
|
+ <!-- 查看上传凭证 -->
|
|
|
|
+ <seeVoucherModal v-drag :openModal="openSeeVoucherModal" :itemData="itemSeeData" @close="openSeeVoucherModal=false;itemSeeData=null"></seeVoucherModal>
|
|
</a-card>
|
|
</a-card>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -182,12 +184,13 @@ import supplier from '@/views/common/supplier.js'
|
|
import reviewModal from './reviewModal.vue'
|
|
import reviewModal from './reviewModal.vue'
|
|
import detailModal from './detailModal.vue'
|
|
import detailModal from './detailModal.vue'
|
|
import uploadVoucherModal from './uploadVoucherModal.vue'
|
|
import uploadVoucherModal from './uploadVoucherModal.vue'
|
|
|
|
+import seeVoucherModal from './seeVoucherModal.vue'
|
|
// 接口
|
|
// 接口
|
|
import { purchaseList, purchasePageCount, purchaseCancel, purchaseAudit } from '@/api/purchase'
|
|
import { purchaseList, purchasePageCount, purchaseCancel, purchaseAudit } from '@/api/purchase'
|
|
export default {
|
|
export default {
|
|
name: 'PurchaseReceiptList',
|
|
name: 'PurchaseReceiptList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
- components: { STable, supplier, VSelect, custList, rangeDate, reviewModal, detailModal, uploadVoucherModal },
|
|
|
|
|
|
+ components: { STable, supplier, VSelect, custList, rangeDate, reviewModal, detailModal, uploadVoucherModal, seeVoucherModal },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
@@ -202,15 +205,17 @@ export default {
|
|
endDate: getDate.getCurrMonthDays().endtime, // 创建结束时间
|
|
endDate: getDate.getCurrMonthDays().endtime, // 创建结束时间
|
|
sparePartsNo: undefined, // 采购单号
|
|
sparePartsNo: undefined, // 采购单号
|
|
supplierSn: undefined, // 供应商名称
|
|
supplierSn: undefined, // 供应商名称
|
|
- buyerSn: undefined, // 客户名称
|
|
|
|
|
|
+ lockBizDealerSn: undefined, // 客户名称
|
|
relationNo: undefined, // 关联单号
|
|
relationNo: undefined, // 关联单号
|
|
state: undefined, // 业务状态
|
|
state: undefined, // 业务状态
|
|
thirdpartyBizState: undefined// 供应商状态
|
|
thirdpartyBizState: undefined// 供应商状态
|
|
},
|
|
},
|
|
openReviewModal: false, // 审核弹窗
|
|
openReviewModal: false, // 审核弹窗
|
|
openVoucherModal: false, // 上传凭证
|
|
openVoucherModal: false, // 上传凭证
|
|
|
|
+ openSeeVoucherModal: false, // 查看上传凭证弹窗
|
|
openDetailModal: false, // 详情弹窗
|
|
openDetailModal: false, // 详情弹窗
|
|
itemSn: null, // 采购入库sn
|
|
itemSn: null, // 采购入库sn
|
|
|
|
+ itemSeeData: null, // 查看凭证数据
|
|
totalData: null, // 统计数据
|
|
totalData: null, // 统计数据
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
@@ -255,7 +260,7 @@ export default {
|
|
{ title: '采购金额', dataIndex: 'productTotalCost', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
|
|
{ title: '采购金额', dataIndex: 'productTotalCost', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
|
|
{ title: '入库仓库', dataIndex: 'warehouseName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '入库仓库', dataIndex: 'warehouseName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '关联单号', dataIndex: 'lockBizNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '关联单号', dataIndex: 'lockBizNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '客户名称', dataIndex: 'supplierName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
|
|
+ { title: '客户名称', dataIndex: 'lockBizDealerName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '业务状态', dataIndex: 'stateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '业务状态', dataIndex: 'stateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '供应商状态', dataIndex: 'thirdpartyBizStateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '供应商状态', dataIndex: 'thirdpartyBizStateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '备注', dataIndex: 'remark', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '备注', dataIndex: 'remark', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
@@ -280,7 +285,7 @@ export default {
|
|
},
|
|
},
|
|
// 是否显示查看凭证按钮
|
|
// 是否显示查看凭证按钮
|
|
isShowCheckBtn (con) {
|
|
isShowCheckBtn (con) {
|
|
- const res = ((con.state === 'PASS' && con.thirdpartyBizState === 'AUDIT_PASS') || (con.state === 'WAIT_PUT' && con.thirdpartyBizState === 'WAIT_RECEIVE') || (con.state === 'WAIT_PUT' && con.thirdpartyBizState === 'FINISH') || (con.state === 'FINISH' && con.thirdpartyBizState === 'FINISH')) && con.attachmentList
|
|
|
|
|
|
+ const res = ((con.state === 'PASS' && con.thirdpartyBizState === 'AUDIT_PASS') || (con.state === 'WAIT_PUT' && con.thirdpartyBizState === 'WAIT_RECEIVE') || (con.state === 'WAIT_PUT' && con.thirdpartyBizState === 'FINISH') || (con.state === 'FINISH' && con.thirdpartyBizState === 'FINISH')) && (con.attachmentList && con.attachmentList.length > 0)
|
|
return res
|
|
return res
|
|
},
|
|
},
|
|
// 是否显示 --
|
|
// 是否显示 --
|
|
@@ -368,6 +373,13 @@ export default {
|
|
this.itemSn = row.sparePartsSn
|
|
this.itemSn = row.sparePartsSn
|
|
this.openVoucherModal = true
|
|
this.openVoucherModal = true
|
|
},
|
|
},
|
|
|
|
+ // 查看凭证
|
|
|
|
+ seeVoucher (row) {
|
|
|
|
+ this.itemSeeData = row.attachmentList
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.openSeeVoucherModal = true
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 取消
|
|
// 取消
|
|
handleDel (row) {
|
|
handleDel (row) {
|
|
const _this = this
|
|
const _this = this
|
|
@@ -391,7 +403,7 @@ export default {
|
|
},
|
|
},
|
|
// 客户名称 change
|
|
// 客户名称 change
|
|
custChange (obj) {
|
|
custChange (obj) {
|
|
- this.queryParam.buyerSn = obj.key
|
|
|
|
|
|
+ this.queryParam.lockBizDealerSn = obj.key
|
|
},
|
|
},
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
@@ -404,7 +416,7 @@ export default {
|
|
this.$refs.rangeDate.resetDate(this.queryParam.time)
|
|
this.$refs.rangeDate.resetDate(this.queryParam.time)
|
|
this.queryParam.sparePartsNo = undefined
|
|
this.queryParam.sparePartsNo = undefined
|
|
this.queryParam.supplierSn = undefined
|
|
this.queryParam.supplierSn = undefined
|
|
- this.queryParam.buyerSn = undefined
|
|
|
|
|
|
+ this.queryParam.lockBizDealerSn = undefined
|
|
this.queryParam.relationNo = undefined
|
|
this.queryParam.relationNo = undefined
|
|
this.queryParam.state = undefined
|
|
this.queryParam.state = undefined
|
|
this.queryParam.thirdpartyBizState = undefined
|
|
this.queryParam.thirdpartyBizState = undefined
|