Commit 2ff2eb53 by 刘泽奇

123

parent 0ce9a094
......@@ -62,6 +62,14 @@
callback();
}
};
var validateIdConmpany = (rule, value, callback) => {
if (value == '') {
callback(new Error('名称不能为空'));
} else {
callback();
}
};
return {
listPath: {
path: `/${this.$root.channelName}/jdtrademark`,
......@@ -230,7 +238,7 @@
d: {},
action: "",
invoiceTaxRate: 10,
step: "2",
step: "1",
isRead: false,
steps: [
{ title: "填写基本信息" },
......@@ -244,7 +252,8 @@
{ type: 'string', required: true, message: '请选择申请类型', trigger: 'change' }
],
name: [
{ required: true, message: '请输入公司/申请人名称', trigger: 'blur' }
{ message: '请输入公司/申请人名称' },
{ validator: validateIdConmpany, trigger: 'blur' }
],
code: [
{ required: true, message: '请输入信用代码' },
......@@ -307,6 +316,7 @@
orderSubInfo: null,
totalPrices: null,
dataList: [],
options: []
}
},
computed: Vuex.mapState({
......@@ -442,6 +452,7 @@
*/
},
methods: {
getItemCode(){
var obj = this.$root.copyParams({ channelUserId: "", itemCode: "sbfu" }, "getProductListByTypeOneCode", "/action/tmOrder/springBoard");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => {
......@@ -1398,7 +1409,7 @@
localStorage.setItem("historypersonlist", ostring);
}
},
selectpersoninput(v){
selectpersoninput(v, e){
console.log(v, '11111111111111', this.apply.name);
if (v != this.apply.name) {
console.log(v, '2222222222', this.apply.name);
......@@ -1421,7 +1432,6 @@
}
});
},
setKey(name, flag){
name = name.substring(name.length - 5);
var myDate = new Date();
......
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