|
@@ -19,11 +19,16 @@
|
|
|
: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="applicationDialog = true,
|
|
|
- applicationData = contactsData"
|
|
|
+ @click="openApplicationDialog"
|
|
|
>查看申请记录
|
|
|
</el-button>
|
|
|
<el-button type="success"
|
|
@@ -96,7 +101,9 @@
|
|
|
@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)"
|
|
@@ -106,6 +113,7 @@
|
|
|
<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"
|
|
@@ -129,17 +137,19 @@
|
|
|
<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="请输入"
|
|
@@ -150,7 +160,9 @@
|
|
|
<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="请输入"
|
|
@@ -161,7 +173,9 @@
|
|
|
<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="请输入"
|
|
@@ -173,7 +187,9 @@
|
|
|
<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="请输入"
|
|
@@ -233,24 +249,17 @@
|
|
|
append-to-body
|
|
|
class="el-dialogDeep"
|
|
|
:visible.sync="applicationDialog"
|
|
|
- width="60%"
|
|
|
+ width="70%"
|
|
|
:close-on-click-modal="false"
|
|
|
:destroy-on-close="true"
|
|
|
:close-on-press-escape="false"
|
|
|
v-dialog-drag
|
|
|
>
|
|
|
- <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>
|
|
|
+ <bill-application
|
|
|
+ :billType="billType"
|
|
|
+ @choceApplication="choceApplication"
|
|
|
+ >
|
|
|
+ </bill-application>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
append-to-body
|
|
@@ -284,6 +293,7 @@ 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"
|
|
@@ -298,6 +308,12 @@ export default {
|
|
|
type: Object
|
|
|
}
|
|
|
},
|
|
|
+ components: {
|
|
|
+ ApplyPayment,
|
|
|
+ feeInfo,
|
|
|
+ uploadFile,
|
|
|
+ billApplication
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
form: {},
|
|
@@ -307,6 +323,7 @@ export default {
|
|
|
contactsData: [],
|
|
|
buttonLoading:false,
|
|
|
applyPaymentDialog:false,
|
|
|
+ applicationDialog:false,
|
|
|
commodityData: false,
|
|
|
takeDisabled:false, //收货状态
|
|
|
tableData: [],
|
|
@@ -403,15 +420,6 @@ export default {
|
|
|
tableDataCost: [],
|
|
|
treeDeptIdCost: '',
|
|
|
choiceIndex: '',
|
|
|
- //查看申请记录
|
|
|
- applicationDialog:false,
|
|
|
- applicationLoading:false,
|
|
|
- applicationData:[],
|
|
|
- applicationPage:{
|
|
|
- pageSize: 10,
|
|
|
- currentPage: 1,
|
|
|
- total: 0
|
|
|
- },
|
|
|
//对比新旧数据信息
|
|
|
oldContactsData:[],
|
|
|
oldForm:{},
|
|
@@ -731,11 +739,6 @@ export default {
|
|
|
this.$set(this.form,"exchangeRate",6.3686)
|
|
|
}
|
|
|
},
|
|
|
- components: {
|
|
|
- ApplyPayment,
|
|
|
- feeInfo,
|
|
|
- uploadFile
|
|
|
- },
|
|
|
methods: {
|
|
|
valueName(value,row){
|
|
|
this.$set(row,"priceCategory",value)
|
|
@@ -1011,13 +1014,13 @@ export default {
|
|
|
choceFun(){
|
|
|
this.applyPaymentDialog = false
|
|
|
},
|
|
|
- //刷新
|
|
|
- applicationRefreshChange(){
|
|
|
-
|
|
|
+ //打开申请记录
|
|
|
+ openApplicationDialog(){
|
|
|
+ this.applicationDialog = true
|
|
|
},
|
|
|
- //申请记录
|
|
|
- applicationOnLoad(){
|
|
|
-
|
|
|
+ //关闭申记录
|
|
|
+ choceApplication(){
|
|
|
+ this.applicationDialog = false
|
|
|
},
|
|
|
//商品编辑
|
|
|
rowCell(row, index) {
|