瀏覽代碼

申请表单中。 申请流程 抄送更新

xutongzee 1 年之前
父節點
當前提交
ec90d9894a

+ 6 - 12
TODO.md

@@ -40,17 +40,11 @@
 
 # 今日完成
 
-## 流程
-
-- [ ] 合同呈批 type = 9
+- [ ] 申请人 用车
+- [ ] 申请人 请假
 
-- [ ] 维修流程 type = 8
-
-  - [x] 报表填写流程
-  - [x] 渲染展示字段
-  - [x] 回填表单
-  - [x] 审核小功能
-  - [x] 审核人员修改可以
+## 流程
 
-- [ ] 申购申请
-  - [x] 不加明细成功
+- [ ] 申购申请 module = 1
+- [x] 维修流程 module = 8
+- [ ] 合同呈批 module = 9

+ 1 - 0
src/utils/applyfor-item.js

@@ -39,6 +39,7 @@ function getModule1(data){
       title: '申购类型',
       value: getapplyTypeText(module_info.type)
     },
+    // TODO: 待办
     // 申购明细
     {
       title: '总金额',

+ 178 - 91
src/views/applyfor/components/CFlowPath.vue

@@ -1,7 +1,5 @@
 <template>
-    <layout
-        title="流程"
-    >
+    <layout title="流程">
         <div class="custom-flow-path-container">
             <!-- 审批人 -->
             <div class="rows">
@@ -15,25 +13,26 @@
                 </div>
                 <div class="right flex flex-row">
                     <div v-if="approveSelList.length" class="procesbox flex flex-row flex-row-aic">
-                        <div
-                            class="flex flex-row"
-                            v-for="(personal, idx) in approveSelList"
-                            :key="idx"
-                        >
-                            <div class="personal flex flex-col"
-                            >
+                        <div class="flex flex-row" v-for="(personal, idx) in approveSelList" :key="idx">
+                            <div class="personal flex flex-col">
                                 <div class="avatar avatar--name">
-                                    <span class="avatar__name">{{ personal.name | changeName }}</span>
+                                    <template v-if="personal.avatar">
+                                        <img class="avatar-heade" :src="personal.avatar" />
+                                    </template>
+                                    <template v-else>
+                                        <span class="avatar__name">{{ personal.name | changeName }}</span>
+                                    </template>
                                 </div>
                                 <div class="personal__name">{{ personal.name }}</div>
                             </div>
 
-                            <van-icon class="arrow" v-if="idx !== approveSelList.length - 1" :size="14" name="arrow" />
+                            <van-icon class="arrow" v-if="idx !== approveSelList.length - 1" :size="14" name="arrow"
+                                color="rgb(151, 151, 151)" />
                         </div>
                     </div>
-                    <div v-if="approveSelList.length < 3" class="empty-box" @click="handleOpenContacts">
+                    <!-- <div v-if="approveSelList.length < 3" class="empty-box" @click="handleOpenContacts">
                         <van-icon :size="20" color="#979797" name="plus" />
-                    </div>
+                    </div> -->
                 </div>
                 <div class="rows-line"></div>
             </div>
@@ -50,30 +49,72 @@
                 </div>
                 <div class="right flex flex-row">
                     <div v-if="copySelList.length" class="procesbox flex flex-row flex-row-aic">
-                        <div
-                            class="flex flex-row"
-                            v-for="(personal, idx) in copySelList"
-                            :key="idx"
-                        >
-                            <div class="personal flex flex-col"
-                            >
+                        <div class="flex flex-row" v-if="copySelList.length > 3" @click="showMoreCopy = true">
+                            <div class="personal flex flex-col">
                                 <div class="avatar avatar--name">
-                                    <span class="avatar__name">{{ personal.name | changeName }}</span>
+                                    <span class="avatar__name">
+                                        <van-icon name="friends-o" :size="24" />
+                                    </span>
                                 </div>
-                                <div class="personal__name">{{ personal.name }}</div>
+                                <div class="personal__name">查看全部</div>
                             </div>
+                            <van-icon class="arrow" :size="14" name="plus" color="rgb(151, 151, 151)" />
+                        </div>
 
-                            <van-icon class="arrow" v-if="idx !== 2" :size="14" name="arrow" />
-
+                        <div class="flex flex-row" v-for="(personal, idx) in copySelListCompu" :key="idx">
+                            <div class="personal flex flex-col">
+                                <div class="avatar avatar--name">
+                                    <template v-if="personal.avatar">
+                                        <img class="avatar-heade" :src="personal.avatar" />
+                                    </template>
+                                    <template v-else>
+                                        <span class="avatar__name">{{ personal.name | changeName }}</span>
+                                    </template>
+                                </div>
+                                <div class="personal__name">{{ personal.name }}</div>
+                            </div>
+                            <van-icon v-if="idx !== copySelListCompu.length - 1" class="arrow" :size="14" name="plus"
+                                color="rgb(151, 151, 151)" />
+                            <van-icon v-else-if="isAllowCopy == '1'" class="arrow" :size="14" name="plus"
+                                color="rgb(151, 151, 151)" />
                         </div>
                     </div>
-                    <div v-if="copySelList.length < 3" class="empty-box" @click="handleOpenContactsCopy">
+                    <div class="empty-box" v-if="isAllowCopy == '1'" @click="handleOpenContactsCopy">
                         <van-icon :size="20" color="#979797" name="plus" />
                     </div>
                 </div>
             </div>
-
         </div>
+
+        <!-- NOTE: 当抄送人过多时  展示优化 -->
+        <van-popup v-model="showMoreCopy" position="bottom" :style="{ height: '60%' }" closeable
+            close-icon-position="top-right">
+            <div class="show-more-copy-container flex flex-col">
+                <div class="header">抄送{{ copySelList.length }}人</div>
+                <div class="main">
+                    <div class="procesbox flex flex-row flex-row-aic">
+                        <div class="flex flex-row" v-for="(personal, idx) in copySelList" :key="idx">
+                            <div class="personal flex flex-col">
+                                <div class="closebox" @click="handleRemoveSignal(personal, idx)"><van-icon name="cross"
+                                        :size="14" color="#fff" /></div>
+                                <div class="avatar avatar--name">
+                                    <template v-if="personal.avatar">
+                                        <img class="avatar-heade" :src="personal.avatar" />
+                                    </template>
+                                    <template v-else>
+                                        <span class="avatar__name">{{ personal.name | changeName }}</span>
+                                    </template>
+                                </div>
+                                <div class="personal__name">{{ personal.name }}</div>
+                            </div>
+                            <van-icon class="arrow" v-if="idx !== copySelList.length - 1" :size="14" name="plus"
+                                color="rgb(151, 151, 151)" />
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+        </van-popup>
     </layout>
 </template>
 
@@ -84,6 +125,7 @@
     &-container {
         padding: 10px 12px;
         background-color: @white;
+
         .rows {
             position: relative;
             display: flex;
@@ -91,7 +133,7 @@
             // align-items: center;
             justify-content: space-between;
             margin-bottom: 16px;
-            
+
             .rows-line {
                 position: absolute;
                 left: -10px;
@@ -108,6 +150,7 @@
                     font-weight: 400;
                     color: #191A1E;
                     line-height: 18px;
+
                     &::after {
                         position: absolute;
                         content: "";
@@ -121,6 +164,7 @@
 
                     }
                 }
+
                 &__desc {
                     font-size: @font-size-third;
                     font-weight: 400;
@@ -140,6 +184,7 @@
                 border-radius: 5px;
                 border: 1px solid #EEEEEF;
             }
+
             // .right {}
             &:last-child {
                 .rows-line {
@@ -147,54 +192,89 @@
                 }
             }
         }
+    }
+}
 
