licp
2024-06-14 50df2e6412abc7460226b5e3060479d337629d2f
修改检验下单,统计图
已修改4个文件
30 ■■■■■ 文件已修改
src/components/do/b1-ins-order/add.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/b4-inspection-item-statistics.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/util/echarts.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-ins-order/add.vue
@@ -153,16 +153,21 @@
        <el-col class="search_thing" :span="6">
          <div class="search_label"><span class="required-span">* </span>委托人:</div>
          <div class="search_input">
            <el-input readonly size="small" v-model="addObj.custom">
            <el-input size="small" clearable disabled v-model="addObj.custom"></el-input>
            <!-- <el-input readonly size="small" v-model="addObj.custom">
              <template slot="append"><el-button slot="append" icon="el-icon-search" @click="selectUserDia = true"
                  :disabled="active>1"></el-button></template>
            </el-input>
            </el-input> -->
          </div>
        </el-col>
        <el-col class="search_thing" :span="6">
          <div class="search_label"><span class="required-span">* </span>委托单位:</div>
          <div class="search_input">
            <el-input size="small" placeholder="←选择委托客户" clearable disabled v-model="addObj.company"></el-input>
            <!-- <el-input size="small" placeholder="←选择委托客户" clearable disabled v-model="addObj.company"></el-input> -->
            <el-input readonly size="small" v-model="addObj.company" placeholder="选择委托单位">
              <template slot="append"><el-button slot="append" icon="el-icon-search" @click="selectUserDia = true"
                  :disabled="active>1"></el-button></template>
            </el-input>
          </div>
        </el-col>
        <el-col class="search_thing" :span="6">
@@ -418,7 +423,7 @@
        </el-table-column>
      </el-table>
    </div>
    <el-dialog title="选择客户" :visible.sync="selectUserDia" width="70%">
    <el-dialog title="选择单位" :visible.sync="selectUserDia" width="70%">
      <div class="body" style="height: 60vh;" v-if="selectUserDia">
        <ValueTable ref="ValueTable2" :url="$api.user.selectCustomPageList" :componentData="componentData2" />
      </div>
src/components/view/b4-inspection-item-statistics.vue
@@ -214,9 +214,9 @@
        this.chartData0.yData[0].data = this.pageData.RECETENDAYS
        this.chartData1.yData[0].data = this.pageData.RECETENDAYS
        this.chartData1.yData[1].data = this.pageData.FINISHTENDAYS
        this.chartData2.percentage = this.pageData.ACCEPT_RATE_TODAY*100+'%'
        this.chartData3.percentage = this.pageData.FINISH_RATE_TODAY*100+'%'
        this.chartData4.percentage = this.pageData.DELAY_RATE_TODAY*100+'%'
        this.chartData2.percentage = (this.pageData.ACCEPT_RATE_TODAY*100).tofixed(0)+'%'
        this.chartData3.percentage = (this.pageData.FINISH_RATE_TODAY*100).tofixed(0)+'%'
        this.chartData4.percentage = (this.pageData.DELAY_RATE_TODAY*100).tofixed(0)+'%'
        this.chartData2.data[0].value = this.pageData.ACCEPT
        this.chartData2.data[1].value = this.pageData.FINISHE - this.pageData.ACCEPT
        this.loading = false;
@@ -229,6 +229,7 @@
        this.chartConfig2.isLoading = true
        this.chartConfig3.isLoading = true
        this.chartConfig4.isLoading = true
        console.log(111111111,this.chartData2)
      })
      },
      handleData(val){
src/main.js
@@ -15,16 +15,16 @@
Vue.prototype.PROJECT = '检测中心'
// Vue.prototype.PROJECT = '装备电缆'
//本地
Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80";
const javaApi = 'http://127.0.0.1:8001';
// Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80";
// const javaApi = 'http://127.0.0.1:8001';
//云
// Vue.prototype.LOCATIONVUE = "http://114.132.189.42:8080";
// const javaApi = 'http://114.132.189.42:1234';
//检测中心正式库
// Vue.prototype.LOCATIONVUE = "http://10.1.200.86:8080";
// const javaApi = 'http://10.1.200.86:8001';
Vue.prototype.LOCATIONVUE = "http://10.1.200.86:8080";
const javaApi = 'http://10.1.200.86:8001';
//装备电缆测试库
// Vue.prototype.LOCATIONVUE = "http://10.16.173.59";
src/util/echarts.js
@@ -196,7 +196,7 @@
      backgroundColor: '#fff',
      tooltip: {
          trigger: 'item',
          formatter: '{a} <br/>{b} : {c} ({d}%)'
          formatter: '{a} <br/>{b} : {c}'
      },
      title: {
          text: params.percentage,