|
@@ -19,16 +19,11 @@
|
|
|
:loading="buttonLoading"
|
|
|
@click.stop="applyPayment()">申请货款
|
|
|
</el-button>
|
|
|
-<!-- <el-button type="warning"
|
|
|
- size="small"
|
|
|
- class="el-button--small-yh "
|
|
|
- :loading="buttonLoading"
|
|
|
- @click.stop="applyPayment()">取消货款
|
|
|
- </el-button>-->
|
|
|
<el-button type="info"
|
|
|
size="small"
|
|
|
:loading="buttonLoading"
|
|
|
- @click="openApplicationDialog"
|
|
|
+ @click="applicationDialog = true,
|
|
|
+ applicationData = contactsData"
|
|
|
>查看申请记录
|
|
|
</el-button>
|
|
|
<el-button type="success"
|
|
@@ -101,9 +96,7 @@
|
|
|
@saveColumn="saveColumn"
|
|
|
>
|
|
|
<template slot="priceCategory" slot-scope="{ row, index}">
|
|
|
- <span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<goods-select
|
|
|
- style="width:90% !important;"
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.priceCategoryNames"
|
|
|
@valueName="(value) => valueName(value,row)"
|
|
@@ -113,7 +106,6 @@
|
|
|
<span v-else>{{ row.priceCategoryNames }}</span>
|
|
|
</template>
|
|
|
<template slot="itemType" slot-scope="{ row, index }">
|
|
|
- <span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<el-select
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.itemType"
|
|
@@ -137,19 +129,17 @@
|
|
|
<template slot="orderQuantity" slot-scope="{ row }">
|
|
|
<span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<el-input
|
|
|
- style="width:90% !important;"
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.orderQuantity"
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
+ style="width: 93%"
|
|
|
oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
></el-input>
|
|
|
<span v-else>{{ row.orderQuantity }}</span>
|
|
|
</template>
|
|
|
<template slot="price" slot-scope="{ row }">
|
|
|
- <span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<el-input
|
|
|
- style="width:90% !important;"
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.price"
|
|
|
placeholder="请输入"
|
|
@@ -160,9 +150,7 @@
|
|
|
<span v-else>{{ row.price }}</span>
|
|
|
</template>
|
|
|
<template slot="invoiceWeight" slot-scope="{ row }">
|
|
|
- <span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<el-input
|
|
|
- style="width:90% !important;"
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.invoiceWeight"
|
|
|
placeholder="请输入"
|
|
@@ -173,9 +161,7 @@
|
|
|
<span v-else>{{ row.invoiceWeight }}</span>
|
|
|
</template>
|
|
|
<template slot="billWeight" slot-scope="{ row }">
|
|
|
- <span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<el-input
|
|
|
- style="width:90% !important;"
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.billWeight"
|
|
|
placeholder="请输入"
|
|
@@ -187,9 +173,7 @@
|
|
|
<span v-else>{{ row.billWeight }}</span>
|
|
|
</template>
|
|
|
<template slot="amount" slot-scope="{ row }">
|
|
|
- <span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<el-input
|
|
|
- style="width:90% !important;"
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.amount"
|
|
|
placeholder="请输入"
|
|
@@ -249,17 +233,24 @@
|
|
|
append-to-body
|
|
|
class="el-dialogDeep"
|
|
|
:visible.sync="applicationDialog"
|
|
|
- width="70%"
|
|
|
+ width="60%"
|
|
|
:close-on-click-modal="false"
|
|
|
:destroy-on-close="true"
|
|
|
:close-on-press-escape="false"
|
|
|
v-dialog-drag
|
|
|
>
|
|
|
- <bill-application
|
|
|
- :billType="billType"
|
|
|
- @choceApplication="choceApplication"
|
|
|
- >
|
|
|
- </bill-application>
|
|
|
+ <basic-container>
|
|
|
+ <avue-crud :option="customerContact"
|
|
|
+ :table-loading="applicationLoading"
|
|
|
+ :data="applicationData"
|
|
|
+ ref="applicationCrud"
|
|
|
+ @refresh-change="applicationRefreshChange"
|
|
|
+ :page.sync="applicationPage"
|
|
|
+ @on-load="applicationOnLoad"></avue-crud>
|
|
|
+ </basic-container>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="applicationDialog = false ">关 闭</el-button>
|
|
|
+ </span>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
append-to-body
|
|
@@ -293,7 +284,6 @@ import commodity from "./config/commodity.json"
|
|
|
import feeInfo from "@/components/fee-info/main";
|
|
|
import uploadFile from "@/components/upload-file/main";
|
|
|
import _ from "lodash";
|
|
|
-import billApplication from "@/components/bill/billApplication";
|
|
|
//商品详情接口
|
|
|
import {corpsattn, corpsbank, getDeptLazyTreeS} from "@/api/basicData/configuration"
|
|
|
import { getList } from "@/api/basicData/commodityType"
|
|
@@ -308,12 +298,6 @@ export default {
|
|
|
type: Object
|
|
|
}
|
|
|
},
|
|
|
- components: {
|
|
|
- ApplyPayment,
|
|
|
- feeInfo,
|
|
|
- uploadFile,
|
|
|
- billApplication
|
|
|
- },
|
|
|
data() {
|
|
|
return {
|
|
|
form: {},
|
|
@@ -323,7 +307,6 @@ export default {
|
|
|
contactsData: [],
|
|
|
buttonLoading:false,
|
|
|
applyPaymentDialog:false,
|
|
|
- applicationDialog:false,
|
|
|
commodityData: false,
|
|
|
takeDisabled:false, //收货状态
|
|
|
tableData: [],
|
|
@@ -420,6 +403,15 @@ export default {
|
|
|
tableDataCost: [],
|
|
|
treeDeptIdCost: '',
|
|
|
choiceIndex: '',
|
|
|
+ //查看申请记录
|
|
|
+ applicationDialog:false,
|
|
|
+ applicationLoading:false,
|
|
|
+ applicationData:[],
|
|
|
+ applicationPage:{
|
|
|
+ pageSize: 10,
|
|
|
+ currentPage: 1,
|
|
|
+ total: 0
|
|
|
+ },
|
|
|
//对比新旧数据信息
|
|
|
oldContactsData:[],
|
|
|
oldForm:{},
|
|
@@ -739,6 +731,11 @@ export default {
|
|
|
this.$set(this.form,"exchangeRate",6.3686)
|
|
|
}
|
|
|
},
|
|
|
+ components: {
|
|
|
+ ApplyPayment,
|
|
|
+ feeInfo,
|
|
|
+ uploadFile
|
|
|
+ },
|
|
|
methods: {
|
|
|
valueName(value,row){
|
|
|
this.$set(row,"priceCategory",value)
|
|
@@ -1014,13 +1011,13 @@ export default {
|
|
|
choceFun(){
|
|
|
this.applyPaymentDialog = false
|
|
|
},
|
|
|
- //打开申请记录
|
|
|
- openApplicationDialog(){
|
|
|
- this.applicationDialog = true
|
|
|
+ //刷新
|
|
|
+ applicationRefreshChange(){
|
|
|
+
|
|
|
},
|
|
|
- //关闭申记录
|
|
|
- choceApplication(){
|
|
|
- this.applicationDialog = false
|
|
|
+ //申请记录
|
|
|
+ applicationOnLoad(){
|
|
|
+
|
|
|
},
|
|
|
//商品编辑
|
|
|
rowCell(row, index) {
|