Lou
2024-02-26 7fb500ef63955422050055b2e75245780b3ba925
update
2 files modified
72 ■■■■ changed files
subPackage/workbench/views/cscj.vue 55 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/editCscj.vue 17 ●●●●● patch | view | raw | blame | history
subPackage/workbench/views/cscj.vue
@@ -62,18 +62,7 @@
                        </u-input>
                        <u-icon slot="right" name="arrow-right"></u-icon>
                    </u-form-item>
                    <!-- <view v-if="showLabelList.length" class="label" style="border-bottom:1px solid eff1f3;">
                        <view v-for="(item,index) in showLabelList" :key="index" class="activeLabel">
                            <u-tag :closable="currentId?false:true" :show="!item.isClose" size="mini"
                                @close="delTag(item)" :text="item.text"></u-tag>
                        </view>
                    </view> -->
                    <!-- <view v-if="categoryValue.length" class="label" style="border-bottom:1px solid eff1f3;">
                        <view v-for="(item,index) in categoryValue" :key="index" class="activeLabel">
                            <u-tag :closable="currentId?false:true"  size="mini"
                                @close="delTag()" :text="item.categoryName"></u-tag>
                        </view>
                    </view> -->
                    <u-form-item class="form-item" labelWidth="100" label="备注:" prop="remark">
                        <u--input v-if="!currentId" border="none" v-model="form.remark" placeholder="请输入">
                        </u--input>
@@ -521,6 +510,7 @@
                this.currentId = option.id;
            }
            if (option.houseCode) {
                console.log(111)
                this.houseCode = option.houseCode
                this.form.houseCode = option.houseCode
            }
@@ -749,7 +739,7 @@
                        })
                        return
                    }
                    this.houseCode = data.houseCode;
                    // this.houseCode = data.houseCode;
                    const dpaEntity = data?.doorplateAddressEntity || {}
                    const gridEntity = data?.grid || {}
                    // this.form.buildingCode = dpaEntity?.buildingCode || ''
@@ -881,6 +871,11 @@
            //表单提交
            submit() {
                if (this.houseCode && !this.form.houseCode) {
                    this.form.houseCode = this.houseCode;
                }
                if (!this.form.placeName) {
                    this.$showTips("请输入场所名称")
                    return
@@ -900,6 +895,8 @@
                        urls.push(e.name)
                    })
                    this.form.imageUrls = urls.join(",")
                } else {
                    this.form.imageUrls = ""
                }
                this.form.roleName = uni.getStorageSync("activeRole").roleName;
@@ -919,11 +916,7 @@
                    this.$showTips("请选择阵地类型")
                    return
                }
                delete this.form.images;
                add(this.form).then(res => {
                    uni.showToast({
                        icon: 'success',
@@ -1096,34 +1089,6 @@
            },
            labelClick(item) {
                //判断label是否已在
                const label = this.showLabelList.find(e => e.id == item.id)
                if (label) {
                    //在,去掉
                    this.showLabelList = this.showLabelList.filter(e => e.id != label.id)
                    this.activeIds = this.activeIds.filter(e => e != label.id)
                } else {
                    //不在,添加
                    item.isClose = false
                    this.showLabelList.push(item)
                    this.activeIds.push(item.id)
                }
                this.showLabelList.sort((a, b) => a.sort - b.sort)
            },
            delTag() {
                // label.isClose = true
                // this.showLabelList = this.showLabelList.filter(e => e.id != label.id)
                // this.activeIds = this.activeIds.filter(e => e != label.id)
                this.categoryIndex = [];
                this.categoryValue = "";
            },
            imgPreview(value) {
                uni.previewImage({
                    urls: minioBaseUrl + [value],
subPackage/workbench/views/editCscj.vue
@@ -26,14 +26,14 @@
                        <u-icon slot="right" name="arrow-right"></u-icon>
                    </u-form-item>
                    <u-form-item label="九小场所:" labelWidth="100" prop="isNine" :required="isRequired">
                        <u-radio-group v-model="form.isNine" v-if="!currentId">
                        <u-radio-group v-model="form.isNine">
                            <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in statusList"
                                :key="index" :label="item.name" :name="item.id">
                            </u-radio>
                        </u-radio-group>
                        <view class="f-30" v-if="currentId">
                        <!-- <view class="f-30" v-if="currentId">
                            {{form.isNine == 1?"是":"否"}}
                        </view>
                        </view> -->
                    </u-form-item>
                    <u-form-item v-if="form.isNine == 1" @click="showNineTypeSelector" class="form-item"
                        labelWidth="100" label="九小场所类型:" :required="isRequired" :disabled="isDisabled" prop="nineType">
@@ -43,14 +43,14 @@
                        <u-icon slot="right" name="arrow-right"></u-icon>
                    </u-form-item>
                    <u-form-item label="阵地:" labelWidth="100" prop="isFront" :required="isRequired">
                        <u-radio-group v-model="form.isFront" v-if="!currentId">
                        <u-radio-group v-model="form.isFront">
                            <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in statusList"
                                :key="index" :label="item.name" :name="item.id">
                            </u-radio>
                        </u-radio-group>
                        <view class="f-30" v-if="currentId">
                        <!-- <view class="f-30" v-if="currentId">
                            {{form.isFront == 1?"是":"否"}}
                        </view>
                        </view> -->
                    </u-form-item>
                    <u-form-item v-if="form.isFront == 1" @click="showFrontTypePicker = true" class="form-item"
                        labelWidth="100" label="阵地类型:" :required="isRequired" :disabled="isDisabled" prop="frontType">
@@ -112,6 +112,11 @@
                        <u--input border="none" type="number" v-model="form.principalPhone" placeholder="请输入">
                        </u--input>
                    </u-form-item>
                    <u-form-item class="form-item" labelWidth="100" :required="isRequired" :disabled="isDisabled"
                        label="身份证号:" prop="principalIdCard">
                        <u--input border="none" type="idcard" v-model="form.principalIdCard" placeholder="请输入">
                        </u--input>
                    </u-form-item>
                </view>
                <view class="item pic">