|
@@ -33,7 +33,10 @@
|
|
alt=""
|
|
alt=""
|
|
/>
|
|
/>
|
|
{{ deptBudgetList.warehouseName }}库
|
|
{{ deptBudgetList.warehouseName }}库
|
|
- <span class="position"> {{ deptBudgetList.binNumber }}仓位 </span>
|
|
|
|
|
|
+ <span class="position" v-show="this.$route.query.warehouseType == 1">
|
|
|
|
+ {{ deptBudgetList.binNumber }}仓位
|
|
|
|
+ </span>
|
|
|
|
+ <span v-show="this.$route.query.warehouseType == 2">(临)</span>
|
|
</h2>
|
|
</h2>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<!-- 货名 -->
|
|
<!-- 货名 -->
|
|
@@ -158,14 +161,55 @@
|
|
|
|
|
|
<!--合同编号-->
|
|
<!--合同编号-->
|
|
<ws-form-item label="合同编号" span="1" prop="contractNo">
|
|
<ws-form-item label="合同编号" span="1" prop="contractNo">
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractNo"
|
|
|
|
- placeholder="请输入合同编号"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
|
|
+ <ws-select
|
|
|
|
+ v-model="deptBudgetList.contractNo"
|
|
|
|
+ placeholder="请选择合同编号或移库任务编号"
|
|
|
|
+ class="typeselect"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in outContractNo"
|
|
|
|
+ :key="item.constKey"
|
|
|
|
+ :label="item.contractNo"
|
|
|
|
+ :value="item.contractNo"
|
|
|
|
+ />
|
|
|
|
+ </ws-select>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
|
|
+ <div v-show="this.$route.query.warehouseType == 2">
|
|
|
|
+ <el-checkbox v-model="checked" checked>退库并出库</el-checkbox>
|
|
|
|
+ <ws-info-table v-show="checked == true && this.deptBudgetList.createType== 2" >
|
|
|
|
+ <!-- 出库类型 -->
|
|
|
|
+ <ws-form-item label="出库类型" span="1">
|
|
|
|
+ <ws-select
|
|
|
|
+ v-model="deptBudgetList.deliveryType"
|
|
|
|
+ placeholder=""
|
|
|
|
+ class="typeselect"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in deliveryType"
|
|
|
|
+ :key="item.constKey"
|
|
|
|
+ :label="item.constValue"
|
|
|
|
+ :value="item.constValue"
|
|
|
|
+ />
|
|
|
|
+ </ws-select>
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!-- 出库合同编号 -->
|
|
|
|
+ <ws-form-item label="出库合同编号" span="1">
|
|
|
|
+ <ws-select
|
|
|
|
+ v-model="deptBudgetList.outContractNo"
|
|
|
|
+ placeholder="请选择合同编号或移库任务编号"
|
|
|
|
+ class="typeselect"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in outContractNo"
|
|
|
|
+ :key="item.constKey"
|
|
|
|
+ :label="item.contractNo"
|
|
|
|
+ :value="item.contractNo"
|
|
|
|
+ />
|
|
|
|
+ </ws-select>
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ </ws-info-table>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<ws-upload
|
|
<ws-upload
|
|
ref="upload"
|
|
ref="upload"
|
|
@@ -270,7 +314,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { pullDown, addstorageputList } from '@/model/warehouse/index'
|
|
|
|
|
|
+import { pullDown, addstorageputList ,xialaNo} from '@/model/warehouse/index'
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
@@ -311,9 +355,14 @@ export default {
|
|
startDate: null,
|
|
startDate: null,
|
|
endDate: null,
|
|
endDate: null,
|
|
goodnameList: {},
|
|
goodnameList: {},
|
|
|
|
+ checked: true,
|
|
|
|
+
|
|
|
|
+ outContractNo:[],
|
|
|
|
+
|
|
// 提交类型
|
|
// 提交类型
|
|
submitType: true,
|
|
submitType: true,
|
|
storageType: [],
|
|
storageType: [],
|
|
|
|
+ deliveryType:[],
|
|
readonly: true,
|
|
readonly: true,
|
|
appendixIdsAdd: '',
|
|
appendixIdsAdd: '',
|
|
uploadSuccess: {},
|
|
uploadSuccess: {},
|
|
@@ -356,23 +405,21 @@ export default {
|
|
this.deptBudgetList.positionId = this.$route.query.positionId
|
|
this.deptBudgetList.positionId = this.$route.query.positionId
|
|
this.deptBudgetList.warehouseName = this.$route.query.warehouseName
|
|
this.deptBudgetList.warehouseName = this.$route.query.warehouseName
|
|
this.deptBudgetList.binNumber = this.$route.query.binNumber
|
|
this.deptBudgetList.binNumber = this.$route.query.binNumber
|
|
|
|
+ this.deptBudgetList.warehouseType = this.$route.query.warehouseType
|
|
|
|
+ this.deptBudgetList.createType = this.$route.query.createType
|
|
this.getList()
|
|
this.getList()
|
|
this.deptBudgetList.goodsName = '玉米'
|
|
this.deptBudgetList.goodsName = '玉米'
|
|
this.deptBudgetList.goodsNameKey = '1'
|
|
this.deptBudgetList.goodsNameKey = '1'
|
|
this.deptBudgetList.grade = '一等品'
|
|
this.deptBudgetList.grade = '一等品'
|
|
this.deptBudgetList.gradeKey = '1'
|
|
this.deptBudgetList.gradeKey = '1'
|
|
- this.deptBudgetList.inOutType = '采购入库'
|
|
|
|
|
|
+ if(this.deptBudgetList.warehouseType==1){
|
|
|
|
+ this.deptBudgetList.inOutType = '采购入库'
|
|
this.deptBudgetList.inOutTypeKey = '1'
|
|
this.deptBudgetList.inOutTypeKey = '1'
|
|
- },
|
|
|
|
- activated() {
|
|
|
|
- // //cg.viewBudget
|
|
|
|
- // //cg.viewSpareMoney
|
|
|
|
- // // this.getVesselData();
|
|
|
|
- // console.log(2222)
|
|
|
|
- // this.getList()
|
|
|
|
- // console.log(1111)
|
|
|
|
- // this.showType = this.isShow
|
|
|
|
- // this.getList(this.$route.query.baseId,)
|
|
|
|
|
|
+ }else{
|
|
|
|
+ this.deptBudgetList.inOutType = '退库'
|
|
|
|
+ this.deptBudgetList.inOutTypeKey = '1'
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//返回按钮
|
|
//返回按钮
|
|
@@ -447,7 +494,7 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.grade) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.grade) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '品级不能为空!',
|
|
message: '品级不能为空!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -500,14 +547,14 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '入库量大于该仓库容量!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- //自检员
|
|
|
|
|
|
+ // if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '入库量大于该仓库容量!',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ //自检员
|
|
if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
|
|
if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
|
|
if (
|
|
if (
|
|
this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
|
|
this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
|
|
@@ -580,7 +627,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- //霉变
|
|
|
|
|
|
+ //霉变
|
|
if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
|
|
if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -595,7 +642,8 @@ export default {
|
|
(String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
|
|
(String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
|
|
'.'
|
|
'.'
|
|
) != -1 &&
|
|
) != -1 &&
|
|
- String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).length -
|
|
|
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
|
|
|
|
+ .length -
|
|
(String(
|
|
(String(
|
|
this.deptBudgetList.warehouseInOutDetail.mildewGrain
|
|
this.deptBudgetList.warehouseInOutDetail.mildewGrain
|
|
).indexOf('.') +
|
|
).indexOf('.') +
|
|
@@ -610,7 +658,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- //热损伤
|
|
|
|
|
|
+ //热损伤
|
|
if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
|
|
if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -640,7 +688,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- //不完整粒(%)
|
|
|
|
|
|
+ //不完整粒(%)
|
|
if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
|
|
if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -652,10 +700,11 @@ export default {
|
|
if (
|
|
if (
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
|
|
- (String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) != -1 &&
|
|
|
|
- String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain).length -
|
|
|
|
|
|
+ (String(
|
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.imperfectGrain
|
|
|
|
+ ).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
|
|
|
|
+ .length -
|
|
(String(
|
|
(String(
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain
|
|
).indexOf('.') +
|
|
).indexOf('.') +
|
|
@@ -670,7 +719,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//容重
|
|
//容重
|
|
- if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
|
|
|
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '容重(克/升)非数字!',
|
|
message: '容重(克/升)非数字!',
|
|
@@ -684,7 +733,8 @@ export default {
|
|
(String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf(
|
|
(String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf(
|
|
'.'
|
|
'.'
|
|
) != -1 &&
|
|
) != -1 &&
|
|
- String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).length -
|
|
|
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
|
|
|
|
+ .length -
|
|
(String(
|
|
(String(
|
|
this.deptBudgetList.warehouseInOutDetail.bulkDensity
|
|
this.deptBudgetList.warehouseInOutDetail.bulkDensity
|
|
).indexOf('.') +
|
|
).indexOf('.') +
|
|
@@ -699,7 +749,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.deptBudgetList.id = this.$route.query.id
|
|
this.deptBudgetList.id = this.$route.query.id
|
|
- this.$confirm(`确定提交入库信息`, {
|
|
|
|
|
|
+ this.$confirm(`确定提交入库信息`, {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -707,9 +757,8 @@ export default {
|
|
.then(() => {
|
|
.then(() => {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
- this.deptBudgetList.compId = sessionStorage.getItem(
|
|
|
|
- 'ws-pf_compId'
|
|
|
|
- )
|
|
|
|
|
|
+ this.deptBudgetList.compId =
|
|
|
|
+ sessionStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.inOutFlag = 2
|
|
this.deptBudgetList.inOutFlag = 2
|
|
this.deptBudgetList.statusFlag = 3
|
|
this.deptBudgetList.statusFlag = 3
|
|
addstorageputList(this.deptBudgetList)
|
|
addstorageputList(this.deptBudgetList)
|
|
@@ -727,8 +776,6 @@ export default {
|
|
.catch(() => {
|
|
.catch(() => {
|
|
return false
|
|
return false
|
|
})
|
|
})
|
|
-
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
temporaryStorage() {
|
|
temporaryStorage() {
|
|
if (!this.deptBudgetList.goodsName) {
|
|
if (!this.deptBudgetList.goodsName) {
|
|
@@ -828,13 +875,13 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '入库量大于该仓库容量!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '入库量大于该仓库容量!',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
//自检员
|
|
//自检员
|
|
if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
|
|
if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
|
|
if (
|
|
if (
|
|
@@ -908,7 +955,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- //霉变
|
|
|
|
|
|
+ //霉变
|
|
if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
|
|
if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -923,7 +970,8 @@ export default {
|
|
(String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
|
|
(String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
|
|
'.'
|
|
'.'
|
|
) != -1 &&
|
|
) != -1 &&
|
|
- String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).length -
|
|
|
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
|
|
|
|
+ .length -
|
|
(String(
|
|
(String(
|
|
this.deptBudgetList.warehouseInOutDetail.mildewGrain
|
|
this.deptBudgetList.warehouseInOutDetail.mildewGrain
|
|
).indexOf('.') +
|
|
).indexOf('.') +
|
|
@@ -938,7 +986,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- //热损伤
|
|
|
|
|
|
+ //热损伤
|
|
if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
|
|
if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -968,7 +1016,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- //不完整粒(%)
|
|
|
|
|
|
+ //不完整粒(%)
|
|
if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
|
|
if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -980,10 +1028,11 @@ export default {
|
|
if (
|
|
if (
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
|
|
- (String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) != -1 &&
|
|
|
|
- String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain).length -
|
|
|
|
|
|
+ (String(
|
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.imperfectGrain
|
|
|
|
+ ).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
|
|
|
|
+ .length -
|
|
(String(
|
|
(String(
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain
|
|
this.deptBudgetList.warehouseInOutDetail.imperfectGrain
|
|
).indexOf('.') +
|
|
).indexOf('.') +
|
|
@@ -998,7 +1047,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//容重
|
|
//容重
|
|
- if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
|
|
|
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '容重(克/升)非数字!',
|
|
message: '容重(克/升)非数字!',
|
|
@@ -1012,7 +1061,8 @@ export default {
|
|
(String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf(
|
|
(String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf(
|
|
'.'
|
|
'.'
|
|
) != -1 &&
|
|
) != -1 &&
|
|
- String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).length -
|
|
|
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
|
|
|
|
+ .length -
|
|
(String(
|
|
(String(
|
|
this.deptBudgetList.warehouseInOutDetail.bulkDensity
|
|
this.deptBudgetList.warehouseInOutDetail.bulkDensity
|
|
).indexOf('.') +
|
|
).indexOf('.') +
|
|
@@ -1034,9 +1084,8 @@ export default {
|
|
.then(() => {
|
|
.then(() => {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
- this.deptBudgetList.compId = sessionStorage.getItem(
|
|
|
|
- 'ws-pf_compId'
|
|
|
|
- )
|
|
|
|
|
|
+ this.deptBudgetList.compId =
|
|
|
|
+ sessionStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.inOutFlag = 2
|
|
this.deptBudgetList.inOutFlag = 2
|
|
this.deptBudgetList.statusFlag = 1
|
|
this.deptBudgetList.statusFlag = 1
|
|
addstorageputList(this.deptBudgetList)
|
|
addstorageputList(this.deptBudgetList)
|
|
@@ -1117,11 +1166,32 @@ export default {
|
|
this.gradeList = response
|
|
this.gradeList = response
|
|
})
|
|
})
|
|
// 类型
|
|
// 类型
|
|
- pullDown({ constId: 'CON5' })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.storageType = response
|
|
|
|
- })
|
|
|
|
|
|
+ if (this.deptBudgetList.warehouseType == '1') {
|
|
|
|
+ pullDown({ constId: 'CON5' })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.storageType = response
|
|
|
|
+ })
|
|
|
|
+ } else if (this.deptBudgetList.warehouseType == '2') {
|
|
|
|
+ pullDown({ constId: 'WARE1' })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.storageType = response
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ pullDown({ constId: 'WARE2' })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.deliveryType = response
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ //合同编号
|
|
|
|
+ xialaNo({ compId: sessionStorage.getItem('ws-pf_compId')})
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.outContractNo = response
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
selecttaskType(e) {
|
|
selecttaskType(e) {
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
@@ -1261,9 +1331,9 @@ export default {
|
|
color: #8890b1;
|
|
color: #8890b1;
|
|
line-height: 16px;
|
|
line-height: 16px;
|
|
}
|
|
}
|
|
-.inspector{
|
|
|
|
|
|
+.inspector {
|
|
width: 50%;
|
|
width: 50%;
|
|
-}
|
|
|
|
|
|
+}
|
|
//质检员
|
|
//质检员
|
|
.inspector .el-form-item__content {
|
|
.inspector .el-form-item__content {
|
|
text-align: left;
|
|
text-align: left;
|
|
@@ -1302,6 +1372,4 @@ export default {
|
|
/deep/.neifor .el-input--small .el-input__inner {
|
|
/deep/.neifor .el-input--small .el-input__inner {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
</style>
|
|
</style>
|