|
@@ -1,224 +1,274 @@
|
1
|
1
|
<template>
|
2
|
|
- <div class="main-contain">
|
3
|
|
- <div class="position">
|
4
|
|
- <bread-crumb :crumbs="crumbs"></bread-crumb>
|
5
|
|
- <el-row style="float:right;">
|
6
|
|
- <el-col :span="24">
|
7
|
|
- <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
|
8
|
|
- </el-col>
|
9
|
|
- </el-row>
|
10
|
|
- </div>
|
11
|
|
- <div class="app-container" style="background-color: white;">
|
12
|
|
- <div id="print_content">
|
13
|
|
- <div class="print_main_content">
|
14
|
|
- <div class="order_title_panl">
|
15
|
|
- <div style="font-size:22px;font-weight:bold;">{{ orgName }}</div>
|
16
|
|
- <span style="font-weight:500;font-size:18px;">购货单</span>
|
17
|
|
- </div>
|
18
|
|
- <div style="display:flex;justify-content: space-between;">
|
19
|
|
- <div style="text-align:left;margin-bottom:1px;font-size: 18px;">
|
20
|
|
- 供应商:{{getSupplyName(supplier_id)}}
|
21
|
|
- </div>
|
22
|
|
- <div style="margin-bottom:1px;font-size: 18px;">
|
23
|
|
- 单据日期:{{rate_of_concession}}
|
24
|
|
- </div>
|
25
|
|
- <div style="margin-bottom:1px;font-size: 18px;">
|
26
|
|
- 单据编号:{{number}}
|
27
|
|
- </div>
|
28
|
|
- <div style="margin-bottom:1px;font-size: 18px;">
|
29
|
|
- 币别:RMB
|
30
|
|
- </div>
|
31
|
|
- </div>
|
32
|
|
-
|
33
|
|
- <div class="table_panel">
|
34
|
|
- <table class="table">
|
35
|
|
- <thead>
|
36
|
|
- <tr>
|
37
|
|
- <td style="line-height:18px;" width="80">序号</td>
|
38
|
|
- <td style="line-height:18px;" width="80">商品</td>
|
39
|
|
- <td style="line-height:18px;" width="80">单位</td>
|
40
|
|
- <td style="line-height:18px;" width="80">数量</td>
|
41
|
|
- <td style="line-height:18px;" width="80">购货单价</td>
|
42
|
|
- <td style="line-height:18px;" width="80">折扣率</td>
|
43
|
|
- <td style="line-height:18px;" width="80">折扣额</td>
|
44
|
|
- <td style="line-height:18px;" width="60">购物金额</td>
|
45
|
|
- <td style="line-height:18px;" width="80">仓库</td>
|
46
|
|
- </tr>
|
47
|
|
- </thead>
|
48
|
|
- <tbody>
|
49
|
|
- <tr v-for='(item,index) in tableList' :key="index">
|
50
|
|
- <td style="line-height:18px;"><span>{{index+ 1}}</span></td>
|
51
|
|
- <td style="line-height:18px;"><span>{{item.name}}</span></td>
|
52
|
|
- <td style="line-height:18px;"><span>{{item.supply_unit}}</span></td>
|
53
|
|
- <td style="line-height:18px;"><span>{{item.count}}</span></td>
|
54
|
|
- <td style="line-height:18px;"><span>{{item.price}}</span></td>
|
55
|
|
- <td style="line-height:18px;"><span>{{rate_of_concession}}</span></td>
|
56
|
|
- <td style="line-height:18px;"><span>{{discount_amount}}</span></td>
|
57
|
|
- <td style="line-height:18px;"><span>{{(item.count * item.price).toFixed(2)}}</span></td>
|
58
|
|
- <td style="line-height:18px;"><span></span></td>
|
59
|
|
- </tr>
|
60
|
|
- <tr>
|
61
|
|
- <td>合计</td>
|
62
|
|
- <td colspan="12" style="text-align:right;"></td>
|
63
|
|
- </tr>
|
64
|
|
- </tbody>
|
65
|
|
- </table>
|
|
2
|
+ <div class="main-contain">
|
|
3
|
+ <div class="position">
|
|
4
|
+ <bread-crumb :crumbs="crumbs"></bread-crumb>
|
|
5
|
+ <el-row style="float: right">
|
|
6
|
+ <el-col :span="24">
|
|
7
|
+ <el-button
|
|
8
|
+ size="small"
|
|
9
|
+ icon="el-icon-printer"
|
|
10
|
+ type="primary"
|
|
11
|
+ @click="printAction"
|
|
12
|
+ >打印</el-button
|
|
13
|
+ >
|
|
14
|
+ </el-col>
|
|
15
|
+ </el-row>
|
|
16
|
+ </div>
|
|
17
|
+ <div class="app-container" style="background-color: white">
|
|
18
|
+ <div id="print_content">
|
|
19
|
+ <div class="print_main_content">
|
|
20
|
+ <div class="order_title_panl">
|
|
21
|
+ <div style="font-size: 22px; font-weight: bold">{{ orgName }}</div>
|
|
22
|
+ <span style="font-weight: 500; font-size: 18px">购货单</span>
|
|
23
|
+ </div>
|
|
24
|
+ <div style="display: flex; justify-content: space-between">
|
|
25
|
+ <div style="text-align: left; margin-bottom: 1px; font-size: 18px">
|
|
26
|
+ 供应商:{{ getSupplyName(supplier_id) }}
|
|
27
|
+ </div>
|
|
28
|
+ <div style="margin-bottom: 1px; font-size: 18px">
|
|
29
|
+ 单据日期:{{ rate_of_concession }}
|
|
30
|
+ </div>
|
|
31
|
+ <div style="margin-bottom: 1px; font-size: 18px">
|
|
32
|
+ 单据编号:{{ number }}
|
|
33
|
+ </div>
|
|
34
|
+ <div style="margin-bottom: 1px; font-size: 18px">币别:RMB</div>
|
|
35
|
+ </div>
|
66
|
36
|
|
67
|
|
- <div style="margin-top:1px;">
|
68
|
|
- <div style="width:100px;">折扣额:</div><div style="width:100px;"></div>
|
69
|
|
- <div style="width:100px;">折扣金额:</div><div style="width:100px;"><span></span></div>
|
70
|
|
- <div style="width:100px;">本次付款:</div><div style="width:100px;"><span></span></div>
|
71
|
|
- <div style="width:100px;">本次欠款:</div><div style="width:100px;"></div>
|
72
|
|
- </div>
|
73
|
|
- <div style="margin-top:1px;">
|
74
|
|
- <div style="width:100px;">备注</div><div style="width:100px;"></div>
|
75
|
|
- </div>
|
76
|
|
- <div style="margin-top:1px;">
|
77
|
|
- <div style="width:100px;">制单人:</div><div style="width:100px;"></div>
|
78
|
|
- <div style="width:100px;">收货人签字:</div><div style="width:100px;"><span></span></div>
|
79
|
|
- <div style="width:100px;">供应商签字:</div><div style="width:100px;"><span></span></div>
|
80
|
|
- </div>
|
81
|
|
- </div>
|
82
|
|
- </div>
|
|
37
|
+ <div class="table_panel">
|
|
38
|
+ <table class="table">
|
|
39
|
+ <thead>
|
|
40
|
+ <tr>
|
|
41
|
+ <td style="line-height: 18px" width="80">序号</td>
|
|
42
|
+ <td style="line-height: 18px" width="80">商品</td>
|
|
43
|
+ <td style="line-height: 18px" width="80">单位</td>
|
|
44
|
+ <td style="line-height: 18px" width="80">数量</td>
|
|
45
|
+ <td style="line-height: 18px" width="80">购货单价</td>
|
|
46
|
+ <td style="line-height: 18px" width="80">折扣率</td>
|
|
47
|
+ <td style="line-height: 18px" width="80">折扣额</td>
|
|
48
|
+ <td style="line-height: 18px" width="60">购物金额</td>
|
|
49
|
+ <td style="line-height: 18px" width="80">仓库</td>
|
|
50
|
+ </tr>
|
|
51
|
+ </thead>
|
|
52
|
+ <tbody>
|
|
53
|
+ <tr v-for="(item, index) in tableList" :key="index">
|
|
54
|
+ <td style="line-height: 18px">
|
|
55
|
+ <span>{{ index + 1 }}</span>
|
|
56
|
+ </td>
|
|
57
|
+ <td style="line-height: 18px">
|
|
58
|
+ <span>{{ item.name }}</span>
|
|
59
|
+ </td>
|
|
60
|
+ <td style="line-height: 18px">
|
|
61
|
+ <span>{{ item.supply_unit }}</span>
|
|
62
|
+ </td>
|
|
63
|
+ <td style="line-height: 18px">
|
|
64
|
+ <span>{{ item.count }}</span>
|
|
65
|
+ </td>
|
|
66
|
+ <td style="line-height: 18px">
|
|
67
|
+ <span>{{ item.price }}</span>
|
|
68
|
+ </td>
|
|
69
|
+ <td style="line-height: 18px">
|
|
70
|
+ <span>{{ rate_of_concession }}</span>
|
|
71
|
+ </td>
|
|
72
|
+ <td style="line-height: 18px">
|
|
73
|
+ <span>{{ discount_amount }}</span>
|
|
74
|
+ </td>
|
|
75
|
+ <td style="line-height: 18px">
|
|
76
|
+ <span>{{ (item.count * item.price).toFixed(2) }}</span>
|
|
77
|
+ </td>
|
|
78
|
+ <td style="line-height: 18px"><span></span></td>
|
|
79
|
+ </tr>
|
|
80
|
+ <tr>
|
|
81
|
+ <td>合计</td>
|
|
82
|
+ <td colspan="12" style="text-align: right"></td>
|
|
83
|
+ </tr>
|
|
84
|
+ </tbody>
|
|
85
|
+ </table>
|
|
86
|
+
|
|
87
|
+ <!-- <div style="margin-top: 1px">
|
|
88
|
+ <div style="width: 100px">折扣额:</div>
|
|
89
|
+ <div style="width: 100px"></div>
|
|
90
|
+ <div style="width: 100px">折扣金额:</div>
|
|
91
|
+ <div style="width: 100px"><span></span></div>
|
|
92
|
+ <div style="width: 100px">本次付款:</div>
|
|
93
|
+ <div style="width: 100px"><span></span></div>
|
|
94
|
+ <div style="width: 100px">本次欠款:</div>
|
|
95
|
+ <div style="width: 100px"></div>
|
|
96
|
+ </div>
|
|
97
|
+ <div style="margin-top: 1px">
|
|
98
|
+ <div style="width: 100px">备注</div>
|
|
99
|
+ <div style="width: 100px"></div>
|
83
|
100
|
</div>
|
|
101
|
+ <div style="margin-top: 1px">
|
|
102
|
+ <div style="width: 100px">制单人:</div>
|
|
103
|
+ <div style="width: 100px"></div>
|
|
104
|
+ <div style="width: 100px">收货人签字:</div>
|
|
105
|
+ <div style="width: 100px"><span></span></div>
|
|
106
|
+ <div style="width: 100px">供应商签字:</div>
|
|
107
|
+ <div style="width: 100px"><span></span></div>
|
|
108
|
+ </div> -->
|
|
109
|
+ <div class="description">
|
|
110
|
+ <div class="content">折扣额:</div>
|
|
111
|
+ <div class="content">折扣金额:</div>
|
|
112
|
+ <div class="content">本次付款:</div>
|
|
113
|
+ <div class="content">本次欠款:</div>
|
|
114
|
+ <div class="content_1">备注:</div>
|
|
115
|
+ <div class="content">制单人:</div>
|
|
116
|
+ <div class="content">收货人签字:</div>
|
|
117
|
+ <div class="content">供应商签字:</div>
|
|
118
|
+ </div>
|
|
119
|
+ </div>
|
84
|
120
|
</div>
|
|
121
|
+ </div>
|
85
|
122
|
</div>
|
|
123
|
+ </div>
|
86
|
124
|
</template>
|
87
|
125
|
|
88
|
126
|
<script>
|
89
|
|
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
127
|
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
90
|
128
|
|
91
|
129
|
import { fetchAllAdminUsers } from "@/api/doctor";
|
92
|
|
-import {getPurchaseOrderDetail} from "@/api/supply"
|
93
|
|
-import print from 'print-js'
|
94
|
|
-const moment = require('moment')
|
95
|
|
-import { uParseTime } from '@/utils/tools'
|
|
130
|
+import { getPurchaseOrderDetail } from "@/api/supply";
|
|
131
|
+import print from "print-js";
|
|
132
|
+import { getLodop } from "@/assets/LodopFuncs";
|
|
133
|
+const moment = require("moment");
|
|
134
|
+import { uParseTime } from "@/utils/tools";
|
96
|
135
|
export default {
|
97
|
|
- components:{
|
98
|
|
- BreadCrumb
|
|
136
|
+ components: {
|
|
137
|
+ BreadCrumb,
|
|
138
|
+ },
|
|
139
|
+ data() {
|
|
140
|
+ return {
|
|
141
|
+ size: "medium ",
|
|
142
|
+ crumbs: [
|
|
143
|
+ { path: false, name: "库存管理" },
|
|
144
|
+ { path: false, name: "耗材管理" },
|
|
145
|
+ { path: false, name: "入库单打印" },
|
|
146
|
+ ],
|
|
147
|
+ isEdit: 0,
|
|
148
|
+ checked: false,
|
|
149
|
+ signAndWeighBoxPatients: "sign-and-weigh-box-patients",
|
|
150
|
+ time_now: moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
|
|
151
|
+ orgName: "",
|
|
152
|
+ orgId: "",
|
|
153
|
+ adminUserOptions: [],
|
|
154
|
+ tableList: [],
|
|
155
|
+ number: "",
|
|
156
|
+ id: "",
|
|
157
|
+ supplier_id: "",
|
|
158
|
+ rate_of_concession: "",
|
|
159
|
+ discount_amount: "",
|
|
160
|
+ supplyList: [],
|
|
161
|
+ document_date: "",
|
|
162
|
+ };
|
|
163
|
+ },
|
|
164
|
+ methods: {
|
|
165
|
+ printAction: function () {
|
|
166
|
+ const style =
|
|
167
|
+ "@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 1px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 12px; padding: 10px 5px; white-space: pre-line;} .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }";
|
|
168
|
+ printJS({
|
|
169
|
+ printable: "print_content",
|
|
170
|
+ type: "html",
|
|
171
|
+ documentTitle: " ",
|
|
172
|
+ style: style,
|
|
173
|
+ scanStyles: false,
|
|
174
|
+ });
|
99
|
175
|
},
|
100
|
|
- data(){
|
101
|
|
- return{
|
102
|
|
- crumbs: [
|
103
|
|
- { path: false, name: '库存管理' },
|
104
|
|
- { path: false, name: '耗材管理' },
|
105
|
|
- { path: false, name: '入库单打印' },
|
106
|
|
- ],
|
107
|
|
- isEdit: 0,
|
108
|
|
- checked: false,
|
109
|
|
- signAndWeighBoxPatients: "sign-and-weigh-box-patients",
|
110
|
|
- time_now:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
|
111
|
|
- orgName:'',
|
112
|
|
- orgId:'',
|
113
|
|
- adminUserOptions:[],
|
114
|
|
- tableList:[],
|
115
|
|
- number:"",
|
116
|
|
- id:"",
|
117
|
|
- supplier_id:"",
|
118
|
|
- rate_of_concession:"",
|
119
|
|
- discount_amount:"",
|
120
|
|
- supplyList:[],
|
121
|
|
- document_date:"",
|
122
|
|
- }
|
|
176
|
+ // 打印功能
|
|
177
|
+ btnClickPrint: function () {
|
|
178
|
+ let LODOP = getLodop(); //调用getLodop获取LODOP对象
|
|
179
|
+ LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_整页缩放打印输出");
|
|
180
|
+
|
|
181
|
+ LODOP.ADD_PRINT_BARCODE(15, 15, 300, 300, "QRCode", "xxxxxxxxxxxxx");
|
|
182
|
+ LODOP.SET_PRINT_STYLEA(0, "Stretch", 1); //(可变形)扩展缩放模式
|
|
183
|
+ LODOP.PREVIEW(); //预览(预览打印无脚标)
|
|
184
|
+ // LODOP.PRINT(); //打印
|
|
185
|
+ LODOP.RINT_DESIGN();
|
123
|
186
|
},
|
124
|
|
- methods:{
|
125
|
|
- printAction: function() {
|
126
|
|
- const style = '@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 1px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 12px; padding: 10px 5px; white-space: pre-line;} .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
|
127
|
|
- printJS({
|
128
|
|
- printable: 'print_content',
|
129
|
|
- type: 'html',
|
130
|
|
- documentTitle: ' ',
|
131
|
|
- style: style,
|
132
|
|
- scanStyles: false
|
133
|
|
- })
|
134
|
|
- },
|
135
|
|
-
|
136
|
|
- getTime(val) {
|
137
|
|
- if(val < 0){
|
138
|
|
- return ""
|
139
|
|
- }
|
140
|
|
- if(val == ""){
|
141
|
|
- return ""
|
142
|
|
- }else {
|
143
|
|
- return uParseTime(val, '{y}-{m}-{d}')
|
144
|
|
- }
|
145
|
|
- },
|
146
|
|
- fetchAllAdminUsers() {
|
147
|
|
- fetchAllAdminUsers().then(response => {
|
148
|
|
- if (response.data.state == 1) {
|
149
|
|
- this.adminUserOptions = response.data.data.users
|
150
|
187
|
|
151
|
|
- }
|
152
|
|
- })
|
153
|
|
- },
|
154
|
|
- getXuserName(id) {
|
155
|
|
- if (id <= 0) {
|
156
|
|
- return "";
|
157
|
|
- }
|
158
|
|
- var name = "";
|
159
|
|
- if (
|
160
|
|
- this.adminUserOptions == null ||
|
161
|
|
- typeof this.adminUserOptions.length === "undefined"
|
162
|
|
- ) {
|
163
|
|
- return name;
|
|
188
|
+ getTime(val) {
|
|
189
|
+ if (val < 0) {
|
|
190
|
+ return "";
|
|
191
|
+ }
|
|
192
|
+ if (val == "") {
|
|
193
|
+ return "";
|
|
194
|
+ } else {
|
|
195
|
+ return uParseTime(val, "{y}-{m}-{d}");
|
|
196
|
+ }
|
|
197
|
+ },
|
|
198
|
+ fetchAllAdminUsers() {
|
|
199
|
+ fetchAllAdminUsers().then((response) => {
|
|
200
|
+ if (response.data.state == 1) {
|
|
201
|
+ this.adminUserOptions = response.data.data.users;
|
164
|
202
|
}
|
165
|
|
- var leng = this.adminUserOptions.length;
|
166
|
|
- if (leng == 0) {
|
167
|
|
- return name;
|
|
203
|
+ });
|
|
204
|
+ },
|
|
205
|
+ getXuserName(id) {
|
|
206
|
+ if (id <= 0) {
|
|
207
|
+ return "";
|
|
208
|
+ }
|
|
209
|
+ var name = "";
|
|
210
|
+ if (
|
|
211
|
+ this.adminUserOptions == null ||
|
|
212
|
+ typeof this.adminUserOptions.length === "undefined"
|
|
213
|
+ ) {
|
|
214
|
+ return name;
|
|
215
|
+ }
|
|
216
|
+ var leng = this.adminUserOptions.length;
|
|
217
|
+ if (leng == 0) {
|
|
218
|
+ return name;
|
|
219
|
+ }
|
|
220
|
+ for (let index = 0; index < leng; index++) {
|
|
221
|
+ if (this.adminUserOptions[index].id == id) {
|
|
222
|
+ name = this.adminUserOptions[index].name;
|
|
223
|
+ break;
|
168
|
224
|
}
|
169
|
|
- for (let index = 0; index < leng; index++) {
|
170
|
|
- if (this.adminUserOptions[index].id == id) {
|
171
|
|
- name = this.adminUserOptions[index].name;
|
172
|
|
- break;
|
|
225
|
+ }
|
|
226
|
+ return name;
|
|
227
|
+ },
|
|
228
|
+ getPurchaseOrderDetail() {
|
|
229
|
+ var id = this.$route.query.id;
|
|
230
|
+ getPurchaseOrderDetail(id).then((response) => {
|
|
231
|
+ if (response.data.state == 1) {
|
|
232
|
+ var info = response.data.data.info;
|
|
233
|
+ this.is_check = info.is_check;
|
|
234
|
+ this.number = info.number;
|
|
235
|
+ this.id = info.id;
|
|
236
|
+ this.supplier_id = info.supplier_id;
|
|
237
|
+ this.rate_of_concession = info.rate_of_concession;
|
|
238
|
+ this.discount_amount = info.discount_amount;
|
|
239
|
+ this.document_date = info.document_date;
|
|
240
|
+ var orderInfo = response.data.data.orderInfo;
|
|
241
|
+ var supplyList = response.data.data.supplyList;
|
|
242
|
+ this.supplyList = supplyList;
|
|
243
|
+ for (let i = 0; i < orderInfo.length; i++) {
|
|
244
|
+ orderInfo[i].supply_count = orderInfo[i].count;
|
|
245
|
+ orderInfo[i].supply_price = orderInfo[i].price;
|
|
246
|
+ orderInfo[i].supply_remake = orderInfo[i].remark;
|
|
247
|
+ orderInfo[i].type = orderInfo[i].is_source;
|
|
248
|
+ orderInfo[i].project_id = orderInfo[i].project_id;
|
173
|
249
|
}
|
|
250
|
+ console.log("orderINFO23323232", orderInfo);
|
|
251
|
+ this.tableList = orderInfo;
|
174
|
252
|
}
|
175
|
|
- return name;
|
176
|
|
- },
|
177
|
|
- getPurchaseOrderDetail(){
|
178
|
|
- var id = this.$route.query.id
|
179
|
|
- getPurchaseOrderDetail(id).then(response=>{
|
180
|
|
- if(response.data.state == 1){
|
181
|
|
- var info = response.data.data.info
|
182
|
|
- this.is_check = info.is_check
|
183
|
|
- this.number = info.number
|
184
|
|
- this.id = info.id
|
185
|
|
- this.supplier_id = info.supplier_id
|
186
|
|
- this.rate_of_concession = info.rate_of_concession
|
187
|
|
- this.discount_amount = info.discount_amount
|
188
|
|
- this.document_date = info.document_date
|
189
|
|
- var orderInfo = response.data.data.orderInfo
|
190
|
|
- var supplyList = response.data.data.supplyList
|
191
|
|
- this.supplyList = supplyList
|
192
|
|
- for(let i=0;i<orderInfo.length;i++){
|
193
|
|
- orderInfo[i].supply_count = orderInfo[i].count
|
194
|
|
- orderInfo[i].supply_price = orderInfo[i].price
|
195
|
|
- orderInfo[i].supply_remake = orderInfo[i].remark
|
196
|
|
- orderInfo[i].type = orderInfo[i].is_source
|
197
|
|
- orderInfo[i].project_id = orderInfo[i].project_id
|
198
|
|
- }
|
199
|
|
- console.log("orderINFO23323232",orderInfo)
|
200
|
|
- this.tableList = orderInfo
|
201
|
|
- }
|
202
|
|
- })
|
|
253
|
+ });
|
203
|
254
|
},
|
204
|
|
- getSupplyName(id){
|
205
|
|
- var name = ""
|
206
|
|
- for(let i=0;i<this.supplyList.length;i++){
|
207
|
|
- if(id == this.supplyList[i].id){
|
208
|
|
- name = this.supplyList[i].supplier_name
|
|
255
|
+ getSupplyName(id) {
|
|
256
|
+ var name = "";
|
|
257
|
+ for (let i = 0; i < this.supplyList.length; i++) {
|
|
258
|
+ if (id == this.supplyList[i].id) {
|
|
259
|
+ name = this.supplyList[i].supplier_name;
|
209
|
260
|
}
|
210
|
261
|
}
|
211
|
|
- return name
|
|
262
|
+ return name;
|
212
|
263
|
},
|
213
|
|
- },
|
214
|
|
- created(){
|
215
|
|
- this.orgName = this.$store.getters.xt_user.org.org_name;
|
216
|
|
- this.orgId = this.$store.getters.xt_user.org.id;
|
217
|
|
- this.fetchAllAdminUsers()
|
218
|
|
- this.getPurchaseOrderDetail()
|
219
|
|
-
|
220
|
|
- }
|
221
|
|
-}
|
|
264
|
+ },
|
|
265
|
+ created() {
|
|
266
|
+ this.orgName = this.$store.getters.xt_user.org.org_name;
|
|
267
|
+ this.orgId = this.$store.getters.xt_user.org.id;
|
|
268
|
+ this.fetchAllAdminUsers();
|
|
269
|
+ this.getPurchaseOrderDetail();
|
|
270
|
+ },
|
|
271
|
+};
|
222
|
272
|
</script>
|
223
|
273
|
|
224
|
274
|
|
|
@@ -244,7 +294,6 @@ export default {
|
244
|
294
|
border: 1px solid;
|
245
|
295
|
border-collapse: collapse;
|
246
|
296
|
padding: 2px;
|
247
|
|
-
|
248
|
297
|
|
249
|
298
|
thead {
|
250
|
299
|
tr {
|
|
@@ -289,4 +338,21 @@ export default {
|
289
|
338
|
}
|
290
|
339
|
}
|
291
|
340
|
}
|
|
341
|
+
|
|
342
|
+.description {
|
|
343
|
+ width: 100%;
|
|
344
|
+ display: flex;
|
|
345
|
+ flex: 1;
|
|
346
|
+ justify-content: flex-start;
|
|
347
|
+ flex-wrap: wrap;
|
|
348
|
+ .content {
|
|
349
|
+ width: 25%;
|
|
350
|
+ }
|
|
351
|
+ .content_1 {
|
|
352
|
+ width: 100%;
|
|
353
|
+ }
|
|
354
|
+ // .content_2{
|
|
355
|
+ // width: 33%;
|
|
356
|
+ // }
|
|
357
|
+}
|
292
|
358
|
</style>
|