licp
2024-03-22 e0afabc4a96fdab2d05e1c89d7f5fbee3ff4b645
开始对接检验任务接口
已修改2个文件
已添加1个文件
242 ■■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/Inspection.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/b1-expenses.vue 238 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/menu.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -55,7 +55,7 @@
                    </el-col>
                </el-row>
        <div class="search">
            <el-form :inline="true" :model="searchForm" class="form-inline">
            <el-form :inline="true" :model="searchForm" class="form-inline" label-width="90px">
                <el-form-item label="委托编号:">
                    <el-input clearable v-model="searchForm.sampleName" disabled size="small" placeholder="请输入"></el-input>
                </el-form-item>
src/components/view/b1-expenses.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,238 @@
<style scoped>
    .title {
        height: 60px;
        line-height: 60px;
    }
    .search {
        background-color: #fff;
        height: 80px;
        display: flex;
        align-items: center;
    }
    .search_thing {
        display: flex;
        align-items: center;
        height: 50px;
    }
    .search_label {
        width: 120px;
        font-size: 14px;
        text-align: right;
    }
    .search_input {
        width: calc(100% - 120px);
    }
    .table {
        margin-top: 10px;
        background-color: #fff;
        width: calc(100% - 40px);
        height: calc(100% - 60px - 80px - 10px - 40px);
        padding: 20px;
    }
    .el-form-item {
        margin-bottom: 16px;
    }
</style>
<template>
    <div class="inspection_order">
        <div style="width: 100%;height: 100%;">
            <div>
                <el-row class="title">
                    <el-col :span="12" style="padding-left: 20px;">费用统计</el-col>
          <el-col :span="12" style="text-align: right;">
                        <el-button size="small" type="primary">下单</el-button>
                    </el-col>
                </el-row>
            </div>
            <div class="search">
                <div class="search_thing">
                    <div class="search_label">样品名称:</div>
                    <div class="search_input"><el-input size="small" placeholder="请输入" clearable
                            v-model="componentData.entity.sample" @keyup.enter.native="refreshTable()"></el-input></div>
                </div>
                <div class="search_thing">
                    <div class="search_label">状态:</div>
                    <div class="search_input">
          <el-select v-model="componentData.entity.status" placeholder="全部" size="small">
            <el-option
              v-for="item in statusList"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
          </div>
                </div>
                <div class="search_thing" style="padding-left: 30px;">
                    <el-button size="small" @click="refresh()">重 ç½®</el-button>
                    <el-button size="small" type="primary" @click="refreshTable()">查 è¯¢</el-button>
                </div>
            </div>
            <div class="table">
                <ValueTable ref="ValueTable" :url="$api.insOrder.selectInsOrderParameter" :componentData="componentData"
                    :key="upIndex" @handleWeave="handleWeave"/>
            </div>
        </div>
    <el-dialog title="在线编制" :visible.sync="claimVisible" width="70%" :modal-append-to-body="false">
      <Word style="height:70vh" v-if="claimVisible" ref="Word"/>
            <span slot="footer" class="dialog-footer">
                <el-button @click="claimVisible = false">取 æ¶ˆ</el-button>
                <el-button type="primary" @click="confirmClaim">ç¡® å®š</el-button>
            </span>
        </el-dialog>
    </div>
</template>
<script>
    import ValueTable from '../tool/value-table.vue'
  import Word from '../tool/word.vue'
    export default {
        components: {
            ValueTable,
      Word,
        },
        data() {
            return {
                componentData: {
                    entity: {
                        entrustCode: null,
                        sample: null,
                        state: 1,
                        orderBy: {
                            field: 'id',
                            order: 'asc'
                        }
                    },
                    isIndex: true,
                    showSelect: false,
                    select: false,
                    do: [{
                        id: 'handleWeave',
                        font: '在线编制',
                        type: 'text',
                        method: 'handleWeave',
                        disabFun: (row, index) => {
                            return row.state != 1
                        }
                    }, {
                        id: 'download',
                        font: '下载',
                        type: 'text',
                        method: 'download',
                        disabFun: (row, index) => {
                            return row.state != 1
                        }
                    }, {
                        id: 'handleUpload',
                        font: '上传',
                        type: 'text',
                        method: 'handleUpload',
                        disabFun: (row, index) => {
                            return row.state != 0
                        }
                    }, {
                        id: 'handlRestore',
                        font: '还原',
                        type: 'text',
                        method: 'handleRestore'
                    }, {
            id: 'handleIssued',
                        font: '审核',
                        type: 'text',
                        method: 'handleIssued',
                        disabFun: (row, index) => {
                            return row.state != 1 || row.sendTime != null
                        }
                    }, {
            id: 'handleApprove',
                        font: '批准',
                        type: 'text',
                        method: 'handleApprove',
                        disabFun: (row, index) => {
                            return row.state != 1 || row.sendTime != null
                        }
                    }],
                    linkEvent:{
                      entrustCode:{
                        method:'selectAllByOne'
                      }
                    },
                    tagField: {
                        type: {
                            select: [{
                                value: 0,
                                type: 'success',
                                label: '普通'
                            }, {
                                value: 1,
                                type: 'warning',
                                label: '优先'
                            }, {
                                value: 2,
                                type: 'danger',
                                label: '紧急'
                            }]
                        },
                        createUser: {
                            select: []
                        }
                    },
                    selectField: {},
                    requiredAdd: [],
                    requiredUp: []
                },
                entityCopy: {},
                upIndex: 0,
        statusList:[],
        claimVisible:false
            }
        },
        mounted() {
            this.entityCopy = this.HaveJson(this.componentData.entity)
            this.getPower()
        },
        methods: {
            refreshTable() {
                this.$refs['ValueTable'].selectList()
            },
            refresh() {
                this.componentData.entity = this.HaveJson(this.entityCopy)
                this.upIndex++
            },
      handleWeave(){
        this.claimVisible = true;
      },
            // æƒé™åˆ†é…
            getPower(radio) {
                let power = JSON.parse(sessionStorage.getItem('power'))
                let up = false
                let del = false
                let add = false
                for (var i = 0; i < power.length; i++) {
                    if (power[i].menuMethod == 'upInsOrder') {
                        up = true
                    }
                    if (power[i].menuMethod == 'addInsOrder') {
                        add = true
                    }
                }
                if (!up) {
                    this.componentData.do.splice(4, 1)
                }
            },
            handleClose() {
                this.upLoad = false;
            },
      confirmClaim(){
        console.log(11111111111,this.$refs.Word.getValue())
      }
        }
    }
</script>
static/js/menu.js
@@ -32,7 +32,7 @@
        }, {
            v: "费用统计",
            i: "font icon-erjidaohang",
            u: "",
            u: "b1-expenses",
            p: ""
        }, {
            v: "样品管理",