|
@@ -236,8 +236,7 @@
|
|
|
<ws-input v-model="deptBudgetList.agent" placeholder="自动获取,不可编辑" maxlength="100" disabled
|
|
|
size="small" />
|
|
|
</ws-form-item>
|
|
|
-
|
|
|
- <ws-form-item v-if='statusTypetext == "初检" && serviceManagementType == 1' label="运费(元/吨)" span="1"
|
|
|
+ <!-- <ws-form-item v-if='statusTypetext == "初检" && serviceManagementType == 1' label="运费(元/吨)" span="1"
|
|
|
prop="freight">
|
|
|
<ws-input v-model="deptBudgetList.freight" placeholder="请输入运费" size="small" type="number"
|
|
|
@mousewheel.native.prevent />
|
|
@@ -246,7 +245,7 @@
|
|
|
position: relative;
|
|
|
top: -1px;
|
|
|
" src="../../../public/img/edit.png" @click="editClick(2)" alt="" />
|
|
|
- </ws-form-item>
|
|
|
+ </ws-form-item> -->
|
|
|
<ws-form-item v-if='serviceManagementType == 1' label="入库类型" span="1">
|
|
|
<ws-select v-model="deptBudgetList.inOutType" placeholder class="typeselect"
|
|
|
@change="selectstorageType" :disabled="isSelectType">
|
|
@@ -1514,27 +1513,27 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!String(this.deptBudgetList.freight)) {
|
|
|
- this.$message({
|
|
|
- message: '运费不能为空',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.deptBudgetList.freight < 0 ||
|
|
|
- this.deptBudgetList.freight > 100000 ||
|
|
|
- (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
|
|
|
- String(this.deptBudgetList.freight).length -
|
|
|
- (String(this.deptBudgetList.freight).indexOf('.') + 1) >
|
|
|
- 2)
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '运费输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!String(this.deptBudgetList.freight)) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '运费不能为空',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.deptBudgetList.freight < 0 ||
|
|
|
+ // this.deptBudgetList.freight > 100000 ||
|
|
|
+ // (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
|
|
|
+ // String(this.deptBudgetList.freight).length -
|
|
|
+ // (String(this.deptBudgetList.freight).indexOf('.') + 1) >
|
|
|
+ // 2)
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '运费输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (!this.deptBudgetList.inOutDate) {
|
|
|
this.$message({
|
|
|
message: '入库日期不能为空!',
|
|
@@ -1992,7 +1991,7 @@ export default {
|
|
|
if (this.reader) {
|
|
|
this.reader.cancel()
|
|
|
}
|
|
|
- if(this.qyJurisdiction&&this.serviceManagementType==1&&this.statusTypetext=='初检'){
|
|
|
+ if(this.qyJurisdiction&&this.serviceManagementType==1&&this.statusTypetext=='初检'&&!this.zjJurisdiction&&!this.fjJurisdiction&&!this.qrJurisdiction){
|
|
|
this.$message({
|
|
|
message: '钎样员只能进行收购入库添加',
|
|
|
type: 'warning',
|
|
@@ -2054,27 +2053,27 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!String(this.deptBudgetList.freight)) {
|
|
|
- this.$message({
|
|
|
- message: '运费不能为空',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.deptBudgetList.freight < 0 ||
|
|
|
- this.deptBudgetList.freight > 100000 ||
|
|
|
- (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
|
|
|
- String(this.deptBudgetList.freight).length -
|
|
|
- (String(this.deptBudgetList.freight).indexOf('.') + 1) >
|
|
|
- 2)
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '运费输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!String(this.deptBudgetList.freight)) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '运费不能为空',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.deptBudgetList.freight < 0 ||
|
|
|
+ // this.deptBudgetList.freight > 100000 ||
|
|
|
+ // (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
|
|
|
+ // String(this.deptBudgetList.freight).length -
|
|
|
+ // (String(this.deptBudgetList.freight).indexOf('.') + 1) >
|
|
|
+ // 2)
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '运费输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (!this.deptBudgetList.inOutDate) {
|
|
|
this.$message({
|
|
|
message: '入库日期不能为空!',
|