Commit d3730fda by 刘泽奇

123

parent a229fc8c
......@@ -825,6 +825,14 @@
</div>
</el-form>
</div>
<el-dialog title="提示" :visible.sync="showConfrim" width="30%" style="z-Index:9999;" append-to-body>
<span v-if="showConfrim">{{nclOne[0].code}}类{{nclOne[0].name}},商品/服务项目<span
style="color:red;">不足10项</span>,已选{{nclSelected}}项,还可选{{10-nclSelected}}个小项</span>
<span slot="footer" class="dialog-footer">
<el-button @click="closeConfrim()">取 消</el-button>
<el-button type="primary" @click="submitEdit(\'商标类别\',true)">确 定</el-button>
</span>
</el-dialog>
<span slot="footer" class="dialog-footer">
<el-button @click="submitEdit(headerInfo)"
style="width:140px;height:36px;background:rgba(38,146,255,1);border-radius:4px;color:#fff;">
......
......@@ -322,7 +322,9 @@
channelUserId: this.$root.channelUserId,
deliveryOrderNo: this.deliveryOrderNo,
}
}
},
showConfrim: false,
agree: false,
}
},
mounted: function() {
......@@ -1335,7 +1337,7 @@
this.checkedNcl = [];
this.nclSearch();
},
submitEdit(v){
submitEdit(v, agree){
console.log(v);
switch (v) {
......@@ -1370,17 +1372,18 @@
this.editNcl.nclOneCodes = this.nclOne[0].code;
this.editNcl.nclSmallCodes = this.nclOne[0].nclThree;
console.log(this.nclInfo, this.nclOne, this.editNcl, `xxxxxxxxxxxxxxxxxxxxxxxx`);
if (this.nclOne.length > 0) {
if (this.nclOne[0].nclThree.length < 10) {
this.message.show = !this.message.show;
this.message.info = "小类必须选择10项";
var timer3 = setTimeout(() => {
this.message.show = false;
clearTimeout(timer3);
}, 2000);
return;
}else{
this.nclSelected = this.nclOne[0].nclThree.length;
this.showConfrim = true;
if (agree) {
this.agree = agree;
this.showConfrim = false;
this.$root.loading = true;
}else{
return;
}
}
}
var obj = this.$root.copyParams(this.editNcl, "updateNclInfo", "/action/tmOrder/springBoard", "yes", "yes");
......@@ -1472,6 +1475,10 @@
}
},
closeConfrim(){
this.agree = false;
this.showConfrim = false;
},
},
......
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