|
@@ -89,6 +89,7 @@
|
|
|
<ws-form-item label="交货方式" span="1" prop="seller" class="readonly">
|
|
|
<el-radio v-model="deptBudgetList.deliverType" label="1">我方自提</el-radio>
|
|
|
<el-radio v-model="deptBudgetList.deliverType" label="2">对方送货</el-radio>
|
|
|
+ <el-radio v-model="deptBudgetList.deliverType" label="3">对方送货(临时库)</el-radio>
|
|
|
<!-- <el-radio v-model="deptBudgetList.deliverType" v-if="deptBudgetList.priceType == '随行就市'" disabled label="1">
|
|
|
我方自提</el-radio>
|
|
|
<el-radio v-model="deptBudgetList.deliverType" v-else label="1">我方自提</el-radio>
|
|
@@ -269,7 +270,7 @@
|
|
|
<el-radio v-model="deptBudgetList.settlementWeightMethod" label="1">按出库重量结算</el-radio>
|
|
|
<el-radio v-model="deptBudgetList.settlementWeightMethod" label="2">按入库重量结算</el-radio>
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item v-show="deptBudgetList.deliverType == 1" label="临时仓库负责人" span="1" prop="packingMethod">
|
|
|
+ <ws-form-item v-show="deptBudgetList.deliverType != 2" label="临时仓库负责人" span="1" prop="packingMethod">
|
|
|
<el-select v-model="deptBudgetList.personPhone" multiple placeholder="请选择临时仓库负责人" filterable clearable
|
|
|
@change="selectstaff">
|
|
|
<el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffMobilePhone" />
|
|
@@ -969,11 +970,11 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
return
|
|
|
}
|
|
|
if (
|
|
|
- this.deptBudgetList.contractNo.length < 6 ||
|
|
|
+ this.deptBudgetList.contractNo.length < 5 ||
|
|
|
this.deptBudgetList.contractNo.length > 50
|
|
|
) {
|
|
|
this.$message({
|
|
|
- message: '合同编号长度不符合要求,请输入6到50个字符之内!',
|
|
|
+ message: '合同编号长度不符合要求,请输入5到50个字符之内!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
@@ -1285,124 +1286,124 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.contractGoodsInfo.impurity) {
|
|
|
- this.$message({
|
|
|
- message: '请输入杂质',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.deptBudgetList.contractGoodsInfo.impurity &&
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') != -1 &&
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.impurity).length -
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') + 1) >
|
|
|
- 2 || this.deptBudgetList.contractGoodsInfo.impurity > 40 || this.deptBudgetList.contractGoodsInfo.impurity < 0
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '杂质输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.contractGoodsInfo.bulkDensity) {
|
|
|
- this.$message({
|
|
|
- message: '请输入容重',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- (this.deptBudgetList.contractGoodsInfo.bulkDensity &&
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf('.') != -1 &&
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.bulkDensity).length -
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf('.') + 1) >
|
|
|
- 2) || this.deptBudgetList.contractGoodsInfo.bulkDensity > 1000 || this.deptBudgetList.contractGoodsInfo
|
|
|
- .bulkDensity < 0
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '容重输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.contractGoodsInfo.mildewGrain) {
|
|
|
- this.$message({
|
|
|
- message: '请输入霉变粒',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- !this.deptBudgetList.contractGoodsInfo.mildewGrain ||
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
|
|
|
- '.'
|
|
|
- ) != -1 &&
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.mildewGrain).length -
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
|
|
|
- '.'
|
|
|
- ) +
|
|
|
- 1) >
|
|
|
- 2 || this.deptBudgetList.contractGoodsInfo.mildewGrain > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
- .mildewGrain < 0)
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '霉变粒输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.contractGoodsInfo.jiaorenli) {
|
|
|
- this.$message({
|
|
|
- message: '请输入热损伤',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- !this.deptBudgetList.contractGoodsInfo.jiaorenli ||
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
|
|
|
- -1 &&
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf(
|
|
|
- '.'
|
|
|
- ) +
|
|
|
- 1) >
|
|
|
- 2 || this.deptBudgetList.contractGoodsInfo.jiaorenli > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
- .jiaorenli < 0)
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '热损伤输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.contractGoodsInfo.imperfectGrain) {
|
|
|
- this.$message({
|
|
|
- message: '请输入不完善粒',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- !this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
|
|
|
- '.'
|
|
|
- ) != -1 &&
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).length -
|
|
|
- (String(
|
|
|
- this.deptBudgetList.contractGoodsInfo.imperfectGrain
|
|
|
- ).indexOf('.') +
|
|
|
- 1) >
|
|
|
- 2 || this.deptBudgetList.contractGoodsInfo.imperfectGrain > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
- .imperfectGrain < 0)
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '不完善粒输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.impurity) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '请输入杂质',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.deptBudgetList.contractGoodsInfo.impurity &&
|
|
|
+ // String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') != -1 &&
|
|
|
+ // String(this.deptBudgetList.contractGoodsInfo.impurity).length -
|
|
|
+ // (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') + 1) >
|
|
|
+ // 2 || this.deptBudgetList.contractGoodsInfo.impurity > 40 || this.deptBudgetList.contractGoodsInfo.impurity < 0
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '杂质输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.bulkDensity) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '请输入容重',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // (this.deptBudgetList.contractGoodsInfo.bulkDensity &&
|
|
|
+ // String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf('.') != -1 &&
|
|
|
+ // String(this.deptBudgetList.contractGoodsInfo.bulkDensity).length -
|
|
|
+ // (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf('.') + 1) >
|
|
|
+ // 2) || this.deptBudgetList.contractGoodsInfo.bulkDensity > 1000 || this.deptBudgetList.contractGoodsInfo
|
|
|
+ // .bulkDensity < 0
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '容重输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.mildewGrain) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '请输入霉变粒',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // !this.deptBudgetList.contractGoodsInfo.mildewGrain ||
|
|
|
+ // (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
|
|
|
+ // '.'
|
|
|
+ // ) != -1 &&
|
|
|
+ // String(this.deptBudgetList.contractGoodsInfo.mildewGrain).length -
|
|
|
+ // (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
|
|
|
+ // '.'
|
|
|
+ // ) +
|
|
|
+ // 1) >
|
|
|
+ // 2 || this.deptBudgetList.contractGoodsInfo.mildewGrain > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
+ // .mildewGrain < 0)
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '霉变粒输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.jiaorenli) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '请输入热损伤',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // !this.deptBudgetList.contractGoodsInfo.jiaorenli ||
|
|
|
+ // (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
|
|
|
+ // -1 &&
|
|
|
+ // String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
|
|
|
+ // (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf(
|
|
|
+ // '.'
|
|
|
+ // ) +
|
|
|
+ // 1) >
|
|
|
+ // 2 || this.deptBudgetList.contractGoodsInfo.jiaorenli > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
+ // .jiaorenli < 0)
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '热损伤输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.deptBudgetList.contractGoodsInfo.imperfectGrain) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '请输入不完善粒',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // !this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
|
|
|
+ // (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
|
|
|
+ // '.'
|
|
|
+ // ) != -1 &&
|
|
|
+ // String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).length -
|
|
|
+ // (String(
|
|
|
+ // this.deptBudgetList.contractGoodsInfo.imperfectGrain
|
|
|
+ // ).indexOf('.') +
|
|
|
+ // 1) >
|
|
|
+ // 2 || this.deptBudgetList.contractGoodsInfo.imperfectGrain > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
+ // .imperfectGrain < 0)
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '不完善粒输入错误',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
// if (
|
|
|
// (!this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000) ||
|
|
|
// (this.deptBudgetList.contractProcessInfo.goodsNameKey < 100) ||
|