|
@@ -246,7 +246,7 @@ import {
|
|
revoke,
|
|
revoke,
|
|
withdrawBy,
|
|
withdrawBy,
|
|
getName,
|
|
getName,
|
|
- queryUserVal, feesList, corpsList
|
|
|
|
|
|
+ queryUserVal, feesList, corpsList, exportContact, exportAllContact
|
|
} from '@/api/costManagement/index'
|
|
} from '@/api/costManagement/index'
|
|
import Cookies from 'js-cookie'
|
|
import Cookies from 'js-cookie'
|
|
import Global from '@/layout/components/global'
|
|
import Global from '@/layout/components/global'
|
|
@@ -564,6 +564,23 @@ export default {
|
|
icon: 'el-icon-c-scale-to-original',
|
|
icon: 'el-icon-c-scale-to-original',
|
|
name: '复制新单',
|
|
name: '复制新单',
|
|
disabled: false
|
|
disabled: false
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ {
|
|
|
|
+ type: 'warning',
|
|
|
|
+ size: 'mini',
|
|
|
|
+ icon: 'el-icon-upload',
|
|
|
|
+ name: '导出',
|
|
|
|
+ disabled: false,
|
|
|
|
+ hasPermi: ['anpin:stockControl:export']
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ type: 'warning',
|
|
|
|
+ size: 'mini',
|
|
|
|
+ icon: 'el-icon-upload',
|
|
|
|
+ name: '导出包含明细',
|
|
|
|
+ disabled: false,
|
|
|
|
+ hasPermi: ['anpin:stockControl:export']
|
|
}
|
|
}
|
|
],
|
|
],
|
|
contentButton: [
|
|
contentButton: [
|
|
@@ -1598,6 +1615,30 @@ export default {
|
|
case '保存':
|
|
case '保存':
|
|
this.$refs.avatar.submitForm('submit')
|
|
this.$refs.avatar.submitForm('submit')
|
|
break
|
|
break
|
|
|
|
+ case '导出包含明细':
|
|
|
|
+ const exportData = this.formDataList;
|
|
|
|
+ this.$confirm('是否确认导出所有导出包含明细数据项?', "警告", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning"
|
|
|
|
+ }).then(function() {
|
|
|
|
+ return exportContact(exportData);
|
|
|
|
+ }).then(response => {
|
|
|
|
+ this.download(response.msg);
|
|
|
|
+ })
|
|
|
|
+ break
|
|
|
|
+ case '导出':
|
|
|
|
+ const exportAll = this.formDataList;
|
|
|
|
+ this.$confirm('是否确认导出所有数据项?', "警告", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning"
|
|
|
|
+ }).then(function() {
|
|
|
|
+ return exportAllContact(exportAll);
|
|
|
|
+ }).then(response => {
|
|
|
|
+ this.download(response.msg);
|
|
|
|
+ })
|
|
|
|
+ break
|
|
case '打印':
|
|
case '打印':
|
|
if (Number(this.$refs.avatar.form.fStatus) >= 3) {
|
|
if (Number(this.$refs.avatar.form.fStatus) >= 3) {
|
|
for (let item in this.contentList) {
|
|
for (let item in this.contentList) {
|