|
@@ -344,6 +344,7 @@
|
|
|
<el-radio v-if="isOutStockMethod2" v-model="createTemp.useType" :label="1">手动出库</el-radio>
|
|
|
<el-radio v-if="isOutStockMethod3" v-model="createTemp.useType" :label="2">调拨出库</el-radio>
|
|
|
<el-radio v-if="isOutStockMethod4" v-model="createTemp.useType" :label="5">报废出库</el-radio>
|
|
|
+ <el-radio v-if="isOutStockMethod5" v-model="createTemp.useType" :label="6">青贮出库</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -389,6 +390,18 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col v-if="No2 && createTemp.useType == 6" :span="8">
|
|
|
+ <el-form-item label="青贮单号:" prop="departmentId">
|
|
|
+ <el-select v-model="createTemp.departmentId" placeholder="领用部门" class="filter-item" style="width:100%" @change="changeDepart">
|
|
|
+ <el-option
|
|
|
+ v-for="item in createDepartList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col v-if="isReceiveTime2" :span="8">
|
|
|
<el-form-item label="出库日期:" prop="receiveTime">
|
|
|
<el-date-picker
|
|
@@ -1094,7 +1107,7 @@ export default {
|
|
|
dialogPvVisible: false,
|
|
|
// 校验规则
|
|
|
// -----------------------------------------
|
|
|
- isOutStockAdd: [], isReceiveTemplate: [], isOutStockImport: [], isOutStockExport: [], isOutStockSee: [], isOutStockDelete: [], isOutStockMethod1: [], isOutStockMethod2: [], isOutStockMethod3: [],isOutStockMethod4:[],
|
|
|
+ isOutStockAdd: [], isReceiveTemplate: [], isOutStockImport: [], isOutStockExport: [], isOutStockSee: [], isOutStockDelete: [], isOutStockMethod1: [], isOutStockMethod2: [], isOutStockMethod3: [],isOutStockMethod4:[],isOutStockMethod5:[],
|
|
|
isEasSynchronization: [], isManualSynchronization: [], isCloseSynchronization: [], isIgnoreSynchronization: [],
|
|
|
rules: {},
|
|
|
rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
|
|
@@ -1531,6 +1544,10 @@ export default {
|
|
|
const isOutStockMethod4 = checkButtons(this.$store.state.user.buttons, OutStockMethod4)
|
|
|
this.isOutStockMethod4 = isOutStockMethod4
|
|
|
|
|
|
+ const OutStockMethod5 = 'customs:outStock:method5'
|
|
|
+ const isOutStockMethod5 = checkButtons(this.$store.state.user.buttons, OutStockMethod5)
|
|
|
+ this.isOutStockMethod5 = isOutStockMethod5
|
|
|
+
|
|
|
const EasSynchronization = 'customs:outStock:easSynchronization'
|
|
|
const isEasSynchronization = checkButtons(this.$store.state.user.buttons, EasSynchronization)
|
|
|
this.isEasSynchronization = isEasSynchronization
|
|
@@ -1866,6 +1883,19 @@ export default {
|
|
|
this.No4 = true
|
|
|
// 调拨数量/出库数量
|
|
|
this.allo = false
|
|
|
+ }else if(val === 6){
|
|
|
+ // 报废出库
|
|
|
+ this.No1 = false
|
|
|
+ this.No2 = true
|
|
|
+ this.No3 = false
|
|
|
+ this.disabled = false
|
|
|
+ this.listAdd = []
|
|
|
+ this.useForms = []
|
|
|
+ this.isReceiveTime = true
|
|
|
+ this.isReceiveTime2 = false
|
|
|
+ this.No4 = true
|
|
|
+ // 调拨数量/出库数量
|
|
|
+ this.allo = false
|
|
|
}
|
|
|
},
|
|
|
getNumber(queryString, cb) {
|