-        .avatar {
-            position: relative;
-            width: 31px;
-            height: 31px;
-            background: #3290C4;
+.procesbox {
+    flex-wrap: wrap;
+
+    .avatar {
+        position: relative;
+        width: 31px;
+        height: 31px;
+        background: #3290C4;
+        border-radius: 4px;
+        font-size: @font-size-third;
+
+        &--name {
+            display: flex;
+            flex-direction: row;
+            align-items: center;
+            justify-content: center;
+        }
+
+        &-heade {
+            width: 100%;
+            height: 100%;
+            vertical-align: middle;
             border-radius: 4px;
-            &--name {
-                display: flex;
-                flex-direction: row;
-                align-items: center;
-                justify-content: center;
-            }
-            &__name {
-                font-size: @font-size-third;
-                font-family: PingFangSC-Regular, PingFang SC;
-                font-weight: 400;
-                color: #FFFFFF;
-                line-height: 9px;
-            }
         }
 
-        .procesbox {
-            flex-wrap: wrap;
-            .avatar {
-                font-size: @font-size-third;
-                &__name {
-                    white-space: nowrap;
-                }
-            }
-            .personal {
-                align-items: center;
-                &__name {
-                    font-size: @font-size-third;
-                    font-family: PingFangSC-Regular, PingFang SC;
-                    font-weight: 400;
-                    color: #9A9A9A;
-                    text-align: center;
-                    line-height: 20px;
-                }
-            }
-            .arrow {
-                height: 31px;
-                line-height: 31px;
-                padding: 0 5px;
-            }
+        &__name {
+            font-size: @font-size-third;
+            font-family: PingFangSC-Regular, PingFang SC;
+            font-weight: 400;
+            color: #FFFFFF;
+            line-height: 9px;
+            white-space: nowrap;
         }
-        
+    }
+
+    .personal {
+        position: relative;
+        align-items: center;
+
+        &__name {
+            font-size: @font-size-third;
+            font-family: PingFangSC-Regular, PingFang SC;
+            font-weight: 400;
+            color: #9A9A9A;
+            text-align: center;
+            line-height: 20px;
+        }
+
+        .closebox {
+            position: absolute;
+            right: 0;
+            top: 0;
+            z-index: 9;
+            font-size: 0;
+            transform: translate(30%, -30%);
+            background-color: #b7b5b5;
+            border-radius: 1000px;
+            padding: 1px;
+        }
+    }
+
+    .arrow {
+        height: 31px;
+        line-height: 31px;
+        padding: 0 5px;
+    }
+}
+
+.show-more-copy-container {
+    .header {
+        font-size: 12px;
+        line-height: 50px;
+        padding: 0 20px;
+        color: #828282;
+    }
+
+    .main {
+        height: 0;
+        flex: 1;
+        padding: 6px 10px;
     }
 }
 </style>
@@ -210,14 +290,19 @@ export default {
         Layout
     },
     computed: {
-        approveTxt () {
-            let list = this.approvePersonal
+        approveTxt() {
+            let list = this.approveSelList
             return list.length ? `${list.length}人依次审批` : '请选择审批人'
         },
-        sendTxt () {
-            let list = this.sendTo
+        sendTxt() {
+            let list = this.copySelList
             return list.length ? `抄送${list.length}人` : '请选择抄送人'
         },
+        copySelListCompu() {
+            let arrs = [...this.copySelList]
+            if (arrs.length > 2) return arrs.slice(-2)
+            else return arrs
+        },
     },
     props: {
         approve: {
@@ -227,47 +312,49 @@ export default {
             type: Array
         },
         isAllowCopy: { // 是否允许抄送人存在变更 (0:否, 1:是)
-            validator: val => (['0', '1'].includes(val))
+            // validator: val => (['0', '1'].includes(val)),
+            type: [String, Number],
+            default: 1
         }
     },
-    data () {
+    data() {
         return {
+            showMoreCopy: false,
             approveSelList: [],
-            copySelList: [],
-
-            personalList: [],
-            personalList2: [],
-
-            approvePersonal: [],
-            sendTo: []
+            copySelList: []
         }
     },
     methods: {
 
         // 打开钉钉联系人控件。完成选审批/抄送人操作
-        async handleOpenContacts () {
+        async handleOpenContacts() {
 
             const result = await dingtalkComplexPicker({})
-            
+
             console.log(result);
         },
-        async handleOpenContactsCopy () {
+        async handleOpenContactsCopy() {
             if (this.isAllowCopy != 1) return
-            
+
             const result = await dingtalkComplexPicker({})
-            
+
             console.log(result);
         },
+        handleRemoveSignal(person, idx) {
+            this.copySelList.splice(idx, 1)
+
+            // TODO: Update copy data.
+        }
     },
     watch: {
         approve: {
-            handler (arrs) {
+            handler(arrs) {
                 if (arrs.length) this.approveSelList = [...arrs]
             },
             deep: true,
         },
         copy: {
-            handler (arrs) {
+            handler(arrs) {
                 if (arrs.length) this.copySelList = [...arrs]
             },
             deep: true

+ 0 - 1
src/views/applyfor/components/CProductStore.vue

@@ -30,7 +30,6 @@
           </div>
         </div>
         <div class="product-list__rows">
-          <!-- TODO: 数据结构未知暂不修改 -->
           <div class="prow" v-for="(item, idx) in list" :key="idx">
             <div class="prow-header flex flex-row flex-row-aic">
               <div class="prow-header__left">

+ 26 - 65
src/views/applyfor/components/IndexType11.vue

@@ -1,60 +1,23 @@
 <template>
     <div class="type6-container">
-        <c-select
-            title="拟稿部门"
-            :required="true"
-            v-model="department"
-        />
-
-        <c-input
-            title="文件名称"
-            :required="true"
-            v-model="reason"
-        />
-
-        <c-select
-            title="落款"
-            :required="true"
-            v-model="department_sign"
-        />
-
-        <c-input
-            title="上会情况"
-            input-type="textarea"
-            v-model="remark"
-        />
-
-        <c-files
-            ctype="files"
-            v-model="document"
-        />
-
-        <c-select
-            title="缓急程度"
-            :required="true"
-            :list="degreeList"
-            pickerValueKey="name"
-            pickerValueId="id"
-            v-model="desc"
-        />
-
-        <c-date
-            title="拟发文时间"
-            :required="true"
-            v-model="apply_date"
-        />
-
-        <c-input
-            title="文件号"
-            :required="true"
-            v-model="serial_number"
-        />
-
-        <c-flow-path
-            :approve="approvePeople"
-            :copy="copyPeople"
-            :isAllowCopy="isCopy"
-        />
+        <c-select title="拟稿部门" :required="true" v-model="department" />
+
+        <c-input title="文件名称" :required="true" v-model="reason" />
+
+        <c-select title="落款" :required="true" v-model="department_sign" />
+
+        <c-input title="上会情况" input-type="textarea" v-model="remark" />
+
+        <c-files ctype="files" v-model="document" />
+
+        <c-select title="缓急程度" :required="true" :list="degreeList" pickerValueKey="name" pickerValueId="id"
+            v-model="desc" />
+
+        <c-date title="拟发文时间" :required="true" v-model="apply_date" />
+
+        <c-input title="文件号" :required="true" v-model="serial_number" />
+
+        <c-flow-path :approve="approvePeople" :copy="copyPeople" :isAllowCopy="isCopy" />
 
     </div>
 </template>
@@ -76,13 +39,11 @@ export default {
     mixins: [
         indexMixin
     ],
-    data () {
+    data() {
         return {
             postApi: null,
             degreeList: this.$store.state.enum.degreeList,
 
-            // TODO: 缺少拟稿部门、落款选择数据列表
-
             // formData start
             id: '',
             module: 11,
@@ -101,20 +62,20 @@ export default {
         }
     },
 
-    created () {
+    created() {
         this.getCommonFlowPathData()
         this.postApi = this.flag === 'approve' ? editApprove : postCreateInfo
     },
 
     methods: {
         // 获取编辑数据
-        handleFormatEditData (data) {
+        handleFormatEditData(data) {
             console.log('%c edit data type6 >>>', 'background: blue; color: #fff', data);
         },
         /**
          * @description 提交数据默认函数
          */
-         handleSubmitData () {
+        handleSubmitData() {
             let formData = this.__format_data__()
             console.log('format data>>>', formData);
             let bol = this.validate(formData)
@@ -122,7 +83,7 @@ export default {
             console.log('execute handleSubmitData', formData);
             this.__post__(formData)
         },
-        __format_data__ () {
+        __format_data__() {
             let templateObj = {
                 module: this.module,
 
@@ -144,7 +105,7 @@ export default {
             if (this.id) templateObj.id = this.id
             return templateObj
         },
-        validate (data) {
+        validate(data) {
             let mapTxt = {
                 'department': '拟稿部门',
                 'reason': '文件名称',
@@ -167,7 +128,7 @@ export default {
                 data
             })
         },
-        async __post__ (data) {
+        async __post__(data) {
             try {
                 const res = await this.postApi(data)
                 if (res.code === 1) {
@@ -184,7 +145,7 @@ export default {
                     */
 
                 }
-            } catch(e) {
+            } catch (e) {
                 console.log('it5, __post__', e);
             }
         },

+ 24 - 58
src/views/applyfor/components/IndexType2.vue

@@ -1,53 +1,21 @@
 <template>
     <div class="type6-container">
-        <c-input
-            title="呈批类型"
-            :required="true"
-            v-model="type"
-        />
-
-        <c-input
-            title="发文字号"
-            :required="true"
-            v-model="word_size"
-        />
-
-        <c-select
-            title="缓急程度"
-            :required="true"
-            v-model="desc"
-            :list="degreeList"
-            pickerValueKey="name"
-            pickerValueId="id"
-        />
-
-        <c-input
-            title="印制份数"
-            input-type="number"
-            v-model="number"
-        />
-                
-        <c-input
-            title="申请标题"
-            :required="true"
-            v-model="reason"
-        />
-
-        <c-input
-            title="申请内容"
-            input-type="textarea"
-            v-model="remark"
-        />
-
-        <c-files
-            v-model="document"
-        />
-
-        <c-flow-path
-            :approve="approvePeople"
-            :copy="copyPeople"
-            :isAllowCopy="isCopy"
-        />
+        <c-input title="呈批类型" :required="true" v-model="type" />
+
+        <c-input title="发文字号" :required="true" v-model="word_size" />
+
+        <c-select title="缓急程度" :required="true" v-model="desc" :list="degreeList" pickerValueKey="name"
+            pickerValueId="id" />
+
+        <c-input title="印制份数" input-type="number" v-model="number" />
+
+        <c-input title="申请标题" :required="true" v-model="reason" />
+
+        <c-input title="申请内容" input-type="textarea" v-model="remark" />
+
+        <c-files v-model="document" />
+
+        <c-flow-path :approve="approvePeople" :copy="copyPeople" :isAllowCopy="isCopy" />
 
     </div>
 </template>
@@ -69,13 +37,11 @@ export default {
     mixins: [
         indexMixin
     ],
-    data () {
+    data() {
         return {
             postApi: null,
             degreeList: this.$store.state.enum.degreeList,
 
-            // TODO: 缺少拟稿部门、落款选择数据列表
-
             // formData start
             id: '',
             module: 2,
@@ -93,20 +59,20 @@ export default {
         }
     },
 
-    created () {
+    created() {
         this.getCommonFlowPathData()
         this.postApi = this.flag === 'approve' ? editApprove : postCreateInfo
     },
 
     methods: {
         // 获取编辑数据
-        handleFormatEditData (data) {
+        handleFormatEditData(data) {
             console.log('%c edit data type6 >>>', 'background: blue; color: #fff', data);
         },
         /**
          * @description 提交数据默认函数
          */
-         handleSubmitData () {
+        handleSubmitData() {
             let formData = this.__format_data__()
             console.log('format data>>>', formData);
             let bol = this.validate(formData)
@@ -114,7 +80,7 @@ export default {
             console.log('execute handleSubmitData', formData);
             this.__post__(formData)
         },
-        __format_data__ () {
+        __format_data__() {
             let templateObj = {
                 module: this.module,
                 reason: this.reason,
@@ -134,7 +100,7 @@ export default {
             if (this.id) templateObj.id = this.id
             return templateObj
         },
-        validate (data) {
+        validate(data) {
             let mapTxt = {
                 'type': '呈批类型',
                 'word_size': '发文字号',
@@ -153,7 +119,7 @@ export default {
                 data
             })
         },
-        async __post__ (data) {
+        async __post__(data) {
             try {
                 const res = await this.postApi(data)
                 if (res.code === 1) {
@@ -168,7 +134,7 @@ export default {
                     })
                     */
                 }
-            } catch(e) {
+            } catch (e) {
                 console.log('it2, __post__', e);
             }
         },

+ 19 - 38
src/views/applyfor/components/IndexType3.vue

@@ -3,34 +3,17 @@
 
         <!-- TODO: 关联采购审批单 -->
         <!-- 需要新增页面 -->
-        <c-select
-            title="采购审批单"
-        />
-                
-        <c-product-store
-            type="3"
-        />
-
-        <c-files
-            v-model="document"
-        />
-
-        <c-files
-            v-model="images"
-            ctype="images"
-        />
-
-        <c-input
-            title="其他补充说明"
-            input-type="textarea"
-            v-model="remark"
-        />
-
-        <c-flow-path
-            :approve="approvePeople"
-            :copy="copyPeople"
-            :isAllowCopy="isCopy"
-        />
+        <c-select title="采购审批单" />
+
+        <c-product-store type="3" />
+
+        <c-files v-model="document" />
+
+        <c-files v-model="images" ctype="images" />
+
+        <c-input title="其他补充说明" input-type="textarea" v-model="remark" />
+
+        <c-flow-path :approve="approvePeople" :copy="copyPeople" :isAllowCopy="isCopy" />
 
     </div>
 </template>
@@ -58,13 +41,11 @@ export default {
     components: {
         CProductStore
     },
-    data () {
+    data() {
         return {
             postApi: null,
             degreeList: this.$store.state.enum.degreeList,
 
-            // TODO: 缺少拟稿部门、落款选择数据列表
-
             // formData start
             id: '',
             module: 3,
@@ -81,20 +62,20 @@ export default {
         }
     },
 
-    created () {
+    created() {
         this.getCommonFlowPathData()
         this.postApi = this.flag === 'approve' ? editApprove : postCreateInfo
     },
 
     methods: {
         // 获取编辑数据
-        handleFormatEditData (data) {
+        handleFormatEditData(data) {
             console.log('%c edit data type6 >>>', 'background: blue; color: #fff', data);
         },
         /**
          * @description 提交数据默认函数
          */
-         handleSubmitData () {
+        handleSubmitData() {
             let formData = this.__format_data__()
             console.log('format data>>>', formData);
             let bol = this.validate(formData)
@@ -102,7 +83,7 @@ export default {
             console.log('execute handleSubmitData', formData);
             this.__post__(formData)
         },
-        __format_data__ () {
+        __format_data__() {
             let templateObj = {
                 module: this.module,
 
@@ -121,7 +102,7 @@ export default {
             if (this.id) templateObj.id = this.id
             return templateObj
         },
-        validate (data) {
+        validate(data) {
             let mapTxt = {
                 'libraryInfo': '入库明细'
             }
@@ -134,7 +115,7 @@ export default {
                 data
             })
         },
-        async __post__ (data) {
+        async __post__(data) {
             try {
                 const res = await this.postApi(data)
                 if (res.code === 1) {
@@ -151,7 +132,7 @@ export default {
                     */
 
                 }
-            } catch(e) {
+            } catch (e) {
                 console.log('it5, __post__', e);
             }
         },

+ 17 - 35
src/views/applyfor/components/IndexType4.vue

@@ -1,30 +1,14 @@
 <template>
     <div class="type6-container">
-        <c-input
-            title="物品用途"
-            v-model="reason"
-        />
-
-        <c-product-store
-            type="4"
-        />
-
-        <c-files
-            ctype="files"
-            v-model="document"
-        />
-
-        <c-input
-            title="其他补充说明"
-            input-type="textarea"
-            v-model="remark"
-        />
-
-        <c-flow-path
-            :approve="approvePeople"
-            :copy="copyPeople"
-            :isAllowCopy="isCopy"
-        />
+        <c-input title="物品用途" v-model="reason" />
+
+        <c-product-store type="4" />
+
+        <c-files ctype="files" v-model="document" />
+
+        <c-input title="其他补充说明" input-type="textarea" v-model="remark" />
+
+        <c-flow-path :approve="approvePeople" :copy="copyPeople" :isAllowCopy="isCopy" />
 
     </div>
 </template>
@@ -51,13 +35,11 @@ export default {
     components: {
         CProductStore
     },
-    data () {
+    data() {
         return {
             postApi: null,
             degreeList: this.$store.state.enum.degreeList,
 
-            // TODO: 缺少拟稿部门、落款选择数据列表
-
             // formData start
             id: '',
             module: 4,
@@ -73,20 +55,20 @@ export default {
         }
     },
 
-    created () {
+    created() {
         this.getCommonFlowPathData()
         this.postApi = this.flag === 'approve' ? editApprove : postCreateInfo
     },
 
     methods: {
         // 获取编辑数据
-        handleFormatEditData (data) {
+        handleFormatEditData(data) {
             console.log('%c edit data type6 >>>', 'background: blue; color: #fff', data);
         },
         /**
          * @description 提交数据默认函数
          */
-         handleSubmitData () {
+        handleSubmitData() {
             let formData = this.__format_data__()
             console.log('format data>>>', formData);
             let bol = this.validate(formData)
@@ -94,7 +76,7 @@ export default {
             console.log('execute handleSubmitData', formData);
             this.__post__(formData)
         },
-        __format_data__ () {
+        __format_data__() {
             let templateObj = {
                 module: this.module,
                 reason: this.reason,
@@ -111,7 +93,7 @@ export default {
             if (this.id) templateObj.id = this.id
             return templateObj
         },
-        validate (data) {
+        validate(data) {
             let mapTxt = {
                 'infolist': '领用明细'
             }
@@ -124,7 +106,7 @@ export default {
                 data
             })
         },
-        async __post__ (data) {
+        async __post__(data) {
             try {
                 const res = await this.postApi(data)
                 if (res.code === 1) {
@@ -141,7 +123,7 @@ export default {
                     */
 
                 }
-            } catch(e) {
+            } catch (e) {
                 console.log('it5, __post__', e);
             }
         },