|
@@ -0,0 +1,116 @@
|
|
|
|
+<template>
|
|
|
|
+ <a-modal
|
|
|
|
+ centered
|
|
|
|
+ class="reviewProgress-modal"
|
|
|
|
+ :footer="null"
|
|
|
|
+ :maskClosable="false"
|
|
|
|
+ title="采购退货的审核进度"
|
|
|
|
+ v-model="isShow"
|
|
|
|
+ @cancel="isShow=false"
|
|
|
|
+ :width="960">
|
|
|
|
+ <div>
|
|
|
|
+ <div>说明:以下信息来自钉钉</div>
|
|
|
|
+ <div class="timeDesc">提审时间:2023-01-06 17:56:56</div>
|
|
|
|
+ <s-table
|
|
|
|
+ class="sTable"
|
|
|
|
+ ref="table"
|
|
|
|
+ size="small"
|
|
|
|
+ :rowKey="(record) => record.stockPutSn"
|
|
|
|
+ :columns="columns"
|
|
|
|
+ :data="loadData"
|
|
|
|
+ :defaultLoadData="false"
|
|
|
|
+ bordered>
|
|
|
|
+ </s-table>
|
|
|
|
+ </div>
|
|
|
|
+ </a-modal>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+import { STable } from '@/components'
|
|
|
|
+import { stockPutDetailList } from '@/api/stockPut'
|
|
|
|
+export default {
|
|
|
|
+ name: 'ReviewProgressModal',
|
|
|
|
+ components: { STable },
|
|
|
|
+ props: {
|
|
|
|
+ openModal: { // 弹框显示状态
|
|
|
|
+ type: Boolean,
|
|
|
|
+ default: false
|
|
|
|
+ },
|
|
|
|
+ itemSn: {
|
|
|
|
+ type: [Number, String],
|
|
|
|
+ default: ''
|
|
|
|
+ },
|
|
|
|
+ nowData: {
|
|
|
|
+ type: Object,
|
|
|
|
+ default: () => {
|
|
|
|
+ return {}
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ data () {
|
|
|
|
+ return {
|
|
|
|
+ isShow: this.openModal, // 是否打开弹框
|
|
|
|
+ detailsData: null, // 详情数据
|
|
|
|
+ columns: [
|
|
|
|
+ { title: '序号', dataIndex: 'no', width: '7%', align: 'center' },
|
|
|
|
+ { title: '人员姓名', dataIndex: 'productCode', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '人员类型', dataIndex: 'productName', width: '45%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
+ { title: '状态', dataIndex: 'putQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
+ { title: '审批意见', dataIndex: 'putQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
+ { title: '附件', dataIndex: 'putCost', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
+ { title: '操作时间', dataIndex: 'putQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
|
+ ],
|
|
|
|
+ // 加载数据方法 必须为 Promise 对象
|
|
|
|
+ loadData: parameter => {
|
|
|
|
+ // return stockPutDetailList(Object.assign(parameter, { sn: this.itemSn })).then(res => {
|
|
|
|
+ // let data
|
|
|
|
+ // if (res.status == 200) {
|
|
|
|
+ // 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
|
|
|
|
+ // })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ methods: {},
|
|
|
|
+ watch: {
|
|
|
|
+ // 父页面传过来的弹框状态
|
|
|
|
+ openModal (newValue, oldValue) {
|
|
|
|
+ this.isShow = newValue
|
|
|
|
+ },
|
|
|
|
+ // 重定义的弹框状态
|
|
|
|
+ isShow (newValue, oldValue) {
|
|
|
|
+ if (!newValue) {
|
|
|
|
+ this.$emit('close')
|
|
|
|
+ this.$refs.table.clearTable()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // itemSn (newValue, oldValue) {
|
|
|
|
+ // if (this.isShow && newValue) {
|
|
|
|
+ // const _this = this
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // _this.$refs.table.refresh(true)
|
|
|
|
+ // }, 200)
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style lang="less">
|
|
|
|
+ .reviewProgress-modal{
|
|
|
|
+ .ant-modal-body {
|
|
|
|
+ padding: 24px 40px;
|
|
|
|
+ }
|
|
|
|
+ .timeDesc{
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ line-height: 40px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+</style>
|