Forráskód Böngészése

每月研发工时记录表优化

ljb 10 hónapja%!(EXTRA string=óta)
szülő
commit
6bf9be516e

+ 41 - 18
src/option/yfCostManage/basicDataSetting/workHoursRecords.js

@@ -7,6 +7,7 @@ export default {
   border: true,
   index: true,
   selection: true,
+  addBtn: false,
   delBtnText: '清除工时数据',
   searchLabelWidth: 140,
   labelWidth: 100,
@@ -16,6 +17,27 @@ export default {
   dialogType: "drawer",
   column: [
     {
+      label: '研发项目编号',
+      prop: 'xmbh',
+      span: 24,
+      width: 100,
+      align: 'center',
+      type: 'input',
+      showOverflowTooltip: true,
+      disabled: true,
+    },
+    {
+      label: '研发项目名称',
+      prop: 'xmmc',
+      type: 'input',
+      span: 24,
+      width: 110,
+      align: 'center',
+      search: true,
+      showOverflowTooltip: true,
+      disabled: true,
+    },
+    {
       label: '姓名',
       prop: 'name',
       span: 24,
@@ -23,22 +45,23 @@ export default {
       width: 90,
       cell: true,
       align: 'center',
-      type: 'select',
+      // type: 'select',
       showOverflowTooltip: true,
-      dicUrl: '',
-      dicFlag: true,
-      dicFormatter:(res)=>{     
-        return res.data.records
-      },
-      dicQuery: {
-        current: 1,
-        size: 99999,
-        yearAndMonth: ''
-      },
-      props: {
-        label: 'name',
-        value: 'id',
-      },
+      // dicUrl: '',
+      // dicFlag: true,
+      // dicFormatter:(res)=>{     
+      //   return res.data.records
+      // },
+      // dicQuery: {
+      //   current: 1,
+      //   size: 99999,
+      //   yearAndMonth: ''
+      // },
+      // props: {
+      //   label: 'name',
+      //   value: 'id',
+      // },
+      disabled: true,
       rules: [
         {
           required: true,
@@ -55,7 +78,7 @@ export default {
       width: 90,
       align: 'center',
       search: true,
-      display: false,
+      disabled: true,
       showOverflowTooltip: true,
     },
     {
@@ -64,7 +87,7 @@ export default {
       type: 'input',
       span: 24,
       search: true,
-      display: false,
+      disabled: true,
       width: 150,
       align: 'center',
       showOverflowTooltip: true,
@@ -77,7 +100,7 @@ export default {
       width: 100,
       align: 'center',
       search: true,
-      display: false,
+      disabled: true,
       dicUrl: '/api/kd-system/dict-biz/dictionary?code=renyuanleixing',
       props: {
         label: 'dictValue',

+ 33 - 24
src/views/yf-cost-manage/basic-data-setting/working-hours-records.vue

@@ -20,6 +20,15 @@
           清除工时数据
         </el-button>
         <el-button
+          type="success"
+          size="small"
+          plain
+          icon="el-icon-upload2"
+          @click="handleImport"
+        >
+          导入
+        </el-button>
+        <el-button
           type="warning"
           size="small"
           plain
@@ -36,14 +45,14 @@
       </template>
 
 
-      <template slot="monthlyHoursSearch">
+      <!-- <template slot="monthlyHoursSearch">
         <div style="display: flex; align-items: center;">
           <span>使用工时/小时:</span>
           <avue-input-number v-model="params.monthlyHoursStart" :min="0" style="width: 100px !important;"></avue-input-number>
           <span style="width: 20px; text-align: center;">至</span>
           <avue-input-number v-model="params.monthlyHoursEnd" :min="0" style="width: 100px !important;"></avue-input-number>
         </div>
-      </template>
+      </template> -->
       
     </avue-crud>
 
@@ -127,28 +136,28 @@ export default window.$crudCommon({
         newColumns.push(col);
       });
 
-      newColumns.push({
-        prop: "monthlyHours",
-        label: "研发出勤/小时",
-        type: 'number',
-        precision: 1,
-        min: 0,
-        width: 70,
-        align: 'center',
-        showOverflowTooltip: true,
-        display: false,
-        search: true,
-      }, {
-        prop: "monthlyDays",
-        label: "研发出勤/天",
-        type: 'number',
-        precision: 1,
-        min: 0,
-        width: 70,
-        align: 'center',
-        showOverflowTooltip: true,
-        display: false,
-      });
+      // newColumns.push({
+      //   prop: "monthlyHours",
+      //   label: "研发出勤/小时",
+      //   type: 'number',
+      //   precision: 1,
+      //   min: 0,
+      //   width: 70,
+      //   align: 'center',
+      //   showOverflowTooltip: true,
+      //   display: false,
+      //   search: true,
+      // }, {
+      //   prop: "monthlyDays",
+      //   label: "研发出勤/天",
+      //   type: 'number',
+      //   precision: 1,
+      //   min: 0,
+      //   width: 70,
+      //   align: 'center',
+      //   showOverflowTooltip: true,
+      //   display: false,
+      // });
 
       this.option.column = newColumns;
     },