813b166e
wesley88
1
|
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
|
<TitleWithCircle title="审核结果"/>
<div style="padding: 20px;">
<el-form :model="info" label-width="100px" class="demo-ruleForm">
<el-form-item label="状态">
<div class="duiqi">{{info.auditStatus=='2'?'已通过':info.auditStatus=='3'?'不通过':'无'}}</div>
</el-form-item>
<el-form-item label="审核意见">
<div class="duiqi">{{info.auditSuggestions || '无'}}</div>
</el-form-item>
</el-form>
</div>
</div>
<div>
<el-button v-if="info.auditStatus == 1 && issp == '2'" @click="minSev"
style="background-color: #3F9B6A;color: #fff;">确定</el-button>
<el-button class="buttonHover"
style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;margin-top: 20px;"
@click="changetype">返回</el-button>
</div>
</div>
</template>
<script>
import {
queryByContractcontractNumber
} from '../../api/commodityLease.js'
import {
businessListGetById
} from '../../api/business.js'
import TitleWithCircle from '@/components/top/index';
import MapXian from "@/components/MapContainer/MapXian";
import {
cerePlatformMerchant
} from '@/api/newly.js'
import {
msgedit,
} from '@/api/cereBusinessInfo'
import allimg from '@/components/chakan/allimg.vue';
import newmap from "@/components/newmap/index";
import indexall from "@/components/newmap/indexall";
export default {
components: {
TitleWithCircle,
MapXian,
newmap,
allimg,
indexall
},
props: {
info: {
type: Object,
default: function() {
return {}; // 返回一个空数组作为默认值
},
},
issp: {
type: String,
default: function() {
return '1';
},
},
},
data() {
return {
radio: '2',
url: '',
type: '1',
tableData: [],
xiangTab: 'first',
siteIds: [],
list: [],
advIds: [],
shopIds: [],
shop: {},
newshop: {},
newinfo: {},
parentMessage: {},
pagequery: {
pageNumber: 0,
pageSize: 10,
checkState:'2',
phone: '',
},
shopMsg:{}
}
},
created() {
console.log(this.info)
this.pagequery.phone = this.info.phone
cerePlatformMerchant(this.pagequery).then(res=>{
this.shopMsg = res.data.content[0]
})
},
computed: {
},
methods: {
minSev() {
console.error(this.info)
console.error(this.radio)
msgedit({
id: this.info.id,
'auditStatus': this.radio,
auditSuggestions: this.info.auditSuggestions
}).then(res => {
console.error(res)
if (res.code == 200) {
this.$message({
message: '处理成功',
type: 'success'
})
this.info.auditStatus = this.radio
} else {
this.$message({
message: '处理失败',
type: 'error'
})
}
})
},
openfile(e) {
if (e) {
const fullUrl = this.$baseURL + e;
try {
window.open(fullUrl, '_blank'); // 在新标签页中打开文件
} catch (error) {
console.error('打开文件失败:', error);
}
} else {
console.error('无文件可查看');
}
},
changetype() {
this.xiangTab = 'first'
if (this.type == '1') {
this.$emit('removeonaction', '1')
} else {
this.type = '1'
}
},
open(row) {
console.error(row)
this.type = '2'
this.newinfo = row
businessListGetById({
shopId: row.relatedMerchants
}).then(res => {
console.log(res)
this.newshop = res.data
})
},
closeFn() {
this.$emit('change', false);
},
}
}
</script>
<style>
.el-form-item__label {
color: #a2a2a2;
}
.greens {
color: #3F9B6A;
}
</style>
|