diff --git a/public/components/common/addPurchaseApplyView2/addPurchaseApplyView2.html b/public/components/common/addPurchaseApplyView2/addPurchaseApplyView2.html index 07b1dbaed..d73b7f73c 100644 --- a/public/components/common/addPurchaseApplyView2/addPurchaseApplyView2.html +++ b/public/components/common/addPurchaseApplyView2/addPurchaseApplyView2.html @@ -10,41 +10,31 @@
-
- +
+
- - -
-
- +
-
+
-
+
-
+
- + \ No newline at end of file diff --git a/public/components/common/addPurchaseApplyView2/addPurchaseApplyView2.js b/public/components/common/addPurchaseApplyView2/addPurchaseApplyView2.js index 22df8560a..6cf4d677d 100644 --- a/public/components/common/addPurchaseApplyView2/addPurchaseApplyView2.js +++ b/public/components/common/addPurchaseApplyView2/addPurchaseApplyView2.js @@ -1,4 +1,4 @@ -(function (vc) { +(function(vc) { vc.extends({ propTypes: { @@ -8,9 +8,9 @@ data: { addPurchaseApplyViewInfo2: { flowComponent: 'addPurchaseApplyView2', - description:'', - endUserName:'', - endUserTel:'', + description: '', + endUserName: '', + endUserTel: '', staffId: '', staffName: '', resOrderType: '' @@ -19,47 +19,50 @@ watch: { addPurchaseApplyViewInfo2: { deep: true, - handler: function () { + handler: function() { vc.component.saveAddComplainInfo(); } } }, - _initMethod: function () { - - }, - _initEvent: function () { + _initMethod: function() { - vc.on('addPurchaseApplyViewInfo2', 'setResourcesOut', function (_resOrderType) { + }, + _initEvent: function() { + + vc.on('addPurchaseApplyViewInfo2', 'setResourcesOut', function(_resOrderType) { vc.component.addPurchaseApplyViewInfo2.resOrderType = _resOrderType; }); - vc.on("addPurchaseApplyViewInfo2", "notify", function (_param) { + vc.on("addPurchaseApplyViewInfo2", "notify", function(_param) { if (_param.hasOwnProperty("staffId")) { vc.component.addPurchaseApplyViewInfo2.staffId = _param.staffId; vc.component.addPurchaseApplyViewInfo2.staffName = _param.staffName; } }); + vc.on('addPurchaseApplyViewInfo2', 'switchOrg', function(_org) { + vc.emit('addPurchaseApplyViewInfo2', 'staffSelect2', 'setStaff', _org) + }); + // vc.on('addPurchaseApplyViewInfo2', 'setPurchaseApplyInfo', function () { // vc.emit($props.callBackListener, $props.callBackFunction, vc.component.addPurchaseApplyViewInfo2); // }); - vc.on('addPurchaseApplyViewInfo2', 'onIndex', function (_index) { + vc.on('addPurchaseApplyViewInfo2', 'onIndex', function(_index) { vc.component.addPurchaseApplyViewInfo2.index = _index; }); - vc.on("addPurchaseApplyViewInfo2", "clear", function (_param) { + vc.on("addPurchaseApplyViewInfo2", "clear", function(_param) { vc.component.addPurchaseApplyViewInfo2.description = ''; vc.component.addPurchaseApplyViewInfo2.endUserName = ''; vc.component.addPurchaseApplyViewInfo2.endUserTel = ''; }); }, methods: { - addComplainValidate: function () { + addComplainValidate: function() { return vc.validate.validate({ addPurchaseApplyViewInfo2: vc.component.addPurchaseApplyViewInfo2 }, { - 'addPurchaseApplyViewInfo2.description': [ - { + 'addPurchaseApplyViewInfo2.description': [{ limit: "required", param: "", errInfo: "申请说明不能为空" @@ -70,8 +73,7 @@ errInfo: "申请说明不能超过200位" }, ], - 'addPurchaseApplyViewInfo2.endUserName': [ - { + 'addPurchaseApplyViewInfo2.endUserName': [{ limit: "required", param: "", errInfo: "联系人不能为空" @@ -82,8 +84,7 @@ errInfo: "联系人不能超过50位" }, ], - 'addPurchaseApplyViewInfo2.endUserTel': [ - { + 'addPurchaseApplyViewInfo2.endUserTel': [{ limit: "required", param: "", errInfo: "联系电话不能为空" @@ -97,12 +98,11 @@ }); }, - addComplainValidate2: function () { + addComplainValidate2: function() { return vc.validate.validate({ addPurchaseApplyViewInfo2: vc.component.addPurchaseApplyViewInfo2 }, { - 'addPurchaseApplyViewInfo2.description': [ - { + 'addPurchaseApplyViewInfo2.description': [{ limit: "required", param: "", errInfo: "申请说明不能为空" @@ -113,8 +113,7 @@ errInfo: "申请说明不能超过200位" }, ], - 'addPurchaseApplyViewInfo2.endUserName': [ - { + 'addPurchaseApplyViewInfo2.endUserName': [{ limit: "required", param: "", errInfo: "联系人不能为空" @@ -125,15 +124,12 @@ errInfo: "联系人不能超过50位" }, ], - 'addPurchaseApplyViewInfo2.staffId': [ - { - limit: "required", - param: "", - errInfo: "出库对象不能为空" - } - ], - 'addPurchaseApplyViewInfo2.endUserTel': [ - { + 'addPurchaseApplyViewInfo2.staffId': [{ + limit: "required", + param: "", + errInfo: "出库对象不能为空" + }], + 'addPurchaseApplyViewInfo2.endUserTel': [{ limit: "required", param: "", errInfo: "联系电话不能为空" @@ -147,19 +143,19 @@ }); }, - saveAddComplainInfo: function () { + saveAddComplainInfo: function() { if (vc.component.addPurchaseApplyViewInfo2.resOrderType == 10000 && vc.component.addComplainValidate()) { //侦听回传 vc.emit($props.callBackListener, $props.callBackFunction, vc.component.addPurchaseApplyViewInfo2); return; - } else if (vc.component.addPurchaseApplyViewInfo2.resOrderType == 20000 && vc.component.addComplainValidate2()){ + } else if (vc.component.addPurchaseApplyViewInfo2.resOrderType == 20000 && vc.component.addComplainValidate2()) { //侦听回传 vc.emit($props.callBackListener, $props.callBackFunction, vc.component.addPurchaseApplyViewInfo2); - }else{ + } else { vc.emit($props.callBackListener, $props.callBackFunction, null); } } } }); -})(window.vc); +})(window.vc); \ No newline at end of file diff --git a/public/components/common/chooseResourceStore3/chooseResourceStore3.js b/public/components/common/chooseResourceStore3/chooseResourceStore3.js index 481a813c7..4c11cd98b 100644 --- a/public/components/common/chooseResourceStore3/chooseResourceStore3.js +++ b/public/components/common/chooseResourceStore3/chooseResourceStore3.js @@ -126,7 +126,7 @@ vc.toast("请选择需要采购的物品"); return; } - var _resourceStores = []; + let _resourceStores = []; for (var i = 0; i < selectResourceStores.length; i++) { for (j = 0; j < resourceStores.length; j++) { if (selectResourceStores[i] == resourceStores[j].resId) { diff --git a/public/pages/dev/reportCustomComponentFooterManage/reportCustomComponentFooterManage.html b/public/pages/dev/reportCustomComponentFooterManage/reportCustomComponentFooterManage.html index 68ab37cf9..0c6407660 100644 --- a/public/pages/dev/reportCustomComponentFooterManage/reportCustomComponentFooterManage.html +++ b/public/pages/dev/reportCustomComponentFooterManage/reportCustomComponentFooterManage.html @@ -77,5 +77,5 @@ - + \ No newline at end of file