|
@@ -100,6 +100,7 @@ import {Export} from '@/utils/ExportExcel'
|
|
|
import {
|
|
|
selectYpDict,
|
|
|
selectYpDictByCode,
|
|
|
+ selectYpDictByCodeNoSerial,
|
|
|
selectYpGroupNameByYfFlag,
|
|
|
selectYpStorageInfo,
|
|
|
updateYkYpStopOrUsed,
|
|
@@ -194,7 +195,22 @@ const closeYpEditAdd = () => {
|
|
|
}
|
|
|
|
|
|
// 编辑
|
|
|
-const editYpDict = (row) => {
|
|
|
+const zdList = ref([])
|
|
|
+const editYpDict = async (row) => {
|
|
|
+ await selectYpDictByCodeNoSerial(row.code).then((res) => {
|
|
|
+ zdList.value = res
|
|
|
+ })
|
|
|
+
|
|
|
+ if(row.serial === '01' && zdList.value.length > 1) {
|
|
|
+ ElMessage({
|
|
|
+ type: "warning",
|
|
|
+ message: "有大包装规格,请选择大包装规格进行编辑,会同步修改小包装规格的相对应信息!",
|
|
|
+ duration: 2500,
|
|
|
+ showClose: true,
|
|
|
+ });
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
selectYpDictByCode(row.code, row.serial).then((res) => {
|
|
|
ypTitle.value = '编码:' + row.code + ' 序号:' + row.serial + ' 规格:' + row.specification + ' 名称:' + row.name + ' 账页信息'
|
|
|
ypDetail.value = res
|