Commit 9ecc4e6f authored by 黄奎's avatar 黄奎

商品批量设置价格修改

parent 11d8074b
...@@ -399,13 +399,13 @@ ...@@ -399,13 +399,13 @@
:key="rIndex" multiple style="width:130px" size="small"> :key="rIndex" multiple style="width:130px" size="small">
<el-option label="全部" :value="-1"></el-option> <el-option label="全部" :value="-1"></el-option>
<el-option v-for="(subItem,subIndex) in rItem.SpecificationValueList" <el-option v-for="(subItem,subIndex) in rItem.SpecificationValueList"
:key="subIndex" :label="subItem.Name" :value="subIndex+1"></el-option> :key="subIndex" :label="subItem.Name" :value="subItem.Sort"></el-option>
</el-select> </el-select>
</template> </template>
</template> </template>
<el-input style="width:280px;" size="small" v-model="valpl" placeholder="请输入内容" <el-input style="width:300px;" size="small" v-model="valpl" placeholder="请输入内容"
class="input-with-select"> class="input-with-select">
<el-select style="width:100px" v-model="ggpl" slot="prepend" placeholder="请选择"> <el-select style="width:120px" v-model="ggpl" slot="prepend" placeholder="请选择">
<el-option label="价格" :value="1"></el-option> <el-option label="价格" :value="1"></el-option>
<el-option label="库存" :value="2"></el-option> <el-option label="库存" :value="2"></el-option>
<el-option label="成本价" :value="5"></el-option> <el-option label="成本价" :value="5"></el-option>
...@@ -1625,7 +1625,6 @@ ...@@ -1625,7 +1625,6 @@
this.ggplList.forEach(subItem => { this.ggplList.forEach(subItem => {
var findRow = chooseSpecList[index]; var findRow = chooseSpecList[index];
if (subItem.SpecificationSort == findRow) { if (subItem.SpecificationSort == findRow) {
console.log(findRow, "findRow")
if (this.ggpl == 1) { if (this.ggpl == 1) {
item.SellingPrice = this.valpl; item.SellingPrice = this.valpl;
} }
......
...@@ -314,7 +314,6 @@ ...@@ -314,7 +314,6 @@
canvas.height = 140; canvas.height = 140;
canvas.getContext('2d').drawImage(video, 0, 0, video.clientWidth, video.clientHeight) canvas.getContext('2d').drawImage(video, 0, 0, video.clientWidth, video.clientHeight)
base64Str = canvas.toDataURL('image/jpeg'); base64Str = canvas.toDataURL('image/jpeg');
console.log("base64Str", base64Str)
var arr = base64Str.split(','); // 分隔base64编码的头部信息 var arr = base64Str.split(','); // 分隔base64编码的头部信息
var mime = arr[0].match(/:(.*?);/)[1]; // 获取MIME类型 var mime = arr[0].match(/:(.*?);/)[1]; // 获取MIME类型
var bstr = atob(arr[1]); // Base64解码 var bstr = atob(arr[1]); // Base64解码
......
...@@ -178,8 +178,6 @@ ...@@ -178,8 +178,6 @@
this.apipost("/api/User/GetMemberGroup", { this.apipost("/api/User/GetMemberGroup", {
GroupId: item.GroupId GroupId: item.GroupId
}, res => { }, res => {
console.log(res);
}); });
}, },
//删除分组 //删除分组
......
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
<!-- <el-radio :label="3">教室类</el-radio> --> <!-- <el-radio :label="3">教室类</el-radio> -->
</el-radio-group> </el-radio-group>
<div v-if="addMsg.GoodsEduType == 2"> <div v-if="addMsg.GoodsEduType == 2">
<el-button type="primary" @click="isShowZC=true" style="margin:0 10px;" size="mini" :disabled="addMsg.Id > 0">选择资产 <el-button type="primary" @click="isShowZC=true" style="margin:0 10px;" size="mini"
:disabled="addMsg.Id > 0">选择资产
</el-button> </el-button>
<span v-if="addMsg.MaterialId">资产编号:{{addMsg.MaterialId}}</span> <span v-if="addMsg.MaterialId">资产编号:{{addMsg.MaterialId}}</span>
</div> </div>
...@@ -1374,7 +1375,7 @@ ...@@ -1374,7 +1375,7 @@
this.getData(); this.getData();
} else { } else {
this.getTree(); this.getTree();
} }
if (this.currentUserInfo.IsOpenSchool == 0) { if (this.currentUserInfo.IsOpenSchool == 0) {
this.isShowPlat = false; this.isShowPlat = false;
...@@ -2415,10 +2416,9 @@ ...@@ -2415,10 +2416,9 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.options = res.data.data; this.options = res.data.data;
console.log(2418,this.$route.query.GoodsId,this.options) if (this.$route.query.GoodsId == 0) {
if(this.$route.query.GoodsId==0){ this.SupplierId = this.options[0].ID
this.SupplierId=this.options[0].ID }
}
} }
}); });
}, },
...@@ -2518,15 +2518,15 @@ ...@@ -2518,15 +2518,15 @@
this.addMsg.SellingPrice = val.SellPrice this.addMsg.SellingPrice = val.SellPrice
this.addMsg.OriginalPrice = val.SellPrice this.addMsg.OriginalPrice = val.SellPrice
this.addMsg.CostPrice = val.Money this.addMsg.CostPrice = val.Money
this.addMsg.Unit = val.Units||'件' this.addMsg.Unit = val.Units || '件'
this.addMsg.InventoryNum = val.InventoryNum this.addMsg.InventoryNum = val.InventoryNum
this.defaultMsg=val.Name this.defaultMsg = val.Name
this.addggxm2() this.addggxm2()
this.addGgz2(this.SpecificationList[0],0) this.addGgz2(this.SpecificationList[0], 0)
this.ggzChange() this.ggzChange()
this.SpecificationPriceList[0].SellingPrice=val.SellPrice this.SpecificationPriceList[0].SellingPrice = val.SellPrice
this.SpecificationPriceList[0].InventoryNum=val.InventoryNum this.SpecificationPriceList[0].InventoryNum = val.InventoryNum
this.SpecificationPriceList[0].CostMoney=val.Money this.SpecificationPriceList[0].CostMoney = val.Money
} }
}, },
// 添加规格模板2 // 添加规格模板2
...@@ -2540,20 +2540,20 @@ ...@@ -2540,20 +2540,20 @@
Id: 0, Id: 0,
EnabledImage: 2 EnabledImage: 2
}; };
this.SpecificationList[0]=obj; this.SpecificationList[0] = obj;
}, },
// 添加规格值2 // 添加规格值2
addGgz2(item, index) { addGgz2(item, index) {
let obj = { let obj = {
Id: 0, Id: 0,
Image: "", Image: "",
Name: "1"+this.addMsg.Unit, Name: "1" + this.addMsg.Unit,
Sort: item.SpecificationValueList.length > 0 ? Sort: item.SpecificationValueList.length > 0 ?
item.SpecificationValueList[ item.SpecificationValueList[
item.SpecificationValueList.length - 1 item.SpecificationValueList.length - 1
].Sort + 1 : item.SpecificationValueList.length + 1 ].Sort + 1 : item.SpecificationValueList.length + 1
}; };
this.SpecificationList[index].SpecificationValueList[0]=obj; this.SpecificationList[index].SpecificationValueList[0] = obj;
}, },
} }
}; };
......
...@@ -470,7 +470,7 @@ ...@@ -470,7 +470,7 @@
EndTime: "", EndTime: "",
OrderBy: 0, OrderBy: 0,
Q_GoodsEduType: 1, Q_GoodsEduType: 1,
MaterialId:"", MaterialId: "",
}, },
total: 0, total: 0,
tableData: [], tableData: [],
...@@ -901,7 +901,6 @@ ...@@ -901,7 +901,6 @@
} }
}, },
mounted() { mounted() {
let that = this; let that = this;
if (localStorage.getItem("iframeData")) { if (localStorage.getItem("iframeData")) {
that.getList(); that.getList();
...@@ -913,7 +912,6 @@ ...@@ -913,7 +912,6 @@
} }
window.addEventListener("message", function (messageEvent) { window.addEventListener("message", function (messageEvent) {
let data = messageEvent.data || ''; let data = messageEvent.data || '';
console.log("收到vue的数据:", data);
if (data.indexOf('token') > -1) { if (data.indexOf('token') > -1) {
window.localStorage.setItem("iframeData", data); window.localStorage.setItem("iframeData", data);
} }
......
...@@ -1023,7 +1023,6 @@ ...@@ -1023,7 +1023,6 @@
} }
window.addEventListener("message", function (messageEvent) { window.addEventListener("message", function (messageEvent) {
let data = messageEvent.data || ''; let data = messageEvent.data || '';
console.log("收到的数据:", data);
if (data.indexOf('token') > -1) { if (data.indexOf('token') > -1) {
window.localStorage.setItem("iframeData", data); window.localStorage.setItem("iframeData", data);
} }
......
This diff is collapsed.
...@@ -188,7 +188,6 @@ export default { ...@@ -188,7 +188,6 @@ export default {
}); });
}, },
ChangeListName(val) { ChangeListName(val) {
console.log('tag', val)
this.usermsg.Name = val; this.usermsg.Name = val;
this.getUserList(); this.getUserList();
}, },
......
...@@ -438,11 +438,9 @@ export default { ...@@ -438,11 +438,9 @@ export default {
// 详情 // 详情
seeDetail(row, UserName, item) { seeDetail(row, UserName, item) {
this.detailDialog = true; this.detailDialog = true;
// let data = JSON.parse(row.Content);
this.seeData = row; this.seeData = row;
this.UserName = UserName this.UserName = UserName
this.information = item this.information = item
console.log('llllllllllllllllllllll', row);
}, },
ChangeListName(val) { ChangeListName(val) {
this.usermsg.Name = val; this.usermsg.Name = val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment