doum
2025-09-04 9d901b4215323c97a00a068cd962f5c9c04dadfa
admin/src/components/business/OperaOrderDetailWindow.vue
@@ -59,8 +59,8 @@
            <div  class="cont"><span class="label">品种:</span> <span class="txt">{{info.categoryName || ''}}</span></div>
          </div>
          <div class="line">
            <div class="cont"><span class="label" v-if="info.workType==1">人数:</span> <span class="txt">{{info.priceNum1 || '' }}人</span></div>
            <div class="cont"><span class="label"  v-if="info.workType==0">重量:</span> <span class="txt">{{info.priceNum1 || '' }}斤</span></div>
            <div class="cont"  v-if="info.workType==1"><span class="label">人数:</span> <span class="txt">{{info.priceNum1 || '' }}人</span></div>
            <div class="cont"  v-if="info.workType==0"><span class="label">重量:</span> <span class="txt">{{info.priceNum1 || '' }}斤</span></div>
            <div class="cont"><span class="label">用工时间:</span><span class="txt">{{info.startDate|| '' }}-{{info.endDate|| '' }}</span></div>
            <div class="cont"><span class="label">用工天数:</span><span class="txt">{{info.totalDays || 0 }}天</span></div>
          </div>
@@ -185,6 +185,22 @@
          </div>
        </div>
      </div>
      <div class="renzheng" v-if="(info.type ===0 || info.type===1)&&(info.status===5|| info.status===4)" >
        <div class="info" >
          <span class="m10">费用确认</span>
        </div>
        <div class="detail" style=" ">
          <div class="line">
            <div class="cont"><span class="label">实际{{feeFrom.priceParam1.name }}:</span><span class="txt">{{info.priceNum1 || 0 }}{{feeFrom.priceParam1.unit }}</span></div>
            <div class="cont" v-if="feeFrom.priceParam2.name!=null"><span class="label">实际{{feeFrom.priceParam2.name }}:</span><span class="txt">{{info.priceNum2 || 0 }}{{feeFrom.priceParam2.unit }}</span></div>
            <div class="cont"  :style="feeFrom.priceParam2.name!=null?'':'flex: 2'"><span class="label">其他费用:</span> <span class="txt">{{((info.confirmOtherFee||0)/100).toFixed(2) }}元</span></div>
          </div>
          <div class="line">
            <div class="cont"><span class="label">实际总费用:</span><span class="txt yellowbtn">{{((info.estimatedAccount||0)/100).toFixed(2) }}元</span></div>
            <div class="cont"  style="flex: 2"><span class="label">备注:</span><span class="txt">{{info.confirmFeeRemark || '' }}</span></div>
          </div>
        </div>
      </div>
      <div class="renzheng" >
        <div class="info" >
          <span class="m10">发单方信息</span>
@@ -250,7 +266,17 @@
      id: '',
      wayList:[],
      info: {},
      loading: false
      loading: false,
      feeFrom: {
        priceParam1: {
          name: null,
          unit: null
        },
        priceParam2: {
          name: null,
          unit: null
        }
      }
    }
  },
  methods: {
@@ -260,6 +286,16 @@
      this.tableData2 = []
      this.id = row.id
      this.wayList=[]
      this.feeFrom = {
        priceParam1: {
          name: null,
          unit: null
        },
        priceParam2: {
          name: null,
          unit: null
        }
      }
      this.getData()
    },
    getData () {
@@ -270,6 +306,7 @@
          if(this.info.wayInfo){
            this.wayList = JSON.parse(this.info.wayInfo)
          }
          this.initPriceNumParam()
          console.log(this.wayList)
        })
    },
@@ -312,6 +349,54 @@
              })
          })
      })
    },
    initPriceNumParam () {
      this.feeFrom.priceParam1.name = null
      this.feeFrom.priceParam1.unit = null
      this.feeFrom.priceParam2.name = null
      this.feeFrom.priceParam2.unit = null
      if (this.info.type === 0 && this.info.workType === 1) {
        // 分拣工
        this.feeFrom.priceParam1.name = '用工天数:'
        this.feeFrom.priceParam1.unit = '天'
        this.feeFrom.priceParam2.name = '用工人数:'
        this.feeFrom.priceParam2.unit = '人'
      } else if (this.info.type === 0 && this.info.workType === 0) {
        // 采摘工
        this.feeFrom.priceParam1.name = '采摘重量:'
        this.feeFrom.priceParam1.unit = '斤'
        this.feeFrom.priceParam2.name = null
        this.feeFrom.priceParam2.unit = null
      } else if (this.info.type === 0 && this.info.workType === 2) {
        // 包装工
        if (this.info.carType === 0) {
          // 按天
          this.feeFrom.priceParam1.name = '用工天数'
          this.feeFrom.priceParam1.unit = '天'
          this.feeFrom.priceParam2.name = '用工人数'
          this.feeFrom.priceParam2.unit = '人'
        } else if (this.info.carType === 1) {
          // 按小时
          this.feeFrom.priceParam1.name = '工作时长'
          this.feeFrom.priceParam1.unit = '时'
          this.feeFrom.priceParam2.name = '用工人数'
          this.feeFrom.priceParam2.unit = '人'
        } else if (this.info.carType === 1) {
          // 按小时
          this.feeFrom.priceParam1.name = '包装重量'
          this.feeFrom.priceParam1.unit = '斤'
          this.feeFrom.priceParam2.name = null
          this.feeFrom.priceParam2.unit = null
        }
      } else if (this.info.type === 1 && this.info.carType === 0) {
        // 运货单 按天数
        this.feeFrom.priceParam1.name = '用车天数'
        this.feeFrom.priceParam1.unit = '天'
      } else if (this.info.type === 1 && this.info.carType === 1) {
        // 运货单 按次数
        this.feeFrom.priceParam1.name = '用车次数'
        this.feeFrom.priceParam1.unit = '次'
      }
    }
  }
}