|
@ -42,11 +42,11 @@ |
|
|
</sticky> |
|
|
</sticky> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-input v-model="listQuery.searchYsjl.serialNumber" placeholder="(全部)报检单编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.serialNumber" placeholder="(全部)报检单编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.searchYsjl.sfdSerialNumber" placeholder="(全部)收费单编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.sfdSerialNumber" placeholder="(全部)收费单编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.searchYsjl.baogaobianhao" placeholder="报告编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.baogaobianhao" placeholder="报告编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.searchYsjl.zhucedaima" placeholder="注册代码" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.zhucedaima" placeholder="注册代码" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.searchYsjl.shiyongdanwei" placeholder="使用单位" clearable style="width: 350px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.shiyongdanwei" placeholder="使用单位" clearable style="width: 350px" @keyup.enter.native="handleFilter" /> |
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="handleFilter"> |
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="handleFilter"> |
|
|
查询 |
|
|
查询 |
|
|
</el-button> |
|
|
</el-button> |
|
@ -54,14 +54,14 @@ |
|
|
清空 |
|
|
清空 |
|
|
</el-button> |
|
|
</el-button> |
|
|
<br> |
|
|
<br> |
|
|
<el-input v-model="listQuery.searchYsjl.shiyongdengjibianhao" placeholder="请输入使用登记证编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.shiyongdengjibianhao" placeholder="请输入使用登记证编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.searchYsjl.chanpinbianhao" placeholder="请输入产品编号" clearable style="width: 185px" @keyup.enter.native="handleFilter" /> |
|
|
<el-input v-model="listQuery.chanpinbianhao" placeholder="请输入产品编号" clearable style="width: 185px" @keyup.enter.native="handleFilter" /> |
|
|
<el-select v-model="listQuery.searchYsjl.jianyanleibie" placeholder="请选择检验类别" style="width: 165px" filterable clearable @change="handleFilter"> |
|
|
<el-select v-model="listQuery.jianyanleibie" placeholder="请选择检验类别" style="width: 165px" filterable clearable @change="handleFilter"> |
|
|
<el-option v-for="item in jylbList" v-show="item.parentId" :key="item.code" :label="item.name" :value="item.code" /> |
|
|
<el-option v-for="item in jylbList" v-show="item.parentId" :key="item.code" :label="item.name" :value="item.code" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-date-picker v-model="listQuery.searchYsjl.xiacijianyanriqi" type="date" value-format="yyyy-MM-dd" placeholder="请选择下次检验日期" style="width:145px" /> |
|
|
<el-date-picker v-model="listQuery.xiacijianyanriqi" type="date" value-format="yyyy-MM-dd" placeholder="请选择下次检验日期" style="width:145px" /> |
|
|
<span class="radio-group-label">发放状态:</span> |
|
|
<span class="radio-group-label">发放状态:</span> |
|
|
<el-radio-group v-model="listQuery.searchYsjl.fafangState" @change="handleFilter"> |
|
|
<el-radio-group v-model="listQuery.fafangState" @change="handleFilter"> |
|
|
<el-radio :label="0"> |
|
|
<el-radio :label="0"> |
|
|
未发放 |
|
|
未发放 |
|
|
</el-radio> |
|
|
</el-radio> |
|
@ -137,7 +137,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
<pagination v-show="totalCount>0" :total="totalCount" :page-num.sync="listQuery.pageNum" :page-row.sync="listQuery.pageRow" @pagination="getList" /> |
|
|
<pagination v-show="total>0" :total="total" :page-num.sync="listQuery.pageNum" :page-row.sync="listQuery.pageRow" @pagination="getList" /> |
|
|
<sign-info v-if="fafangVisible" :fafanglisttable="multipleSelection" @closeFafang="fafangVisible = false" @refulshList="handleFilter" /> |
|
|
<sign-info v-if="fafangVisible" :fafanglisttable="multipleSelection" @closeFafang="fafangVisible = false" @refulshList="handleFilter" /> |
|
|
<!-- 高级查询窗口 --> |
|
|
<!-- 高级查询窗口 --> |
|
|
<iframe :src="printbutton" frameborder="0" scrolling="no" height="0px" aria-disabled="true" /> |
|
|
<iframe :src="printbutton" frameborder="0" scrolling="no" height="0px" aria-disabled="true" /> |
|
@ -153,20 +153,16 @@ export default { |
|
|
components: { Sticky, Pagination, SignInfo }, |
|
|
components: { Sticky, Pagination, SignInfo }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
totalCount: 0, |
|
|
total: 0, |
|
|
list: [], |
|
|
list: [], |
|
|
listQuery: { |
|
|
listQuery: { |
|
|
pageNum: 1, // 页码 |
|
|
pageNum: 1, // 页码 |
|
|
pageRow: 20, // 每页条数 |
|
|
pageRow: 20, // 每页条数 |
|
|
order: 'id', // 排序字段 |
|
|
orderBy: 'id desc', // 排序字段 |
|
|
sort: 'desc', // 排序方式 |
|
|
|
|
|
hasChild: false, |
|
|
hasChild: false, |
|
|
hasFinish: true, |
|
|
|
|
|
flowstatus: undefined, |
|
|
flowstatus: undefined, |
|
|
searchYsjl: { |
|
|
|
|
|
shebeizhongleidaima: '1000', |
|
|
shebeizhongleidaima: '1000', |
|
|
fafangState: 0 |
|
|
fafangState: 0 |
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
flowUserList: [], |
|
|
flowUserList: [], |
|
|
dialogFormVisible: false, |
|
|
dialogFormVisible: false, |
|
@ -199,17 +195,16 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getList() { |
|
|
getList() { |
|
|
this.api({ |
|
|
this.api({ |
|
|
url: '/ysjl/getList', |
|
|
url: '/ysjl/getListPrint', |
|
|
method: 'get', |
|
|
method: 'get', |
|
|
params: this.listQuery |
|
|
params: this.listQuery |
|
|
}).then(data => { |
|
|
}).then(data => { |
|
|
this.list = data.list |
|
|
this.list = data.list |
|
|
this.totalCount = data.totalCount |
|
|
this.total = data.total |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
sortChange(column) { |
|
|
sortChange(column) { |
|
|
this.listQuery.order = column.prop |
|
|
this.listQuery.orderBy = column.prop + ' ' + column.order.replace('ending', '') |
|
|
this.listQuery.sort = column.order.replace('ending', '') |
|
|
|
|
|
this.getList() |
|
|
this.getList() |
|
|
}, |
|
|
}, |
|
|
getIndex($index) { |
|
|
getIndex($index) { |
|
@ -260,7 +255,6 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
batchToPrint(type) { |
|
|
batchToPrint(type) { |
|
|
const ysjl = this.multipleSelection[0] |
|
|
|
|
|
if (this.multipleSelection.length === 0) { |
|
|
if (this.multipleSelection.length === 0) { |
|
|
this.$message('请选择单条或者多条设备进行打印。') |
|
|
this.$message('请选择单条或者多条设备进行打印。') |
|
|
return false |
|
|
return false |
|
@ -280,27 +274,6 @@ export default { |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.api({ // 记录打印详细,不做打印状态改变。 |
|
|
|
|
|
url: '/ysjl/getListBanjie', |
|
|
|
|
|
method: 'get', |
|
|
|
|
|
params: { |
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
pageRow: 20, |
|
|
|
|
|
searchYsjl: { |
|
|
|
|
|
baogaobianhao: '(' + new Date().getFullYear() + ')', |
|
|
|
|
|
shiyongdanwei: ysjl.shiyongdanwei, |
|
|
|
|
|
jfState: false, |
|
|
|
|
|
shebeizhongleidaima: '1000' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}).then(data => { |
|
|
|
|
|
if (data.totalCount !== 0) { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
message: '该单位名下存在未收费的检验项,请确认后在进行操作!' |
|
|
|
|
|
}) |
|
|
|
|
|
return false |
|
|
|
|
|
} else { |
|
|
|
|
|
this.preview({ |
|
|
this.preview({ |
|
|
url: '/print/createXml', |
|
|
url: '/print/createXml', |
|
|
method: 'post', |
|
|
method: 'post', |
|
@ -329,13 +302,16 @@ export default { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
clearQuery() { |
|
|
clearQuery() { |
|
|
this.$set(this.listQuery, 'searchYsjl', { |
|
|
this.$set(this, 'listQuery', { |
|
|
|
|
|
pageNum: 1, // 页码 |
|
|
|
|
|
pageRow: 20, // 每页条数 |
|
|
|
|
|
orderBy: 'id desc', // 排序字段 |
|
|
|
|
|
hasChild: false, |
|
|
|
|
|
flowstatus: undefined, |
|
|
shebeizhongleidaima: '1000', |
|
|
shebeizhongleidaima: '1000', |
|
|
printState: 0 |
|
|
fafangState: 0 |
|
|
}) |
|
|
}) |
|
|
this.getList() |
|
|
this.getList() |
|
|
}, |
|
|
}, |
|
|