116 lines
		
	
	
		
			4.0 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			116 lines
		
	
	
		
			4.0 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
<!--
 | 
						|
 * @Author: zwq
 | 
						|
 * @Date: 2020-12-29 16:37:56
 | 
						|
 * @LastEditors: zwq
 | 
						|
 * @LastEditTime: 2022-01-17 15:21:50
 | 
						|
 * @Description:
 | 
						|
-->
 | 
						|
<template>
 | 
						|
  <el-dialog
 | 
						|
    :title="'btn.see' | i18nFilter"
 | 
						|
    :visible.sync="visible"
 | 
						|
  >
 | 
						|
    <el-row :gutter="10">
 | 
						|
      <el-form
 | 
						|
        ref="dataForm"
 | 
						|
        :model="dataForm"
 | 
						|
        size="medium"
 | 
						|
        label-width="110px"
 | 
						|
        label-position="left"
 | 
						|
      >
 | 
						|
        <el-col :span="8">
 | 
						|
          <el-row>
 | 
						|
            <el-col :span="24">
 | 
						|
              <el-form-item :label="$t('module.basicData.Warehouse.OrderName')" prop="name">
 | 
						|
                <el-input v-model="dataForm.name" :placeholder="$t('module.basicData.Warehouse.OrderName')" readonly :style="{width: '100%'}" />
 | 
						|
              </el-form-item>
 | 
						|
            </el-col>
 | 
						|
            <el-col :span="24">
 | 
						|
              <el-form-item :label="$t('module.basicData.Warehouse.IssueOrderTime')" prop="createTime">
 | 
						|
                <el-input v-model="dataForm.createTime" :placeholder="$t('module.basicData.Warehouse.IssueOrderTime')" readonly :style="{width: '100%'}" />
 | 
						|
              </el-form-item>
 | 
						|
            </el-col>
 | 
						|
            <el-col :span="24">
 | 
						|
              <el-form-item :label="$t('module.basicData.Warehouse.PlanProcessQuantity')" prop="planQuantity">
 | 
						|
                <el-input v-model="dataForm.planQuantity" :placeholder="$t('module.basicData.Warehouse.PlanProcessQuantity')" readonly :style="{width: '100%'}" />
 | 
						|
              </el-form-item>
 | 
						|
            </el-col>
 | 
						|
          </el-row>
 | 
						|
        </el-col>
 | 
						|
        <el-col :span="8">
 | 
						|
          <el-row>
 | 
						|
            <el-col :span="24">
 | 
						|
              <el-form-item :label="$t('module.basicData.Warehouse.OrderCode')" prop="taskCode">
 | 
						|
                <el-input v-model="dataForm.taskCode" :placeholder="$t('module.basicData.Warehouse.OrderCode')" readonly :style="{width: '100%'}" />
 | 
						|
              </el-form-item>
 | 
						|
            </el-col>
 | 
						|
            <el-col :span="24">
 | 
						|
              <el-form-item :label="$t('module.basicData.Warehouse.OrderStatus')" prop="taskType">
 | 
						|
                <el-input v-model="dataForm.taskType" :placeholder="$t('module.basicData.Warehouse.OrderStatus')" readonly :style="{width: '100%'}" />
 | 
						|
              </el-form-item>
 | 
						|
            </el-col>
 | 
						|
          </el-row>
 | 
						|
        </el-col>
 | 
						|
        <el-col :span="8">
 | 
						|
          <el-row>
 | 
						|
            <el-col :span="24">
 | 
						|
              <el-form-item :label="$t('module.basicData.Warehouse.TotalProcessName')" prop="craftName">
 | 
						|
                <el-input v-model="dataForm.craftName" :placeholder="$t('module.basicData.Warehouse.TotalProcessName')" readonly :style="{width: '100%'}" />
 | 
						|
              </el-form-item>
 | 
						|
            </el-col>
 | 
						|
            <el-col :span="24">
 | 
						|
              <el-form-item :label="$t('module.basicData.Warehouse.SubProcessName')" prop="subProccessName">
 | 
						|
                <el-input
 | 
						|
                  v-model="dataForm.subProccessName"
 | 
						|
                  :placeholder="$t('module.basicData.Warehouse.SubProcessName')"
 | 
						|
                  readonly
 | 
						|
                  :style="{width: '100%'}"
 | 
						|
                />
 | 
						|
              </el-form-item>
 | 
						|
            </el-col>
 | 
						|
          </el-row>
 | 
						|
        </el-col>
 | 
						|
      </el-form>
 | 
						|
    </el-row>
 | 
						|
    <span slot="footer" class="dialog-footer">
 | 
						|
      <el-button @click="visible = false">{{ 'btn.cancel' | i18nFilter }}</el-button>
 | 
						|
    </span>
 | 
						|
  </el-dialog>
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
import { ExecutionInfoDetail } from '@/api/orderManage/00A'
 | 
						|
 | 
						|
export default {
 | 
						|
  data() {
 | 
						|
    return {
 | 
						|
      visible: false,
 | 
						|
      dataForm: {
 | 
						|
        id: 0,
 | 
						|
        name: undefined,
 | 
						|
        createTime: undefined,
 | 
						|
        taskCode: undefined,
 | 
						|
        taskType: undefined,
 | 
						|
        craftName: undefined,
 | 
						|
        planQuantity: undefined,
 | 
						|
        subProccessName: undefined
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  methods: {
 | 
						|
    init(id) {
 | 
						|
      this.dataForm.id = id || ''
 | 
						|
      this.visible = true
 | 
						|
      this.$nextTick(() => {
 | 
						|
        this.$refs['dataForm'].resetFields()
 | 
						|
        if (this.dataForm.id) {
 | 
						|
          ExecutionInfoDetail(this.dataForm.id).then(res => {
 | 
						|
            this.dataForm = res.data
 | 
						|
          })
 | 
						|
        }
 | 
						|
      })
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
</script>
 |