Commit 3fa587438fc5d8432f26f7976e7f5e8548b56fad

Authored by 史婷婷
1 parent d6e7e922

feat: 资信管理-新增

... ... @@ -101,7 +101,7 @@
101 101 <uni-easyinput type="textarea" v-model="form.businessScope" placeholder="请输入经营范围" :inputBorder="false" />
102 102 </template>
103 103 </uni-list-item>
104   -
  104 +
105 105 <!-- 核心人员 -->
106 106 <CorePersonnel mode="add" :dateBase="form.corePersonnelList" @change="onCorePersonnelChange"
107 107 :options="genderOptions" />
... ... @@ -537,13 +537,22 @@ export default {
537 537 }
538 538 },
539 539 onCorePersonnelChange(data) {
540   - const list = Array.isArray(data) ? data : []
  540 + const list = Array.isArray(data) ? data : [];
  541 + console.log('onCorePersonnelChange__list', list);
541 542 this.form.corePersonnelList = list
542 543 },
543 544 async onSubmit() {
544 545 if (!this.validateRequired()) return
545   - const payload = { ...this.form }
546   - console.log('onSubmit__payload', payload);
  546 + const payload = {
  547 + ...this.form,
  548 + status: 'AUDIT'
  549 + }
  550 + console.log('onSubmit__payload_1', payload);
  551 + payload.corePersonnelList.forEach(it => {
  552 + delete it.collapsed;
  553 + delete it.sexName;
  554 + })
  555 + console.log('onSubmit__payload_2', payload);
547 556 delete payload.enterpriseTypeName
548 557 delete payload.suggestedCategoryName
549 558 delete payload.companyIdName
... ...
... ... @@ -97,7 +97,6 @@
97 97 <view class="row"><text class="label">行业</text><text class="value">{{ item.industry }}</text></view>
98 98 <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view>
99 99 <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view>
100   - <view class="row"><text class="label">规格</text><text class="value">{{ item.specDisplay }}</text></view>
101 100 <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
102 101 <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view>
103 102 <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice)
... ... @@ -257,7 +256,7 @@ export default {
257 256 this.$set(this.items, idx, it)
258 257 },
259 258 emitChange() {
260   - const out = this.items.map(it => ({ ...it, specDisplay: this.specOf(it) }))
  259 + const out = this.items.map(it => ({ ...it }))
261 260 this.$emit('input', out)
262 261 this.$emit('update:value', out)
263 262 this.$emit('change', out)
... ...