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

商品批量设置价格修改

parent 11d8074b
......@@ -399,13 +399,13 @@
:key="rIndex" multiple style="width:130px" size="small">
<el-option label="全部" :value="-1"></el-option>
<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>
</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">
<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="2"></el-option>
<el-option label="成本价" :value="5"></el-option>
......@@ -1625,7 +1625,6 @@
this.ggplList.forEach(subItem => {
var findRow = chooseSpecList[index];
if (subItem.SpecificationSort == findRow) {
console.log(findRow, "findRow")
if (this.ggpl == 1) {
item.SellingPrice = this.valpl;
}
......
......@@ -314,7 +314,6 @@
canvas.height = 140;
canvas.getContext('2d').drawImage(video, 0, 0, video.clientWidth, video.clientHeight)
base64Str = canvas.toDataURL('image/jpeg');
console.log("base64Str", base64Str)
var arr = base64Str.split(','); // 分隔base64编码的头部信息
var mime = arr[0].match(/:(.*?);/)[1]; // 获取MIME类型
var bstr = atob(arr[1]); // Base64解码
......
......@@ -178,8 +178,6 @@
this.apipost("/api/User/GetMemberGroup", {
GroupId: item.GroupId
}, res => {
console.log(res);
});
},
//删除分组
......
......@@ -33,7 +33,8 @@
<!-- <el-radio :label="3">教室类</el-radio> -->
</el-radio-group>
<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>
<span v-if="addMsg.MaterialId">资产编号:{{addMsg.MaterialId}}</span>
</div>
......@@ -2415,9 +2416,8 @@
this.loading = false;
if (res.data.resultCode == 1) {
this.options = res.data.data;
console.log(2418,this.$route.query.GoodsId,this.options)
if(this.$route.query.GoodsId==0){
this.SupplierId=this.options[0].ID
if (this.$route.query.GoodsId == 0) {
this.SupplierId = this.options[0].ID
}
}
});
......@@ -2518,15 +2518,15 @@
this.addMsg.SellingPrice = val.SellPrice
this.addMsg.OriginalPrice = val.SellPrice
this.addMsg.CostPrice = val.Money
this.addMsg.Unit = val.Units||'件'
this.addMsg.Unit = val.Units || '件'
this.addMsg.InventoryNum = val.InventoryNum
this.defaultMsg=val.Name
this.defaultMsg = val.Name
this.addggxm2()
this.addGgz2(this.SpecificationList[0],0)
this.addGgz2(this.SpecificationList[0], 0)
this.ggzChange()
this.SpecificationPriceList[0].SellingPrice=val.SellPrice
this.SpecificationPriceList[0].InventoryNum=val.InventoryNum
this.SpecificationPriceList[0].CostMoney=val.Money
this.SpecificationPriceList[0].SellingPrice = val.SellPrice
this.SpecificationPriceList[0].InventoryNum = val.InventoryNum
this.SpecificationPriceList[0].CostMoney = val.Money
}
},
// 添加规格模板2
......@@ -2540,20 +2540,20 @@
Id: 0,
EnabledImage: 2
};
this.SpecificationList[0]=obj;
this.SpecificationList[0] = obj;
},
// 添加规格值2
addGgz2(item, index) {
let obj = {
Id: 0,
Image: "",
Name: "1"+this.addMsg.Unit,
Name: "1" + this.addMsg.Unit,
Sort: item.SpecificationValueList.length > 0 ?
item.SpecificationValueList[
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 @@
EndTime: "",
OrderBy: 0,
Q_GoodsEduType: 1,
MaterialId:"",
MaterialId: "",
},
total: 0,
tableData: [],
......@@ -901,7 +901,6 @@
}
},
mounted() {
let that = this;
if (localStorage.getItem("iframeData")) {
that.getList();
......@@ -913,7 +912,6 @@
}
window.addEventListener("message", function (messageEvent) {
let data = messageEvent.data || '';
console.log("收到vue的数据:", data);
if (data.indexOf('token') > -1) {
window.localStorage.setItem("iframeData", data);
}
......
......@@ -1023,7 +1023,6 @@
}
window.addEventListener("message", function (messageEvent) {
let data = messageEvent.data || '';
console.log("收到的数据:", data);
if (data.indexOf('token') > -1) {
window.localStorage.setItem("iframeData", data);
}
......
This diff is collapsed.
......@@ -188,7 +188,6 @@ export default {
});
},
ChangeListName(val) {
console.log('tag', val)
this.usermsg.Name = val;
this.getUserList();
},
......
......@@ -203,7 +203,7 @@
</div>
</template>
<script>
export default {
export default {
data() {
return {
loading: false,
......@@ -300,13 +300,15 @@ export default {
.then(() => {
that.setFirstShop(row.Id, 1);
})
.catch(() => { });
.catch(() => {});
},
setFirstShop(id, type) {
let that = this;
that.apipost(
"/api/Trade/SetFirstShopEnrollState",
{ EnrollId: id, Type: type },
"/api/Trade/SetFirstShopEnrollState", {
EnrollId: id,
Type: type
},
(res) => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
......@@ -330,7 +332,7 @@ export default {
.then(() => {
that.setFirstShop(row.Id, 2);
})
.catch(() => { });
.catch(() => {});
},
delete_b(row) {
let that = this;
......@@ -343,14 +345,13 @@ export default {
.then(() => {
that.setFirstShop(row.Id, 3);
})
.catch(() => { });
.catch(() => {});
},
EditgoUrl() { },
EditgoUrl() {},
seeDetail(row) {
this.detailDialog = true;
let data = JSON.parse(row.Content);
this.seeData = data;
console.log(data);
},
getOptionValue(row) {
let value = row.OptionValue;
......@@ -386,39 +387,39 @@ export default {
) {
this.previewPDF(Url);
} else {
console.log(FilePath);
window.open(
"https://view.officeapps.live.com/op/view.aspx?src=" + FilePath
);
}
},
},
mounted() { },
};
mounted() {},
};
</script>
<style>
.listRegistration .content .searchInput {
.listRegistration .content .searchInput {
border: 1px solid #dcdfe6;
border-radius: 4px;
}
}
.listRegistration .app-image {
.listRegistration .app-image {
background-position: center center;
width: 50px;
height: 50px;
border-radius: 0%;
float: left;
margin-right: 8px;
}
}
.listRegistration .content .searchInput .el-input__inner {
.listRegistration .content .searchInput .el-input__inner {
border: none;
outline: none;
height: 30px;
line-height: 30px;
}
}
.listRegistration .content .searchInput {
.listRegistration .content .searchInput {
line-height: normal;
display: inline-table;
width: 100%;
......@@ -426,12 +427,13 @@ export default {
border-spacing: 0;
width: 250px;
margin-right: 20px;
}
}
.listRegistration .content {
.listRegistration .content {
background: #fff;
margin-top: 10px;
padding: 20px;
box-sizing: border-box;
}
}
</style>
......@@ -438,11 +438,9 @@ export default {
// 详情
seeDetail(row, UserName, item) {
this.detailDialog = true;
// let data = JSON.parse(row.Content);
this.seeData = row;
this.UserName = UserName
this.information = item
console.log('llllllllllllllllllllll', row);
},
ChangeListName(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