#
whycq
2023-12-02 72a4a671431d25095146dc7e36efbb4a871c39b9
#
3个文件已修改
85 ■■■■ 已修改文件
pages/business/cstmr/addCsmtr.vue 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/business/cstmr/modiCsmter.vue 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/user/user.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/business/cstmr/addCsmtr.vue
@@ -19,10 +19,11 @@
                        v-model="baseFormData.cstmrType" @input="autoLoad('cstmrType',baseFormData.cstmrType)"></uni-combox>
                    </view>
                </uni-forms-item>
                <uni-forms-item label="客户行业" required name="industry">
                    <view >
                        <uni-combox :candidates="industrys" placeholder="请选择客户行业"
                        v-model="baseFormData.industry"></uni-combox>
                <uni-forms-item label="客户行业" name="industry" required>
                    <view @click="autoLoad('customerIndustryName','')">
                        <uni-combox :candidates="industrys" placeholder="请选择客户行业"
                        v-model="baseFormData.industry"
                            @input="autoLoad('customerIndustryName',baseFormData.industry)"></uni-combox>
                    </view>
                </uni-forms-item>
                
@@ -80,7 +81,8 @@
                directorList: [],
                names: [],
                nameList: [],
                industrys: ['医药业','制造业','纺织业'],
                industrys: [],
                industryList: [],
                productCategorys: [],
                productCategoryList: [],
                baseFormData: {
@@ -232,6 +234,7 @@
                that.cstmrTypes = []
                that.directors = []
                that.directorList = []
                that.industrys = []
                var a = that.baseUrl + '/' + type + 'Query/auth'
                uni.request({
                    url: that.baseUrl + '/' + type + 'Query' +'/auth',
@@ -263,7 +266,13 @@
                                }
                                return
                            }
                            if (type == 'customerIndustryName') {
                                for (element of res.data) {
                                    that.industrys.push(element.value)
                                    that.industryList.push(element)
                                }
                                return
                            }
                        }
                    }
                })
@@ -282,6 +291,16 @@
                        that.baseFormData.cstmrType = element.id
                    }
                }
                for (element of that.productCategoryList) {
                    if(element.value == that.baseFormData.productCategory) {
                        that.baseFormData.productCategory = element.id
                    }
                }
                for (element of that.industryList) {
                    if(element.value == that.baseFormData.industry) {
                        that.baseFormData.industry = element.id
                    }
                }
                this.$refs.baseForm.validate().then(res=>{
                    if (res.rela == undefined) {
                        res.rela = ''
pages/business/cstmr/modiCsmter.vue
@@ -19,17 +19,19 @@
                        v-model="baseFormData.cstmrType$" @input="autoLoad('cstmrType',baseFormData.cstmrType$)"></uni-combox>
                    </view>
                </uni-forms-item>
                <uni-forms-item label="客户行业" required name="industry">
                    <view >
                        <uni-combox :candidates="industrys" placeholder="请选择客户行业"
                        v-model="baseFormData.industry"></uni-combox>
                <uni-forms-item label="客户行业" name="industry" required>
                    <view @click="autoLoad('customerIndustryName','')">
                        <uni-combox :candidates="industrys" placeholder="请选择客户行业"
                        v-model="baseFormData.industry"
                            @input="autoLoad('customerIndustryName',baseFormData.industry)"></uni-combox>
                    </view>
                </uni-forms-item>
                
                <uni-forms-item label="产品类别" required name="productCategory">
                    <view>
                        <uni-combox :candidates="productCategorys" placeholder="请选择产品类别"
                        v-model="baseFormData.productCategory"></uni-combox>
                <uni-forms-item label="产品类型" name="productCategory" required>
                    <view @click="autoLoad('orderProductType','')">
                        <uni-combox :candidates="productCategorys" placeholder="请选择产品类型"
                        v-model="baseFormData.productCategory"
                            @input="autoLoad('orderProductType',baseFormData.orderProductTypeId)"></uni-combox>
                    </view>
                </uni-forms-item>
                
@@ -81,8 +83,10 @@
                directorList: [],
                names: [],
                nameList: [],
                industrys: ['医药业','制造业','纺织业'],
                productCategorys: ['立体库(货架)','立体库(集成)','四向穿梭库/两向穿梭库','阁楼货架/钢平台','周转容器','平库'],
                industrys: [],
                industryList: [],
                productCategorys: [],
                productCategoryList: [],
                baseFormData: {
                    name: '',
                    citysData: [],
@@ -261,6 +265,7 @@
                that.cstmrTypes = []
                that.directors = []
                that.directorList = []
                that.industrys = []
                var a = that.baseUrl + '/' + type + 'Query/auth'
                uni.request({
                    url: that.baseUrl + '/' + type + 'Query' +'/auth',
@@ -285,7 +290,20 @@
                                }
                                return
                            }
                            if (type == 'orderProductType') {
                                for (element of res.data) {
                                    that.productCategorys.push(element.value)
                                    that.productCategoryList.push(element)
                                }
                                return
                            }
                            if (type == 'customerIndustryName') {
                                for (element of res.data) {
                                    that.industrys.push(element.value)
                                    that.industryList.push(element)
                                }
                                return
                            }
                        }
                    }
                })
@@ -304,6 +322,16 @@
                        that.baseFormData.cstmrType = element.id
                    }
                }
                for (element of that.productCategoryList) {
                    if(element.value == that.baseFormData.productCategory) {
                        that.baseFormData.productCategory = element.id
                    }
                }
                for (element of that.industryList) {
                    if(element.value == that.baseFormData.industry) {
                        that.baseFormData.industry = element.id
                    }
                }
                this.$refs.baseForm.validate().then(res=>{
                    if (res.rela == undefined) {
                        res.rela = ''
pages/user/user.vue
@@ -42,11 +42,11 @@
                username: '',
                Data: [
                    { field: 'planPendingTaskCount', title: '规划申请单', hide: false,value: ''},
                    { field: 'planPriOnlinePendingTaskCount', title: '核价审批', hide: false,value: '' },
                    { field: 'priOnlinePendingTaskCount', title: '核价审批', hide: false,value: '' },
                    { field: 'priQuotePendingTaskCount', title: '报价审批', hide: false,value: '' },
                    { field: 'businessTripPendingTaskCount', title: '出差审批', hide: false,value: '' },
                    { field: 'reimburseOnlinePendingTaskCount', title: '报销审批', hide: false,value: '' },
                    { field: 'priOnlinePendingTaskCount', title: '可接收核价任务', hide: false,value: '' },
                    { field: 'planPriOnlinePendingTaskCount', title: '可接收核价任务', hide: false,value: '' },
                ],
                data2: []
            }