瀏覽代碼

bug修改 需求添加

asd26269546 2 年之前
父節點
當前提交
7c93d5a1dd

+ 1 - 0
public/index.html

@@ -7,6 +7,7 @@
     <meta http-equiv="pragram" content="no-cache">
     <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
     <link rel="icon" href="<%= BASE_URL %>logo.png">
+    <link rel="stylesheet" href="//at.alicdn.com/t/c/font_3513276_kli9hfawf1a.css">
     <title></title>
   </head>
   <body>

二進制
src/assets/images/icon_audit (1).png


二進制
src/assets/images/icon_audit.png


+ 2 - 5
src/components/my-modal-form/my-modal-form.vue

@@ -49,7 +49,7 @@
 								@on-change="handleDateChange(item.key)"
 								:transfer="true"
 								:type="item.comType"
-								format="yyyy-MM-dd"
+								format="yyyy-MM-dd HH:mm:ss"
 								:placeholder="item.placeholder"
 								style="width: 100%"
 							>
@@ -747,7 +747,7 @@ export default {
 		// 时间控件选择
 		handleDateChange(key) {
 			this.formData[key] = this.$dayjs(this.formData[key]).format(
-				'YYYY-MM-DD'
+				'YYYY-MM-DD hh:mm:ss'
 			)
 		},
 		// 上传运营执照 自动获取相关信息并回填
@@ -896,9 +896,6 @@ export default {
 				}
 			}
 		}
-		
-		console.log(this.formData)
-		console.log(this.data)
 	},
 }
 </script>

+ 13 - 4
src/components/my-table/my-table.vue

@@ -73,7 +73,7 @@
     <div class="table-page" v-if="isShowPage">
       <slot name="total"></slot>
       <Page
-        :current="tablePage.pageIndex"
+        :current.sync="tablePage.pageIndex"
         :page-size="tablePage.pageSize"
         :total="tablePage.total"
         :show-total="true"
