|
@@ -230,7 +230,12 @@
|
|
|
:disabled="selection.length < 1 || detailData.seeDisabled"
|
|
|
@click="getShipmentD">生成发货单
|
|
|
</el-button>
|
|
|
- <el-button type="info" :size="size" icon="el-icon-printer" :disabled="detailData.seeDisabled">报 表</el-button>
|
|
|
+ <el-button type="info"
|
|
|
+ :size="size"
|
|
|
+ icon="el-icon-printer"
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
+ @click.stop="openReport()"
|
|
|
+ >报 表</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
@@ -493,6 +498,11 @@
|
|
|
>
|
|
|
</apply-payment>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <report-dialog
|
|
|
+ :switchDialog="switchDialog"
|
|
|
+ @onClose="onClose()"
|
|
|
+ ></report-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -531,6 +541,7 @@ import { getMarketPrice, getPurchasePrice } from "@/api/basicData/fees"
|
|
|
import customerDialog from "@/components/customer-dialog/main";
|
|
|
//账单组件
|
|
|
import ApplyPayment from "../../../components/finance/applyPayment";
|
|
|
+import reportDialog from "@/components/report-dialog/main";
|
|
|
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
@@ -541,7 +552,8 @@ export default {
|
|
|
},
|
|
|
components:{
|
|
|
customerDialog,
|
|
|
- ApplyPayment
|
|
|
+ ApplyPayment,
|
|
|
+ reportDialog,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -1094,6 +1106,7 @@ export default {
|
|
|
rowHeight: '',
|
|
|
// 查询时loading页面
|
|
|
pageLoading: false,
|
|
|
+ switchDialog: false,
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -1331,6 +1344,13 @@ export default {
|
|
|
policy() {
|
|
|
this.policyDialog = !this.policyDialog
|
|
|
},
|
|
|
+ // 报表
|
|
|
+ openReport() {
|
|
|
+ this.switchDialog =! this.switchDialog;
|
|
|
+ },
|
|
|
+ onClose(val) {
|
|
|
+ this.switchDialog = val;
|
|
|
+ },
|
|
|
getShipmentD() {
|
|
|
if (this.$store.getters.inStatus) {
|
|
|
this.$alert("发货单存在,请保存发货单再进行操作", "温馨提示", {
|
|
@@ -1423,9 +1443,8 @@ export default {
|
|
|
itemType:"销售",
|
|
|
corpsName:this.form.corpName,
|
|
|
corpId:this.form.corpId,
|
|
|
+ srcParentId: this.form.id,
|
|
|
}
|
|
|
- console.log(this.form)
|
|
|
- console.log(this.billData )
|
|
|
if(type){ //申请货款
|
|
|
this.billData.srcId = -1
|
|
|
}
|