|
@@ -300,7 +300,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<el-form-item label="仓管员" prop="fStorekeeper">
|
|
<el-form-item label="仓管员" prop="fStorekeeper">
|
|
- <el-select
|
|
|
|
|
|
+ <el-select
|
|
v-model="form.fStorekeeper"
|
|
v-model="form.fStorekeeper"
|
|
filterable
|
|
filterable
|
|
remote
|
|
remote
|
|
@@ -559,7 +559,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
- <el-form-item label="制单人" prop="createBy">
|
|
|
|
|
|
+ <el-form-item label="制单人111" prop="createBy">
|
|
<el-input
|
|
<el-input
|
|
disabled
|
|
disabled
|
|
v-model="form.createBy"
|
|
v-model="form.createBy"
|
|
@@ -919,14 +919,14 @@
|
|
<el-table-column label="序号" type="index" width="80">
|
|
<el-table-column label="序号" type="index" width="80">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="attachName"
|
|
|
|
|
|
+ prop="fName"
|
|
header-align="center"
|
|
header-align="center"
|
|
align="center"
|
|
align="center"
|
|
label="附件名称"
|
|
label="附件名称"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-input
|
|
<el-input
|
|
- v-model="scope.row.attachName"
|
|
|
|
|
|
+ v-model="scope.row.fName"
|
|
:disabled="browseStatus"
|
|
:disabled="browseStatus"
|
|
placeholder="附件名称"
|
|
placeholder="附件名称"
|
|
show-word-limit
|
|
show-word-limit
|
|
@@ -934,14 +934,14 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="opUserName"
|
|
|
|
|
|
+ prop="createBy"
|
|
header-align="center"
|
|
header-align="center"
|
|
align="center"
|
|
align="center"
|
|
label="上传人"
|
|
label="上传人"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-input
|
|
<el-input
|
|
- v-model="scope.row.opUserName"
|
|
|
|
|
|
+ v-model="scope.row.createBy"
|
|
:disabled="browseStatus"
|
|
:disabled="browseStatus"
|
|
placeholder="上传人"
|
|
placeholder="上传人"
|
|
show-word-limit
|
|
show-word-limit
|
|
@@ -949,14 +949,14 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="opDate"
|
|
|
|
|
|
+ prop="createTime"
|
|
header-align="center"
|
|
header-align="center"
|
|
align="center"
|
|
align="center"
|
|
label="上传时间"
|
|
label="上传时间"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
- v-model="scope.row.opDate"
|
|
|
|
|
|
+ v-model="scope.row.createTime"
|
|
type="date"
|
|
type="date"
|
|
disabled
|
|
disabled
|
|
placeholder="上传时间"
|
|
placeholder="上传时间"
|
|
@@ -966,16 +966,16 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="attachId"
|
|
|
|
- header-align="center"
|
|
|
|
- align="center"
|
|
|
|
- width="250PX"
|
|
|
|
- label="上传附件"
|
|
|
|
->
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <uploadImage @input="showFile" v-model="scope.row.fUrl"/>
|
|
|
|
- </template>
|
|
|
|
-</el-table-column>
|
|
|
|
|
|
+ prop="fUrl"
|
|
|
|
+ header-align="center"
|
|
|
|
+ align="center"
|
|
|
|
+ width="250PX"
|
|
|
|
+ label="上传附件"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <uploadFile @input="showFile" v-model="scope.row.fUrl" />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
header-align="center"
|
|
header-align="center"
|
|
align="center"
|
|
align="center"
|
|
@@ -1025,19 +1025,19 @@
|
|
show-word-limitfMblnoOptions
|
|
show-word-limitfMblnoOptions
|
|
/> -->
|
|
/> -->
|
|
<el-select
|
|
<el-select
|
|
- v-model="scope.row.fCorpid"
|
|
|
|
- filterable
|
|
|
|
- remote
|
|
|
|
- :remote-method="corpsRemoteMethod"
|
|
|
|
- placeholder="客户名称"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in KHblnoOptions"
|
|
|
|
- :key="dict.fId"
|
|
|
|
- :label="dict.fName"
|
|
|
|
- :value="dict.fId"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ v-model="scope.row.fCorpid"
|
|
|
|
+ filterable
|
|
|
|
+ remote
|
|
|
|
+ :remote-method="corpsRemoteMethod"
|
|
|
|
+ placeholder="客户名称"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in KHblnoOptions"
|
|
|
|
+ :key="dict.fId"
|
|
|
|
+ :label="dict.fName"
|
|
|
|
+ :value="dict.fId"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -1054,19 +1054,19 @@
|
|
show-word-limit
|
|
show-word-limit
|
|
/> -->
|
|
/> -->
|
|
<el-select
|
|
<el-select
|
|
- v-model="scope.row.fCorpid"
|
|
|
|
- filterable
|
|
|
|
- remote
|
|
|
|
- :remote-method="fWRemoteMethod"
|
|
|
|
- placeholder="费用名称"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in fWbuOptions"
|
|
|
|
- :key="dict.fId"
|
|
|
|
- :label="dict.fName"
|
|
|
|
- :value="dict.fId"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ v-model="scope.row.fCorpid"
|
|
|
|
+ filterable
|
|
|
|
+ remote
|
|
|
|
+ :remote-method="fWRemoteMethod"
|
|
|
|
+ placeholder="费用名称"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in fWbuOptions"
|
|
|
|
+ :key="dict.fId"
|
|
|
|
+ :label="dict.fName"
|
|
|
|
+ :value="dict.fId"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -1083,17 +1083,17 @@
|
|
show-word-limit
|
|
show-word-limit
|
|
/> -->
|
|
/> -->
|
|
<el-select
|
|
<el-select
|
|
- v-model="scope.row.fFeeUnitid"
|
|
|
|
- placeholder="请选择计费单位"
|
|
|
|
- clearable
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in jFeetunitOptions"
|
|
|
|
- :key="dict.dictValue"
|
|
|
|
- :label="dict.dictLabel"
|
|
|
|
- :value="dict.dictValue"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ v-model="scope.row.fFeeUnitid"
|
|
|
|
+ placeholder="请选择计费单位"
|
|
|
|
+ clearable
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in jFeetunitOptions"
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -1258,19 +1258,19 @@
|
|
show-word-limit
|
|
show-word-limit
|
|
/> -->
|
|
/> -->
|
|
<el-select
|
|
<el-select
|
|
- v-model="scope.row.fCorpid"
|
|
|
|
- filterable
|
|
|
|
- remote
|
|
|
|
- :remote-method="corpsRemoteMethod"
|
|
|
|
- placeholder="客户名称"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in KHblnoOptions"
|
|
|
|
- :key="dict.fId"
|
|
|
|
- :label="dict.fName"
|
|
|
|
- :value="dict.fId"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ v-model="scope.row.fCorpid"
|
|
|
|
+ filterable
|
|
|
|
+ remote
|
|
|
|
+ :remote-method="corpsRemoteMethod"
|
|
|
|
+ placeholder="客户名称"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in KHblnoOptions"
|
|
|
|
+ :key="dict.fId"
|
|
|
|
+ :label="dict.fName"
|
|
|
|
+ :value="dict.fId"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -1287,19 +1287,19 @@
|
|
show-word-limit
|
|
show-word-limit
|
|
/> -->
|
|
/> -->
|
|
<el-select
|
|
<el-select
|
|
- v-model="scope.row.fCorpid"
|
|
|
|
- filterable
|
|
|
|
- remote
|
|
|
|
- :remote-method="fWRemoteMethod"
|
|
|
|
- placeholder="费用名称"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in fWbuOptions"
|
|
|
|
- :key="dict.fId"
|
|
|
|
- :label="dict.fName"
|
|
|
|
- :value="dict.fId"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ v-model="scope.row.fCorpid"
|
|
|
|
+ filterable
|
|
|
|
+ remote
|
|
|
|
+ :remote-method="fWRemoteMethod"
|
|
|
|
+ placeholder="费用名称"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in fWbuOptions"
|
|
|
|
+ :key="dict.fId"
|
|
|
|
+ :label="dict.fName"
|
|
|
|
+ :value="dict.fId"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -1316,17 +1316,17 @@
|
|
show-word-limit
|
|
show-word-limit
|
|
/> -->
|
|
/> -->
|
|
<el-select
|
|
<el-select
|
|
- v-model="scope.row.fFeeUnitid"
|
|
|
|
- placeholder="请选择计费单位"
|
|
|
|
- clearable
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in jFeetunitOptions"
|
|
|
|
- :key="dict.dictValue"
|
|
|
|
- :label="dict.dictLabel"
|
|
|
|
- :value="dict.dictValue"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ v-model="scope.row.fFeeUnitid"
|
|
|
|
+ placeholder="请选择计费单位"
|
|
|
|
+ clearable
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in jFeetunitOptions"
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -1766,11 +1766,11 @@ import { listWarehouse } from "@/api/basicdata/warehouse";
|
|
import { listGoods } from "@/api/basicdata/goods";
|
|
import { listGoods } from "@/api/basicdata/goods";
|
|
|
|
|
|
import { listUser, queryUserVal } from "@/api/system/user";
|
|
import { listUser, queryUserVal } from "@/api/system/user";
|
|
-import UploadImage from '@/components/UploadImage'
|
|
|
|
|
|
+import UploadFile from "@/components/Uploadfile";
|
|
export default {
|
|
export default {
|
|
name: "Warehousebills",
|
|
name: "Warehousebills",
|
|
components: {
|
|
components: {
|
|
- UploadImage
|
|
|
|
|
|
+ UploadFile,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -1838,9 +1838,9 @@ export default {
|
|
// 状态(数据字典),N 入字典
|
|
// 状态(数据字典),N 入字典
|
|
fBillstatusOptions: [],
|
|
fBillstatusOptions: [],
|
|
// 费用名称
|
|
// 费用名称
|
|
- fWbuOptions:[],
|
|
|
|
|
|
+ fWbuOptions: [],
|
|
// 计价单位
|
|
// 计价单位
|
|
- jFeetunitOptions:[],
|
|
|
|
|
|
+ jFeetunitOptions: [],
|
|
// 查询参数
|
|
// 查询参数
|
|
queryParams: {
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
@@ -1968,8 +1968,10 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 上传成功返回数据
|
|
// 上传成功返回数据
|
|
- showFile (row) {
|
|
|
|
- console.log(row)
|
|
|
|
|
|
+ showFile(row) {
|
|
|
|
+ console.log(row);
|
|
|
|
+ // this.$set(this.relevantAttachments[0], 'fName', row.fileName)
|
|
|
|
+ this.$set(this.relevantAttachments[0], 'fUrl', row.url)
|
|
},
|
|
},
|
|
printSomething() {
|
|
printSomething() {
|
|
// 此处的style即为打印时的样式
|
|
// 此处的style即为打印时的样式
|
|
@@ -1988,8 +1990,8 @@ export default {
|
|
fUrl: null,
|
|
fUrl: null,
|
|
fName: null,
|
|
fName: null,
|
|
createBy: this.queryParams.createBy,
|
|
createBy: this.queryParams.createBy,
|
|
- createTime: Date.parse(new Date())
|
|
|
|
- })
|
|
|
|
|
|
+ createTime: Date.parse(new Date()),
|
|
|
|
+ });
|
|
},
|
|
},
|
|
// 添加list
|
|
// 添加list
|
|
addRelevant() {
|
|
addRelevant() {
|
|
@@ -2051,10 +2053,14 @@ export default {
|
|
},
|
|
},
|
|
queryUser() {
|
|
queryUser() {
|
|
queryUserVal().then((response) => {
|
|
queryUserVal().then((response) => {
|
|
|
|
+ console.log(response)
|
|
|
|
+ console.log(this.form)
|
|
|
|
+ console.log(this.relevantAttachments)
|
|
if (response.user !== null) {
|
|
if (response.user !== null) {
|
|
this.userVal = response.user;
|
|
this.userVal = response.user;
|
|
this.$set(this.form, "fDeptid", this.userVal.deptId);
|
|
this.$set(this.form, "fDeptid", this.userVal.deptId);
|
|
this.$set(this.form, "createBy", this.userVal.userName);
|
|
this.$set(this.form, "createBy", this.userVal.userName);
|
|
|
|
+ // this.$set(this.relevantAttachments, "opUserName", this.userVal.userName);
|
|
this.$set(this.form, "createTime", Date.parse(new Date()));
|
|
this.$set(this.form, "createTime", Date.parse(new Date()));
|
|
}
|
|
}
|
|
if (response.dept !== null) {
|
|
if (response.dept !== null) {
|
|
@@ -2182,6 +2188,7 @@ export default {
|
|
this.dataList = [];
|
|
this.dataList = [];
|
|
this.warehouseCrList = [];
|
|
this.warehouseCrList = [];
|
|
this.warehouseDrList = [];
|
|
this.warehouseDrList = [];
|
|
|
|
+ this.relevantAttachments = []
|
|
this.title = "入库单";
|
|
this.title = "入库单";
|
|
},
|
|
},
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
@@ -2347,6 +2354,9 @@ export default {
|
|
},
|
|
},
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
submitForm() {
|
|
submitForm() {
|
|
|
|
+ if(typeof this.form.fBillstatus === 'undefined' || this.form.fBillstatus==null) {
|
|
|
|
+ this.form.fBillstatus = 6;
|
|
|
|
+ }
|
|
this.$refs["form"].validate((valid) => {
|
|
this.$refs["form"].validate((valid) => {
|
|
console.log(valid);
|
|
console.log(valid);
|
|
console.log(this.form);
|
|
console.log(this.form);
|
|
@@ -2358,7 +2368,7 @@ export default {
|
|
// 附件数据
|
|
// 附件数据
|
|
formData.append("tWarehouseBills", JSON.stringify(this.form));
|
|
formData.append("tWarehouseBills", JSON.stringify(this.form));
|
|
// 附件数据
|
|
// 附件数据
|
|
- formData.append("tWhgenleg", null);
|
|
|
|
|
|
+ formData.append("tWhgenleg", JSON.stringify(this.relevantAttachments));
|
|
// // 费用明细付款
|
|
// // 费用明细付款
|
|
formData.append(
|
|
formData.append(
|
|
"tWarehousebillsfeesCr",
|
|
"tWarehousebillsfeesCr",
|
|
@@ -2428,7 +2438,7 @@ export default {
|
|
}
|
|
}
|
|
let queryParams = { pageNum: 1, pageSize: 10, fName: name };
|
|
let queryParams = { pageNum: 1, pageSize: 10, fName: name };
|
|
listCorps(queryParams).then((response) => {
|
|
listCorps(queryParams).then((response) => {
|
|
- console.log(response)
|
|
|
|
|
|
+ console.log(response);
|
|
this.fMblnoOptions = response.rows;
|
|
this.fMblnoOptions = response.rows;
|
|
this.KHblnoOptions = response.rows;
|
|
this.KHblnoOptions = response.rows;
|
|
});
|
|
});
|
|
@@ -2444,14 +2454,14 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 远程模糊查询费用名称
|
|
// 远程模糊查询费用名称
|
|
- fWRemoteMethod(name) {
|
|
|
|
- if (name == null || name === "") {
|
|
|
|
|
|
+ fWRemoteMethod(name) {
|
|
|
|
+ if (name == null || name === "") {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
let queryParams = { pageNum: 1, pageSize: 10, fName: name };
|
|
let queryParams = { pageNum: 1, pageSize: 10, fName: name };
|
|
listFees(queryParams).then((response) => {
|
|
listFees(queryParams).then((response) => {
|
|
this.fWbuOptions = response.rows;
|
|
this.fWbuOptions = response.rows;
|
|
- console.log(response)
|
|
|
|
|
|
+ console.log(response);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
/* 远程模糊查询经营单位 */
|
|
/* 远程模糊查询经营单位 */
|
|
@@ -2482,7 +2492,7 @@ export default {
|
|
let queryParams = { pageNum: 1, pageSize: 10, userName: name };
|
|
let queryParams = { pageNum: 1, pageSize: 10, userName: name };
|
|
listUser(queryParams).then((response) => {
|
|
listUser(queryParams).then((response) => {
|
|
this.userOptions = response.rows;
|
|
this.userOptions = response.rows;
|
|
- console.log(response.rows)
|
|
|
|
|
|
+ console.log(response.rows);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
},
|
|
},
|