@@ -206,7 +206,9 @@ export default {
     resize () {
       if (this.$refs['table-content']) {
         this.computedHeight = this.$refs['table-content'].clientHeight
-        if (
+        if (this.$refs['table-content'].getElementsByClassName(
+            'ivu-table-overflowY'
+          ) &&
           this.$refs['table-content'].getElementsByClassName(
             'ivu-table-overflowY'
           )[0]
@@ -214,9 +216,16 @@ export default {
           this.$refs['table-content'].getElementsByClassName(
             'ivu-table-overflowY'
           )[0].scrollTop = 0
-          this.$refs['table-content'].getElementsByClassName(
+          if(this.$refs['table-content'].getElementsByClassName(
             'ivu-table-overflowX'
-          )[0].scrollLeft = 0
+          ) && this.$refs['table-content'].getElementsByClassName(
+            'ivu-table-overflowX'
+          )[0]){
+            this.$refs['table-content'].getElementsByClassName(
+              'ivu-table-overflowX'
+            )[0].scrollLeft = 0
+          }
+          
         }
       } else {
         setTimeout(() => {

+ 18 - 0
src/libs/util.js

@@ -316,6 +316,24 @@ export const findNodeDownward = (ele, tag) => {
   }
 }
 
+//日期格式化
+export const dateFormat = (date, format = "YYYY-MM--DD HH:mm:ss") => {
+	var now = new Date(date)
+	const config = {
+		YYYY: now.getFullYear(),
+		MM: (now.getMonth() + 1).toString().padStart(2, '0'),
+		DD: (now.getDate()).toString().padStart(2, '0'),
+		HH: now.getHours().toString().padStart(2, '0'),
+		mm: now.getMinutes().toString().padStart(2, '0'),
+		ss: now.getSeconds(),
+	}
+	for (const key in config) {
+		format = format.replace(key, config[key])
+	}
+	return format
+}
+
+
 export const showByAccess = (access, canViewAccess) => {
   return hasOneOf(canViewAccess, access)
 }

+ 1 - 1
src/view/material-manege/pay/modals/apply-form.vue

@@ -156,7 +156,7 @@
           <div class="value">
             <Input
               v-model="data.payAmount"
-              :disabled="data.canApplyPay === 1"
+              :disabled="data.accountPeriod > 0"
               style="width: 120px"
             />
           </div>

+ 1 - 1
src/view/material-manege/pay/pay-detail.vue

@@ -468,7 +468,7 @@ export default {
           id: item.payBillId
         }).then(res => {
           if (res.code === 0) {
-            this.currentItem = { ...res.result, payBillId: item.payBillId, flowCheckId: item.flowCheckId }
+            this.currentItem = { ...res.result, payBillId: item.payBillId, flowCheckId: item.flowCheckId,invoiceAmount:item.invoiceAmount,adjustAmount:item.qtyCheckAmount }
             console.log(res.result)
             this.applyShow = true
           }

+ 2 - 2
src/view/store-manage/store-manage/store-manage-2.vue

@@ -318,7 +318,7 @@
 							</div>
 							<div class="row">
 								<div class="col red">
-									盘点结果:{{ item.checkResult }}
+									盘点结果:{{ item.inventoryResults === 1 ? '正常' : '异常' }}
 								</div>
 								<div
 									class="col red"
@@ -331,7 +331,7 @@
 									库存修正量:{{ item.correctionQuantity }}
 								</div>
 								<div class="col">
-									盘点人:{{ item.OperUserName }}
+									盘点人:{{ item.operusername }}
 								</div>
 								<div class="col">
 									盘点时间:{{ item.checkTime }}

+ 4 - 0
src/view/store-out-manage/daily-report/daily-report.vue

@@ -263,6 +263,7 @@ export default {
       ],
       btnIndex: '',
       params: {
+        pageIndex:1,
         pageNum: 1,
         pageSize: 10,
         type: '3',
@@ -307,6 +308,9 @@ export default {
         })
     },
     userClick(item) {
+      this.params.pageIndex = 1
+      this.params.pageNum = 1
+      console.log(this.params)
       if (this.btnIndex === item.userId + '_' + item.technologyType) {
         this.params.userId = ''
         this.params.jobNo = ''

+ 196 - 2
src/view/store-out-manage/return-warehouse-total/return-warehouse-total.vue

@@ -86,6 +86,36 @@
       <div class="main">
         <my-table ref="table" :data="data" :columns="columns" :table-page="params" @on-change="changePage"></my-table>
       </div>
+      <Modal
+        v-model="shenpiModal"
+        title="审批"
+        class="shenpi"
+        width="900"
+        >
+        <h3>原数据</h3>
+        <ul>
+          <li>标签值:{{formData.rfid}}</li>
+          <li>提交人员:{{formData.realName}}</li>
+          <li>退仓时间:{{formData.time}}</li>
+          <li>面料名称:{{formData.materialName}}</li>
+          <li>退仓米数:{{formData.meters}}</li>
+          <li>退仓面积:{{formData.area }}</li>
+        </ul>
+        <h3>新数据</h3>
+        <ul>
+          <li>标签值:{{shenpiData.rfid}}</li>
+          <li>提交人员:{{formData.realName}}</li>
+          <li>退仓时间:{{shenpiData.operationTime || formData.time}}</li>
+          <li>面料名称:{{shenpiData.materialName}}</li>
+          <li>退仓米数:{{!shenpiData.materialMeters || shenpiData.materialMeters === -1 ?  formData.meters :  shenpiData.materialMeters}}</li>
+          <li>退仓面积:{{!shenpiData.materialMeters || shenpiData.materialMeters === -1 ?  formData.area : shenpiData.materialMeters * shenpiData.width / 100 }}</li>
+        </ul>
+        <div slot="footer">
+            <Button type="error" size="large"   @click="handleFlow(0)">拒绝</Button>
+            <Button type="primary" size="large"   @click="handleFlow(1)">同意</Button>
+        </div>
+      </Modal>
+      <my-modal-form v-model="show" title="退料修改" :config="formConfig" :rule-validate="ruleValidate" :data="formData" type="edit" @confirm="cfm"></my-modal-form>
     </div>
   </template>
   
@@ -93,12 +123,60 @@
   import MyTable from '_c/my-table/my-table'
   import axios from 'axios'
   import dateSelect from '@/components/dateSelect/dateSelect'
-  
+  import MyModalForm from '_c/my-modal-form/my-modal-form'
+  import {dateFormat} from '@/libs/util'
   export default {
     name: 'daily_report',
-    components: { MyTable, dateSelect },
+    components: { MyTable, dateSelect,MyModalForm },
     data() {
       return {
+        shenpiModal:false,
+        formData:{},
+        show:false,
+        ruleValidate: {
+          name: [
+            { required: true, message: '仓库名称不能为空', trigger: 'blur' }
+          ]
+        },
+        formConfig: [
+        {
+            type: 'date',
+            label: '退料时间',
+            key: 'time',
+            placeholder: '请选择退料时间',
+            comType:'datetime',
+          },
+          {
+            type: 'input',
+            label: '退料人员',
+            key: 'realName',
+            placeholder: '请选择退料人员',
+            disabled:true,
+          },
+          {
+            type: 'materialBtn',
+            label: '物料名称',
+            key: 'name',
+            placeholder: '请输入物料名称',
+            multiple: true,
+          },
+          {
+            type: 'input',
+            label: '已选物料',
+            key: 'name',
+            placeholder: '请选择物料',
+            disabled:true,
+          },
+          {
+            type: 'input',
+            label: '米数',
+            key: 'meters',
+            placeholder: '请输入米数',
+            comType: 'number',
+          },
+          
+          
+        ],
         technologyType: '',
         typeList: {},
         data: [],
@@ -145,8 +223,79 @@
             minWidth: 100,
             align: 'center'
           },
+          {
+            title: '操作',
+            key: 'action',
+            
+            align: 'center',
+            width: '200px',
+            render: (h, params) => {
+              return h('div', [
+                h(
+                  'Icon',
+                  {
+                    props: {
+                      custom: 'iconfont icon-edit',
+                      size: '20',
+                      color: '#087BE1',
+                    },
+                    style: {
+                      marginRight: '20px',
+                      display:(params.row.status === 0 || params.row.flowStatus === 0) ? 'none' : ''
+                    },
+                    on: {
+                      click: () => {
+                        this.formDataId = params.row.id
+                        params.row.name = params.row.materialName
+                        for (const key in params.row) {
+                          
+                          this.formData[key] = params.row[key]
+                        }
+                        this.title = '修改'
+                        this.formType = 'edit'
+                        this.show = true
+                      }
+                    }
+                  },
+                  '修改'
+                ),
+                h(
+                  'Icon', 
+                  {
+                    props: {
+                      type: 'ios-paper',
+                      size: '20',
+                      color: '#087BE1',
+                    },
+                    style: {
+                      marginRight: '20px',
+                      display:(params.row.status === 0 || params.row.flowStatus != 0) ? 'none' : ''
+                    },
+                    on: {
+                      click: () => {
+                        for (const key in params.row) {
+                          
+                          this.formData[key] = params.row[key]
+                        }
+                        axios.post('/cloudApi/stockBack/getFlowData',{id:params.row.id}).then(res => {
+                          
+                          this.shenpiData = res.data.data
+                          this.shenpiModal = true
+                          
+                        })
+                        
+                      }
+                    }
+                  },
+                  '审批'
+                ),
+              ])
+            }
+          }
         ],
         btnIndex: '',
+        shenpiData:{},
+        formDataId:null,
         params: {
           pageNum: 1,
           pageSize: 10,
@@ -177,6 +326,40 @@
       this.getAllList()
     },
     methods: {
+      handleFlow(_type){
+        axios.post('/cloudApi/stockBack/handleFlow',{id:this.formData.id,flowResult:_type}).then(res => {
+          this.show = false
+          this.$Message.info('审核成功')
+          this.shenpiModal = false
+          this.getList()
+        })
+      },
+      cfm (type, formData) {
+        console.log(formData)
+        if (type === 'add') {
+          
+          axios.post('/cloudApi/stockBack/edit',{...formData}).then(res => {
+            this.show = false
+            this.$Message.info('新增成功')
+            this.getList()
+          })
+        } else if (type === 'edit') {
+          
+          formData.operationTime = formData.time.length ? formData.time : null
+          formData.materialMeters = formData.meters
+          formData.materialId = formData.code
+          console.log(formData.operationTime)
+          
+          axios.post('/cloudApi/stockBack/edit',{...formData,id:this.formDataId}).then(res => {
+            this.show = false
+            this.$Message.info('编辑成功')
+            this.getList()
+          }).catch(err=>{
+            console.log(err.data)
+            this.$Message.info(err.msg)
+          })
+        }
+      },
       selectTime() {
         this.getAllList()
       },
@@ -237,6 +420,17 @@
   </script>
   
   <style lang="less" scoped>
+  .shenpi{
+    ul{
+      li{
+        list-style: none;
+        width:48%;
+        display: inline-block;
+        font-size: 14px;
+        line-height: 32px;
+      }
+    }
+  }
   .container {
     height: 100%;
     display: flex;

+ 236 - 0
src/view/system-manage/vision-manage/vision-page.vue

@@ -0,0 +1,236 @@
+<!-- 仓库维护 -->
+<template>
+    <div class="container">
+      <my-table :data="data" :columns="columns" :table-filter="tableFilter" :table-page="params" @event-handle="eventHandle" @on-change="changePage"></my-table>
+      <my-modal-form v-model="show" :title="title" :config="formConfig" :rule-validate="ruleValidate" :data="formData" :type="formType" @confirm="cfm"></my-modal-form>
+    </div>
+  </template>
+  
+  <script>
+  import { GetStockHousePageList, StockHouseAdd, StockHouseUpdate, StockHouseDelete } from '@/api/baseData'
+  import MyTable from '_c/my-table/my-table'
+  import MyModalForm from '_c/my-modal-form/my-modal-form'
+  import axios from 'axios'
+  export default {
+    name: 'warehouse_maintenance',
+    components: {
+      MyTable,
+      MyModalForm
+    },
+    data () {
+      return {
+        title: '',
+        show: false,
+        data: [],
+        deleteId: '',
+        formType: '',
+        formData: {
+            type:null,
+            versionName:null,
+            apkName:null,
+            apkUrl:null,
+        },
+        ruleValidate: {
+          name: [
+            { required: true, message: '仓库名称不能为空', trigger: 'blur' }
+          ]
+        },
+        formConfig: [
+          {
+            type: 'input',
+            label: '版本名称',
+            key: 'versionName',
+            placeholder: '请输入版本名称'
+          },
+          {
+            type: 'input',
+            label: 'apk名称',
+            key: 'apkName',
+            placeholder: '请输入apk名称'
+          },
+          {
+            type: 'input',
+            label: '类型名称',
+            key: 'type',
+            placeholder: '请输入唯一标识'
+          },
+          {
+            type: 'upload-app',
+            comType: 'textarea',
+            label: 'apk文件',
+            key: 'apkUrl',
+            placeholder: '请输入仓库说明'
+          }
+        ],
+        columns: [
+          {
+            title: '序号',
+            type: 'index',
+            width: 60,
+            align: 'center'
+          },
+          {
+            title: '版本名称',
+            key: 'versionName',
+            minWidth: 150
+          },
+          
+          {
+            title: 'app名称',
+            key: 'apkName',
+          },
+          {
+            title: '类型名称',
+            key: 'type',
+          },
+          {
+            title: '操作',
+            key: 'action',
+            fixed: 'right',
+            align: 'center',
+            width: '200px',
+            render: (h, params) => {
+              return h('div', [
+                h(
+                  'Icon',
+                  {
+                    props: {
+                      custom: 'iconfont icon-edit',
+                      size: '20',
+                      color: '#087BE1'
+                    },
+                    style: {
+                      marginRight: '20px'
+                    },
+                    on: {
+                      click: () => {
+                        for (const key in params.row) {
+                          this.formData[key] = params.row[key]
+                        }
+                        this.title = '修改'
+                        this.formType = 'edit'
+                        this.show = true
+                      }
+                    }
+                  },
+                  '修改'
+                ),
+                h(
+                  'Icon',
+                  {
+                    props: {
+                      custom: 'iconfont icon-delete',
+                      size: '20',
+                      color: 'red'
+                    },
+                    on: {
+                      click: () => {
+                        this.$MyModal.show({ text: '是否删除?' }).$on('confirm', () => {
+                          StockHouseDelete({
+                            id: params.row.id
+                          }).then(res => {
+                            if (res.code === 0) {
+                              this.$Message.info(res.msg)
+                              this.getList()
+                            }
+                          })
+                        })
+                      }
+                    }
+                  },
+                  '删除'
+                )
+              ])
+            }
+          }
+        ],
+        tableFilter: [
+          {
+            name: 'Input',
+            value: 'key',
+            placeholder: '请输入关键字'
+          },
+          {
+            name: 'Button',
+            type: 'primary',
+            text: '查询',
+            e: 'search'
+          },
+          {
+            name: 'Button',
+            type: 'primary',
+            text: '添加',
+            align: 'right',
+            e: 'add'
+          }
+        ],
+        params: {
+          pageIndex: 1,
+          pageSize: 20,
+          total: 0
+        }
+      }
+    },
+    methods: {
+      cfm (type, formData) {
+        if (type === 'add') {
+          console.log(formData)
+          axios.post('/cloudApi/apkVersion/add',{...formData}).then(res => {
+            this.show = false
+            this.$Message.info('新增成功')
+            this.getList()
+          })
+          // StockHouseAdd(formData).then(res => {
+          //   if (res.code === 0) {
+          //     this.show = false
+          //     this.$Message.info(res.msg)
+          //     this.getList()
+          //   }
+          // })
+        } else if (type === 'edit') {
+          axios.post('/cloudApi/apkVersion/edit',{...formData}).then(res => {
+            this.show = false
+            this.$Message.info('编辑成功')
+            this.getList()
+          })
+        }
+      },
+      // 检索条件事件处理
+      eventHandle (option) {
+        switch (option._evnet) {
+          case 'search':
+            this.params.pageIndex = 1
+            this.params.warehouseName = option.key
+            this.getList()
+            break
+          case 'add':
+            this.title = '添加'
+            this.formType = 'add'
+            this.show = true
+            break
+        }
+      },
+      changePage (pageIndex) {
+        this.params.pageIndex = pageIndex
+        this.getList()
+      },
+      getList () {
+        const v = this
+        axios.post('/cloudApi/apkVersion/page',v.params).then(res => {
+          this.data = res.data.data.records
+        })
+        
+      }
+    },
+    mounted () {
+      this.getList()
+    }
+  }
+  </script>
+  
+  <style lang="less" scoped>
+  .container {
+    height: 100%;
+  }
+  </style>
+