Prechádzať zdrojové kódy

审核进度、再次提交页面

chenrui 2 rokov pred
rodič
commit
8a47a99e9a

+ 9 - 5
src/views/purchasingManagement/purchaseReturn/list.vue

@@ -104,8 +104,8 @@
             size="small"
             type="link"
             class="button-warning"
-            @click="handleAuditModalShow(record)"
-            id="allocateBillList-examine-btn">审核</a-button>
+            @click="openReviewModal = true"
+            id="allocateBillList-examine-btn">审核进度</a-button>
           <a-button
             size="small"
             type="link"
@@ -145,6 +145,8 @@
     <reportModal :visible="showExport" @close="showExport=false"></reportModal>
     <!-- 选择审核人员 -->
     <chooseDepartUserModal v-drag :openModal="openDepartUserModal" @close="openDepartUserModal=false" @submit="handleSubmit"></chooseDepartUserModal>
+    <!-- 审核进度弹窗 -->
+    <reviewProgressModal v-drag :openModal="openReviewModal" @close="openReviewModal=false"></reviewProgressModal>
   </a-card>
 </template>
 
@@ -155,13 +157,14 @@ import addModal from './addModal.vue'
 import detailModal from './detailModal.vue'
 import rangeDate from '@/views/common/rangeDate.vue'
 import chooseDepartUserModal from './chooseDepartUserModal.vue'
+import reviewProgressModal from './reviewProgressModal.vue'
 import reportModal from '@/views/common/reportModal.vue'
 import { hdExportExcel } from '@/libs/exportExcel'
 import { sparePartsList, sparePartsDelete, sparePartsAudit, sparePartsDetailExport } from '@/api/spareParts'
 export default {
   name: 'PurchaseReturnList',
   mixins: [commonMixin],
-  components: { STable, VSelect, reportModal, detailModal, addModal, chooseDepartUserModal, rangeDate },
+  components: { STable, VSelect, reportModal, detailModal, addModal, chooseDepartUserModal, rangeDate, reviewProgressModal },
   data () {
     return {
       spinning: false,
@@ -204,7 +207,8 @@ export default {
       },
       openDetailModal: false,
       itemSn: null,
-      rowSelectionInfo: null
+      rowSelectionInfo: null,
+      openReviewModal: false
     }
   },
   computed: {
@@ -256,7 +260,7 @@ export default {
     },
     //  编辑
     handleEdit (row) {
-      this.$router.push({ path: `/purchasingManagement/purchaseReturn/purchaseReturnDeatil`})
+      this.$router.push({ path: `/purchasingManagement/purchaseReturn/purchaseReturnDeatil` })
     },
     //  详情
     handleDetail (row) {

+ 116 - 0
src/views/purchasingManagement/purchaseReturn/reviewProgressModal.vue

@@ -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>