Qukatie 1 тиждень тому
батько
коміт
3767b418bb

+ 1 - 0
src/views/iosBasicData/AirtransportExport/bills/assembly/EntrustmentLnformation.vue

@@ -4,6 +4,7 @@
             <el-row :gutter="20">
                 <el-col :span="8">
                     <el-row>
+                        {{ detailData}}
                         <el-form-item label="发货人" prop="hshipperCnName">
                             <span slot="label">
                                 <span style="color: #1e9fff">发货人</span>

+ 1 - 0
src/views/iosBasicData/AirtransportExport/bills/billsDetails.vue

@@ -1787,6 +1787,7 @@ export default {
             // }else {
             //     this.detailData.seeDisabled = false
             // }
+            // this.detailData.seeDisabled = true
             // 把字符串集合转换一下
             // 是否随机
             this.$set(this.comprehensiveForm, 'random', this.form.comprehensive.split(',').indexOf('随机') != -1 ? '随机' : null)

+ 8 - 8
src/views/iosBasicData/OceanFreightImport/bills/assembly/DistributionBox/containers.vue

@@ -79,23 +79,23 @@
           <span v-else>{{ scope.row.sealNo }}</span>
         </template>
         <template slot-scope="scope" slot="quantity">
-          <el-input v-if="scope.row.edit" v-model="scope.row.quantity" size="small" clearable
-            placeholder="请输入件数"></el-input>
+          <el-input-number v-if="scope.row.edit" v-model="scope.row.quantity" size="small" clearable
+            style="width: 100%;" :controls="false" placeholder="请输入件数" :precision="0"></el-input-number>
           <span v-else>{{ Number(scope.row.quantity).toFixed(0) }}</span>
         </template>
         <template slot-scope="scope" slot="grossWeight">
-          <el-input v-if="scope.row.edit" v-model="scope.row.grossWeight" size="small" clearable
-            placeholder="请输入毛重"></el-input>
+          <el-input-number v-if="scope.row.edit" v-model="scope.row.grossWeight" size="small" clearable
+            style="width: 100%;" :controls="false" placeholder="请输入毛重"></el-input-number>
           <span v-else>{{ scope.row.grossWeight }}</span>
         </template>
         <template slot-scope="scope" slot="netWeight">
-          <el-input v-if="scope.row.edit" v-model="scope.row.netWeight" size="small" clearable
-            placeholder="请输入净重"></el-input>
+          <el-input-number v-if="scope.row.edit" v-model="scope.row.netWeight" size="small" clearable
+            style="width: 100%;" :controls="false" placeholder="请输入净重"></el-input-number>
           <span v-else>{{ scope.row.netWeight }}</span>
         </template>
         <template slot-scope="scope" slot="measurement">
-          <el-input v-if="scope.row.edit" v-model="scope.row.measurement" size="small" clearable
-            placeholder="请输入尺码"></el-input>
+          <el-input-number v-if="scope.row.edit" v-model="scope.row.measurement" size="small" clearable
+            style="width: 100%;" :controls="false" placeholder="请输入尺码"></el-input-number>
           <span v-else>{{ scope.row.measurement }}</span>
         </template>
         <template slot-scope="scope" slot="remarks">

+ 5 - 5
src/views/iosBasicData/OceanFreightImport/bills/billsDetails.vue

@@ -2206,11 +2206,11 @@ export default {
             this.copyFormData = JSON.parse(JSON.stringify(res.data.data));
             this.inLock();
             // 如果已经请核就禁用按钮
-            // if (this.form.status == 1 || this.form.status == 2 || this.form.status == 3) {
-            //     this.detailData.seeDisabled = true
-            // }else {
-            //     this.detailData.seeDisabled = false
-            // }
+            if (this.form.status == 1 || this.form.status == 2 || this.form.status == 3) {
+                this.detailData.seeDisabled = true
+            }else {
+                this.detailData.seeDisabled = false
+            }
             if (
                 this.form.status == 1 ||
                 this.form.status == 2 ||

+ 25 - 17
src/views/iosBasicData/SeafreightExportF/bills/assembly/DistributionBox/PackingBusiness.vue

@@ -142,6 +142,11 @@
                             label="dictValue" url="/blade-system/dict-biz/dictionary?code=hazard_Level"
                             :filterable="true"></dic-select>
                     </tempalte>
+                     <tempalte slot-scope="{type,disabled}" slot="dgFlashPointUnitForm">
+                        <dic-select v-model="Detailform.dgFlashPointUnit" placeholder="易燃易爆品闪点单位" key="dictKey"
+                            label="dictValue" url="/blade-system/dict-biz/dictionary?code=Emergency_Unit"
+                            :filterable="true"></dic-select>
+                    </tempalte>
                     <tempalte slot-scope="{type,disabled}" slot="dgEmerTemperatureUnitForm">
                         <dic-select v-model="Detailform.dgEmerTemperatureUnit" placeholder="Emergency温度单位" key="dictKey"
                             label="dictValue" url="/blade-system/dict-biz/dictionary?code=Emergency_Unit"
@@ -1066,7 +1071,7 @@ export default {
                                 labelWidth: 130,
                                 width: "120",
                                 overHidden: true,
-                                display: false,
+                                // display: false,
                                 cell: true,
                             },
                             {
@@ -1121,19 +1126,19 @@ export default {
                                 },
                                 cell: true,
                             },
-                            {
-                                label: "包装等级",
-                                prop: "packingLevel",
-                                labelWidth: 130,
-                                width: "120",
-                                overHidden: true,
-                                cell: true,
-                                rules: [{
-                                    required: true,
-                                    message: "",
-                                    trigger: "blur"
-                                }]
-                            },
+                            // {
+                            //     label: "包装等级",
+                            //     prop: "packingLevel",
+                            //     labelWidth: 130,
+                            //     width: "120",
+                            //     overHidden: true,
+                            //     cell: true,
+                            //     rules: [{
+                            //         required: true,
+                            //         message: "",
+                            //         trigger: "blur"
+                            //     }]
+                            // },
                             {
                                 label: "是否申报数量",
                                 prop: "dgIsDeclareQuantity",
@@ -1296,7 +1301,10 @@ export default {
             },
             selectionDetailList: [], // 选中的数据
             loading: false,
-            Detailform: {},
+            Detailform: {
+                dgEmerTemperatureUnit:'C',
+                dgCtrlTemperatureUnit:'C',
+            },
         }
     },
     comments: {
@@ -1318,7 +1326,7 @@ export default {
                     this.optionDetail.group.forEach(item => {
                         if (item.prop == 'type2') {
                             item.column.forEach(row => {
-                                if (row.prop == 'dgImdgCode' || row.prop == 'dgImdgName' || row.prop == 'dgUnCode' || row.prop == 'dgCommodityName' || row.prop == 'dgPackingUnit' || row.prop == 'dgPackingLevel' || row.prop == 'dgFlashPoint' || row.prop == 'dgFlashPointUnit' || row.prop == 'dgContacts' || row.prop == 'dgTel') {
+                                if (row.prop == 'dgImdgCode' || row.prop == 'dgImdgName' || row.prop == 'dgUnCode' || row.prop == 'dgCommodityName' || row.prop == 'dgPackingUnit' || row.prop == 'dgFlashPoint' || row.prop == 'dgFlashPointUnit' || row.prop == 'dgContacts' || row.prop == 'dgTel') {
                                     row.display = true
                                 }
                             })
@@ -1328,7 +1336,7 @@ export default {
                     this.optionDetail.group.forEach(item => {
                         if (item.prop == 'type2') {
                             item.column.forEach(row => {
-                                if (row.prop == 'dgImdgCode' || row.prop == 'dgImdgName' || row.prop == 'dgUnCode' || row.prop == 'dgCommodityName' || row.prop == 'dgPackingUnit' || row.prop == 'dgPackingLevel' || row.prop == 'dgFlashPoint' || row.prop == 'dgFlashPointUnit' || row.prop == 'dgContacts' || row.prop == 'dgTel') {
+                                if (row.prop == 'dgImdgCode' || row.prop == 'dgImdgName' || row.prop == 'dgUnCode' || row.prop == 'dgCommodityName' || row.prop == 'dgPackingUnit' || row.prop == 'dgFlashPoint' || row.prop == 'dgFlashPointUnit' || row.prop == 'dgContacts' || row.prop == 'dgTel') {
                                     row.display = false
                                 }
                             })

+ 8 - 8
src/views/iosBasicData/SeafreightExportF/bills/assembly/DistributionBox/containers.vue

@@ -87,23 +87,23 @@
                     <span v-else>{{ scope.row.sealNo }}</span>
                 </template>
                 <template slot-scope="scope" slot="quantity">
-                    <el-input v-if="scope.row.edit" v-model="scope.row.quantity" size="small" clearable
-                        placeholder="请输入件数"></el-input>
+                    <el-input-number v-if="scope.row.edit" v-model="scope.row.quantity" size="small" clearable
+                        style="width: 100%;" :controls="false" placeholder="请输入件数" :precision="0"></el-input-number>
                     <span v-else>{{ Number(scope.row.quantity).toFixed(0) }}</span>
                 </template>
                 <template slot-scope="scope" slot="grossWeight">
-                    <el-input v-if="scope.row.edit" v-model="scope.row.grossWeight" size="small" clearable
-                        placeholder="请输入毛重"></el-input>
+                    <el-input-number v-if="scope.row.edit" v-model="scope.row.grossWeight" size="small" clearable
+                        style="width: 100%;" :controls="false" placeholder="请输入毛重"></el-input-number>
                     <span v-else>{{ scope.row.grossWeight }}</span>
                 </template>
                 <template slot-scope="scope" slot="netWeight">
-                    <el-input v-if="scope.row.edit" v-model="scope.row.netWeight" size="small" clearable
-                        placeholder="请输入净重"></el-input>
+                    <el-input-number v-if="scope.row.edit" v-model="scope.row.netWeight" size="small" clearable
+                        style="width: 100%;" :controls="false" placeholder="请输入净重"></el-input-number>
                     <span v-else>{{ scope.row.netWeight }}</span>
                 </template>
                 <template slot-scope="scope" slot="measurement">
-                    <el-input v-if="scope.row.edit" v-model="scope.row.measurement" size="small" clearable
-                        placeholder="请输入尺码"></el-input>
+                    <el-input-number v-if="scope.row.edit" v-model="scope.row.measurement" size="small" clearable
+                        style="width: 100%;" :controls="false" placeholder="请输入尺码"></el-input-number>
                     <span v-else>{{ scope.row.measurement }}</span>
                 </template>
                 <template slot-scope="scope" slot="remarks">

+ 60 - 20
src/views/iosBasicData/SeafreightExportF/bills/assembly/feecenter.vue

@@ -104,7 +104,7 @@
                         :disabled="disabled || pleasereviewType" @click="allClick('发票申请', 'D')">发票申请</el-button>
                     <el-button v-if="isFeeEditD" type="primary" plain size="small"
                         :disabled="disabled || !selectionDList.length"
-                        @click="allClick('批量修改结算单位')">批量修改结算单位</el-button>
+                        @click="allClick('D批量修改结算单位')">批量修改结算单位</el-button>
                 </template>
                 <template slot="indexHeader" slot-scope="scope">
                     <el-button v-if="isFeeEditD" type="primary" size="small" icon="el-icon-plus" circle
@@ -253,6 +253,9 @@
                     </el-button>
                     <el-button type="info" plain size="small" :disabled="disabled"
                         @click="allClick('付费申请', 'C')">付费申请</el-button>
+                    <el-button v-if="isFeeEditC" type="primary" plain size="small"
+                        :disabled="disabled || !selectionCList.length"
+                        @click="allClick('C批量修改结算单位')">批量修改结算单位</el-button>
                 </template>
                 <template slot="indexHeader" slot-scope="scope">
                     <el-button v-if="isFeeEditC" type="primary" size="small" icon="el-icon-plus" circle
@@ -605,7 +608,7 @@
             </span>
             <span slot="footer" class="dialog-footer">
                 <el-button @click="dialogVisible = false" size="small">取 消</el-button>
-                <el-button type="primary" @click="upSibmit" size="small">确 定</el-button>
+                <el-button type="primary" @click="upSibmit(dc)" size="small">确 定</el-button>
             </span>
         </el-dialog>
     </div>
@@ -1506,6 +1509,7 @@ export default {
             isProfitView: false, // 当前登录人是否有利润查看角色
             idArr: [],
             business: null,
+            dc: null,
         }
     },
     async created() {
@@ -2252,23 +2256,29 @@ export default {
         },
         // 撤销账单
         RevokingBillsfun(dc) {
+            let billList = []
+            if (dc == 'D') {
+                for (let item of this.selectionDList) {
+                    billList.push(item)
+                    if (item.accStatus == 0) {
+                        return this.$message.error('请选择已生成账单的数据')
+                    }
+                }
+
+            } else {
+                for (let item of this.selectionCList) {
+                    billList.push(item)
+                    if (item.accStatus == 0) {
+                        return this.$message.error('请选择已生成账单的数据')
+                    }
+                }
+            }
             this.$confirm("确定将选择数据撤销账单?", {
                 confirmButtonText: "确定",
                 cancelButtonText: "取消",
                 type: "warning"
             }).then(() => {
-                let billList = []
-                if (dc == 'D') {
-                    for (let item of this.selectionDList) {
-                        billList.push(item)
-                    }
-                    this.finaccbillsRevokeBillfun(billList)
-                } else {
-                    for (let item of this.selectionCList) {
-                        billList.push(item)
-                    }
-                    this.finaccbillsRevokeBillfun(billList)
-                }
+                this.finaccbillsRevokeBillfun(billList)
             })
 
         },
@@ -2624,7 +2634,7 @@ export default {
             if (!row.curCode) {
                 return;
             }
-            if (row.amountLimit && Number(row.amountLimit)>0 && row.noAmount && row.amount) {
+            if (row.amountLimit && Number(row.amountLimit) > 0 && row.noAmount && row.amount) {
                 if ((Number(row.amount) + Number(row.noAmount)) > Number(row.amountLimit)) {
                     this.$message.error(`应收账款:${(Number(row.amount) + Number(row.noAmount))}超出限额:${Number(row.amountLimit)}`);
                     delete row.amountLimit
@@ -2697,7 +2707,7 @@ export default {
             if (!row.curCode) {
                 return;
             }
-            if (row.amountLimit && Number(row.amountLimit)>0 && row.noAmount && row.amount) {
+            if (row.amountLimit && Number(row.amountLimit) > 0 && row.noAmount && row.amount) {
                 if ((Number(row.amount) + Number(row.noAmount)) > Number(row.amountLimit)) {
                     this.$message.error(`应收账款:${(Number(row.amount) + Number(row.noAmount))}超出限额:${Number(row.amountLimit)}`);
                     delete row.amountLimit
@@ -2972,9 +2982,19 @@ export default {
                 if (!item.corpId || !item.feeId || !item.elementsId || !item.curCode) {
                     sum += `应收第${item.$index + 1}行${!item.corpId ? ' 结算单位' : ''}${!item.feeId ? ' 费用简称' : ''}${!item.elementsId ? ' 核算要素' : ''}${!item.curCode ? ' 币种' : ''}`
                 }
-                if (Number(item.price) == 0) {
+                if (Number(item.price) == 0 || !item.price) {
                     sum += `应收第${item.$index + 1}行单价`
                 }
+                if (item.curCode == 'CNY') {
+                    if (Number(item.rmbAmount) == 0 || !item.rmbAmount) {
+                        sum += `应收第${item.$index + 1}行金额不能为0`
+                    }
+                }
+                if (item.curCode == 'USD') {
+                    if (Number(item.usdAmount) == 0 || !item.usdAmount) {
+                        sum += `应收第${item.$index + 1}行金额不能为0`
+                    }
+                }
             }
             for (let item of this.assemblyForm.feeCenterListC) {
                 if (!item.corpId || !item.feeId || !item.elementsId || !item.curCode) {
@@ -2983,6 +3003,16 @@ export default {
                 if (Number(item.price) == 0) {
                     sum += `应付第${item.$index + 1}行单价`
                 }
+                if (item.curCode == 'CNY') {
+                    if (Number(item.rmbAmount) == 0 || !item.rmbAmount) {
+                        sum += `应收第${item.$index + 1}行金额不能为0`
+                    }
+                }
+                if (item.curCode == 'USD') {
+                    if (Number(item.usdAmount) == 0 || !item.usdAmount) {
+                        sum += `应收第${item.$index + 1}行金额不能为0`
+                    }
+                }
             }
             if (sum != '请输入') {
                 this.$confirm(sum, {
@@ -3120,19 +3150,28 @@ export default {
                     })
                 }
             }
-            if (name == '批量修改结算单位') {
+            if (name == 'D批量修改结算单位') {
                 if (this.selectionDList.length == 0) return this.$message.error("请选择费用");
                 if (this.selectionDList.length != this.selectionDList.filter(e => e.accStatus == 0).length) return this.$message.error("已生成账单费用明细不允许修改结算单位");
                 this.dialogVisible = true
+                this.upForm = {}
+                this.dc = 'D'
+            }
+            if (name == 'C批量修改结算单位') {
+                if (this.selectionCList.length == 0) return this.$message.error("请选择费用");
+                if (this.selectionCList.length != this.selectionCList.filter(e => e.accStatus == 0).length) return this.$message.error("已生成账单费用明细不允许修改结算单位");
+                this.dialogVisible = true
+                this.upForm = {}
+                this.dc = 'C'
             }
         },
-        upSibmit() {
+        upSibmit(dc) {
             const obj = {
                 corpId: this.upForm.corpId,
                 corpCnName: this.upForm.corpCnName,
                 corpEnName: this.upForm.corpEnName,
                 shortName: this.upForm.shortName,
-                feeCenterListD: this.selectionDList
+                feeCenterListD: dc == 'D' ? this.selectionDList : this.selectionCList
             }
             updateCorpBatch(obj).then(res => {
                 this.$message({
@@ -3140,6 +3179,7 @@ export default {
                     message: "操作成功!"
                 });
                 this.dialogVisible = false
+                this.dc = null
                 this.$emit('billsDetailfun')
             })
         },

+ 42 - 22
src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

@@ -56,8 +56,8 @@
                 <el-button size="small" style="margin-right: 8px" :loading="saveLoading" :disabled="!form.id"
                     v-if="bigtabs == 'fy'" @click="previewDialogfun">预 览
                 </el-button>
-                <el-button size="small" type="warning" :disabled="!form.id || detailData.seeDisabled || showLock"
-                    v-if="form.status == 1" @click.stop="revokeDocumentApproval">撤销单据请核
+                <el-button size="small" type="warning" :disabled="!form.id || showLock" v-if="form.status == 1"
+                    @click.stop="revokeDocumentApproval">撤销单据请核
                 </el-button>
                 <el-button size="small" type="success" :disabled="!form.id || detailData.seeDisabled || showLock"
                     v-if="form.status == 0 || form.status == 4" @click.stop="DocumentApproval">单据请核
@@ -104,7 +104,7 @@
                                                                 }} {{ item[0].label }}
                                                             </span>
                                                             <span v-else style="color: #1e9fff">{{ item[0].label
-                                                                }}</span>
+                                                            }}</span>
                                                         </span>
                                                         <span v-if="item[0].type == 'button'"></span>
                                                         <!--<el-button v-if="item[0].type == 'button'" :disabled="detailData.seeDisabled || item[0].disabled"-->
@@ -2075,16 +2075,36 @@ export default {
                         if (!item.corpId || !item.feeId || !item.elementsId || !item.curCode) {
                             msgs.push(`应收第${item.$index + 1}行${!item.corpId ? ' 往来单位' : ''}${!item.feeId ? ' 费用简称' : ''}${!item.elementsId ? ' 核算要素' : ''}${!item.curCode ? ' 币种' : ''}`)
                         }
-                        if (Number(item.price)==0) {
-                            msgs.push(`应收第${item.$index + 1}行单价不能为0`)
+                        if (Number(item.price) == 0 || !item.price) {
+                            msgs.push(`应收第${item.$index + 1}行单价不能为0或空`)
+                        }
+                        if (item.curCode == 'CNY') {
+                            if (Number(item.rmbAmount) == 0 || !item.rmbAmount) {
+                                msgs.push(`应收第${item.$index + 1}行金额不能为0`)
+                            }
+                        }
+                        if (item.curCode == 'USD') {
+                            if (Number(item.usdAmount) == 0 || !item.usdAmount) {
+                                msgs.push(`应收第${item.$index + 1}行金额不能为0`)
+                            }
                         }
                     }
                     for (let item of this.form.feeCenterListC) {
                         if (!item.corpId || !item.feeId || !item.elementsId || !item.curCode) {
                             msgs.push(`应付第${item.$index + 1}行${!item.corpId ? ' 往来单位' : ''}${!item.feeId ? ' 费用简称' : ''}${!item.elementsId ? ' 核算要素' : ''}${!item.curCode ? ' 币种' : ''}`)
                         }
-                         if (Number(item.price)==0) {
-                            msgs.push(`应付第${item.$index + 1}行单价不能为0`)
+                        if (Number(item.price) == 0 || !item.price) {
+                            msgs.push(`应付第${item.$index + 1}行单价不能为0或空`)
+                        }
+                        if (item.curCode == 'CNY') {
+                            if (Number(item.rmbAmount) == 0 || !item.rmbAmount) {
+                                msgs.push(`应收第${item.$index + 1}行金额不能为0`)
+                            }
+                        }
+                        if (item.curCode == 'USD') {
+                            if (Number(item.usdAmount) == 0 || !item.usdAmount) {
+                                msgs.push(`应收第${item.$index + 1}行金额不能为0`)
+                            }
                         }
                     }
                     if (msgs.length > 0) {
@@ -2243,10 +2263,10 @@ export default {
                         let fldNames = 'hshipperDetails,hconsigneeDetails,hnotifyDetails,mshipperDetails,mconsigneeDetails,mnotifyDetails'.split(",");
                         let fldDescs = '发货人,收货人,通知人,MBL 发货人,MBL 收货人,MBL 通知人'.split(",");
                         let msgsList = []
-                        fldNames.forEach((fld, idx)=>{
+                        fldNames.forEach((fld, idx) => {
                             const cfs = checkFullWidthSymbols(this.form.detail[fld]);
-                            if(cfs.hasFullWidth){
-                                if(cfs.isResetText){
+                            if (cfs.hasFullWidth) {
+                                if (cfs.isResetText) {
                                     this.$set(this.form.detail, fld, cfs.resetText);
                                 }
                                 msgsList.push(fldDescs[idx] + ": " + cfs.message)
@@ -2255,24 +2275,24 @@ export default {
 
                         fldNames = 'marks,commodityDescr,forwarding,siRemarks,bookingRemarks'.split(",");
                         fldDescs = '唛头,货描,FORWARDING,SI 备注,订舱备注'.split(",");
-                        fldNames.forEach((fld, idx)=>{
+                        fldNames.forEach((fld, idx) => {
                             const cfs = checkFullWidthSymbols(this.form[fld]);
                             console.log(fldDescs[idx], cfs)
-                            if(cfs.isResetText===true){
+                            if (cfs.isResetText === true) {
                                 console.log("set", fld, this.form[fld], cfs.resetText)
                                 this.$set(this.form, fld, cfs.resetText);
                             }
-                            if(cfs.hasFullWidth){
+                            if (cfs.hasFullWidth) {
                                 msgsList.push(fldDescs[idx] + ": " + cfs.message)
                             }
                         })
 
                         fldNames = 'placeReceiptNamePrint,polNamePrint,podNamePrint,destinationNamePrint,placeDeliveryNamePrint,potNamePrint'.split(",");
                         fldDescs = '收货地,装货港,卸货港,目的地,交货地,中转港'.split(",");
-                        fldNames.forEach((fld, idx)=>{
+                        fldNames.forEach((fld, idx) => {
                             const cfs = checkFullWidthSymbols(this.form[fld]);
-                            if(cfs.hasFullWidth){
-                                if(cfs.isResetText){
+                            if (cfs.hasFullWidth) {
+                                if (cfs.isResetText) {
                                     this.$set(this.form, fld, cfs.resetText);
                                 }
                                 msgsList.push(fldDescs[idx] + ": " + cfs.message)
@@ -2288,7 +2308,7 @@ export default {
                             return;
                         }
 
-                        msgsList=[]
+                        msgsList = []
                         console.log(this.form.detail)
                         if (!verifyEnglish(this.form.detail.hshipperDetails)) {
                             msgsList.push('发货人')
@@ -2644,11 +2664,11 @@ export default {
 
             this.copyFormData = JSON.parse(JSON.stringify(res.data.data))
             // 如果已经请核就禁用按钮
-            // if (this.form.status == 1 || this.form.status == 2 || this.form.status == 3) {
-            //     this.detailData.seeDisabled = true
-            // }else {
-            //     this.detailData.seeDisabled = false
-            // }
+            if (this.form.status == 1 || this.form.status == 2 || this.form.status == 3) {
+                this.detailData.seeDisabled = true
+            } else {
+                this.detailData.seeDisabled = false
+            }
             this.columnforfun('teamName').disabled = true
 
             this.columnforfun('operatorName').disabled = true

+ 19 - 2
src/views/iosBasicData/financeProfit/index.vue

@@ -123,7 +123,7 @@ export default {
                 calcHeight: 30,
                 tip: false,
                 searchShow: true,
-                searchMenuSpan: 24,
+                searchMenuSpan: 18,
                 border: true,
                 index: false,
                 selection: true,
@@ -257,7 +257,7 @@ export default {
                     {
                         label: "日期",
                         prop: "statisticsDate",
-                        width:100,
+                        width: 100,
                         overHidden: true,
                         type: "date",
                         format: "yyyy-MM-dd",
@@ -294,6 +294,19 @@ export default {
                         valueFormat: "yyyy-MM-dd",
                     },
                     {
+                        label: "客户来源",
+                        prop: "corpSource",
+                        // hide: true,
+                        search: true,
+                        type: "select",
+                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=corp_Source",
+                        props: {
+                            label: "dictValue",
+                            value: "dictValue"
+                        },
+                        overHidden: true,
+                    },
+                    {
                         label: "业务员",
                         prop: "salesman",
                         overHidden: true,
@@ -805,6 +818,10 @@ export default {
                 financeStatisticsFinanceProfitSum(Object.assign(params, this.query)).then(re => {
                     this.commodityData = [re.data.data]
                 })
+                this.$nextTick(() => {
+                    this.$refs.crud.doLayout();
+                    this.$refs.crud.dicInit();
+                });
                 this.selectionClear();
             });
         },