Browse Source

Merge branch 'master' of http://139.196.39.194:9021/chenc/cd-work-flow-web

yuansh 2 years ago
parent
commit
3d239e47cc

+ 10 - 1
src/api/oa/cd-personnel-files.js

@@ -9,8 +9,17 @@ const annualLeave = (params) => getAction('/sys/user/queryByUsername', params)
 
 // 查询分页数据-----固定资产-转移
 const getFixedZy = (params) => getAction('/oa/assets/getByState', params)
+
+
+// 查询分页数据----车辆信息
+const getCar = (params) => getAction('/oa/car/getSelectionList', params)
+
+// 查询分页数据----物料申请
+const getGoods = (params) => getAction('/oa/activiti/getSelectionList', params)
 export {
     personList,
     getFixedZy,
-    annualLeave
+    annualLeave,
+    getCar,
+    getGoods
 }

+ 30 - 109
src/views/activiti/form/carSqModal.vue

@@ -13,11 +13,11 @@
         <!-- 子表 -->
           <a-form-model ref="formRef">
             <a-table
-              v-if="carSqZyData"
+              v-if="carSqData"
               bordered
               rowKey="id"
               :columns="carSqColumns"
-              :data-source="carSqZyData"
+              :data-source="carSqData"
               :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
               :pagination="false"
                :scroll="{x:2100,y: 300}"
@@ -56,7 +56,7 @@
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 import JEllipsis from '@/components/jeecg/JEllipsis'
 import moment from 'moment'
-import {getFixedZy} from '@api/oa/cd-personnel-files'
+import {getCar} from '@api/oa/cd-personnel-files'
 
 export default {
   name: 'CarSqModal', // 报关要素
@@ -72,125 +72,74 @@ export default {
       // 子表表头
       carSqColumns: [ 
         {
-          title: '入库单号',
-          dataIndex: 'realname',
+          title: '所属部门',
+          dataIndex: 'sysOrgCode',
           width: 140,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
-          title: '资产类别',
-          dataIndex: 'assetsCategory',
+          title: '车牌号',
+          dataIndex: 'number',
           width: 140,
           ellipsis: true,
           className: 'replacecolor'
         },
          {
-          title: '资产编号',
-          dataIndex: 'assetNumber',
+          title: '车俩类型',
+          dataIndex: 'carType',
           width: 130,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
-          title: '资产名称',
-          dataIndex: 'assetName',
+          title: '能源类型',
+          dataIndex: 'energyType',
           width: 130,
           ellipsis: true,
           className: 'replacecolor'
         },
 
         {
-          title: '规则型号',
-          dataIndex: 'specificationsModels',
+          title: '座位数量',
+          dataIndex: 'seat',
           width: 130,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
-          title: '品牌',
-          dataIndex: 'brand',
+          title: '购买价格',
+          dataIndex: 'price',
           width: 120,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
-          title: '单位',
-          dataIndex: 'unit',
+          title: '购置日期',
+          dataIndex: 'purchaseDate',
           width: 120,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
-          title: '价值',
-          dataIndex: 'unitPrice',
+          title: '发动机号码',
+          dataIndex: 'engineNum',
           ellipsis: true,
           width: 180,
           className: 'replacecolor'
         },
         {
-          title: '购置日期',
-          dataIndex: 'acquisitionDate',
+          title: '车架号',
+          dataIndex: 'vin',
           width: 120,
           ellipsis: true,
           className: 'replacecolor'
-        },
-        {
-          title: '厂家',
-          dataIndex: 'manufacturer',
-          width: 120,
-          ellipsis: true,
-          className: 'replacecolor'
-        },
-         {
-          title: '使用部门',
-          dataIndex: 'useDepartment',
-          width: 120,
-          ellipsis: true,
-          className: 'replacecolor'
-        },
-        {
-          title: '入库时间',
-          dataIndex: 'inputDate',
-          width: 90,
-          className: 'replacecolor',
-        },
-        {
-          title: '采购人',
-          dataIndex: 'purchasingStaff',
-          width: 90,
-          className: 'replacecolor',
-        },
-        {
-          title: '采购人',
-          dataIndex: 'acceptPersonnel: ',
-          width: 90,
-          className: 'replacecolor',
-        },
-        {
-          title: '其他说明',
-          dataIndex: 'otherDescription',
-          width: 90,
-          className: 'replacecolor',
-        },
-        {
-          title: '采购单号',
-          dataIndex: 'buyid',
-          width: 90,
-          className: 'replacecolor',
-        },
-        {
-          title: '资产状态',
-          dataIndex: 'assetState',
-          width: 90,
-          className: 'replacecolor',
-        },
+        }
       ],
-      carSqZyData: [ ], // 子表信息
+      carSqData: [ ], // 子表信息
       carSqModVis: false,
       selectedRowKeys:[],
       selectedRows:[],
-      sat:''
     }
   },
   // 接收父组件 方法
