zss
2024-02-28 c18b61164fa4d9dcbeaa471ba3043334c576b1bc
 主生产计划
已修改4个文件
345 ■■■■■ 文件已修改
src/api/warehouse/stock.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/part/part-form.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/masterproductionschedule/index.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/FinishedWarehousing/index.vue 317 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/warehouse/stock.js
@@ -146,3 +146,11 @@
    params: query
  })
}
export function productPage(query) {
  return request({
    url: '/mes/stock/productPage',
    method: 'get',
    params: query
  })
}
src/views/basic/part/part-form.vue
@@ -472,9 +472,6 @@
        ],
        materialType: [
          { required: true, message: '零件类型不能为空', trigger: 'change' }
        ],
        materialAttribute: [
          { required: true, message: '零件属性不能为空', trigger: 'change' }
        ]
      },
      ruleOptions: [],
src/views/plan/masterproductionschedule/index.vue
@@ -213,7 +213,8 @@
      statesList: [
        { value: '01pending', label: '待处理' },
        { value: '02processed', label: '已处理' },
        { value: '03canceled', label: '已作废' }
        { value: '03canceled', label: '已作废' },
        { value: '04completed', label: '已完成' }
      ],
      isAuditList: [
        {
@@ -239,19 +240,25 @@
          label: '标记待处理',
          command: 'PENDING',
          disabled: false,
          permitArr: ['02processed']
          permitArr: ['01pending']
        },
        {
          label: '标记已处理',
          command: 'PROCESSED',
          disabled: false,
          permitArr: ['01pending']
          permitArr: ['02processed']
        },
        {
          label: '标记已作废',
          command: 'CANCELED',
          disabled: false,
          permitArr: ['01pending']
          permitArr: ['03canceled']
        },
        {
          label: '标记已完成',
          command: 'COMPLETED',
          disabled: false,
          permitArr: ['04completed']
        }
      ],
      documentTagArr: [
@@ -884,6 +891,8 @@
        eventName = '待处理'
      } else if (event == 'PROCESSED') {
        eventName = '已处理'
      } else if (event == 'COMPLETED') {
        eventName = '已完成'
      } else {
        eventName = '已作废'
      }
src/views/warehouse/FinishedWarehousing/index.vue
@@ -1,138 +1,209 @@
<template>
    <div class="mod-config">
        <basic-container>
        <ttable
  <div class="mod-config">
    <basic-container>
      <ttable
        :table="table"
        :isShowHide="true"
        :prelang="prelang"
        :options="options"
        :dataListLoading="false"
        :dataListLoading="false"
        ref="processconfiguration"
        >
      >
        <template #toolbar></template>
        </ttable>
        </basic-container>
    </div>
      </ttable>
    </basic-container>
  </div>
