mrzcc лет назад: 6
Родитель
Сommit
f35e7523be

+ 0 - 41
WebService/src/main/resources/components/purchaseApplyPackage/add-purchaseApply/addPurchaseApply.html

@@ -1,41 +0,0 @@
-<div id="addPurchaseApplyModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
-     aria-hidden="true">
-    <div class="modal-dialog modal-lg">
-        <div class="modal-content">
-            <div class="modal-body">
-                <h3 class="m-t-none m-b ">采购申请</h3>
-                <div class="ibox-content">
-                    <div>
-                        <div>
-                            <div class="form-group row">
-                                <label class="col-sm-2 col-form-label">申请说明</label>
-                                <div class="col-sm-10">
-                                    <textarea v-model="addPurchaseApplyInfo.description" type="text" placeholder="请填写申请说明"
-                                              class="form-control">
-                                    </textarea>
-                                </div>
-                            </div>
-                            <ul class="nav nav-list"><li class="divider"></li></ul>
-                            <div class="btn-group-sm" id="toolbar" role="group">
-                                <a class="btn btn-success" v-on:click="openResourceStoreTableModel()"><i class="fa fa-plus"></i>选择物品</a>
-                                <a class="btn btn-danger">
-                                    <i class="fa fa-remove"></i>移除
-                                </a>
-                            </div>
-                            <table id="resource_table"></table>
-
-                            <div class="ibox-content">
-                                <button class="btn btn-primary float-right" type="button"
-                                        v-on:click="savePurchaseApplyInfo()"><i class="fa fa-check"></i>&nbsp;保存
-                                </button>
-                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
-                                        data-dismiss="modal">取消
-                                </button>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>

+ 0 - 132
WebService/src/main/resources/components/purchaseApplyPackage/add-purchaseApply/addPurchaseApply.js

@@ -1,132 +0,0 @@
-(function (vc) {
-
-    vc.extends({
-        propTypes: {
-            callBackListener: vc.propTypes.string, //父组件名称
-            callBackFunction: vc.propTypes.string //父组件监听方法
-        },
-        data: {
-            addPurchaseApplyInfo: {
-                applyOrderId: '',
-                state: '',
-                description: ''
-
-            }
-        },
-        _initMethod: function () {
-            //初始化物品表格
-            //vc.component.initResourceTable();
-        },
-        _initEvent: function () {
-            vc.on('addPurchaseApply', 'openAddPurchaseApplyModal', function () {
-                $('#addPurchaseApplyModel').modal('show');
-            });
-        },
-        methods: {
-            addPurchaseApplyValidate() {
-                return vc.validate.validate({
-                    addPurchaseApplyInfo: vc.component.addPurchaseApplyInfo
-                }, {
-                    'addPurchaseApplyInfo.state': [
-                        {
-                            limit: "required",
-                            param: "",
-                            errInfo: "订单状态不能为空"
-                        },
-                        {
-                            limit: "num",
-                            param: "",
-                            errInfo: "计算公式格式错误"
-                        },
-                    ],
-
-
-                });
-            },
-            savePurchaseApplyInfo: function () {
-                if (!vc.component.addPurchaseApplyValidate()) {
-                    vc.toast(vc.validate.errInfo);
-
-                    return;
-                }
-
-                vc.component.addPurchaseApplyInfo.communityId = vc.getCurrentCommunity().communityId;
-                //不提交数据将数据 回调给侦听处理
-                if (vc.notNull($props.callBackListener)) {
-                    vc.emit($props.callBackListener, $props.callBackFunction, vc.component.addPurchaseApplyInfo);
-                    $('#addPurchaseApplyModel').modal('hide');
-                    return;
-                }
-
-                vc.http.post(
-                    'addPurchaseApply',
-                    'save',
-                    JSON.stringify(vc.component.addPurchaseApplyInfo),
-                    {
-                        emulateJSON: true
-                    },
-                    function (json, res) {
-                        //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
-                        if (res.status == 200) {
-                            //关闭model
-                            $('#addPurchaseApplyModel').modal('hide');
-                            vc.component.clearAddPurchaseApplyInfo();
-                            vc.emit('purchaseApplyManage', 'listPurchaseApply', {});
-
-                            return;
-                        }
-                        vc.message(json);
-
-                    },
-                    function (errInfo, error) {
-                        console.log('请求失败处理');
-
-                        vc.message(errInfo);
-
-                    });
-            },
-            clearAddPurchaseApplyInfo: function () {
-                vc.component.addPurchaseApplyInfo = {
-                    state: '',
-                };
-            },
-            //初始化表格
-            initResourceTable: function () {
-                $('#resource_table').bootstrapTable({
-                    height: 350,
-                    toolbar: '#toolbar',
-                    columns: [
-                        {
-                            field: 'resId',
-                            title: '资源ID',
-                        },
-                        {
-                            field: 'resName',
-                            title: '资源名称',
-                        }, {
-                            field: 'resCode',
-                            title: '物品编码',
-                        }, {
-                            field: 'price',
-                            title: '单价',
-                        }, {
-                            field: 'stock',
-                            title: '库存'
-                        }, {
-                            field: 'quantity',
-                            title: '采购数量'
-                        },
-                        {
-                            field: 'remark',
-                            title: '备注'
-                        }
-                    ],
-                });
-            },
-            openResourceStoreTableModel:function () {
-                vc.emit('resourceStoreTable','openResourceStoreTableModal',null);
-            }
-        }
-    });
-
-})(window.vc);

+ 0 - 4
WebService/src/main/resources/components/purchaseApplyPackage/purchaseApply-manage/purchaseApplyManage.html

@@ -116,10 +116,6 @@
     </div>
 
 
-    <vc:create name="addPurchaseApply"
-               callBackListener=""
-               callBackFunction=""
-    ></vc:create>
     <vc:create name="editPurchaseApply"></vc:create>
     <vc:create name="deletePurchaseApply"></vc:create>
     <vc:create name="resourceStoreTable"></vc:create>