产品信息编辑问题

busUser
anthonywj 3 years ago
parent 9eba6a000a
commit 1fb5b2eea2

@ -1,6 +1,6 @@
{ {
"BASE_URL": "http://192.168.0.166:9996", "BASE_URL": "http://192.168.1.20:9996",
"SERVER_IP": "http://192.168.0.166:9996", "SERVER_IP": "http://192.168.1.20:9996",
"hosp_name": "福建省XX市医院" "hosp_name": "福建省XX市医院"
} }

@ -211,6 +211,7 @@
style="width: 100%; " style="width: 100%; "
border border
key="3" key="3"
highlight-current-row
@current-change="handleDetail" @current-change="handleDetail"
> >
<el-table-column <el-table-column
@ -1039,8 +1040,10 @@ export default {
allowNoBatch: null, allowNoBatch: null,
allowNoExpire: null, allowNoExpire: null,
allowNoProduct: null, allowNoProduct: null,
cpdls: null cpdls: null,
pId: null,
}, },
pId: 0,
defaultSys: null, defaultSys: null,
isImport: false, isImport: false,
isImportUdi: false, isImportUdi: false,
@ -1390,6 +1393,7 @@ export default {
this.thisData = row; this.thisData = row;
this.editDialogVisible = true; this.editDialogVisible = true;
this.editQuery = row; this.editQuery = row;
this.pId = row.id;
this.relevanceEdit = { this.relevanceEdit = {
id: row.id, id: row.id,
isUseDy: row.isUseDy, isUseDy: row.isUseDy,
@ -1499,13 +1503,12 @@ export default {
this.relevanceEdit.isLock = this.editQuery.isLock; this.relevanceEdit.isLock = this.editQuery.isLock;
this.relevanceEdit.isAdavence = this.editQuery.isAdavence; this.relevanceEdit.isAdavence = this.editQuery.isAdavence;
this.relevanceEdit = this.editQuery; this.relevanceEdit = this.editQuery;
this.relevanceEdit.pid = this.pId;
if (this.checked == true) { if (this.checked == true) {
this.relevanceEdit.isUseDy = 1; this.relevanceEdit.isUseDy = 1;
} else { } else {
this.relevanceEdit.isUseDy = 0; this.relevanceEdit.isUseDy = 0;
} }
updatetUdiInfos(this.relevanceEdit) updatetUdiInfos(this.relevanceEdit)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -220,6 +220,7 @@
style="width: 100%; margin-top: 20px" style="width: 100%; margin-top: 20px"
border border
key="3" key="3"
highlight-current-row
@current-change="handleDetail" @current-change="handleDetail"
> >
<el-table-column <el-table-column

@ -184,6 +184,7 @@
style="width: 100%" style="width: 100%"
@row-click="intentDetail" @row-click="intentDetail"
v-loading="loading" v-loading="loading"
highlight-current-row
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
@selection-change="handleSelectionUdiChange" @selection-change="handleSelectionUdiChange"
> >

@ -69,6 +69,7 @@
style="width: 100%" style="width: 100%"
@row-click="intentDetail" @row-click="intentDetail"
v-loading="loading" v-loading="loading"
highlight-current-row
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
@selection-change="handleSelectionUdiChange" @selection-change="handleSelectionUdiChange"
> >

@ -24,6 +24,7 @@
:data="detailList" :data="detailList"
style="width: 100%; margin-top: 20px" style="width: 100%; margin-top: 20px"
border border
highlight-current-row
@current-change="handleDetail" @current-change="handleDetail"
> >
<el-table-column <el-table-column

@ -351,7 +351,9 @@ export default {
isDisable: null, isDisable: null,
isUseDy: false, isUseDy: false,
isAdavence: null, isAdavence: null,
pId: null,
}, },
pId: 0,
productType: null, productType: null,
defaultSys: null, defaultSys: null,
isImport: false, isImport: false,
@ -733,6 +735,7 @@ export default {
this.thisData = row; this.thisData = row;
this.editDialogVisible = true; this.editDialogVisible = true;
this.editQuery = row; this.editQuery = row;
this.pId = row.id;
this.relevanceEdit = { this.relevanceEdit = {
id: row.rlId, id: row.rlId,
isUseDy: row.isUseDy, isUseDy: row.isUseDy,
@ -825,6 +828,7 @@ export default {
this.relevanceEdit.isLock = this.editQuery.isLock; this.relevanceEdit.isLock = this.editQuery.isLock;
this.relevanceEdit.isAdavence = this.editQuery.isAdavence; this.relevanceEdit.isAdavence = this.editQuery.isAdavence;
this.relevanceEdit = this.editQuery; this.relevanceEdit = this.editQuery;
this.relevanceEdit.pid = this.pId;
if (this.checked == true) { if (this.checked == true) {
this.relevanceEdit.isUseDy = 1; this.relevanceEdit.isUseDy = 1;
} else { } else {

@ -60,6 +60,7 @@
:data="detailList" :data="detailList"
style="width: 100%; margin-top: 20px" style="width: 100%; margin-top: 20px"
border border
highlight-current-row
@current-change="handleDetail" @current-change="handleDetail"
> >
<el-table-column <el-table-column

Loading…
Cancel
Save