|
@@ -7,16 +7,17 @@
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="add-customer-btn">
|
|
<div class="add-customer-btn">
|
|
- <!-- <el-button class="el-button--small-yh" style="margin-right: 10px" type="primary" size="small" v-if="!editButton"-->
|
|
|
|
- <!-- @click="confirmEditing">编辑-->
|
|
|
|
- <!-- </el-button>-->
|
|
|
|
|
|
+ <el-button class="el-button--small-yh" style="margin-right: 10px" type="primary" size="small"
|
|
|
|
+ v-if="!editButton" @click="confirmEditing">编辑
|
|
|
|
+ </el-button>
|
|
<el-button class="el-button--small-yh" type="warning" size="small" v-if="form.statusName == '已出库'"
|
|
<el-button class="el-button--small-yh" type="warning" size="small" v-if="form.statusName == '已出库'"
|
|
@click="revoke">撤销出库
|
|
@click="revoke">撤销出库
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button class="el-button--small-yh" type="primary" size="small" @click="editCustomer" v-if="form.statusName !== '已出库'">保存数据
|
|
|
|
|
|
+ <el-button class="el-button--small-yh" type="primary" size="small" @click="editCustomer"
|
|
|
|
+ v-if="form.statusName !== '已出库'">保存数据
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button class="el-button--small-yh" type="success" size="small" style="margin-left: 6px;" v-if="form.statusName == '待出库' || form.statusName == '撤销出库'"
|
|
|
|
- @click="complete">出库完成
|
|
|
|
|
|
+ <el-button class="el-button--small-yh" type="success" size="small" style="margin-left: 6px;"
|
|
|
|
+ v-if="form.statusName == '待出库' || form.statusName == '撤销出库'" @click="complete">出库完成
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -61,18 +62,14 @@
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</trade-card>
|
|
</trade-card>
|
|
- <report-dialog
|
|
|
|
- :switchDialog="switchDialog"
|
|
|
|
- :reportId="form.id"
|
|
|
|
- @onClose="onClose()"
|
|
|
|
- ></report-dialog>
|
|
|
|
|
|
+ <report-dialog :switchDialog="switchDialog" :reportId="form.id" @onClose="onClose()"></report-dialog>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
|
-import { getDetails, tradingBox, submit, warehousingComplete , revokeOutboundCompleted} from "@/api/tirePartsMall/salesManagement/outboundWorkOrder";
|
|
|
|
|
|
+import { getDetails, tradingBox, submit, warehousingComplete, revokeOutboundCompleted } from "@/api/tirePartsMall/salesManagement/outboundWorkOrder";
|
|
import { dateFormat } from "@/util/date";
|
|
import { dateFormat } from "@/util/date";
|
|
import reportDialog from "@/components/report-dialog/main";
|
|
import reportDialog from "@/components/report-dialog/main";
|
|
|
|
|
|
@@ -84,8 +81,8 @@ export default {
|
|
switchDialog: false,
|
|
switchDialog: false,
|
|
activeName: "sale_detail",
|
|
activeName: "sale_detail",
|
|
disabled: false,
|
|
disabled: false,
|
|
- isDisabled:false,
|
|
|
|
- isAddDisabled:false,
|
|
|
|
|
|
+ isDisabled: false,
|
|
|
|
+ isAddDisabled: false,
|
|
form: {
|
|
form: {
|
|
shipItemsList: [],
|
|
shipItemsList: [],
|
|
shipVOList: [],
|
|
shipVOList: [],
|
|
@@ -93,14 +90,15 @@ export default {
|
|
},
|
|
},
|
|
key: 0,
|
|
key: 0,
|
|
optionForm: {
|
|
optionForm: {
|
|
- disabled:false,
|
|
|
|
|
|
+ disabled: false,
|
|
menuBtn: false,
|
|
menuBtn: false,
|
|
span: 8,
|
|
span: 8,
|
|
column: [{
|
|
column: [{
|
|
label: '业务对象',
|
|
label: '业务对象',
|
|
- disabled:true,
|
|
|
|
|
|
+ disabled: true,
|
|
prop: "customerId",
|
|
prop: "customerId",
|
|
type: 'select',
|
|
type: 'select',
|
|
|
|
+ disabled:true,
|
|
props: {
|
|
props: {
|
|
label: 'cname',
|
|
label: 'cname',
|
|
value: 'id'
|
|
value: 'id'
|
|
@@ -115,6 +113,7 @@ export default {
|
|
label: '仓库',
|
|
label: '仓库',
|
|
prop: "storageId",
|
|
prop: "storageId",
|
|
type: 'select',
|
|
type: 'select',
|
|
|
|
+ disabled:true,
|
|
props: {
|
|
props: {
|
|
label: 'cname',
|
|
label: 'cname',
|
|
value: 'id'
|
|
value: 'id'
|
|
@@ -129,6 +128,7 @@ export default {
|
|
label: '库管',
|
|
label: '库管',
|
|
prop: "stockClerkId",
|
|
prop: "stockClerkId",
|
|
type: 'select',
|
|
type: 'select',
|
|
|
|
+ disabled:true,
|
|
props: {
|
|
props: {
|
|
label: 'realName',
|
|
label: 'realName',
|
|
value: 'id'
|
|
value: 'id'
|
|
@@ -143,6 +143,7 @@ export default {
|
|
{
|
|
{
|
|
label: '业务日期',
|
|
label: '业务日期',
|
|
prop: "createTime",
|
|
prop: "createTime",
|
|
|
|
+ disabled:true,
|
|
type: "datetime",
|
|
type: "datetime",
|
|
value: dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss'),
|
|
value: dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss'),
|
|
format: "yyyy-MM-dd HH:mm",
|
|
format: "yyyy-MM-dd HH:mm",
|
|
@@ -157,6 +158,7 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '入库单号',
|
|
label: '入库单号',
|
|
|
|
+ disabled: true,
|
|
disabled:true,
|
|
disabled:true,
|
|
prop: "ordNo",
|
|
prop: "ordNo",
|
|
rules: [
|
|
rules: [
|
|
@@ -166,16 +168,19 @@ export default {
|
|
trigger: "blur"
|
|
trigger: "blur"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- },
|
|
|
|
|
|
+ },
|
|
{
|
|
{
|
|
label: '来源单号',
|
|
label: '来源单号',
|
|
- disabled:true,
|
|
|
|
- prop: "srcOrdNo"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
|
|
+ disabled: true,
|
|
|
|
+ prop: "srcOrdNo",
|
|
|
|
+ disabled:true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
label: '商品数量',
|
|
label: '商品数量',
|
|
- disabled:true,
|
|
|
|
|
|
+ disabled: true,
|
|
prop: "goodsTotalNum",
|
|
prop: "goodsTotalNum",
|
|
|
|
+ disabled:true,
|
|
|
|
+
|
|
rules: [
|
|
rules: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
@@ -188,6 +193,7 @@ export default {
|
|
label: '备注',
|
|
label: '备注',
|
|
prop: "remarks",
|
|
prop: "remarks",
|
|
type: 'textarea',
|
|
type: 'textarea',
|
|
|
|
+ disabled:true,
|
|
span: 24,
|
|
span: 24,
|
|
minRows: 2
|
|
minRows: 2
|
|
}]
|
|
}]
|
|
@@ -273,6 +279,7 @@ export default {
|
|
disabled: true,
|
|
disabled: true,
|
|
}, {
|
|
}, {
|
|
label: '实际数量',
|
|
label: '实际数量',
|
|
|
|
+ disabled: true,
|
|
prop: 'sendNum'
|
|
prop: 'sendNum'
|
|
}, {
|
|
}, {
|
|
label: '备注',
|
|
label: '备注',
|
|
@@ -379,7 +386,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 撤销出库
|
|
// 撤销出库
|
|
- revoke(){
|
|
|
|
|
|
+ revoke() {
|
|
this.$refs["form"].validate((valid, done) => {
|
|
this.$refs["form"].validate((valid, done) => {
|
|
done();
|
|
done();
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -437,7 +444,7 @@ export default {
|
|
background: 'rgba(255,255,255,0.7)'
|
|
background: 'rgba(255,255,255,0.7)'
|
|
});
|
|
});
|
|
console.log(this.form)
|
|
console.log(this.form)
|
|
- this.form.shipItemsList.forEach(item=>{
|
|
|
|
|
|
+ this.form.shipItemsList.forEach(item => {
|
|
item.goodsName = item.$goodsId
|
|
item.goodsName = item.$goodsId
|
|
})
|
|
})
|
|
// this.goodsName;
|
|
// this.goodsName;
|
|
@@ -457,8 +464,8 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
refresh(id, type) {
|
|
refresh(id, type) {
|
|
- this.$set(this.optionContactsBack,'addBtn',false)
|
|
|
|
- this.$set(this.optionContacts,'addBtn',false)
|
|
|
|
|
|
+ this.$set(this.optionContactsBack, 'addBtn', false)
|
|
|
|
+ this.$set(this.optionContacts, 'addBtn', false)
|
|
this.isDisabled = true
|
|
this.isDisabled = true
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
@@ -467,8 +474,8 @@ export default {
|
|
background: 'rgba(255,255,255,0.7)'
|
|
background: 'rgba(255,255,255,0.7)'
|
|
})
|
|
})
|
|
getDetails({ id: id }).then(res => {
|
|
getDetails({ id: id }).then(res => {
|
|
- if(res.data.data.statusName == '已出库'){
|
|
|
|
- this.$set(this.optionForm,'disabled',true)
|
|
|
|
|
|
+ if (res.data.data.statusName == '已出库') {
|
|
|
|
+ // this.$set(this.optionForm, 'disabled', true)
|
|
this.isAddDisabled = true
|
|
this.isAddDisabled = true
|
|
}
|
|
}
|
|
this.form = res.data.data
|
|
this.form = res.data.data
|
|
@@ -505,11 +512,21 @@ export default {
|
|
//打印
|
|
//打印
|
|
handlePrint() {
|
|
handlePrint() {
|
|
this.switchDialog = !this.switchDialog;
|
|
this.switchDialog = !this.switchDialog;
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
onClose(val) {
|
|
onClose(val) {
|
|
this.switchDialog = val;
|
|
this.switchDialog = val;
|
|
},
|
|
},
|
|
|
|
+ //编辑
|
|
|
|
+ confirmEditing() {
|
|
|
|
+ this.optionForm.column.forEach(item => {
|
|
|
|
+ if (item.prop == 'remarks') {
|
|
|
|
+ item.disabled = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.isAddDisabled = false
|
|
|
|
+
|
|
|
|
+ },
|
|
//自定义列保存
|
|
//自定义列保存
|
|
async saveColumnTwo(ref, option, optionBack, code) {
|
|
async saveColumnTwo(ref, option, optionBack, code) {
|
|
/**
|
|
/**
|