parent
48ad92440e
commit
9d6844c985
@ -0,0 +1,15 @@
|
|||||||
|
package jnpf.model.yysunitinformation;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class UnitGroupSync {
|
||||||
|
/**
|
||||||
|
* 单位组名称
|
||||||
|
*/
|
||||||
|
private String cGroupName;
|
||||||
|
/**
|
||||||
|
* 单位组编码
|
||||||
|
*/
|
||||||
|
private String cGroupCode;
|
||||||
|
}
|
@ -1,142 +1,132 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog title="详情"
|
<el-dialog title="详情" :close-on-click-modal="false" append-to-body :visible.sync="visible"
|
||||||
:close-on-click-modal="false" append-to-body
|
class="JNPF-dialog JNPF-dialog_center" lock-scroll width="600px">
|
||||||
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
|
<el-row :gutter="15" class="">
|
||||||
width="600px">
|
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right">
|
||||||
<el-row :gutter="15" class="">
|
<template v-if="!loading">
|
||||||
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
|
<el-col :span="24">
|
||||||
<template v-if="!loading">
|
<jnpf-form-tip-item label="物料编码" prop="materialId">
|
||||||
<el-col :span="24" >
|
<p>{{ dataForm.materialId }}</p>
|
||||||
<jnpf-form-tip-item label="物料编码"
|
</jnpf-form-tip-item>
|
||||||
prop="materialId" >
|
</el-col>
|
||||||
<p>{{dataForm.materialId}}</p>
|
<el-col :span="24">
|
||||||
</jnpf-form-tip-item>
|
<jnpf-form-tip-item label="物料名称" prop="materialName">
|
||||||
</el-col>
|
<p>{{ dataForm.materialName }}</p>
|
||||||
<el-col :span="24" >
|
</jnpf-form-tip-item>
|
||||||
<jnpf-form-tip-item label="物料名称"
|
</el-col>
|
||||||
prop="materialName" >
|
<el-col :span="24">
|
||||||
<p>{{dataForm.materialName}}</p>
|
<jnpf-form-tip-item label="物料分类" prop="materialClassification">
|
||||||
</jnpf-form-tip-item>
|
<p>{{ dataForm.materialClassification }}</p>
|
||||||
</el-col>
|
</jnpf-form-tip-item>
|
||||||
<el-col :span="24" >
|
</el-col>
|
||||||
<jnpf-form-tip-item label="物料分类"
|
<el-col :span="24">
|
||||||
prop="materialClassification" >
|
<jnpf-form-tip-item label="计量单位" prop="unitMeasurement">
|
||||||
<p>{{dataForm.materialClassification}}</p>
|
<p>{{ dataForm.unitMeasurement }}</p>
|
||||||
</jnpf-form-tip-item>
|
</jnpf-form-tip-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24" >
|
<el-col :span="24">
|
||||||
<jnpf-form-tip-item label="计量单位"
|
<jnpf-form-tip-item label="计量单位组" prop="materialSname">
|
||||||
prop="unitMeasurement" >
|
<p>{{ dataForm.materialSname }}</p>
|
||||||
<p>{{dataForm.unitMeasurement}}</p>
|
</jnpf-form-tip-item>
|
||||||
</jnpf-form-tip-item>
|
</el-col>
|
||||||
</el-col>
|
<el-col :span="24">
|
||||||
<el-col :span="24" >
|
<jnpf-form-tip-item label="规格/型号" prop="model">
|
||||||
<jnpf-form-tip-item label="物料简称"
|
<p>{{ dataForm.model }}</p>
|
||||||
prop="materialSname" >
|
</jnpf-form-tip-item>
|
||||||
<p>{{dataForm.materialSname}}</p>
|
</el-col>
|
||||||
</jnpf-form-tip-item>
|
<el-col :span="24">
|
||||||
</el-col>
|
<jnpf-form-tip-item label="安全库存" prop="safetyStock">
|
||||||
<el-col :span="24" >
|
<p>{{ dataForm.safetyStock }}</p>
|
||||||
<jnpf-form-tip-item label="规格/型号"
|
</jnpf-form-tip-item>
|
||||||
prop="model" >
|
</el-col>
|
||||||
<p>{{dataForm.model}}</p>
|
<el-col :span="24">
|
||||||
</jnpf-form-tip-item>
|
<jnpf-form-tip-item label="启用状态" prop="enableStatus">
|
||||||
</el-col>
|
<p>{{ dataForm.enableStatus }} </p>
|
||||||
<el-col :span="24" >
|
</jnpf-form-tip-item>
|
||||||
<jnpf-form-tip-item label="安全库存"
|
</el-col>
|
||||||
prop="safetyStock" >
|
</template>
|
||||||
<p>{{dataForm.safetyStock}}</p>
|
</el-form>
|
||||||
</jnpf-form-tip-item>
|
</el-row>
|
||||||
</el-col>
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-col :span="24" >
|
<el-button @click="visible = false"> 取 消</el-button>
|
||||||
<jnpf-form-tip-item label="启用状态"
|
</span>
|
||||||
prop="enableStatus" >
|
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
|
||||||
<p>{{ dataForm.enableStatus }} </p>
|
|
||||||
</jnpf-form-tip-item>
|
|
||||||
</el-col>
|
|
||||||
</template>
|
|
||||||
</el-form>
|
|
||||||
</el-row>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="visible = false"> 取 消</el-button>
|
|
||||||
</span>
|
|
||||||
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
|
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
import { getConfigData } from '@/api/onlineDev/visualDev'
|
import { getConfigData } from '@/api/onlineDev/visualDev'
|
||||||
import jnpf from '@/utils/jnpf'
|
import jnpf from '@/utils/jnpf'
|
||||||
import Detail from '@/views/basic/dynamicModel/list/detail'
|
import Detail from '@/views/basic/dynamicModel/list/detail'
|
||||||
import { thousandsFormat } from "@/components/Generator/utils/index"
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
||||||
export default {
|
export default {
|
||||||
components: { Detail},
|
components: { Detail },
|
||||||
props: [],
|
props: [],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
detailVisible: false,
|
detailVisible: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
|
||||||
dataForm: {
|
dataForm: {
|
||||||
id :'',
|
id: '',
|
||||||
materialId : '',
|
materialId: '',
|
||||||
materialName : '',
|
materialName: '',
|
||||||
materialClassification : '',
|
materialClassification: '',
|
||||||
unitMeasurement : '',
|
unitMeasurement: '',
|
||||||
materialSname : '',
|
materialSname: '',
|
||||||
model : '',
|
model: '',
|
||||||
safetyStock : '',
|
safetyStock: '',
|
||||||
enableStatus : "1",
|
enableStatus: "1",
|
||||||
},
|
},
|
||||||
enableStatusOptions:[{"fullName":"启用","id":"1"},{"fullName":"禁用","id":"2"}],
|
enableStatusOptions: [{ "fullName": "启用", "id": "1" }, { "fullName": "禁用", "id": "2" }],
|
||||||
enableStatusProps:{"label":"fullName","value":"id" },
|
enableStatusProps: { "label": "fullName", "value": "id" },
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() { },
|
||||||
methods: {
|
methods: {
|
||||||
toDetail(defaultValue, modelId) {
|
toDetail(defaultValue, modelId) {
|
||||||
if (!defaultValue) return
|
if (!defaultValue) return
|
||||||
getConfigData(modelId).then(res => {
|
getConfigData(modelId).then(res => {
|
||||||
if (!res.data || !res.data.formData) return
|
if (!res.data || !res.data.formData) return
|
||||||
let formData = JSON.parse(res.data.formData)
|
let formData = JSON.parse(res.data.formData)
|
||||||
formData.popupType = 'general'
|
formData.popupType = 'general'
|
||||||
this.detailVisible = true
|
this.detailVisible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.Detail.init(formData, modelId, defaultValue)
|
this.$refs.Detail.init(formData, modelId, defaultValue)
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
})
|
||||||
dataInfo(dataAll){
|
},
|
||||||
let _dataAll =dataAll
|
dataInfo(dataAll) {
|
||||||
this.dataForm = _dataAll
|
let _dataAll = dataAll
|
||||||
},
|
this.dataForm = _dataAll
|
||||||
|
},
|
||||||
|
|
||||||
init(id) {
|
init(id) {
|
||||||
this.dataForm.id = id || 0;
|
this.dataForm.id = id || 0;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if(this.dataForm.id){
|
if (this.dataForm.id) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
request({
|
request({
|
||||||
url: '/api/example/YysMaterialInformation/detail/'+this.dataForm.id,
|
url: '/api/example/YysMaterialInformation/detail/' + this.dataForm.id,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.dataInfo(res.data)
|
this.dataInfo(res.data)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in new issue