|
@ -63,6 +63,8 @@ |
|
|
</template> |
|
|
</template> |
|
|
</Table> |
|
|
</Table> |
|
|
<el-button @click="closeDialog">关闭</el-button> |
|
|
<el-button @click="closeDialog">关闭</el-button> |
|
|
|
|
|
<el-button @click="genLabel()">生成标签</el-button> |
|
|
|
|
|
|
|
|
<el-button @click="print">打印</el-button> |
|
|
<el-button @click="print">打印</el-button> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
</template> |
|
|
</template> |
|
@ -155,8 +157,6 @@ |
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
getList() |
|
|
getList() |
|
|
} else if (val == 'filtrate') { // 筛选 |
|
|
} else if (val == 'filtrate') { // 筛选 |
|
|
} else { // 其他按钮 |
|
|
|
|
|
console.log('其他按钮', item) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -184,8 +184,6 @@ |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'mainPurPlanOpe') { // 打开 |
|
|
if (val == 'mainPurPlanOpe') { // 打开 |
|
@ -300,8 +298,6 @@ |
|
|
} catch { } |
|
|
} catch { } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
/** 导出按钮操作 */ |
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
const handleExport = async () => { |
|
|
const handleExport = async () => { |
|
@ -335,8 +331,24 @@ |
|
|
isShow.value = false |
|
|
isShow.value = false |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 生成标签按钮操作 */ |
|
|
|
|
|
const genLabel = async () => { |
|
|
|
|
|
try { |
|
|
|
|
|
// 生成标签的二次确认 |
|
|
|
|
|
await message.confirm('是否为此数据生成标签?') |
|
|
|
|
|
// 发起生成标签 |
|
|
|
|
|
await SupplierdeliverRequestMainApi.genLabel(genLabelId.value) |
|
|
|
|
|
dialogVisible.value = false |
|
|
|
|
|
isShow.value = false |
|
|
|
|
|
message.success(t('生成标签成功!')) |
|
|
|
|
|
// 刷新列表 |
|
|
|
|
|
await getList() |
|
|
|
|
|
} catch { } |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const BASE_URL = 'http://dev.ccwin-in.com:25110' |
|
|
const BASE_URL = 'http://dev.ccwin-in.com:25110' |
|
|
const src = ref(BASE_URL + '/jmreport/view/881303562245316608?token=' + getAccessToken()) |
|
|
const src = ref(BASE_URL + '/jmreport/view/881303562245316608?token=' + getAccessToken()) |
|
|
|
|
|
const genLabelId=ref(); |
|
|
// 标签打印 |
|
|
// 标签打印 |
|
|
const handlePoint = async (row) => { |
|
|
const handlePoint = async (row) => { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
@ -345,6 +357,7 @@ |
|
|
await getDetailList() |
|
|
await getDetailList() |
|
|
dialogVisible.value = true |
|
|
dialogVisible.value = true |
|
|
dialogTitle.value = row.number + '单据号' |
|
|
dialogTitle.value = row.number + '单据号' |
|
|
|
|
|
genLabelId.value = row.number |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const print = async () => { |
|
|
const print = async () => { |
|
|