Commit 2ff2eb53 by 刘泽奇

123

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