|
|
|
@ -1,61 +1,51 @@
|
|
|
|
|
<template>
|
|
|
|
|
<el-dialog title="详情"
|
|
|
|
|
:close-on-click-modal="false" append-to-body
|
|
|
|
|
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
|
|
|
|
|
width="600px">
|
|
|
|
|
<el-row :gutter="15" class="">
|
|
|
|
|
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
|
|
|
|
|
<el-dialog title="详情" :close-on-click-modal="false" append-to-body :visible.sync="visible"
|
|
|
|
|
class="JNPF-dialog JNPF-dialog_center" lock-scroll width="600px">
|
|
|
|
|
<el-row :gutter="15" class="">
|
|
|
|
|
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right">
|
|
|
|
|
<template v-if="!loading">
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<jnpf-form-tip-item label="物料编码"
|
|
|
|
|
prop="materialId" >
|
|
|
|
|
<p>{{dataForm.materialId}}</p>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<jnpf-form-tip-item label="物料编码" prop="materialId">
|
|
|
|
|
<p>{{ dataForm.materialId }}</p>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<jnpf-form-tip-item label="物料名称"
|
|
|
|
|
prop="materialName" >
|
|
|
|
|
<p>{{dataForm.materialName}}</p>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<jnpf-form-tip-item label="物料名称" prop="materialName">
|
|
|
|
|
<p>{{ dataForm.materialName }}</p>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<jnpf-form-tip-item label="物料分类"
|
|
|
|
|
prop="materialClassification" >
|
|
|
|
|
<p>{{dataForm.materialClassification}}</p>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<jnpf-form-tip-item label="物料分类" prop="materialClassification">
|
|
|
|
|
<p>{{ dataForm.materialClassification }}</p>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<jnpf-form-tip-item label="计量单位"
|
|
|
|
|
prop="unitMeasurement" >
|
|
|
|
|
<p>{{dataForm.unitMeasurement}}</p>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<jnpf-form-tip-item label="计量单位" prop="unitMeasurement">
|
|
|
|
|
<p>{{ dataForm.unitMeasurement }}</p>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<jnpf-form-tip-item label="物料简称"
|
|
|
|
|
prop="materialSname" >
|
|
|
|
|
<p>{{dataForm.materialSname}}</p>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<jnpf-form-tip-item label="计量单位组" prop="materialSname">
|
|
|
|
|
<p>{{ dataForm.materialSname }}</p>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<jnpf-form-tip-item label="规格/型号"
|
|
|
|
|
prop="model" >
|
|
|
|
|
<p>{{dataForm.model}}</p>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<jnpf-form-tip-item label="规格/型号" prop="model">
|
|
|
|
|
<p>{{ dataForm.model }}</p>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<jnpf-form-tip-item label="安全库存"
|
|
|
|
|
prop="safetyStock" >
|
|
|
|
|
<p>{{dataForm.safetyStock}}</p>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<jnpf-form-tip-item label="安全库存" prop="safetyStock">
|
|
|
|
|
<p>{{ dataForm.safetyStock }}</p>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<jnpf-form-tip-item label="启用状态"
|
|
|
|
|
prop="enableStatus" >
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<jnpf-form-tip-item label="启用状态" prop="enableStatus">
|
|
|
|
|
<p>{{ dataForm.enableStatus }} </p>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</template>
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-row>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="visible = false"> 取 消</el-button>
|
|
|
|
@ -64,14 +54,14 @@
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
import { getConfigData } from '@/api/onlineDev/visualDev'
|
|
|
|
|
import jnpf from '@/utils/jnpf'
|
|
|
|
|
import Detail from '@/views/basic/dynamicModel/list/detail'
|
|
|
|
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
|
|
|
|
export default {
|
|
|
|
|
components: { Detail},
|
|
|
|
|
import { getConfigData } from '@/api/onlineDev/visualDev'
|
|
|
|
|
import jnpf from '@/utils/jnpf'
|
|
|
|
|
import Detail from '@/views/basic/dynamicModel/list/detail'
|
|
|
|
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
|
|
|
|
export default {
|
|
|
|
|
components: { Detail },
|
|
|
|
|
props: [],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -80,18 +70,18 @@
|
|
|
|
|
loading: false,
|
|
|
|
|
|
|
|
|
|
dataForm: {
|
|
|
|
|
id :'',
|
|
|
|
|
materialId : '',
|
|
|
|
|
materialName : '',
|
|
|
|
|
materialClassification : '',
|
|
|
|
|
unitMeasurement : '',
|
|
|
|
|
materialSname : '',
|
|
|
|
|
model : '',
|
|
|
|
|
safetyStock : '',
|
|
|
|
|
enableStatus : "1",
|
|
|
|
|
id: '',
|
|
|
|
|
materialId: '',
|
|
|
|
|
materialName: '',
|
|
|
|
|
materialClassification: '',
|
|
|
|
|
unitMeasurement: '',
|
|
|
|
|
materialSname: '',
|
|
|
|
|
model: '',
|
|
|
|
|
safetyStock: '',
|
|
|
|
|
enableStatus: "1",
|
|
|
|
|
},
|
|
|
|
|
enableStatusOptions:[{"fullName":"启用","id":"1"},{"fullName":"禁用","id":"2"}],
|
|
|
|
|
enableStatusProps:{"label":"fullName","value":"id" },
|
|
|
|
|
enableStatusOptions: [{ "fullName": "启用", "id": "1" }, { "fullName": "禁用", "id": "2" }],
|
|
|
|
|
enableStatusProps: { "label": "fullName", "value": "id" },
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -100,7 +90,7 @@
|
|
|
|
|
created() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
|
mounted() { },
|
|
|
|
|
methods: {
|
|
|
|
|
toDetail(defaultValue, modelId) {
|
|
|
|
|
if (!defaultValue) return
|
|
|
|
@ -114,8 +104,8 @@
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
dataInfo(dataAll){
|
|
|
|
|
let _dataAll =dataAll
|
|
|
|
|
dataInfo(dataAll) {
|
|
|
|
|
let _dataAll = dataAll
|
|
|
|
|
this.dataForm = _dataAll
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -123,10 +113,10 @@
|
|
|
|
|
this.dataForm.id = id || 0;
|
|
|
|
|
this.visible = true;
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
if(this.dataForm.id){
|
|
|
|
|
if (this.dataForm.id) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
request({
|
|
|
|
|
url: '/api/example/YysMaterialInformation/detail/'+this.dataForm.id,
|
|
|
|
|
url: '/api/example/YysMaterialInformation/detail/' + this.dataForm.id,
|
|
|
|
|
method: 'get'
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.dataInfo(res.data)
|
|
|
|
@ -137,6 +127,6 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|