|
|
@@ -6,6 +6,11 @@
|
|
|
@click="backToList">返回列表
|
|
|
</el-button>
|
|
|
</div>
|
|
|
+ <el-button type="success"
|
|
|
+ class="el-button--small-yh add-customer-btn-two"
|
|
|
+ :disabled="true"
|
|
|
+ @click.stop="">复制新单
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
class="el-button--small-yh add-customer-btn"
|
|
|
type="primary"
|
|
|
@@ -30,6 +35,20 @@
|
|
|
:value="data.value"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
+ <el-select v-else-if="item.prop === 'currency'" style="width: 100%" v-model="form[item.prop]" size="small" placeholder="请选择" clearable filterable>
|
|
|
+ <el-option v-for="(item,index) in currencyDic" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <selectComponent v-else-if="item.prop === 'corpId'" v-model="form[item.prop]" :configuration="configuration"/>
|
|
|
+ <selectComponent v-else-if="item.prop === 'belongToCorpId'" v-model="form[item.prop]" :configuration="bConfiguration"/>
|
|
|
+ <port-info v-else-if="(item.prop === 'portOfDestination' || item.prop === 'portOfLoad' )" v-model="form[item.prop]"></port-info>
|
|
|
+ <el-input
|
|
|
+ size="small"
|
|
|
+ v-else-if="(item.prop === 'exchangeRate')"
|
|
|
+ v-model="form[item.prop]"
|
|
|
+ oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
+ @change="rateChange"
|
|
|
+ placeholder="请输入"
|
|
|
+ ><template slot="append">%</template></el-input>
|
|
|
<el-input type="textarea" v-else-if="(item.prop === 'orderRemark')" v-model="form[item.prop]" size="small" autocomplete="off" placeholder="请输入"></el-input>
|
|
|
<el-input type="age" v-else v-model="form[item.prop]" size="small" :disabled="item.disabled?true:false" autocomplete="off" placeholder="请输入"></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -49,6 +68,32 @@
|
|
|
@row-del="rowDelList"
|
|
|
@selection-change="productSelection"
|
|
|
>
|
|
|
+ <template slot="price" slot-scope="{ row }">
|
|
|
+ <el-input
|
|
|
+ v-if="row.$cellEdit"
|
|
|
+ v-model="row.price"
|
|
|
+ placeholder="请输入"
|
|
|
+ size="small"
|
|
|
+ oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
+ @input="priceChange(row)"
|
|
|
+ ></el-input>
|
|
|
+ <span v-else>{{ row.price }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="actualQuantity" slot-scope="{ row }">
|
|
|
+ <el-input
|
|
|
+ v-if="row.$cellEdit"
|
|
|
+ v-model="row.actualQuantity"
|
|
|
+ placeholder="请输入"
|
|
|
+ size="small"
|
|
|
+ oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
+ @input="quantityChange(row)"
|
|
|
+ ></el-input>
|
|
|
+ <span v-else>{{ row.actualQuantity }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="priceCategory" slot-scope="{row,index}">
|
|
|
+ <span style="margin-left: 12px;padding-top: 2px">{{ row.priceCategoryNames }}</span>
|
|
|
+ <el-button v-if="row.$cellEdit" type="text" size="mini" style="float: right" @click="choice(row)">选择</el-button>
|
|
|
+ </template>
|
|
|
<template slot="menuLeft" slot-scope="{size}">
|
|
|
<el-button type="primary"
|
|
|
icon="el-icon-plus"
|
|
|
@@ -63,6 +108,7 @@
|
|
|
</el-button>
|
|
|
<el-button type="info"
|
|
|
size="small"
|
|
|
+ :disabled="importInventoryData.length < 1"
|
|
|
>收款记录
|
|
|
</el-button>
|
|
|
</template>
|
|
|
@@ -73,12 +119,6 @@
|
|
|
@click="rowCell(row,index)"
|
|
|
>{{ row.$cellEdit ? '保存' : '修改' }}
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- v-if="!row.$cellEdit"
|
|
|
- @click="sendHandle"
|
|
|
- >发货</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
@@ -131,8 +171,9 @@
|
|
|
</el-row>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="importGoods" v-if="commodityData !== true">导入</el-button>
|
|
|
- <el-button type="primary" @click="importChoice" v-if="commodityData === true"
|
|
|
+ <el-button type="primary" @click="commodityConfirm" v-if="selectKind != -1" :disabled="tableData.length !== 1">确定</el-button>
|
|
|
+ <el-button type="primary" @click="importGoods" v-if="commodityData !== true && selectKind == -1">导入</el-button>
|
|
|
+ <el-button type="primary" @click="importChoice" v-if="commodityData === true && selectKind == -1"
|
|
|
:disabled="tableData.length !== 1">导入</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
@@ -146,16 +187,7 @@ import advantageProject from "./config/advantageProject.json";
|
|
|
import optionTwoCost from "./config/mainListCost.json";
|
|
|
import {getDeptLazyTree,getDeptLazyTreeTwo, customerList} from "@/api/basicData/basicFeesDesc";
|
|
|
import commodity from "./config/commodity.json"
|
|
|
-import {
|
|
|
- typeSave, detail, deleteDetails,
|
|
|
- corpstypeTree,
|
|
|
- corpsattn,
|
|
|
- corpsbank,
|
|
|
- corpsfiles,
|
|
|
- corpsitem,
|
|
|
- getList,
|
|
|
- detailList
|
|
|
-} from "@/api/basicData/configuration"
|
|
|
+import { getList } from "@/api/basicData/configuration"
|
|
|
import {detailSaleList,
|
|
|
submitData,
|
|
|
goodsListRemove,
|
|
|
@@ -163,7 +195,9 @@ import {detailSaleList,
|
|
|
updateListRemove,
|
|
|
generateShipment} from "@/api/importTrade/salesContract"
|
|
|
import feeInfo from "@/components/fee-info/main";
|
|
|
+import {getSysNo} from "@/api/importTrade/purchase";
|
|
|
import uploadFile from "@/components/upload-file/main";
|
|
|
+import _ from "lodash";
|
|
|
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
|
@@ -175,15 +209,36 @@ export default {
|
|
|
form: {},
|
|
|
orderFeesList:[],
|
|
|
orderFilesList:[],
|
|
|
+ currencyDic:[],
|
|
|
+ selectKind:-1,
|
|
|
+ configuration:{
|
|
|
+ multipleChoices:false,
|
|
|
+ multiple:false,
|
|
|
+ disabled:false,
|
|
|
+ searchShow:false,
|
|
|
+ collapseTags:false,
|
|
|
+ placeholder:'请点击右边按钮选择',
|
|
|
+ dicData:[]
|
|
|
+ },
|
|
|
+ bConfiguration:{
|
|
|
+ multipleChoices:false,
|
|
|
+ multiple:false,
|
|
|
+ disabled:false,
|
|
|
+ searchShow:false,
|
|
|
+ collapseTags:false,
|
|
|
+ placeholder:'请点击右边按钮选择',
|
|
|
+ dicData:[]
|
|
|
+ },
|
|
|
// 基础信息
|
|
|
basicData: {
|
|
|
column: [
|
|
|
{
|
|
|
label: '系统号',
|
|
|
prop: 'sysNo',
|
|
|
+ disabled:true,
|
|
|
rules: [
|
|
|
{
|
|
|
- required: false,
|
|
|
+ required: true,
|
|
|
message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
@@ -191,10 +246,9 @@ export default {
|
|
|
}, {
|
|
|
label: '订单号',
|
|
|
prop: 'orderNo',
|
|
|
- disabled:true,
|
|
|
rules: [
|
|
|
{
|
|
|
- required: false,
|
|
|
+ required: true,
|
|
|
message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
@@ -226,7 +280,6 @@ export default {
|
|
|
}, {
|
|
|
label: '销售公司',
|
|
|
prop: 'belongToCorpId',
|
|
|
- // type:'select',
|
|
|
dicData: [],
|
|
|
rules: [
|
|
|
{
|
|
|
@@ -238,7 +291,6 @@ export default {
|
|
|
}, {
|
|
|
label: '工厂/贸易商名称',
|
|
|
prop: 'corpId',
|
|
|
- // type:'select',
|
|
|
dicData: [],
|
|
|
rules: [
|
|
|
{
|
|
|
@@ -262,7 +314,7 @@ export default {
|
|
|
prop: 'orderAmount',
|
|
|
rules: [
|
|
|
{
|
|
|
- required: false,
|
|
|
+ pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
|
|
|
message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
@@ -272,7 +324,7 @@ export default {
|
|
|
prop: 'settlmentAmount',
|
|
|
rules: [
|
|
|
{
|
|
|
- required: false,
|
|
|
+ pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
|
|
|
message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
@@ -280,24 +332,10 @@ export default {
|
|
|
}, {
|
|
|
label: '起运港',
|
|
|
prop: 'portOfLoad',
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: false,
|
|
|
- message: ' ',
|
|
|
- trigger: 'blur'
|
|
|
- }
|
|
|
- ]
|
|
|
},
|
|
|
{
|
|
|
label: '目的港',
|
|
|
prop: 'portOfDestination',
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: false,
|
|
|
- message: ' ',
|
|
|
- trigger: 'blur'
|
|
|
- }
|
|
|
- ]
|
|
|
},
|
|
|
{
|
|
|
label: '包装要求',
|
|
|
@@ -338,7 +376,7 @@ export default {
|
|
|
prop: 'advancePayment',
|
|
|
rules: [
|
|
|
{
|
|
|
- required: false,
|
|
|
+ pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
|
|
|
message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
@@ -391,13 +429,6 @@ export default {
|
|
|
}, {
|
|
|
label: '币别',
|
|
|
prop: 'currency',
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: false,
|
|
|
- message: ' ',
|
|
|
- trigger: 'blur'
|
|
|
- }
|
|
|
- ]
|
|
|
}, {
|
|
|
label: '汇率',
|
|
|
prop: 'exchangeRate',
|
|
|
@@ -530,10 +561,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ //币别
|
|
|
+ this.getWorkDicts("currency").then(res =>{
|
|
|
+ this.currencyDic = res.data.data
|
|
|
+ })
|
|
|
if (this.$route.query.id) {
|
|
|
let id = this.$route.query.id.replace(/\"/g, "")
|
|
|
detailSaleList(id).then(res => {
|
|
|
this.form = res.data.data;
|
|
|
+ this.configuration.dicData = this.form.corpName
|
|
|
+ this.bConfiguration.dicData = this.form.belongToCorpList
|
|
|
this.importInventoryData = this.form.orderItemsList
|
|
|
if(this.form.orderFeesList){
|
|
|
this.orderFeesList = this.form.orderFeesList
|
|
|
@@ -543,6 +580,10 @@ export default {
|
|
|
}
|
|
|
this.bankOfDepositData = this.form.orderFilesList
|
|
|
})
|
|
|
+ }else{
|
|
|
+ getSysNo("JK-XS").then(res =>{
|
|
|
+ this.$set(this.form,"sysNo", res.data.data)
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
@@ -550,6 +591,24 @@ export default {
|
|
|
uploadFile
|
|
|
},
|
|
|
methods: {
|
|
|
+ //单价
|
|
|
+ priceChange(row) {
|
|
|
+ if (!row.price) {
|
|
|
+ row.price = "";
|
|
|
+ row.amount = 0
|
|
|
+ } else {
|
|
|
+ row.amount = (row.actualQuantity * row.price).toFixed(2);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //件数
|
|
|
+ quantityChange(row) {
|
|
|
+ if (!row.actualQuantity) {
|
|
|
+ row.actualQuantity = "";
|
|
|
+ row.amount = 0
|
|
|
+ } else {
|
|
|
+ row.amount = (row.actualQuantity * row.price).toFixed(2);
|
|
|
+ }
|
|
|
+ },
|
|
|
editCustomer() {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
let orderFeesList = this.$refs.feeInfo.submitData();
|
|
|
@@ -564,18 +623,29 @@ export default {
|
|
|
return this.$message.error(`请正确输入第${i + 1}行的数量`);
|
|
|
}
|
|
|
}
|
|
|
- // let orderUpLoadList = this.$refs.uploadFile.submitData();
|
|
|
+ let orderUpLoadList = this.$refs.uploadFile.submitData();
|
|
|
+ for (let j = 0; j < this.importInventoryData.length; j++) {
|
|
|
+ if (this.importInventoryData[j].billNo == null) {
|
|
|
+ return this.$message.error(`请输入商品明细第${j + 1}行的提单号`);
|
|
|
+ }
|
|
|
+ if (this.importInventoryData[j].orgOrderNo == null) {
|
|
|
+ return this.$message.error(`请输入商品明细第${j + 1}行的合同号`);
|
|
|
+ }
|
|
|
+ }
|
|
|
if (valid) {
|
|
|
let submitDto = {
|
|
|
...this.form,
|
|
|
orderItemsList: this.importInventoryData,
|
|
|
orderFeesList: orderFeesList,
|
|
|
+ orderUpLoadList:orderUpLoadList,
|
|
|
};
|
|
|
submitData(submitDto).then(res => {
|
|
|
if(res.data.success){
|
|
|
this.$message.success("操作成功!")
|
|
|
detailSaleList(res.data.data.id).then(res => {
|
|
|
this.form = res.data.data;
|
|
|
+ this.configuration.dicData = this.form.corpName
|
|
|
+ this.bConfiguration.dicData = this.form.belongToCorpList
|
|
|
this.importInventoryData = this.form.orderItemsList
|
|
|
if(this.form.orderFeesList){
|
|
|
this.orderFeesList = this.form.orderFeesList
|
|
|
@@ -634,13 +704,11 @@ export default {
|
|
|
},
|
|
|
//商品编辑
|
|
|
rowCell(row, index) {
|
|
|
- console.log(row)
|
|
|
// row.$cellEdit = !row.$cellEdit
|
|
|
this.$refs.importInventory.rowCell(row, index)
|
|
|
},
|
|
|
//其他费用编辑
|
|
|
rowCellTwo(row, index) {
|
|
|
- console.log(row)
|
|
|
this.$refs.crudProject.rowCell(row, index)
|
|
|
},
|
|
|
//其他费用新增触发
|
|
|
@@ -653,7 +721,6 @@ export default {
|
|
|
this.loadingCost = true;
|
|
|
let queryParams = Object.assign({}, params, {pageSize: page.pageSize, pageNum: page.currentPage,parentId:0,feesTypeId:this.treeDeptIdCost})
|
|
|
customerList(queryParams).then(res => {
|
|
|
- console.log(res)
|
|
|
const data = res.data.data;
|
|
|
this.pageCost.total = data.total;
|
|
|
this.dataCost = data.records;
|
|
|
@@ -664,23 +731,31 @@ export default {
|
|
|
onLoad(page, params = {}) {
|
|
|
this.loading = true;
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId).then(res => {
|
|
|
- console.log(res)
|
|
|
const data = res.data.data;
|
|
|
this.page.total = data.total;
|
|
|
this.data = data.records;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- //点击费用明细选择触发
|
|
|
+ rateChange(row) {
|
|
|
+ if (row >= 100) {
|
|
|
+ this.$set(this.form,"exchangeRate", 0)
|
|
|
+ this.$message.error("汇率不能超过100%");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //选择货物品种
|
|
|
choice(row){
|
|
|
- this.dialogCost = !this.dialogCost
|
|
|
- this.choiceData = true
|
|
|
- this.choiceIndex = row.$index
|
|
|
+ this.dialogVisible = true;
|
|
|
+ this.selectKind = row.$index;
|
|
|
},
|
|
|
- nodeClickCost(data){
|
|
|
- this.treeDeptIdCost = data.id;
|
|
|
- this.pageCost.currentPage = 1;
|
|
|
- this.onLoadCost(this.pageCost);
|
|
|
+ //选择货品
|
|
|
+ commodityConfirm(){
|
|
|
+ if(this.tableData){
|
|
|
+ this.importInventoryData[this.selectKind].priceCategory = this.tableData[0].id;
|
|
|
+ this.$set(this.importInventoryData[this.selectKind],'priceCategoryNames',this.tableData[0].cname)
|
|
|
+ this.dialogVisible = !this.dialogVisible
|
|
|
+ this.selectKind = -1
|
|
|
+ }
|
|
|
},
|
|
|
//刷新触发
|
|
|
refreshChange() {
|
|
|
@@ -692,54 +767,29 @@ export default {
|
|
|
selectionChange(list) {
|
|
|
this.tableData = list
|
|
|
},
|
|
|
- //费用刷新触发
|
|
|
- refreshChangeCost() {
|
|
|
- this.treeDeptIdCost = '';
|
|
|
- this.pageCost.currentPage = 1;
|
|
|
- this.onLoadCost(this.pageCost);
|
|
|
- },
|
|
|
//确认导入触发
|
|
|
importGoods() {
|
|
|
if (this.tableData.length > 0) {
|
|
|
for (let item in this.tableData) {
|
|
|
- console.log(this.tableData[item])
|
|
|
- this.tableData[item].priceCategory = this.tableData[item].goodsTypeName
|
|
|
- delete this.tableData[item].goodsTypeName
|
|
|
- this.tableData[item].itemId = this.tableData[item].id
|
|
|
- delete this.tableData[item].id
|
|
|
- this.$refs.importInventory.rowCellAdd(this.tableData[item]);
|
|
|
- this.$refs.importInventory.rowCell(this.tableData[item], this.importInventoryData.length - 1)
|
|
|
+ const params ={
|
|
|
+ priceCategory:this.tableData[item].code,
|
|
|
+ priceCategoryNames:this.tableData[item].cname,
|
|
|
+ itemId:this.tableData[item].id,
|
|
|
+ cname:this.tableData[item].cname
|
|
|
+ }
|
|
|
+ this.$refs.importInventory.rowCellAdd(params);
|
|
|
+ this.$refs.importInventory.rowCell(params,this.importInventoryData.length - 1)
|
|
|
}
|
|
|
}
|
|
|
this.tableData = []
|
|
|
this.dialogVisible = false
|
|
|
},
|
|
|
- //费用选中触发
|
|
|
- selectionChangeCost(list){
|
|
|
- this.tableDataCost = list
|
|
|
- },
|
|
|
//导入页左商品类型查询
|
|
|
nodeClick(data) {
|
|
|
this.treeDeptId = data.id;
|
|
|
this.page.currentPage = 1;
|
|
|
this.onLoad(this.page);
|
|
|
},
|
|
|
- //费用导入触发
|
|
|
- importCost(){
|
|
|
- // this.advantageProjectForm = this.advantageProjectForm.concat(this.tableDataCost)
|
|
|
- if (this.tableDataCost.length>0){
|
|
|
- for(let item in this.tableDataCost){
|
|
|
- console.log(this.tableDataCost[item])
|
|
|
- this.tableDataCost[item].itemId = this.tableDataCost[item].id
|
|
|
- this.tableDataCost[item].feeName = this.tableDataCost[item].cname
|
|
|
- delete this.tableDataCost[item].id
|
|
|
- this.$refs.crudProject.rowCellAdd(this.tableDataCost[item]);
|
|
|
- this.$refs.crudProject.rowCell(this.tableDataCost[item], this.advantageProjectForm.length-1)
|
|
|
- }
|
|
|
- }
|
|
|
- this.tableDataCost = []
|
|
|
- this.dialogCost = false
|
|
|
- },
|
|
|
//导入商品触发
|
|
|
importChoice() {
|
|
|
if (this.tableData.length === 1) {
|
|
|
@@ -753,49 +803,6 @@ export default {
|
|
|
this.dialogVisible = !this.dialogVisible
|
|
|
this.commodityData = false
|
|
|
},
|
|
|
- //费用编辑导入触发
|
|
|
- choiceCost(){
|
|
|
- if (this.tableDataCost.length === 1){
|
|
|
- this.advantageProjectData[this.choiceIndex].feeName = this.tableDataCost[0].cname
|
|
|
- this.advantageProjectData[this.choiceIndex].itemId = this.tableDataCost[0].id
|
|
|
- this.advantageProjectData[this.choiceIndex].code = this.tableDataCost[0].code
|
|
|
- }
|
|
|
- this.dialogCost = !this.dialogCost
|
|
|
- this.choiceData = false
|
|
|
- },
|
|
|
- //新增附件上传保存触发
|
|
|
- rowSaveBankOfDeposit(row, done, loading){
|
|
|
- this.bankOfDepositData.push(row)
|
|
|
- done()
|
|
|
- },
|
|
|
- //修改附件上传触发
|
|
|
- rowUpdateBankOfDeposit(row, index, done, loading) {
|
|
|
- done(row);
|
|
|
- },
|
|
|
- //删除附件上传触发
|
|
|
- rowDelBankOfDeposit(row, index, donerowDel) {
|
|
|
- this.$confirm("确定将选择数据删除?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- if (row.id){
|
|
|
- updateListRemove(row.id).then(res=>{
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- this.bankOfDepositData.splice(index, 1);
|
|
|
- })
|
|
|
- }else {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- this.bankOfDepositData.splice(index, 1);
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
//新增明细保存触发
|
|
|
rowSaveList(row, done, loading){
|
|
|
// this.advantageProjectData.push(row)
|
|
|
@@ -829,43 +836,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- //新增明细保存触发
|
|
|
- rowSaveProject(row, done, loading){
|
|
|
- // this.advantageProjectData.push(row)
|
|
|
- done()
|
|
|
- },
|
|
|
- //修改明细触发
|
|
|
- rowUpdateProject(row, index, done, loading) {
|
|
|
- done(row);
|
|
|
- },
|
|
|
- //删除明细触发
|
|
|
- rowDelProject(row, index, donerowDel) {
|
|
|
- this.$confirm("确定将选择数据删除?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- if (row.id){
|
|
|
- feesListRemove(row.id).then(res=>{
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- this.advantageProjectData.splice(index, 1);
|
|
|
- })
|
|
|
- }else {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- this.advantageProjectData.splice(index, 1);
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- // 发货
|
|
|
- sendHandle() {
|
|
|
- this.$message.success('发货成功')
|
|
|
- },
|
|
|
backToList() {
|
|
|
this.$router.$avueRouter.closeTag();
|
|
|
this.$router.push({
|
|
|
@@ -890,7 +860,11 @@ export default {
|
|
|
/* display: flex;
|
|
|
justify-content: left; */
|
|
|
}
|
|
|
-
|
|
|
+.add-customer-btn-two {
|
|
|
+ position: fixed;
|
|
|
+ right: 150px;
|
|
|
+ top: 115px;
|
|
|
+}
|
|
|
.customer-back {
|
|
|
cursor: pointer;
|
|
|
line-height: 62px;
|