Commit efb6cd8b authored by 黄奎's avatar 黄奎

页面修改

parent f3dd7192
...@@ -282,8 +282,8 @@ ...@@ -282,8 +282,8 @@
<!-- 选择运费 --> <!-- 选择运费 -->
<el-dialog title="选择运费" top="2%" :modal="false" :modal-append-to-body='false' :visible.sync="isShowFreight" <el-dialog title="选择运费" top="2%" :modal="false" :modal-append-to-body='false' :visible.sync="isShowFreight"
width="25%"> width="25%">
<div> <div style="height:300px;overflow-y:auto">
<el-radio-group v-model="val"> <el-radio-group v-model="freightval">
<el-radio @change="chooseFreight" class="yfradio" v-for="(item,index) in freightRuleList" :key="index" <el-radio @change="chooseFreight" class="yfradio" v-for="(item,index) in freightRuleList" :key="index"
:label="item"> :label="item">
{{item.RulesName}}</el-radio> {{item.RulesName}}</el-radio>
...@@ -296,15 +296,14 @@ ...@@ -296,15 +296,14 @@
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: "quickBuy", name: "serviceProduct",
data() { data() {
return { return {
isShowFreight: false, //是否显示运费设置弹窗 isShowFreight: false, //是否显示运费设置弹窗
isShowBatchEdit: false, //是否显示批量设置弹窗 isShowBatchEdit: false, //是否显示批量设置弹窗
val: '', freightval: '', //运费选择
dateList: [], //查询时间段 dateList: [], //查询时间段
activeName: 'first', activeName: 'first',
msg: { msg: {
...@@ -338,11 +337,6 @@ ...@@ -338,11 +337,6 @@
UpdateType: 1, UpdateType: 1,
}, },
rules: { rules: {
CategoryIdNew: [{
required: true,
message: '分类不能为空',
trigger: 'change'
}],
Sort: [{ Sort: [{
required: true, required: true,
message: '请输入排序', message: '请输入排序',
...@@ -491,29 +485,28 @@ ...@@ -491,29 +485,28 @@
} }
let idList = []; let idList = [];
this.GoodsIds.forEach(item => { this.GoodsIds.forEach(item => {
idList.push(item.Id) idList.push(item.Id);
}) })
this.keepGoodsIds = idList.join(','); this.keepGoodsIds = idList.join(',');
this.plszMsg.GoodsIds = this.keepGoodsIds; this.plszMsg.GoodsIds = this.keepGoodsIds;
this.plszMsg.SupplierId = '' this.plszMsg.SupplierId = '';
this.isShowBatchEdit = true; this.isShowBatchEdit = true;
}, },
//清空批量设置类型
ClearSelect(type) { ClearSelect(type) {
this.plszMsg = { this.plszMsg.GoodsIds = this.keepGoodsIds;
GoodsIds: this.keepGoodsIds, this.plszMsg.Type = type;
Type: type, this.plszMsg.FreightId = 0;
FreightId: 0, this.plszMsg.LimitBuyGoodsNum = -1;
LimitBuyGoodsNum: -1, this.plszMsg.LimitBuyOrderNum = -1;
LimitBuyOrderNum: -1, this.plszMsg.IntegralPresent = 0;
IntegralPresent: 0, this.plszMsg.PointsDeduction = 0;
IntegralPresentType: 2, this.plszMsg.IntegralPresentType = 2;
PointsDeduction: 0, this.plszMsg.PointsDeductionType = 2;
PointsDeductionType: 2, this.plszMsg.IsMultipleDeduction = 2;
IsMultipleDeduction: 2, this.plszMsg.IsQuickBuy = 2;
IsQuickBuy: 2, this.plszMsg.IsGoodsNegotiable = 2;
IsGoodsNegotiable: 2, this.plszMsg.SupplierId = '';
SupplierId: ''
}
}, },
//运费选中 //运费选中
chooseFreight(val) { chooseFreight(val) {
...@@ -550,13 +543,9 @@ ...@@ -550,13 +543,9 @@
str = "是否确认删除选中的商品?"; str = "是否确认删除选中的商品?";
} }
let that = this; let that = this;
that.$confirm(str, '提示', { that.Confirm(str, function () {
confirmButtonText: '确定', that.commonSet(msg);
cancelButtonText: '取消', });
type: 'warning'
}).then(() => {
this.commonSet(msg);
}).catch(() => {});
}, },
Edit(row, num) { Edit(row, num) {
let editMsg = { let editMsg = {
...@@ -689,6 +678,7 @@ ...@@ -689,6 +678,7 @@
} }
}) })
}, },
//获取运费规则
getRule() { getRule() {
let qRuleMsg = { let qRuleMsg = {
pageIndex: 1, pageIndex: 1,
......
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