</template>
<script>
import ttable from '@/views/common/ztt-table.vue'
import { productPage, } from '@/api/warehouse/stock'
export default {
    data(){
        return {
            prelang: 'operation',
            options: {
                height: 300, // 默认高度-为了表头固定
                stripe: true, // 是否为斑马纹 table
                highlightCurrentRow: false, // 是否要高亮当前行
                border: true, // 是否有纵向边框
                lazy: false, // 是否需要懒加载
                fit: true, // 列的宽度是否自撑开
                multiSelect: true, //
                seqNo: true,
                isShowHide: true, // 是否显示显影按钮
                isRefresh: true, // 是否显示刷新按钮
                isSearch: true, // 高级查询按钮
                defaultOrderBy: { column: 'createTime', direction: 'desc' }
            },
            table: {
                total: 0,
                currentPage: 1,
                pageSize: 20,
                data: [],
                // 标题
                column: [
                  {
                    minWidth: '140',
                    prop: 'material',
                    label: '产品名称',
                    isTrue: true,
                    isSearch: true,
                    searchInfoType: 'text',
                  },
                  {
                    minWidth: '140',
                    prop: 'type',
                    label: '产品型号',
                    isTrue: true,
                    isSearch: true,
                    searchInfoType: 'text',
                  },{
                    minWidth: '140',
                    prop: 'oo',
                    label: '质量追溯号',
                    isTrue: true,
                    isSearch: true,
                    searchInfoType: 'text',
                  },{
                    minWidth: '140',
                    prop: 'materhhooial',
                    label: '合同编码',
                    isTrue: true,
                    isSearch: true,
                    searchInfoType: 'text',
                  },
                  {
                    minWidth: '140',
                    prop: 'mateuurial',
                    label: '单位',
                    isTrue: true,
                    isSearch: true,
                    searchInfoType: 'text',
                  },
                  {
                    minWidth: '140',
                    prop: 'materoiial',
                    label: '数量',
                    isTrue: true,
                    isSearch: true,
                    searchInfoType: 'text',
                  },
                  {
                    minWidth: '140',
                    prop: 'matperoial',
                    label: '检查状态',
                    isTrue: true,
                    isSearch: true,
                    searchInfoType: 'text',
                  },
                  {
                    minWidth: '140',
                    prop: 'materpial',
                    label: '检查人员',
                    isTrue: true,
                    isSearch: true,
                    searchInfoType: 'text',
                  },
                  {
                    minWidth: '130',
                    prop: 'dealTime',
                    label: '装配人员',
                    isTrue: true,
                    isSearch: true,
                    searchInfoType: 'text',
                },
                {
                    minWidth: '130',
                    prop: 'dealTissme',
                    label: '编制人',
                    isTrue: true,
                    isSearch: true,
                    searchInfoType: 'text',
                },
                ],
                toolbar: [],
                // operator: [],
                // operatorConfig: {}
            },
       }
    },
    medthods: {},
    computed: {
    // ...mapGetters(['permissions'])
    },
    components: {
  data() {
    return {
      ajaxFun: productPage,
      prelang: 'operation',
      options: {
        height: 300, // 默认高度-为了表头固定
        stripe: true, // 是否为斑马纹 table
        highlightCurrentRow: false, // 是否要高亮当前行
        border: true, // 是否有纵向边框
        lazy: false, // 是否需要懒加载
        fit: true, // 列的宽度是否自撑开
        multiSelect: true, //
        seqNo: true,
        isShowHide: true, // 是否显示显影按钮
        isRefresh: true, // 是否显示刷新按钮
        isSearch: true, // 高级查询按钮
        defaultOrderBy: { column: 'id', direction: 'desc' },
      },
      table: {
        total: 0,
        currentPage: 1,
        pageSize: 20,
        data: [],
        // 标题
        column: [
          {
            width: '100',
            minWidth: '100',
            prop: 'factoryName',
            label: '工厂',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text',
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'partNo',
            label: '零件号',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text',
            propVal: this.$route.query.partNo,
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'partName',
            label: '零件名称',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text',
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'warehouseName',
            label: '仓库',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text',
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'locationNo',
            label: '库位号',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text',
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'locationName',
            label: '库位名称',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text',
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'systemNo',
            label: '系统编号',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text',
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'customerOrderNo',
            label: '销售订单号',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'mpsNo',
            label: '主生产计划号',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'moNo',
            label: '车间订单号',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'stockQuantity',
            label: '库存数量',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          },
          {
            width: '100',
            minWidth: '120',
            prop: 'availableStockQuantity',
            label: '可用库存数量',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          },
          {
            width: '100',
            minWidth: '100',
            prop: 'unit',
            label: '单位',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          },
          {
            minWidth: '100',
            prop: 'ifsBatchNo',
            label: '批次号',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          },
          {
            minWidth: '100',
            prop: 'sourceName',
            label: '来源',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          }
        ],
        toolbar: [],
        // operator: [],
        // operatorConfig: {}
      },
    }
  },
  medthods: {},
  components: {
    ttable
    },
  },
}
</script>