编码出库状态传1
This commit is contained in:
parent
b998cf5b55
commit
bfcdd158b1
|
|
@ -789,18 +789,17 @@
|
||||||
<el-input v-model="numOutForm.carCode" maxlength="20" />
|
<el-input v-model="numOutForm.carCode" maxlength="20" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<span style="margin-right: 50px; color: red"
|
<span style="margin-right: 50px; color: red"
|
||||||
>部分设备出库时,需进行装车,需记录车牌号码</span
|
>部分设备出库时,需进行装车,需记录车牌号码</span
|
||||||
>
|
>
|
||||||
<br>
|
<br />
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
<el-input v-model="numOutForm.remark" maxlength="50" />
|
<el-input v-model="numOutForm.remark" maxlength="50" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" size="mini" @click="saveNumOut"
|
<el-button type="primary" size="mini" @click="saveNumOut"
|
||||||
>出库</el-button
|
>出库</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -818,12 +817,12 @@
|
||||||
prop="typeModelName"
|
prop="typeModelName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<!-- <el-table-column-->
|
<!-- <el-table-column-->
|
||||||
<!-- label="库存数量"-->
|
<!-- label="库存数量"-->
|
||||||
<!-- align="center"-->
|
<!-- align="center"-->
|
||||||
<!-- prop="num"-->
|
<!-- prop="num"-->
|
||||||
<!-- :show-overflow-tooltip="true"-->
|
<!-- :show-overflow-tooltip="true"-->
|
||||||
<!-- />-->
|
<!-- />-->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="待出库数量"
|
label="待出库数量"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -850,13 +849,17 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getListLeaseApply, getApplyInfo } from "@/api/lease/apply";
|
import { getListLeaseApply, getApplyInfo } from "@/api/lease/apply";
|
||||||
import { outInfoList, getDetailsByTypeId, submitOut,submitNumOut } from "@/api/lease/out";
|
import {
|
||||||
|
outInfoList,
|
||||||
|
getDetailsByTypeId,
|
||||||
|
submitOut,
|
||||||
|
submitNumOut,
|
||||||
|
} from "@/api/lease/out";
|
||||||
import vueEasyPrint from "vue-easy-print";
|
import vueEasyPrint from "vue-easy-print";
|
||||||
export default {
|
export default {
|
||||||
dicts: ["lease_task_status"],
|
dicts: ["lease_task_status"],
|
||||||
|
|
@ -939,8 +942,8 @@ export default {
|
||||||
openNum: false, //数量弹窗开关
|
openNum: false, //数量弹窗开关
|
||||||
numOutForm: {
|
numOutForm: {
|
||||||
//数量表单-车牌号
|
//数量表单-车牌号
|
||||||
carCode: '',
|
carCode: "",
|
||||||
remark: '',
|
remark: "",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
@ -1042,29 +1045,28 @@ export default {
|
||||||
|
|
||||||
//数量出库
|
//数量出库
|
||||||
numOut(row) {
|
numOut(row) {
|
||||||
console.log(row, '数量出库当前行数据--')
|
console.log(row, "数量出库当前行数据--");
|
||||||
this.title = '数量出库'
|
this.title = "数量出库";
|
||||||
this.openNum = true
|
this.openNum = true;
|
||||||
this.resetForm('codeOutForm')
|
this.resetForm("codeOutForm");
|
||||||
this.resetForm('numOutForm')
|
this.resetForm("numOutForm");
|
||||||
// console.log(row)
|
// console.log(row)
|
||||||
let obj = {}
|
let obj = {};
|
||||||
console.log("row",row)
|
console.log("row", row);
|
||||||
this.$set(obj, 'taskId', row.taskId)
|
this.$set(obj, "taskId", row.taskId);
|
||||||
this.$set(obj, 'id', row.id)
|
this.$set(obj, "id", row.id);
|
||||||
this.$set(obj, 'manageType', 1)
|
this.$set(obj, "manageType", 1);
|
||||||
this.$set(obj, 'maId', row.maId)
|
this.$set(obj, "maId", row.maId);
|
||||||
this.$set(obj, 'parentId', row.parentId)
|
this.$set(obj, "parentId", row.parentId);
|
||||||
this.$set(obj, 'typeName', row.typeName)
|
this.$set(obj, "typeName", row.typeName);
|
||||||
this.$set(obj, 'typeModelName', row.maTypeName)
|
this.$set(obj, "typeModelName", row.maTypeName);
|
||||||
this.$set(obj, 'typeId', row.typeId)
|
this.$set(obj, "typeId", row.typeId);
|
||||||
this.$set(obj, 'alNum', row.alNum) //已出库数量
|
this.$set(obj, "alNum", row.alNum); //已出库数量
|
||||||
this.$set(obj, 'outNum', row.outNum) //待出库数量
|
this.$set(obj, "outNum", row.outNum); //待出库数量
|
||||||
this.$set(obj, 'inputNum', 1) //出库数量
|
this.$set(obj, "inputNum", 1); //出库数量
|
||||||
this.$set(obj, 'num', row.num) //库存
|
this.$set(obj, "num", row.num); //库存
|
||||||
console.log("[obj]",[obj])
|
console.log("[obj]", [obj]);
|
||||||
this.outNumList = [obj]
|
this.outNumList = [obj];
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//编码出库
|
//编码出库
|
||||||
|
|
@ -1076,6 +1078,7 @@ export default {
|
||||||
this.parentIdTemp = row.parentId;
|
this.parentIdTemp = row.parentId;
|
||||||
this.outNum = row.outNum;
|
this.outNum = row.outNum;
|
||||||
this.outQuery.typeId = row.typeId;
|
this.outQuery.typeId = row.typeId;
|
||||||
|
this.outQuery.maStatus = 1;
|
||||||
this.outObj = row;
|
this.outObj = row;
|
||||||
this.handleOutQuery();
|
this.handleOutQuery();
|
||||||
},
|
},
|
||||||
|
|
@ -1096,7 +1099,7 @@ export default {
|
||||||
resetOutQuery() {},
|
resetOutQuery() {},
|
||||||
|
|
||||||
saveCodeOut() {
|
saveCodeOut() {
|
||||||
console.log(this.maCodeList)
|
console.log(this.maCodeList);
|
||||||
let param = { leaseOutDetailsList: this.maCodeList };
|
let param = { leaseOutDetailsList: this.maCodeList };
|
||||||
submitOut(param).then((response) => {
|
submitOut(param).then((response) => {
|
||||||
this.$modal.msgSuccess("出库成功");
|
this.$modal.msgSuccess("出库成功");
|
||||||
|
|
@ -1165,30 +1168,29 @@ export default {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
//数量出库保存
|
//数量出库保存
|
||||||
saveNumOut() {
|
saveNumOut() {
|
||||||
this.outNumList[0].carCode = this.numOutForm.carCode
|
this.outNumList[0].carCode = this.numOutForm.carCode;
|
||||||
this.outNumList[0].remark = this.numOutForm.remark
|
this.outNumList[0].remark = this.numOutForm.remark;
|
||||||
this.outNumList[0].leaseType = 0
|
this.outNumList[0].leaseType = 0;
|
||||||
let param = {leaseOutDetailsList:this.outNumList}
|
let param = { leaseOutDetailsList: this.outNumList };
|
||||||
console.log(param, '数量出库时参数')
|
console.log(param, "数量出库时参数");
|
||||||
submitNumOut(param).then((response) => {
|
submitNumOut(param).then((response) => {
|
||||||
this.$modal.msgSuccess('出库成功')
|
this.$modal.msgSuccess("出库成功");
|
||||||
this.openNum = false
|
this.openNum = false;
|
||||||
this.handleQueryOutInfo()
|
this.handleQueryOutInfo();
|
||||||
this.handleQuery()
|
this.handleQuery();
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
//输入出库数量
|
//输入出库数量
|
||||||
checkNum(row) {
|
checkNum(row) {
|
||||||
let maxNum = row.outNum
|
let maxNum = row.outNum;
|
||||||
if (row.inputNum <= 1) {
|
if (row.inputNum <= 1) {
|
||||||
row.inputNum = 1
|
row.inputNum = 1;
|
||||||
}
|
}
|
||||||
if (row.inputNum > row.outNum ) {
|
if (row.inputNum > row.outNum) {
|
||||||
row.inputNum = maxNum
|
row.inputNum = maxNum;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue