|
|
|
1
|
+<template>
|
|
|
|
2
|
+ <a-spin :spinning="confirmLoading">
|
|
|
|
3
|
+ <j-form-container :disabled="formDisabled">
|
|
|
|
4
|
+ <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
|
|
|
|
5
|
+ <a-row>
|
|
|
|
6
|
+ <a-col :span="12" >
|
|
|
|
7
|
+ <a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="code">
|
|
|
|
8
|
+ <a-input v-model="model.tenderInfo.code" disabled></a-input>
|
|
|
|
9
|
+ </a-form-model-item>
|
|
|
|
10
|
+ </a-col>
|
|
|
|
11
|
+ <a-col :span="12" >
|
|
|
|
12
|
+ <a-form-model-item label="标段(包)名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="tenderName">
|
|
|
|
13
|
+ <a-input v-model="model.tenderInfo.tenderName" disabled></a-input>
|
|
|
|
14
|
+ </a-form-model-item>
|
|
|
|
15
|
+ </a-col>
|
|
|
|
16
|
+ <a-col :span="12" >
|
|
|
|
17
|
+ <a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="miaoshu">
|
|
|
|
18
|
+ <a-input v-model="model.tenderInfo.miaoshu" disabled></a-input>
|
|
|
|
19
|
+ </a-form-model-item>
|
|
|
|
20
|
+ </a-col>
|
|
|
|
21
|
+ <a-col :span="12" >
|
|
|
|
22
|
+ <a-form-model-item label="品牌" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="pinpai">
|
|
|
|
23
|
+ <a-input v-model="model.tenderInfo.pinpai" disabled></a-input>
|
|
|
|
24
|
+ </a-form-model-item>
|
|
|
|
25
|
+ </a-col>
|
|
|
|
26
|
+
|
|
|
|
27
|
+ <a-col :span="12" >
|
|
|
|
28
|
+ <a-form-model-item label="计量单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jldw">
|
|
|
|
29
|
+ <a-input v-model="model.tenderInfo.jldw" disabled></a-input>
|
|
|
|
30
|
+ </a-form-model-item>
|
|
|
|
31
|
+ </a-col>
|
|
|
|
32
|
+ <a-col :span="12" >
|
|
|
|
33
|
+ <a-form-model-item label="需求数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xqsl">
|
|
|
|
34
|
+ <a-input v-model="model.tenderInfo.xqsl" disabled></a-input>
|
|
|
|
35
|
+ </a-form-model-item>
|
|
|
|
36
|
+ </a-col>
|
|
|
|
37
|
+ <a-col :span="12" >
|
|
|
|
38
|
+ <a-form-model-item label="需求交货期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xqjhq">
|
|
|
|
39
|
+ <j-date v-model="model.tenderInfo.xqjhq" style="width: 100%" disabled/>
|
|
|
|
40
|
+ </a-form-model-item>
|
|
|
|
41
|
+ </a-col>
|
|
|
|
42
|
+ <a-col :span="12" >
|
|
|
|
43
|
+ <a-form-model-item label="需求单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xqdw">
|
|
|
|
44
|
+ <a-input v-model="model.tenderInfo.xqdw" disabled ></a-input>
|
|
|
|
45
|
+ </a-form-model-item>
|
|
|
|
46
|
+ </a-col>
|
|
|
|
47
|
+
|
|
|
|
48
|
+ <a-col :span="12" >
|
|
|
|
49
|
+ <a-form-model-item label="库存数据" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="kcsj">
|
|
|
|
50
|
+ <a-input v-model="model.kcsj" disabled ></a-input>
|
|
|
|
51
|
+ </a-form-model-item>
|
|
|
|
52
|
+ </a-col>
|
|
|
|
53
|
+ <a-col :span="12" >
|
|
|
|
54
|
+ <a-form-model-item label="在途库存" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ztkf">
|
|
|
|
55
|
+ <a-input v-model="model.ztkf" disabled></a-input>
|
|
|
|
56
|
+ </a-form-model-item>
|
|
|
|
57
|
+ </a-col>
|
|
|
|
58
|
+ <a-col :span="12" >
|
|
|
|
59
|
+ <a-form-model-item label="最近中标单价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zjzbdj">
|
|
|
|
60
|
+ <a-input v-model="model.zjzbdj" disabled></a-input>
|
|
|
|
61
|
+ </a-form-model-item>
|
|
|
|
62
|
+ </a-col>
|
|
|
|
63
|
+ <a-col :span="12" >
|
|
|
|
64
|
+ <a-form-model-item label="最后一次中标时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zhzbsj">
|
|
|
|
65
|
+ <a-input v-model="model.zhzbsj" disabled></a-input>
|
|
|
|
66
|
+ </a-form-model-item>
|
|
|
|
67
|
+ </a-col>
|
|
|
|
68
|
+
|
|
|
|
69
|
+ <a-col :span="12" >
|
|
|
|
70
|
+ <a-form-model-item label="投标参考价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="tbjg">
|
|
|
|
71
|
+ <a-input-number v-model="model.tbjg" placeholder="投标参考价" style="width: 14vw" disabled></a-input-number>
|
|
|
|
72
|
+ </a-form-model-item>
|
|
|
|
73
|
+ </a-col>
|
|
|
|
74
|
+ <a-col :span="12" >
|
|
|
|
75
|
+ <a-form-model-item label="税率(%)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sl">
|
|
|
|
76
|
+ <a-input-number v-model="model.sl" placeholder="税率(%)" style="width: 14vw" ></a-input-number>
|
|
|
|
77
|
+ </a-form-model-item>
|
|
|
|
78
|
+ </a-col>
|
|
|
|
79
|
+ <a-col :span="12" >
|
|
|
|
80
|
+ <a-form-model-item label="响应品牌" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xypp">
|
|
|
|
81
|
+ <a-input v-model="model.xypp" placeholder="响应品牌" ></a-input>
|
|
|
|
82
|
+ </a-form-model-item>
|
|
|
|
83
|
+ </a-col>
|
|
|
|
84
|
+ <a-col :span="12" >
|
|
|
|
85
|
+ <a-form-model-item label="响应单价(不含税)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="xydj">
|
|
|
|
86
|
+ <a-input-number v-model="model.xydj" placeholder="响应单价(不含税)" style="width: 14vw" ></a-input-number>
|
|
|
|
87
|
+ </a-form-model-item>
|
|
|
|
88
|
+ </a-col>
|
|
|
|
89
|
+
|
|
|
|
90
|
+ </a-row>
|
|
|
|
91
|
+ </a-form-model>
|
|
|
|
92
|
+ </j-form-container>
|
|
|
|
93
|
+ </a-spin>
|
|
|
|
94
|
+</template>
|
|
|
|
95
|
+
|
|
|
|
96
|
+<script>
|
|
|
|
97
|
+
|
|
|
|
98
|
+ import { httpAction, getAction } from '@/api/manage'
|
|
|
|
99
|
+ import { validateDuplicateValue } from '@/utils/util'
|
|
|
|
100
|
+
|
|
|
|
101
|
+ export default {
|
|
|
|
102
|
+ name: 'TblTradeBidSubApprovalForm',
|
|
|
|
103
|
+ components: {
|
|
|
|
104
|
+ },
|
|
|
|
105
|
+ props: {
|
|
|
|
106
|
+ // 表单禁用
|
|
|
|
107
|
+ disabled: {
|
|
|
|
108
|
+ type: Boolean,
|
|
|
|
109
|
+ default: false,
|
|
|
|
110
|
+ required: false
|
|
|
|
111
|
+ }
|
|
|
|
112
|
+ },
|
|
|
|
113
|
+ data () {
|
|
|
|
114
|
+ return {
|
|
|
|
115
|
+ model: {
|
|
|
|
116
|
+ tenderInfo: {}
|
|
|
|
117
|
+ },
|
|
|
|
118
|
+ labelCol: {
|
|
|
|
119
|
+ xs: { span: 24 },
|
|
|
|
120
|
+ sm: { span: 5 }
|
|
|
|
121
|
+ },
|
|
|
|
122
|
+ wrapperCol: {
|
|
|
|
123
|
+ xs: { span: 24 },
|
|
|
|
124
|
+ sm: { span: 16 }
|
|
|
|
125
|
+ },
|
|
|
|
126
|
+ confirmLoading: false,
|
|
|
|
127
|
+ validatorRules: {
|
|
|
|
128
|
+ sl: [{ required: true, message: '请输入数据!' }],
|
|
|
|
129
|
+ xypp: [{ required: true, message: '请输入数据!' }],
|
|
|
|
130
|
+ xydj: [{ required: true, message: '请输入数据!' }]
|
|
|
|
131
|
+ },
|
|
|
|
132
|
+ url: {
|
|
|
|
133
|
+ edit: '/trade/tblTradeBidSub/bidApproval'
|
|
|
|
134
|
+ }
|
|
|
|
135
|
+ }
|
|
|
|
136
|
+ },
|
|
|
|
137
|
+ computed: {
|
|
|
|
138
|
+ formDisabled() {
|
|
|
|
139
|
+ return this.disabled
|
|
|
|
140
|
+ }
|
|
|
|
141
|
+ },
|
|
|
|
142
|
+ created () {
|
|
|
|
143
|
+ // 备份model原始值
|
|
|
|
144
|
+ this.modelDefault = JSON.parse(JSON.stringify(this.model))
|
|
|
|
145
|
+ },
|
|
|
|
146
|
+ methods: {
|
|
|
|
147
|
+ add () {
|
|
|
|
148
|
+ this.edit(this.modelDefault)
|
|
|
|
149
|
+ },
|
|
|
|
150
|
+ edit (record) {
|
|
|
|
151
|
+ this.model = Object.assign({}, record)
|
|
|
|
152
|
+ this.visible = true
|
|
|
|
153
|
+ },
|
|
|
|
154
|
+ handleOk () {
|
|
|
|
155
|
+ const that = this
|
|
|
|
156
|
+ // 触发表单验证
|
|
|
|
157
|
+ this.$refs.form.validate(valid => {
|
|
|
|
158
|
+ if (valid) {
|
|
|
|
159
|
+ that.confirmLoading = true
|
|
|
|
160
|
+ let httpurl = ''
|
|
|
|
161
|
+ let method = ''
|
|
|
|
162
|
+ if (!this.model.id) {
|
|
|
|
163
|
+ httpurl += this.url.add
|
|
|
|
164
|
+ method = 'post'
|
|
|
|
165
|
+ } else {
|
|
|
|
166
|
+ httpurl += this.url.edit
|
|
|
|
167
|
+ method = 'post'
|
|
|
|
168
|
+ }
|
|
|
|
169
|
+ httpAction(httpurl, this.model, method).then((res) => {
|
|
|
|
170
|
+ if (res.success) {
|
|
|
|
171
|
+ that.$message.success(res.message)
|
|
|
|
172
|
+ that.$emit('ok')
|
|
|
|
173
|
+ } else {
|
|
|
|
174
|
+ that.$message.warning(res.message)
|
|
|
|
175
|
+ }
|
|
|
|
176
|
+ }).finally(() => {
|
|
|
|
177
|
+ that.confirmLoading = false
|
|
|
|
178
|
+ })
|
|
|
|
179
|
+ }
|
|
|
|
180
|
+ })
|
|
|
|
181
|
+ }
|
|
|
|
182
|
+ }
|
|
|
|
183
|
+ }
|
|
|
|
184
|
+</script> |