This commit is contained in:
parent
7eeb6c972f
commit
b0324fad0b
|
|
@ -195,7 +195,7 @@
|
|||
<el-button
|
||||
size="mini"
|
||||
type="warning"
|
||||
@click="handleLld(scope.row)"
|
||||
@click="handleLld(scope.row)"
|
||||
>领料单</el-button
|
||||
>
|
||||
<el-button
|
||||
|
|
@ -236,7 +236,7 @@
|
|||
<el-input
|
||||
v-model="queryOutInfo.keyWord"
|
||||
placeholder="请输入规格型号"
|
||||
clearable
|
||||
clearable
|
||||
maxlength="20"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
|
@ -340,7 +340,7 @@
|
|||
<el-input
|
||||
v-model="queryOutView.keyWord"
|
||||
placeholder="请输入规格型号"
|
||||
clearable
|
||||
clearable
|
||||
maxlength="20"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
|
@ -352,7 +352,7 @@
|
|||
@click="handleQueryOutView"
|
||||
>查询</el-button
|
||||
>
|
||||
<el-button
|
||||
<el-button
|
||||
icon="el-icon-refresh"
|
||||
size="mini"
|
||||
@click="resetQueryOutView"
|
||||
|
|
@ -802,12 +802,12 @@
|
|||
controls-position="right" type="number"
|
||||
style="width: 100%" clearable placeholder="请输入出库数量"
|
||||
:min="0" @input="checkNum(scope.row)"
|
||||
></el-input>
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
<!-- 编码管理查看弹窗 -->
|
||||
<el-dialog
|
||||
:title="titleView"
|
||||
|
|
@ -908,7 +908,7 @@ export default {
|
|||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
time: null, //申请时间
|
||||
time: null, //申请时间
|
||||
taskStatus: "",
|
||||
keyWord: "",
|
||||
},
|
||||
|
|
@ -987,9 +987,9 @@ export default {
|
|||
const params = {
|
||||
keyWord: this.queryParams.keyWord,
|
||||
startTime: this.queryParams.time && this.queryParams.time[0],
|
||||
endTime: this.queryParams.time && this.queryParams.time[1],
|
||||
endTime: this.queryParams.time && this.queryParams.time[1],
|
||||
pageSize: this.queryParams.pageSize,
|
||||
pageNum: this.queryParams.pageNum,
|
||||
pageNum: this.queryParams.pageNum,
|
||||
};
|
||||
if(!this.queryParams.taskStatus){
|
||||
params.statusList=[3, 4, 5]
|
||||
|
|
@ -1049,7 +1049,7 @@ export default {
|
|||
// this.dialogTotal = response.
|
||||
// this.loading = false;
|
||||
});
|
||||
},
|
||||
},
|
||||
//出库搜索按钮
|
||||
handleQueryOutInfo() {
|
||||
this.queryOutInfo.pageNum = 1;
|
||||
|
|
@ -1059,7 +1059,7 @@ export default {
|
|||
resetQueryOutInfo() {
|
||||
this.queryOutInfo.keyWord=""
|
||||
this.getDialogList();
|
||||
},
|
||||
},
|
||||
|
||||
/** 出库按钮操作 */
|
||||
handleOut(row) {
|
||||
|
|
@ -1220,9 +1220,9 @@ export default {
|
|||
// 其他配置选项
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
//领料单打印
|
||||
print() {
|
||||
print() {
|
||||
this.$refs.remarksPrintRef.print();
|
||||
},
|
||||
|
||||
|
|
@ -1257,20 +1257,20 @@ export default {
|
|||
},
|
||||
|
||||
//输入出库数量
|
||||
checkNum(row) {
|
||||
console.log(row)
|
||||
checkNum(row) {
|
||||
console.log(row)
|
||||
let maxNum = row.outNum;
|
||||
if(row.unitValue==1){
|
||||
row.inputNum=Number(String(row.inputNum).replace(/[^\d.]/g,''))
|
||||
}else{
|
||||
row.inputNum=Number(String(row.inputNum).replace(/[^\d]/g,''))
|
||||
}
|
||||
}
|
||||
if (row.inputNum <= 0) {
|
||||
row.inputNum = 0;
|
||||
}
|
||||
if (row.inputNum > row.outNum) {
|
||||
row.inputNum = maxNum;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
printView() {
|
||||
|
|
@ -1290,7 +1290,7 @@ export default {
|
|||
// context.clearRect(0, 0, canvas.width, canvas.height);
|
||||
//let text = "XXX专用章";
|
||||
//let companyName = "XXX科技股份有限公司";
|
||||
|
||||
|
||||
// 绘制印章边框
|
||||
let width = canvas.width / 2;
|
||||
let height = canvas.height / 2;
|
||||
|
|
@ -1299,10 +1299,10 @@ export default {
|
|||
context.beginPath();
|
||||
context.arc(width, height, 80, 0, Math.PI * 2); //宽、高、半径
|
||||
context.stroke();
|
||||
|
||||
|
||||
//画五角星
|
||||
this.create5star(context, width, height, 20, "#f00", 0);
|
||||
|
||||
|
||||
// 绘制印章名称
|
||||
context.font = "18px 宋体";
|
||||
context.textBaseline = "middle"; //设置文本的垂直对齐方式
|
||||
|
|
@ -1310,7 +1310,7 @@ export default {
|
|||
context.lineWidth = 1;
|
||||
context.strokeStyle = "#ff2f2f";
|
||||
context.strokeText(text, width, height + 50);
|
||||
|
||||
|
||||
// 绘制印章单位
|
||||
context.translate(width, height); // 平移到此位置,
|
||||
context.font = "16px 宋体";
|
||||
|
|
@ -1325,7 +1325,7 @@ export default {
|
|||
} else {
|
||||
context.rotate(angle);
|
||||
}
|
||||
|
||||
|
||||
context.save();
|
||||
context.translate(65, 0); // 平移到此位置,此时字和x轴垂直,公司名称和最外圈的距离
|
||||
context.rotate(Math.PI / 2); // 旋转90度,让字平行于x轴
|
||||
|
|
@ -1333,8 +1333,8 @@ export default {
|
|||
context.strokeText(c, 0, 0); // 此点为字的中心点
|
||||
context.restore();
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
//绘制五角星
|
||||
create5star(context, sx, sy, radius, color, rotato) {
|
||||
context.save();
|
||||
|
|
|
|||
Loading…
Reference in New Issue