|
@@ -8,9 +8,9 @@
|
|
<el-form class="search_area" label-width="auto">
|
|
<el-form class="search_area" label-width="auto">
|
|
<el-row :gutter="10">
|
|
<el-row :gutter="10">
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
- <el-form-item label="通用名称">
|
|
|
|
|
|
+ <el-form-item label="编码">
|
|
<el-input
|
|
<el-input
|
|
- v-model.trim="params.commonName"
|
|
|
|
|
|
+ v-model.trim="params.code"
|
|
size="mini"
|
|
size="mini"
|
|
clearable
|
|
clearable
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
@@ -19,31 +19,36 @@
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
- <el-form-item label="注册名">
|
|
|
|
- <el-input
|
|
|
|
- v-model.trim="params.registrationName"
|
|
|
|
- size="mini"
|
|
|
|
- clearable
|
|
|
|
- style="width: 200px"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-form-item label="结算开始日期">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="params.startDate"
|
|
|
|
+ clearable
|
|
|
|
+ type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ size="mini"
|
|
|
|
+ style="width: 200px"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
- <el-form-item label="厂家名称">
|
|
|
|
- <el-input
|
|
|
|
- v-model.trim="params.factoryName"
|
|
|
|
- size="mini"
|
|
|
|
- clearable
|
|
|
|
- style="width: 200px"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-form-item label="结算截止日期">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="params.endDate"
|
|
|
|
+ clearable
|
|
|
|
+ type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ size="mini"
|
|
|
|
+ style="width: 200px"
|
|
|
|
+ ></el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
- <el-form-item label="型号">
|
|
|
|
|
|
+ <el-form-item label="结算单号">
|
|
<el-input
|
|
<el-input
|
|
- v-model.trim="params.model"
|
|
|
|
|
|
+ v-model.trim="params.settleNo"
|
|
size="mini"
|
|
size="mini"
|
|
clearable
|
|
clearable
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
@@ -53,15 +58,15 @@
|
|
|
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-form-item label-width="80px">
|
|
<el-form-item label-width="80px">
|
|
- <el-button type="primary" size="mini" icon="el-icon-search" @click="searchList">搜 索</el-button>
|
|
|
|
- <el-button size="mini" plain icon="el-icon-refresh" @click="resetList">重 置</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="mini" icon="el-icon-search" @click="searchList">搜索</el-button>
|
|
|
|
+ <el-button size="mini" plain icon="el-icon-refresh" @click="resetList">重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
<div class="btn_grooup">
|
|
<div class="btn_grooup">
|
|
- <el-button type="primary" size="mini" @click="submits">提交</el-button>
|
|
|
|
|
|
+ <!-- <el-button type="primary" size="mini" @click="submits">提交</el-button> -->
|
|
<el-button type="primary" size="mini" @click="pulldata">下拉数据</el-button>
|
|
<el-button type="primary" size="mini" @click="pulldata">下拉数据</el-button>
|
|
<el-button type="primary" size="mini" @click="huizong">汇总</el-button>
|
|
<el-button type="primary" size="mini" @click="huizong">汇总</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -108,9 +113,9 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { mxList, pullMx } from '@/api/expend/expendMx.js'
|
|
|
|
|
|
+import { mxList, pullMx, huizongMX } from '@/api/expend/expendMx.js'
|
|
export default {
|
|
export default {
|
|
- dicts: ['sys_equipment_type'],
|
|
|
|
|
|
+ dicts: ['sys_status'],
|
|
components: {
|
|
components: {
|
|
Add: () => import("./expendMxDetail.vue"),
|
|
Add: () => import("./expendMxDetail.vue"),
|
|
ElSuperUxTable: () => import("@/components/super-ux-table/index.vue"),
|
|
ElSuperUxTable: () => import("@/components/super-ux-table/index.vue"),
|
|
@@ -126,17 +131,10 @@ export default {
|
|
size: "mini",
|
|
size: "mini",
|
|
loading: false,
|
|
loading: false,
|
|
params: {
|
|
params: {
|
|
- commonName: '',
|
|
|
|
- registrationName: '',
|
|
|
|
- deviceCategory: '',
|
|
|
|
- departmentCode: '',
|
|
|
|
- factoryName: '',
|
|
|
|
- model: '',
|
|
|
|
- referencePrice: '',
|
|
|
|
- parameters: '',
|
|
|
|
- isDeleteFile: '',
|
|
|
|
- isProjectOrFactoryEmpower: '',
|
|
|
|
- remark: ''
|
|
|
|
|
|
+ code: '',
|
|
|
|
+ startDate: '',
|
|
|
|
+ endDate: '',
|
|
|
|
+ settleNo: '',
|
|
},
|
|
},
|
|
pageInfo: {
|
|
pageInfo: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
@@ -151,7 +149,11 @@ export default {
|
|
{ item: { key: "custCode", title: "医院编码" }, attr: {} },
|
|
{ item: { key: "custCode", title: "医院编码" }, attr: {} },
|
|
{ item: { key: "supplierCode", title: "供应商编码" }, attr: {} },
|
|
{ item: { key: "supplierCode", title: "供应商编码" }, attr: {} },
|
|
{ item: { key: "supplierName", title: "供应商名称" }, attr: {} },
|
|
{ item: { key: "supplierName", title: "供应商名称" }, attr: {} },
|
|
- { item: { key: "isSum", title: "是否汇总" }, attr: {} },
|
|
|
|
|
|
+ { item: { key: "isSum", title: "是否汇总" }, attr: {
|
|
|
|
+ formatter: (prop) => {
|
|
|
|
+ return prop.isSum == '0' ? '是' : '否'
|
|
|
|
+ },
|
|
|
|
+ } },
|
|
{ item: { key: "settleNo", title: "结算单号"}, attr: {} },
|
|
{ item: { key: "settleNo", title: "结算单号"}, attr: {} },
|
|
{ item: { key: "startDate", title: "结算开始日期" }, attr: {} },
|
|
{ item: { key: "startDate", title: "结算开始日期" }, attr: {} },
|
|
{ item: { key: "endDate", title: "结算截止日期" }, attr: {} },
|
|
{ item: { key: "endDate", title: "结算截止日期" }, attr: {} },
|
|
@@ -160,7 +162,11 @@ export default {
|
|
// { item: { key: "parameters", title: "参数" }, attr: {} },
|
|
// { item: { key: "parameters", title: "参数" }, attr: {} },
|
|
{ item: { key: "remark", title: "备注"}, attr: {} },
|
|
{ item: { key: "remark", title: "备注"}, attr: {} },
|
|
{ item: { key: "code", title: "编码"}, attr: {} },
|
|
{ item: { key: "code", title: "编码"}, attr: {} },
|
|
- { item: { key: "verifyState", title: "单据状态"}, attr: {} },
|
|
|
|
|
|
+ { item: { key: "verifyState", title: "单据状态"}, attr: {
|
|
|
|
+ is: "el-dict-tag",
|
|
|
|
+ dictName: "sys_status",
|
|
|
|
+ }
|
|
|
|
+ },
|
|
].map(({ item, attr }) => ({
|
|
].map(({ item, attr }) => ({
|
|
attr,
|
|
attr,
|
|
item: {
|
|
item: {
|
|
@@ -178,14 +184,25 @@ export default {
|
|
this.useQuery(this.params, this.pageInfo)
|
|
this.useQuery(this.params, this.pageInfo)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- searchList() {},
|
|
|
|
- resetList() {},
|
|
|
|
|
|
+ searchList() {
|
|
|
|
+ this.useQuery(this.params, this.pageInfo)
|
|
|
|
+ },
|
|
|
|
+ resetList() {
|
|
|
|
+ this.params = {
|
|
|
|
+ code: '',
|
|
|
|
+ startDate: '',
|
|
|
|
+ endDate: '',
|
|
|
|
+ settleNo: '',
|
|
|
|
+ }
|
|
|
|
+ this.useQuery(this.params, this.pageInfo)
|
|
|
|
+ },
|
|
useSee() {},
|
|
useSee() {},
|
|
useSelect() {},
|
|
useSelect() {},
|
|
handleSelectionChange(selection) {
|
|
handleSelectionChange(selection) {
|
|
console.log('选中', selection)
|
|
console.log('选中', selection)
|
|
- this.ids = selection.map(item => item.id)
|
|
|
|
- console.log('选中数组', this.ids)
|
|
|
|
|
|
+ // this.ids = selection.map(item => item.id)
|
|
|
|
+ // console.log('选中数组', this.ids)
|
|
|
|
+ this.ids = selection
|
|
},
|
|
},
|
|
rowSelect(row) {
|
|
rowSelect(row) {
|
|
this.$refs.tables.toggleRowSelection([{row: row}]);
|
|
this.$refs.tables.toggleRowSelection([{row: row}]);
|
|
@@ -205,13 +222,41 @@ export default {
|
|
this.disable = false
|
|
this.disable = false
|
|
},
|
|
},
|
|
pulldata() {
|
|
pulldata() {
|
|
|
|
+ this.$modal.loading("正在下拉数据,请稍后...");
|
|
pullMx().then(res => {
|
|
pullMx().then(res => {
|
|
-
|
|
|
|
|
|
+ if(res.code === 200) {
|
|
|
|
+ this.$modal.closeLoading();
|
|
|
|
+ this.$modal.notifySuccess(res.msg);
|
|
|
|
+ this.useQuery(this.params, this.pageInfo)
|
|
|
|
+ }
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ this.$modal.closeLoading();
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- huizong() {},
|
|
|
|
- check() {},
|
|
|
|
- edit() {},
|
|
|
|
|
|
+ huizong() {
|
|
|
|
+ if (this.ids.length <= 0) {
|
|
|
|
+ this.$modal.notifyWarning("至少勾选一条数据");
|
|
|
|
+ } else {
|
|
|
|
+ huizongMX(this.ids).then(res => {
|
|
|
|
+ if(res.code === 200) {
|
|
|
|
+ this.$modal.notifySuccess(res.msg);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ // huizongMX()
|
|
|
|
+ },
|
|
|
|
+ check(row) {
|
|
|
|
+ this.isList = false
|
|
|
|
+ this.page = 'check'
|
|
|
|
+ this.rowDetail = row
|
|
|
|
+ this.disable = true
|
|
|
|
+ },
|
|
|
|
+ edit(row) {
|
|
|
|
+ this.isList = false
|
|
|
|
+ this.page = 'edit'
|
|
|
|
+ this.rowDetail = row
|
|
|
|
+ this.disable = false
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|