zhao
2021-07-19 8347f2fbddbd25369359dcb2da1233ac48a19fdc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@{
    Layout = "~/Views/Shared/_LayoutVue.cshtml";
    ViewBag.Title = "DeliverDetail";
}
<div id="deliverDetail" v-cloak>
    <el-card class="box-card">
        <el-form label-width="90px" v-bind:model="formData" class="demo-ruleForm" v-bind:inline="true">
            <el-form-item label="发货通知单:">
                <el-input v-model="formData.opNo" size="mini"></el-input>
            </el-form-item>
            <el-form-item label="唯一码:">
                <el-input v-model="formData.uniqueCode" size="mini"></el-input>
            </el-form-item>
            <el-button style="margin-top:2px;" size="mini" type="primary" v-on:click="search">查 询</el-button>
        </el-form>
    </el-card>
    <hh-table v-bind:coloptions="outCols"
              v-bind:paging="false"
              v-bind:single="true"
              v-bind:check="true"
              v-bind:where="where"
              v-bind:url="outUrl"
              ref="outlist"
              v-bind:dh="tableHeight"></hh-table>
</div>
 
@section scripts{
    <script>
        new Vue({
            el: '#deliverDetail',
            mixins: [useAutoHeight],
            computed: {
                tableHeight: function () {
                    return this.autoHeight - 455;
                },
            },
            data: {
                outUrl: "@Url.Action("DeliverGoodsDetail")",
                where: {},
                opNo: "",
                formData: {
                    opNo: "",
                    uniqueCode: ""
                },
                outCols: [
                    { f: "CN_S_UNIQUE_CODE", w: 190, n: "唯一码" },
                    { f: "CN_S_ITEM_CODE", w: 130, n: "物料编码" },
                    { f: "CN_S_ITEM_STATE", n: "物料状态" },
                    { f: "CN_S_ITEM_NAME", n: "物料名称" },
                    { f: "CN_F_QUANTITY", n: "数量" },
                    { f: "CN_S_MEASURE_UNIT", n: "计量单位" },
                    { f: "CN_S_PACKING_UNIT", n: "包装单位" },
                    { f: "CN_F_PACKING_QTY", n: "包装数量" },
                    { f: "CN_S_OP_NO", n: "发货通知单", w: 110 },
                    { f: "CN_S_OP_TYPE", n: "业务类型", w: 75 },
                    { f: "CN_S_CUSTOMER_NAME", n: "客户名称" },
                    { f: "CN_S_STATE", n: "状态", w: 60 },
                ],
            },
            methods: {
                search: function () {
                    this.$refs.outlist.loadData(this.formData);
                }
            }
        });
    </script>
}