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