|
@@ -1479,6 +1479,13 @@
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
+ @click="makerCode(scope.row)"
|
|
|
+ v-if="scope.row.fId&&showGenerate==1"
|
|
|
+ >生成条码
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
@click="showElabel(scope)"
|
|
|
v-if="showDataElabel == '0'"
|
|
|
>条码
|
|
@@ -6442,7 +6449,7 @@ import {
|
|
|
checkCode,
|
|
|
queryClerkRoleList,
|
|
|
pleaseCheck,
|
|
|
- feesCheck, downloadTemplate, listElabelByfGPid, saveCode, deleteCode
|
|
|
+ feesCheck, downloadTemplate, listElabelByfGPid, saveCode, deleteCode,generate
|
|
|
} from '@/api/warehouseBusiness/warehouseInStock'
|
|
|
import { operationAgreement } from '@/api/agreement/agreement'
|
|
|
import { listCorps, getCorps } from '@/api/basicdata/corps'
|
|
@@ -6918,7 +6925,8 @@ export default {
|
|
|
elabelList: [],
|
|
|
isPledgeOptions:[],
|
|
|
eId:'',
|
|
|
- eRow:{}
|
|
|
+ eRow:{},
|
|
|
+ showGenerate:false
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
@@ -7028,6 +7036,9 @@ export default {
|
|
|
this.getConfigKey('warehouse.inStock.showPrint').then((response) => {
|
|
|
this.showPrint = response.msg
|
|
|
})
|
|
|
+ this.getConfigKey("generate_label").then((response) => {
|
|
|
+ this.showGenerate = response.msg;
|
|
|
+ });
|
|
|
// 业务员获取
|
|
|
selectUserByRole().then(res => {
|
|
|
this.fSalesmanOption = res.rows
|
|
@@ -9311,6 +9322,18 @@ export default {
|
|
|
this.elabelList.splice(scope.$index, 1);
|
|
|
}
|
|
|
},
|
|
|
+ makerCode(row){
|
|
|
+ console.log(this.form)
|
|
|
+ generate({
|
|
|
+ id:this.form.fId,
|
|
|
+ itemId:row.fId,
|
|
|
+ number:row.fQty,
|
|
|
+ type:1,
|
|
|
+ corpId:this.form.fCorpid
|
|
|
+ }).then(res=>{
|
|
|
+ this.$message('生成成功');
|
|
|
+ })
|
|
|
+ },
|
|
|
//打印
|
|
|
addprint(status) {
|
|
|
// if (status == "zyd") {
|