代码备份

yanshishuju
yewj 6 months ago
parent 6b9791df4c
commit 529e370475

@ -6,9 +6,9 @@ ENV = 'development'
# 开发环境
# VUE_APP_BASE_API = 'https://mudi.dsxyy.org/UDI_WMS_MC/'
VUE_APP_BASE_API = 'http://192.168.0.166:9991'
VUE_APP_BASE_API = 'http://127.0.0.1:9991'
VUE_APP_SYNC_API ="http://127.0.0.1:10001"
# VUE_APP_BASE_API = 'http://dm.xmglxp.com:81/UDI_WMS_MC/'
# 应用访问路径 例如使用前缀 /admin/
VUE_APP_CONTEXT_PATH = '/'
@ -18,5 +18,5 @@ VUE_APP_MONITRO_ADMIN = 'http://localhost:9090/admin/login'
# xxl-job 控制台地址``
VUE_APP_XXL_JOB_ADMIN = 'http://localhost:9100/xxl-job-admin'
# 路由懒加载
# 路由懒加载s
VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -1,5 +1,5 @@
import axios from "@/utils/request";
import { sysFilterOptimize } from '../udiRelevance'
import {sysFilterOptimize} from '../udiRelevance'
export function getUdiInfos(query) {
return axios({
@ -49,3 +49,12 @@ export function selectOriginuuid(query) {
});
}
export function levelByUuid(query) {
return axios({
url: "/udiwms/udi/local/levelByUuid",
method: "get",
params: query
});
}

@ -53,12 +53,24 @@
<el-table-column label="层级标识" prop="nameCode" show-overflow-tooltip width="160">
<template slot-scope="scope">
<el-input size="small" v-model="scope.row.nameCode" style="width: 100%;margin: 4px;"
:disabled="scope.$index !== selectedIndex"
></el-input>
</template>
</el-table-column>
<el-table-column label="包装级别" prop="packLevel" show-overflow-tooltip width="160">
<!-- 1.主标识2使用单元标识3.本体标识4包装标识-->
<el-table-column label="标识类型" prop="diType" show-overflow-tooltip width="160">
<template slot-scope="scope">
<el-select v-model="scope.row.diType"
:disabled="scope.$index !== selectedIndex"
style="width: 90%" placeholder="选择标识类型" clearable>
<el-option label="最小销售标识" :value="1"></el-option>
<!-- <el-option label="使用单元标识" :value="2"></el-option>-->
<!-- <el-option label="本体标识" :value="3"></el-option>-->
<el-option label="外包装标识" :value="4"></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="包装级别" prop="packLevel" show-overflow-tooltip width="100">
<template slot-scope="scope">
<el-input size="small" v-model="scope.row.packLevel" style="width: 100%"
type="number"
@ -66,16 +78,24 @@
></el-input>
</template>
</el-table-column>
<el-table-column label="层级单位" prop="packUnit" show-overflow-tooltip width="100">
<el-table-column label="层级单位" prop="packUnit" show-overflow-tooltip width="120">
<template slot-scope="scope">
<el-input size="small" v-model="scope.row.packUnit" style="width: 100%"
:disabled="scope.$index !== selectedIndex"
></el-input>
</template>
</el-table-column>
<el-table-column label="上级标识" prop="sjcpbm" show-overflow-tooltip width="160">
<el-table-column label="下级数量" prop="bhxjsl" show-overflow-tooltip width="100">
<template slot-scope="scope">
<el-input size="small" v-model="scope.row.sjcpbm" style="width: 100%"
<el-input size="small" v-model="scope.row.bhxjsl" style="width: 100%"
type="number"
:disabled="scope.$index !== selectedIndex"
></el-input>
</template>
</el-table-column>
<el-table-column label="下级单位" prop="xjdw" show-overflow-tooltip width="120">
<template slot-scope="scope">
<el-input size="small" v-model="scope.row.xjdw" style="width: 100%"
:disabled="scope.$index !== selectedIndex"
></el-input>
</template>
@ -87,14 +107,14 @@
></el-input>
</template>
</el-table-column>
<el-table-column label="下级数量" prop="bhxjsl" show-overflow-tooltip width="100">
<el-table-column label="上级标识" prop="sjcpbm" show-overflow-tooltip width="160">
<template slot-scope="scope">
<el-input size="small" v-model="scope.row.bhxjsl" style="width: 100%"
type="number"
<el-input size="small" v-model="scope.row.sjcpbm" style="width: 100%"
:disabled="scope.$index !== selectedIndex"
></el-input>
</template>
</el-table-column>
<el-table-column label="操作" width="180px" fixed="right">
<template slot-scope="scope">
<el-button type="text" size="small" v-if="scope.$index == selectedIndex " @click.stop="true"
@ -122,6 +142,96 @@
</template>
</el-table-column>
</el-table>
<template>
<p class="form-title2">流通时采用的计量单位设置</p>
</template>
<el-row :gutter="20">
<el-col :span="11" class="el-col">
<el-form-item label="计量单位:" prop="distributeLevelDi" label-width="160px">
<el-select v-model="newProductData.distributeLevel" size="small" style="width: 90%"
clearable
@change="distributeLevelDiChange"
placeholder="请选择计量单位"
>
<el-option
v-for="item in levelUnitList"
:key="item.packLevel"
:value="item.packLevel"
:label="item.packUnit"
>
<span style="float: left">{{ item.packLevel }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.packUnit }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="允许采集的最大层级:" prop="distributeMaxLevel" label-width="160px">
<el-select v-model="newProductData.distributeMaxLevel" size="small" style="width: 90%"
clearable
placeholder="请选择允许采集的最大层级"
>
<el-option
v-for="item in levelUnitList"
:key="item.packLevel"
:value="item.packLevel"
:label="item.packLevel"
>
<span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>
<span style="float: left">层级:{{ item.packLevel }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-divider></el-divider>
<template>
<p class="form-title2">使用时采用的计量单位设置</p>
</template>
<el-row :gutter="20">
<el-col :span="11" class="el-col">
<el-form-item label="计量单位:" prop="useLevel" label-width="160px">
<el-select v-model="newProductData.useLevel" size="small" style="width: 90%"
clearable
@change="useLevelDiChange"
placeholder="请选择计量单位"
>
<el-option
v-for="item in levelUnitList"
:key="item.packLevel"
:value="item.packLevel"
:label="item.packUnit"
>
<span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>
<span style="float: left">层级:{{ item.packLevel }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="允许采集的最大层级:" prop="useMaxLevel" label-width="160px">
<el-select v-model="newProductData.useMaxLevel" size="small" style="width: 90%"
clearable
placeholder="请选择允许采集的最大层级"
>
<el-option
v-for="item in levelUnitList"
:key="item.packLevel"
:value="item.packLevel"
:label="item.packLevel"
>
<span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>
<span style="float: left">层级:{{ item.packLevel }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item name="2">
<template slot="title">
@ -370,83 +480,83 @@
</el-collapse-item>
<el-collapse-item name="3">
<template slot="title">
<p class="form-title">流通使用参数设置</p>
</template>
<el-row :gutter="20">
<el-col :span="11" class="el-col">
<el-form-item label="流通计量层级标识:" prop="distributeLevelDi" label-width="160px">
<el-select v-model="newProductData.distributeLevelDi" size="small" style="width: 90%"
@change="distributeLevelDiChange"
clearable
placeholder="请选择流通计量层级标识"
>
<el-option
v-for="item in detailList"
:key="item.nameCode"
:value="item.nameCode"
:label="item.nameCode"
>
<span style="float: left">{{ item.nameCode }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.packLevel }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="使用计量层级标识:" prop="useLevelDi" label-width="160px">
<el-select v-model="newProductData.useLevelDi" size="small" style="width: 90%"
@change="useLevelDiChange"
clearable
disabled
placeholder="请选择流通计量层级标识"
>
<el-option
v-for="item in detailList"
:key="item.nameCode"
:value="item.nameCode"
:label="item.nameCode"
>
<span style="float: left">{{ item.nameCode }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.packLevel }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="流通计量层级单位:" prop="distributeLevelUnit" label-width="160px">
<el-input style="width: 90%" size="small" placeholder="请输入流通计量层级单位"
disabled
v-model="newProductData.distributeLevelUnit"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="使用计量层级单位:" prop="useLevelUnit" label-width="160px">
<el-input style="width: 90%" size="small" placeholder="请输入使用计量层级标识"
disabled
v-model.trim="newProductData.useLevelUnit"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="流通时含计量单元数量:" prop="distributeLevelCount" label-width="160px">
<el-input style="width: 90%" size="small" placeholder="请输入流通时包含计量单元的数量"
v-model.trim="newProductData.distributeLevelCount"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="使用时含计量单元数量:" prop="useLeverCount" label-width="160px">
<el-input style="width: 90%" size="small" placeholder="请输入使用时包含计量单元的数量"
v-model.trim="newProductData.useLeverCount"
></el-input>
</el-form-item>
</el-col>
<!-- <el-collapse-item name="3">-->
<!-- <template slot="title">-->
<!-- <p class="form-title">流通使用参数设置</p>-->
<!-- </template>-->
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="流通计量层级标识:" prop="distributeLevelDi" label-width="160px">-->
<!-- <el-select v-model="newProductData.distributeLevelDi" size="small" style="width: 90%"-->
<!-- @change="distributeLevelDiChange"-->
<!-- clearable-->
<!-- placeholder="请选择流通计量层级标识"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in detailList"-->
<!-- :key="item.nameCode"-->
<!-- :value="item.nameCode"-->
<!-- :label="item.nameCode"-->
<!-- >-->
<!-- <span style="float: left">{{ item.nameCode }}</span>-->
<!-- <span style="float: right; color: #8492a6; font-size: 13px">{{ item.packLevel }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="使用计量层级标识:" prop="useLevelDi" label-width="160px">-->
<!-- <el-select v-model="newProductData.useLevelDi" size="small" style="width: 90%"-->
<!-- @change="useLevelDiChange"-->
<!-- clearable-->
<!-- disabled-->
<!-- placeholder="请选择流通计量层级标识"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in detailList"-->
<!-- :key="item.nameCode"-->
<!-- :value="item.nameCode"-->
<!-- :label="item.nameCode"-->
<!-- >-->
<!-- <span style="float: left">{{ item.nameCode }}</span>-->
<!-- <span style="float: right; color: #8492a6; font-size: 13px">{{ item.packLevel }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="流通计量层级单位:" prop="distributeLevelUnit" label-width="160px">-->
<!-- <el-input style="width: 90%" size="small" placeholder="请输入流通计量层级单位"-->
<!-- disabled-->
<!-- v-model="newProductData.distributeLevelUnit"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="使用计量层级单位:" prop="useLevelUnit" label-width="160px">-->
<!-- <el-input style="width: 90%" size="small" placeholder="请输入使用计量层级标识"-->
<!-- disabled-->
<!-- v-model.trim="newProductData.useLevelUnit"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="流通时含计量单元数量:" prop="distributeLevelCount" label-width="160px">-->
<!-- <el-input style="width: 90%" size="small" placeholder="请输入流通时包含计量单元的数量"-->
<!-- v-model.trim="newProductData.distributeLevelCount"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="使用时含计量单元数量:" prop="useLeverCount" label-width="160px">-->
<!-- <el-input style="width: 90%" size="small" placeholder="请输入使用时包含计量单元的数量"-->
<!-- v-model.trim="newProductData.useLeverCount"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row>
</el-collapse-item>
<!-- </el-row>-->
<!-- </el-collapse-item>-->
<el-collapse-item name="4">
<template slot="title">
<p class="form-title">高级设置</p>
@ -552,7 +662,7 @@ import {
getYbDrugDetail, removeRl, thirdSysDetail
} from '@/api/basic/product/udiRelevance'
import {filterClassify} from '@/api/purchase/classifyCode'
import {filterByUuid} from '@/api/basic/product/udiInfo'
import {filterByUuid, levelByUuid} from '@/api/basic/product/udiInfo'
import selectChargesProjectDialog from './selectChargesProjectDialog'
import chooseHouseDrug from './chooseHouseDrug'
@ -607,7 +717,7 @@ export default {
status: false,
relId: null,
drugLevelLists: [],
productId:null,
productId: null,
useLevelDi: null,
distributeLevelDi: null,
@ -665,7 +775,15 @@ export default {
},
detailList: [
//
{productId: null ,nameCode: '', packLevel: null, bhxjsl: null, isDisabled: false, isUpDisabled: true, rowDisabled: false}
{
productId: null,
nameCode: '',
packLevel: null,
bhxjsl: null,
isDisabled: false,
isUpDisabled: true,
rowDisabled: false
}
],
status: false,
rowDisabled: false,
@ -676,7 +794,9 @@ export default {
sysList: [],
chooseHouseDrugVisible: false,
isImport: false,
defaultSys: null
defaultSys: null,
levelUnitList: [],
maxLevel: 1,
}
},
@ -837,7 +957,6 @@ export default {
//
levelSave(row) {
if (isBlank(row.nameCode)) {
this.$message.error('层级标识不能为空')
return
@ -850,7 +969,6 @@ export default {
this.$message.error('层级单位不能为空')
return
}
console.log("djfjfjjf",row.productId)
let editQuery = {
nameCode: row.nameCode,
packLevel: row.packLevel,
@ -860,7 +978,9 @@ export default {
bhxjsl: row.bhxjsl,
relId: this.newProductData.id,
uuid: this.newProductData.uuid,
productId:row.productId
productId: row.productId,
diType: row.diType,
xjdw: row.xjdw
}
updateLevelDrug(editQuery).then(res => {
this.saveLoading = false
@ -869,6 +989,7 @@ export default {
this.$message.success('保存成功!')
this.selectedIndex = null
this.getDetailList()
this.getDiLevel();
} else {
this.isSave = true
this.$message.error(res.message)
@ -973,6 +1094,32 @@ export default {
}
})
},
getDiLevel() {
let query = {
id: this.relId
}
this.loading = true
levelByUuid(query)
.then((response) => {
this.loading = false
this.levelUnitList = response.data || []
this.findMaxLevelObject()
})
.catch(() => {
this.loading = false
this.levelUnitList = []
})
},
findMaxLevelObject() {
this.maxLevel = 1;
for (const obj of this.levelUnitList) {
if (obj.packLevel > this.maxLevel) {
this.maxLevel = Number(obj.packLevel);
}
}
},
/**
* 选择收费项目
*/
@ -1070,11 +1217,11 @@ export default {
} else {
this.status = false
}
this.getDiLevel()
this.getDetailList()
this.getThirdSysDetail()
} else {
this.selectedIndex = 0
}
},
directives: {
@ -1103,4 +1250,11 @@ export default {
padding-top: 17px;
}
.form-title2 {
font-size: 16px;
font-family: Noto Sans SC;
font-weight: bold;
color: #303133;
}
</style>

@ -17,13 +17,13 @@
:panelType="2"
:workPlaceCode="workPlaceCode"
></fifoPanel>
</el-tab-pane>
</el-tab-pane>
</el-tabs>-->
<fifoPanel
:workPlaceCode="workPlaceCode"
></fifoPanel>
</div>
</template>
@ -50,7 +50,7 @@ export default {
}
},
created() {
if (this.$route.query.workplaceId != null){
if (this.$route.query.workplaceId != null) {
this.isLinkDisabled = true
this.workPlaceCode = Number(this.$route.query.workplaceId);
}

@ -3,11 +3,11 @@
<el-card class="el-card">
<el-form :model="filterQuery" class="query-form" label-width="100px" v-if="showSearch">
<el-row>
<!-- <el-col :span="10">-->
<!-- <el-form-item label="udi">-->
<!-- <el-input v-model="filterQuery.code" style="width: 90%" placeholder="请输入udi" clearable></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="10">-->
<!-- <el-form-item label="udi">-->
<!-- <el-input v-model="filterQuery.code" style="width: 90%" placeholder="请输入udi" clearable></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="10">
<el-form-item label="产品编码">
@ -48,7 +48,7 @@
<el-table v-loading="loading" :data="list" border highlight-current-row
:default-expand-all="isExpandAll"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
style="width: 100%" row-key="id" >
style="width: 100%" row-key="id">
<el-table-column label="序号" type="index" width="60"></el-table-column>
<el-table-column label="上级编码" prop="parentCode"></el-table-column>
<el-table-column label="产品编码" prop="nameCode"></el-table-column>
@ -199,10 +199,10 @@ export default {
this.detailList = [];
},
deleteDialog(row) {
delIoCodeRel({parentCode:row.parentCode})
delIoCodeRel({parentCode: row.parentCode})
.then((response) => {
if (response.code == 20000) {
this.getList();
this.getList();
} else {
this.$message.error(response.message);
}

Loading…
Cancel
Save