@@ -199,10 +148,10 @@ export default {
   created() {  
   },
   methods: {
-    personLists(value){
-      getFixedZy({state:value}).then(res => {
+    personLists(){
+      getCar().then(res => {
                     if (res.success) {
-                      this.carSqZyData = res.result
+                      this.carSqData = res.result
                     }else{
                        this.$message.error(res.message);
                     }
@@ -213,8 +162,7 @@ export default {
       this.carSqModVis = false
       this.declareElements = {}
       this.declareElementsData = []
-      this.selectedRowKeys = [],
-      this.sat = ''
+      this.selectedRowKeys = []
     },
     handleCancel() {
       this.close()
@@ -224,45 +172,18 @@ export default {
       this.selectedRows = rows;
     },
     addSave(){
-        if(this.selectedRowKeys.length == 0){
+      if(this.selectedRowKeys.length == 0){
           this.$message.error('请勾选数据');
         }else if(this.selectedRowKeys.length >1){
           this.$message.error('一次只可勾选一行数据');
         }else{
-          if(this.sat == '转移'){
-            var data ={
-            assets_category : this.selectedRows[0].assetsCategory,
-            asset_encoding:this.selectedRows[0].assetNumber,
-            asset_name:this.selectedRows[0].assetName,
-            specifications_models:this.selectedRows[0].specificationsModels
-           }
-          }else if(this.sat == '归还'){
-            var data ={
-            assets_category : this.selectedRows[0].assetsCategory,
-            asset_encoding:this.selectedRows[0].assetNumber,
-            asset_name:this.selectedRows[0].assetName,
-            specifications_models:this.selectedRows[0].specificationsModels
-           }
-          }else if(this.sat == '调拨'){
-            var data ={
-            asset_encoding:this.selectedRows[0].assetNumber,
-            assets_category : this.selectedRows[0].assetsCategory,
-            asset_name:this.selectedRows[0].assetName,
-            specifications_models:this.selectedRows[0].specificationsModels
-           }
-          }else if(this.sat == '报废'){
             var data ={
-            asset_encoding:this.selectedRows[0].assetNumber,
-            assets_category : this.selectedRows[0].assetsCategory,
-            asset_name:this.selectedRows[0].assetName,
-            specifications_models:this.selectedRows[0].specificationsModels
+              car_arrange : this.selectedRows[0].number,
            }
-          }
-          
           this.$emit('close',data)
           this.close()
         }
-    }
+      }
   },
 
   computed: {}

+ 2 - 2
src/views/activiti/form/demoForm2.vue

@@ -285,11 +285,11 @@ export default {
         },
         carSq(){
              this.$refs.CarSqModal.carSqModVis = true
-            this.$refs.CarSqModal.personLists('报废')
+            this.$refs.CarSqModal.personLists()
         },
         materialSl(){
              this.$refs.MaterialSlModal.materialSlModVis = true
-            this.$refs.MaterialSlModal.personLists('报废')
+            this.$refs.MaterialSlModal.personLists()
         },
         closeP(value){
              var that = this

+ 35 - 80
src/views/activiti/form/materialSlModal.vue

@@ -56,7 +56,7 @@
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 import JEllipsis from '@/components/jeecg/JEllipsis'
 import moment from 'moment'
-import {getFixedZy} from '@api/oa/cd-personnel-files'
+import {getGoods} from '@api/oa/cd-personnel-files'
 
 export default {
   name: 'MaterialSlModal', // 报关要素
@@ -72,37 +72,37 @@ export default {
       // 子表表头
       materialSlColumns: [ 
         {
-          title: '入库单号',
-          dataIndex: 'realname',
+          title: '所属部门',
+          dataIndex: 'sysOrgCode',
           width: 140,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
-          title: '资产类别',
-          dataIndex: 'assetsCategory',
+          title: '物料编号',
+          dataIndex: 'materialNumber',
           width: 140,
           ellipsis: true,
           className: 'replacecolor'
         },
          {
-          title: '资产编号',
-          dataIndex: 'assetNumber',
+          title: '录入人账号',
+          dataIndex: 'inputAccount',
           width: 130,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
-          title: '资产名称',
-          dataIndex: 'assetName',
+          title: '部门',
+          dataIndex: 'department',
           width: 130,
           ellipsis: true,
           className: 'replacecolor'
         },
 
         {
-          title: '规则型号',
-          dataIndex: 'specificationsModels',
+          title: '品名',
+          dataIndex: 'tradeName',
           width: 130,
           ellipsis: true,
           className: 'replacecolor'
@@ -115,73 +115,49 @@ export default {
           className: 'replacecolor'
         },
         {
-          title: '单位',
-          dataIndex: 'unit',
+          title: '类别',
+          dataIndex: 'category',
           width: 120,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
-          title: '价值',
-          dataIndex: 'unitPrice',
+          title: '规格型号',
+          dataIndex: 'specificationsModels',
           ellipsis: true,
           width: 180,
           className: 'replacecolor'
         },
         {
-          title: '购置日期',
-          dataIndex: 'acquisitionDate',
+          title: '数量',
+          dataIndex: 'amount',
           width: 120,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
-          title: '厂家',
-          dataIndex: 'manufacturer',
+          title: '单位',
+          dataIndex: 'unit',
           width: 120,
           ellipsis: true,
           className: 'replacecolor'
         },
          {
-          title: '使用部门',
-          dataIndex: 'useDepartment',
+          title: '单价(元)',
+          dataIndex: 'unitPrice',
           width: 120,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
-          title: '入库时间',
-          dataIndex: 'inputDate',
-          width: 90,
-          className: 'replacecolor',
-        },
-        {
-          title: '采购人',
-          dataIndex: 'purchasingStaff',
-          width: 90,
-          className: 'replacecolor',
-        },
-        {
-          title: '采购人',
-          dataIndex: 'acceptPersonnel: ',
+          title: '金额',
+          dataIndex: 'money',
           width: 90,
           className: 'replacecolor',
         },
         {
-          title: '其他说明',
-          dataIndex: 'otherDescription',
-          width: 90,
-          className: 'replacecolor',
-        },
-        {
-          title: '采购单号',
-          dataIndex: 'buyid',
-          width: 90,
-          className: 'replacecolor',
-        },
-        {
-          title: '资产状态',
-          dataIndex: 'assetState',
+          title: '入库日期',
+          dataIndex: 'inputWarehouseDate',
           width: 90,
           className: 'replacecolor',
         },
@@ -190,7 +166,6 @@ export default {
       materialSlModVis: false,
       selectedRowKeys:[],
       selectedRows:[],
-      sat:''
     }
   },
   // 接收父组件 方法
@@ -200,8 +175,9 @@ export default {
   },
   methods: {
     personLists(value){
-      getFixedZy({state:value}).then(res => {
+      getGoods({tableName:'material_apply'}).then(res => {
                     if (res.success) {
+                      debugger
                       this.materialSlData = res.result
                     }else{
                        this.$message.error(res.message);
@@ -213,8 +189,7 @@ export default {
       this.materialSlModVis = false
       this.declareElements = {}
       this.declareElementsData = []
-      this.selectedRowKeys = [],
-      this.sat = ''
+      this.selectedRowKeys = []
     },
     handleCancel() {
       this.close()
@@ -229,35 +204,15 @@ export default {
         }else if(this.selectedRowKeys.length >1){
           this.$message.error('一次只可勾选一行数据');
         }else{
-          if(this.sat == '转移'){
             var data ={
-            assets_category : this.selectedRows[0].assetsCategory,
-            asset_encoding:this.selectedRows[0].assetNumber,
-            asset_name:this.selectedRows[0].assetName,
-            specifications_models:this.selectedRows[0].specificationsModels
-           }
-          }else if(this.sat == '归还'){
-            var data ={
-            assets_category : this.selectedRows[0].assetsCategory,
-            asset_encoding:this.selectedRows[0].assetNumber,
-            asset_name:this.selectedRows[0].assetName,
-            specifications_models:this.selectedRows[0].specificationsModels
-           }
-          }else if(this.sat == '调拨'){
-            var data ={
-            asset_encoding:this.selectedRows[0].assetNumber,
-            assets_category : this.selectedRows[0].assetsCategory,
-            asset_name:this.selectedRows[0].assetName,
-            specifications_models:this.selectedRows[0].specificationsModels
-           }
-          }else if(this.sat == '报废'){
-            var data ={
-            asset_encoding:this.selectedRows[0].assetNumber,
-            assets_category : this.selectedRows[0].assetsCategory,
-            asset_name:this.selectedRows[0].assetName,
-            specifications_models:this.selectedRows[0].specificationsModels
+              trade_name : this.selectedRows[0].tradeName,
+              brand:this.selectedRows[0].brand,
+              category:this.selectedRows[0].category,
+              specifications_models:this.selectedRows[0].specificationsModels,
+              unit:this.selectedRows[0].unit,
+              unit_price:this.selectedRows[0].unitPrice,
+              
            }
-          }
           
           this.$emit('close',data)
           this.close()

+ 2 - 4
src/views/system/modules/SysAnnouncementModal.vue

@@ -48,8 +48,7 @@
                 :getCalendarContainer="node => node.parentNode"
                 v-decorator="[ 'startTime', validatorRules.startTime]"
                 placeholder="请选择开始时间"
-                showTime
-                dateFormat="YYYY-MM-DD HH:mm:ss" ></j-date>
+               ></j-date>
             </a-form-item>
           </a-col>
           <a-col :span="24/2">
@@ -63,8 +62,7 @@
                 :getCalendarContainer="node => node.parentNode"
                 v-decorator="[ 'endTime', validatorRules.endTime]"
                 placeholder="请选择结束时间"
-                showTime
-                dateFormat="YYYY-MM-DD HH:mm:ss"></j-date>
+                ></j-date>
             </a-form-item>
           </a-col>
         </a-row>

+ 1 - 1
src/views/system/modules/UserModal.vue

@@ -434,7 +434,7 @@ export default {
                 email: {
                     rules: [
                         {
-                            validator: this.validateEmail
+                            // validator: this.validateEmail
                         }
                     ]
                 },