产品信息编辑问题

fencang
anthonywj 3 years ago
parent 703e78b06a
commit 3811e418ce

@ -585,7 +585,6 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked"
size="small" size="small"
v-model="editQuery.manufactory" v-model="editQuery.manufactory"
splaceholder="请输入内容" splaceholder="请输入内容"
@ -601,7 +600,7 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.scbssfbhph" v-model="editQuery.scbssfbhph"
@ -615,7 +614,7 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked" :disabled="true"
size="small" size="small"
v-model="editQuery.scbssfbhxlh" v-model="editQuery.scbssfbhxlh"
splaceholder="请输入内容" splaceholder="请输入内容"
@ -631,7 +630,7 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.scbssfbhscrq" v-model="editQuery.scbssfbhscrq"
@ -645,7 +644,7 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked" :disabled="true"
v-model="editQuery.scbssfbhsxrq" v-model="editQuery.scbssfbhsxrq"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
@ -657,14 +656,13 @@
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>产品描述:&nbsp;</span> <span>计量单位:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.cpms" v-model="editQuery.measname"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
@ -676,7 +674,7 @@
</div> </div>
<el-input <el-input
style="width: 35%" style="width: 35%"
:disabled="!checked" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.versionNumber" v-model="editQuery.versionNumber"
@ -689,6 +687,37 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col">
<div class="text item">
<div class="itemTag">
<span>商品名称:&nbsp;</span>
</div>
<el-input
style="width: 65%"
size="small"
splaceholder="请输入内容"
v-model="editQuery.spmc"
></el-input>
</div>
</el-col>
<el-col :span="12" class="el-col">
<div class="text item">
<div class="itemTag">
<span>产品描述:&nbsp;</span>
</div>
<el-input
style="width: 65%"
size="small"
splaceholder="请输入内容"
v-model="editQuery.cpms"
></el-input>
</div>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="24" class="el-col"> <el-col :span="24" class="el-col">
<div style="margin-top: 18px;margin-bottom: 18px"> <div style="margin-top: 18px;margin-bottom: 18px">
@ -844,8 +873,8 @@ export default {
isLock: null, isLock: null,
isAdavence: null, isAdavence: null,
allowNoBatch: null, allowNoBatch: null,
allowNoExpire:null, allowNoExpire: null,
allowNoProduct:null, allowNoProduct: null,
}, },
defaultSys: null, defaultSys: null,
isImport: false, isImport: false,
@ -962,8 +991,9 @@ export default {
}, },
handleDetail(row) { handleDetail(row) {
let rlId = this.editQuery.rlId;
this.editQuery = row; this.editQuery = row;
console.log(row); this.editQuery.rlId = rlId;
}, },
@ -1174,6 +1204,7 @@ export default {
this.checked = row.isUseDy == 1; this.checked = row.isUseDy == 1;
let ttquery = { let ttquery = {
relId: this.relId,
uuid: row.uuid, uuid: row.uuid,
page: 1, page: 1,
limit: 10, limit: 10,

@ -579,7 +579,6 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked"
size="small" size="small"
v-model="editQuery.manufactory" v-model="editQuery.manufactory"
splaceholder="请输入内容" splaceholder="请输入内容"
@ -595,7 +594,7 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.scbssfbhph" v-model="editQuery.scbssfbhph"
@ -609,7 +608,7 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked" :disabled="true"
size="small" size="small"
v-model="editQuery.scbssfbhxlh" v-model="editQuery.scbssfbhxlh"
splaceholder="请输入内容" splaceholder="请输入内容"
@ -625,7 +624,7 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.scbssfbhscrq" v-model="editQuery.scbssfbhscrq"
@ -639,7 +638,7 @@
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked" :disabled="true"
v-model="editQuery.scbssfbhsxrq" v-model="editQuery.scbssfbhsxrq"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
@ -651,14 +650,13 @@
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>产品描述:&nbsp;</span> <span>商品名称:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="!checked"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.cpms" v-model="editQuery.spmc"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
@ -669,7 +667,7 @@
</div> </div>
<el-input <el-input
style="width: 35%" style="width: 35%"
:disabled="!checked" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.versionNumber" v-model="editQuery.versionNumber"
@ -696,6 +694,36 @@
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="12" class="el-col">
<div class="text item">
<div class="itemTag">
<span>计量单位:&nbsp;</span>
</div>
<el-input
style="width: 65%"
size="small"
splaceholder="请输入内容"
v-model="editQuery.measname"
></el-input>
</div>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col">
<div class="text item">
<div class="itemTag">
<span>产品描述:&nbsp;</span>
</div>
<el-input
style="width: 65%"
size="small"
splaceholder="请输入内容"
v-model="editQuery.cpms"
></el-input>
</div>
</el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="24" class="el-col"> <el-col :span="24" class="el-col">
@ -1475,6 +1503,7 @@ export default {
}, },
lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"}, lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"},
isUseDyCheck: false, isUseDyCheck: false,
loading: false,
}; };
}, },
@ -1541,8 +1570,9 @@ export default {
}, },
handleDetail(row) { handleDetail(row) {
let rlId = this.editQuery.rlId;
this.editQuery = row; this.editQuery = row;
console.log(row); this.editQuery.rlId = rlId;
}, },
deleteOrders(data) { deleteOrders(data) {
this.loading = true; this.loading = true;
@ -1814,11 +1844,12 @@ export default {
isUseDy: row.isUseDy, isUseDy: row.isUseDy,
isDisable: row.isDisable, isDisable: row.isDisable,
isAdavence: row.isAdavence, isAdavence: row.isAdavence,
price:row.price, price: row.price,
}; };
this.checked = row.isUseDy == 1; this.checked = row.isUseDy == 1;
let ttquery = { let ttquery = {
relId: this.relId,
uuid: row.uuid, uuid: row.uuid,
page: 1, page: 1,
limit: 10, limit: 10,

Loading…
Cancel
Save