|
|
@ -42,11 +42,11 @@ |
|
|
|
</sticky> |
|
|
|
<el-form> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="listQuery.searchYsjl.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.searchYsjl.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.searchYsjl.shiyongdanwei" placeholder="使用单位" clearable style="width: 350px" @keyup.enter.native="handleFilter" /> |
|
|
|
<el-input v-model="listQuery.serialNumber" 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.baogaobianhao" 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.shiyongdanwei" placeholder="使用单位" clearable style="width: 350px" @keyup.enter.native="handleFilter" /> |
|
|
|
<el-button type="primary" size="small" icon="el-icon-search" @click="handleFilter"> |
|
|
|
查询 |
|
|
|
</el-button> |
|
|
@ -54,14 +54,14 @@ |
|
|
|
清空 |
|
|
|
</el-button> |
|
|
|
<br> |
|
|
|
<el-input v-model="listQuery.searchYsjl.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-select v-model="listQuery.searchYsjl.jianyanleibie" placeholder="请选择检验类别" style="width: 165px" filterable clearable @change="handleFilter"> |
|
|
|
<el-input v-model="listQuery.shiyongdengjibianhao" placeholder="请输入使用登记证编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
|
|
<el-input v-model="listQuery.chanpinbianhao" placeholder="请输入产品编号" clearable style="width: 185px" @keyup.enter.native="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-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> |
|
|
|
<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> |
|
|
@ -137,7 +137,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</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" /> |
|
|
|
<!-- 高级查询窗口 --> |
|
|
|
<iframe :src="printbutton" frameborder="0" scrolling="no" height="0px" aria-disabled="true" /> |
|
|
@ -153,20 +153,16 @@ export default { |
|
|
|
components: { Sticky, Pagination, SignInfo }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
totalCount: 0, |
|
|
|
total: 0, |
|
|
|
list: [], |
|
|
|
listQuery: { |
|
|
|
pageNum: 1, // 页码 |
|
|
|
pageRow: 20, // 每页条数 |
|
|
|
order: 'id', // 排序字段 |
|
|
|
sort: 'desc', // 排序方式 |
|
|
|
orderBy: 'id desc', // 排序字段 |
|
|
|
hasChild: false, |
|
|
|
hasFinish: true, |
|
|
|
flowstatus: undefined, |
|
|
|
searchYsjl: { |
|
|
|
shebeizhongleidaima: '1000', |
|
|
|
fafangState: 0 |
|
|
|
} |
|
|
|
shebeizhongleidaima: '1000', |
|
|
|
fafangState: 0 |
|
|
|
}, |
|
|
|
flowUserList: [], |
|
|
|
dialogFormVisible: false, |
|
|
@ -199,17 +195,16 @@ export default { |
|
|
|
}, |
|
|
|
getList() { |
|
|
|
this.api({ |
|
|
|
url: '/ysjl/getList', |
|
|
|
url: '/ysjl/getListPrint', |
|
|
|
method: 'get', |
|
|
|
params: this.listQuery |
|
|
|
}).then(data => { |
|
|
|
this.list = data.list |
|
|
|
this.totalCount = data.totalCount |
|
|
|
this.total = data.total |
|
|
|
}) |
|
|
|
}, |
|
|
|
sortChange(column) { |
|
|
|
this.listQuery.order = column.prop |
|
|
|
this.listQuery.sort = column.order.replace('ending', '') |
|
|
|
this.listQuery.orderBy = column.prop + ' ' + column.order.replace('ending', '') |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
getIndex($index) { |
|
|
@ -260,7 +255,6 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
batchToPrint(type) { |
|
|
|
const ysjl = this.multipleSelection[0] |
|
|
|
if (this.multipleSelection.length === 0) { |
|
|
|
this.$message('请选择单条或者多条设备进行打印。') |
|
|
|
return false |
|
|
@ -280,62 +274,44 @@ export default { |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
this.api({ // 记录打印详细,不做打印状态改变。 |
|
|
|
url: '/ysjl/getListBanjie', |
|
|
|
method: 'get', |
|
|
|
this.preview({ |
|
|
|
url: '/print/createXml', |
|
|
|
method: 'post', |
|
|
|
params: { |
|
|
|
pageNum: 1, |
|
|
|
pageRow: 20, |
|
|
|
searchYsjl: { |
|
|
|
baogaobianhao: '(' + new Date().getFullYear() + ')', |
|
|
|
shiyongdanwei: ysjl.shiyongdanwei, |
|
|
|
jfState: false, |
|
|
|
shebeizhongleidaima: '1000' |
|
|
|
} |
|
|
|
ids: ids, |
|
|
|
type: type |
|
|
|
} |
|
|
|
}).then(data => { |
|
|
|
if (data.totalCount !== 0) { |
|
|
|
this.$message({ |
|
|
|
type: 'warning', |
|
|
|
message: '该单位名下存在未收费的检验项,请确认后在进行操作!' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} else { |
|
|
|
this.preview({ |
|
|
|
url: '/print/createXml', |
|
|
|
method: 'post', |
|
|
|
this.printbutton = 'ReportPrintApp://' + data |
|
|
|
this.api({ // 记录打印详细,不做打印状态改变。 |
|
|
|
url: '/ysjl/batchRecordPrintState', |
|
|
|
method: 'get', |
|
|
|
params: { |
|
|
|
ids: ids, |
|
|
|
type: type |
|
|
|
} |
|
|
|
}) |
|
|
|
if (type === 'JYBG') { |
|
|
|
this.api({ // 标记为打印状态。 |
|
|
|
url: '/ysjl/batchUpdPrintState', |
|
|
|
method: 'get', |
|
|
|
params: { |
|
|
|
ids: ids, |
|
|
|
type: type |
|
|
|
} |
|
|
|
}).then(data => { |
|
|
|
this.printbutton = 'ReportPrintApp://' + data |
|
|
|
this.api({ // 记录打印详细,不做打印状态改变。 |
|
|
|
url: '/ysjl/batchRecordPrintState', |
|
|
|
method: 'get', |
|
|
|
params: { |
|
|
|
ids: ids, |
|
|
|
type: type |
|
|
|
} |
|
|
|
}) |
|
|
|
if (type === 'JYBG') { |
|
|
|
this.api({ // 标记为打印状态。 |
|
|
|
url: '/ysjl/batchUpdPrintState', |
|
|
|
method: 'get', |
|
|
|
params: { |
|
|
|
ids: ids, |
|
|
|
type: type |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
clearQuery() { |
|
|
|
this.$set(this.listQuery, 'searchYsjl', { |
|
|
|
this.$set(this, 'listQuery', { |
|
|
|
pageNum: 1, // 页码 |
|
|
|
pageRow: 20, // 每页条数 |
|
|
|
orderBy: 'id desc', // 排序字段 |
|
|
|
hasChild: false, |
|
|
|
flowstatus: undefined, |
|
|
|
shebeizhongleidaima: '1000', |
|
|
|
printState: 0 |
|
|
|
fafangState: 0 |
|
|
|
}) |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|