Commit d3730fda by 刘泽奇

123

parent a229fc8c
...@@ -825,6 +825,14 @@ ...@@ -825,6 +825,14 @@
</div> </div>
</el-form> </el-form>
</div> </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"> <span slot="footer" class="dialog-footer">
<el-button @click="submitEdit(headerInfo)" <el-button @click="submitEdit(headerInfo)"
style="width:140px;height:36px;background:rgba(38,146,255,1);border-radius:4px;color:#fff;"> style="width:140px;height:36px;background:rgba(38,146,255,1);border-radius:4px;color:#fff;">
......
...@@ -322,7 +322,9 @@ ...@@ -322,7 +322,9 @@
channelUserId: this.$root.channelUserId, channelUserId: this.$root.channelUserId,
deliveryOrderNo: this.deliveryOrderNo, deliveryOrderNo: this.deliveryOrderNo,
} }
} },
showConfrim: false,
agree: false,
} }
}, },
mounted: function() { mounted: function() {
...@@ -1335,7 +1337,7 @@ ...@@ -1335,7 +1337,7 @@
this.checkedNcl = []; this.checkedNcl = [];
this.nclSearch(); this.nclSearch();
}, },
submitEdit(v){ submitEdit(v, agree){
console.log(v); console.log(v);
switch (v) { switch (v) {
...@@ -1370,18 +1372,19 @@ ...@@ -1370,18 +1372,19 @@
this.editNcl.nclOneCodes = this.nclOne[0].code; this.editNcl.nclOneCodes = this.nclOne[0].code;
this.editNcl.nclSmallCodes = this.nclOne[0].nclThree; this.editNcl.nclSmallCodes = this.nclOne[0].nclThree;
console.log(this.nclInfo, this.nclOne, this.editNcl, `xxxxxxxxxxxxxxxxxxxxxxxx`); console.log(this.nclInfo, this.nclOne, this.editNcl, `xxxxxxxxxxxxxxxxxxxxxxxx`);
if (this.nclOne.length > 0) { if (this.nclOne.length > 0) {
if (this.nclOne[0].nclThree.length < 10) { if (this.nclOne[0].nclThree.length < 10) {
this.message.show = !this.message.show; this.nclSelected = this.nclOne[0].nclThree.length;
this.message.info = "小类必须选择10项"; this.showConfrim = true;
var timer3 = setTimeout(() => { if (agree) {
this.message.show = false; this.agree = agree;
clearTimeout(timer3); this.showConfrim = false;
}, 2000); this.$root.loading = true;
return; }else{
}else{ return;
this.$root.loading = true; }
} }
} }
var obj = this.$root.copyParams(this.editNcl, "updateNclInfo", "/action/tmOrder/springBoard", "yes", "yes"); var obj = this.$root.copyParams(this.editNcl, "updateNclInfo", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => { this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
...@@ -1470,7 +1473,11 @@ ...@@ -1470,7 +1473,11 @@
default: default:
break; break;
} }
},
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