|
@@ -11,22 +11,42 @@
|
|
|
<!-- />-->
|
|
<!-- />-->
|
|
|
<!-- </el-form-item>-->
|
|
<!-- </el-form-item>-->
|
|
|
<el-form-item label="客户名称" prop="fCorpid">
|
|
<el-form-item label="客户名称" prop="fCorpid">
|
|
|
- <el-input
|
|
|
|
|
|
|
+ <el-select
|
|
|
v-model="queryParams.fCorpid"
|
|
v-model="queryParams.fCorpid"
|
|
|
- placeholder="请输入客户名称"
|
|
|
|
|
|
|
+ filterable
|
|
|
|
|
+ remote
|
|
|
clearable
|
|
clearable
|
|
|
- size="small"
|
|
|
|
|
|
|
+ style="width: 200px"
|
|
|
@keyup.enter.native="handleQuery"
|
|
@keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
|
|
|
|
+ :remote-method="corpsRemoteMethod"
|
|
|
|
|
+ placeholder="请输入客户名称"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="(dict, index) in fMblnoOptions"
|
|
|
|
|
+ :key="index.fId"
|
|
|
|
|
+ :label="dict.fName"
|
|
|
|
|
+ :value="dict.fId"
|
|
|
|
|
+ ></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="货物品名" prop="fGoodsid">
|
|
<el-form-item label="货物品名" prop="fGoodsid">
|
|
|
- <el-input
|
|
|
|
|
|
|
+ <el-select
|
|
|
v-model="queryParams.fGoodsid"
|
|
v-model="queryParams.fGoodsid"
|
|
|
- placeholder="请输入货物品名"
|
|
|
|
|
|
|
+ filterable
|
|
|
|
|
+ remote
|
|
|
clearable
|
|
clearable
|
|
|
- size="small"
|
|
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ :remote-method="goodsRemoteMethod"
|
|
|
@keyup.enter.native="handleQuery"
|
|
@keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
|
|
|
|
+ placeholder="请输入货物品名"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="(dict, index) in goodsOptions"
|
|
|
|
|
+ :key="index.fId"
|
|
|
|
|
+ :label="dict.fName"
|
|
|
|
|
+ :value="dict.fId"
|
|
|
|
|
+ ></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="制单部门" prop="fDeptid">
|
|
<el-form-item label="制单部门" prop="fDeptid">
|
|
|
<el-input
|
|
<el-input
|
|
@@ -172,18 +192,54 @@
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<!-- 添加或修改仓储费对话框 -->
|
|
<!-- 添加或修改仓储费对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="80%" append-to-body>
|
|
|
|
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="80%" append-to-body :before-close="handleClose" :close-on-click-modal="false">
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px"
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px"
|
|
|
style="display: flex;flex-wrap: wrap;justify-content:space-around"
|
|
style="display: flex;flex-wrap: wrap;justify-content:space-around"
|
|
|
>
|
|
>
|
|
|
<el-form-item label="客户名称" prop="fCorpid">
|
|
<el-form-item label="客户名称" prop="fCorpid">
|
|
|
- <el-input v-model="form.fCorpid" placeholder="请输入客户名称" style="width: 200px"/>
|
|
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="form.fCorpid"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ remote
|
|
|
|
|
+ clearable
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
|
|
+ :remote-method="corpsRemoteMethod"
|
|
|
|
|
+ placeholder="请输入客户名称"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="(dict, index) in fMblnoOptions"
|
|
|
|
|
+ :key="index.fId"
|
|
|
|
|
+ :label="dict.fName"
|
|
|
|
|
+ :value="dict.fId"
|
|
|
|
|
+ ></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+
|
|
|
<el-form-item label="货物品名" prop="fGoodsid">
|
|
<el-form-item label="货物品名" prop="fGoodsid">
|
|
|
- <el-input v-model="form.fGoodsid" placeholder="请输入货物品名" style="width: 200px"/>
|
|
|
|
|
|
|
+<!-- <el-input v-model="form.fGoodsid" placeholder="请输入货物品名" style="width: 200px"/>-->
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="form.fGoodsid"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ remote
|
|
|
|
|
+ clearable
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ :remote-method="goodsRemoteMethod"
|
|
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
|
|
+ placeholder="请输入货物品名"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="(dict, index) in goodsOptions"
|
|
|
|
|
+ :key="index.fId"
|
|
|
|
|
+ :label="dict.fName"
|
|
|
|
|
+ :value="dict.fId"
|
|
|
|
|
+ ></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="制单部门" prop="fDeptid">
|
|
|
|
|
- <el-input v-model="form.fDeptid" placeholder="请输入制单部门" style="width: 200px"/>
|
|
|
|
|
|
|
+ <el-form-item label="制单部门">
|
|
|
|
|
+ <el-input v-model="deptName" :disabled="true" placeholder="请输入制单部门" style="width: 200px"/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="有效期起" prop="fBegindate">
|
|
<el-form-item label="有效期起" prop="fBegindate">
|
|
|
<el-date-picker clearable size="small" style="width: 200px"
|
|
<el-date-picker clearable size="small" style="width: 200px"
|
|
@@ -207,71 +263,16 @@
|
|
|
<el-input v-model="form.fContractno" placeholder="请输入合同编号" style="width: 200px"/>
|
|
<el-input v-model="form.fContractno" placeholder="请输入合同编号" style="width: 200px"/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
- <!-- <el-form-item label="业务编号" prop="fBillno">-->
|
|
|
|
|
- <!-- <el-input v-model="form.fBillno" placeholder="请输入业务编号" />-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- <el-form-item label="结算方式" prop="fStltypeid">-->
|
|
|
|
|
- <!-- <el-select v-model="form.fStltypeid" placeholder="请选择结算方式">-->
|
|
|
|
|
- <!-- <el-option-->
|
|
|
|
|
- <!-- v-for="dict in fStltypeidOptions"-->
|
|
|
|
|
- <!-- :key="dict.dictValue"-->
|
|
|
|
|
- <!-- :label="dict.dictLabel"-->
|
|
|
|
|
- <!-- :value="parseInt(dict.dictValue)"-->
|
|
|
|
|
- <!-- ></el-option>-->
|
|
|
|
|
- <!-- </el-select>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- <el-form-item label="费用类型" prop="fFeetypeid">-->
|
|
|
|
|
- <!-- <el-select v-model="form.fFeetypeid" placeholder="请选择费用类型">-->
|
|
|
|
|
- <!-- <el-option label="请选择字典生成" value="" />-->
|
|
|
|
|
- <!-- </el-select>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- <el-form-item label="货物类别" prop="tPackages">-->
|
|
|
|
|
- <!-- <el-select v-model="form.tPackages" placeholder="请选择货物类别">-->
|
|
|
|
|
- <!-- <el-option-->
|
|
|
|
|
- <!-- v-for="dict in tPackagesOptions"-->
|
|
|
|
|
- <!-- :key="dict.dictValue"-->
|
|
|
|
|
- <!-- :label="dict.dictLabel"-->
|
|
|
|
|
- <!-- :value="dict.dictValue"-->
|
|
|
|
|
- <!-- ></el-option>-->
|
|
|
|
|
- <!-- </el-select>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- <el-form-item label="贸易方式" prop="fTrademodeid">-->
|
|
|
|
|
- <!-- <el-select v-model="form.fTrademodeid" placeholder="请选择贸易方式">-->
|
|
|
|
|
- <!-- <el-option-->
|
|
|
|
|
- <!-- v-for="dict in fTrademodeidOptions"-->
|
|
|
|
|
- <!-- :key="dict.dictValue"-->
|
|
|
|
|
- <!-- :label="dict.dictLabel"-->
|
|
|
|
|
- <!-- :value="parseInt(dict.dictValue)"-->
|
|
|
|
|
- <!-- ></el-option>-->
|
|
|
|
|
- <!-- </el-select>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- <el-form-item label="免堆天数" prop="fFreedays">-->
|
|
|
|
|
- <!-- <el-input v-model="form.fFreedays" placeholder="请输入免堆天数" />-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- <el-form-item label="状态">-->
|
|
|
|
|
- <!-- <el-radio-group v-model="form.fBillstatus">-->
|
|
|
|
|
- <!-- <el-radio label="1">请选择字典生成</el-radio>-->
|
|
|
|
|
- <!-- </el-radio-group>-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- <el-form-item label="删除状态" prop="delFlag">-->
|
|
|
|
|
- <!-- <el-input v-model="form.delFlag" placeholder="请输入删除状态" />-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
- <!-- <el-form-item label="备注" prop="remark">-->
|
|
|
|
|
- <!-- <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />-->
|
|
|
|
|
- <!-- </el-form-item>-->
|
|
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<el-button type="primary" @click="">请 核</el-button>
|
|
<el-button type="primary" @click="">请 核</el-button>
|
|
|
<div class="dialogTableTitle flex a-center jlr">
|
|
<div class="dialogTableTitle flex a-center jlr">
|
|
|
<h2>标题</h2>
|
|
<h2>标题</h2>
|
|
|
- <!-- <el-button :disabled="browseStatus" @click.prevent="addRelevant()">新增</el-button>-->
|
|
|
|
|
- <!-- <el-button :disabled="dataListSelection.length <= 0" @click.prevent="creditClick()">入库确认</el-button>-->
|
|
|
|
|
- <!-- <el-button :disabled="browseStatus" @click.prevent="deleteRoww(warehouseDrList)">删除</el-button>-->
|
|
|
|
|
<el-button @click="getList_s()">新增</el-button>
|
|
<el-button @click="getList_s()">新增</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<el-table v-loading="loading_s" :data="agreementitemsList" @selection-change="handleSelectionChange">
|
|
<el-table v-loading="loading_s" :data="agreementitemsList" @selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" width="55" align="center"/>
|
|
|
|
|
- <el-table-column label="行号" align="center" type="index" width="100" />
|
|
|
|
|
- <el-table-column label="计价单位" align="center" width="150">
|
|
|
|
|
|
|
+<!-- <el-table-column type="selection" width="55" align="center"/>-->
|
|
|
|
|
+ <el-table-column label="行号" align="center" type="index"/>
|
|
|
|
|
+ <el-table-column label="计价单位" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.fFeeunitid"
|
|
v-model="scope.row.fFeeunitid"
|
|
@@ -281,26 +282,27 @@
|
|
|
/>
|
|
/>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="开始天数" align="center" width="250">
|
|
|
|
|
|
|
+ <el-table-column label="开始天数" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-date-picker clearable size="small"
|
|
|
|
|
- v-model="scope.row.fFromdays"
|
|
|
|
|
- type="date"
|
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
|
- placeholder="选择有效期起">
|
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="scope.row.fFromdays"
|
|
|
|
|
+ placeholder="请输入开始天数"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="结束天数" align="center" width="250">
|
|
|
|
|
- <el-date-picker clearable size="small"
|
|
|
|
|
- slot-scope="scope"
|
|
|
|
|
- v-model="scope.row.fEndays"
|
|
|
|
|
- type="date"
|
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
|
- placeholder="选择有效期起">
|
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
|
+ <el-table-column label="结束天数" align="center">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="scope.row.fEndays"
|
|
|
|
|
+ placeholder="请输入结束天数"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ />
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="单价" align="center" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="单价" align="center">
|
|
|
<el-input
|
|
<el-input
|
|
|
slot-scope="scope"
|
|
slot-scope="scope"
|
|
|
v-model="scope.row.fPrice"
|
|
v-model="scope.row.fPrice"
|
|
@@ -309,25 +311,25 @@
|
|
|
size="small"
|
|
size="small"
|
|
|
/>
|
|
/>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="录入人" align="center" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="录入人" align="center">
|
|
|
<el-input
|
|
<el-input
|
|
|
- slot-scope="scope"
|
|
|
|
|
- v-model="scope.row.createBy"
|
|
|
|
|
|
|
+ v-model="agreementitemsList.createBy"
|
|
|
|
|
+ :disabled="true"
|
|
|
placeholder="默认录入人"
|
|
placeholder="默认录入人"
|
|
|
clearable
|
|
clearable
|
|
|
size="small"
|
|
size="small"
|
|
|
/>
|
|
/>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="录入时间" align="center" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="录入时间" align="center">
|
|
|
<el-input
|
|
<el-input
|
|
|
- slot-scope="scope"
|
|
|
|
|
- v-model="scope.row.createTime"
|
|
|
|
|
|
|
+ v-model="agreementitemsList.createTime"
|
|
|
placeholder="默认录入时间"
|
|
placeholder="默认录入时间"
|
|
|
|
|
+ :disabled="true"
|
|
|
clearable
|
|
clearable
|
|
|
size="small"
|
|
size="small"
|
|
|
/>
|
|
/>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="费用名称" align="center" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="费用名称" align="center">
|
|
|
<el-input
|
|
<el-input
|
|
|
slot-scope="scope"
|
|
slot-scope="scope"
|
|
|
v-model="scope.row.fFeeid"
|
|
v-model="scope.row.fFeeid"
|
|
@@ -358,6 +360,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import moment from 'moment'
|
|
|
import {
|
|
import {
|
|
|
listAgreement,
|
|
listAgreement,
|
|
|
getAgreement,
|
|
getAgreement,
|
|
@@ -365,8 +368,14 @@ import {
|
|
|
addAgreement,
|
|
addAgreement,
|
|
|
updateAgreement,
|
|
updateAgreement,
|
|
|
exportAgreement,
|
|
exportAgreement,
|
|
|
- listAgreementitems
|
|
|
|
|
|
|
+ listAgreementitems,
|
|
|
|
|
+ queryUserVal,
|
|
|
} from '@/api/warehouseBusiness/agreement'
|
|
} from '@/api/warehouseBusiness/agreement'
|
|
|
|
|
+import { listCorps } from '@/api/basicdata/corps'
|
|
|
|
|
+import { listGoods } from '@/api/basicdata/goods'
|
|
|
|
|
+import { delWarehousebills } from '@/api/warehouseBusiness/warehouseInStock'
|
|
|
|
|
+import { listGoodsTransfer } from '@/api/warehouseBusiness/goodsTransfer'
|
|
|
|
|
+// import { listUser, queryUserVal } from '@/api/system/user'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'Agreement',
|
|
name: 'Agreement',
|
|
@@ -377,8 +386,12 @@ export default {
|
|
|
// 遮罩层
|
|
// 遮罩层
|
|
|
loading: true,
|
|
loading: true,
|
|
|
loading_s: false,
|
|
loading_s: false,
|
|
|
|
|
+ goodsOptions:[],
|
|
|
// 选中数组
|
|
// 选中数组
|
|
|
ids: [],
|
|
ids: [],
|
|
|
|
|
+ deptName:'',
|
|
|
|
|
+ // 客户(客户数据)
|
|
|
|
|
+ fMblnoOptions: [],
|
|
|
// 非单个禁用
|
|
// 非单个禁用
|
|
|
single: true,
|
|
single: true,
|
|
|
// 非多个禁用
|
|
// 非多个禁用
|
|
@@ -426,15 +439,12 @@ export default {
|
|
|
fBillno: [
|
|
fBillno: [
|
|
|
{
|
|
{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '业务编号,格式WA+YYYY+YY+NNN,编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用删除单据号,每月从001开始不能为空',
|
|
|
|
|
|
|
+ message: ' ',
|
|
|
trigger: 'blur'
|
|
trigger: 'blur'
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- fDeptid: [
|
|
|
|
|
- { required: true, message: '制单部门不能为空', trigger: 'blur' }
|
|
|
|
|
- ],
|
|
|
|
|
fCorpid: [
|
|
fCorpid: [
|
|
|
- { required: true, message: '客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name不能为空', trigger: 'blur' }
|
|
|
|
|
|
|
+ { required: true, message: ' ', trigger: 'blur' }
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -482,6 +492,17 @@ export default {
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ /* 远程模糊查询商品 */
|
|
|
|
|
+ goodsRemoteMethod(name) {
|
|
|
|
|
+ if (name == null || name === "") {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ let queryParams = { pageNum: 1, pageSize: 10, fName: name };
|
|
|
|
|
+ listGoods(queryParams).then((response) => {
|
|
|
|
|
+ console.log(response)
|
|
|
|
|
+ this.goodsOptions = response.rows;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
/** 查询仓储费列表 */
|
|
/** 查询仓储费列表 */
|
|
|
getList() {
|
|
getList() {
|
|
|
this.loading = true
|
|
this.loading = true
|
|
@@ -492,6 +513,7 @@ export default {
|
|
|
this.loading = false
|
|
this.loading = false
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
// 结算方式,也可以从表t_stltypes中下拉选择,存储id,显示name字典翻译
|
|
// 结算方式,也可以从表t_stltypes中下拉选择,存储id,显示name字典翻译
|
|
|
fStltypeidFormat(row, column) {
|
|
fStltypeidFormat(row, column) {
|
|
|
return this.selectDictLabel(this.fStltypeidOptions, row.fStltypeid)
|
|
return this.selectDictLabel(this.fStltypeidOptions, row.fStltypeid)
|
|
@@ -507,6 +529,12 @@ export default {
|
|
|
// 取消按钮
|
|
// 取消按钮
|
|
|
cancel() {
|
|
cancel() {
|
|
|
this.open = false
|
|
this.open = false
|
|
|
|
|
+ this.agreementitemsList = []
|
|
|
|
|
+ this.reset()
|
|
|
|
|
+ },
|
|
|
|
|
+ handleClose(){
|
|
|
|
|
+ this.open = false
|
|
|
|
|
+ this.agreementitemsList = []
|
|
|
this.reset()
|
|
this.reset()
|
|
|
},
|
|
},
|
|
|
// 表单重置
|
|
// 表单重置
|
|
@@ -556,26 +584,70 @@ export default {
|
|
|
this.reset()
|
|
this.reset()
|
|
|
this.open = true
|
|
this.open = true
|
|
|
this.title = '添加仓储费'
|
|
this.title = '添加仓储费'
|
|
|
|
|
+ queryUserVal().then((response) => {
|
|
|
|
|
+
|
|
|
|
|
+ // this.$set("deptName", response.dept.deptName);
|
|
|
|
|
+ this.deptName = response.dept.deptName
|
|
|
|
|
+ // console.log(response.dept.deptName)
|
|
|
|
|
+ this.form.fDeptid = response.dept.deptId
|
|
|
|
|
+ // console.log(this.form.fDeptid)
|
|
|
|
|
+ this.$set(this.agreementitemsList, "createBy", response.user.userName);
|
|
|
|
|
+ //格式化时间戳
|
|
|
|
|
+ this.$set(this.agreementitemsList, "createTime", moment(Date.parse(new Date())).format("YYYY-MM-DD HH:mm:ss"));
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
|
this.reset()
|
|
this.reset()
|
|
|
const fId = row.fId || this.ids
|
|
const fId = row.fId || this.ids
|
|
|
getAgreement(fId).then(response => {
|
|
getAgreement(fId).then(response => {
|
|
|
- this.form = response.data
|
|
|
|
|
|
|
+ console.log(response)
|
|
|
|
|
+ this.form = response.data.tWarehouseAgreement
|
|
|
|
|
+ this.fMblnoOptions = response.data.corps
|
|
|
|
|
+ // this.goodsOptions = response.data.corps
|
|
|
|
|
+ this.agreementitemsList = response.data.tWarehouseAgreementitems
|
|
|
|
|
+
|
|
|
|
|
+ console.log(this.form)
|
|
|
|
|
+ console.log(response)
|
|
|
this.open = true
|
|
this.open = true
|
|
|
this.title = '修改仓储费'
|
|
this.title = '修改仓储费'
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ /** 远程模糊查询用户 */
|
|
|
|
|
+ corpsRemoteMethod(name) {
|
|
|
|
|
+ if (name == null || name === "") {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 1 };
|
|
|
|
|
+ listCorps(queryParams).then((response) => {
|
|
|
|
|
+ console.log(response)
|
|
|
|
|
+ this.fMblnoOptions = response.rows;
|
|
|
|
|
+ this.KHblnoOptions = response.rows;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
submitForm() {
|
|
|
this.$refs['form'].validate(valid => {
|
|
this.$refs['form'].validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
if (this.form.fId != null) {
|
|
if (this.form.fId != null) {
|
|
|
updateAgreement(this.form).then(response => {
|
|
updateAgreement(this.form).then(response => {
|
|
|
- this.msgSuccess('修改成功')
|
|
|
|
|
- this.open = false
|
|
|
|
|
- this.getList()
|
|
|
|
|
|
|
+ console.log(response)
|
|
|
|
|
+ let formData = new window.FormData();
|
|
|
|
|
+ // 附件数据
|
|
|
|
|
+ formData.append("agreement",JSON.stringify(this.form))
|
|
|
|
|
+ formData.append("agreementitems", JSON.stringify(this.agreementitemsList));
|
|
|
|
|
+ addAgreement(formData).then(response => {
|
|
|
|
|
+ this.msgSuccess('修改成功')
|
|
|
|
|
+ console.log(response)
|
|
|
|
|
+ this.open = false
|
|
|
|
|
+ this.getList()
|
|
|
|
|
+ this.agreementitemsList = []
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // this.open = false
|
|
|
|
|
+ // this.getList()
|
|
|
|
|
+ // this.agreementitemsList = []
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
let formData = new window.FormData();
|
|
let formData = new window.FormData();
|
|
@@ -586,6 +658,7 @@ export default {
|
|
|
this.msgSuccess('新增成功')
|
|
this.msgSuccess('新增成功')
|
|
|
this.open = false
|
|
this.open = false
|
|
|
this.getList()
|
|
this.getList()
|
|
|
|
|
+ this.agreementitemsList = []
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -593,7 +666,17 @@ export default {
|
|
|
},
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
|
- console.log(row)
|
|
|
|
|
|
|
+ const fIds = row.fId || this.ids;
|
|
|
|
|
+ this.$confirm('是否确认删除仓储费编号为"' + fIds + '"的数据项?', "警告", {
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
|
+ type: "warning"
|
|
|
|
|
+ }).then(function() {
|
|
|
|
|
+ return delAgreement(fIds);
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ this.msgSuccess("删除成功");
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
handleExport() {
|