guarantee-lsq hai 2 meses
pai
achega
c849a9f817

+ 29 - 0
src/views/store/outstoreform/OutStoreFormYY.vue

@@ -113,6 +113,7 @@
         :alert="options.alert"
         :rowSelection="options.rowSelection"
         showPagination="auto"
+        :scroll="{x: 1500, y: BaseTool.Constant.scrollY}"
       >
         <span slot="action" slot-scope="record">
           <template>
@@ -208,6 +209,8 @@ export default {
       columns: [
         {
           title: '序号',
+          width: 80,
+          checked: true,
           dataIndex: 'index',
           customRender: (text, record, index) => {
             return `${(this.$refs.table.localPagination.current - 1) * this.$refs.table.localPagination.pageSize +
@@ -217,14 +220,23 @@ export default {
         },
         {
           title: '出库单号',
+          width: 210,
+          checked: true,
+          ellipsis: true,
           dataIndex: 'outNo'
         },
         {
           title: '用友单号',
+          width: 160,
+          checked: true,
+          ellipsis: true,
           dataIndex: 'yyId'
         },
         {
           title: '出库类型',
+          width: 180,
+          checked: true,
+          ellipsis: true,
           dataIndex: 'type',
           customRender: (text, record, index) => {
             return this.BaseTool.Object.getField(this.typeMap, text)
@@ -233,6 +245,9 @@ export default {
         {
           title: '申请部门',
           dataIndex: 'applyDept',
+          width: 120,
+          checked: true,
+          ellipsis: true,
           customRender: (text, record, index) => {
             return this.BaseTool.Object.getField(this.deptYYMap, text)
           }
@@ -240,24 +255,38 @@ export default {
         {
           title: '状态',
           dataIndex: 'status',
+          width: 120,
+          checked: true,
+          ellipsis: true,
           scopedSlots: { customRender: 'status' }
         },
         {
           title: '领用日期',
+          width: 120,
+          checked: true,
+          ellipsis: true,
           dataIndex: 'userTime'
         },
         {
           title: '仓库',
+          width: 120,
+          checked: true,
+          ellipsis: true,
           dataIndex: 'storeName'
         },
         {
           title: '维修工单',
+          width: 180,
+          checked: true,
+          ellipsis: true,
           dataIndex: 'repairNo'
         },
         {
           title: '操作',
           key: 'action',
           width: '200px',
+          fixed: 'right',
+          checked: true,
           align: 'center',
           scopedSlots: { customRender: 'action' }
         }

+ 26 - 1
src/views/store/outstoreform/modules/BaseFormYY.vue

@@ -145,7 +145,7 @@
         删除
       </a-button>
     </div>
-    <a-table bordered :data-source="data" :columns="columns" tableLayout="auto" rowKey="autoId" :row-selection="rowSelection">
+    <a-table bordered :data-source="data" :columns="columns" tableLayout="auto" rowKey="autoId" :row-selection="rowSelection" :scroll="{x: 1500, y: BaseTool.Constant.scrollY}">
       <template slot="num" slot-scope="text, record">
         <div class="editable-cell-input-wrapper">
           <a-input :value="text" :id="record.autoId + ',num'" @change="$event => onQuantityChange($event, record.autoId, 'num')" />
@@ -203,9 +203,11 @@ import { fetchStoreTree } from '@/api/store/store'
 import { getSbPositions } from '@/api/repair/application-form'
 import { fetchProjectTree } from '@/api/project/project'
 import { stringify } from 'qs'
+import { STable } from '@/components'
 export default {
   name: 'BaseOutStoreFormYY',
   components: {
+    STable,
     DetailBaseForm,
     SparePickFormSelectModal,
     SpareBackFormSelectModal,
@@ -240,63 +242,86 @@ export default {
         {
           title: '序号',
           dataIndex: 'index',
+          width: 120,
+          checked: true,
           customRender: (text, record, index) => {
             return index + 1
           },
         },
         {
           title: '名称',
+          width: 120,
+          checked: true,
           dataIndex: 'spareName',
         },
         {
           title: '编号',
+          width: 120,
+          checked: true,
           dataIndex: 'no',
         },
         {
           title: '规格',
+          width: 120,
+          checked: true,
           dataIndex: 'ggxh',
         },
         {
           title: '批次',
+          width: 120,
+          checked: true,
           dataIndex: 'cbatch',
         },
         {
           title: '数量',
           dataIndex: 'num',
+          checked: true,
           width: 150,
           scopedSlots: { customRender: 'num' },
         },
         {
           title: '库存',
+          checked: true,
           dataIndex: 'storeNum',
           width: 150,
         },
         {
           title: '单位',
+          width: 120,
+          checked: true,
           dataIndex: 'unit',
         },
         {
           title: '仓库',
+          width: 120,
+          checked: true,
           dataIndex: 'storeName',
         },
         {
           title: '货架号',
+          checked: true,
+          width: 150,
           dataIndex: 'storePosition',
         },
         {
           title: '降本项目',
+          width: 120,
+          checked: true,
           dataIndex: 'cdefine33',
           scopedSlots: { customRender: 'cdefine33' },
         },
         {
           title: '备注',
           dataIndex: 'remark',
+          checked: true,
           width: 150,
           scopedSlots: { customRender: 'remark' },
         },
         {
           title: '操作',
           key: 'action',
+          checked: true,
+          width: 150,
           align: 'center',
           scopedSlots: { customRender: 'action' },
         },