|
@@ -40,6 +40,7 @@
|
|
<el-button :type="choice == 2?'primary':''" size="small" @click="screen(2)" class="btn_css">已称毛重</el-button>
|
|
<el-button :type="choice == 2?'primary':''" size="small" @click="screen(2)" class="btn_css">已称毛重</el-button>
|
|
<el-button :type="choice == 3?'primary':''" size="small" @click="screen(3)" class="btn_css">已称皮重</el-button>
|
|
<el-button :type="choice == 3?'primary':''" size="small" @click="screen(3)" class="btn_css">已称皮重</el-button>
|
|
<el-button size="small" @click="print('',1)">批量打印</el-button>
|
|
<el-button size="small" @click="print('',1)">批量打印</el-button>
|
|
|
|
+
|
|
<el-table class="forData" :data="weighingRecordList" style="width: 100%; margin-top: 20px" height="780"
|
|
<el-table class="forData" :data="weighingRecordList" style="width: 100%; margin-top: 20px" height="780"
|
|
@selection-change="handleSelectionChange">
|
|
@selection-change="handleSelectionChange">
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
@@ -73,6 +74,7 @@
|
|
<!-- <el-button size="small" @click="print(scope.row)">打印</el-button> -->
|
|
<!-- <el-button size="small" @click="print(scope.row)">打印</el-button> -->
|
|
<el-button @click="print(scope.row)" v-if="scope.row.status == '已称皮重' || scope.row.status == '已称毛重'" v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button>
|
|
<el-button @click="print(scope.row)" v-if="scope.row.status == '已称皮重' || scope.row.status == '已称毛重'" v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button>
|
|
<el-button @click="backInfo(scope.row)" v-if="scope.row.status == '已称皮重'">退回</el-button>
|
|
<el-button @click="backInfo(scope.row)" v-if="scope.row.status == '已称皮重'">退回</el-button>
|
|
|
|
+ <el-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.huan`" class="putstorage" @click="exchange(scope.row)" v-if="scope.row.status == '已称毛重'">换仓</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -141,6 +143,23 @@
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="提示"
|
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
|
+ width="30%"
|
|
|
|
+ :before-close="handleClose">
|
|
|
|
+ <div style="text-align:center">
|
|
|
|
+ <el-select filterable clearable v-model="binNumber" placeholder="请选择仓位" class="typeselect"
|
|
|
|
+ @change="binNumberChange">
|
|
|
|
+ <el-option v-for="item in binnumberList" :key="item.binNumber" :label="item.binNumber"
|
|
|
|
+ :value="item.binNumber" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="dialogVisibleconfirm">确 定</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -148,7 +167,9 @@
|
|
selectWarehouseSelf,
|
|
selectWarehouseSelf,
|
|
getweighingList,
|
|
getweighingList,
|
|
getPrint,
|
|
getPrint,
|
|
- returnInfo
|
|
|
|
|
|
+ returnInfo,
|
|
|
|
+ changeNo,
|
|
|
|
+
|
|
} from '@/model/houseSelfCollect/index'
|
|
} from '@/model/houseSelfCollect/index'
|
|
import weightCheckPrint from './component/weightCheckPrint.vue'
|
|
import weightCheckPrint from './component/weightCheckPrint.vue'
|
|
export default {
|
|
export default {
|
|
@@ -265,7 +286,13 @@
|
|
printSeparately: false,
|
|
printSeparately: false,
|
|
onePrint: false,
|
|
onePrint: false,
|
|
startDate:'',
|
|
startDate:'',
|
|
- endDate:''
|
|
|
|
|
|
+ endDate:'',
|
|
|
|
+ dialogVisible:false,
|
|
|
|
+ binNumber:"",
|
|
|
|
+ binnumberList:[],
|
|
|
|
+ cangweiNum:"",
|
|
|
|
+ positionId:"",
|
|
|
|
+ warehouseInOutDetail:{},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -283,6 +310,56 @@
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ binNumberChange(e){
|
|
|
|
+ this.binNumber = e
|
|
|
|
+ for(let i = 0 ; i < this.binnumberList.length ; i++){
|
|
|
|
+ if(this.binNumber == this.binnumberList[i].binNumber){
|
|
|
|
+ this.positionId = this.binnumberList[i].id
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ handleClose(){
|
|
|
|
+ this.dialogVisible = false
|
|
|
|
+ },
|
|
|
|
+ dialogVisibleconfirm(){
|
|
|
|
+ if(this.binNumber == this.cangweiNum){
|
|
|
|
+ this.$message.error("已是该仓位无需修改")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.$confirm(`确定修改仓位?`, {
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ // let _obj = JSON.parse(this.warehouseInOutDetail)
|
|
|
|
+ // _obj.binNumber = this.binNumber
|
|
|
|
+ changeNo({id:this.id,changePositionId:this.positionId,changeBinNumer:this.binNumber}).toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '修改仓位成功',
|
|
|
|
+ })
|
|
|
|
+ this.getList()
|
|
|
|
+ this.dialogVisible=false
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ exchange(row){
|
|
|
|
+ for(let i = 0 ; i < this.warehouseList.length; i++ ){
|
|
|
|
+ if(this.warehouseName == this.warehouseList[i].warehouseName){
|
|
|
|
+ this.binnumberList = this.warehouseList[i].positionInfos
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.id = row.id
|
|
|
|
+ this.binNumber = row.binNumber
|
|
|
|
+ this.cangweiNum = row.binNumber
|
|
|
|
+ this.dialogVisible = true
|
|
|
|
+ },
|
|
backInfo(row){
|
|
backInfo(row){
|
|
this.$confirm('确定要退回该信息?', '提示', {
|
|
this.$confirm('确定要退回该信息?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|