|
@@ -19,7 +19,7 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="ml-2 w-250px">
|
|
|
- <hc-search-input v-model="searchForm.queryValue" @search="searchClick" />
|
|
|
+ <hc-search-input v-model="searchForm.entrustName" @search="searchClick" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #extraToHeader>
|
|
@@ -31,15 +31,15 @@
|
|
|
<hc-icon name="delete-bin-2" />
|
|
|
<span>删除</span>
|
|
|
</el-button>
|
|
|
- <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn color="#567722">
|
|
|
+ <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn color="#567722" @click="batchPrinting">
|
|
|
<hc-icon name="printer" />
|
|
|
<span>批量打印</span>
|
|
|
</el-button>
|
|
|
- <el-button :disabled="tableCheckedKeys.length <= 0" class="text-white" hc-btn color="#FF976A">
|
|
|
+ <el-button :disabled="tableCheckedKeys.length <= 0" class="text-white" hc-btn color="#FF976A" @click="reportClick">
|
|
|
<HcIcon name="send-plane-2" />
|
|
|
<span>上报</span>
|
|
|
</el-button>
|
|
|
- <el-button hc-btn color="#567722">
|
|
|
+ <el-button hc-btn color="#567722" @click="printerNull">
|
|
|
<hc-icon name="printer" />
|
|
|
<span>打印空表</span>
|
|
|
</el-button>
|
|
@@ -78,7 +78,8 @@
|
|
|
<template #footer>
|
|
|
<el-button @click="delegateModalClose">取消</el-button>
|
|
|
<el-button hc-btn type="warning" @click="linkSamplingModal = true">关联取样材料</el-button>
|
|
|
- <el-button hc-btn type="primary" @click="creatingDelegate">创建</el-button>
|
|
|
+ <el-button v-if="editHtmlId" hc-btn type="primary" @click="creatingDelegate">保存</el-button>
|
|
|
+ <el-button v-else hc-btn type="primary" @click="creatingDelegate">创建</el-button>
|
|
|
</template>
|
|
|
</hc-new-dialog>
|
|
|
|
|
@@ -168,7 +169,7 @@ onActivated(() => {
|
|
|
})
|
|
|
|
|
|
//搜索表单
|
|
|
-const searchForm = ref({ current: 1, size: 20, total: 0 })
|
|
|
+const searchForm = ref({ entrustName: null, current: 1, size: 20, total: 0 })
|
|
|
|
|
|
//自动展开缓存
|
|
|
const treeAutoExpandKeys = ref(getStoreValue('testTreeExpandKeys') || [])
|
|
@@ -366,6 +367,10 @@ const creatingDelegate = async () => {
|
|
|
window.$message.warning('请先关联取样材料')
|
|
|
return
|
|
|
}
|
|
|
+ //修改时的id
|
|
|
+ if (!isNullES(editHtmlId.value)) {
|
|
|
+ form.id = editHtmlId.value
|
|
|
+ }
|
|
|
console.log(form)
|
|
|
const { error, code, msg } = await mainApi.htmlSave(form)
|
|
|
if (!error && code === 200) {
|
|
@@ -444,6 +449,21 @@ const rowActionModalClose = () => {
|
|
|
rowActionModal.value = false
|
|
|
formModel.value = {}
|
|
|
}
|
|
|
+
|
|
|
+//批量打印
|
|
|
+const batchPrinting = () => {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+//上报
|
|
|
+const reportClick = () => {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+//打印空表
|
|
|
+const printerNull = () => {
|
|
|
+
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|